Crayon Physics 


Instructions

You play with crayons and physics. The goal of the game is to move the red ball so that it collects the stars. You can cause the red ball to move by drawing physical objects. Very cooooool...

[ 18 comments ] ( 51 views )   |  permalink  |   ( 2.9 / 237 )
Laurent Garnier - Resident Advisor Mix N°107 
Un mix incroyable de Laurent Garnier que j'ai manqué et qui n'est plus disponible sur le site officiel. C'est par ici. Merci Internet.

[ 1 comment ] ( 13 views )   |  permalink  |   ( 3 / 71 )
rm -rf 
Sometimes it is just handy to use rm -rf. While you are (hopefully quickly) typing, it might happen that you did not spot that you are in the wrong directory. Triggering such a command then could cause a disaster.

A basic protection is:
touch —- -i
chmod 000 "-i"
The trick: this create an hidden file whose name is -i. With the rm command, the first file in alphabetical order will be this one. And the name, beginning by a minus, will be interpreted as an option. So, what’s executed really is rm -i, that is, interactive mode, ask before each deletion. You get a chance to stop the disaster before it happens.

To remove such a file, type rm -- -i.

[ 2 comments ] ( 26 views )   |  permalink  |   ( 3 / 161 )
Was hat mein Handy mit dem Krieg im Kongo zu tun? 
Coltan (auch Koltan) ist ein Roherz, dessen Hauptlagerstätte in Zentralafrika liegt und aus dem vorrangig das Metall Tantal (Ta) gewonnen wird.

Das äusserst seltene und teure Tantal wird industriell für chemische Geräte, medizinische Instrumente, in Raumfahrt- und Elektronikindustrie und als Legierungsbestandteil von Edelstählen eingesetzt. Tantalpentoxid, das sich beim Zusammentreffen von Tantal mit Sauerstoff bildet, ist enorm korrosionsbeständig.

Seit über zehn Jahren herrscht in Kongo Krieg; vier bis fünf Millionen Menschen sind bereits ums Leben gekommen. Die Regierungen von Uganda und Ruanda unterstützen bewaffnete Rebellen, indem sie Waffen an Fallschirmen über dem Land abwerfen; dafür bekommen sie Gold, Diamanten und Coltan, ein Roherz, das man zur Herstellung von Handys braucht.

[ 1 comment ] ( 14 views )   |  permalink  |  related link  |   ( 3 / 139 )
@code and @literal 
I just discovered that Javadoc 1.5 came with following notable and very handy addition: the @literal and @code tags for ensuring text is not treated as markup.

This enables you to use regular angle brackets (< and >) instead of the HTML entities in doc comments, such as in parameter types (<Object>), inequalities (3 < 4), or arrows (<-). For example, the doc comment text:

{@code A<B>C}

displays in the generated HTML page unchanged, as:

A<B>C

The noteworthy point is that the <B> is not interpreted as bold and is in code font. If you want the same functionality without the code font, use {@literal}.

[ 2 comments ] ( 28 views )   |  permalink  |  related link  |   ( 3 / 133 )

Back Next