Profile

wshaffer: (Default)
wshaffer

September 2021

S M T W T F S
   123 4
56789 1011
12131415161718
19202122232425
2627282930  

Custom Text

Most Popular Tags

So, Spotify has a cute "Your Year in Music" thing (https://www.spotify-yearinmusic.com/), where it will generate stats on what you've listened to this year. Something I found particularly interesting were the stats on the country of origin of the music I listened to on Spotify this past year:

United Kingdom: 20%
United States: 19%
Sweden: 15%
Norway: 11%
Italy: 6%

The real surprise on that list is Italy, because I think most of that figure is probably attributable to a single band, Lacuna Coil. I mean, there'll also be some Forgotten Tomb, Goblin, and a few other bands in there, but I listened to a lot of Lacuna Coil in 2014.

I might have expected Greece and Finland to make the list, since I think that those two countries rival Sweden and Norway in their production of high quality heavy metal per capita, but that's not reflected in my Spotify listening at least. (It would be interesting to crunch the numbers on my last.fm stats, which include additional listening sources besides Spotify. Hmmm, I wonder if that last.fm API includes geographical info for artists.)
Tags:
After a bit of research, I found a much better way to do the file name manipulation I was talking about in my previous post.

Basically, it boils down to:

require "pathname"
input_file = Pathname.new(ARGV[0])
new_base = (input_file.basename(input_file.extname)).to_s + "_counts" + input_file.extname.to_s
output_file = input_file.dirname + Pathname.new(new_base)


I used Pathname instead of File because the documentation suggests that it's more robust at dealing with different file pathing conventions on different OSes.

I'm a little dubious about the dance I had to do there of converting path fragments to strings, concatenating them, and then converting back to a pathname, but trying to concatenate the path fragments directly kept giving me extra / in the path.
I'm doing a project at work where I've got a bunch of CSV files with several thousands of lines of data. I need to slice and dice this data in various ways, mostly by pulling out subsets of lines with certain strings occurring in them, counting the number of times certain values occur, and so on.

Looking at this data, it became clear that I could either a) become a serious Microsoft Excel power user, or b) put my slowly growing Ruby scripting skills to work. That wasn't much of a contest.

I actually managed to knock together the skeleton of a useful script pretty quickly. Now I'm polishing it up to make it useable and adding a bit of basic error-checking. I encountered two little issues that strike me as the kind of thing that I'm likely to forget about and then encounter again at some point in the future. So, blogging for my own reference, and because it might possibly be useful to some other Ruby newbie.
How do I find the file name extension? )
How do I unfreeze my string? )
Actually, as I was checking in my most recent changes, it occurred to me that Ruby probably has a class with built-in methods for doing things like handling file name extensions. But reinventing the occasional wheel is educational.
I met up with an old friend yesterday. Back when we were in junior high, we were Doctor Who fans together when we didn't know any other Doctor Who fans. We'd phone each other up after the episodes aired every Saturday night to share our thoughts. So, when her birthday rolled around in November this year, I sent her a copy of Chicks Dig Time Lords. I wasn't entirely sure what she'd make of it, because, while she still watches the show (and we still exchange our impressions of episodes, mostly over Facebook), she's not really a part of organized fandom.

Happily, she loved the book, and we chatted a lot about it. One thing that I got a big kick out of was her telling me that the book had introduced her to a new term, "gender non-conforming". And that not only had that given her a word to describe her own experience of her gender during her childhood, but also affected the way she saw her son's behavior. (He asked for a Barbie doll for Christmas. She thought, "Fine, he's gender non-conforming," and bought him the Barbie doll. Knowing my friend, I'm pretty sure she would have still bought her son the doll even if she hadn't read Chicks Dig Time Lords, but it clearly meant something to her to have the concept of "gender non-conforming" available.)

It's a neat example of the power of science fiction fandom to inspire discussion. It probably wouldn't have occurred to me to send my friend a scholarly article about gender roles in childhood. Nor am I certain that she would have immediately related to it if I had. But put the same ideas in the context of a fannish memoir about growing up a non-girly Doctor Who fan, and suddenly we're having a conversation that we might not have otherwise had.
The great "Unpack all the boxes in the garage" project continues. After several weekends of unpacking stuff that mostly went straight to the trash, recycling, or "Donate to Goodwill" pile, I unearthed some real goodies today. I found a box that contained some carefully hoarded relics of my early geekery, going back to elementary school.
So I took some photos... )

(no subject)

Jul. 24th, 2011 10:37 pm
wshaffer: (evil_laugh)
I've just spent way too much of my evening chortling over Go Make Me a Sandwich, a blog devoted to humorous critique of sexism in gaming (both computer/console games as well as tabletop RPGs and the like.) I particularly love the posts where the author takes some particularly ludicrous piece of art that violates both the laws of anatomy and physics, analyzes what's wrong with it, and redraws it to be more plausible. Not only are they funny, they're like mini-workshops for artists on how to do the female figure right.
So, I've been reading Mark Bittman's Food Matters, which is basically an argument for why we should eat less meat and less processed food, followed by some tips, tricks, and recipes designed to help you eat less meat and less processed food. And I got to thinking that if I really wanted to reduce my consumption of meat, it might be nice to know how much I'm consuming right now. Fortunately, I'm in one of my sporadic periods of keeping a food log, so I have data to play with.

So, I went through all my meals in the past week, and tallied up which ones contained meat or other animal products. I also tallied up whole grains, because I wanted something to brag about Bittman is keen on them. I wasn't terribly sophisticated about this - I didn't try to account for quantities - a bit of chicken broth in a soup was tallied as chicken just the same as a sauteed chicken breast. I also didn't attempt to account for snacks - since my snacks mostly include whole grain crackers, hummus, carrots, fruit, yogurt, cheese, or dark chocolate, this means that the tally below somewhat understates the amount of diary that I eat.

So, here's the data for the curious:
How carnivorous am I? )

I don't know how typical this week has been - I've cooked a lot of lovely veggies from the farmers' market. It would be interesting to repeat the tally in winter. I also think this week's fish consumption is higher than usual. (I'd actually like to increase my consumption of fish, though, as long as it's reasonably sustainably caught fish.)

I have no idea what lessons to draw from this, except that clearly I would fail at veganism. But at least I have some kind of baseline.
I learned today that the wife of a coworker is a mathematician with an Erdos number of 2. Total fangirl moment.
So, I had an interesting conversation with a coworker on Friday, in which we spoke at cross purposes for a couple of minutes, because we had a completely different understanding of common terms for user-interface elements in software. And now I'm curious about whether these terms just aren't as standard as I assumed they were. So, if you'll indulge me in an entirely non-scientific poll...
What do you call... )
I have any number of things that I ought to be doing, many of which are fairly pressing, but what my brain really wants me to do is spend the rest of the afternoon learning to write XSLT stylesheets. This would solve no urgent need, but it would:

  • Eliminate the need for me to trawl through an ugly XML file for certain necessary pieces of information that I'm referring to fairly frequently.

  • Impress the hell out of my coworkers.



This is a nearly unbeatable combination of incentives, but I'm going to try to resist it on the grounds that being Useful is more important than being Really Clever.
I've spent a little time this weekend tidying up my various 'net presences. I've done a long overdue revamp of my Mac.com homepage, updating my bio a tad, revamping my Links page, and replacing links to the woefully out-of-date online copy of the my resume with links to my LinkedIn profile, which at least has a prayer of getting updated now and then. (I have very little evidence that anyone has ever looked at my online resume. I do know that people occasionally look at my LinkedIn profile.)

I've also figured out how to pull data from my GoodReads profile to display on my Facebook profile and on my livejournal. I really like using GoodReads as a way of tracking what I've been reading, but as a social networking tool, it's been a bit of a non-starter. Hardly anyone I know is using it. Now, if you're interested in what I've been reading recently, you can look at my livejournal's sidebar or my user profile, and see a list. (It's not perfect - it only seems to display the most recent items in the "Currently Reading" list, which means that a couple of big fat tomes that I've been sloooowly reading through for months do not appear on the list.)

The last item on the to-do list is to spiff up my LinkedIn profile a bit. I'm not really terribly motivated to do this, since I'm not actually looking for a job at the moment, but they do say that the time to do these sorts of things is when you're not looking for a job.

Facebook

Oct. 25th, 2007 07:00 am
wshaffer: (incapacitated)
I created a Facebook* account on a whim a few days ago. Mostly because I kept coming across little announcements from people saying that they'd created a Facebook group for a podcast I listen to or for fans of the Big Finish audios or whatever, so I joined to see what the deal was.

I'm still not sure exactly what the deal is. Social networking sites perplex me, somehow. Daniel's often theorized that online networking sites are a great boon to those of an introverted geeky bent among us, allowing us to meet compatible people without having to do all that terrible leaving-the-house and making-small-talk that extroverts do. I agree, but it doesn't change the fact that a) when it comes to social networking, the extroverts still do it better and b) my initial impulse in any new and unfamiliar social environment is to hide in a corner, nursing a diet Coke and observing - even if on the internet, no one can see that I'm doing it.

So, about at the point where I was wondering whether to go get another diet Coke, or just bail on the whole Facebook thing, a coworker and an old high-school friend whom I haven't seen in well over a decade found me and friended me. (See my point about extroverts doing it better.) So, I've decided to stick around on Facebook, at least for a bit. I've found one person whom I know in real life, and friended them. Anyone reading this with a Facebook account, feel free to friend away. Or not. Y'know, whatever. Not being pushy. Excuse me, I think I need another diet Coke.

*Yeah, I know, Facebook is so 2006. But look at when I started livejournalling! This is early adoption for me.
I just discovered that you can podcast Prime Minister's Questions. Or watch them online.

Way back in the day when Margaret Thatcher was PM, when I was in middle school, I used to watch Prime Minister's Question Time on C-SPAN. Somehow, I got my friends hooked on it. We treated it like a spectator sport. Some of us were pro-Labor, others pro-Tory. I remember spending at least one lunch break discussing the poll tax. I had a strange sort of political crush on Neil Kinnock, who was the opposition leader at the time. (Hey, he was an unabashed leftist and Welsh.)

Somehow I doubt that Gordon Brown and whoever-the-opposition-leader-is can provide the kind of quality political theater that Thatcher and Kinnock could dish out, but I'm going to have to have a listen just for old time's sake.
I just noticed today that a very large percentage of the new music I've bought in the past six months consists of songs I've gotten hooked on because someone has used them as a soundtrack for a particularly clever Doctor Who or Horatio Hornblower fan vid. This makes for an eclectic batch of songs that would boggle the mind of any radio station programming director. I do find myself wondering what kind of selection pressure "makes a good soundtrack for a fanvid" imposes - aside from the fairly obvious fact that shorter songs do better.

I'm not sure which is more embarrassing: that I just bought Justin Timberlake's "SexyBack", or that I'm so insulated from pop culture that I'd never actually heard "SexyBack" until I stumbled across a Hornblower fanvid using it.

I want Timbaland to do a remix of the Doctor Who theme tune.

The Doctor Song (link goes to Youtube video) is not available for purchase, but I've been thoroughly earwormed by it. (You have to love lyrics like, "I was once a spaceship/My mum's a trampoline/Cheetas like to kill for fun/Ice Warriors are green") Click at your own risk.
[Error: unknown template video]
Somebody made a music video about the product that I write documentation for. Next time somebody asks me, "So, what do you do?", I'm just pointing them to this.
Tags:
I heard Jonathan Coulton's "I'm Your Moon" (a love song to Pluto, presumably from the point of view of Pluto's moon, Charon) on a podcast last week, and it's been stuck in my head ever since. I've now obtained my own copy from iTunes - you can also buy Coulton's music direct from his website, linked above.

I know this isn't the first time I've encountered Coulton's music - I've definitely heard his "Skullcrusher Mountain" before. But "I'm Your Moon" is both geeky and sentimental - right up my alley.