web developer & system programmer

coder . cl

ramblings and thoughts on programming...

function prototypes and references in perl

published: 20-08-2010 / updated: 20-08-2010
posted in: development, perl, programming, sysadmin, tips
by Daniel Molina Wegener

Some people is considering Perl as a non-friendly language, but in my opinion is a powerful language, not only for its capacity to do text-processing, it also has a lot of modules and extensions which makes it a language of choice for a wide variety of applications. I prefer to code Perl using strict and function prototypes, so it looks more clean and elegant. Also it supports lambdas for some tasks. Let’s take look on prototypes and references. You will find interesting topics reading perlsub(1) and perlref(1).

configuring snmptrapd

published: 16-07-2010 / updated: 16-07-2010
posted in: perl, programming, sysadmin, tips
by Daniel Molina Wegener

snmptrapd(8) is a SNMP trap daemon, in other words, it captures SNMP notifications from the network and similar devices. In this post I will try to explain how to configure this daemon to allow a network server to process SNMP traps using both, embeded perl handlers for snmptrapd(8) and plain standard input — or stdin — handlers.

the wrong way to run…

published: 25-06-2008 / updated: 25-06-2008
posted in: perl, programming, rants, tips
by Daniel Molina Wegener

Today was another development nightmare day, everything seems to be cloaked in wrong events. Me under pressure and Winbloat — call it Micro$oft Windows — fails everywhere I need it working.

fighting spam in kontact (under FreeBSD)

published: 22-04-2008 / updated: 22-04-2008
posted in: perl, programming, rants
by Daniel Molina Wegener

Hi!, I’m a KDE user and receiving some spam like any concurrent Internet user. Sometimes I was looking at Kontact menus and wow!, the Tools have a two interesting entries: Anti-Spam Wizard and Anti-Virus Wizard.

procinfo-0.2 (win32 process information, updated)

published: 27-10-2007 / updated: 27-10-2007
posted in: perl, programming, projects
by Daniel Molina Wegener

Hello, I’ve made a small program in C, using the Win32 API and PCRE (Perl Compatible Regular Expressions) library. It works as a CLI application, this means that you must use it from the windows console, also known as cmd.exe.