Odds are not in my favor lately
Posted on June 20th, 2008
I spent the day fussing with programming. Some of which was more toolkit stuff. Yesterday I managed to actually get a hello world app for a toolkit to compile, so I had a chance of getting it working. In the end it didn't work. There seems to be neither API nor documentation on how to load colored images (which is a bit of a must-have feature for obvious reasons). Attempting to load a colored graphic using the API for monochrome graphics crashed the program. At one point I attempted to install a simple graphic editor using apt-get, and somehow it went strange (as in, I typed apt-get install $package and it apparently assumed I meant apt-get dist-upgrade). Thus the Linux VM is toast; it can't run anything save for XTerm all of a sudden.

During the evening I spent some time working with the prototype for Project Metal. While I like the maps it generates, I'm not overly fond of their size: 8.59 MB each. Thus my goal was simply making the files smaller. In memory, 8.59 MB is reasonable, but not for the filesize of something that'll get swapped to and from disk often. In the end I managed to shrink it to about 315 KB (~0.315 MB). It might be possible to compress it further; compressing the file with RAR results in a 9 KB file. I might fuss with that again tomorrow. And for the record, this 315 KB version does decompress to 8.59 MB with no lossage.

Three links for today:
Geeks haggle over Dungeons and Dragons manuals like nobody else. Here's a look at what life would be like if they treated cookbooks the same way.

Meet Mr. security expert.

A new source of road rage: radar guns.

MENU




- NAVIGATION -
Most recent posts
Previous Post
Next Post

- ARCHIVES -

2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007

- FOLLOW -

RSS
LJ Feed

Contact

List of UGuardian's Websites