i5m

just seen father christmas and his reindeer - now a 4 hour wait for the lights to be turned on

A couple of tweaks

I'm not entirely sure why I persist with this website, but I do. I've just made a couple of little tweaks to the Twitter part (i.e. the tagline up above) and also to the flickr images pulled in.

The tagline uses the Twitter gem and used to simply pull in my latest status, but then I realised displaying @replies wasn't really great so I used my kludging coding abilities to loop through my timeline and find the first thing without an @


twitter.timeline(:user).each do |t|
 tweet = t.text if t.text.match('^(?!@).*')
 break if t.text.match('^(?!@).*')
end

The flickr images use the rflickr gem (sadly development seems to have died). Which I've already modified once to include the privacy_filter arguement of the flickr.photos.search call, the fact that I managed to do this is a testament to the rflickr gem and the flickr API. I decided to modify it again to include the content_type filter so I could exclude screenshots, etc. After, naturally, initially assuming my coding abilities had mucked up, it seems there is a bug in the flickr API and it ignores the content_type setting. So for now this change is not working.

It's all good news. Well apart from the flickr bug.

Posted on: Thu Nov 13 06:53:00 +0000 2008

25 posts since April 2007. Miss them and miss out.

Comments

I really, really, must fix my logo. I cant believe Ive had it cropped like that for over a year.

i5m

- Thu Nov 13 19:40:12 +0000 2008 -


Ha. I am not happy with that logo either, but it is cleaner than the other one. Done in a few minutes using Paint.NET on windows (the missus hogging the mac as usual). I didnt have Putty scp to hand, only Putty so I uploaded the logo to flickr and downloaded onto my mac/website via ssh and curl. Vim to update my stylesheet. Lovely and geeky.

i5m

- Thu Nov 13 21:26:53 +0000 2008 -


Crikey, just had to delete my first spam comment. I almost feel privileged- the spambot should certainly, it was lucky to find my site up!

i5m

- Tue Nov 18 13:00:32 +0000 2008 -


Post Comment:


Your Name:


My latest Flickr photos

My activity elsewhere on the web

Recently read on Google Reader

Recently bookmarked on del.icio.us

Recent tracks on last.fm

i5m's Profile Page

Recent posts on Appletalker

Too bloody negative apparently, so now everything I post has to be balanced. Oh and no history as well, that way if I post anything that upsets anyone, it's only around until I post again