RSSAmplifier

Blog

brian d foy

Random Adventures

briandfoy.github.ioRSS feed ↗10 posts

Latest posts

tmux cheatsheet

I guess I’m going to start using tmux because I have to work on a system that doesn’t have the xterm package and all sorts of things wonky.

Skip the first line by using the flip-flop operator

(this was an answer to a StackOverflow question that I didn’t post because it didn’t quite fit, but I use too keen on showing off the flip-flop operator to get rid of it all) I also put this in Reddit A few other places: perlfaq5: How do I change, delete, or insert a line in a file, or append to the beginning of a file? Respect the global state of the flip flop operator Make exclusive flip-flop…

What version of Unicode is your Perl using?

Most versions of Perl (v5.38, v5.40, and so on) updates the Unicode Character Database (UCD), and each version of the UCD has new features, often new blocks, characters, or adjustments to property settings. But, which version do you have? I tried this task a long time ago, in some place I don’t remember, looking at the presence of properties and other things, but I don’t want to create a long…

Is that Perl module still alive?

How do you determine if a Perl module is “alive”? This question from /r/perl, and I think it deserves a thoughtful answer. I did answer in that thread, but I thought I’d expand that.

Compiling Perl v5.8 on Debian Slim

I need a container for Perl v5.8, and I want it to be as small as I can make it. Starting with debian:bookworm-slim, I’d download the v5.8 source, modify it with patchperl, then compile it. But, there were problems.

A tiny Mojolicious server in a test program

I originally wrote this quickly to see about posting to my reddit profile: the post Sometimes I need a simple web server to do something in a test. Most often this web server needs to simulate some error condition, such as a timeout or other server error.

Remove album ratings from Apple Music

Apple’s iTunes, a long time ago, had a ratings feature for albums from back in its SoundJam MP days, which turned into predictive album ratings. Where track ratings are shown as red stars, the album ratings are show as black stars (and predictive ratings as grey stars).

Let’s talk about beavers, but we can’t ever look at one

On an outing, a couple of companions mentioned that they were reading Beaver Land by Leila Philip. They remarked about several curious facts about beavers, including a claim I found dubious: that beavers could direct the trees they felled. That is, the beavers could decide and then execute a plan that would make the tree fall in a direction they chose. Of course, to anyone who does this, as I do,…

Counting IPv4 addresses with a bitmap

I had this task to count IPv4 addresses, but the typical way of counting with a hash has problems. With Perl, you might think to just use each item as the hash key and increment its value each time you find one. However, when you are looking at most of the IPv4 space, or even half of it, that’s a couple billion keys that might not fit into memory. Remember, each of those values are a scalar value…

Everything is not miscellaneous

A friend suggested I read Everything is Miscellaneous after I was telling him my efforts to clean up the metadata in my music collection. Even aside from the idea of a genre, what year was this music track published? Is what I have the single, the album version, the radio music, a bootleg, a live track, or something else? I like to find all the covers of songs, so I can