in English and software and petits dessins15 Jun 2008 12:56 pm

Update: SVG export now available

textorizer1_2 screenshot

A new version of textorizer is available: textorizer1_2. Because it’s now a downloadable application (for linux, windows, and osx) it offers unprecedented functionality: a complete user interface for tweaking almost all possible parameters, the ability to use images on your disk, and of course it works offline.

This was made possible (and easy) thanks to Processing, as well as controlP5.

Feedback is welcome at max @ lapin - bleu . net

Tags: , ,

in English and petits dessins11 May 2008 05:02 pm

Last night I came across the famous Vertigo poster by Saul Bass, which I really like. And it got into my head to figure out how the spiral was done. A couple of hours later I had something that wasn’t too far from it:

vertigo plagiarism

I’m posting the code here (I’ve used Processing). Maybe someone will find a great use for it! I’m not allowed to post the font, though. You’ll have to get it yourself at typographica.org.

If you’re just curious about how the spiral is drawn, it’s simply an ellipse that is rotated and shrunk at each step. The rotation and shrinking steps decrease asymptotically towards the central ellipse. I’d be quite interested to know how Bass did it.

Tags: , , , , , ,

General and in English11 May 2008 12:42 pm

This is purely for the benefit of people who may be googling for this piece of information, as I have been for the last 2 hours with great frustration. You’d think uploading a GPX file to the unit is simple and is just a matter of mounting the unit’s SD card and copy your file where the others GPX files are. Wrong. Grrr.

Here’s how I did it: download LoadMyTracks, plug your unit, but do *not* mount the card, then press “Send…” and select your GPX file.

Tags: , , , ,

General10 Apr 2008 09:06 pm

Good idea Motorola had to make a poster out of the Apollo 11 transcript (and what an interesting read!). Here’s a detail below:

Of course I couldn’t resist making a textorizer version:
Step

General and in English07 Apr 2008 06:55 pm

It must have happened to you too: you’re in your living room, surrounded by all your electronical gadgets, and suddenly you hear an alert tone. “Bong!”, “or dee-dee-dah, didadidah dee daah”. And you’ve forgotten which gadget it can be, or what application. Is it the default SMS alert on your Motorola i265? Or is it your Sony PSP telling you that firmware update 3.52 has completed? Or is it Adium’s sound for a private message on Jabber when you use the Synthetic Misc sound set? Or your TV, or your set-top box, or your watch, or your kettle, or your house-arrest ankle bracelet, or your tamagochi, or what?! You’re confused, you don’t know how to react, and you FAIL.

Wouldn’t it be nice to have one of those “name that tune” web services to help identify a standard sound? I haven’t played with one recently (I’m certainly not going to give some random Java/Flash applet access to my microphone) but I remember liking one that would let you input a tone as text, with a simple notation which only made you indicate if the next note is higher (h) or lower (l) or the same (*). For instance you entering “***lh**l” on the web form would return Beethoven’s fifth (and perhaps a couple of other hits). And it worked really well. Anyway, whatever the input method, a standard alert tone recognition service would be a great idea, and you heard about it here first.

in English and petits dessins02 Apr 2008 09:42 pm

I’ve been playing with Processing for a few weeks now, resulting in new version of the celtic hack. (Click the picture and watch in awe.)

celtic2 screenshot

Processing is nice because it’s Java under the hood, so it’s cross platform, object-oriented, it’s got a garbage collector and it’s not too hard to port C code. And on top of Java, Processing offers a very nice graphics API (I haven’t used much of it yet, but the basics are good and the documentation and examples show off nice extras). Especially nice is the fact that in order to write a hack, you can start very simply as you don’t have to be bothered with Java classes and imports:

void setup() {
  size(200, 200);  // window size
  background(0);   // background colour: black
  stroke(255);     // draw in white
}

void draw() {
  line(0, 10, width, height);
}

That’s all and it’s a very nice idea, especially for non-expert programmers (for whom Processing is especially designed), or for people like me who look at Java every 5 years and have to relearn how to start every time. The last nice feature is the IDE, which is simple but makes it very easy to develop apps. All this contributes to a very pleasant environment for writing small graphics hacks, running them and exporting them to standalone apps or applets.

However, where things become slightly more confusing is when you want to go beyond small hacks. In this case, celtic has somewhat complex data structures and functions, and it took a long while to understand what was going on when changing gears from a simple setup/draw job to writing complex classes for nodes, edges, graphs and splines and implementing a complex display loop. Here are a few traps I fell in:

- Processing redefines float and int. That simply kills any use of java.lang.Math: functions and even constants. Processing redefines the simplest ones but if you need a more complex one (like log) you’ll have to rewrite it.

- You can’t write one class per file, in good Java fashion. In fact you can, but none of the files (except the main) will be able to access the API, including float and int. So it’s useless.

- It’s a bit tricky how setup() and draw() work, sometimes. For instance, if you happen not to start setup() with size() then it’s called twice.

- You can’t call a function init(). You get an obscure error message if you do, and that’s the kind of thing that takes hours to debug and makes you yell WTF?! when you find out.

- Talk about obscure error messages, if you put all your classes in the main file but forget setup() and draw(), or leave them for later, then you’re told that you can’t do forward references in class definitions. Another few hours of finding out what’s going on followed by another WTF moment

Maybe I shouldn’t have started with a complexish hack, and it would have taken me less time to figure out the above reading more documentation, in particular a clear explanation of how the Processing code is transformed into Java. Most of the problems above would have been cleared up.

Anyway, now that I’ve found the main pitfalls, I’m really enjoying Processing. Java feels a little clunky, compared to more modern programming languages like Python or Ruby (who’s able to write System.out.println(”p=”+x+”, “+y+”.\n”) without messing up at least once?), but removing all those mallocs and free from old C code is still very enjoyable! So I’ll probably be writing or rewriting hacks with it (at least those where SVG fails), until canvas makes Processing redundant and all is to be rewritten again.

And I’ll definitely be playing with Mobile Processing.

Tags:

General and in English05 Mar 2008 10:07 pm

I’m quite impressed to notice that my NSLU2 low-power-always-on box running unslung has been up for 1 year and 2 days today. I don’t usually care for uptime nor do I hesitate when faced with a possible reboot, which makes this anniversary quite an achievement: Bravo linux, unslung, Linksys and the Dutch electricity grid!

Update: I found this entry empty the other day, and when I tried to edit it it was full of spam markup :-( Hoping dreamhost have fixed security hole

Tags: , , ,

in English and Entente Cordiale18 Feb 2008 09:46 pm

Found today at the local supermarket: camembert in a tin. French camembert, from Président, a leading brand. In a tin.

Camembert in a tin

And it’s called “Bonjour de France”. If the subtext isn’t obvious to you, it’s because you’re not French. It’s: “Hello from France, weirdos. Here’s a camembert tin your country made us manufacture for you. Freaks.”

Tags: , ,

General and in English17 Feb 2008 06:25 pm
Indiana Jones and the

of the

Don’t worry, this form does absolutely nothing. And I don’t know why wordpress doesn’t format it all on one line, but I’m not in the mood for CSS love.

General and in English16 Feb 2008 12:38 am

The old motif for the ‘footpath’ sign had to be changed - not for the sake of modernization, but because the man in the hat holding hands with the little girl suggests a possible abduction rather than a father taking his daughter for a walk

From Pictograms Icons & Signs, a Guide to Information Graphics

old motif    vs. New motif

Tags: , ,

Next Page »