Selectively composing classes with constexpr functions, SFINAE, and parameter-pack driven private-inheritance in C++17 (Part 1)
This blog post was inspired by a use-case I encountered in an open source project where the developers wanted to offer different functionality depending on whether the product being offered was an enterprise offering versus a community offering. Under normal circumstances, preprocessor defines were used to separate functionality. However, when certain combinations of behavior were…
Everything just broke: HDF5 woes on Ubuntu 18.04
I wrote a system for capturing data and placing it into tables using HDF5. The system ran for 6 years or so, almost every single night, through various updates and upgrades. Then one day, I took production systems and just opportunistically updated them because I had some time on my hands. (I know, I know.…
Informal Latency Benchmark for Redis GET/SET using redis_cpp
(From the half-baked-benchmarking-department in conjunction with the I-should-stash-the-results somewhere department…) Benchmarking is serious business on the internet — you don’t want to misrepresent anyone and their hard work on any given product. That having been said, sometimes I just want ballpark values for a “lazy” estimate on what kind of numbers I’d get with a crude…
ObjectMutator.js: Generating All (or some subset) of Combinations an Object at the Property (or Key/Value pair) Level
Greetings, internet. I’m in the middle of a project moving some old Qt stuff to the browser (using Javascript and React.js.) The project isn’t all that exciting, but sometimes even the most boring projects can turn into delightful programming games and yield insights on where to increase productivity. Case in point: how a language’s type…
My First Experience with Server-Side Swift (using Perfect from perfect.org) – Part 2
In Part 1, I talked about why I chose Swift on the backend and my general overall experience using Perfect on the backend. In Part 2, I want to talk about my experience using Perfect-Mustache and Perfect-Redis. The gist of this post: I hit some minor issues using Perfect-Mustache, but I was able to…
React.js: What’s this.props.children in JSX all about?
If you’re expecting the second installment of the post on Server side swift, don’t worry. I’m still documenting some things! Lately I’ve been toying with the idea of converting an old UI written in Qt to make it work with React, and React is new to me. In React, the user interface is defined in…
My First Experience with Server-Side Swift (using Perfect from perfect.org) – Part 1
Motivations Most of the work I take on involves languages like C++, Swift, or Objective-C and is not typically web based. While I’m normally nestled comfortably in the embrace of C++ template meta-programming or the warm walls of an operating system kernel, even I can sense the uncivilized barbarians at the gate (Javascript) and…
Beat Detection: A Raspberry Pi Hacking of Hallmark’s “Happy Tappers”
In graduate school, time series analysis was the topic I liked the most. The classic models (like AR(p), MA(q), ARMA(p,q), etc.) are used usually after time series have been sampled in some fashion. Of course, there’s more than one way to look at a time series and many of those perspectives come from the field…
Understanding How Bitcoin Works
Long time, no update. 🙂 It’s difficult to produce quality content, which is why I was very impressed with the person who made this particular video: Understanding how Bitcoin works can be difficult, but this particular video is exceptional in breaking the concepts down and connecting them together. I consider it another “must-see”…
Using Matplotlib to get XKCD-style Plots
This past week, I found another developer blog where a post caught my attention: Pythonic Perambulations. More specifically, it was this post regarding presenting data in an “xkcd” style. I figured I’d give this blog post some inbound link props because I found the content both useful and amusing. The author seems to have gotten…