Entries in Category: Tech
Tech-y, Geek-y things.
How to compile lftp on OS X Leopard
I've recently been missing a few pieces of software from my linux days most recently, lftp. It wasn't as simple as I had hoped it would be so I thought I'd record how I did it here.
# Download and install readline
$ wget ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz # (or latest stable version)
...
$ tar zxvf readline-6.0.tar.gz
$ cd readline-6.0
$ ./configure --prefix=/usr/local
...
$ make
...
$ sudo make install
# Download lftp
$ wget http://ftp.yars.free.net/pub/source/lftp/lftp-3.7.15.tar.gz # (or latest stable version)
...
$ tar zxvf lftp-3.7.15.tar.gz
# Here comes the magic
$ CXXFLAGS="-O0 -Wall -fno-exceptions -fno-rtti -fno-implement-inlines" \
LDFLAGS="-Xlinker -search_paths_first -L/usr/local/lib" \
CPPFLAGS="-I/usr/local/include" \
./configure --with-openssl --disable-shared --disable-nls --prefix=/usr/local
...
$ make
...
$ make install
.. and that should be it. As I understand it, the 'magic' part tells the compiler to look in the right place for the readline library.
UPDATE: I suggest you now ignore this and use Homebrew where I have contributed an lftp recipe.
My favourite podcasts (at the moment)
I've been finding recently that I seem to spend a lot more time watching and listening to podcasts than I used to and I thought I'd list them here to see if anyone else has similar podcast taste or if anyone has any podcast recommendations.
Apple Quick Tips: Weekly, short tips on how to use Mac OS X. These are often things I already know, but sometimes the odd gem of a tip comes up.
Best of Chris Moyles Enhanced: Since I don't commute to work any more, I seem to not catch much of this show when it's on in the morning, so I catch up on it with the podcast.
CNET TV's Loaded: A (generally) less than 5 minute look at the latest news stories in Tech. Presented by Natali Del Conte.
The Collings and Herrin Podcasts: Weekly musings from Richard Herring (ex of Herring and Lee) and Andrew Collins (ex of Collins and Maconie). Often quite crude, always very funny.
Diggnation: A hilarious look at the weeks top stories from digg.com. Presented by Kevin Rose and Alex Albrecht.
GeekBrief.TV: Shiny, happy Tech news.
Hak5: Info and tutorials on all sorts of geeky topics.
Layers TV: Short tutorials, competitions and news about all applications in Adobe Creative Suite.
The Perfect Ten with Phill Jupitus and Phil Wilding: The first podcast I've heard with rules: * 10 Subjects, drawn at random from a fine-looking hat * Only 30 minutes for the lot * No returning to subjects - EVER! It ruins the time/space continuum. Another very funny podcast.
Photoshop User TV: Tutorials, news and competitions focused mostly on Photoshop (and sometimes Lightroom).
Pixel Perfect: Presented by the Photoshop wizard that is Burt Monroy. He shows you how to create all sorts of things from scratch in Photoshop.
Robert Llewellyn's Car Pool: The actor behind Kryten in Red Dwarf and presenter of Scrap heap Challenge. Drives people around in his car and has a chat with them. Fantastically simple concept which makes for a great podcast.
Scam School: Bar scams and tricks. Another great podcast from Revision 3.
SModcast: Kevin Smith and Scott Mosier (with occasional guests) chat about anything and everything.
Systm: Patrick Norton, David Caulkins and Roger Chang talk you through all sorts of geeky projects. From building a robot, to making a Media PC.
How long does it take to do a 7 pass erase with Disk Utility
Since I couldn't find any solid figures for how long it might take to run the 7 pass erase, I thought I'd feed Google with my findings in the hope that it might help someone else in future.
I ran the 7 pass erase on an 80GB Hard Disk and it took around 4.5-5 hours.
Hope that helps someone.
Another lolcat

Just a quick note to mention that I got both of these lolcat images off of random websites whilst searching for 'happy cat' or 'sad cat', so I don't own the copyright. If you do and you don't want me to use them, let me know.
iPhone impatience...

I think O2 heard me:
Date: 9 July 2008 21:01:45 BST
Subject: Order Confirmation
W00t! My order is confirmed, so ought to be here by Friday!
Last.fm
Having a few spare minutes, I've added a template tag to my site that shows the last 10 songs I've listened to on last.fm.
@register.inclusion_tag('blog/lastfm_tracks.html')
def latest_tracks():
url = 'http://ws.audioscrobbler.com/1.0/user/DReynolds/recenttracks.txt'
response = urllib2.urlopen(url)
songs = []
for line in response.read().split('\n'):
if not re.match(r"^$", line):
songdetail = re.split(",", line)[1]
artist, song = re.split(" \xe2\x80\x93 ", songdetail)
songs.append({'artist' : artist, 'song' : song})
return {'songs' : songs}
Slight redesign redux
This time along with a completely different design (which isn't completely finished) I have updated the blog app to work with django trunk, along with adding a delicious template tag. The blog app also now uses markdown - a massive improvement since I was manually entering HTML before which proved quite time consuming. Hopefully these additions may make me update this a bit more often.
Bootcamp blues
I recently bought a new iMac (2.4Ghz Intel Core 2 Duo 1GB RAM 20") and I thought that, since it ...
Netnewswire 3.1 is now free!
I had been using Google Reader for a couple of weeks for my RSS reading needs, but having read that ...
Nice...
root@router-upstairs:~# wol $(grep $(grep zhia /etc/hosts | awk '{print $1}') /etc/ethers | awk '{print $1}') Shame it doesn't work any ...
Things to do
Migrate VDS to new VDS - Before 31/10/2007 Fix various things after the migration - after 31/10/2007 Update my blog ...
Using Nokia E70 with iSync
On my first Googling, I found the hacky way of doing this. Which is hacky, but works. I was just ...
Using a Nokia N70 as a bluetooth modem with OS X
Like Savs (can't find exact post, but i know it's there somewhere and reprocessed.org I have become a fan of ...
Solution to getting iCal to Sync over SSL
Well, I call it a solution, but it's more of a massive kludge of a workaround. That aside, here's how ...
Fixing OpenID
I finally got around to fixing openid on this site, so now when you post a comment, you can sign ...
Watching a Film on NTL on:demand
As Carl was visiting last night we decided to watch a film and I thought it might be interesting to ...
Uninstalling or removing a .pkg file
It took me a bit of digging around to find this, so I thought I'd record it here in the ...
Delcious Library Barcode scanning
I finally got around to picking up the webcam that Adam offered to lend me and trying it out with ...
Standard new site post
So yeh, new site can't be arsed to write about it in depthly, just trying to draw attention to it. ...
Fetching your Hotmail into normal mailbox
I've always wondered if there was a solution to this and since I keep getting emails that I miss because ...
Reminder to myself
Installing grub onto a new disk from an old disk... do the following: # grub grub> grub> device (hd0) /dev/sda ...
Random hidden file...
For any OS X users, run this command: open -a "QuickTime Player" /System/Library/Frameworks/Python.framework/Versions/\ 2.3/lib/python2.3/test/audiotest.au
Halloween thingies
Now we all know that Google changes its look for particular events I've found some Halloween things that I didn't ...
IE 'Peekaboo' CSS bug - fixed
This has been bothering me for a couple of days, but finally found the solution today. If you are experiencing ...
Wow.
I spotted this earlier on, via Jono Bacon's blog. The console itself looks very very cool, and I was astounded ...
Telling OS X which wireless networks to trust
Huzzah! I've been looking for this option for ages, and I just stumbled upon it. You can make OS X ...
IE under wine, part 2
I've just downgraded wine (by mistake, ahem) back to the version of wine that is in stable and IE still ...
IE under Wine
Something I've been trying to do for some time is to get Internet Explorer running under Debian using Wine. I ...
VDR:0 Tivo: 1
So, I gave up on building my own PVR, having tried vdr and mythtv both of which look like fantastic ...
Testing ecto...
Well, just thought I'd have a quick play with this bit of software, which I almost didn't download, due to ...
New toy...
Yay :) Second new toy of the pay rise is a Nintendo DS which arrived this morning. I take back ...
Powerbook....
Yay, my laptop finally arrived (sans case, but that should be here tomoorw, fingers crossed) and it's fantastic :)
and so...
Well, I got a payrise last week and decided to buy myself a spanky new laptop. After some deliberation (ok ...
