Finished. For the moment.
Well, I’ve painted the shell and put the stickers on. Looks finished now.
Added an extra sticker. I’ve had so many of them lying about – this is the first time I’ve ever used one.
Well, I’ve painted the shell and put the stickers on. Looks finished now.
Added an extra sticker. I’ve had so many of them lying about – this is the first time I’ve ever used one.
Guys at the Ruby meeting tonight mentioned another online bookstore – Boomerang Books. I’ve added them to the roster. Let me know if there’s any issues.
Girl Talk have released a new album “Feed the Animals”. They’ve released it in a similar fashion to Nine Inch Nails most resent release. You can pay any amount you think is fair. If you download for free, I understand they ask some questions about why you’re not paying. If you pay at least $5 you can get the FLAC version + a single track of the whole album. Over $10 and you can get a physical CD when they’re available. If you’re in Australia ( and you know, who isn’t? ) you’ll need to pay another $7 USD to get it shipped over here.
I’m up to track 4 of 14 and I’m enjoying it. I loved the previous album – Night Ripper. Well worth downloading.
Had access to a 1TB WD drive recently. Comes with USB2, FireWire 400 & FireWire 800. Thought I’d check out the performance of the various connection methods. It had two internal 500GB drives arranged in RAID 0 (striped). I tested it by running:
$ time cp Movies/Parallel.avi /Volumes/MYBOOK/
The movie was 525MB and I did each test 3 times. The very first run was slowest – presumably the file (or parts of it) was in the disk cache for subsequent runs. Here’s the times:
FW800: 12.5 seconds
FW400: 16.9 seconds
USB2: 21.6 seconds
Just to make sure my laptop drive wasn’t affecting the test, I also performed this test (several times for each):
dd if=/dev/zero of=/Volumes/MYBOOK/test.file.fw800 bs=1m count=1024
FW800: 24.8 seconds
FW400: 32.4 seconds
USB2: 40.9 seconds
For comparison:
Local SATA drive: 20.3 seconds
My laptop hard drives results were a bit erratic – peaking up to 27 seconds and down to 20. No doubt due in part to the 21 applications I’m currently running. Stopping iTunes playing helped things
I was surprised that FireWire 400 was that much faster than USB2 – I’d always assumed they were on par. Anyway, looks like FW800 is clearly the king for connecting external HD.
And we’re back in action. Nothing says we’re back in action like driving over a small obstacle slowly.
Thanks to teh timo for putting me onto this: http://www.amazon.com/Denon-AKDL1-Dedicated-Link-Cable/dp/B000I1X6PM/ref=pd_bbs_sr_1?ie=UTF8&s=electronics&qid=1214220672&sr=8-1
Read the reviews. Funny stuff.
Ruby On Rails apps are finally easy to install – mod_rails is here. Just installed it for the Blag ( Typo 5.0.1 on Gentoo Unstable ) and it looks to be working quite nicely. Only roadbump I encountered was problems getting static content to be served. Kept getting:
[error] [client 124.168.83.214] client denied by server configuration: /var/www/da.nmilne.com/htdocs/public/javascripts/typo.js
The problem was pretty straight forward – now that mongrel isn’t serving up the static content, I had to make sure that apache was configured to allow access. Added a this stanza:
<Directory "/var/www/da.nmilne.com/htdocs/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Naturally it feels snappier. Nice.
I spent several hours yesterday fighting with RubyGems – I’d even written a vitriolic post about it – but I … did something … and bam, like that it was gone. RubyGem is Ruby’s version of Perl’s CPAN. It’s got a very annoying trait – its prodigious use of memory. For each gem ( a gem is a Ruby module – like rails or hpricot for example ) RubyGem would load the spec into memory in order ( I’m guessing after reading a bunch of forum posts ) to build a dependency tree. On a 256MB slice host, this pushes you into swap hell. On a 512MB host it would use up to 68% of memory.
So what can you do but rent a bigger slicehost? Moe Sizlack said it best: “I’m choking on my own rage over here!”
Naturally, it’s been fixed. Today.
If only I’d done something more constructive yesterday. Like played COD.
Read this tip here – if you add:
Host *
ControlMaster auto
ControlPath /tmp/%r@%h:%p
to your .ssh/config, ssh will reuse your network connections to hosts with already established ssh sessions – saving a bit of time and reducing the number of network sockets you’ve got.
$ man ssh_config
for the details. You learn something new every week eh?
Fixed some Booko bugs/interface problems this weekend.
These ones were reported by Niall:
Made the message explaining when the price was last looked up more clear. Reported by Andy.
Improved a fragment caching problem reported by Joel. The problem was (as far as I can tell) that adding something to your cart, then moving to a different page before the cart is updated continued to show you the old version of the cart. This was because I was doing things in this order:
#2 takes a while. If the user navigates away before #2 is done, then the cart html is regenerated without the book being in the cart. Subsequent adding / removing of books will refresh the html and your book will be there. I’ve tried to fix this by shuffling the order things are done to this:
Hopefully this will reduce the problem, but it may not eliminate it.