I just upgraded my HTPC from some old Ubuntu to Debian Lenny, mostly to get the newest 0.22 version of MythTV. The installation was pretty straightforward except that the channel scanning didn’t work. For this I had to use the scan program to get a channels.conf file to import into MythTV. After that all was fine. Except that I didn’t have any EIT data. And that annoying problem has now been bugging me for over two weeks and hundreds of browsed MythTV forum pages and HOWTOs. Until I today found a solution.
Rails: interning empty string
This is one of those errors in Rails that just make you go WTF!? The amount of debug information is minimal, and the row that supposedly is the culprit is syntactically correct. Even Google doesn’t really help. I gather that this error can occur in several different contexts and caused by different things, so I’m not trying to provide an all purpose solution to this. The case I’m going to show you is probably quite rare, but it happened to us at work today. I never figured out exactly why Rails chokes in this situation, but I found a way to reproduce the problem and also a solution. The main characters in this drama are the respond_to and render methods, and the main villain is a mysterious invisible parameter.
Filed under Geek speak, Ruby on Rails
Getting iTunes Genius into MPD
I just wrote my first ever AppleScript to solve a problem I’ve had for some time. As I’ve mentioned several times before, I use the MPD music player on my HTPC to play music through my amplifier while controlling playback using my laptop or mobile phone. This works like a charm and I’ve been really satisfied with this setup — until I fell in love with iTunes’ Genius function.
I use iTunes on my MacBook and mainly at work, either listening through my headphones or streaming music to the office speakers using our AirPort Extreme. As my library is rather diverse, I like to use Genius to get an ad hoc playlist of similar songs to avoid the “shuffle all, press next until a good song comes along” selection method. Needless to say, Genius has worked fabulously. However, when I come home and start playing music through MPD, I’m back to the shuffle all hell since I can’t be bothered creating playlists manually.
So this got me thinking: Is there any way I can use iTunes Genius together with MPD? The answer is yes, and the tool I used is AppleScript.
Filed under AppleScript, Geek speak, Linux, Mac
Gili T – Last days of the year and on the island
Hangover. Major hangover. The local vodka we had last night was either too impure or too plenty, or both. It’s the first day of the new year and our last day on Gili Trawangan. Today’s activities are kept to a minimum, we need to eat and Outi wanted to do some tanning on the beach. And since we’re leaving early in the morning on the 2nd, we need to make all preparations today. But that’s already more than our (or especially Fredrik’s) physical condition allows.
Filed under The Perströms in South East Asia
Gili T – Going Round and Round and Round
As we mentioned before, there are no motorized vehicles on the Gili Islands, the only means of transportation are your own two feet, bicycles and cidomo (the horse-drawn carts). We tried out the cidomos yesterday on Gili Meno, but the horses didn’t seem to enjoy their position, so today we decided to rent a couple of old bikes (24h for 80.000 rupiah / 6 euros) and make a sight-seeing tour around the island.
Filed under The Perströms in South East Asia
Gili Meno – Turtles and a leaking sack
Life here on the Gilis is easy. You get up, get breakfast served to either one of your balconies, go to diving school or out snorkeling, take a nap before dinner, go out to one of Trawangan’s many excellent restaurants, have a few beers and watch the sun set behind the island’s only ”mountain”. There’s really not much you can do on an island not much bigger than the Suomenlinna sea fortress outside of Helsinki. The sea is everywhere and that’s what offers the most activities.
Filed under The Perströms in South East Asia
Gili T – In the Depth of the Deep Blue Sea
The day had come. We retired early yesterday to have time for a good night’s sleep before the early wake-up and banana pancaces with mixed fruit juice on the ”breakfast balcony”. With satisfied stomachs and skin smelling of sun lotion, we packed our backpack and headed for school, scuba diving school. At the time of writing, the first day of our PADI Open Water Diving course has been successfully executed, earning us a couple of beers and some quality time with the laptop. And we can’t wait to go back to school tomorrow.
Filed under The Perströms in South East Asia
Gili Trawangan – First Impressions
Where do we begin? With the clear turquoise sea, with the mountain contours in the horizon, with the dozens of restaurants and bars scattered along the never-ending beach or with our bungalow’s two balconies? We’ve arrived in paradise, at least compared to Bali.
Filed under The Perströms in South East Asia
Bali – Tanah Lot
December 24th. Here it’s a normal day as any other. Christmas is celebrated mainly for the tourists and since most tourists celebrate Christmas on the 25th or 26th, this day is just another Thursday. The usual American Christmas songs about winter wonderland and chestnuts over open fire and so on are played in shopping malls and kiosks although it’s over 30 degrees hot. Even our frequently visited MiniMart where we can use the internet for free has got snowflakes and snowmen in the window. Despite these attempts to create a Christmas feeling, the real Christmas spirit is about 9000 km northwest.
Filed under The Perströms in South East Asia
Bali – Sanur
Our two wheeled Mio quickly became our best friend here on Bali. Instead of tiring our feet with walking, Mio took us from A to B (mostly via C and/or D) quickly and painlessly. After two days of driving, we’ve become accustomed with the Balinese way of driving. Excessive use of the horn to make fellow drivers aware of your exstence, zig-zagging between cars, bypassing on either side as long as there is just enough room, and taking other vehicles in consideration to create a dynamic and, though a bit chaotic, quite well functioning traffic.
Filed under The Perströms in South East Asia
