Category Archives: Uncategorized

Development for Android vs iPhone

There’s a post on Slashdot linking to an article on Gamasutra about why you should consider developing using Android.

Native SDK: http://www.engadget.com/2009/06/25/android-1-5-gets-official-sdk-for-native-development/

Update (December 15th 2010): At the time, I was not sufficiently informed about specifics of development for either Android nor iPhone. Currently, I believe native development for iPhone is far easier and better done. Objective-C is quite similar to C. With iPhone, one does not have to get his hands dirty with Java, and sometimes it’s even possible not to touch Objective-C at all. I haven’t worked with Android, but their current SDK does not inspire me to create anything. If I were giving an advice today, and you had to make a choice, I’d say you should develop for iPhone, no matter what.

P2PVPN 0.7

Anyone looking for a piece  of software similar to Hamachi, but open source free software – take a look at P2PVPN. It uses torrent trackers for finding nodes, it works on GNU/Linux and Windows and individual nodes do the forwarding. (This also means at least one node in network needs to be able to accept connections but that can probably be arranged.)

Now, since this is a blog with programmer’s thoughts, I’ve taken special interest in this program’s source code; especially in how it manages to use OpenVPN‘s TUN/TAP driver under Windows. You see, TUN/TAP devices under GNU/Linux reveal themselves to be just simple named file descriptors you can write into and read from. But how to do it under Windows?  This seemed like it might be another one of those things where you can venture around the net for days looking for an answer, but luckily, there was no need for that.

P2PVPN’s got two versions of its low level code for accessing TUN/TAP devices, one for GNU/Linux and one for Windows. They are written in C and are Java wrappers for accessing the devices. Windows version has 280 lines of code excluding header, and GNU/Linux version has 111 lines excluding header. They are a must-read tutorial for anyone wanting to write some code that has to do with virtual network devices and VPN. P2PVPN’s licensed under GPLv3, and the TUN/TAP Java wrapper code is licensed under LGPLv3.

Wolfgang Ginolas did some great work here. Anyone that wants to try something new aside from Hamachi, or wants to write their own VPN software, should take a look at P2PVPN.

Trams in Zagreb run (at least) X11

Raw unrotated cellphone pic, just taken.
These cool, touchscreen-enabled, smartcard-reading devices for ticket sales/verification seem to have only one flaw: a chunk of Engrish (‘select zone or aproach [sic] card’). They even run X11, probably on a UNIX! I suspect each device is just a dumb terminal that gets imagery over network, since other devices in the tram had proper (or improper, if switched to English) GUI displayed.

Легенда Хрустальной долины in Russian!

A shipment of CDs with Russian edition of The Legend of Crystal Valley has just arrived in Cateia! LoCV is published by Akella, and that’s so awesome.

Akella’s site about LoCV is here.

Now, if only they didn’t put outdated screenies on the cover … 😉

Windows Product Activation – "significant hardware changes"


I’ve just had a run-in with deactivation of Windows XP due to “significant hardware changes since the copy was last activated”. But, since I installed XP, the only thing I did was remove 512MB of RAM in the laptop, and install 1GB of RAM. I also plugged in the USB mouse during the bootup.

What probably triggered it, however, was changing filesystem of the system partition from FAT32 to NTFS using Microsoft’s own convert.exe, included with Windows. I have no idea where they’re pulling out the idea that filesystem of root system partition is a hardware thing.
I have no idea if this reactivation ate one of my activation slots for this product key, since Microsoft’s Knowledge Base link on the subject appears down. I surely hope I won’t have to deal with tech support; I’ve heard they’re friendly and unintrusive in Croatia, but still…
(By the way, unusually for tech-savvy Croats, this is a legit copy. From MSDNAA and FER, of course 🙂
Since there’s no way I could have captured the messagebox that appears during login (this isn’t a VM and I don’t have a good camera) included is just a leftover shot of WGA, after repeated activation.