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 caldav, javascript | 4 comments | 1 trackback
Tweet This!
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 vim | no comments | no trackbacks
Tweet This!
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

Tags bloom, processing, spring, tree | no comments | 1 trackback
Tweet This!
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

Tags processing | no comments | no trackbacks
Tweet This!
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 processing | no comments | no trackbacks
Tweet This!
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.

Tags 3d, processing | no comments | no trackbacks
Tweet This!
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

Tags processing | no comments | no trackbacks
Tweet This!
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

Tags 3d, processing | no comments | no trackbacks
Tweet This!
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 processing | no comments | no trackbacks
Tweet This!
Tweet This!