TOP

Moose Namespace collision

I’m working on one Moose-based project and ran into bad difficulties yesterday. Suspicious compile time errors, default value subroutines being called way too early and with an empty hash reference as argument instead of an object. It took me hours and some hints from #moose on irc.perl.org to find a workaround and finally today, I was able to reproduce the problem. (weiterlesen …)

Weiterlesen
TOP

Moose documentation quick reference

I don’t like Moose. It has a lot of disadvantages and tries to create a new language based on Perl – without any need. But I’m forced to use it within a project and working myself into all that stuff, the documentation turned out to be as bad as the one of DBIx::Class. This post is my attempt to merge the most important documentation parts. (weiterlesen …)

Weiterlesen
TOP

mySQL TIMESTAMP ON UPDATE CURRENT_TIMESTAMP – Probleme

mySQL macht selten was man erwartet, einige Sonderfälle scheinen absolut willkürlich zu sein. Dazu gehört die Verwendung von NOW() oder CURRENT_TIMESTAMP in DEFAULT-Werten einer Tabelle. (weiterlesen …)

Weiterlesen
TOP

Connecting to Sybase ASE with Perl’s DBI

CPAN has everything. Nearly everything and one of the modules is DBD::Sybase which connects to Microsoft SQL servers as well as Sybase ASE and iAnywhere servers, but there’s a trick. (weiterlesen …)

Weiterlesen
TOP

Session-Trouble

Why should I write about sessioning at all? A session is something which exists and should be as easy usable as possible. Is this the end of my blog post about sessioning? (weiterlesen …)

Weiterlesen
TOP

defining undef

MS-DOS basic variants had fixed default values for variables, “empty” for string variables and “0″ for numbers. DATABUS (now DB/C) variables used to have unpredictable content unless initialized with an empty value and Pascal – as far as I remember – also had default values. Perl doesn’t distinguish between text and numbers but it has a default value for all scalars: undef. (weiterlesen …)

Weiterlesen
TOP

Apache2 mit PHP5-FPM und chroot-Jail

Seit einiger Zeit arbeite ich mit PSGI/Plack, aber erst jetzt weiß ich, wie schön Plackup, Starman & Co. wirklich sind – denn heute wollte ich “mal eben” PHP5 in eine FastCGI-Umgebung schieben. Dafür gibt es den PHP-FPM (FastCGI Process Manager), der mittlerweile wie auch alles andere was nur wenige Leute brauchen Teil des PHP-Core ist und dieser unterstützt sogar die Absicherung der PHP-Scripte mittels chroot – allerdings habe ich keine Anleitung im Internet gefunden, die dieses wichtige Security-Feature tatsächlich nutzt. (weiterlesen …)

Weiterlesen
TOP

Expensive join

How to concat an array into a string? Perl is TIMTOWTDI and I could imagine two common ways – but which one is the best? (weiterlesen …)

Weiterlesen
TOP

Age check with Perl

Kids are discriminated for being kids. They’re not allowed to smoke, drink alcohol and use various internet offers. but writing “not for kids” on a homepage barely fulfills legal and real life requirements, software has to calculate the age based on a known date of birth. (weiterlesen …)

Weiterlesen
TOP

DBD::Sybase localization error for de_DE.UTF8

.Sybase ASE is one of my preferred databases and the Express Edition is freeware (thanks, Sybase!) but using the OpenClient driver on a plain German Linux installation issues some error messages: (weiterlesen …)

Weiterlesen
);?article-read-more?php get_footer();?\/h6/a href= );?Schreib einen Kommentar Schreib einen Kommentar