Development: Arduino, R, and Awk
-
Interactive Halloween costume lets passersby play Wordle | Arduino Blog
You’re probably already familiar with the game Wordle — it was a hit in 2021 and then took the world by storm when The New York Times purchased it in 2022. The gameplay is simple to understand, but still challenging. Players have to identify a word through trial and error by making guesses to identify matching letters and letter positions. Ches’ Halloween costume called “Hallo Wordl” lets passersby play a physical version of the game.
Hallo Wordl’s gameplay is similar to standard Wordle, except that the words are all spooky. Those can include words like “ghost” or “foggy.” There doesn’t seem to be any dictionary checking, so players can enter a string of characters that isn’t a real world. But that isn’t a big deal when this mostly acts as an icebreaker for Halloween parties. Players can enter their guesses using a small 12-button keypad through T9-style typing (though there is no predictive text). That might stop gen-z from playing Hallo Wordl, but it provides a much more compact and affordable interface than a full keyboard.
-
Dirk Eddelbuettel: RcppRedis 0.2.2 on CRAN: Maintenance and Enhancement
A new minor release 0.2.2 of our RcppRedis package arrived on CRAN this evening. RcppRedis is one of several packages connecting R to the fabulous Redis in-memory datastructure store (and much more). RcppRedis does not pretend to be feature complete, but it may do some things faster than the other interfaces, and also offers an optional coupling with MessagePack binary (de)serialization via RcppMsgPack. The package has carried production loads for several years now.
-
Using If Else Statements in Awk
AWK is a powerful scripting language that comes baked into the bash shell.
It is extremely versatile and can be used to write all kinds of data extraction scripts.
Conditional statements are an integral part of any programming or scripting language and AWK is no different.
In this tutorial, I'll show examples of using if-else statements in AWK. Here's the sample data on which I base my examples.