Monday, January 3, 2011
OS rants
When I started up my desktop computer today (running Gentoo Linux) I noticed that my keyboard layout had, yet again, reset back to "us". The last time this happened was when the developers decided that the X configuration file was no longer a cool place to store configuration options and moved them out to HAL policy files. Took a bit of googling back then but I managed to get my keyboard working properly again easily enough.
So today, the HAL configuration was naturally the first place I looked. I remember that I had installed an update to xorg before shutting down my computer, so maybe some configuration key had been renamed or something. No amount of tweaking could restore the proper keymap. The configuration appeared fine in lshal, but X always loaded the default map. Finally, I found this. So apparently hal is now deprecated and udev is the way to go and settings are back in xorg.conf. Sigh. Progress I suppose.
Another problem. I tried to connect my work Windows 7 laptop to my home wireless network. After entering the details of my network, I was rewarded with the singularly unhelpful message "verkkoasetukset eivät ole tämän verkon edellytysten mukaiset", or something along those lines. (I accidentally selected the Finnish version when first starting up and haven't yet found the option to change it to English.) After some googling (good thing that wasn't my only computer!), it turned out this error (in my case) meant I had just selected the wrong encryption method (WPA vs. WPA2.)
But really? Can you make a less helpful error message? From the wording, I assumed I had to check some box somewhere to acknowledge that I'm allowed to connect to this network or something.
Wednesday, November 3, 2010
Drawpile at Github
Also, DP's source code is now hosted at GitHub. For a long time I've been wanting to switch over to Git from SVN and now seemed like a good time. The ability to create local branches was something I really wished for back when I was writing the first version of DP's tile based core.
OpenRaster has seen some development since the last time I looked at it, so DP's ORA support has to be updated to match the latest spec. Maybe use libora?
Wednesday, October 6, 2010
New blog
Also, a freshened up the front page a little.
Saturday, February 27, 2010
WTF copy protection?!
Seriously, WTF?! I can't believe movie companies are actually putting time and money in developing new and insidious ways of intentionally breaking their own products. And for what? Certainly not to stop piracy. Had I just downloaded an illegal copy I'd be watching the movie right now.
I've been itching to buy a blu ray player since the prices have come down to something reasonable now, but experiences like this really dampen that enthusiasm. What's the point in buying movies if you're just going to get treated as a criminal anyway? Might as well get the pirate version with all the "don't copy this movie" warnings and copy protection removed. Especially since backing up (or just watching, if you're using Linux) your own discs requires breaking the copy protection which is illegal too.
Thursday, February 18, 2010
Remote control
Solution: An IR receiver. Luckily it just so happens, I have an old IRMan lying around (basically a commercial version of [UIR](http://fly.cc.fer.hr/~mozgic/UIR/), albeit long discontinued).
Next problem: The computer is behind the couch, at the other end of the room.
Solution: [Universal IR Receiver Daemon](http://kbinstuff.googlepages.com/uirduniversalirreceiverdaemon). This neat little utility supports the UIR protocol and can send the IR codes over a network as UDP packets. Neat! Now I can connect the IRMan to my conveniently located home server which relays the button codes to my desktop PC.
Next problem: No receiver daemon!
Solution: A simple python script listens for incoming UDP packets, checks if the code matches an action defined in a configuration file, then executes that action. Currently amarok and mplayer are supported. Get the script at the [software odds & ends](http://www.luolamies.org/software/misc/) page.
Final problem: UIRD doesn't want to connect to my IRMan. Solution: Apparently a delay in the initialization routine was too short. Changing "usleep( 1000);" to "usleep( 10000)" in init_irmodule.c seemed to fix the it.
Saturday, December 5, 2009
The N900 is sweet
About two weeks ago I received my shiny new N900 mobile computer. This is the latest model in Nokia's internet tablet series, which includes the 770, the N800 and N810. Unlike its predecessors, the N900 now also works as a phone. I had previously owned only the 770, so the switch to the latest model was quite a leap.
The 770 was released almost exactly four years ago, and if you put it side by side with the N900 it becomes obvious that much progress has been made. The N900 is slightly smaller, albeit thicker and heavier, but it easily fits in a pocket. It lacks the screen protector though, so some kind of a carrying case or pouch is a must to avoid scratches. N900 still uses a resistive touch screen, meaning no multi-touch. The screen feels similar to the one in the N97 phone and is clearly optimized for use with a finger, whereas 770 was best used with a stylus.
The slide-out keyboard is much faster to use than 770's virtual keyboard, although this feature was actually introduced in the previous N810 model already. For short texts, the finger friendly virtual keyboard is also quite fast to use now.
The software side has seen great improvements as well. The UI in general looks very modern and feels much snappier and more responsive than the 770's. Especially the web browser is much nicer. Being Firefox based, it renders pages just like on a desktop PC. The flash player has been updated and it can now even play Youtube videos. Most importantly, the new browser is fast! Visiting a large page with the 770 would lock up the browser, whereas the N900 is snappy and smooth even on JavaScript heavy pages like Slashdot.
Another cool thing is that the N900 comes with an X terminal built-in and sudo gainroot.sh is all it takes to get root access. This is something most "regular" users probably won't care about, but I for one appreciate it when the manufacturer actually lets me do what I want with the hardware I bought, rather than actively discourage it.
The N900 is by no means perfect though. Syncing the calendar or address book with Ovi is not supported, which is odd considering how much Nokia promotes it. There's even a Ovi Store icon in the application menu, which just brings up a page saying the Ovi store for maemo is not open yet. Ovi maps is strangely limited. It takes ages to load and hogs the whole screen while doing so, meaning I can't switch to some other app while it loads. Basic features like voice navigation and location bookmarking are missing and the maps seem to be a bit out of date.
At first glance, the actual phone functionality seems almost like its hidden. It becomes clearer, however, when you understand that the N900 is not a phone with a built-in computer, but a computer with a built-in phone. With this in mind, the phone features (including Skype, Google talk and SIP) become easy, even intuitive, to use.
Despite the problems, many of which will undoubtably be fixed in future updates, I would say the N900 is an excellent mobile computer/phone. Is it the iPhone killer? No. In terms of ease of use, the iPhone is still miles ahead. But N900 is the phone for engineers and nerds.
Monday, March 2, 2009
Arduino
From a quick peek over at Hack a Day and other electronics blogs it seems like everyone and their cat are doing Arduino projects nowadays. I finally caved in and decided to see what all the fuss is about, and ordered an Arduino Duemilanove from sparkfun, which arrived today. I've only had it for a few hours now, and I already love it. Arduino, together with a breadboard and sparkfun's premium M/M jumper wires equals prototyping bliss ;) With help from the sample programs that comes with the Arduino IDE, I managed to put together a quick IR-reflector controlled servo test thingy in just a couple of minutes with no prior experience with the platform. Doing the same with a PIC would have taken me much longer, despite my greater experience with them.
Installing the PC software was fairly straightforward, even though I run 64 bit gentoo on my desktop. I followed the gentoo instructions and just had to replace the bundled Rxtx.so with a link to the one provided by the distribution. The FTDI driver I had compiled earlier, so the rest was plug and play.
