Running Mono from crontab

When I tried to get crontab to execute one of my mono compiled assemblies it failed with the error of not being able to resolve the assembly. The problem, after some investigation boiled down to the very simple fact of it not executing the script from the expected working directory. Easy enough to fix...

Are you using Canary tests for complex test?

If not, you should, and here is why, Canary tests is an internal test of your test setup and should be used when you have a complex setup method. The Canary is a internal test of your test setup.

A great example of when a Canary tests should be used, you have some sort of dependency injection with configuration files, and after refactoring you might have changed some names etc invalidating your wiring configuration.

Here is a quick example in C# using MSTest:

WP7 BingMapsDirectionsTask bug(s)

Microsoft and WP7 are still struggling with encodings other than en-US (US-ASCII). A great example of this is the BingMapsDirectionsTask found in the WP7 Mango API's.

Calling this task with a culture like Swedish where the decimal separator is a , (comma) character instead of a . (dot) character, will make it fail to parse latitude & longitude data. This is 2011, soon to be 2012, how can the WP7 team miss something so crucial and in my eyes, obvious use case.

Microsoft's App Hub - Broken payment system and annoyance

I finally got my hands on the new HTC Titan device, it will mainly be used for developing apps. This brings us directly to the registration and payment process for Microsofts App Hub, it's required to be a paying member to be able to deploy applications to the App Hub and to be able to run & debug your applications from Visual Studio on your own device.

The experience for signing up and pay for the subscription is everything but good. Microsoft has major problems with the payment system. It won't process payments at all actually. And the number of affected people is overwhelming looking at the App Hub Community forums. And it seems to have been a problem for a long time. Why haven't it been fixed?


As some of you might have noticed, I've been involved in a start-up called ZeeYaa. We have today released the first BETA to a number of users.

This release is iOS specific for now, and a Android application is already under development, no one will be left out. Did someone say Windows Phone 7? Well, we'll write an application for that as well, as soon as Mango has been starting to roll out from OEM's on some actual hardware.

Commander BETA 7

I've just made a new release of Commander. BETA 7 is downloadable via GitHub.
More info on what's been fixed etc is available on the wiki

Time to hit the grill and get some barbecue going!


I've spent some time on the Commander project this weekend, a lot of nice changes have been implemented and one of the bigger changes is the new Command API that let's a user/developer to write his/her own commands and plug it in. The built in commands uses this as well. I will continue on this for a bit more, but it seems to be working.

You can read about all the changes on Github

How to render smooth Gradients with Android

If you're like me, you've probably noticed that when making gradients with Android, they might get rendered badly, it's not as smooth as it can be, especially when using the emulator.

To get nice and smooth gradients, you just need to add one line of code to you're Activity.

// Call this in you're onCreate() for ex.

The above code snippet will enable a much better and smoother look of you're gradient(s). But please be advised that this isn't a silver bullet, the downside is the following.

Clipboard Dialer 1.8 and 1.9

Well, this was a fun exercise... I've added Swedish translation to my Clipboard Dialer application. It took two tries to get it to work right with Android market etc, but you always learn something new =)

Soo, to recap from my prev. post about v. 1.7, the only new in 1.8 and 1.9 is that it translates all texts etc to Swedish if that's you're locale.

Download it from Android market or just update it from the Market app on you're phone!


Clipboard Dialer 1.7

I've just published Clipboard Dialer v. 1.7 to Market. Update or download your copy from the Android Market.

What's new

  • Using Android's Black theme as default
  • Better / nicer rendering of the main window
  • Better / nice rendering of list items etc
  • Removed dep. on custom graphics for the menu = smaller apk


Setting up and running MongoDB on OS X

My latest fascination is MongoDB, a document oriented database that stores data in the JSON format. It's a fast and simple to use database. And it's even easier to set up. This short post documents the basic setup and configuration needed to use MongoDB on OS X.

Android & IntelliJ Git ignores

Add the following entries to your .gitignore if you're using IDEA IntelliJ for Android development.
Since the ignore list will ignore jar files, you'll need to use git add -f if you need to add any lib's in the form of jar files.

# IDEA Ignores

# Generic Android ignores

It's also published at the awesome site gitignore;


Clipboard Dialer 1.6 Released

I've made some small tweaks to Clipboard Dialer that makes it even better at extracting phone numbers with odd formatting.

There's not much else to report. The app is very stable and seems to be appreciated by it's users. So go get you're own copy for free if you haven't done it yet.


[Edit] Spelling...

A brand spanking new site

I have finally finalized the migration to Drupal 7. The server has also moved to a new cloud based server provided by Linode.

Drupal 7 is, pure joy to work with, it has been drastically improved since last time I used Drupal (6.1.x something) . Go get your own copy and try it out! =)

The Drupal theme I use is developed by

Get your copy of Clipboard Dialer

Having trouble dialing a phone number in your browser, an email or any other text based source? Clipboard Dialer is for you. Copy a page or section of text and open it with Clipboard Dialer and you'll be able to call and create contacts from all the valid phone numbers found in that text.

Grab it from the Android Market.
It's Free!


Subscribe to RSS - Development