Warning: Found conflicts between different versions of the same dependent assembly

This warning means that two projects reference the same assembly (e.g. System.Windows.Forms) but the two projects require different versions. You have a few options: Recompile all projects to use the same versions (e.g. move all to .Net 3.5). This is the preferred option because all code is running with the versions of dependencies they were … Read more

“sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers” warning

You should declare your constant string as follows: NSString * const kSomeConstantString = @””; // constant pointer instead of: const NSString * kSomeConstantString = @””; // pointer to constant // equivalent to NSString const * kSomeConstantString = @””; The former is a constant pointer to an NSString object, while the latter is a pointer to … Read more

Hide all warnings in ipython

I eventually figured it out. Place: import warnings warnings.filterwarnings(‘ignore’) inside ~/.ipython/profile_default/startup/disable-warnings.py. I’m leaving this question and answer for the record in case anyone else comes across the same issue. Quite often it is useful to see a warning once. This can be set by: warnings.filterwarnings(action=’once’)

How do I address unchecked cast warnings?

The obvious answer, of course, is not to do the unchecked cast. If it’s absolutely necessary, then at least try to limit the scope of the @SuppressWarnings annotation. According to its Javadocs, it can go on local variables; this way, it doesn’t even affect the entire method. Example: @SuppressWarnings(“unchecked”) Map<String, String> myMap = (Map<String, String>) … Read more

“Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key”, and “Notice: Undefined offset” using PHP

Notice / Warning: Undefined variable From the vast wisdom of the PHP Manual: Relying on the default value of an uninitialized variable is problematic in the case of including one file into another which uses the same variable name. It is also a major security risk with register_globals turned on. E_NOTICE level error is issued … Read more