HTTP redirect and Cookies

Did you know that if a web server sends a HTTP 302 (redirect) response, with a set-cookie, the browser won’t take the cookie unless the cookie’s path is set to “/” ? This is how it can be set in Java (servlet):

I thought cookies are simple but in truth they are not. You…

Details

installing n900 enhanced kernel with conflict

Tried to install enhanced kernal 2.6.28.10 on my n900 running PR1.3 firmware and got a message: ‘conflict with kernel-maemo’ Did a bit of googling and finally found these commands from: http://wiki.maemo.org/Kernel_Power basically, install manually via apt-get like so:

And don’t forget to take backup prior to doing any of this funky business!

Details

Java: Date, ISO string, and timezone

This is a convenience class around SimpleDateFormat to parse/format date from/to ISO string: yyyy-MM-dd’T’HH:mm:ssZ. The printing bit allows for timezone to be specified, which just wraps around DateFormat’s .setTimezone() method. Note that Date object in java is not timezone-specific. The Timezone conversion is required only during formatting. Usage

DateUtil.java

Details