Rick Cogley's Tech Logr

Short Technical Laser Bursts %%


Rick’s short, technical tip microblog built with Hugo, powered by Deno Deploy. See also my fabulous repository at Github for this site.

02 Feb 2019


Hugo, my static site generator of choice, just released version 0.54.0, kompleat with pedantic semver rule compliance. Hopefully this post will generate, because it is getting generated using this fresh, new version. 😅

RC Logr 20190202 193900 - Hugo, my static site generator … Rick Cogley


I’ve ordered a cool programmable controller for PFU HHKB Happy Hacking keyboards from Hasu. You can remap the keys, so that no matter what system you connect to, it is set up in your expected configuration. This way, I can use a Japanese HHKB with its arrow keys, as an English keyboard; something PFU does not sell. To go with, I also ordered a replacement English keycap set. I love the Topre switches, but keycap choices are severely limited.

RC Logr 20190202 145014 - I’ve ordered a cool … Rick Cogley

31 Jan 2019


Sometimes you need a timestamp in a shell script, for example if you need to calculate the hmac signature for a payload you received from a web service. In Linux or Mac, you can do date -u +"%s" or date -u +"%s.%N" if you need the nanoseconds. Use Gnu gdate from brew on Mac because its stock date does not support %N. The -u tells it to return UTC, which you can leave off for local time. If you need to force a timezone, use something like TZ=":Japan" date +"%s". The result looks like 1548931141 or 1548931220.112871000.

RC Logr 20190131 193007 - Sometimes you need a timestamp … Rick Cogley

30 Jan 2019


Did significant changes to my Keyboardio Model 01 layout, putting the shifts under my pinkies and the backspace at upper left. It is mentally stressful to switch between laptop and the Model 01 and a PFU Happy Hacking Keyboard. See the latest layout.

RC Logr 20190130 194251 - Did significant changes to my … Rick Cogley


Got word from my ISP that a backup had a bunch of files with suspected malware (uh, why did they suddenly discover it now?!). I deleted the files in the backups, got the list of paths, pasted to Excel, used MID() to extract the file ids, appended double quotes by concatenating char(34), did a transpose to horizontal, copied the row out to an editor, then replaced the spaces with commas. Then, I put that string of id’s in a database query to filter the attachment records and delete them, like In(RecordId(),"1111111","2222222","3333333"). Malware b-gone.

RC Logr 20190130 110922 - Got word from my ISP that a … Rick Cogley


My Keyboardio Model 01 surely has some DNA from the Esrille New Keyboard from NISSE. The Esrille is beautiful and ready to support a Japanese layout, but is eye-wateringly expensive, and its firmware is probably not as flexible as the Model 01’s.

RC Logr 20190130 092746 - My Keyboardio Model 01 surely … Rick Cogley

29 Jan 2019


It’s been a looong time since I soldered anything, but the Helix ortholinear (grid) keyboard kit has my interest piqued. The kits are made and sold by Yushakobo here in Japan, and they recently opened an actual shop in Akihabara too.

RC Logr 20190129 233930 - It’s been a looong time … Rick Cogley


Apple’s FaceTime has a serious bug that lets people remotely listen in via your mobile’s mic, without your permission. Looks like Apple will fix soon and may have disabled it server-side, but disable just in case. iOS Settings > pull down > search “facetime” > open and toggle off.

RC Logr 20190129 133133 - Apple’s FaceTime has a serious … Rick Cogley


You can choose which of your keybase folders to sync from the terminal, although kbfs syncs none by default, instead utilizing a space-based cache (seems like Google File Stream). For example you can do: keybase fs sync enable /keybase/public/rickcogley/keep/this/on/my/hdd. Do it, and bask in the power.

RC Logr 20190129 115649 - You can choose which of your … Rick Cogley


Have you heard of “Have I Been Pwned”? It’s used by Firefox Monitor and Zetetic Codebook to find out if your email or password has been involved in a security breach.

RC Logr 20190129 093709 - Have you heard of “Have … Rick Cogley


If you’re a Facebook user (hard to justify in light of hard evidence), you should make use of Mozilla Firefox’s “Facebook Container” extension, that prevents Facebook from tracking you around the web. Or, you know, stop using Facebook!

RC Logr 20190129 092039 - If you’re a Facebook … Rick Cogley


Have you heard of the programming language Rust, for “safe systems programming”? It helps prevent common programming mistakes that can lead to security problems.

RC Logr 20190129 091645 - Have you heard of the … Rick Cogley

28 Jan 2019


In terms of cables, I like the brand ANKER because their products are sturdy and last well. It’s a bit insulting that Apple makes you buy so many dongles and cables, yet they don’t last.

RC Logr 20190128 205818 - In terms of cables, I like the … Rick Cogley


Successfully compiled and loaded the Arduino firmware with some basic customizations for my Keyboardio Model 01-Q (repo), and created a graphical layout for it.

RC Logr 20190128 195850 - Successfully compiled and … Rick Cogley

26 Jan 2019


Big advantage to a keyboard like the keyboardio Model 01 is, you can chord multiple modifier keys with your thumb.

RC Logr 20190126 182100 - Big advantage to a keyboard … Rick Cogley


Learned something important about keybase’s kbfs system, which is mounted as a fuse drive on macOS at /keybase: you don’t need to do a mkdir to make a shared private folder; rather just cd to it. To share a file with keybase friend heidi, just do cd /keybase/private/youruser,heidi and that folder will magically show up, and you can drop the files to share right in there. Slick! 😍

RC Logr 20190126 104851 - Learned something important … Rick Cogley


For all its benefits, Keybase.io doesn’t support audio or video chat, but Wire does.

RC Logr 20190126 094032 - For all its benefits, … Rick Cogley

25 Jan 2019


Are you aware of keybase.io? They offer various features like encrypted chat, git, shared file storage, a public webpage, but my favorite part is how they are making identity easy. See the links on my keybase profile.

RC Logr 20190125 203756 - Are you aware of keybase.io? … Rick Cogley

24 Jan 2019


For wrist health, I’m trying an ergonomic Model 01 from Keyboardio. So far it’s slowed me down so much, it’s like I cannot even touch type. 😱

RC Logr 20190124 204122 - For wrist health, I’m … Rick Cogley


Did you know you can specify how rsync uses ssh? Set a variable like this:

sshopts="ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no"

Then call it like this:

rsync --verbose --compress --archive --recursive --partial /
--progress --checksum --delete --rsh="$sshopts" public/ /

Bonus tip: target needs a trailing slash!

RC Logr 20190124 195900 - Did you know you can specify … Rick Cogley