| Title | Date | Comments | |||
|---|---|---|---|---|---|
| Building contact lists from IMAP searches | 2012 04 | ||||
| - Did you ever think of data mining your emails? Your business emails are a rich source of information that can be used for compliance checking, building contact databases, spotting trends and so on. Use this simple code as inspiration for your own ideas! - | |||||
| Implementing a second level Spam folder with Kerio Connect | 2012 03 | ||||
| - Spam is spam, but some spam is spammier than others. We can use a Perl script to sort out second level spam. - | |||||
| Perl Profiling with Devel::NYTProf | 2011 07 | ||||
| - I don't think I have ever used a profiler on my own code. The reasons are simple: I don't write much that is very complicated, so any bottlenecks are usually rather easy to spot. Most of what I do is ad hoc and limited use anyway, so speed is seldom a consideration. - | |||||
| Using fail2ban with Kerio Connect mailserver | 2011 06 | 2011/07/14 Pat | |||
| - Fail2ban is fussy about dates in log files; Kerio's security log does not meet its standards - | |||||
| Perl Date::Manip for date validation | 2011 05 | ||||
| - Validating dates can be tricky, but Date::Manip makes it easy (at the cost of a little speed). - | |||||
| KCMENU (Kevin Clark's menu generator) in Perl | 2011 04 | ||||
| - Translate old kcmenu files to Perl scripts - a simple Perl based menu script. - | |||||
| Slightly Scrambled - unsorting a file | 2011 04 | 2011/04/05 TonyLawrence | |||
| - Here is a typical way to approach the problem. It uses Perl's associative arrays and (somewhat ironically) uses - | |||||
| Snarling Panda site cleanup | 2011 03 | ||||
| - The problem is "low value content". That's tough to define absolutely, but some pages here definitely fall into that category - | |||||
| SpamCheetah as it stands today | 2011 03 | ||||
| - SpamCheetah is a greylisting spam control technique and it is more of a spam blocker rather than a spam filter since it really does not filter anything. - | |||||
| Smarter HTML Link Extractor | 2011 03 | 2011/07/20 TonyLawrence | |||
| - Checking links is not really hard; you can actually do it with just a few lines of Perl. - | |||||
| Locking files for shared access | 2011 03 | ||||
| - Multiple users require some sort of mechanism to give exclusive access to data. It's trivial to demonstrate advisory locking with Perl. - | |||||
| Getopt and getopts | 2003 09 | 2012/12/19 TonyLawrence | |||
| - Both "getopt" and getopts are tools to use for processing and validating shell script arguments. They are similar, but not identical. - | |||||
![]() | |||||
| Writing and Compiling C programs on Linux | 2004 12 | 2012/02/10 TonyLawrence | |||
| - Writing and compiling c programs on Linux, common errors for beginners. Most Linux and Unix programs are written in C. When you download source for a project, it will often be C or C++ source code. You don't necessarily need to know a darn thing about C or anything else to compile the source if you aren't changing it. It may be helpful for you to understand a bit if you are having problems with the compile, but even that isn't really necessary. - | |||||
| Perl Getopt and GetOptions | 2003 09 | 2013/02/26 TonyLawrence | |||
| - Two Perl modules (Getopt and Getoptions::Long) work to extract program flags and arguments much like Getopt and Getopts do for shell programming. The Perl modules, especially GetOptions::Long, are much more powerful and flexible. - | |||||
| Perl Net::FTP | 2003 09 | 2013/03/13 armin | |||
| - Before the wide spread availability of Perl, I would script ftp transfers with .netrc, ksh scripts and other clumsy ways. None of those methods are fun, flexible or easy. On the other hand, Perl's Net::FTP module is all of that. - | |||||
| Perl Input | 2003 10 | 2011/04/08 TonyLawrence | |||
| - Perl has wonderful I/O capabilities. I'm only going to cover input here: reading from files or standard input. There are two ways to do that (actually a lot more than two, but this is supposed to be introductory material): you can open a specific file, or you can pass files on the command line and either open them individually or just ignore the whole thing and pretend everything is coming from STDIN. - | |||||
| Python vs. Perl | 2003 12 | 2010/06/02 anonymous | |||
| - Perl folk seem not to like Python, at least not at first glance - | |||||
| Squid Log Analyzer | 2001 02 | ||||
| - Analyzing squid logs Many business owners worry that their employees will fritter It's that monitoring that we are going to look at here. Squid There are hundreds, maybe thousands of Squid log file analyzers - | |||||
| RedHat RPM Source Packages | 2001 06 | ||||
| - Ever wanted to rebuild a RedHat RPM from source? I had an issue where I wanted to include one of the new features offered by SAMBA that enables logging to utmp in RedHat 7.1 and RedHat 6.2. Since RedHats supplied binary RPMs did not include this support, I had two choices: one was to download the SAMBA source, and compile the feature in from there, and my other choice was to possibly use the RPM source that RedHat supplies with their RPMs. - | |||||
| Compiling on Mac OS X | 2006 03 | ||||
| - make, configure, cc need xcode macosx - which Apple provides for free, but does not install by default. - | |||||
| Fork and exec with Perl | 2003 10 | ||||
| - Understandin Unix fork and exec. Recently I had a project that required a number of different programs that will mostly run all the time, but need to be restarted now and then with different parameters. - | |||||
| Who locked that file? | 2007 11 | ||||
| - Determine what process has a file locked - I can't even imagine how many times I've heard someone complain about a locked file. - | |||||
| CUPS print to file - the hard way! | 2003 03 | ||||
| - Cups print to file - there are easier ways to do this, but I didn't know that when I needed to do it! - | |||||
| Understanding Floating Point Formats | 2003 09 | 2011/10/28 TonyLawrence | |||
| - Understanding basic floating point. Under ordinary circumstances, you don't have to know or care how numbers are represented within your programs. However, when you are transferring data files that contain numbers, you will have to convert if the storage formats are not identical. If the numbers are just integers, that's fairly easy because the only differences will be the length and the byte order: how many bytes the number takes up, and whether it is stored lsb or msb (least significant byte or most significant byte first). Once you know that, conversion is trivial. - | |||||
| Log Serial Port Data to a Specified Logfile | 2002 09 | 2013/03/29 TonyLawrence | |||
| - I wrote this script to capture log data from our T1 routers for debugging purposes. - | |||||
| Why does Firefox use Sqlite? | 2008 05 | 2012/11/27 anonymous | |||
| - Why does Firefox use Sqlite database instead of text files? Am I nuts? Am I the only person who can't imagine why Joe Firefox User could possibly have enough bookmarks or browsing history that you need a database to manage the data? - | |||||
| Custom Tab Completion | 2004 12 | 2009/12/12 zolo | |||
| - I'm sure you already know about tab completion: type part of a command name and hit TAB and you get its matches. Leave a space and then hit TAB, and you get filenames. Wonderful stuff. - | |||||
| Use and Abuse of /usr/local/bin | 2000 01 | ||||
| - It starts when some poor soul has written a script to do some thing or another, and happens to mention that it was called "/usr/bin/whatever". Of course the hapless poster usually had no real reason to mention its path, that was just an accident, or it appeared in some other script that was being posted for examination. No matter, the damage is done, for immediately some defender of the faith is going to chide the poster and sanctimoniously inform them that the proper place for home grown scripts is /usr/local/bin. In some cases, that's all the poor person gets: whatever the question originally was is forgotten and only the placement issue is discussed. - | |||||
| The C programming language and its importance | 2009 09 | 2013/01/18 TonyLawrence | |||
| - I have been doing serious C programming for close to a decade now. But Ifeel like a child on the seashore picking up a pebble here, a pebble there when the vast ocean lies unexplored in front of me. - | |||||
| Simple XML POST and reply | 2010 03 | 2010/03/24 TonyLawrence | |||
| - A customer has an app that needs to post and get XML data from a website. This task was being handled by .asp scripts on a Windows box, but now they want it moved to Linux and Perl. - | |||||
| Finding Leaks in Xcode | 2010 04 | 2010/07/02 abes | |||
| - Finding memory leaks with Xcode turns out to be much harder than I thought it would be. - | |||||
| Bash shell $PIPESTATUS | 2004 06 | 2011/04/04 TonyLawrence | |||
| - PIPESTATUS array holds the exit status of your last foreground pipeline commands. - | |||||
| Sort -u vs. uniq | 2009 11 | ||||
| - Don't tie yourself in pipeline knots with either of them; learn to use each of them appropriately and your scripts will be easier. - | |||||
| Bash typecasting | 2006 08 | ||||
| - Bash has typecasts - but only sort of and your scripts can easily break because of it - | |||||
| Why I Love Perl | 2000 03 | ||||
| - I'm no Perl expert. However, I have learned a few things, and if you are getting ready to start using Perl, you might find my experiences usefu - | |||||
| File date comparison | 2005 11 | ||||
| - For this example, we'll use the case where a file shouldn't be overwritten if it was created or changed today. But what does "today" mean? - | |||||
| Perl sorting | 2003 09 | ||||
| - Perl provides a way for us to do part of the sorting. We can provide a subroutine that the Perl "sort" will call to decide whether one thing is greater or smaller than another. - | |||||
| Unix passwd to LDAP Script | 2000 01 | ||||
| - This is a simple program that reads the Unix /etc/passwd and updates a LDAP server. See LDAP Basics for an introduction to LDAP. - | |||||
| Compiling FreeBSD Kernel | 2005 12 | ||||
| - A custom kernel serves as an interesting conversation topic with geeks - | |||||
| Easy file editing with Tie::File and perl | 2009 09 | 2010/07/09 StavanShah | |||
| - This is a delightful way to do in place editing of files. You don't have to save a copy in /tmp under a unique file name and then delete it. Truly delightful experience. - | |||||
| Using the Korn Shell | 1997 | ||||
| - A.P. Lawrence, Linux/Unix Consultant-Korn ShellBasics - | |||||
| SOCAT - The most comprehensive networking utility | 2010 08 | ||||
| - Socat relay for bidirectional data transfer between two independent data channel - | |||||
| Understanding Device Drivers | 1998 | ||||
| - Device Driver. Two words that strike fear in the hearts of programmers and users of Unix systems. - | |||||
| Calling C functions from a Python interpreter | 2009 09 | 2011/01/25 anonymous | |||
| - There seem to be two ways to marry Python with C. One is called extending Python and another is called embedding Python. - | |||||
| Text vs. Binary Data formats | 2003 10 | ||||
| - When I'm doing some project that requires storing and retrieving data, I usually have a mental argument about how to structure the files. Should I use flat text, or some binary format (typically Perl dbm files)? The answer almost always should be "flat text", but old habits die hard. - | |||||
| PHP Segmentation Fault on Page Loads | 2009 08 | 2013/03/02 TonyLawrence | |||
| - A lot of people have problems with PHP the language, but I've never come into this problem before involving the Apache PHP module. - | |||||
| Procedure Call Sequence in C | 2006 06 | 2011/06/25 BigDumbDinosaur | |||
| - Steps involved in the execution of a function call in C. When you call a function in C, you need to ensure mainly 5 things: - | |||||
| Perl directory listing | 1997-2004 | ||||
| - Learning Perl basics to produce 'pretty' directory listing with 'File::Find'.: A "pretty" or custom directory listing is a good place to start developing your scripting skills if you want to. There certainly are utilities that do pretty listings, but the advantage of rolling your own is that you can do EXACTLY what you want and gain some useful skills while you are at it. - | |||||
| Basics of the iPhone/iPad SDK | 2010 04 | 2010/04/07 TonyLawrence | |||
| - Getting started with the iPhone SDK (Software Development Kit) - | |||||
| Concepts in Cryptography | 2009 08 | ||||
| - Basic cryptography has wide application. Understanding the basic concepts isn't difficult. - | |||||
![]() | |||||
| Basic Scripting | 2001 02 | ||||
| - Scripting at its simplest is telling the computer what you want it to do by putting the commands you want to use into a file and running that file instead of typing the commands. - | |||||
| A simple file I/O program in C | 2009 10 | ||||
| - Doing even the simplest programming tasks in C can be daunting. - | |||||
| A command line dictionary for UNIX | 2009 09 | 2010/01/15 anonymous | |||
| - Google has released pygoogle for google searches from the command line and many options exist for accessing flickr photographs. Nearly every online service including rememberthemilk todo lists, delicious bookmarks and of course mail services like gmail include a way to access and modify your online storage from the command line. - | |||||
| Spamassassin on Mac OS X | 2003 03 | ||||
| - Adding Spamassassin on Mac OS X Mail requires a bit of trickery and misdirection. - | |||||
| Simple FAQ Creator | 2002 11 | ||||
| - This is a pair of programs to create and maintain a simple FAQ web page. The administrative inteface lets you add questions and answers. - | |||||
| How and where to start writing first Shell Script in UNIX Part 2 | 2004 08 | ||||
| - How and where to start writing first ShellScript in UNIX - | |||||
| Choice of programming language in today's computing world | 2011 02 | ||||
| - Generally it is thought that programming languages can do anything that is thrown at it. This is not true. Programming languages have their strengths and weaknesses. Scripting languages are called as high level languages. You can't use them inside the OS kernel. - | |||||
| Converting Print Files to HTML Invoices | 2002 11 | ||||
| - Example of HTML Invoice generated from Perl script. The basic transformation is done by a Perl script running on a Windows server. - | |||||
| Converting Print Files to HTML Invoices | 2002 11 | ||||
| - Takes a CSV file and turns it into HTML invoices that are ready to print - | |||||
More Programming articles