JavaScript CalDAV-Frontend

Posted by Nikolaus Gradwohl Sun, 29 Mar 2009 10:39:00 GMT

I just wrote a realy simple and small frontend for caldav calender (~700 lines of code including html) using the mootools framework it supports multiple calendar and displays a read-only week-view.

i'm using it with a DAViCal server

to install it, simply download the package, unpack it on your caldav server and enter the caldav urls of your calender in the config.js file.

thats it

have fun :-)

UPDATE: the code is released under the MIT License, but it would be nice if you link to my blog if you include it in your project :-)

Tags ,  | 4 comments | 1 trackback

Tweet This! submit to reddit Digg!

formating xml in vim

Posted by Nikolaus Gradwohl Sat, 28 Mar 2009 07:14:00 GMT

i often have to work with xml files that are autogenerated and look very ugly i defined a short keymapping in my .vimrc file that calls xmllint --format - on the current buffer

map xf <ESC>:%!xmllint --format -<CR>

open any xml file and press 'xf' in command mode.

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

blooming tree in processing

Posted by Nikolaus Gradwohl Thu, 19 Mar 2009 18:18:00 GMT

because spring is getting near, and everyone is googling for flowers and bees (i have about 10 hits a day all coming from google searching "ascii flower bee"),

i made a processing-sketch showing a blooming tree

every time the applet is started it grows it unique tree

bloom

Tags , , ,  | no comments | 1 trackback

Tweet This! submit to reddit Digg!

Boids Demo

Posted by Nikolaus Gradwohl Sun, 15 Mar 2009 14:00:00 GMT

I just wrote a boids-demo in processing.

the boids obey the 3 rules defined by Craig Reynolds.

click here to see some boids flying around

boids

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

how to detect presentmode in processing

Posted by Nikolaus Gradwohl Sun, 15 Mar 2009 09:21:00 GMT

in processing sketches can be run in "present" mode. which means a frame is generated in fullscreen mode and the code of the sketch is centered on the screen.

to change the size of the actual sketch depending on wether presend mode is active or not
the following code can be used

void setup() {
    for ( int i = 0; i < args.length; i ++ ) {
      if ("--present".equals(args[i])) {
        present = true;
        break;
      }
    }
    if (present) {
      size(screen.width,screen.height, OPENGL);
    } else {
      size(600,600, OPENGL);
    }

    // do your normal setup stuff here
}

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

3d Particle effect demo

Posted by Nikolaus Gradwohl Sun, 15 Mar 2009 09:15:00 GMT

i used the makeTexture method from my firefly sketch to make a 3d particle demo

click here to download the sourcecode.

particles

Tags ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Digital Fireflies

Posted by Nikolaus Gradwohl Sat, 14 Mar 2009 20:14:00 GMT

I made another processing sketch that showes something glowing

click here to see some fireflies whirrl
arround

fireflies

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Rotating Stereo Cubes

Posted by Nikolaus Gradwohl Sat, 14 Mar 2009 08:18:00 GMT

I made my first 3d processing sketch that generates a stereo image for cross eyed viewing

click here to see the cubes rotate

rotating cube

Tags ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

window resizing in processing

Posted by Nikolaus Gradwohl Sun, 08 Mar 2009 18:50:00 GMT

The following processing code shows how to resize a processing window from your code. the resizeApp methdo calculates the difference between the frame size and the size of the actual drawing area and adds it to the new size. then the application-frame is resized.

void setup() {
  size(320,200);
}

int col = 0;

void draw() {
  background(col);
  stroke(255,0,0);
  line(0,0,width, height);
  line(0,height,width,0);
}

void mousePressed() {
  if (col == 0) {
    resizeApp( 640, 400 );
    col = 255;
  } else {
    resizeApp( 320, 200 );
    col = 0;
  }
}

void keyPressed() {
  exit();
}

void resizeApp( int w, int h ) {
  int delta = frame.getHeight()-height;
   resize( w, h );
   frame.setSize( w, h + delta );
}

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

osc linkdump

Posted by Nikolaus Gradwohl Sun, 08 Mar 2009 16:37:00 GMT

http://opensoundcontrol.org the mother of all osc pages ;-)

http://nodebox.net/code/index.php/OSC osc support in NodeBox a programming environment based on python - with strong processing influences

http://hans.fugal.net/src/rosc/ osc support for ruby

http://www.ixi-audio.net/content/bodybackyardpython.html simple osc library for python

http://frey.co.nz/projects/ofxosc/ osc library for openframeworks

http://www.audiomulch.com/~rossb/code/oscpack/ osc library for c++. is used by ofxosc

http://www.sojamo.de/libraries/oscP5/ osc library for processing

http://chuck.cs.princeton.edu/doc/language/event.html chuck osc documentation

http://www.local-guru.net/blog/2009/03/06/osc-events-in-pd osc events in puredata

http://supercollider.svn.sourceforge.net/viewvc/supercollider/trunk/build/Help/ServerArchitecture/Server-Command-Reference.html supercollider osc command reference

http://supercollider.svn.sourceforge.net/viewvc/supercollider/trunk/build/Help/Control/OSCresponderNode.html supercollider OSCresponderNode documentation

http://mtg.upf.edu/reactable/?tuio osc based protocol for tangiable user interface

http://wiki.monome.org/view/40hOscProtocol the monome protocol

http://www.grahamwakefield.net/MAT-F04/233/index.html java based osc sequencer

Tags ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Older posts: 1 2