Geschrieben von Jens
am 08. June 2009
-
echo "foo" | tr '[:lower:]' '[:upper:]'
Reverse upper with lower to get lowercase.
Geschrieben von Jens
am 06. June 2009
Ola Bini
Ola gives an awesome Keynote about his toughts on programming languages in general.
The talk was really great and he gives so much information in a short time that is hard to
cover everything in a blog entry. He made some assumtions which I will repeat here for you:
- The jvm is great and will be there a long time. I totally agree to this. The jvm is a great pice of software engineering.
- Don’t use the term “Scripting” language call it pragmatic languages. For Ola and probably a lot of people out there scripting language has a negative sound. I personaly don’t think so but he made a good point.
- Natural Languages are not rational designed and not logical in a lot of cases. The Sapir Worph hypotesis (where bdd is based on) doesn’t matter for natural languages but it does in programming languages.
- This points are important to Ola as language designer: communication, abstraction, expressiveness (remove everything whats not relevant to buisness logic), first class access (for example eval in ruby).
- The language is more important than the tools. That’s a point I totally agree. Especially in the java world people talk all the time about tools and forget the essence what’s really important: Get the job done in a simple, kiss and dry way. A Simple soluten without any tool support is much better than a complex solution with great tool support.
- For Ola in the future there will be more than less programming languages. So if you know just one programming language it might be a good idea to learn another one.

Alexander Lang
Alex talk was about CouchDB. Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database accessible via a RESTful HTTP/JSON API.
So, why Couch DB?
Alex says:
- RESTful HTTP Interface
- Store/read JSON documents
- provides map reduce
- It Scales on a single node by optimistic locking
- muliple nodes (master/master replication)
The english was a bit hard to understand in some parts of the presentation. And I missed some comparison between CouchDB and a relational db model.

Steven Bristol
Steven demonstrated 5 revisions of less accounting to get an impression how the user interface of the app changed and improved over the time.
Steven gave some nice tips for making a good ui:
- You don’t get it right the first time
- Whats your app? Do that not more.
- Write more code so your users don’t have to do so much.
- Ask for feedback
- Use your own applications
- If it’s hard to code a webpage the ui is bad

Geschrieben von Jens
am 26. May 2009
After running late because of some trouble with the berlin railways. I’ve skipped the first RailsWayCon Session and attended to the Webinale Keynote Phänomen Web 2.0 with Ossi Urchs .
The Talk was about Web 2.0 Basics and how the web has and will change buisness. It was nothing really new for me and most of the croud but a great summery of web 2.0 in general.

Speaker: Jan Krutisch
Jan gives a really nice talk about haml. Haml is a markup language that’s used to cleanly and simply describe the XHTML of any web document without the use of inline code.
Accourding to Jan this are the pros on haml:
- no redundancy
- generates html nice code
- For css ids and classes syntax similar to css
- Filters to use textile, markdown, …
An this are the cons:
- It’s a Problem when you have to deal with designers
- Debugging is be harder in some cases
The other part of the session was about SASS which means Syntactically Awesome StyleSheets. The language comes with haml but can also used for it’s own. It solves some problems with css. A weird thing with cascading style sheets is that they doesn’t support real cascading. Sass solves this problem and also adds constants, calculations and imports.

Speaker: Steven Bristol
Steven gives an intersting talk about problems he run into when moving his application LessAccounting to jruby. He decided to move the jruby because he had to implement a third party api written in java. The first Problems he run into was that all compiling gems like ferret or file column doesn’t work in jruby. So he had to replace this parts in his applications with other solutins.
The biggest Problem he run into was the deployment of the application with glass fish. After get everything running he still has the problem that the deployment with glass fish is much slower than with mongrel before.
His recomendation if somebody run into the same problem is don’t move your whole app to jruby. Just build a small application which exposes a rest interface.

Geschrieben von Jens
am 22. May 2009
The conference on Ruby, Rails and more. Auf nach Berlin:

Geschrieben von Jens
am 02. April 2009
Der zweite Teil unserer Journizer Hintergrundbilder als Präsentation auf Slideshare:
Unter:
www.journizer.com/wallpapers
gibt es die Hintergrundbilder in verschiedenen Auflösungen.
Geschrieben von Jens
am 11. March 2009
Man beachte die letzte Zeile folgender Ausgabe.
-
root@debian:~# apt-get
-
apt 0.6.46.4-0.1 für linux i386 kompiliert am Feb 26 2007 16:19:57
-
Aufruf: apt-get [Optionen] Befehl
-
apt-get [Optionen] install|remove pkg1 [pkg2 …]
-
apt-get [Optionen] source pkg1 [pkg2 …]
-
-
apt-get ist ein einfaches Kommandozeilenwerkzeug zum Herunterladen
-
und Installieren von Paketen. Die am häufigsten benutzten Befehle
-
sind update und install.
-
-
Befehle:
-
update - neue Liste von Paketen einlesen
-
upgrade - eine Paketaktualisierung durchführen
-
install - neue Pakete installieren (pkg ist libc6 und nicht libc6.deb)
-
remove - Pakete entfernen
-
source - Quellarchive herunterladen
-
build-dep - die Build-Abhängigkeiten für Quellpakete konfigurieren
-
dist-upgrade - »Distribution upgrade«, siehe apt-get(8)
-
dselect-upgrade - der Auswahl aus »dselect« folgen
-
clean - heruntergeladene Archive löschen
-
autoclean - veraltete heruntergeladene Archive löschen
-
check - überprüfen, dass es keine nicht erfüllten Abhängigkeiten gib
-
-
Optionen:
-
-h dieser Hilfetext
-
-q protokollierbare (logbare) Ausgabe - keine Fortschrittsanzeige
-
-qq keine Ausgabe außer bei Fehlern
-
-d nur herunterladen - Archive NICHT installieren oder entpacken
-
-s nichts tun; nur eine Simulation der Vorgänge durchführen
-
-y für alle Antworten »Ja« annehmen und nicht nachfragen
-
-f versuchen fortzufahren, wenn die Integritätsüberprüfung fehlschlägt
-
-m versuchen fortzufahren, wenn Archive nicht auffindbar sind
-
-u auch eine Liste der aktualisierten Pakete mit anzeigen
-
-b ein Quellpaket nach dem Herunterladen übersetzen
-
-V ausführliche Versionsnummern anzeigen
-
-c=? Diese Konfigurationsdatei benutzen
-
-o=? Beliebige Konfigurationsoptionen setzen, z. B. -o dir::cache=/tmp
-
Siehe auch die Handbuch-Seiten apt-get(8), sources.list(5) und apt.conf(5) für
-
weitergehende Informationen und Optionen.
-
Dieses APT hat Super-Kuh-Kräfte.
Und des Rätsels Lösung:
-
root@debian:~# apt-get moo
-
(__)
-
(oo)
-
/——\/
-
/ | ||
-
* /\—/\
-
~~ ~~
-
…."Have you mooed today?"…
:-)
Geschrieben von Jens
am 22. February 2009
Preparations:
Install CentOS with Apache and Mysql.
1. Install ruby enterprise:
-
wget http://rubyforge.org/frs/download.php/41040/ruby-enterprise-X.X.X-X.tar.gz
-
tar xzvf ruby-enterprise-X.X.X-X.tar.gz
-
./ruby-enterprise-X.X.X-X/installer
2. Create some links:
-
ln -fs /opt/ruby-enterprise-1.8.6-20080624 /opt/ruby-enterprise
-
ln -fs /opt/ruby-enterprise/bin/gem /usr/bin/gem
-
ln -fs /opt/ruby-enterprise/bin/irb /usr/bin/irb
-
ln -fs /opt/ruby-enterprise/bin/rake /usr/bin/rake
-
ln -fs /opt/ruby-enterprise/bin/rails /usr/bin/rails
-
ln -fs /opt/ruby-enterprise/bin/ruby /usr/bin/ruby
3. gem install rails -v 2.X.X
Problems:
I’ve got problems with missing Mysql libraries. To fix this:
3.1 Install mysql-devel
3.2 Install mysql-gem
-
/opt/ruby-enterprise-1.8.6-20080624/bin/ruby /opt/ruby-enterprise-1.8.6-20080624/bin/gem install mysql — –with-mysql-include=/usr/include/mysql –with-mysql-lib=/usr/lib64/mysql
4. Passenger (mod_rails)
4.1 Install Passenger (mod_rails)
4.2 Passenger Apache Module
-
passenger-install-apache2-module
5. ImageMagick
5.1 Install ImageMagick Libraries
-
yum install ImageMagick-devel
5.2 Install rmagick via gems
-
sudo gem install –no-rdoc –no-ri –no-update-sources rmagick -v 1.15.15
Problems:
Parameter –version doesn’t work.
Don’t use the parameter “–version”
Read more about this problem:
http://www.beanlogic.co.uk/2008/8/13/installing-a-specific-verison-of-rmagick
Missing msfonts
Installation of msfonts according to:
http://hi.baidu.com/rainchen/blog/item/089ef7364497de320a55a9a3.html
-
wget http://www.osresources.com/files/centos-windows-fonts/msfonts.tbz
-
mkdir /usr/share/fonts/default/TrueType
-
tar xvjpf msfonts.tbz -C /usr/share/fonts/default/TrueType/
6. Config of apache and your rails app
For configuration of passenger follow the instructions there
Thats it!
Geschrieben von Jens
am 15. January 2009
Ed Hamricks geniales Scanprogramm Viewscan gibt es jetzt auch auf Deutsch. Wer eine Vollversion gekauft hat für den ist das Update umsonst.
Vielen Dank für den guten Service Ed!
Geschrieben von Jens
am 24. December 2008
Wow tolle Nachrichten zu Weihnachten. Merb wird in Rails 3 gemerged. Damit wird Rails modularer, schneller und bekommt eine stabilere API für Plugins. Frohe Weihnachten.
Weitere Infos:
http://weblog.rubyonrails.com/2008/12/23/merb-gets-merged-into-rails-3
http://yehudakatz.com/2008/12/23/rails-and-merb-merge/