Programming


Check Perl Module Versions

Check Perl Module Versions

It will often arise that you are having a problem with a script that you know should be working. One way to troubleshoot why it’s not working is to compare versions. There are many ways to check versions, some simpler than others. Here are a few that we use: Check Perl Module Version with CPAN This ...

Check Supported Encoding Types Using Perl

Check Supported Encoding Types Using Perl

When working with ascii files, csv and other text format files you will often need to know the encoding that your system supports and the encoding of the file you are working with. You can guess, or you can just ask the OS. Here is what my system supports natively Sample Encoding List ascii ascii-ctrl cp1252 iso-8859-1 null utf-8-strict utf8 Perl Script to ...

Annuvin Game Board from Perl SVG

Annuvin Game Board from Perl SVG

Annuvin is a game that solves the issue of unbalanced play. As you progress through the game, the losing player actually gets stronger. Objective of Annuvin Eliminate all opposing pieces by replacement. Annuvin Setup Each player has 7 tokens, placed opposite each other, as per the diagram. It is played on a 4 ...

Agnon Board Game in Perl SVG

Agnon Board Game in Perl SVG

Calculating hexagons is fun, right? Well, hand drawing them is no fun. There are several fun games based on hexagon boards and we wanted to make them on the CNC router. Here is the Agnon game board and rules, as well as the Perl script that created it for our ...

Windows SAPI Using Visual Basic

Windows SAPI Using Visual Basic

I’m not a fan of visual basic in general, but there are a few pretty cool things you can do with visual basic. One of them is “speak through your computer” using a script. This small visual basic script will allow you to type out anything you want spoken. If you prefer a ...

Screen Saver Quotes With Perl GD

Screen Saver Quotes With Perl GD

If you’ve ever wanted a screen saver with motivational quotes, but didn’t know how to make one – here is a Perl script to do it for you. I wanted to see how the GD module worked. I created a small script to generate a bunch of JPGs to help myself learn. ...

Add HTML to List Using Perl

Add HTML to List Using Perl

As we write articles we create lists and then add HTML. Adding HTML by hand is boring. Adding HTML with a GUI editor often leaves all kinds of junk in your HTML code. If you want to wrap simple list item tags around a text list, Perl can do ...

Python 3 Create SVG Gameboard 9 Mens Morris

Python 3 Create SVG Gameboard 9 Mens Morris

9 Men’s Morris is one of my favorite games. It’s simple enough to play against most 5 year olds, but complex enough to challenge most adults. You can print out this game board created with python and see how to create SVG files in Python. This python script is a demo of ...

Rename Files to Modified Time with Perl

Rename Files to Modified Time with Perl

We were processing hundreds of recordings for a client, but they didn’t know the dates on the files because moving between systems changed the date time stamp. The solution was to programatically rename the files with their modified time so no matter where the file went, we would always know it’s date. This is ...

Sort IP Addresses Using Perl

Sort IP Addresses Using Perl

When dealing with lists of IP addresses, it was common for the numbers to merge together and lose track of duplicates, bad IP addresses etc. This Perl script helps you extract valid IPs from a block of text.