Porcessing monster

Posted by nikki Tue, 18 Nov 2008 18:11:10 GMT

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

monster screenshot

Tags , ,  | no comments

dns cache flushing on a mac

Posted by nikki Wed, 05 Nov 2008 20:06:06 GMT

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

Tags , ,  | no comments

oilmonster

Posted by nikki Tue, 04 Nov 2008 19:01:00 GMT

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

Tags ,  | no comments

Surealistic Unix-commands

Posted by nikki Mon, 27 Oct 2008 18:13:00 GMT

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 :-)

Tags  | no comments

Fun with sine and cosine

Posted by nikki Fri, 24 Oct 2008 04:22:58 GMT

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.

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 ))
    );
  }
}

Tags ,  | 1 comment

patching pose for Ubuntu 8.04

Posted by nikki Thu, 23 Oct 2008 18:09:51 GMT

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

Tags , , ,  | no comments

Linedemo in processing.js

Posted by nikki Mon, 20 Oct 2008 17:47:14 GMT

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.

Tags ,  | no comments

corkmonster

Posted by nikki Tue, 14 Oct 2008 19:02:10 GMT

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 :-)

corkmonster

Tags ,  | no comments

meatmonster

Posted by nikki Mon, 13 Oct 2008 18:18:17 GMT

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

meatmonster

Tags ,  | no comments

SLR controlling via computer

Posted by nikki Sun, 12 Oct 2008 18:40:00 GMT

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...

Tags , , , ,  | no comments

Older posts: 1 2 3 ... 7