Hello, I’m a web craftsman with a passion for the modern web. I build web applications and play with social services and communities.

March 29, 2010 at 11:22 pm

In Windows 7 (and maybe even older Windows versions) you have 3 ways of opening an image… Just double click it and it will open with the default application. right-click -> Open with… and choose an application yourself or right-click -> edit to open it in an default image editor. In Windows 7 the default applications for those menus are Image/Print Preview for opening and Paint for image editing. Now I wanted to stick with Preview for opening an image (because it’s quick) while changing the behaviour of the edit context menu to open up the file in Photoshop. There seems to be noway to do so in the usually so overloaded Windows GUI. But regedit comes in handy:

  1. Open up the registry editor: Start -> “regedit”
  2. HKEY_CLASSES_ROOT -> SystemFileAssociations -> image -> shell -> edit -> command
  3. On right hand side double click on Default and change path to “C:\Program Files\Adobe\Adobe Photoshop CS4\Photoshop.exe” “%1”

February 19, 2010 at 11:16 pm

If you develop some kind of multi-language software you will probably make use of something like setlocale in PHP. Now to get your l10n/i18n solution to work on a Debian server you have to install the required locale.

locale -a will show you which locale are installed on your system.

This will output something like this:


To add another locale now, edit /etc/locale.gen and uncomment the locale you need.

I.e. de_DE.utf8 for a German Locale uncomment.

After that run locale-gen as root to activate the new locale system-wide.

Don’t forget to restart your webserver daemon after the change if you want your web application to make use of the freshly activated locale.

February 5, 2010 at 1:22 pm

This post is intended to be a memo for myself on the basics of the linux tool screen, which allows to have several terminal screens opened simultaneously. This comes in very handy when working on a remove server over ssh.

Starts a new screen session with session_name:

screen -S session_name

Detach the current screen session (while being in it):

Cmd + a -> d

List all screen sockets:

screen -ls

Bring a screen session back:

screen -r session_name

January 26, 2010 at 7:30 pm

iPhone Recovery ModeToday an App crashed my iPhone pretty badly. This has never happened before and was rather awkward. I was using the App normally and after I ended it and went back to the home screen, the screen went black after half a second and the phone restarted. Or better said: It tried to restart. It couldn’t get past the Apple logo and was totally stuck there. I tried restarting it several times but nothing helped. So I had no choice but restoring the phone from an backup.

Here are the steps to put your phone into Recovery Mode: (using an iPhone 3GS and iTunes 9)

  1. Plug your iPhone via the USB cable to your computer and start iTunes
  2. Press and hold the Screen-lock button and Home button simultaneously until the phone turns off and release the buttons then (in case your phone is not totally stuck like mine you can just shut it down normally by holding the screen-lock button until the red slider appears)
  3. Now press and hold the Home button immediately and wait until the phone starts and goes to Recovery Mode. While on the cable the phone does start automatically after shutting it down. So be quick to release the buttons from step 2 and move over to hold the Home Button

Now you should have the option to restore your iPhone to factory settings. After that you can choose to set the device up as a new one or restore all your personal data from an backup. Once this is done the iPhone will sync all your iTunes media back to the device.

The whole process was quite straight forward but left me without a phone for about 2 hours.

January 26, 2010 at 5:14 pm

LocaNote LogoAbout a week ago I launched a new web service with a few friends from university. It’s called LocaNote. LocaNote is a cloud service that stores personal notes online. What’s special about LocaNote is that every note has a geographical location attached to it. Using this information LocaNote will show you only notes that are relevant to your current position. And since it is a cloud service you can take your notes with you on a mobile device. An iPhone App is in development right now and should be available on the App Store within the next few weeks. The built-in GPS receiver in the iPhone makes it the perfect mobile device for LocaNote. It will automatically use it’s current GPS-location to find notes that are really close to your actual position. Also, when you create a new note it will be placed on your current location.

The website and API is done in Ruby on Rails and the web frontend makes heavy use of the recently released jQuery 1.4.

LocaNote Screenshot

LocaNote Notes View

« Newer PostsOlder Posts »