Happy neues Jahr
Ein Wiedersehen
Heute Abend war ich im Berliner-Ensemble, es hab den “Totentanz” von Strindberg.
Und wer saß da neben mir ? Mein alter Mathe Prof. Werner Nehrlich. Der Mann der uns damals zur Erstellung von demorgan.de inspirierte. Welch ein Zufall :)
An dieser Stelle ein Buchtipp (auch demorgen.de kommt wohl vor):
First Contact – das erste Widget
Inspiriert vom Mongrel Cluster Widget, habe ich mich auch mal an die Erstellung meines ersten Dashboard Widgets gewagt. Dank Dashcode war das einfacher als gedacht.
Ein Dashboard-widget besteht ja hauptsächlich aus HTML und Javascript. So kann man recht schnell ein einfaches Widget zusammenbauen.
Mein erster Wurf: eine mongrel_rails “admin console”. Naja eigentlich nur ein Wrapper um den
eigentlichen Aufruf des Mongrel HTTP-Server für Ruby, aber mit mehr “bunt vorne dran” :)
Voraussetzung sind:
- Mac OS X Version 10.4.3 oder höher
- Eine funktionierende Ruby on Ralis und Mongrel Installation.
Nun muss man noch den Pfad zu seiner Ruby on Rails Applikation eingeben und los geht’s.
Per Klick auf die URL im Widget öffnet sich diese auch im Browser.
Optional sind die Adresse, der Port und die Umgebung (Entwicklung, Test oder Produktion)
konfigurierbar. Man kann hier sicher noch unendlich viele Optionen einbauen. Es ging mir aber
in erster Line darum, mal ein Wigdet zu erstellen um zusehen wie das geht.


Das Widget gibt es hier: http://www.stephannoske.de/downloads/MongrelStarter.wdgt.zip
Auf den Hund gekommen ?
Ich teste jetzt mal den Mongrel HTTP Server für Ruby als Alternative zu WEBrick.
Da meine Applikation noch nicht fertig ist, nutze ich beide Server erstmal nur während der Entwicklung. LIVE habe ich einen Apachen mit FastCGI am Start. Subjektiv ist der Mongrel erstmal schneller, liegt aber daran, das er per default nicht so gesprächig ist (Log-Level). Interessant wird bestimmt das Clustering mehrerer Mongrel-Server. Sieht erstmal ganz einfach aus. Bin mal gespannt wie sich das im Vergleich mit den Tomcats dieser Welt verhält. Ich bin da ja noch etwas kritisch – aber erstmal austesten, sonst kann man keine Aussagen treffen !
Auf jedem Fall gibt’s schonmal ein nettes Dashboard Widget :)
More to come …
One size fists all
Mein Zitat zum Jahresende kommt von Zed A. Shaw. Gefunden habe ich es auf der Website des Mongrel-Projects. Sowas wollte ich schon immer mal sagen, musste jedoch nie wie’s geht :) … Oder so :P
” Code fisting
I worked with this guy once who walked into my office one day to tell me that he had started reorganizing the code base for the product. Problem was he started this completely useless reorganization two days before a big deployment, checked it into the CVS repository without telling anyone, didn’t get it working at all, and then had to go on vacation that same day. He was in my office to tell me to clean up his mess since his changes completely broke the build. He did all of this without telling anyone or asking first.
This is “code fisting”, where you shove large amounts of code at people where it isn’t wanted. When you do this all you’re doing is pissing off the people you work with and costing your employer money. In an open source project it can get you kicked out, ridiculed in public, and jeopardize your reputation.
I find that people who do this seem to not understand the #1 rule about working with others on a software project:
"Whenever you do something make sure it causes the least amount of suffering for others."
Change is important and the project needs it to improve, but if you go thrusting your nasty designs on other people in surprise Ninja moves then you’re not following the rule.
So how do you reduce the suffering that comes from big changes?
Code lube
Code lube is the answer to necessary code fisting. Code lube is a combination of communication, coordination, and gently applying your changes slowly over time until they’re in sync with the rest of the world. You have to baby step the other participants and if they aren’t receptive, then put your stuff into a patch or a branch and come back to it later.
This includes changes that aren’t related to code. Deployments need to be heavily coordinated. Moving servers, changing database schemas, installing new versions of tools, and changing important documentation all require talking with people.”
DANKE !
Frohes Fist, … ähmm Fest
Cup arrived
Horsts Namen Zwei Null
Sagt hallo zum hostnamr. Die Abteilung für Produkte im New Economy Amt hat einen Hostnamengenerator an den Start gebracht. Die Ruby on Rails Anwendung vom Team um den Dirk erzeugt einfache, weil leicht aussprechbare Hostnamen.
Respekt dafür !
Ist doch egal
Ist zwar schon lange bekannt, ich wolltes nur nochmal gesagt haben:
Nach eienr Stidue der Cmabridge Uinverstiat, ist es eagl in wlehcer Reiehnfogle die Bchustebaen in Woeretrn vokrmomen. Es idt nur withcig, dsas der ertse und lettze Bchusatbe an der ricthgien Stlele sthet. Der Rset knan total falcsh sein und man knan es onhe Porbelme leesn. Das ist, wiel das mneschilche Geihrn nciht jeden Bchustbaen liset sodnern das Wrot als gaznes.
Aoccdrnig to a rscheearch at an Elingsh uinervtisy, it deosn’t mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae.


