alien_nmake.pl
on Feb 11, 2007 at 13:07
|
0 replies
|
by demerphq
|
Download and install nmake from microsoft automatically using only modules distributed with ActiveState Perl.
alien_nmake.pl
Automatically download, unpack and install nmake 1.5 from microsoft.
The downloaded and unpacked files will be compared with known valid
checksums and if there are any mismatches the files will not be execut
+ed
or installed. The install location will by default be the Perl 'bin'
directory.
If the script detects nmake already installed it will do nothing.
Options are:
--help|-h Print out this documentation
--verbose Be verbose during installation process
--force Download and install it regardless
--path Specify the install location, if the direction doe
+s
not exist it will be created.
Many thanks to Microsoft for making this essential tool available to
all for free.
|
part - split up files according to column value
on Feb 07, 2007 at 04:44
|
3 replies
|
by Corion
|
|
I often have to split up text files for consumption in Excel. A convenient way of splitting up a file meaningfully is to split it up by the value of a column. The program does this by accumulating the input into a hash of arrays keyed by the column value.
There is an awk oneliner (I'm told) that circumvents the memory limitations this program encounters:
awk -F '{ print $0 > $3 }' FILES
If you want something like this program in a module, see List::Part
Update: Also see join - join two files according to a common key. If you need one, you'll likely need the other too.
Update: v0.03 now can part according to more than one column.
Update: v0.04 now can output multiple header lines into every file.
Update: v0.06 fixes two errors: The column at the end of each line couldn't be used (well) as the key column. Header lines are now actually printed.
Update: Now there also is a Github repository for the case that you want to submit a patch.
Update: The code is now also on CPAN as App::part.
|
PL/Perl - Oracle "decode( )" for Postgresql
on Jan 30, 2007 at 20:43
|
0 replies
|
by Madams
|
|
This node is just to point to my SOPW entry which should belong here actually.
|
Stopwatch using perl
on Jan 29, 2007 at 01:32
|
1 reply
|
by vijay814u
|
|
This stop watch has been created using perl script.
|
download mp3s listed in RSS feed
on Jan 26, 2007 at 21:36
|
0 replies
|
by blahblahblah
|
|
Scans WFMU's MP3 archive RSS Feed for certain show titles, and then downloads those shows.
There's no particular reason to use POE::Component::RSSAggregator rather than XML::RSS::Feed, other than the fact that I heard about the POE version first and was interested in trying something in POE. (Thanks again everyone for helping me get around the problems due to my out-of-date POE in POE::Component::RSSAggregator breaks LWP::Simple::get.)
Also, I heartily recommend this station to everyone!
|
Mastermind Game in Perl/Tk
on Jan 23, 2007 at 10:50
|
2 replies
|
by Anonymous Monk
|
|
A version in perl/tk of the game known as Master Mind, it's not an example of good programming, sure, but it works :)
|
VPN logon monitor to run logon scripts
on Jan 16, 2007 at 07:31
|
0 replies
|
by lilphil
|
Waits for Win32 NetAdapterConfiguration events, checks event for IpAddress and compares it with a predefined network/netmask pair.
If IpAddress is within said network it runs the logon script.
Caveats:
It listens for all network reconfiguration events, so it will check against LAN addresses if a lease is renewed.
Disconnection of a VPN still returns the disconnected IP, so it runs on disconnection too.
Not very useful for deployment as perl, I use PAR::Packer to create an exe.
|
emailpull.pl
on Jan 10, 2007 at 14:41
|
1 reply
|
by RyuMaou
|
Just another quick and dirty script I used to extract e-mail addresses from an mbox mail file. It pulls them and prints them to the screen, so I redirect them to a text file and use the other, related script I posted emailverify.pl, to make sure they are valid.
Again, not the prettiest script, but it got the job done!
|
emailverify.pl
on Jan 10, 2007 at 14:23
|
0 replies
|
by RyuMaou
|
|
A quick and dirty script that checks e-mail addresses in a flat file (one per line) and verifies them at their alleged domain. Not pretty, but it seems to work well enough!
In actual practice, I redirect the output to a text file.
And, just FYI, I did this to create a whitelist pulled from e-mail addresses out of a power user's address book for an anti-spam upgrade. It wasn't perfect, but it did get the job done.
|
Check if your site's been banned with Google
on Jan 08, 2007 at 08:15
|
2 replies
|
by Alien
|
|
Script to check if your site has been banned from Google ... in an ideal world it would have checked for back links too ... but who knows :) ... maybe the next version !
|