Les Miserables

Les Miserables is one of my favorite books. I read most of the original translation on a train ride to Portland, OR from Chicago, IL back in 2008 and enjoyed the remainder on the return trip back East. It taught me compassion: when Valjean places the coin in Cosette’s shoe. Father Christmas always misses her. There was an earlier passage of a man stepping on a coin in front of her, while she swept dressed in rags....

December 24, 2022 · 260 words

Network Graphs with Images

This is a follow-up to the previous post Network Graphs in Hugo. I’m feeling fruity. These aren’t all tree fruits, but a few clusters organized by tree grafting compatibility. Data for the network is stored in two separate JSON files, both located in /static/data/fruit/: nodes.json edges.json The javascript and the shortcode, as one file: fruit-network.html {{ $nodesPath := .Get "nodesPath" }} {{ $edgesPath := .Get "edgesPath" }} <style> #mynetwork { background-color: #f5f5f5; /* a medium gray color */ border-radius: 10px; border: 1px solid #cccccc; margin: 5px 0 40px 0; } </style> <div id="mynetwork" data-nodes-path={{ $nodesPath }} data-edges-path={{ $edgesPath }}></div> <script src="https://visjs....

December 21, 2022 · 220 words

Network Graphs in Hugo

This is a simple toy to see how a network graph can be added in a Hugo article. I’ll be testing new features on it as I learn new things. Relative to the root of the Hugo website directory, here’s some basic files to make this interactive. Note that The JSON data and CSS is added inline here to make the scope of this tutorial focus on Hugo-specific structures. The javascript file was put in /static/js/ and can be found here:...

December 9, 2022 · 150 words

New way forward for deploying brege.org

ssh’ing into my Digital Ocean droplet has become rather annoying for maintaining this website. Particularly annoying is dealing with images on two different filesystems. In the README (commit 1a0ee5a), I describe the steps I have been doing to publish an article to https://brege.org. I tried implementing this method, but it is very long and requires many modifications to the post-receive hook to get it working on a per-user basis. Here I outline a way to do this in a more conservative manner. ...

October 18, 2016 · 294 words