String.replaceAll in Java might not do what you expect it to do

At the first glance of String.replaceAll(String regexp, String replacement) it seems very obvious what the method does, and most of the times it does exactly what you want, but under some conditions it does not. Let me show you this by showing you a few unit tests I wrote recently when fixing a bug in […]

Read more String.replaceAll in Java might not do what you expect it to do

Experiments with Play! Framework

As I wrote in my last post, I recently rewrote one of my hobby projects from ASP.NET MVC to Play! Framework. Play! was very easy to get started with, the only thing required was to have a JDK installed and to download the zip distribution of Play, unzip it to a directory and fire it […]

Read more Experiments with Play! Framework

New country, new city, new job

So a lot is new since last time I posted. In the end of the summer I moved from Stockholm to San Francisco to start working for a company called Skout, building mobile social networks. With this new job some big changes came:) I am now back to coding Java after several years of mostly […]

Read more New country, new city, new job

Will the Metro user interface work on the Dektop?

Two days ago Windows 8 Release Preview was released to the public, while not being the final release of Windows 8, it is probably quite close. You can download the ISO files from here: http://windows.microsoft.com/en-US/windows-8/iso If you like me, had problems finding the key for it (it was hidden on the FAQ page), here is […]

Read more Will the Metro user interface work on the Dektop?

Limiting MongoDB memory usage on Windows 2008 Server

By default MongoDB tries to memory map as much as possible of the database file. Given a fairly big database, this will consume all your memory. If MongoDB is running on a dedicated server this is totally fine, but when running on a shared server this will cause unnecessary swapping for your other applications. At […]

Read more Limiting MongoDB memory usage on Windows 2008 Server

ColourSearch – a simple image search engine

A few weeks I randomly got interested in how you match images with other images. Having a very limited background in computer graphics I started reading some research papers on how to match images. One strategy that seemed to work pretty well for most people was a histogram based comparison. Given two histograms it is […]

Read more ColourSearch – a simple image search engine

Unlocking your Windows Phone for development

It is not totally obious how to unlock your WP7 device for development. The first step is of course to sign up for the development program at http://create.msdn.com. But then? I had the exact same experience as this guy: http://www.pitorque.de/MisterGoodcat/post/Unlocking-a-Windows-Phone-7-device-for-development.aspx So together with the SDK a small activation program was installed, “Windows Phone Developer Registration”. […]

Read more Unlocking your Windows Phone for development

Force update of your Lumia 800 to WP7 1600.2487.8107.12070

So for some reason it takes Nokia a long time to push out the WP7 updates. 1600.2487.8107.12070 is a new official build of WP7 that was released a while back, but Zune still tells me that there is no update for my phone. The most important features of the update to me seems to be […]

Read more Force update of your Lumia 800 to WP7 1600.2487.8107.12070

Protothon #2 – WebRTC

Yesterday I went to a hackathon called Protothon. Protothon describes itself as “Space for the place between code and creativity” and the idea is to bring together programmers, creatives and entrepreneurs together and under a very limited time build an application from scratch. The focus of this hackathon was WebRTC, which is a new standard […]

Read more Protothon #2 – WebRTC

Serving your ASP.NET MVC site on Nginx / fastcgi-mono-server4

In my previous post I showed you how to compile and install mono and get your MVC site up running using the development web server xsp4. The next step is to serve your site using a real web server, my choice is nginx. First, we need a configuration file for the nginx site. If you […]

Read more Serving your ASP.NET MVC site on Nginx / fastcgi-mono-server4

Older posts