Processing monster

Nikolaus Gradwohl2008-11-18T19:11:00+00:00

This time i haven't found a monster - i made one. in processing.

monster screenshot

read more ...

dns cache flushing on a mac

Nikolaus Gradwohl2008-11-05T21:06:00+00:00

If you ever have to change a dns-entry and wonder for hours and hours why the changes don't appear on your mac (as you may have noticed, this article has a little autobiographic touch) - try flushing your dns cache

sudo dscacheutil -flushcache

should do the trick on leopard

read more ...


Nikolaus Gradwohl2008-11-04T20:01:00+00:00

Today another monster showed up in my frying pan - this time made of vegetable oil. i guess they are after me and want to freighten me to death - or the monster is testing new appearences because of the rising oil price - who knows ...


read more ...

Surealistic Unix-commands

Nikolaus Gradwohl2008-10-27T19:13:00+00:00

echo "Ceci n'est pas une pipe" | less

if you don't know why this is funny you either have no unix experience or you don't know René Magritte :-)

read more ...

Fun with sine and cosine

Nikolaus Gradwohl2008-10-24T06:22:00+00:00

I just played a bit with sine and cosine and got a very nice picture. the code takes some time to run, so i post a pregenerated image this time.

<typo:lightbox src="/img/guru/sincosfun.png" thumbsrc="/img/guru/sincosfun_prev.png"/>

float r;
void setup() {
  r = max( width/2, height/2) * 0.8;
void draw() {
  stroke( 255, 2 );
  lines( 4 );
  filter( BLUR, 4 );
  stroke( 255, 6 );
  lines( 2);

void lines( float factor ) {
  for ( int j = 0; j < 360 * 10 * factor; j++ ) {
    float i = j/factor;
    line( width/2 - r * cos( radians( i / 2.1 )), 
          height/2 - r * sin( radians( i  )),
          width/2 - r * sin( radians ( i / 1.01  )),
          height/2 - r * cos( radians( 180 - i ))
read more ...

patching pose for Ubuntu 8.04

Nikolaus Gradwohl2008-10-23T20:09:00+00:00

I recently found my old Palm IIIe in one of my "old-hardware"-boxes, and wanted to write some programs for it (coding nostalgia :-)). Unfortunately the ubuntu package is broken and every time i started it i got a "hardware exception #3"

not so funny

after some googling i found out that i'm not the only one and there is a ubuntu bugreport including a patch

i could not get the posted dsc file to work so i searched a bit and found out how to apply the patch manually

first fetch the sourcecode of the pose package

apt-get source pose

then change into the directory cd pose-3.5

and copy the download patch to debian/patches

than edit the debian/patches/00list and append the filename of the patch (50_gcc41.dpatch)

change the version of the package using

dch -i

and buidl the deb files with

dpkg-buildpackage -rfakeroot -uc -b

then change to the parent directory and install the newly build deb files using

sudo dpkg -i pose_3.5-9.1ubuntu2_i386.deb
sudo dpkg -i pose-doc_3.5-9.1ubuntu2_all.deb

é voilà! - a working pose

read more ...

Linedemo in processing.js

Nikolaus Gradwohl2008-10-20T19:47:00+00:00

Todays usless processing-sketch is written in a processing dialect written in java-script. The demo shows a rotating line and uses the canvas element. So if you can't see anything try another browser.

read more ...


Nikolaus Gradwohl2008-10-14T21:02:00+00:00

They are everywhere! In every corner you can find one of them if you start looking!

This one has been found in our bathroom. Stay tuned - i report if i find anotherone :-)


read more ...


Nikolaus Gradwohl2008-10-13T20:18:00+00:00

Today i got realy scared while cooking - a meatmonster started to appear in my frying pan :-)

I guess it's a relative from the evil mango of death


read more ...

SLR controlling via computer

Nikolaus Gradwohl2008-10-12T20:40:00+00:00

Today i managed to shoot photos and download them in one step using a little c++ programm. the camera must be set to the MTP/PTP-Mode for this to work. The programm below uses the libgphoto2-API to control the camera and send it a capture command followed by a download command. the library is realy nice to code with, but very badly documented.

read more ...