Using an arduino as a AVR Programmer
I managed to use an arduino as an isp programmer for my ATTiny13. I first i tried to use the avr910 program described in this blogpost from Randall Bohn, but avrdude could not flash my hex file :-/
then i found a newer version of the code that emulates an avrisp at googlecode
Set operations on ruby arrays
Ruby provides some very interesting set operations on arrays.
given the two arrays A and B wich look like this
A = ["A", "B", "C", "D"]
B = ["C", "D", "E"]
There are three set operations we can use that union, intersection and difference.
Union
A | B
contains all elements from both sets without doublicates. So this results in ["A", "B", "C", "D", "E"]
Difference
A - B
contains all elements from set A that are not in set B. So this results in ["A", "B"]
Intersection
A & B
contains all elements that are in set A and in set B. So this results in ["C", "D"]
read more ...Proagwrimo 16 - 22
45 pages so far. I started making screenshots for the examples, and finished some of the code examples.
read more ...Pragprowrimo 11-15
32 pages so far, i added another section and i finished some of the examples for the book. One example for the chapter on interaction will be a litte game. The player has to type some random letters that appear on the screen. After 20 sections the number of found letters is displayed as the score.
click here to give it a try
read more ...multiple lines in processing
I wrote a processing-sketch to test how to connect to points using multiple curves that are slightliy shifted by random values. Looks really good in datavisualisation apps.
click here to run the applet and see the code.
Pragprowrimo day 8,9,10
I wrote 26 pages so far, and i startet a new chapter on interaction using audio and video.
read more ...pragpromwrimo day 5, 6 and 7
It's a bit chaotic at the moment, but i managed to write at least 1/2 a page every day. I have 21 pages now and i have split up my docbook file in one file per chapter. I also started writing some of the example processing-sketches.
read more ...Ruby Caldav Library 0.3
have made a new version of my ruby caldav lib.
version 0.3 is a bugfix release, to make it work with the kde4 calendar
read more ...pragpromwrimo day 3 and 4
I wrote 4 new pages on the processing book i write for pragprowrimo, and startet to read what i have written. i also fixed some small typos. i think one section needs to be rewritten, but i'm surpriced how well it works so far.
read more ...