Nov 012013
 

A lot of people involved in web development (including myself) have hit a problem with the latest versions of jQuery. Right now there are two versions of jQuery available on NuGet – 1.9.1 and 2.0.x. According to the jQuery team, both versions will be developed in the future and for developers targeting web applications the recommended version is 1.9.1 instead of 2.0 (jQuery UI for example does not work with v2.0).

By default NuGet will install the latest version of jQuery automatically. Of course, if you use the Package Manager Console, you can force version 1.9.1. But as soon as you update and you forget to do a safe update (see my previous post here on how to do that), you are stuck with version 2.0.

To prevent such issues, an easy solution is to force the package to stay under version 2.0 by changing it in the packages.config file like this:

<package id="jQuery" version="1.9.1" targetFramework="net45" allowedVersions="[1.9.1,2)" />

The right parenthesis means that the allowed versions should go up to (but not including) version 2.0

In the nasty situation when you’ve already updated the version and you have also dependencies on jQuery, you can downgrade the version using the following Package Manager Console commands:

Uninstall-Package jQuery –Force Install-Package jQuery -Version 1.9.1

Remember to change the packages.config afterwards.

Jan 162013
 

Recently Live Writer has stopped working for me when trying to post articles to my wordpress blog. The error that I keep getting is “Invalid response document returned from XmlRpc server”.

After a bit of digging and pointing fingers to all my installed plugins, I have found out that the problem actually comes from a very unexpected place – the BOM marker inside my wp_config.php.

If you encounter this problem, the easiest solution is to load the file inside Notepad++, go to Encoding and select UTF-8 without BOM. Save and voila! Live Writer works again.

For a more complete and detailed explanation check out this blog post: http://blog.scribz.net/2010/12/windows-live-writer-wordpress-unicode-bom-error/#more-22

Oct 162009
 

Everybody that is doing XAML editing has hit this issue one moment in time – the editor is buggy. First of all – the designer is really useless. Second, if you keep editors open side-by-side  you will eventually get a Visual Studio crash. Also from time to time you won’t be able to open the XAML file because apparently it is open but hidden. Finally, I would mention that the XAML editor is a lot slower than the other Visual Studio editors. Continue reading »