22
Feb 10

Ruby Version Reminder

rvm is great, but I still sometimes lose track of which Ruby version I’m currently using. As a little reminder, I put the Ruby version in my shell prompt, like this:

PS1="\u `ruby -v | grep -e "[0-9]\.[0-9]\.[0-9]" -o` \w"

Works nicely.


03
Sep 09

Hoccer

I use this posting for blatantly advertising one of the development projects I was recently involved in – an Android application called Hoccer. It was released by ART+COM Technologies as a free app on the Android Market and as entry for the 2nd Android Developer Challenge.

The aim of Hoccer is to simplify the process of sharing data (currently pictures and contacts) between devices – you use certain gestures for one-to-one (tap) or one-to-many (throw/catch) to determine sender and receiver(s) and the data is transferred over the internet subsequently, so no other mechanism of pairing etc. is needed.

An iPhone version is currently under development, and there’s a web client to hoc data from a desktop computer to a mobile device, so no one’s left out.


17
Feb 09

Perl programmers are psychopaths

I always suspected that anyone who likes to write Perl programs can’t be a healthy human being, but I didn’t know what evil, murderous psychopaths these people really are until I read this headline:

How to optionally kill a child and capture status if not killed

How could killing a child ever be optional? It’s illegal! It’s disgusting!

We must not tolerate these criminals in our midst any longer. Now is the time to put an end to that vicious disease called Perl.


15
Feb 09

Innovative Telephone Scams

There seems to be a new kind of scam, involving the telephone network: my sister (from her O2 mobile phone) called me (on my Alice fixed-line phone), but the Lithuanian premium-rate number 0037091005481 was displayed as caller ID – although we’re both in Germany! This has happened to dozens or probably hundreds of people in Germany in the last few weeks, apparently mostly to customers of O2 and Alice.

Of course, phone scams have been around for a while, but they usually involve social rather than technical engineering. The twist in this one is that the scammers must have hacked some kind of telephone switches. I don’t know what hardware and software phone providers are using these days, but I think it’s safe to assume that it’s connected to the Internet, and it’s increasingly involving VoIP. It’s also interesting to note that Alice cooperates with O2 for its mobile services. Integrating disparate systems can get messy – maybe a door was accidentally left open somewhere on the way?

Being curious, I called that mysterious number and heard the following recording:

Thank you for calling pentowork [sic? the name was hard to understand] payment system, the most efficient internet based billing solution. To receive your unique PIN code, you are required to hold the line for thirty minutes.

So the aim seems to be the same as in many other phone scams – get people to call an expensive number, and make them stay on the line for as long as possible. The three or four calls it took to correctly write down the recording cost me about €10, but I also got to enjoy some nice background music: Comanche from the Pulp Fiction Soundtrack and Man on the Moon by REM. I wonder what they selected for the remaining half hour…

More reports and speculation can be found at this thread about the scam (in German), some of which involves the Lithuanian secret service, letters to Vladimir Putin, emails to the Bundesnetzagentur and the fact that 0037 was also the international calling code of East Germany.


07
Feb 09

“gem install mysql” on Debian

Short note to myself and whom it my concern. If you try to sudo gem install mysql on a Debian system and it responds, after some working, with:

Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
(...)
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
(...)
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

then this should be the solution for you: First you install libmysqlclient15-dev, which generates a mysql_config file, and the install the gem using the config.


07
Feb 09

Keeping Up with Rails

I’m currently updating a not-so-small application from Rails 2.0.2 to 2.2.2 and it seems that about every other plugin is not compatible with the new version, because one or the other method was removed,  and I have to update them as well. Not such a big problem, if a compatible version exists, but takes quite some time, and I don’t understand that I have to go through this hassle (and other hassles) about everytime I update to a new Rails version. I don’t remember having this kind of trouble when I was working in Java Land. Can somebody explain?


04
Feb 09

Developer Frustrations

I need unit tests for my unit tests testing whether the unit tests do correct tests or not. And a decent TestNG documentation.


22
Jan 09

Developer Frustrations

Constructing software surely is satisfying work. But these days I dream of constructing airships. What if you could actually see the product of your very own hands, climb into it, loose the tag lines and fly away?


29
Oct 08

Dirty Source Code

Why, oh why do classes, which have the purpose to remove something from documents, always have to be named “XYZStripper”? As a programmer faithful to the (often unwritten) coding conventions, I have to name instances of such classes of course – “stripper“. Unfortunately the names of those stripping methods do not quite match the juicyness of the class name. I would like to code things like stripper.renderNaked() or stripper.undoClips().

And with a swing of her hips
She started to strip
To tremendous applause
She took of her drawers

And with a lick of her lips
She undid all her clips
And threw it all in the air
And everybody stared

Chris de Burgh: Patricia the Stripper


23
Oct 08

Google Code Search

This must be either really new or – what seems more likely – I have slept over Google’s developments the last year. Google Code allows for a regular-expression-based search in publicly available source code. Nice one.


Better Tag Cloud