Deprecated: Required parameter $filename follows optional parameter $blog_date in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_entry.php on line 377 Deprecated: Required parameter $id follows optional parameter $label in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_forms.php on line 51 Deprecated: Required parameter $itemArray follows optional parameter $label in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_forms.php on line 51 Deprecated: Required parameter $id follows optional parameter $label in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_forms.php on line 111 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 314 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 317 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 320 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 323 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 326 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 331 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 334 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 337 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 340 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 343 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 346 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 349 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 354 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 357 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 360 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 364 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 367 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 371 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 374 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 377 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 381 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 384 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 388 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 391 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 394 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 398 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 401 Warning: Trying to access array offset on value of type null in /customers/a/f/c/fjorden.se/httpd.www/joel/themes/willowisp/themes.php on line 404 Warning: Undefined array key "logged_in" in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_display.php on line 565 Warning: Cannot modify header information - headers already sent by (output started at /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_entry.php:377) in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 153 Blog by Joel Fjordén a.k.a. Will o Wisp http://joel.fjorden.se/index.php Having problems with the FluidMoveBehavior being delayed? http://joel.fjorden.se/index.php?entry=entry130123-144914
This is a bug in the behavior when used in WPF and here is a workaround until fixed!]]>
Unable to activate Windows Metro style application http://joel.fjorden.se/index.php?entry=entry120611-211753
The problem seems to be with the assembly bindings added to the app.config file. Removing the file completely solves the problem however! You will get compiler warnings of conflicting assembly versions, but at least it works! Until a better solution presents itself...]]>
Code Style Enforcer 3.5 Released http://joel.fjorden.se/index.php?entry=entry120217-091930 Cenito Software AB, the company I now work for, has acquired the rights for Code Style Enforcer. This is very good news since it hopefully means that there will be more time for improvements and new features.

Code Style Enforcer 3.5 is now here, and better than ever. A reworked and more flexible rule system is now in place, where it is possible to override rules for specific code types based on modifiers and visibility. For example, we might want some specific name rule for parameters marked as ref or out, or we require public visibility on static methods, but any visibility on instance methods.

A new default name rule override has been added to the standard rules, namely that methods marked with the async keyword must have “Async” as suffix.

Please give this new version a try and let me know if there are any issues with this new rule system, or any other issues for that matter.

Be sure to use DXCore 11.2.7 or later, since the new rule system is dependent on this release.

New Features

• A redesigned and more flexible rule system supporting more granular name and visiblity rules based on not only the code type, but also on modifiers and visibility.

• The separate rule configurator application has been removed and both local and global rule configurations can now be made within Visual Studio instead (Tools menu --> Code Style Enforcer). This also solves the problem where the configurator application stopped working for each new release of DXCore.

Bug Fixes

• Code rules can now be saved upon change even if rule files have become readonly, e.g. by using TFS in offline mode.

Breaking Changes

• Due to changes in the code rule definitions, any old customized code rules will get backed up and the new default rules will instead be loaded, when opening the Global Code Rules Options dialog in Visual Studio or a previously Code Style Enforcer activated solution.

Download Code Style Enforcer 3.5.17]]>
SavePictureToCameraRoll throws InvalidOperationException in Windows Phone 7.1 (Mango) http://joel.fjorden.se/index.php?entry=entry110713-060945
After that I wanted to utilize the SavePictureToCameraRoll feature, but this call always throw an InvalidOperationException simply stating, "An unexpected error has occured.".

Trying the same thing in a new project worked like a charm, so after some digging and file comparisons I found that the WMAppManifest.xml file is not "upgraded" when changing the target version to 7.1, and in order to be able to call this method the ID_CAP_ISV_CAMERA capability must be added.

I hope this can save someone else's time!]]>
Code Style Enforcer 3.0.72 Supporting DXCore 11.1.5 http://joel.fjorden.se/index.php?entry=entry110710-201944
Download Code Style Enforcer 3.0.72]]>
Code Style Enforcer 3.0.71 Supporting DXCore 10.2.9 http://joel.fjorden.se/index.php?entry=entry110707-122916
Download Code Style Enforcer 3.0.71]]>
Temporarily Disable Push in Mercurial (Hg) http://joel.fjorden.se/index.php?entry=entry110707-072634
One solution to this is of course to pull, update, merge (if needed) and commit, or the Hg Fetch extension, but what we really wanted was to somehow prevent developers to push change sets into the remote server repository during the build process of that specific project in TeamCity.

After quite a lot of research on Google, I still couldn’t find any existing solution to this, so I started thinking about how we could manage this ourselves. The solution I came up with was to develop a very simple, but yet quite smart, REST service hosted on the same machine as the Hg repositories. The service exposes endpoints for EnablePush/DisablePush together with the name of the target repository. What the service implementation does is then to temporarily change the hgrc file in the repository to disable push, but not for everyone, since the automated build account used by TeamCity for Mercurial still needs Push access (allow_push = Mercurial). In order to enable Push again when the build is completed we then allow everyone with an account in the AD to Push again (allow_push = *).

In order to use the REST service from TeamCity I discovered a very useful plugin called tcWebHooks that allows HTTP POST on TeamCity events like build started and build completed. Here is a configuration example of tcWebHooks for enabling/disabling Hg Push for a specific project and repository using the custom made RIA service.

If you’re interested in the service install package or source code, let me know and I’ll send it to you!]]>
Code Style Enforcer 3.0.51 Supporting DXCore 10.2.5 http://joel.fjorden.se/index.php?entry=entry110307-211205
Download Code Style Enforcer 3.0.51]]>
Code Style Enforcer 3.0.43 Supporting DXCore 10.2.3 http://joel.fjorden.se/index.php?entry=entry101212-194531
Download Code Style Enforcer 3.0.43]]>
Code Style Enforcer is Currently Incompatible with DXCore 2010 vol 2.3 http://joel.fjorden.se/index.php?entry=entry101209-070453
There seems to be some incompatibility issue with this new version of DXCore, but a new version of Code Style Enforcer targeting DXCore 2010 vol 2.3 will be released within the next couple of days!

]]>