Archive for 2010

Is Jolicloud 1.1 really the web of tomorrow?

by Hendrik Will. 1 Comment

I just stumbled upon the Jolicloud 1.1 operating system which has been developed especially for Netbooks. It is based on the Ubuntu Netbook Remix Linux distribution and shows lots of HTML5 capabilities. There is a Windows installer but you can also install it as your primary operating system. To gain a better impression of Jolicloud I installed it as virtual instance  with Oracle’s VirtualBox. Of course you could also install it on your USB drive.

Measure elapsed time with Java

by Hendrik Will. 0 Comments

For my recent experimental gaming project I wanted to measure the overall elapsed time since the beginning of a game.
In my main class I added a startup variable of type long which contains the current time in milliseconds. At the end of a game call the function stopWatch(startup); to get the elapsed time in seconds.

How to export your Delicious bookmarks to a XML file

by Hendrik Will. 2 Comments

Today, there have been rumors that Yahoo!’s bookmarking service Delicious will be shut down soon. If you’re scared about losing all your bookmarks there are two ways how to save all of your Delicious bookmarks.

First option would be to use their export option. This way you will get a HTML file.

Second more advanced option would be to use curl+Delicious API and grab all of your bookmarks including tags to an XML file.

Getting HTC Desire to work with Android SDK on Vista 64

by Hendrik Will. 0 Comments

Even for the newest Android SDK I ran into problems getting it to work with my HTC Desire on Vista 64. Probably it’s the same problem for other Windows 64bit versions.

If you connect  your phone to your computer via USB you will be asked to install a USB driver for ADB.
You will point the installer to your \android-sdk-directory\usb_driver\ but it won’t be able to find a matching driver.

Find \android-sdk-directory\usb_driver\android_winusb.inf and open it with your favorite text editor.
Now find the line with [Google.NTx86] and [Google.NTamd64]

Enter the following after both of these lines:

;HTC Desire
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C87
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C87&MI_01
;

Save the file and try again to install the drivers. Point the installer to \android-sdk-directory\usb_driver\. Do not choose one of the sub directories.

Mod Rewrite Snippets

by Hendrik Will. 0 Comments

Some mod_rewrite snippets I often use.

Avoid duplicated content:


RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

Magento Image Compression Solution

by Hendrik Will. 2 Comments

During my last Magento project (Magento Version 1.4.1.0) I noticed the bad image quality of product images in the list view, detail view and also the zoom image. Usually show owners don’t care for loading speed and wanna show their products in high quality instead. Not with high image compression like Magento’s default setting.

The solution is simple if you know where the default setting is hidden: