DAViCal update

Nikolaus Gradwohl2008-12-04T05:54:00+01:00

I'm using DAViCal for syncing the calendars between my computers. Recently events addend in one calendar didn't show up in the other one - not so funny.

after some googleling i found this bugreport and updated version to 0.9.6.2

now everything is in sync again.

read more ...

Processing Library Template for ant

Nikolaus Gradwohl2008-12-03T18:00:00+01:00

Yesterday guidelines for developing a processing library have been published including a template for eclipse. Since i don't use eclipse i wrote a small template myselft using ant. So all the vim/TextMate/UltraEdit/whatever-users out there who want to make cool processing libraries check out my template

read more ...

ColorMatcher Processing lib

Nikolaus Gradwohl2008-11-23T12:08:00+01:00

a while ago i wrote a processing sketch that allows to match some colors in a live video image.

now i translated the code into a processing library and made a project-page for it. The libray is released under the LGPL.

read more ...

Processing monster

Nikolaus Gradwohl2008-11-18T19:11:00+01: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+01: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 ...

oilmonster

Nikolaus Gradwohl2008-11-04T20:01:00+01: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 ...

oilmonster

read more ...

Surealistic Unix-commands

Nikolaus Gradwohl2008-10-27T19:13:00+01: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+02: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() {
  size(600,600);
  smooth();
  r = max( width/2, height/2) * 0.8;
  noLoop();
}
void draw() {
  background(0);
  stroke( 255, 2 );
  strokeWeight(2);
  lines( 4 );
  filter( BLUR, 4 );
  stroke( 255, 6 );
  strokeWeight(1);
  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+02: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+02: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 ...