Archive for December, 2007

Apache Ant is regrettably (?) using XML

Thursday, December 13th, 2007

I've done some Apache Ant build file hacking today and that made me recall that the original author of Ant, James Duncan Davidson, actually regretted using XML as the file format. Mysteriously missing from today's world wide web, but fortunately captured by the Wayback Machine, the blog entry Ant and XML ...

Most ThinkPad T60p original battery for the money

Wednesday, December 12th, 2007

The old battery for my IBM/Lenovo ThinkPad T60p went from bad to useless this autumn but it wasn't until yesterday that I ordered a new 9-cell battery (7.8 Ah) directly from IBM Sweden where the 9-cell battery actually was cheaper than a 6-cell battery (5.2Ah) . I first looked at ...

MySQL support for UTF-8 in Ruby on Rails

Tuesday, December 11th, 2007

As a follow-up to my post about MySQL support for UTF-8 in PHP, here is the very same information for Ruby on Rails. In Rails it is a simple configuration entry in config/database.yml. I use the development configuration as an example: development: adapter: mysql database: dev username: dev ...

MySQL support for UTF-8 in PHP

Monday, December 10th, 2007

Originally published in Swedish in my Folkmun.se Blog, a handy tip to make sure that you are reading and writing UTF-8 when connecting to a MySQL database: mysql_query("SET NAMES utf8"); mysql_query("SET CHARACTER SET utf8")

Let’s Divide and Conquer!

Friday, December 7th, 2007

This is my new English-language blog about various software development topics that catch my interest. I'm quite sure that for example Android, Ruby on Rails and agile software development will be mentioned.