Hugo on Mint
I author this labs blog in Jekyll, but my personal blog uses the Hugo static site generator. Jekyll has wonderful plugin support, but it’s incredibly slow. My meager labs blog takes a full minute to compile. Hugo is written in Go and is screaming fast. Thousands of post? BAM compiled in less than a second. It’s all driven by a single binary, too. No external dependencies to worry about. No obscure ruby gems that don’t version together well.
We build a lot of websites with superscripts in pharma. Whether it’s a registration mark ® or a superscripted reference number1, getting them to properly underline is a real issue. Usually the underline on the superscript will move up off the baseline. In the past, we’ve solved this by adding a border-bottom to the text instead of an underline, but that will only work on single-line text. It blows up badly when your text is multi-line or rags off the end of a line.
Convert Video for Windows PPT
Recently we’ve had a number of client presentations and pitches where my team has wanted to use video in their PowerPoint presentation. I develop on a mac, and so it’s not difficult for me to render something up real quick, whether through screen capturing it myself or some quick video editing work. The problem inevitably comes when I try to deliver a beautiful, high-quality, well-compressed video to the person who will be presenting it.
I made a fairly major modification to my dotfiles yesterday when I revisited the structure and installation by leveraging the gnu utility, stow. I was introduced to the idea thanks to my partner in dotfile-crime, Stephen Tudor, who in turn found it off one of his other config-crazy people. In short, stow is designed to take a package of files and symlink them into another directory as if they all belonged there.
Today I received my first mechanical keyboard, the CM Storm QuickFire Rapid with Cherry MX Blue Switches. I’m typing on it right now and it’s hard to describe the difference I’m feeling. This is how a keyboard should feel. For the past few years I’ve been using the TypeMatrix 2030. It’s a pretty neat idea and had a built in mode switch to the dvorak layout. Dvorak is probably worth its own post on here some day.
Oops, or, The Great Web Server Borking of 2016
On Thursday, while reading up on HTTP/2 and all the brilliant things it has to offer, I logged into my trusty old web server in an attempt to upgrade Apache and reap the benefits. This wasn’t a big deal in my mind as it was only a small dot version upgrade. So, I switched my tmux session to my server admin view and ran the command: sudo apt-get update && sudo apt-get upgrade apache2 I should have realized something was wrong when I noticed grub was upgrading as part of the dependency tree.
Time tracker in Bash
Yesterday I put together an extremely basic time tracker on the command line to compliment my other command line function. There’s not much to it, really. The basics can be found in the help: ti - time tracker Tracks activity time with a simple start/stop syntax. Logs to CSV. Tmux session aware. Allows one activity active at a time, per session. usage: ti # show this help usage: ti (--help or -h) # show this help usage: ti (--start or -s) [activity name] # start a new activity usage: ti (--done or -d or --finish or -f) # stop and log activity usage: ti (--abort or -a) # stop activity, no log usage: ti --clear-log # delete log of previous activities usage: ti --activity-name # show activity for current session usage: ti --shortlist # quick list of commands without context usage: ti [activity name] # toggles start/stop usage: ti (--list -l) [options] # show log of previous activities option: t # summarize time by activity option: s # show only current session In short, you can start an activity with ti --start [activity name], and then finish it with ti --finish.
Command Line Fitness Tracker
I’ve been trying to get back on the fitness and healthy eating wagon lately after my last attempt fell apart because of delicious pizza. I keep track of my dietary macros in MyFitnessPal, mainly because of the ease in looking up food. Beyond that one feature I really can’t stand the experience in either the app or the website. When I’m tracking my measurements (weight, waist, hips, arms, neck, thigh, chest) it feels like an afterthought.
Disqus in Amp
The AMP (Accelerated Mobile Pages) project has been floating around in the periphery for about a year, taunting me. I knew it was supposed to speed up mobile browsing, and it had something to do with articles, but that was the extent of it. I’m spending more and more time at work educating coworkers and clients on mobile best practices, but not knowing AMP was making me feel a little hypocritical.