2009-11-05

Interesting coding

I have done some interesting coding lately. At first I took part of Qt Code Camp and created a file transfer application called QFriendsLOL. The code camp last one week and we did our best, however few last minute changes broke some functionality. After that week I had to finish my Connect four game. I did only the curses UI, but It wasn't so easy. Now I'm taking part of Agile Web Development and Ruby on Rails -course. Rails is so cute and I want to do all my new sites with it. However there is lack of support it in the cheapest servers :/

2009-10-05

After huge coding flow

Yesterday I had very good coding flow and got core package done in my Programming in Python project. I have the project in GitHub, so people can see my work. It also gives me lots of good information and if someone comments on it, that would be much nicer :) The name of my project is Tuqqna and it is kabyle word for connection. The project is my implementation of Connect Four game. I'm planning to create it to be played in player VS player and player VS AI. There will be curses cli-UI and TkInter GUI.

I'm developing Tuqqna with principals of Test-Driven Development, so at first I create unit tests and then the code that pass the tests. There will be lots of refractoring, but the result will be stable and fully tested. I haven't done so much testing before and never tested UI with unit tests, so this will be very rich experience for me :)

Today I learned, how to watch ripped DVD's with mplayer without mounting them before.
mplayer dvd:// -dvd-device /path/to/disc/main/directory/

Now I'm going to write design document for Tuqqna.

Good night,
Sami

2009-10-03

Adventures with Windows

I'm participating in Introduction to Game Programming -course and in this time games must be made with C# and XNA. I had troubles with building Mono so I had to use Windows. For my luck, I got new EEEPC, because I'm tutoring. I made it dual boot Windows XP and Ubuntu.

There is still time to create actual game and I'm not yet in some group with whom I'm supposed to create that game. However it is still plenty of time for that. Meanwhile I'm configuring Windows so it is a little bit more usable. I'm so in with tiling window managers, so I need to find a good replacement for Xmonad in Windows environment. Xmonad isn't ported in Windows :( However I tested before HashTwm, but the version, which contains functionality I'm looking for, is still in beta phase, which makes a big headache. So I looked for something else and found bug.n.

Bug.n contains some autohotkey-scripts, which makes all the magic. At first I tested latest stable binary version, because I didn't have installed autohotkey compiler. It was more than I expected from tiling window manager for Windows. It had many functionality from Awesome. However I didn't like the default colours and I really wanted to see also battery state in bar. So I installed autohotkey compiler, modified the configure script and got very good result. That was only the beginning, because I also wanted to change some of the keybindings. At finally I got a result, which I was pleased.

I did some basic modifications also for windows registers and other properties to get a pleased experience with Windows. Focus follows the mouse was one of those modifications. However the usability is a little bit of sticky after so many improvements, but it isn't bad.

2009-07-26

WLAN configuration

There is lots of difference between distribution configurations. Today I finally fixed my sister's wlan configuration from pre-up-post-down-hax. I read about debian/ubuntu wpa_supplicant configuration, when one of my study pal was searching the correct way to do that. I found an article from Made of Bugs blog.

Debian way to do wpa_supplicant activation:
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


Gentoo way (baselayout1) to do same thing:
config_wlan0=( "dhcp" )
modules_wlan0=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"

Personally I like the gentoo way more.

2009-07-22

Long time no blogging and some unix related stuff

I haven't blogged for a long time. Last time I tested new program, which improves blogging, but it was only one time.

In about a year I have changed my major linux distribution from ubuntu to gentoo. It is quite fast to compile with dual core, so I haven't regreted my choice ;) It isn't just the minor speed improve, which might come with self-compiled packages, but the configuration system. I like the gentoo way to do thing. And the default bash colors, I can only say aww <3

I saw an url today in IRC, which points in Kenneth Falck's blog post. It was about the $PATH variable. I got an inspiration from that and made my own variation much useable: [[ -d ${HOME}/bin ]] && ! [[ ${PATH} =~ "${HOME}/bin" ]] && export PATH="${PATH}:${HOME}/bin"

All comments are welcome :)