Howto & Tutorial
I'm using the WordPress plugin StatSurfer for quick dashboard statistics, but it's getting slower and slower while my blog is getting older.
We started using Memcache for a project some time ago and the sessions of our web users had been one of the first functions using it. Here is how to use Memcache to reduce database load and speed up your websites.
Race conditions are nice: Two (or more) tasks are fighting for the same thing at the same time. Row locking on the database may help to avoid such races but only if the database supports them.
I recently announced an article about Gearman, today I'ld like to start with setting up a Gearman dispatcher server.
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.
In meinem letzten Beitrag zu Testmama's wöchentlicher Blogparade habe ich Euch - wie gefordert - ein Rätsel aufgegeben. Heute gibt es die passende Lösung dazu.
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.
Ja, ich gestehe, ich stamme aus DOS-Zeiten. Ursprünglich DATAPOINT-DOS auf einem 6600 und später MS-DOS auf dem PC. Bis heute bin ich kein echter GUI-User geworden, sondern arbeite viel mit Scripten und Shell-Fenstern. Seit etwa einem halben Jahr suche ich nach einer Möglichkeit, den Ubuntu NetworkManager per Skript zu kontrollieren, genauer gesagt eine Verbindung auf- oder abzubauen.
Als ehemaliger Outlook-User vermisse ich die eine oder andere Kleinigkeit bei Thunderbird. Nachdem bei planmäßigen Wartungsarbeiten gestern verschiedene Fehlermeldungen ausgelöst und innerhalb von etwa 10 Minuten über 30.000 Mails generiert wurden, wird dies um so wichtiger damit nichts Wichtiges untergeht.
What is profiling?
Each script should care of resources (time, memory or CPU time) being used, but some don't. Profiling is a detailed analysis of your script's behavior while it's running.A profiler notices every processed line, it's callers and called functions and time required to process it.
Alex, a co-worker, asked me about sending emails today. He has to send out a mail from a development box which usually isn't allowed to send any emails to the outside world. This is archived by re-mapping the hostname of the company's SMTP-server to a dedicated internal IP providing an SMTP server without outbound abilities. I answered his questions but didn't have the time to explain the background. Here is it.
It happend to PerlMonks, Sony and many others: A plain text password table was stolen from the database. Read this carefully to not become the next one on that list.
Das Cherry Keypad G84-4700 ist ansich ein ganz normaler Ziffernblock, allerdings mit der kleinen Besonderheit, dass die Tasten programmierbar sind. Mit dem beiliegenden Cherry Windows-Treiber kann jede Taste beliebige Zeichenfolgen senden... Windows? Linux (in meinem Fall Ubuntu Desktop) wird von Cherry weder erwähnt, noch werden entsprechende Anfragen vom Support beantwortet. Doch die Verlockung auf zusätzliche Shortcuts war zu groß und so habe ich mir einfach das Keypad bestellt.
Memcached is a great tool for speeding up your database access. A "stats" command returns usage statistics but few documentation is available on what's returned.
mySQL sorgt für viele interessante Effekte, einer davon ist das myISAM Table Locking, welches gerne auch Queries auf andere Tabellen blockiert.