and then...

browse by category
browse by month

2010: 01 02 03 04 05 06 07 08 10 11 12
2007: 01 02 03 04 05 06 07 08 10 11 12
2006: 01 02 03 04 05 06 07 08 10 11 12
2005: 01 02 03 04 05 06 07 08 10 11 12

Archive for February, 2010

Lyrics of the day

I’ve been wanting to play with the new version of Kohana (K3) for a while. Its quite different to the 2.x branches and there a few things with it that I’m not sure I really like, but I’ll reserve judgment till I’ve played with it a bit more.

Anyway, to try and do something somewhat interesting I’d thought I’d hook it up to the twitter and last.fm api’s tonight over too many gin and tonics. So I created http://lyricsoftheday.info and http://albumoftheday.info (which is parked with lyricsoftheday).

All they do is search for the #lyricsoftheday and #albumoftheday hashtags on twitter and return the results. I’m trying to get the album of the day to grab the album cover from last.fm but this is proving a bit harder as I need to provide both the album name and artist to the api, which is sometimes hard to determine (check http://albumoftheday.info and you will see what I mean).

The styling is GHASTLY. Yes.

The code is up on github at http://github.com/ae0000/lyricsoftheday if anyone is interested or wants to style it up.

Next step is to try and wean the crappy lyrics out…. then create a cronjob to submit tom waits lyrics every minute.

Or perhaps even better, fixing peoples ill-informed tweets for them

eg. (using the currently number one tweet)
Someone: I will never know cause you will never show. #lyricsoftheday

“@Someone: ” + insert_random_tom_waits_lyric(); +” #FTFY #lyricsoftheday”

Linux Mint Helena: what happened to bashrc??

For some reason my version of Mint Helena does not create a bashrc file in my home directory…????

Instead there is a default one being used, found here: /etc/bash.bashrc

To add aliases and what not for my user account I added the following to this file:


# Added by ae - load aliases if they exist
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

Logging Kohana sites

Add this to your bash aliases for quickly seeing whats happening in the current log.

alias klogger='tail -f -s 5 /home/ae/workspace/eventarc/www/logs/`date +%Y-%m-%d`.log.php'