Saturday, August 7, 2010

My Maemo development environment

The autum is almost here, so I think it is time to post something to here again. For that purpose, this message is the number one, I started to write this at the 8th of May, I did some edits during the June and July, but finally, I will post this to here, now the 7th of August, so it takes only 4 months to develope a blog post, but I had to say that it had been beautiful summer here at Finland (and still is, you can't say it is autumn when there is still almost 30 degrees of Celsius outside).

When I started to write pyKake, I just used the PyGTK Editor in my N900. And to create the first version of it, that was all I needed. Then, after I release the preview version of it (like I want to call that version 0.3), I find out that it was easier to edit and rewrite code in laptop and then move it to the device to test. That was nice and easy... as long as there weren't need to do multiple test in short time period. Problem was, that for every test you had to use email or mass storage mode (selected when you plug device to the computer) to get needed files into it.

So I did little research and find this nice guide how to to create SSH connection to the device, and again I was satisfied. In this point I just connect the device to computer and create a network connection to it (or basically 2 of them, because I also use the device as a mobile broadband). After this all I needed to do was to take the SFTP connection with FileZilla to it and trasfer the files.

So, in this point of code writing, I edited code with Gedit and send it to the N900 over the SFTP and then tested it (in the device), and that was pretty good way to code... Until I needed to do it multiple times in very short perioids. So I started the research again and ended up to this dynamic trio: Geany as an IDE, N900 as a testing environment and a small script to automatically upload modified source files to the device (so, I don't need to do it manually every time I save the file :P ). And the result? Well, when I edit the source and save the file, the script (if it is running) notice the modify and send the new one with the scp to the device, neat isn't it? And I had to mention, that if you use terminal plug-in of Geany to take ssh connection to the device and run the test, you got all (error) output you need in to the Geany, so it is simple to read during the coding. I like this, I like this a lot, and how you can do it buy yourself? Well, now I tell it to you, right after the jump.