Kaylee v0.3

Posted on 20 kesäkuu 2013 in Articles • Tagged with Kaylee, Python, programming • 2 min read

Ladies and Gentlemen! I am proud to announce that Kaylee v0.3 has been finally released!


Continue reading

PyRegs: The Python Regex Debugger

Posted on 22 toukokuu 2013 in Articles • Tagged with programming, Python • 1 min read

Long ago, I learned the regular expressions in order to write a simple syntax highlighting engine. Regular expressions are not hard to master, but take time to practice. Kodos was the regex debugger of my choice, as it was written in Python. All these years Kodos was a "must have" tool on my development machines. Suddenly with the new version of Debian operating system, Kodos was not in the repositories anymore! Why? Kodos is based on QT3 widgets toolkit, which is a bit outdated nowadays (QT5 has been released recently) and was removed from Debian 7.0 ("Wheezy"). That is how I decided to write a small Python regex debugger in Python 3 and its de-facto standard Tkinter bindings to the Tk GUI toolkit.


Continue reading

Thoughts about XML structure: elements vs. attributes

Posted on 18 toukokuu 2013 in Articles • Tagged with programming, XML • 3 min read

Exploring XML elements versus attributes.


Continue reading

Kaylee

Posted on 28 elokuu 2012 in Articles • Tagged with programming, projects, Python, CoffeeScript, Kaylee • 1 min read

I just returned from my summer vacation and can finally state: another summer is over. But wonderful summer it was! I finally graduated and got a Master's degree in computer science. I cycled a lot and upgraded my MTB skills. I read lot of fiction. And somewhere between work, sports reading and sleeping was Kaylee, a distributed and volunteer in-browser computing framework.


Continue reading

C's heritage: bitwise and equality operators

Posted on 29 joulukuu 2011 in Articles • Tagged with programming, C, JavaScript • 2 min read

The design of C made by Brian Kernighan and Dennis Ritchie has influenced the whole software and hardware industry. Sometimes you can feel the heritage of C even in modern high-level dynamic languages like Javascript.


Continue reading

Python: comparing to None

Posted on 01 elokuu 2011 in Articles • Tagged with programming, Python • 1 min read

Python's documentation states that one has to use the is operator to compare a variable to None. What happens when you avoid that advice?


Continue reading

Inside Python: understanding os.listdir()

Posted on 08 toukokuu 2011 in Articles • Tagged with programming, Linux, Python, C • 2 min read

If you've been using python for a long time, then you surely know that os.listdir() function returns an unsorted list of file names. I didn't care much until facing a situation, in which the sorted-sequential processing of files was crucial, and I could not remember whether the previous file processing were done in sorted order. Well, luckily they were. But hey, this is a little bit annoying, isn't it? Why os.listdir() returns an unsorted list of files? Would you like to find out?


Continue reading

Assembler for beginners

Posted on 08 elokuu 2010 in Articles • Tagged with programming, Assembler • 1 min read

About introductory book to programming using assembly language.


Continue reading

Inside Python subprocess communication

Posted on 24 huhtikuu 2010 in Articles • Tagged with programming, Python • 5 min read

Sometimes, it's really hard to understand what happens inside a function or even a whole module of Python's Standard library. For example, the subprocess module contains a very tricky Popep class. I tried to use the the module to communicate with a MATLAB subprocess shell (e.g. send MATLAB commands to subprocess and read the output). Unfortunately I failed and was just able to pass a MATLAB script via command-line arguments. Yet, I learnt much about the Popen.communicate() method and I'd like to share this knowledge with you.


Continue reading

Python classes: Dynamic properties

Posted on 10 maaliskuu 2010 in Articles • Tagged with programming, Python • 3 min read

Python never stops surprising me. While doing my master IT project, I was looking for a way to add dynamic properties to classes (we're speaking of new-style classes of course!). I did a little research and here are the results...


Continue reading