Archive for 'PHP'
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”
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'
CoolUri plugin for typo3
This is perhaps more of a convenient place for me to store install instructions than anything… BUT:
Installing CoolUri in Typo3 on linux / apache2 / php5
A reliable text editor
I was complaining to someone the other day about how most text editors fail to deal with large files. I was trying to edit a 8mb sql file and my default editors eclipse and cream (a vim extension) both couldn’t handle it. I then tried emacs and jEdit neither of which I particularly like. jEdit at least opened the file. But the interface is clunky and on my system at least, wont go past 800×600 screen real estate….
Read the rest of this page »
PHP frameworks – symfony
I’ve been playing with a few php frameworks – check this list , most of which were pretty cool, but I couldn’t see myself using on an extended basis. However symfony looks really good. After getting past some install errors on ubuntu (blame PEAR), everything worked really smoothly. It reminded me of the first time I played with ruby on rails and was astounded to have a simple website with DB functionality within a couple of minutes.
The features which I think make this framework shine above the rest are its implementation of MVC which is really smooth and its easy template system.
You should check it out. Askeet was build in 24 days as part of a symfony advent – its a good example of how quick it is to get a web app online with symfony.
