Try blocks in R for error handling

R scripts halt execution when an error is encountered.  When batch processing this produces situations where the error can not be merely skipped like it could in a .net application with  user involvement. To use Try() blocks for error handling in R, enclose the entire block of code in a try() block. try({ # Do some stuff here png(filename=args[3], width=900, height=300) # some more code here… dev.off() })

Meal Plan and Grocery List shareware

The application now shows nag screens, but otherwise has full features available in all modes. New Recipe: Black Bean Zucchini Cheese Queso Wraps. This is a meatless, and no dairy recipe, with a zucchini cheese, which isn’t really cheese, but a food made from zucchini’s that behaves like cheese. Partial New Feature: Graphic Interface now includes elements for sequential recipe scrolling for single day recipe selection.  This is in…
Read more

Android Studio desktop icon

Android Studio for Linux needs a desktop icon.  This is a functioning one to place in ~/.local/share/applications. [Desktop Entry] Version=1.0 Name=Android Studio Comment=Software Development GenericName=AndroidStudio Exec=sh /opt/android-studio/bin/studio.sh Terminal=false X-MultipleArgs=false Type=Application Icon=/opt/android-studio/bin/studio.png Categories=Development; MimeType=text/html;text/xml;application/xhtml+xml Keywords=programming;java;android;ide; Name[en_US]=AndroidStudio

Yum update memory allocation issues

Yum Update Memory Allocation issues on 512M Virtual Machines: Create a Swap file: dd if=/dev/zero of=/swapfile bs=1024 count=655366 chmod 600 /swapfile mkswap /swapfile swapon /swapfile To disable and remove after updates are complete: swapoff -a rm -f /swapfile

STEM jobs in the United States

The number of science, technology, engineering, and math, STEM, jobs in the United States, shrank for the past three decades,1982-2012. The draw-down accelerated from 2000-2012. The highest occupational growth occurred among occupations with soft skills, with K-12 teaching and non-doctor health care support staff, such as nurses, technicians, and therapists. From 2000-2012, those in the physical sciences, such as chemistry, physics, and others, biological scientists, and engineers saw decreases…
Read more

High Quality compressed HPLIP scans

HPLIP produces scans far better than what I can accomplish on Windows, even with Adobe Acrobat Standard.  The Auto Document Feeder scans in 8.3 megapixel png files, and then hplip converts them to a multiple-page PDF of extremely high quality.  This is great for one page documents, but for 10 or 12 page documents, such as faxes, the file size becomes a problem due to email limitations.  Ghostscript can…
Read more

Compressing PDFs in Bash

I have scripts for hplip to scan PDF’s to folders using the ADF. These PDFs are very large. To convert these to smaller file-sizes for emailing, I added the following functions to .bashrc. mediumpdf() { read -p “Enter input PDF filename: ” name \ && gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \ -dPDFSETTINGS=/printer -sOutputFile=medium-quality-$name $name; } smallpdf() { read -p “Enter input PDF filename: ” name \ && gs -dNOPAUSE…
Read more

Taskfreak v.7.2

Taskfreak was a great web application developed years ago.  The main website doesn’t have updated versions and the software doesn’t work on many newer configurations.  To remedy this, I have created a v.7.2 fork at Github.  The fork has the SQL syntax corrected, and will contain some updates time goes by.

2016-2017 Federal Aid Eligible in Warren County Kentucky

Here are the schools in Warren County, including both the county and independent school district, ranked by the number of low-income students for the school year ended in June 2017.  Eligible does not necessarily indicate poverty in relation to assets.  It refers to monthly dollar earnings, as expressed in the different occupational make up of the parents, which make the child eligible for assistance dollars for things such as…
Read more