International Number formats
19 Jul 2006
Perhaps this will be useful for others.
I needed to be able to convert decimal number to and from the 'local' format. By adding the below methods to my app_model, it is possible to silently convert decimal numbers as they come out of the database to be local format, and vice versa to save. In the code below it is converting numbers of the format 999.999,99 to be...
Even More Pagination
16 Jul 2006
I've enhanced the pagination code and added more improments. Mainly in terms of use, as it is now virtually identical to use as either get, pretty, or named style.
This one is probably the most interesting example:
The source code is (for all examples) is available at the top of the page.
Time for sushi :)
The Heat is on
15 Jul 2006
Had a major panic yesterday.
Recently I got bored of moving files around from this machine to the other.. so I put everything on my laptop. I've also been using my laptop on the journey to work and back (on the tram), an easy way to gain 2 useful hours, which would otherwise be spent licking the window.
However, when I tried to check my mails yesterday evening I found...
The pope has been and gone
10 Jul 2006
The pope has been in town this weekend, and like most locals, we took the opportunitiy to escape to the hills.
On Friday I chose not able to go to work as traffic was 'amusing' at best, and for the whole weekend mobile phones have been disabled (or so I'm told, I didn't go into town to check).
Back to life as normal on Monday...