Friday, September 8, 2017

On Quick & Dirty Email Attachments in Unix

Need to export a file from Unix/Linux via email? Got uuencode? Do you even remember uuencode? It's how we used to encode files for file sharing, back before you were born.

Here's a handy one-liner that will wrap your file up as a UUEncoded attachment and mail it to the address you specify. The email should come through with a properly formatted attachment that you can then download.

Just do this:
% cat file.zip | uuencode file.zip | mail [email protected]

Or you can get a bit fancier and add a subject line and a proper from address (if your system doesn't add one already):
% cat file.zip | uuencode file.zip | mail -s "Export of file.zip" -a "From: Me <[email protected]>" [email protected]

Or you can do it as part of a shell script, with bits that look something like this:

FROM="Just Me <[email protected]>"
TO="[email protected]"
FILE="file.zip"
cat $FILE | \
uuencode $FILE \
mail -s "Export of $FILE attached" \
-a "From: $FROM" \
$TO

I know there's probably some better way to do this, but this simple example has saved me endless amounts of time lately. Hope you find it useful, too.

Monday, August 21, 2017

On Nasty Women Week

Samantha Bee has proclaimed this week to be Nasty Women Week. To celebrate, I suggest that you pre-order the new book NASTY WOMEN: FEMINISM, RESISTANCE AND REVOLUTION IN TRUMP'S AMERICA, edited by Samhita Mukhopadhyay and my wife, Kate Harding.


Monday, August 14, 2017

On Working From Home

I've worked from home the whole time I've had my current job--a pretty long time now.

It's not so much that I intended to work from home. But when I got this job offer, I had just moved to a new city, and wasn't able to just pack up again and move a second time. The person hiring me was also based in another city and knew that it was possible to be a productive member of a team and organization even if you're not based in the same city or office as your coworkers.

Wednesday, August 2, 2017

On Crab Claws and Cocaine

An idiot's observations of Miami and Miami Beach:

Tuesday, June 27, 2017

On Moving to Miami

So, we've decided that the town of Ithaca, New York, was not for us. When considering where to move next, my criteria was that I wanted to "move aspirationally." What I meant by that was, I want to move to some place where we like being, is someplace we've been and have had fun before, and is maybe some place where life would be really different for us. Someplace where we both have thought, "gosh, we really wish we lived here" during previous visits. And with Kate leaving her day job, and my job allowing me to work from anywhere, we thought that we really ought to take advantage of the freedom that this allows us.

Monday, September 26, 2016

On Almost Buying a Samsung Galaxy Note 7

I almost bought one of those exploding Samsung Galaxy Note 7 phones.

A few months ago I dropped my iPhone 6 and cracked the glass along the top edge. It didn't make the phone unusable, but it lost its cool factor significantly. Then I was reading about the upcoming iPhone 7 and how it was mostly an evolutionary design, perhaps not a ton of difference from the iPhone 6s, and not a revolutionary new design. So I asked around to find out what peoples' favorite Android phones were, and everybody seemed to love the Galaxy Note phones. And the Note 7 in particular, had a cool slightly-bigger screen that goes all the way edge-to-edge on the device.

Tuesday, September 13, 2016

On Ithaca and Bugs



Greetings from Ithaca, New York.

Need any bugs? Bugs are everywhere here in Ithaca. Flies, mosquitos, gnats, spiders, crickets, they all love us and want to come live in our home. Our tiny chihuahua is terrified of the bugs, but our other dog will chew on them upon request.

Everything is a .9 mile walk from our home.

Parts of it are flat, unless you want to go to Cornell, then it's straight uphill, on streets at scary angles, and that's before there's any snow and ice.

The falls are pretty, though.