KAOMP

KAOMP Screenshot I found a command line client to download files from All Of MP3. Because I had a free day I wrote a KDE GUI from the command line code and called the application “KAOMP“. It has two additional features compared to the command line application: It shows a list of the downloadable files and shows a progress bar while downloading. The allofmp3 account data still has to be entered on the command line, but just once.

The Beginning Of An Assembler

I haven’t used my XGS much in the last few weeks. It would help if there were an assembler I could use in Linux, because it it inconvenient to boot Windows every time. There is a thread in the XGS forum about how to write an assembler. It seems to be surprisingly easy. The follwing code just needs to be extended to output the opcodes for every assembler command and save that to a file.

#!/usr/bin/python

import string

def t():

  print "test"

table={ ';': t,'mov': t, 'DEVICE': t, 'clrb': t, 'setb': t }

f=open('/home/rainer/src/sx52/examples/tut001.src', 'r')

contents = map(string.strip, f.readlines())

for x in contents:
      token=x.split(' ')
      #print token
      if table.has_key(token[0]):
           table[token[0]]()
f.close()

Animal Tracker 3D 0.01

AT3D Screenshot A first version of the viewer is now available (for MS Windows only currently). Use the keys on the number pad to rotate the enclosure and press Ctrl plus the rotation key to move and zoom. Press “0″ (zero) to reset the view.

A new program (which needs a name)

Since two weeks I am coding a program which can help to create sociograms of animals. Or that’s at least what I’ve been told :) . You can mark the positions of the animals visually on a map for every observation and the program can automatically calculate the distances between the animals. The screenshot to left shows nothing sensible. If nothing else it’s at least a funny vector drawing program :) I just made the screenshot to show how the application looks. The program is already usable and I’ll release it in a week or two. I am curious if there is demand for it. My “customer” told me of a dos program which previously was used for such things. It’s a pain to use in my opinion at least in Windows because it only runs in fullscreen mode which means a flickering 60Hz screen refresh rate. In Linux it runs with dosemu/freedos in a window. The program itself wastes a lot of space for the display of keyboard buttons like it was made for a tablet pc and it was written in 97 when Windows 95 was already existing for sometime.

Currently only the windows version exists, or works, because it is written for a windows user, but it is written with wxWindows so I will try to make it work with GTK after the windows version is finished. I’d rather have used QT but the 3.0 Version unfortunately is not free for Windows. wxWindows as a framework is ok. It can’t be that bad after what I have achieved after two weeks, but I’d like it more if the applications would work in Windows and Linux without modification. The canvas for example is flickering terribly if I compile it with GTK. The wxWindows Mailing List is really good. I’ve asked two questions and I got helpful replys to both of them.

My original intention was to develop the program in Linux, but after using VC++ again after a while I realized how good the IDE is, although Gideon and KDevelop are pretty good too. The biggest advantage of VC++ to me is the ability to use precompiled headers. This really saved me a lot of time. In the beginning when I used GCC 3.2 I really had to wait a few seconds (20-30), until it was compiled. In VC++ it takes about five seconds. It compiled nearly instantly. I am usually a lazy/stupid programmer. I rather code something, compile/execute it and wait for errors than think about the code I write. GCC will have precompiled headers in the 3.4 version so it will take some time until it’s available in Linux. I rarely boot Linux these days but at least I installed Msys and Mingw, the gnu tools and gcc for windows, which helps a bit. I only miss dselect :)