geeky
N900 in Japan via bmobile. At last.
This is posted from my n900 via bmobile / docomo FOMA network. Yes, this is the very same n900 that I bought in Australia. No softbank bullshit. Deal & pricing data-only: no sms or phone calls. which sucks. but at least i can do skype IM, browse facebook, upload photo to facebook, sync my calendar [...]
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): Cookie cookie = new Cookie(“cookie_name”,”cookie_value”); cookie.setMaxAge(30000); // expiry cookie.setSecure(true); cokie.setPath(“/”); // this is [...]
Simple GNU command line parser in Java via Apache commons CLI
I like Apache Commons CLI and I really like the GNU style command line argument / option parsing. The one thing with the commons CLI is that it covers a lot of use cases, but I find it a bit cumbersome to set up again and again for some of my CLI programs, so I [...]
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: sudo gainroot apt-get install -y kernel-power-flasher apt-get remove kernel-flasher-maemo apt-get install –reinstall -y kernel-power kernel-power-flasher And don’t [...]
Stateful & standalone apache XML-RPC server
Introduction Apache WS-XMLRPC is arguably one of the most popular Java xml-rpc library around. However having tasted the lightness of python I’m really missing the quick and easy SimpleXmlRpcServer. So here is a simple class that’ll do the job. Download WS-XMLRPC In case you haven’t got it already, here’s a link to the ws-xmlrpc download [...]