Author: rbritton

RV Power Upgrades Part 2: Inverter

This is the second of several posts about upgrading an RV power system for better off-grid use. I work remotely. We have no central office, and it’s without exaggeration to say that I can work from anywhere with an adequate internet connection. I’ve worked from my home, a Marriott lobby in Utah, and from the dinette in our trailer in…

RV Power Upgrades Part 1: The Batteries

This is the first of several posts about upgrading an RV power system for better off-grid use. RVs operate primarily off a 12V DC, battery-backed system. When on shore power, this is energized by an AC-DC converter. When not, it’s the batteries that power it. Batteries are not included by the manufacturer. Instead, like the propane tanks, it’s something the…

Building an RV Media Center

At home I normally stream most of what I watch — there’s very little on Netflix that interests me that I haven’t seen at least some portion of. This doesn’t cope well with the significantly bandwidth-constrained internet access I have in the travel trailer. I’d likely use up all or most of the high speed portion of my “unlimited” bandwidth…

Working Remotely in the True Sense: Building the Network

In the summer of 2017 we purchased a travel trailer, part of the motivation being that we could travel more (really, to avoid the summer forest fires if for no other reason) while simultaneously working. Since I work remotely, I am able to work anywhere I have sufficient hardware (usually my laptop and local test server) and an internet connection.…

Memory-Efficient PHP “Arrays”

PHP arrays are sort of a combination of traditional C-style arrays (i.e., index-based lookup) and hash tables (plus a few extra bits). With this comes a decent amount of overhead — they use a lot of memory! For something as basic as an array of 64-bit integers, it uses around 152 bytes per entry: Memory usage in MB for an…

Rate Limiting in PHP with Token Bucket

PHP is largely a stateless language. With few exceptions, its environment is completely constructed from scratch for each request. Consequently, maintaining a semblance of state persistence requires a storage backend so each iteration of the environment can be initialized accordingly. Retrieving from storage is a more expensive operation than storing in active memory, so a naive approach to rate limiting…

Building a Secure Home Network

Over the past few years, security industry experts have been warning that the internet of things (IoT) is wildly insecure. In recent weeks this has come to fruition, first with a DDoS against krebsonsecurity.com and later with a DDoS against Dyn’s name servers. It was the sign I needed to finally make the move from thinking about improvements to my…

Changes to the App Store

On September 1, 2016 Apple sent out an email to developers with some upcoming App Store policy changes. One of these was labeled Quality Apps and seemed to be aimed both at apps that would no longer pass the review process and apps that have been long abandoned. Quality Apps Quality is extremely important to us. We know that many…

Sun & Moon 1.0.3

Sun & Moon 1.0.3 is a small update, which is focused on fixing a few edge cases that could lead to UI weirdness and also the removal of iAd and the in-app purchase to disable ads since it has been discontinued. The revenue gained from the ad banners and the in-app purchase ($64 since release) is not enough to warrant…

Creating a .mobileconfig File to Capture iOS UDID Information

Background All iOS devices have a unique device identifier (UDID) that is needed to sign and deploy apps outside of the App Store. Traditionally this requires that the user plug the device into a computer, launch iTunes, and click through the serial number field until the UDID shows up. Fortunately, we can use a portion of the enterprise management support…

Edge Cases – gzdecode

PHP is a language that has largely had its development driven by the real world use and demands by its users. Those users, unfortunately, have not always updated in a timely fashion, so functionality that has been implemented over multiple versions is not always fully available and can create problems for the unaware. The zlib family of functions are one…

Missing Values in PHP $_POST

I had a debugging problem recently with some server code. It involved passing a list of IP addresses and associated metadata to the central server so that list could be pulled into a different host later. The problem was that, as soon as it reached 127 IPs, everything after that was ignored. Searching for a hint on why produced very…