fake's blog

everything fake

Keyword - code

Entries feed - Comments feed

AVM Fritz! Box vs. OS X Address Book

I am a pretty happy user of a freetz'd AVM Fritz! Box 7140 for a while now, the only thing bugging me was the lack of an address book import built into the box. i tried messing around with the /var/flash/phonebook file, but for some reason my xml files kept being rejected. ultimately, i found a utility called "Fritz!box Monitor" or short FBM, which is supplied by AVM. It can import CSV files in a certain (pretty weird) format, so i re-wrote my xml-generator to print out that format instead. FBM's a windows program of course, so fire up your parallels/fusion/qemu/whatever. You have to edit fritzboxmonitor.ini in it's program directory before using this, and set the key ExportAll to 1. I also set the AutoSpeedDial entry to 0 because i don't use speed dialing and thus the csv exporter doesn't support it. The exporter is written in python, i used this script as a basis. It's an ugly quick hack, so bear with me. It should work with mac os x 10.5.5 stock python, probably earlier, too. You can find the exporter script here. i also came up with a version that exports to a windows-addressbook-reimportable format; i use it to push my contacts to a siemens gigaset sl56 bluetooth enabled dect phone, which only supports a windows program as source either. that version is here.

minipokereval

about one year ago i played with poker evaluation libraries, and found one of the university of alberta computer poker research group which i liked best. i hacked up a little "evaluator" using free card graphics from opencliparts.org. it's not a complete game, but it's still fun. i think ;)
minipokereval.png
here you go: minipokerval.jar i found the library sufficient in features, easy to use and it has a small footprint. i started to work on some poker server using flex, but didn't really get far before i was overloaded with work and school again ... you know how it is...

Planets 0.2.53

I quickly packed to together the changes i made since the last release of planets, which are:
  • automatically select a planet if "distance" is clicked, so something happens visually
  • background- and gridcolors are now configurable through a new "preferences" menu item
  • the size of one calculation step is also configurable in that new dialog - bigger values means it becomes less accurate.
I needed the background- and gridcolors changeable for the documentation i wrote (see below, german only, sorry). i also came up with a few more examples (sorry for the germanisms in the file names...), but removed the screenshots from that package. here we go: there are again binary builds for windows 32bit (almost untested) and for mac os x 10.4 or later (universal) available:
the source: and the new samples package: the - as mentioned - german-only documentation is available as PDF file, it's not exactly a documentation of the software as you would expect it handed alongside a program, but rather a description of the purpose of the project in general, spiced with a few technical details of how the simulation works. nothing special, though - i wish days had more hours ;-)

iPhone SDK - first usable output

while playing around with the iPhone SDK, i quickly lost my motivation digging through the Cocoa Touch API definitions, not being able to run the code on my phone just removes the fun for me... i want to play, not design ;-) I guess i'll have to start writing some Mac Cocoa apps first, anyway, though this Objective-C they keep talking about doesn't look as weird as i initially thought. Meanwhile, in part due to the lack of an Interface Builder for the iPhone, i played with the extensions made to Dashcode, quickly hacking up the micro-app i intended to code for my SO in native Objective C (which i will maybe do later on... when it's fun, heh). The overall time i spent on this is about 2 hours.
It's a points calculator using the (european) formula of "an international company that offers various dieting products and services to assist weight loss and maintenance". it's called "PtCalc" because i'm so creative. You can check it out at
http://f4k3.net/~fake/PtCalc/
i also uploaded the dashcode source file and the generated output files in case you want to drop it onto your iPhone / iPod touch and use the file://-Support-Hack (there is a patch in Installer for most firmware versions), copy it onto your home server, print it out, or whatever you may want to do with it, i don't care - in other words: Public Domain... the scale on the calories is from 0 - 700 kcal; the fat is from 0 - 70 g. like it or not, i seldom eat something with more than that per 100g. and i can do *5 and alike calculations in my head ;) if you suggest some new features, i might even give it a whirl and put some more energy into this before the iPhone firmware 2.0 ( + jailbreak + unlock) release. (2008-03-13) note: i changed the graphics included in the zip file and in the hosted versions to be of optimal size. they were huge...

First "Planets"-Release: Planets 0.1.47

Note: there is a newer version available here.



From the "I'd rather be toying around with the iPhone SDK" - department:

Finally it is mature enough so i can put a first version "out there": Planets, a multi-platform gravitational movement simulator written in C++ using Trolltech's wonderful Qt 4 is here!

There are binary builds for windows 32bit (almost untested) and for mac os x 10.4 or later (universal) available:


A binary X11-Version (for Linux, *BSD, ... ) is not available (packagers? anyone? there are only 1000 combinations to choose from ;-), so please compile yourself (it's easy, see included README) using the source:

Also available are a few example .planet files:


Obviously, there is not much practical use in this program, it's merely part of a technical lecture i'll be giving sometime next month. Stay tuned for documentation and have fun gravitating ;-)

I'd be happy if you report bugs either via mail or as a comment on the bottom of this article. Also i'd be interested in the .planet files you create - please send them to me via mail, i'll publish them here if you like. Also, patches are gratefully accepted via mail, once i held the technical lecture (and hopefully got a good grade *g*)

-----

- page 2 of 3 -