Wednesday, April 20, 2011
CPAN to the rescue
I needed a quick tool to change HTML to POD. I coulda sworn I had a html2pod utility at the command line - nope - must've been that other Linux distro. No worries - I just grabbed Pod::HTML2Pod and with very little modification to the example code I had just what I wanted.
Friday, March 4, 2011
Mac OSX and CGI.pm
"I'm NOT a web developer!" I've been saying that a lot lately. Even so, because I have done a bit of LDAP programming and they needed a web interface, I wrote a quick hack which turned into a big, long painful project. The biggest issue is so many things don't work the same (or at all) on Mac OSX. OpenLDAP, for instance (a whole other story). [It should be noted - I'm also not a Mac guy.]

I tried for several days to get CGI.pm redirects and refreshes to work but kept getting Error 302's. I found lots of people with the same issue on the Mac. Finally - someone said "You'll have to write it without CGI.pm because it doesn't 100% work on the Mac (and/or maybe the Apple Apache config was incriminated). Anyway, I rewrote the redirects without CGI.pm (ugly, inelegant Perl 4ish looking code) and it worked fine.
Since I never exactly found the answer - I want to state for future folks looking for an answer - "IT DOESN'T WORK RIGHT ON A MAC" (this phrase can be re-used for a great many things). And, if I'm wrong (because, remember, I'm not a web developer) it'd be great for someone to comment with the right answer.
I'll probably get comments such as "You're using CGI.pm for web development?! Are you from the past?!" To this I would say "Yes I am".

I tried for several days to get CGI.pm redirects and refreshes to work but kept getting Error 302's. I found lots of people with the same issue on the Mac. Finally - someone said "You'll have to write it without CGI.pm because it doesn't 100% work on the Mac (and/or maybe the Apple Apache config was incriminated). Anyway, I rewrote the redirects without CGI.pm (ugly, inelegant Perl 4ish looking code) and it worked fine.
Since I never exactly found the answer - I want to state for future folks looking for an answer - "IT DOESN'T WORK RIGHT ON A MAC" (this phrase can be re-used for a great many things). And, if I'm wrong (because, remember, I'm not a web developer) it'd be great for someone to comment with the right answer.
I'll probably get comments such as "You're using CGI.pm for web development?! Are you from the past?!" To this I would say "Yes I am".
Monday, February 21, 2011
SDL and Perl
I missed this article from Perl.com last month: Visualizing Music with SDL and Perl. It caught my eye because I've just recently read The Book of Xen (great book, btw) and it mentioned SDL as an alternative to, say, vnc, which sent me off looking up more about SDL. Anyhoo, the code looks like fun and uses concepts that could come in handy - especially if I ever get around to writing a video game (kidding - not likely to make it down that far on the list in this lifetime). So check it out - there's still lots of cool things going on with Perl all the time.
Thursday, October 21, 2010
Really good Perl book under a secretive title
Since I've been doing a lot of LDAP programming lately, I finally broke down and bought O'Reilly's LDAP System Administration. I found a used paperback for $4! While I was waiting, I got impatient and bought the Kindle version for my Android phone. I just bought it for the LDAP ACL info but I was thrilled to see chapter 10 was devoted to Perl-LDAP. It explained a lot of things in the Perl-LDAP example code that I hadn't seen explained before (I'm sure it's out there but the author has done a nice job of digging it all up and putting it together). Anyway, if you're looking for a nice LDAP book, this is looking like a good one so far (still reading).
Monday, August 16, 2010
New technology I'm Working On
I find that people often think because I work primarily on UNIX/Linux and still use Perl that I'm not learning anything new or that I do not like learning. Nothing could be further from the truth. I love new technology and I'm always learning something new.
Here's what I've been working on in the last year:
I'm pretty excited about my list (above) and do as much reading and experimenting as time permits. It sure seems to me that I'm learning new stuff - Well, I'm learning things that interest me. I guess because non-Windows things don't interest some I guess it appears that I'm not learning anything (that interests them). Oh well. Can't please everyone and I stopped trying long ago.
Here's what I've been working on in the last year:
- Solaris Zones and Containers
- Solaris Zetabyte File system (ZFS)
- GNU Screen
- Ruby
- More Perl LDAP programming
- More Perl programming in general
- Rakudo (a Perl 6 distro)
- PUGS (another Perl 6 distro)
- SQLite3 and Perl
- RCS (Revision Control System)
- Solaris LDOMs (need a lab experiment)
- See how ZFS is implemented under other OS's (e.g. FreeBSD)
- Use More Ruby! (and I'm looking at a Rails book from the library)
- Juniper's JunOS (I like the XML and the idea of scripting with Perl)
- MORE Rakudo!! (Not so much Pugs) I hope to contribute bug reports
- Sun's Dtrace (especially using Perl and Dtrace)
- Xen and Linux - need a lab experiment
- Btrfs - Linux's answer to ZFS? Need to explore in a lab.
- Lots more SQLite (I really like that tool)
- Python (Because Zope runs on it!)
- Plone (runs on Zope)
- C - need to refreshen my C programming skills - getting rusty
- Java
- Command line Sun VirtualBox
- I'm sure there's a few more...
I'm pretty excited about my list (above) and do as much reading and experimenting as time permits. It sure seems to me that I'm learning new stuff - Well, I'm learning things that interest me. I guess because non-Windows things don't interest some I guess it appears that I'm not learning anything (that interests them). Oh well. Can't please everyone and I stopped trying long ago.
Thursday, August 5, 2010
Perl and SQLite
Finally got around to finishing my little SQLite and Perl program. To speed things up, I used a shell script with remote SSH commands to grab the data, then used Perl to stuff it into SQLite. Very cool! Need to use Perl's Net-SNMP on next version but this was mainly an excuse to use SQLite. Glad I did. There's a lot of strangeness - can't get used to putting a dot in front of commands and many of my favorite SQL commands are missing or renamed. Still - SO COOL to be able to create a database on the fly like that.
Saturday, July 10, 2010
Nifty Perl Hack
I threw together a tiny bit of code with the example code from Net::IMAP::Simple to make a program that watches for Mailman unsubscribe messages, logs them, then deletes the message. It was a 5 minute job (except for the part where my iteration was off by one and kept deleting the wrong message). Perl is so handy for things like this.
Subscribe to:
Posts (Atom)