A couple of weeks ago I was asked to set up a web cam on the PC in our basement, so that James could video chat with one of his school friends who is leaving for a different school. I stopped on the way home from work on the Friday evening and bought a fairly cheap (£25) webcam from Staples.
Read More
Apple PowerBooks / MacBooks and iPods
I left my iPod Shuffle in my car all day today, connected to my car stereo and playing (although the car stereo itself was off of course). It still had enough power to provide me with music all the way home, which means it lasted at least 8 hours (it wasn’t fully charged this morning).
I’m currently listening to iTunes on my PowerBook, and it is using between 10 and 15% CPU. This obviously runs down the battery in my PowerBook.
Why can’t Apple “build” an iPod shuffle into the PowerBook? It could connect to the USB bus internally, and all it would need is a kernel driver to control it, that iTunes could use to tell it to play a particular track. It would free up the system CPU to do other stuff, and extend the life of the battery.
Getting Things Done
I bought a book called Getting Things Done by David Allen. It arrived on Monday.
I haven’t had time to read past the prologue yet.
Happy New Year, by the way.
Fix Ruby on Mac OS X 10.4
Mac OS X 10.4 comes with ruby 1.8.2, it seems to have a problem with OpenSSL which causes
After configuring it,
After that I installed RubyGems-0.8.11 and the
switchtower
to hang when trying to connect to your server.
You can download the source code to Ruby 1.8.3, compile it and install it, but you’ll start getting weird errors in gem
when you try to install some libraries.
The solution turned out to be to compile Ruby slightly differently. You need to pass some flags to configure:
./configure --enable-shared --enable-pthread
make
ing it, and running sudo make install
, I had what seemed to be a working Ruby installation. It installs to /usr/local/bin
which is already in my path. Executing hash -r
causes bash
to re-scan the path, after which executing ruby -v
correctly reports
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.3.0]
rails
and switchtower
gems, including all dependencies. The installation worked fine, and so did switchtower
when I tested it.
I didn’t even need to remove Apple’s Ruby install.
If you do want to remove Apple’s installation of Ruby, you’ll want to back up and delete the following files and directories:
/usr/bin/erb
/usr/bin/irb
/usr/bin/rdoc
/usr/bin/ri
/usr/bin/ruby
/usr/bin/testrb
/usr/bin/gem
/usr/bin/gem_server
/usr/bin/gemwhich
/usr/bin/rake
/usr/lib/ruby/
/usr/lib/libruby.1.dylib
/usr/lib/libruby.dylib
/usr/share/ri/
Glasses Direct review
I’ve got some new glasses! I had my eyes tested in August, and the prescription had changed so little I didn’t fancy spending £200 to replace my old glasses (which I’d had for nearly 3 years). Then about 3 weeks ago, I was using my PowerBook in bed (calm down at the back there! I was designing a website…) and I realised I’d misplaced my glasses. I found them under the PowerBook, with the lenses scratching against the underside. The left lens picked up a big circular scratch almost exactly aligned with the centre of my eye.
Read More
Read More