Howto & Tutorial

TOP

Which ORM for Dancer and MongoDB?

I recently started my first Dancer & MongoDB project. MongoDB is my preferred database (at the moment) and Dancer is a great framework, but something is missing: I really prefer using an ORM and didn't find anything for MongoDB which fits my needs.
Weiterlesen
TOP

Cronjobs on the Dancer floor

Did you find a typo in the title? No? You're right. I recently started to love the Perl Dancer Framework - and tried to write my first cronjob for a Dancer based project today.
Weiterlesen
TOP

Memory backup

Some weeks ago, I wrote a post about aggregated logging by merging many "UPDATE ... SET count=count+1" SQL statements into one. But there's a problem: All of the data stored in memory is lost if the task or server crashes or if the database dies and doesn't come back until the task exists. Here is how I solved this problem.
Weiterlesen
TOP

MapReduce multiple MongoDB collections into one

There are few better ways for taking a SQL server down than SELECT ... JOIN statements. Don't get me wrong - a good JOIN could really fast, but huge JOIN blocks adding 10 or more foreign tables maybe even without using indexes could easily slow down the biggest SQL server. MongoDB has MapReduce to do the job with much less server impact - but more developer brain usage.

Weiterlesen
TOP

3D-Wasserzeichen mit GIMP

Bilderklau ist sehr beliebt bei den einen und sehr ungerne gesehen bei den anderen. Mit ein wenig GIMP-Magic kann sich der Dieb wenigstens nicht (so leicht) mit fremden Federn schmücken. Der persönliche Stempel soll möglichst wenig stören, aber gleichzeitig möglichst schwer zu entfernen sein - ein 3D-Wasserzeichen bietet sich hierfür an.
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

Einfach erklärt: MapReduct Tutorial

Ich nutze MongoDB schon seit über einem Jahr, bisher aber nur für kleinere Sachen - und ohne MapReduce. Dabei ist es genau diese Funktion, die viel zur Macht dieser ungewöhnlichen Datenbank beiträgt.

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

RSS-Feeds mit Blogspot

Never change a running system - leider klappt das nicht immer. Eine Blogger-Seite auf der ich in letzter Zeit öfters anzutreffen bin hat kürzlich einige gravierende Änderungen durchgeführt. Nicht alle Blogger die ich dort getroffen habe sind darüber begeistert und einige werden wohl in Zukunft nicht mehr in den Chat kommen - Zeit, sie in meinen RSS-Reader aufzunehmen, allerdings ist das ein echtes Problem da die meisten Blogspot nutzen.
Weiterlesen
TOP

AVM Fritz!Card, Asterisk and Ubuntu - a link collection

I'm running a small server at home which does storage services, telephone and MythTV in one box. The VoIP part is served by Asterisk (what else?) and a AVM FritzCard PCI.

Weiterlesen
TOP

Follow me, I'll follow you (maybe not at all), FSK Blogspot

Dieser Post ist vollkommen uninteressant, zumindest für alle die eigene Blogs haben oder einen anderen Anbieter als Blogspot (bzw. Blogger.com) nutzen. Ihr könnt einfach den RSS-Link oder Bloglovin benutzen. Viele Blogspot-Blogger haben gefragt, wie sie mir denn "folgen" oder sich "hier anmelden" können und hier kommt die Antwort: Um diesem Blog mit Blogspot oder Blogger (ehemals Google Friend Connect) zu folgen (hey, vielen Dank dass Du mich so interessant findest!), sind drei einfache Schritte notwendig:
Weiterlesen
TOP

Hash to string race

How to convert a hash to a string? Perl is TIMTOWTDY but which way is the fastest? I need a checksum (hash, digest) for the hash, so the string must be the same for the same hash every time. Hash keys are not sorted, even a simple join('', keys(%hash)) may be different for each call (if the hash has at least two keys).
Weiterlesen
TOP

git und github für SVN-Umsteiger

Ich bin svn-User und alle meine Begegnungen mit github endeten in Frust, denn die Useability ist mies, auch wenn sich in den letzten Jahren einiges getan hat. Git ist das gleiche wie github, oder? Dennoch, ich möchte ein OpenSource-Projekt unterstützen und dieses nutzt nunmal github, also bleibt mir keine andere Wahl.
Weiterlesen
TOP

RAID Rettung

Wie schon geschrieben bin ich dabei meinen Home-Fileserver/Telefonanlage/etc. umzurüsten. Gestern Abend kamen die neuen Festplatten (UPS liefert hier meist zwischen 17:00 und 18:00 Uhr aus) und  waren dank Wechselrahmen auch schnell "eingebaut".
Weiterlesen