Archive for the 'Dev' 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

Firefox extensions for web developers

Tuesday, July 4th, 2006

All the coding that I do at work is web-based, so I looked for extensions to Firefox that would help me debug/troubleshoot.
Here’s what I found, that I cannot live without:

  • Firebug - fantastic for troubleshooting , css, and XMLHTTPRequest… including stack traces; also contains an inspecter and some other things. Bonus: you can add javascript code for debugging (that you wont later have to remove or comment out) by using
    console.debug

    or console.info and a few other error levels. The XMLHTTPRequest debug output alone is worth its weight in gold (i’ve been doing a log Ajax-type stuff lately so it has come in really handy)

  • Web Developer toolbar - Contains a boatload of useful things. My favorites: showing all class/id details, displaying element information as you move around a page, and ‘view source -> generated source’ (YES, you can see the source of a page that was dynamically generated without resubmitting the form (as the default ‘view source’ requires)
  • Live HTTP Headers - shows you HTTP headers being sent and received real time. You can filter which sites you care about or exclude things like images. Also shows you form-related POST and GET (both requests and responses). Great for finding out what hitting Submit actually sent
  • Find in Statusbar - not just for developers but anyone who wants to conserve precious screen real estate. adds a small search text box to the status bar instead of popping up a new section above the statusbar….also dont have to worry about accidentally making it pop up by certain key combinations.

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


Protect Web Form!

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