Archive for the ‘Programming’ Category

Batch remane files in directory

Tuesday, December 2nd, 2008

#!/bin/sh
perl -e ‘for (@ARGV) { ($new=$_) =~ tr/[A-Z]/[a-z]/; rename $_, $new unless -e $new }’ *.txt
perl -e ‘for (@ARGV) { ($new=$_) =~ s/(\s+|\-+)//g; rename $_, $new unless -e $new }’ *.txt

sudo: sorry, you must have a tty to run sudo

Tuesday, October 21st, 2008
  • vi /etc/sudoers
  • comment out: #Default requiretty

Matt’s Free Perl CGI Scripts

Wednesday, September 10th, 2008

http://www.scriptarchive.com/

perlfaq

Wednesday, July 9th, 2008

http://faq.perl.org/

The perlfaq comprises several documents that answer the most commonly asked questions about Perl and Perl programming. It’s divided by topic into nine major sections outlined in this document.

Where to get the perlfaq

The perlfaq comes with the standard Perl distribution, so if you have Perl you should have the perlfaq. You should also have the perldoc tool that let’s you read the perlfaq:

	$ perldoc perlfaq

Besides your local system, you can find the perlfaq on the web, including at http://perldoc.perl.org/ .

The perlfaq is an evolving document and you can read the latest version at http://faq.perl.org/ . The perlfaq-workers periodically post extracts of the latest perlfaq to comp.lang.perl.misc.

You can view the source tree at https://svn.perl.org/modules/perlfaq/trunk/ (which is outside of the main Perl source tree). The SVN repository notes all changes to the FAQ and holds the latest version of the working documents and may vary significantly from the version distributed with the latest version of Perl. Check the repository before sending your corrections.

Install C and C++ compilers on Ubuntu

Friday, June 27th, 2008
  • sudo aptitude install build-essential

Perl training by Stonehenge

Tuesday, June 3rd, 2008

http://www.stonehenge.com/merlyn/UnixReview/col32.html

Stonehenge has been teaching Perl since 1992, and our trainers are the authors of the bestselling tutorial books Learning Perl and Intermediate Perl which are based on our classes.

Lingua::EN::Syllable & Lingua::EN::Fathom

Monday, June 2nd, 2008

http://search.cpan.org/~gregfast/Lingua-EN-Syllable-0.251

http://search.cpan.org/dist/Lingua-EN-Fathom

This module analyses English text in either a string or file. Totals are then calculated for the number of characters, words, sentences, blank and non blank (text) lines and paragraphs. Three common readability statistics are also derived, the Fog, Flesch and Kincaid indices. All of these properties can be accessed through individual methods, or by generating a text report. A hash of all unique words and the number of times they occur is generated.

C++ STL (Standard Template Library)

Tuesday, May 27th, 2008

http://www.yolinux.com/TUTORIALS/LinuxTutorialC++STL.html

The Standard Template Libraries (STL’s) are a set of C++ template classes to provide common programming data structures and functions such as doubly linked lists (list), paired arrays (map), expandable arrays (vector), large string storage and manipulation (rope), etc. The STL library is available from the STL home page. This is also your best detailed reference for all of the STL class functions available.

Wicked Cool Shell Scripts: The Library

Tuesday, May 27th, 2008

http://www.intuitive.com/wicked/wicked-cool-shell-script-library.shtml

There are 101 scripts discussed in this book, but in fact there are closer to 150 scripts available, in total. Here’s how you can get them if you’d like. You are welcome to do this if you don’t have the book, but it’ll make a lot more sense if you do have “Wicked Cool Shell Scripts”, of course. Note that you can also download the entire set of scripts as AllFiles.tgz. Just make sure you unpack the scripts into their own directory!

Perl Mongers of Thousand Oaks

Monday, May 19th, 2008

http://thousand-oaks-perl.org/

Our regular monthly meetings are on the second Wednesday of the month.

Our next meeting is on Wednesday, June 11, 2008 @ 7pm.