TOP

Setting up Gearman

I recently announced an article about Gearman, today I’ld like to start with setting up a Gearman dispatcher server. (weiterlesen…)

Weiterlesen
TOP

Web-Multitasking: Whos gonna work for the working man?

Web scripts usually do one thing at a time which is quite good as long as there is not too much to do. But serving thousands of request per minute with thousands of source code lines per request starts getting challenging. Bon Jovi asked for help for web scripts some time ago by writing his song “(Whos gonna) work for the working man“. Well, there are little chances that he had something else in mind, but who cares. (weiterlesen…)

Weiterlesen
TOP

Don’t use exec and database connections

Typical Perl scripts (and others running as CGI-scripts) run and exit once they’re done, but this isn’t very efficient with medium or high request counts. Persistent solutions like FCGI and ModPerl avoid the additional interpreter loading and compiling phases, but start being challenging if any source file is changed. (weiterlesen…)

Weiterlesen
TOP

Order your checks

Doing many checks may slow down a program, but sorting the tests may improve your program’s speed a lot at a very low cost. (weiterlesen…)

Weiterlesen
TOP

Creating a crossword puzzle

Actually not a 100% real one, but something near by, like this one (near the end of the text).

Crossword puzzle creators must know and remember many words, but everybody could create one with a little help by a computer. (weiterlesen…)

Weiterlesen
TOP

SQL injection 2.0: Regular Expression injection

SQL injections are well-known and could easily be used against against most PHP scripts, but there is a much easier injection leak in many Perl scripts: Regular Expression injection. (weiterlesen…)

Weiterlesen
TOP

Counting letters in Perl

A blog comment resulting in a new post? Yes, a guy from southern Germany made me do this by trying to use the whole alphabet in his comment. (weiterlesen…)

Weiterlesen
TOP

Writing a DBI database driver

DBI is the universal Perl database interface but it’s using a so-called DBD driver module for each database type. I’ve been searching but didn’t find a DBD module fitting my needs and so I started writing a new one. (weiterlesen…)

Weiterlesen
TOP

Perl style and C style

Perl is TIMTOWTDI but not every style is good style. It allows you to write down source which isn’t executed the way you think. (weiterlesen…)

Weiterlesen
TOP

mySQL Tod durch Server-Reboot

Da schreibt man ganz ahnungslos an einem Blog-Post und plötzlich ist der Strom weg. Nicht bei mir, nein beim Server. Der Schock kam nach dem Reboot: Alle Blogartikel weg! Hilfe! (weiterlesen…)

Weiterlesen