Industrial Slack Notifications

I work on the east coast and get a fair number of inquiries from coworkers after the end of my day, not always seeing the notification on my phone. I don’t feel obligated to respond outside of work hours but I do want to know about it so I have the option of responding. I picked up an industrial stack light from Amazon for $13.79 which was just the ticket.
Read more →

monitoring the dog bowl with home assistant

We have two dogs and three cats. Long ago we gave up on the idea of using a normal sized water bowl and switched to a large salad bowl. This wasn’t ideal for a variety of reasons, including aesthetics, so we recently swapped it out for a decorative fountain in the corner of our kitchen. This has been going great and with it’s 7 gallon capacity has let us go as long as a week between refills.
Read more →

finding stuff in local cpan

So you’ve got this great new local CPAN you can use to install stuff you know about but how do you find stuff you don’t know about? There are two main ways I inspect the contents of my local CPAN mirror. The first is a simple shell function for searching package names, the second, has a bit more to it but we will save that for later. grep to the Rescue One of the metadata files in our local mirror is /modules/02packages.
Read more →

taking cpan with you

CPAN is THE killer feature for Perl. One problem you may have from time to time due to it’s online nature is availability issues. How do you install CPAN modules from a plane, train, or automobile without wifi? Or from the middle of nowhere in Oregon (Ione, OR)? Or timely install Moose and it’s dependencies from a dial-up connection in the middle of the deserted Oklahoma plains (Leedey, OK). Well, my fellow perler, I have been to these places forgotten by the Internets, and I have installed CPAN modules with impunity.
Read more →

listening two icecast streams at once

I run a site with two scanner feeds for my local town, Gallowaynow.com, one for EMS & Fire and another less publicized one for PD. I regularly listen to both of these feeds when I’m not around the scanners supplying them. How do you listen to two feeds that may be talking at the same time and make sense of anything? With sox the Swiss Army knife of sound processing.
Read more →

Pod Usage

Pod::Usage is one of those boring modules that doesn’t get the attention it deserves. Included in Perl core since 5.6.0, released fourteen years ago, it’s not a new kid on the block. It’s job isn’t sexy, so not lots of talks, blog posts, or tweets about it. There are only 5 ++s for the distribution on metacpan.org. It’s my goto module for all but the most trivial scripts, I probably use it second to only pragmas in scripts.
Read more →

logging apple battery data w perl

Inspired by a blog post and the code that goes with it at jradavenport/batlog, I created a perl script for logging Apple laptop battery details last August. My script logs 11 values using ~67 bytes per record. The oldest log I have begins 288 days ago and is 17,122,966 bytes for an average of 59.4 KB/day or 21 MB/year. The log is missing data points due to things like prolonged hibernation or sleep, theoretical max is around 35MB/year with 10 minute resolution.
Read more →

perl debug binary data

Perl has some really great tools for dumping datastructures when debugging. Data::Printer by GARU is a realitive new comer that’s gained a tremendous following. Of course, everyone also knows Data::Dumper, core since at least perl 5.5 in 2004. What do you do when you need to dump binary data though? I recently had to do this for the first time so I went looking on the CPAN to see what was available.
Read more →

alfred2 audio device

Alfred V2 has a great new feature called workflows. I’ve been playing with a few others wrote and had ported my old custom commands to workflows but was looking for something to really make use of their power. Changing the selected audio output device was just the thing to implement as a workflow. OS X has a nice shortcut for doing this without heading to system preferences. Option clicking the speaker in the menu bar well let you change the input or output device, but I wanted to do it easily from the keyboard.
Read more →

fair trade cofee price premium

Galloway Township considered a resolution last week that would support fair trade practices. The resolution was tabled after some brief discussion. The cost difference between fair trade and non fair trade items was brought up and I was curious how much of a difference there was. The town currently gets most office supplies from WB Mason. I do not know if this includes coffee but at work we get our coffee from WB Mason so as any Geek would do, I made a spread sheet.
Read more →