Category Archives: Web Design & Programming
icanhazmyownicanhazip.com
Last night I was playing around with routing in my homelab. I wanted a quick way to verify that traffic was reaching a given machine over a given route, and the easiest way to do that, I figured, was to create an icanhazip.com-esque site to display my client machine’s IP address and verify that it […]
A PHP Router In 45 Lines
Like most things PHP, I have a love-hate relationship with URL routers. Having gotten my start in building “dynamic websites” back in the 90’s when CGI scripts were about the only option, I still prefer simplicity. CGI scripts, generally written in Perl, were slow and had to be started up for every request that came […]
Simple Image Galleries With Eleventy
As I continue converting my largest non-work site from Jekyll to Eleventy, I keep coming across things that I did in Jekyll that no longer work in Eleventy. One of these is image galleries. Jekyll and Eleventy have a fundamentally different approach to how they handle files. Jekyll splits all of the files in the […]
Recreating Jekyll’s _drafts Directory in Eleventy
I’m in the process of converting a couple of sites that I built a few years ago using Jekyll to use Eleventy instead. Both tools are static site generators that work very similarly, but Eleventy gives me more flexibility and, given that it’s based in JavaScript—a language I use daily—rather than Ruby—a language I know […]
Dynamic Autocomplete with AlpineJS and (Almost) No Code
I’m in the process of adding some new features to a web application I created several years ago. It’s an app that makes it easy for a handful of non-technical users to manage users and groups in a third-party system. It’s a multipage app that doesn’t use a lot of JavaScript, but where it does […]