The web2.0 equivalent of color

Have you heard of »kuler« yet? You have to say it like [kaler/kaoler] or like »color« because that is what kuler is about. To make things short, kuler is a flash application for creating color schemes. Its pretty neat but it is flash and you need to create an account to save your schemes. You can even create color schemes which you can import in your Adobe Creative Suite applications. Doesn’t sound to bad but I think its kind of worthless for print design. I’d rather go for CMYK, HKS or Pantone tables to create color schemes although it could work, at least to get a first idea. But why does it have to be Flash? This could have been such a nice Javascript web application. Remember colr.org? I blogged about their site a couple of months ago. Their site is for the exact same purpose, composing nice colors. The whole thing is done in Javascript and you can even generate colors from pictures you’ve uploaded.

This is actually a nice example for Flash getting more and more obsolete. Imagine using Javascript, XHTML and SVG with some sort of backend. I mean it should be possible to do many of the things Flash can do especially because Flash’s Actionscript is basically Javascript. Actionscript is simply wrapping some logic and the animation context in neat commands. If someone would come up with a Javascript library that would do the same, creating an animation context (FPS, animation loop, tweens, etc), it should be a lot less pain creating fun things without Flash.

I put a small demo together on smyck.org some weeks ago. The code is a little nasty but it was done in five minutes and it worked the way I wanted it. My goal is extending this demo further. I want to try out SVG. The only problem is the time that is missing right now.

While everyone is busy getting their web2.0 bubble business going there are still things to look at.

I don’t feel like creating an account at kuler.adobe.com

RubyOnRails on Mac OS X Tiger (10.4)

In the past it has been quite difficult to get RubyOnRails running on you Mac OS X but I just found out that all the pain has vanished. Especially the setup guides on the rubyonrails.org website are a little confusing because most of them are outdated. So if any of you are still interested how to set everything up, read on – I’ve written a small guide.

What you need

No matter what operating system you are using there is a minimum set of tools you need to have installed and ready to run:

Mac OS X

Simple Setup

The setup on Mac OS X is pretty simple. You can download Locomotive which is an all-in-one RubyOnRails package. It gives you an entire framework with everything included to run RubyOnRails on your machine. There are even different bundles available to extend the features of rails.

The database part is simple too, in theory. There is a package called MAMP which provides an Apache webserver and a MySQL server. This package also includes phpMyAdmin which enables you to manage the database with a GUI web front-end.

Another way would be to install MySQL by downloading the .dmg file from the MySQL website and to install it afterwards. The standard package is all you need. This package includes a system preferences panel that allows you to start and stop the mysql server with a button. Furthermore I would recommend YourSQL or phpMyAdmin to manage the databases.

Setup for Pro’s

The better way, instead of using these prepackaged solutions, would be installing everything by hand. Therefore you need to download and install the Apple Developer Tools (also known as Xcode). You need an Apple ID / Account to download Xcode. Then you need MacPorts (formerly known as darwinports). MacPorts is a collection of unix ports. These allow you to compile almost any unix tool that is not natively available for Mac OS X. To get the MacPorts on your mac go to the MacPorts download page and get the .dmg file (NOTE: I’m not sure if these .dmg files work on Intel Macs, let me know if you checked that). Unpack and install it. There is guide on the MacPorts website that gives you additional instructions for setting everything up. Afterwards read through the quick guide to learn the basic concepts of MacPorts. If you feel ready, continue with installing everything else.

First of all there is a RubyOnRails port. By installing this you get ruby, the rails framework and any other dependency you may need. You can install it by opening your Terminal.app. Then type in ‘sudo port install rb-rails’ and the magic should begin. Basically this command downloads all the necessary files, compiles and installs them in the right location.

After that its time for MySQL. Type ‘sudo port install mysql5’ to get the latest version of MySQL5 compiled for your very system. This should take a couple of minutes. Afterwards you can start the mysql daemon by invoking ‘sudo /opt/local/mysqld_safe5’ in your terminal.

If you choose to install MySQL with the .dmg mentioned in the simple setup you can start it with the preference pane or by typing ‘sudo /usr/local/mysql/mysqld_safe’.

Documentation

Getränkeautomaten und Hacker

Im Chaos Computer Club Berlin haben wir einen Getränkeautomaten, eines großen amerikanischen Limonadenherstellers, zu stehen, in dem wir auch Mate und andere Getränke verkaufen. Der Automat muss regelmäßig mit neuen Getränken befüllt werden und auch etwaige Wechselgeldwünsche müssen mehrmals am Tag gestillt werden. Als ich eben dieses, am gestrigen Abend, tun wollte blieb der Schlüssel, beim öffnen des Automaten im Schloss, stecken und lies sich auch nicht ohne weiteres wieder befreien. Am Schlüssel selbst hatte sich eine Schraube gelöst, die die Pins des Schlüssels an selbigem befestigt. Dadurch änderte sich die Länge der Pins relativ zum Schloss, sodass der Schlüssel nicht wieder zurückzudrehen war und stecken blieb. Eine ziemlich blöde Situation, denn zum einen war es unmöglich den Automaten wieder zu verschließen und zum anderen war es Samstag Abend. Eine Wartung wäre also erst zwei Tage später möglich gewesen. Der Service wurde trotzdem informiert, via Anrufbeantworter. Aber wie anfangs erwähnt befanden wir uns im Chaos Computer Club und Hacker wären nicht Hacker wenn sie nicht versuchen würden das Problem selbst zu lösen. Hierfür wurde zunächst das Schloss aus dem Automaten geschraubt, um dann zu versuchen den Schlüssel vom Zylinder zu lösen. Doch der Schlüssel schien wirklich fest zu stecken. Ein weiterer Hacker fummelte dann aber doch so lange damit herum, bis er Schlüssel und Zylinder trennen konnte. Das Problem war schnell erledigt – doch wäre das alles gewesen hätte mich das sicher nicht motiviert darüber zu bloggen. Der besagte Hacker fummelte nämlich noch so lange weiter mit dem Schlüssel herum, bis er aus Versehen, die Scheibe vom Schlüssel löste, welche die Pins am Schlüssel festhielt. Die Pins purzelten heraus und der Schlüssel war komplett unbrauchbar. Es waren sieben unterschiedlich lange Pins also gab es 5040 mögliche Kombinationen. Eindeutig zu viel!

Nun wurde der Zylinder genauer analysiert aber es wurde schnell klar, dass der Zylinder auseinander gebaut werden müsste, um Schloss und Schlüssel neu zu kombinieren. Gesagt getan. Die Fotos zeigen alle Teile von Schloss und Schlüssel, feinsäuberlich aufgereiht. Im Schloss befanden sich in jeder der sieben Pinkammern eine Feder und zwei weitere Metallstifte. Mit der Schiebelehre wurden alle Teile vermessen und sortiert um logische Paare zu bilden. Es stellte sich heraus, dass es zwischen den Pins jeweils 0,4 mm Abstand gab. Die Kombinationen waren schnell gefunden und nun konnten Schloss und Schlüssel wieder bestückt werden.

Der erste Versuch das Schloss zu schließen schlug fehl, jedoch nur weil zwei Pins miteinander vertauscht wurden. Auch dieses Problem war schnell gelöst und natürlich funktionierte alles wie gedacht. Neben der neuen Kodierung von Schloss und Schlüssel, haben wir das Schloss auch noch gereinigt und geölt. Abschließend wurde das Schloss wieder in den Automaten geschraubt und der Service mit einer weiteren Nachricht auf dem Anrufbeantworter beglückt. »Guten Tag, der Chaos Computer Club Berlin in der Marienstraße. Ich wollte nur nochmal bescheid sagen das wir das Problem selbstständig gelöst haben. Vielen Dank und auf wiederhören!«

Die ganze Aktion war wieder mal eine gelungene Demonstration des Hacker-Wesens.

Trusted Computing – The Apple Way

Since Apple introduced its first Intel products the word got out that they would include a TPM chip. Nobody really new what for but the common assumption was that they would use it to make sure you’re running Mac OS X on a »true« Macintosh computer. The problem was that Apple didn’t really say anything about that chip and since they aren’t a member of the TCG they wouldn’t have to do so. Being part of TCG means, besides other things, that you give the user the chance to switch the TPM chip off. The user must be allowed to control the chip. Apple on the other side provided no way of interacting with the chip which was concerning a lot of people. On one side these concerns were right since Apple has a complete music / movie / hardware solution. The TPM chip would enable them to enforce DRM in its nastiest way. Again, without being in the TCG group they can do what they want.
Apple on the other side is known for not being a big fan of copy protections and digital rights management. A developer note actually says that developers should not be trying to build software that relies on unique identifiable properties of a computer, like a MAC address, the serial number or a TPM chip since it is not 100% reliable and it compromises the user experience. Their iTunes DRM policies could be easier but compared to all the other DRM policies of the different online media stores it really is »FairPlay«.

So in the end, nobody knew what Apple was up to. If it was good or evil. Since yesterday it seems that Apple is indeed not interested in a hardcore DRM world. I found an article (Trusted Computing for Mac OS X) which claims that Apple isn’t using the TPM chip for anything, not even key storage. The author is also providing an open source driver for OS X to interact with the TPM chip. Furthermore the article features a guide how to interact with it, like taking ownership. But best of all the article claims that the current Mac Book Pros and Mac Pros don’t even have a TPM chip anymore! This is like the best new in terms of TPM.

I’d like to thank Apple for this step. This is so the right way.

Verlorene Atombomben

Aus, in mehrfacher Hinsicht, aktuellem Anlass möchte mich mal zu Atombomben äußern. Ich persönlich finde diese Art von Waffe furchtbar. Schon alleine die Tatsache, dass die Menschheit unseren Planeten mit unzähligen Tests, zu Land, zu Wasser, in der Luft und sogar an der Grenze der Atmosphäre bombardiert hat finde ich wirklich erschreckend. Je mehr man sich zu dem Thema beließt desto weniger kann man glauben das die Erde und die Menschheit, in ihrer heutigen Form, noch existieren. Ich fand vor einiger Zeit einen Artikel auf Telepolis, der die mehrfachen Unfälle mit Atombomben dokumentiert. Es sind keine schönen Gedanken, die einem dabei durch den Kopf gehen, aber sie sind definitiv hilfreich um sich ein Bewusstsein für die Konsequenzen des atomaren Zeitalters zu schaffen. Man will es eigentlich nicht wissen.

Nachdenkliche Zeiten.