Perl

Beginner's dance class

Beginners' Dance Class: http://www.youtube.com/watch?v=y64Ynur-veU

Perl turned 20 a couple of years ago. It has been with us since the Web has learned to crawl. Long before php, java beans and web application frameworks. There is tons of old perl out there, but there is also new perl code which runs on modern websites. Sometimes it is hard to find what is what.

Dancer: Avoid session altogether

I found a new toy: Dancer, the minimal effort perl web framework, see http://perldancer.org. Main advantage: easy to start even without any real webapp experience, good learning curve, nice community (still somewhat small) . Dancer code looks good. Some would even say elegant.

Anyways, I just noticed that I don't even need a session. I can just load info in class variable

our $memory_cache;

oai_browser.pl -> oai_browser.exe

Here is a windows xp executable of Tim Brody's oai_browser from cpan.

 

docx2txt.pl

Recently, I installed search files http://drupal.org/project/search_files and noticed that I still cannot search my docx files. So here my first attempt to solve the problem. A little perl script that reads in docx, unzips it, and displays the content in no particular order using libxml. It's my first attempt. Version 0.001 after a few minutes.

Found a similar project: http://docx2txt.sourceforge.net

which uses

Clean your mp3 library with the power of CPAN

Last time, I reported my problems with cleaning my iTunes library.

In the past, I had various problems with storing my mp3s, hard disk failures and consequent attempts to save them etc. I must have played back my backups more than once, anyways, I  nearly have every file at least twice.

FTP Again

Really, I can't believe it. I am back to my problems with ftp again. FTP is so limited: the in-built security breach with unencrypted password is only the tip of the iceberg. Today, I realized  that the limitation that you cannot transfer from one remote site to another etc. is most likely built in the protocol specification. What I don't quite get is how so many people (including me) still use it? How can web providers still offer only ftp access and nothing else. And above all, if that is the case why are there not better perl modules for ftp around.

ftpsync.pl

I looked at Christoph Lechleitner's ftpsync.pl today. By the way, I am very surprised that there is no CPAN module that does what I want: mirror my website with ease and comfort. The closest I could find on CPAN is NET::FTP::Recursive, but this is still far from what I want - naturally this module doesn't check if file is already present and the time stamp.

Drupal Mirror Plans

I recently set up a simple backup script that downloads my Drupal site and backs it up. The result is a zipped file that I hardly ever look at. Now for backup, but also for testing, it would be much nicer to have a script that mirrors my site as it is this moment to an active environment on localhost. Then you can check if the backup worked and you can easily start experimenting with new stuff (modules) without exposing your production server to any risk.

To get a simple version of this functionality, what were the steps to get this running?
Syndicate content