If you're looking for the closest font to Helvetica that is one of the default fonts on the Raspberry Pi (assuming Raspbian wheezy), I would say none of them. Instead, install the ttf-liberation package and use Liberation Sans. If you absolutely have to use one of the default ones, or one more strictly closer to Helvetica, use FreeSans or Nimbus Sans L. They are pretty much a toss-up for me. If that's all you wanted to know, you can stop right here :) Otherwise, feel free to read the rest of this long, boring post. Also watch the short comparison video on YouTube.

I have to point out that saying "Use Helvetica" is kind of like pointing to a bookshelf full of books and saying "Get me the book". There are many variations of the font family. LinoType currently offers 36 families of Helvetica, each one with up to 6 variations and each one costing $35 or $45. It is possible to find a bunch of variations on the internet.

Many people would point to Arial as a replacement for Helvetica. Indeed, it was designed by Monotype to be metrically identical to Helvetica, but has influences from some of Monotype's preceding font faces, so it has a different look.[1] Also, it does not come on Raspbian by default, although it can be obtained by installing the ttf-mscorefonts-installer package (.25MB) which then downloads and extracts the fonts from sourceforge (3.5MB). Removing the installer also removes the fonts. If you only want specific fonts, you could download the appropriate .exe from http://sourceforge.net/projects/corefonts/files/ and extract it yourself, if you know how to extract a cabinet file and how to install the font on Linux (see https://wiki.debian.org/Fonts).

Liberation Sans was designed as an open replacement for Arial, with metrics that are compatible with Arial.[2] Liberation Sans was released in 2007 and is not part of Raspbian's default fonts, but can be installed with the ttf-liberation package (approx 2MB). Some of the letter forms are like Arial (G, R, r) and some are like Helvetica (a,t), but some are different from either (Q, 1). Liberation fonts are included in installations of LibreOffice and OpenOffice and used as their default fonts.

Some people might mention DejaVu Sans, which does come by default on Raspbian. However, its ancestry is from the Bitstream Vera fonts and is quite a bit different and does not even flow the same as Helvetica or Arial.[3]

Nimbus Sans L was designed in 1987 and some of the font family was released under GPL in 1996 (an open source license). Nimbus has metrics almost identical to Helvetica and Arial. It is one of the Ghostscript fonts which are free alternatives to the 35 basic PostScript fonts, as a replacement for Helvetica.[4] In appearance, it looks like Helvetica rather than Arial. I have found that at some type sizes, the bottom curve of some letters falls strangely far below the baseline ("a" being the worst, espcially in some of the sizes between 16 to 32 points... as shown on the comparison video). So it would be hard for me to use in general use.

FreeSans is one of the free fonts developed by the GNU FreeFont project. It is based on Nimbus Sans from the Ghostscript fonts. A goal of the FreeFonts is to include as many characters from the Universal Character Set as possible.[5] Like Nimbus Sans, FreeSans has some weird issues with bottom curve going under the baseline.

 

1 https://en.wikipedia.org/wiki/Arial
2 https://en.wikipedia.org/wiki/Liberation_fonts
3 https://en.wikipedia.org/wiki/DejaVu_fonts
4 https://en.wikipedia.org/wiki/Nimbus_Sans#Nimbus_Sans_L
5 https://en.wikipedia.org/wiki/GNU_FreeFont

Selecting PHP command line version on HostGator shared host

This took me a while to find, so I'm saving it somewhere I can find it again.

The easy way to select the PHP version used for web applications is to use the CPanel configuration tool. However, that doesn't work if you're using SSH and need PHP on the command line. Also, on HostGator, you can't create a symlink outside of your directory (such as to the global php).

You can find out what version you have with

$ php --version

If that's not the version you want, try a specific version like this (php55 is 5.5, etc):

Book Scanning Process

 

Just to document this for next time. For reference, my books are 8 x 10.75 inches and other dimension below work for this. For approximately 100 pages, It takes me about 45 minutes to scan, an hour to crop and rotate, and 30 minutes to organize and generate the PDF.

Fixing features for hotfolder

Here is some documentation about the process I used to solve some issues with hotfolder and the features module. I was doing this partly through the web interface and partly through a console, so this is a reconstruction of what I remember and the console log. 

 

I was getting the following error message when I tried to check hotfolder watches (see https://www.drupal.org/node/2453659):

Notice: Undefined property: stdClass::$field_watch_config_scheme

 

GIMP for Kids

 

My daughter likes to draw on the computer. I don't remember exactly how it started, but she draws in GIMP using my Genius pen tablet, on my secondary monitor. I used to have Linux running in a VirtualBox with GIMP running on my second monitor for her, but VB doesn't completely work in Windows 10 yet. A while back I tried running GIMP on one of my Raspberry Pi's but it was just too sluggish to be useful, frustratingly slow for a (then) 3-year-old. It runs much better on a Raspberry Pi 2. It still lags if she goes crazy with a big brush, but it works.

Die Fly: Designing a better fly swatter

I was looking through some of my old stuff for something and ran across this gem. If you need to put together a quick flyswatter, try this one I designed for a class in college (the famous Rube Goldberg project).

Here are a few excerpts from the attached PDF. If this doesn't convince you to build one (perhaps with several improvements as noted in the document), I don't know what will.