Suchergebnisse für „CPAN“

TOP

Winterlektüre für Piloten

Viele Privatpiloten "grounden" sich im Winter selbst, mal mehr, mal weniger freiwillig. Trotzdem sollte man sich auch zwischen Oktober und März etwas mit der Materie beschäftigen.
Weiterlesen
TOP

use Problems; with Exporter and import

The Exporter-module "copies" functions and symbols from a module into other files - but not reliable.
Weiterlesen
TOP

(Don't) Panic: attempt to copy freed scalar 135c588 to 13767c0 at Carp.pm

A new problem appeared about a week ago: Perl paniced - something I've never seen before - with an internal error message "attempt to copy freed scalar". The problem occurred in Carp.pm which is a Perl core module.
Weiterlesen
TOP

Intelligent caching for alltime statistics

Statistics are important for many projects, but not all of them are easy to build. Many long-term stats involve heavy SQL queries and some may of these queries may also freeze database servers or tables. Caching intermediate results may limit these queries to a minimum.
Weiterlesen
TOP

Setting up a OpenVZ/MongoDB/YAWF VE

The YAWF framework is available from CPAN, but it still needs a Webserver and some environment for working at it's best. This tutorial shows everything needed to set up a new OpenVZ VE (VServer) with MongoDB and YAWF framework on an existing OpenVZ host.

Weiterlesen
TOP

Useless stuff on CPAN

There are well-written and not-so-well-written modules on CPAN, but I didn't discover any really bad stuff until now. The module I discovered today is also not bad stuff, but just "completely useless" - but it's that good crap that it's worth a blog post :-)
Weiterlesen
TOP

mySQL für Umsteiger

PHP und mySQL sind sind klassische Einstiegsdroge in die Web-Programmierung. Im Gegensatz zu den am Straßenrand verkauften Pülverchen & Co. kann es in der Web-Programmierung allerdings nur besser werden - womit allerdings auch das Suchtpotential zunimmt. Schwieriger wird es, wenn man von der anderen Seite kommt und sich auf mySQL umstellen muss.
Weiterlesen
TOP

Finishing Tie::Hash::MongoDB

The first part of this guide explained how to create the skeleton of the new module and how to create the backend for tie'ing a hash to a MongoDB document.

This second part will finish the job by putting some useful code into the skeleton methods.

Weiterlesen
TOP

Creating Tie::Hash::MongoDB from scratch using Padre

Perl's hash is very powerful, it stores any kind of data, but it's kept in memory and this is not always wanted. The powerful "tie" function binds a hash to a Perl module which could do whatever_it_wants with the data.

Today I'ld like to show you how easy a has could be connected to a database. A module which connects a hash to SQL is already on CPAN, so let's go with MongoDB.

Weiterlesen
TOP

New YAWF::Object::MongoDB on CPAN

The MongoDB abstraction layer YAWF::Object::MongoDB finally made it's version 0.02 release to CPAN yesterday.

A lot of bugs have been fixed, some minor, some major and many new tests have been added.

The new version supports grouping of (top level) keys:

use YAWF::Object::MongoDB (   keys       => [     {         birch => 1,         oak   => 1,         color => 1,     },     {         deer => 1,         boar   => 1,         color => 1,     },
  ]);
This will push birch, oak and color in one group (group 0) and deer, boar and color in another group (group 1).

While fetching a document out of the database using ->new(), all the keys from group 0 will be fetched. Accessing one of the keys from another group (1 or higher) will add all the keys from their group(s). "color" is part of two groups, it will be fetched if either group is being requested.

Accessing any undefined key using get_column() will download the whole database document.

This is very new and even if a test script is there and it passes, there might be bugs and issues. Grouping isn't currently part of the POD documentation and using ->list will still ignore it. Please test it and comment and once I consider it to be some kind of "stable", I'll add it to POD.

 

Weiterlesen