Archive for the 'Perl' Category

links for 2008-06-07

Saturday, June 7th, 2008

links for 2008-06-06

Friday, June 6th, 2008
  • This module is a wrapper around the Unix lsof utility (written by Victor A.Abell, Copyright Purdue University), which lists open files as well as information about the files and processes opening them. Unix::Lsof uses the lsof binary, so you need to have
    (tags: linux perl)
  • This script monitors the process table using Proc::ProcessTable, and will respawn or kill processes based on a set of rules defined in an Apache style configuration file.

    Processes will be respawned if a spawn command is defined for a process, and no o

  • (more…)

links for 2008-06-02

Monday, June 2nd, 2008

Find Perl module versions

Friday, June 30th, 2006

Add this to your .bashrc:

function pmver () { perl -M$1 -le "print $1->VERSION"; }

pmver $module
ex:

root@linuxwins:~/.cpan/build# pmver IO::Tty
1.05

This is actually part of Hack #4 of “Perl Hacks”

Catalyst in a box - easy eval of perl MVC framework

Monday, June 26th, 2006

Catalyst is an up-n-coming Model-View-Controller framework written in Perl.

Someone else besides me got tired of all the dependencies and therefore painful installation of Catalyst, and was nice enough to create a “uncompress and run” version of Catalyst. It’s available here

I tried it out yesterday, and was up and running in under 5 minutes.

For all you perl programmers who do web-based apps, you should definitely give Catalyst a look

Raw html from CGI.pm

Friday, August 20th, 2004

Note to self: if your perl CGI script ever returns what looks like raw HTML in your browser, check for print statements that
dont print html. ALL DAY I looked for the bug, luckily another team member found it for me. It was in a totally different method
from the one that generates the HTML, and therefore ended up getting sent just before the header, screwing up everything.

I also learned today that you can use

wget -d

to see all the headers being returned.

Backup your Palm

Wednesday, July 7th, 2004

With my new script [perl], you can run full backups as often as you wish.

Backups are stored in dated dirs (ex: m500_backup.20040707-1610)

Requires: Perl and pilot-link

Next idea…

Wednesday, June 16th, 2004

I want to write an app that will let me catalog all my cds, MP3s, DVDs, and books. It will support the CueCat scanner to make for easy entry of items (I won’t assume that all people have their CueCat hacked, as I do). It will be in perl of course because I just can’t seem to get anything written in Java in a timely manner as it is such a PITA about everything. I found a few abandoned projects on SourceForge that either never got past the planning stage, or never got much useful code written.

It started out as just something to catalog MP3s. It would read the ID3 tags (if there were any) and use that data to populate the db entry or supplement data found on FreeDB.org. A perl/tk app was going to run on any desktop/laptop with MP3s but no
internet access, which would grab as much data as possible about the mp3s and dump the output to a flatfile. A second perl/tk app would send that output file to a cgi/webapp that would get the data into the db after looking up whatever it needed on FreeDB.

It will be stored in a mysql db and have a web interface for searching and adding new data.


Protect Web Form!

Bad Behavior has blocked 89 access attempts in the last 7 days.