Publications by hrbrmstr

Into The Fediverse!

08.11.2022

This is more of a test post after enabling some new Fediverse features on the server. Said Fediverse got a bit more real-ish this week (with moderate apologies to the pioneers in this space who’ve languished for ~five years) You can find me at: @hrbrmstr@mastodon.social (general blathering/primary masto-account) @hrbrmstr@infosec.exchange (res...

1117 sym

Bootstrapping An {ojs} Quarto Document With An Observable Notebook

19.08.2022

Quarto is amazing! And, it’s eating the world! OK. Perhaps not the entire world. But it’s still amazing! If you browse around the HQ, you’ll find many interesting notebooks. You may even have a few yourself! Wouldn’t it be great if you could just import an Observable notebook right into Quarto? Well, now you can. #' Transform an Observabl...

1259 sym R (2910 sym/3 pcs)

Turning {ggplot2} Into a PoS (Point-of-Sale) System

03.04.2022

At the end of March, I caught a fleeting tweet that showcased an Epson thermal receipt printer generating a new “ticket” whenever a new GitHub issue was filed on a repository. @aschmelyun documents it well in this blog post. It’s a pretty cool hack, self-contained on a Pi Zero. Andrew’s project birthed an idea: could I write an R package ...

4317 sym R (1545 sym/2 pcs) 8 img

Update On ESC/POS Package Work

04.04.2022

The morning before work was super productive and there is a nigh-complete DSL for ESC/POS commands along with the ability to just print {ggplot2}/{grid} object. I changed the package name to {escpos} since it is no longer just plot object focused, and the DSL looks a bit like this: library(stringi) library(hrbrthemes) library(ggplot2) library(esc...

970 sym R (994 sym/1 pcs) 2 img

Keeping Those SSH Keys Safe

16.04.2022

I came across a neat site that uses a Golang wasm function called from javascript on the page to help you see if your GitHub public SSH keys are “safe”. What does “safe” mean? This is what the function checks for (via that site): Recommended key sizes are as follows: For the RSA algorithm at least 2048, recommended 4096 The DSA algorith...

1461 sym R (1651 sym/5 pcs) 22 img 3 tbl

Rusty HTML Minifying In R with {rextendr}

10.05.2022

In my M-F newsletter today I mentioned an awesome Rust-based HTML/JS/CSS minifier library that also include batteries for a few other languages. There was no R port, so I made one using {rextendr}. The {rextendr} package makes is as easy to use Rust code in R packages as {Rcpp} does C/C++ code. It was as simple as adding some dependencies to the ...

1187 sym R (706 sym/1 pcs)

Using Leonardo SVG Palettes in R

17.05.2022

In today’s newsletter Leonardo, an open source project and free online too from Adobe that lets you make great and accessible color palettes for use in UX/UI design and data visualizations! You can read the one newsletter section to get a feel for Leonardo, then go play with it a bit. The app lets you download the palettes in many forms, as wel...

1565 sym R (4292 sym/5 pcs) 6 img

Introducing {weatherkit}: The Eventual Replacement R Package for {darksky}

07.07.2022

My {darksky} package has been around for years, now, and the service that powers it was purchased by Apple before the pandemic. The DarkSky API is slated to be shuttered in December of this year and is being replaced by Apple’s WeatherKit xOS Framework and REST API. I’ve started work on a {weatherkit} package which uses the WeatherKit REST AP...

2691 sym R (13679 sym/2 pcs)

A zsh Helper Script For Updating macOS RStudio Daily Electron + Quarto CLI Installs

13.03.2022

RStudio’s macOS Electron build is coming along quite nicely and is blazing fast on Apple Silicon. I like to install the dailies, well, daily!; and, of late, RStudio and Quarto are joined at the hip. As a result, I regularly found myself having to manually update Quarto CLI right after updating RStudio, so I made a small zsh script that will use...

922 sym

ThinkStats … in R (including Example 1.2)

04.03.2012

ThinkStats (by Allen B. Downey) is a good book to get you familiar with statistics (and even Python, if you’ve done some scripting in other languages). I thought it would be interesting to present some of the examples & exercises in the book in R. Why? Well, once you’ve gone through the material in a particular chapter the “hard way”, see...

2090 sym R (1734 sym/2 pcs) 1 tbl