Thursday, November 24, 2005
Bleeding edge: lighttpd-1.4.8 and eaccelerator-0.9.4-rc1
There is a new version of lighttpd (1.4.8) and eaccelerator (0.9.4-rc1) available.
Both are running without problems up to now (about 5 hours ;).
Remember:
Both are running without problems up to now (about 5 hours ;).
Remember:
"If you are on a bleeding edge, you will bleed."
$ HEAD localhost | grep Server
Server: lighttpd/1.4.8
:)Server: lighttpd/1.4.8
Wednesday, November 23, 2005
lighttpd with daemontools on Debian
I love lighty, daemontools and Debian.
There are 3 step to combine them (assuming you have lighttpd already installed).
Now, use
Thats all folks!
There are 3 step to combine them (assuming you have lighttpd already installed).
Step 1
Install daemontools.$ apt-get install daemontools-installer
$ get-daemontools
$ build-daemontools
(I am using $ get-daemontools
$ build-daemontools
/service
-style.)Step 2
Createrun
script.$ mkdir /service/lighttpd
$ cat <<EOF > /service/lighttpd/run
#!/bin/sh
exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D
EOF
(lighttpd will be started automagically)$ cat <<EOF > /service/lighttpd/run
#!/bin/sh
exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D
EOF
Step 3
Remove lighttpd frominit.d
$ update-rc.d -f lighttpd remove
Now, use
svstat
and svc
as usual :)Thats all folks!
RAW: The enterprise evaluation of Rails vs Java
Evidence I:
Riding Rails writes about Rick Bradley's evaluation document which deals with "picking Rails over Java".
If don't know what I'm talking about, read RAW: Introduction.
Riding Rails writes about Rick Bradley's evaluation document which deals with "picking Rails over Java".
If don't know what I'm talking about, read RAW: Introduction.
RAW: Introduction
What?
In this section I'll gather posts from people who are moving from Java to Ruby (especially Ruby on Rails.Why?
I'll try to convince my boss to use Ruby and drop Java in most cases.RAW?
RAW ("Rubylution at work") is the code name for my mission.Rubylution?
This name fits well, I think. Flori (guy who dislike Java too ;) has a blog named "Rubylution".(Flori, forgive me!)
Evidences!
How To Write Unmaintainable Code
...old but still funny and true:
How To Write Unmaintainable Code.
This link refers to The Daily WTF Better Off TODO.
How To Write Unmaintainable Code.
This link refers to The Daily WTF Better Off TODO.
Friday, November 18, 2005
Remember: Do NOT use BACK while creating blog entries...
...and edit it. It creates tons of copies :(
And, yeah, blogger.com sucks (at least the interface) and is evil (googlized).
Time to setup my own blog. Typo?
And, yeah, blogger.com sucks (at least the interface) and is evil (googlized).
Time to setup my own blog. Typo?
lighttpd writev problem and solution
Problem
I am hosting Pflegewiki using lighttpd (version 1.4.7) + FastCGI-PHP.Two days ago I got emails from users which had problems uploading files (
503 - Service Not Available
). I could reproduce this problem only trying to upload large files (> ~100Kb).The logfile said:
2005-11-18 10:27:41: (network_writev.c.276) write failed: Bad address 16
2005-11-18 10:27:41: (mod_fastcgi.c.2751) write failed: Bad address 14
2005-11-18 10:27:41: (mod_fastcgi.c.2751) write failed: Bad address 14
Workaround
As a temporary workaround I switched network backend from "writev" to "linux-sendfile":server.network-backend = "linux-sendfile"
#server.network-backend = "writev"
#server.network-backend = "writev"
It works and should peform better than "writev", Jan said.
Solution
I was about to submit a bug report so I searched for "writev" here and found a patch (changeset #829) which solves this issue. After patching and switching back to "writev" everything worked fine.However, I use "linux-sendfile" anyway, now.
Update: blogger.com sucks. I had to delete tons of entries... Sorry.
Monday, November 14, 2005
It’s just me and the code...
Does Visual Studio Rot the Mind? by Charles Petzold
A nice quote:
Flo, thanks for the link.
A nice quote:
It’s just me and the code, and for awhile, I feel like a real programmer again.
by Charles Petzold
Flo, thanks for the link.
Friday, November 11, 2005
Spyware ganz seriös
heise schreibt "Google schaltet personalisierte Suche live".
Unter http://www.google.com/psearch kann man mit einem Google/Gmail-Account seine Suchkriterien personalisieren lassen.
Einmal eingeloggt, kann man kann Google wie gewohnt nutzen nur dass alle Suchanfragen personalisiert gespeichert werden.
BigBrotherGoogle is watching you.
Nein, danke.
Unter http://www.google.com/psearch kann man mit einem Google/Gmail-Account seine Suchkriterien personalisieren lassen.
Einmal eingeloggt, kann man kann Google wie gewohnt nutzen nur dass alle Suchanfragen personalisiert gespeichert werden.
Nein, danke.
Remember: Howto disable auto table name pluralisation
ActiveRecord::Base.pluralize_table_names = false
in rails_application_path/config/environment.rb
more...
Wednesday, November 09, 2005
New kid on the blog
Some dude, nerd and geek is blogging about ruby and stuff in his Rubylution blog.
I expect interesting and funny posts from you, flori :)
I expect interesting and funny posts from you, flori :)
Tuesday, November 08, 2005
Mirror: Ausgebeutet: Der gute Ruf von "Bild"
Nachdem BildBlog über den taz-Kinospot berichtete, wurde dieser entfernt.
Zum Glück hatte haftbar.de den Spot gespiegelt und ich nunauch...
...dafür wurde dieses Video bei putfile.com gesichtet. Danke anonymous :-)
Der Spot darf nicht in Vergessenheit geraten!
Update: Links wegen rechtlichenUnsinnigkeitenBedenken angepasst. Danke für die Warnung Mr. haftbar :-)
Zum Glück hatte haftbar.de den Spot gespiegelt und ich nun
...dafür wurde dieses Video bei putfile.com gesichtet. Danke anonymous :-)
Der Spot darf nicht in Vergessenheit geraten!
Update: Links wegen rechtlichen
Rails 1.0 RC4 (0.14.3)
Test the bestcandidate, I will:
peter@...:[lfsgear]$ script/about
About your application's environment
Ruby version 1.8.4 (i486-linux)
RubyGems version 0.8.11
Rails version 0.14.3
Active Record version 1.13.0
Action Pack version 1.11.0
Action Web Service version 0.9.3
Action Mailer version 1.1.3
Active Support version 1.2.3
Application root /home/peter/devel/ruby/lfsgear
Environment development
Database adapter mysql
more...
peter@...:[lfsgear]$ script/about
About your application's environment
Ruby version 1.8.4 (i486-linux)
RubyGems version 0.8.11
Rails version 0.14.3
Active Record version 1.13.0
Action Pack version 1.11.0
Action Web Service version 0.9.3
Action Mailer version 1.1.3
Active Support version 1.2.3
Application root /home/peter/devel/ruby/lfsgear
Environment development
Database adapter mysql
more...
Tuesday, November 01, 2005
Borussia-Duell
Es ist fast schon eine kleine Tradition, einmal im Jahr den Feind BVB beim Heimspiel gegen die "echte Borussia" zu bestaunen.
Eines vorweg: Das Spiel war nicht sonderlich gut und das nicht nur weil Gladbach 2:1
verloren hat (und somit für ca. 9500 mitgereisten Anhänger der Abend gelaufen war - mehr hier und hier) war.
Wie auch immer, hier ein paar Schnappschüsse.
Oh, fast vergessen: Leider hat auch der "Meister der Herzen" seine erste Saisonniederlage beim HSV erleiden müssen :(
Eines vorweg: Das Spiel war nicht sonderlich gut und das nicht nur weil Gladbach 2:1
verloren hat (und somit für ca. 9500 mitgereisten Anhänger der Abend gelaufen war - mehr hier und hier) war.
Wie auch immer, hier ein paar Schnappschüsse.
Oh, fast vergessen: Leider hat auch der "Meister der Herzen" seine erste Saisonniederlage beim HSV erleiden müssen :(