A C Runtime Library Optimized for Enhanced Portability (libep) [updated 2014-05-16]

May 12th, 2014

Link: http://www.neophilic.com/pub/libep/libep-0.2.1.tgz

[The post is the same other than the link to the distribution.]

Several years ago now I wrote a C library that was intended to explore some ideas I had been playing with in my head, in particular with building highly portable code. It was in the back of my head to replace the low-level I/O facilities in sendmail, but this never happened (although I started doing so). It's never been used in serious production, but I've used it for a number of small things. I've decided to put it out as open source in the hopes that someone will find it useful and/or instructive. Oh yes, it has documentation.

Full story »

An Arduino-Based Sump Monitor (Part 1: Hardware) [Version 2]

February 26th, 2014

Several months ago I did another post on this, but it turns out it had significant problems due to galvanic corrosion. The solution seems to have been to switch from a DC circuit to an AC circuit. I've left that post around for reference, but this posting otherwise replaces it.

We have a below-grade basement. We have a sump, but we've had problems with the pumps, or more precisely, the pump switches. Note the use of the plural: several years ago we installed a second pump on a separate switch, but we have still had both of them fail.

So, I decided to build a monitor for the sump to measure both the height of the water in the sump and when (and if!) the pumps turn on. This needs to be able to send us alerts when something goes wrong, and may give us an idea of whether our sumps should be upgraded to something higher power.

Full story »

An Arduino-Based Sump Monitor (Part 2: Arduino Software)

July 10th, 2013

This posting describes the Arduino software and protocol used for my sump monitor. The previous posting describes the hardware. I may do an additional one later for the FreeBSD-based host software.

Full story »

IPv6 on a m0n0wall box using a Sonic.net-provided tunnel

July 6th, 2013

(I started this post in December 2011 but didn't finish it and then managed to forget about it. I figured I might as well finish it and get it out.)

I recently returned from the LISA 2011 conference, which was very good. One of the recurring themes was IPv6. That fired me up enough to try to get IPv6 fully working when I got home.

Full story »

An Arduino-Based Sump Monitor (Part 1: Hardware) [Updated]

July 3rd, 2013

This post is obsolete; please see the update here.

We have a below-grade basement. We have a sump, but we’ve had problems with the pumps, or more precisely, the pump switches. Note the use of the plural: several years ago we installed a second pump on a separate switch, but we have still had both of them fail.

So, I decided to build a monitor for the sump to measure both the height of the water in the sump and when (and if!) the pumps turn on. This needs to be able to send us alerts when something goes wrong, and may give us an idea of whether our sumps should be upgraded to something higher power.

Full story »