Category Archives: code

Sunburn

Exams are over, the sun came and went, I got a first (hurrah!), a job for a couple of months and now it’s just .. working out what now? Completing Chrono Trigger is my first priority :D
Spent some time moving the last.fm charts thing to Python, because Python is tasty, PHP is clumsy, and matplotlib [...]

Charts update

Just a note to say I updated Historical Charts to take advantage of Last.fm automatically correcting misspelled info.

Recursive chmod

Just so I don’t forget.
Directories only: find . -type d -exec chmod 755 {} \;
Files only : find . -type f -exec chmod 644 {} \;

Extremely Slow Track Chart Updating

Should be alleviated – an unindexed query called for each track in a chart list was returning close to a million rows = ouch and hurrah for indexes.

Life in the Stencil Buffer

Stumbling through a load of OpenGL documentation I came across a demonstration of Conway’s Game of Life using the stencil buffer, which is simultaneously awesome and horrible:
Life in the Stencil Buffer
One way to create this game using OpenGL is to use a multipass algorithm. Keep the data in the color buffer, one pixel for each [...]

Last.fm Historical Charts v2

I updated my historical charts program to allow album and track charts, make it utf8 compatible and give it a graphical overhaul too, hurrahs all round.
Same process as before – when you first create each kind of chart it’ll take a while to fetch your data, subsequent charts will be created a whole lot faster. [...]

LastFM Charts

I made my program to generate charts for any date range from LastFM data available to anybody a few weeks ago and it’s had a positive response, being included on build.last.fm as an interesting extra kindofthing. Though still nobody has feedback or suggestions. Maybe in itself it’s relatively complete and I should think [...]