Suchergebnisse für „Perl“

TOP

Perl MongoDB driver number handling

Perl doesn't care about numbers, integer or float - at least on the script level - but MongoDB does. The driver's default number detection algorithm treats floats as strings and MongoDB doesn't like to compare strings with less-than or greater-than operations.
Weiterlesen
TOP

Setting up a VServer without VServer support

My development server is a remote Vserver image running under VirtualServer or OpenVZ or anything else. I don't know because I don't care because other people do. I'm used to develop over SSH a lot, this is not problem, but I'm limited to CIFS as a Vserver can't provide NFS. NFS with cachefilesd was fast enough to work on the sources, at least most of the time, but CIFS is a complete fail. Browsing a small directory in my editor may easily take two or three minutes and saving files takes up to 30 seconds.
Weiterlesen
TOP

Clean up old kernel images from Ubuntu

My laptop has "only" 20 GB for the root-partition / including home, usr and var. This is enough but recent updates dropped my free space below 1 GB and lately below 500 MB. I noticed that various kernel images & modules are wasting spaces but not used at all.
Weiterlesen
TOP

Bottleneck file-I/O

Database load, disk, CPU and memory usage are known ressources on modern servers, but there is another one which is much more important: The I/O volume is limited and can't be raised as easy as all the others. It has no fixed limit and can't be measured (very good). It's a rare (maybe the most rare) good and shouldn't be wasted.
Weiterlesen
TOP

Der erste mySQL-Slave

Heute wurde mir eine kurze Frage gestellt:
Wir wollen in Richtung DB Slaves gehen, um die Hauptdatenbank zu entlasten. Ich würde gerne aus Deiner Sicht erfahren, wo Probleme auftauchen können.
Weiterlesen
TOP

First steps with MongoDB MapReduce

I recently decided to prefer MongoDB for new projects and it turned out that I still need to learn a lot of things about it. One of them is MapReduce which is more powerful than (most) SQL SELECT options.

Weiterlesen
TOP

CRC32 vs. CRC32B

Someone asked me about a CRC32B checksum today. No problem, there is CPAN and a common checksum like CRC should be very easy, there must be a module (or two or three or so) on CPAN, task done, next one. Stop. There are two modules for CRC32: Digest::CRC32 and String::CRC32 but really nothing for CRC32B.

Weiterlesen
TOP

Mini sed Howto

sed ist das Universaltool zur massenweisen Dateimanipulation, allerdings schlägt sich seine unglaubliche Flexibilität auch in einer komplizierten Nutzung wieder, hier sind ein paar wichtige Anwendungsfälle und Aufrufbeispiele.
Weiterlesen
TOP

GoogleTalk with Perl

I tried to set up a little notification daemon in one of my projects: It should send a message to my GoogleTalk account for special events and that should be easy using one of the huge amount of Jabber/XMPP modules on CPAN.
Weiterlesen
TOP

Getting started with Gearman

I wrote about Gearman some time ago and didn't get the tuits to write the next posts, but here we go: How to start working with Gearman.

I strongly suggest that you don't start by adding Gearman to your productional systems because there are many things to consider and you probably don't want to rewrite everything once it's running.

Weiterlesen