Author Archives: Brian Gallimore

Time Average in Ladder Logic (ControlLogix AOI)

I’ve needed a time-average function several times, so I figure other people have also.  Here is a handy AOI which makes it easy to use in a ControlLogix ladder program.  (AB has the Moving Average MAVE instruction in function block and … Continue reading

Posted in Industrial Automation | Tagged , , , , , , , | 1 Comment

Politics Explained

Left wing, right wing, libertarian on marriage, health care, money, taxation, and war.

Posted in Politics | Tagged , , , | Leave a comment

Convert PDF to PNG using Linux

If you use the defaults for Imagemagick, the output of a PDF file with text converted to PNG is unreadable.  The secret is to use the density option: $ convert -density 300 xxxxx.pdf yyyyy.png If the original PDF has a … Continue reading

Posted in How-To, Technology | Tagged , , , , | Leave a comment

Famous Presidential Lies

Famous Presidential Lies LBJ: We were attacked (in the Gulf of Tonkin) Nixon: I am not a crook GHW Bush: Read my lips – No New Taxes Clinton: I did not have sex with that woman… Miss Lewinski GW Bush: … Continue reading

Posted in Politics | Tagged , | Leave a comment

Boot from ISO using GRUB2

Goal is to install new OS from an ISO image without creating a boot CD. Step 1:  Format hard disk to be used with a boot partition.  (set boot flag) Step 2:  Mount partition, create new directory named ‘boot’ (in … Continue reading

Posted in How-To | Tagged , , , , , , , , , | 1 Comment

The Basis for Law is Religion

DID YOU KNOW? As you walk up the steps to the building which houses the U.S. Supreme Court you can see near the top of the building a row of the world’s law givers and each one is facing one … Continue reading

Posted in Politics, Thoughts | Leave a comment

Using WonderWare Script to Check for Correct Number Format

Here is how I used a WonderWare window script to check to make sure the batch number entered by the operator meets the following requirements: must be 9 digits first digit is a 8 2nd and 3rd digit are the … Continue reading

Posted in Industrial Automation | Tagged , | Leave a comment

Wood Repair Using Plastic Filler (bondo)

The house we just bought had damage to several of the stair trim pieces of wood from a dog.  Here are some pictures I took of my fix.  I started with a dowel glued in a hole I drilled, then … Continue reading

Posted in How-To, Projects | Tagged , | 1 Comment

Use cron, grep, ps to monitor and restart a program (x11vnc)

As a band-aid to check if a program stopped running, and then restart it if it did stop, here is what I came up with.  x11vnc is the program that gave me trouble, seems like every once in a while, … Continue reading

Posted in Uncategorized | Leave a comment

Redirect, Pipe, and Tee

Redirect – ls command creates file called file_list.txt instead of sending to stdout: $ ls > file_list.txt Redirect Append – ls command appends file_list.txt instead of sending to stdout: $ ls >> file_list.txt Pipe – sends output of ls command … Continue reading

Posted in Information | Tagged , , , , | Leave a comment