What are some empirical technical reasons not to use jQuery? [closed]

Update 2015: In this answer from 2011 I’m talking about libraries like jQuery, YUI or Prototype. Today in 2015 that reasoning is still applicable to frameworks like Angular, React or Ember. In those 4 years the technology progressed tremendously and even though I see considerably less prejudice against React or Angular than I saw against … Read more

Getting the .NET Framework directory path

The path to the installation directory of the CLR active for the current .NET application can be obtained by using the following method: System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() I would strongly advice against reading the registry directly. For example, when a .NET application is running in 64bit systems, the CLR can either be loaded from “C:\Windows\Microsoft.NET\Framework64\v2.0.50727” (AnyCPU, x64 compilation … Read more

The variable ‘MyException’ is declared but never used

You can remove it like this: try { doSomething() } catch (AmbiguousMatchException) { doSomethingElse() } Use warning disable like this: try { doSomething() } #pragma warning disable 0168 catch (AmbiguousMatchException exception) #pragma warning restore 0168 { doSomethingElse() } Other familiar warning disable #pragma warning disable 0168 // variable declared but not used. #pragma warning disable … Read more

Link Binary with libraries VS Embed Frameworks

Link binary with libraries Link frameworks and libraries with your project’s object files to produce a binary file. You can link a target’s source files against libraries in the target’s active SDK or against external libraries. Embed Frameworks You can create an embedded framework to share code between your app extension and its containing app. … Read more

FBSDKCoreKit/FBSDKCoreKit.h not found error

Make sure to follow this step: Deselect Copy items into destination group’s folder. https://developers.facebook.com/docs/ios/getting-started/ Also, in your Build Settings, look at this field: “Framework Search Paths” You should have something like this: /Users/[username]/Documents/FacebookSDK or for a more general config ~/Documents/FacebookSDK Also, look at Finder and make sure that the framework is actually there

Going from a framework to no-framework [closed]

Current versions of PHP5 include much of the security framework you’re looking for as part of the standard library. Use filter_input_array to declaratively sanitize stuff coming in from the outside. Access your database via PDO with parameterized SQL to prevent SQL injection attacks. Use the following PHP settings to make your site more resistant to … Read more

dyld: Library not loaded: @rpath with iOS8

To make this work In the framework project settings change the install directory from ‘/Library/Frameworks’ to ‘@executable_path/../Frameworks’ In the project that includes this framework, add a copy files phase and copy this framework to the ‘Frameworks’ folder. Once you do this ensure that this framework is listed under the ‘Embedded Binaries’ section.

How to set up unit testing for Visual Studio C++

This page may help, it reviews quite a few C++ unit test frameworks: CppUnit Boost.Test CppUnitLite NanoCppUnit Unit++ CxxTest Check out CPPUnitLite or CPPUnitLite2. CPPUnitLite was created by Michael Feathers, who originally ported Java’s JUnit to C++ as CPPUnit (CPPUnit tries mimic the development model of JUnit – but C++ lacks Java’s features [e.g. reflection] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)