Bracing against the wind | |
www.documentroot.com |
Thursday, May 08, 2008
Perl Round Function
Labels: perl, programming [View/Post Comments] [Digg] [Del.icio.us] [Stumble]
Useful Line for Quoting Shell Arguments
Single quote version is safer, but is harder for me to read.
Labels: perl, programming [View/Post Comments] [Digg] [Del.icio.us] [Stumble] Thursday, December 14, 2006
Running Perl Programs as Services
My solution is to create a shortcut to a text file on the Desktop assign a key sequence to it. I press Control-Shift-T and a text file pops open. Then I add some dashes at the top as a "new entry" marker. I jot some notes down and Alt-F-S, Alt-F4. I rarely remember to time/datestamp my entries, so I'd wrote a program to do it for me. If it looks complicated, that's because I decided to copy and paste some skeleton code from Win32::Daemon. It's terribly easy now to create Windows services out of Perl programs. The program monitors my two text "note files" and updates them with timestamps within 1 second after being modified. It uses negligible CPU time. Archiving could be done automatically as well, moving 6 month old entries to a backup, but for now, I like to do that by hand. Labels: perl, programming [View/Post Comments] [Digg] [Del.icio.us] [Stumble] Friday, September 23, 2005
AIM:Chat with ErgoEst
Anyway. If you use Trillian (love love), GAIM, or any other AIM client, say hello to ErgoEst. Labels: perl, programming, weird experiments [View/Post Comments] [Digg] [Del.icio.us] [Stumble] Tuesday, May 24, 2005
Pure Perl CGI Server
Since the webserver is written in perl, you're not execve'ing on every hit. And the server itself is very lightweight, so dprof will probably tell you that slowdowns are coming your CGI. Note: If your perl program ever blocks on IO, don't think about using this server. But you wouldn't do that, would you? In summary, if you have a perl CGI that's slow under Apache and you need to handle hundreds of CGI requests per second on a cheap box, ppcgid might help. Let me know if/how you find it useful. Labels: perl, web development [View/Post Comments] [Digg] [Del.icio.us] [Stumble] |
|
Bloghop:
|
Blogarama
|
Technorati
|
Blogwise