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

Lyrics of the day

February 3rd, 2010 by ae

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”

No Comments » Make a snide comment

Linux Mint Helena: what happened to bashrc??

February 3rd, 2010 by ae

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

4 Comments » Make a snide comment

Logging Kohana sites

February 3rd, 2010 by ae

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'

No Comments » Make a snide comment

CoolUri plugin for typo3

August 30th, 2007 by ae

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

Read the rest of this page »

No Comments » Make a snide comment

apache2ctl and apache2 virtual host blah blah

August 14th, 2007 by ae

Gary pointed me to apache2ctl the other day and now I cant live with out it.

Useful things:

apache2ctl – t (check the syntax of virtual host files BEFORE reloading and breaking apache)

apache2ctl – M (show all the loaded modules – ie. check if rewrite is enabled and working)

apache2ctl – E (log startup errors to file)

apache2ctl – h (show the rest of the options)

Also, I was having issues getting a “real url” module called cooluri working for a typo3 site. In the end it was because my virtual host file was missing (link) :
AllowOverride All

Thats one of those things thats happened before but was forgotten along the way …. hopefully it will be useful for someone out there searching for why mod_rewrite isn’t working the way it should do….

2 Comments » Make a snide comment

One bash prompt to rule them all

July 20th, 2007 by ae

I stumbled across Daniel Robbins blog (the creator of Gentoo) and he had an OK article on how to config your bash prompt.

While he makes a good point for using just ‘>’ and putting everything else in the window bar, that just doesn’t cut it for me.

So – heres my suggestion which I have hacked from a CentOS server I ssh into on occasions:
PS1=”\[\033[1;31m\][\$(date +%H):$(date +%M)]\[\033[1;34m\][\u@\h:\w]#\[\033[0;37m\] ”

Just whack that into bash to try it out. To save it put it into your .bashrc file

2 Comments » Make a snide comment

grub boot options

June 1st, 2007 by ae

I’ve been having some instability due to (i think) my particular motherboard (ASUS M2N-E). I’ve tried a million different settings but have finally found a set of grub options which work.

Some of the options are perhaps not necessary, but I’m sick of trial and error so they will stay! I post this because I’ve seen similar problems with no solutions in forums. So if you are having random crashes with ubuntu feisty… try that grub line out.

ro quiet splash noapic irqpoll noacpi acpi=off

the irqpoll is for the usb ports……

2 Comments » Make a snide comment

Remove .svn folders from a directory tree

May 30th, 2007 by ae

Grabbed this from irc – so very very handy.

Chuck this in your .bash_aliases file (if you have enabled it) and you will be able to recursively remove those pesky hidden svn folders from a directory tree with rmsvn:


alias rmsvn="find . -name '*.svn' -exec rm -rf {} \;"

No Comments » Make a snide comment

A reliable text editor

May 9th, 2007 by ae
scribes

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 »

No Comments » Make a snide comment

Filler

April 29th, 2007 by ae

No Comments » Make a snide comment