One Weird Trick to Never Run out of Batteries

(No, no, I’m not actually selling anything, and this isn’t spam. But some of us have been parodying the weird “One weird trick” ads that no one understands. I did it in my post about getting NFS working, and my friend and colleague Tomas introduced his Gerrit expand comments bookmarklet as “one weird trick” to make it more usable. This one is about batteries.)

For years, I’ve been plagued by what to do about the things I own that use AA/AAA batteries. On one hand, disposable batteries are really convenient, because they last years in storage, and are always ready. But the idea of throwing away batteries weekly becomes morally objectionable the more you think about it. On the other hand, you have rechargeable batteries. They can be used hundreds of times, solving (or at least exponentially reducing) the disposal issue I have. But I’ll often endure a wait of a few hours when the batteries in something die and I have to go hastily recharge them. So often I’ll charge things when the batteries aren’t really all that low, so that they won’t run out at an inconvenient time, and that’s just a hassle.

So the “one weird trick” is simple: buy a ton of Eneloop batteries, more than you need, and use them first-in, first-out. Throw depleted batteries on the charger as you grab the new ones to ensure you never run out. It’s the best of both worlds. You always have fully-charged batteries on hand, but instead of throwing the depleted ones in the trash, you put them in the charger. Here it is in a diagram:

Sequence diagram

I really can’t begin to describe how incredible this is. It’s like this amazing luxury I have. But there are some things I figured out along the away:

  • You need to get something that’s got a very low self-discharge rate. This is the selling point of the Eneloops. You can charge them and they’ll still be good a year down the road. (They’re not immune to self-discharge, but it’s greatly reduced.) This system just will not work at all with regular batteries. Otherwise when you charge a battery and return it to storage, it will be drained by the time you use it. Seriously, this bullet point is absolutely critical.
  • Get all the same type of battery. Different brands, or maybe even different models of the same brand, discharge at different rates. It becomes a lowest common denominator situation if you mix them. If you must use different brands/models, don’t mix them in the same device.
  • Buy a ton of batteries. I figured I’d need maybe ten AA batteries. I actually have about 25-30 in circulation, four in reserve (charged and ready to go), and four that I just replaced. You think you got everything, and then the batteries in something else die and you realize you need more. Because they last a long time between charges, having a dozen extra batteries is not a problem. Having too few batteries is.
  • You must force yourself to always put the dead batteries on the charger as you grab new ones. Keep the reserve (charged batteries) and the charger next to each other. This is absolutely essential. You will just have a pile of dead batteries otherwise.
  • Go strictly first-in, first-out on batteries. Work left-to-right, front-to-back, or whatever. I’ve often been tempted to take the batteries off the charger and use them, since they’re “fresher” than the ones waiting in reserve. But the whole point of this system is that the ones in reserve are perfectly good. Once you start skipping over batteries, that guarantee starts to break down.
  • If you have new disposable batteries in reserve, use them first. It pains me to use them and then throw them away when I have perfectly-good rechargeable batteries, but the alternative is to not use them and throw them away. Use them while they’re good, knowing that you will never purchase a disposable battery again.

Eneloop batteries are really expensive. $2-3 per battery. But this is absolutely a case of paying for quality. It’s also a wise investment—you’re going to use these hundreds of times, such that the per-use cost of each battery is probably under a cent. I highly, highly recommend the Eneloop brand. There may now be other low-self-discharge batteries, but I haven’t tried them. Whatever you do, be absolutely certain that batteries can last a month or two without losing much of their charge before you buy them. It is a complete waste of your money otherwise.

I highly recommend some specifics, too:
* A good charger. I have, and would recommend, the LaCrosse BC-700. It is not particularly intuitive to use, but it’s not too tough to master. It allows you to discharge and then recharge batteries, which can help extend capacity early on. ([citation needed] on that, but I’ve read it multiple places.) However, this is just the model I bought and that I like; any quality charger should work fine.
* A container for the batteries. I don’t have a specific product recommendation here, though the linked set is good. (Note that some retail-packaged Eneloop batteries come with these, so you might not need to purchase them separately.) I have a container that holds 8 that I use for my main reserve set, spilling over into 4-packs when it fills. I do recommend that you get one that only holds one layer of batteries, to make the first-in, first-out system easy and intuitive. Take batteries from the right, and insert from the left. No worrying about top and bottom rows or anything. Really any container will do, but don’t just leave them lying around or it will just become a mess and you won’t know what’s what.

This all sounds so silly, but it’s incredibly useful. I would never go back to any other system.

The Good Outnumber You

I was really pretty worried when I saw people quoting what they referred to as a comedian on the subject of the attacks in Boston. I wasn’t ready for someone to joke about it. But I took a look anyway, and I realized — comedians don’t just tell jokes. Sometimes they are absolutely fucking brilliant.

If you haven’t already read it, you really owe it to yourself to read Patton Oswalt’s Facebook post. Seriously. Read it. Now.

As a commentary on the bombings of the Boston Marathon, it’s absolutely brilliant. And that’s why it was written. But it’s not just about that. It’s about life, and the world we inhabit. It’s a credo for life:

But the vast majority stands against that darkness and, like white blood cells attacking a virus, they dilute and weaken and eventually wash away the evil doers and, more importantly, the damage they wreak. This is beyond religion or creed or nation. We would not be here if humanity were inherently evil. We’d have eaten ourselves alive long ago.

So when you spot violence, or bigotry, or intolerance or fear or just garden-variety misogyny, hatred or ignorance, just look it in the eye and think, “The good outnumber you, and we always will.”

It’s a thousand times more eloquent than I could have put it, and it’s such a great message to keep in mind in a world where sometimes horrible things happen.

Spam Shame: Premier Inn

When I traveled to London last year, I stayed in the Premier Inn at London County Hall. It was a great hotel in a great location.

But I just got this email from them:


I don’t think they understand how email works. Giving me advance notice to opt out of spam I didn’t ask for doesn’t make it okay. Consider the following:

Dear Premier Inn,

If I don’t hear from you by 17th March, I’ll assume you’re happy for me to regularly mail you expired food from my refrigerator regularly — and to kick things off, I’ll send you some expired fish very soon.

Best wishes,

Disgrunted customer

See? That’d be patently unreasonable. (But immensely satisfying.) Why is theirs any different? If I actually wanted their “special offers,” how about letting me ask for them, versus informing me that they’re going to start sending them to me until I demand they stop?

When in London, stay somewhere else!

Making Gmail Beautiful

I’ve used Gmail for ages, but have historically been less than impressed with its appearance. I’m all for a simple interface, but simple and ugly don’t have to go together.

I’ve changed through their themes over time, never quite happy with the options. But more recently, I discovered that they allow “custom” themes. (Quotes around “custom” since your choices are just “Light” and “Dark” with a configurable background.)

But that turns out to work pretty well:

(I’ve heavily redacted the contents of my Inbox, just since I’d be pretty irritated if a friend of mine went blogging photos of my emails to them.)

There’s a great selection of really nice backgrounds to choose from, including the ability to use your own photos. But thus far I’ve been so happy with the options that I haven’t tried to use my own photos. You really owe it to yourself to try out.

(No word yet on whether the monkey in my background is Darwin or not.)

The Curious Case of My Mac’s Clock

When I traveled to Europe and back, I switched through timezones a lot. I went from Boston to London. When in London, Boston switched off of DST. Then I moved from London to Brno, forward another hour. Then back to London, then back to Boston.

Not wanting to lug my heavy Thinkpad around, I brought my MacBook Air on the trip. (And was appropriately ostracized by coworkers for bringing a Mac to a meeting at a company best known for its Linux distribution.) And it did something that kind of intrigued me — it automatically adjusted to the local timezone.

Now, this shouldn’t be possible. My clock is synchronized using NTP, which exchanges UTC time, deliberately ignorant of timezones or DST. And even if NTP did use local timezones (which would be a huge disaster), it still wouldn’t have worked, because I had hardcoded some local clocks.

Investigating a bit, I found this. This is seemingly a new feature, and it uses the operating system’s location service to find your timezone. My computer doesn’t have an onboard GPS, of course, so it’s doing one of two things — GeoIP, and/or looking up the access points I can see against a database.

This is really neat, but it’s also pretty damned creepy. Here is what I see when I visit that setting:

It knows exactly where I am.

I’m willing to bet it knows exactly where the closest tinfoil hat shop is, too.

Brno

Since people have been asking, I thought I’d share a bit about my journey to the Czech Republic. The Aeolus Project (what I do at work) is having a meeting here, as a substantial number of my colleagues work here.

I haven’t travelled internationally much. Back in 2007, I visited Mmofra Trom in Ghana. The Czech Republic would have been the second country I ever visited, keeping an inadvertent trend of only visiting places less geographically-savvy people couldn’t find on a map, if not for a brief stop in London. (I figured that if I was flying to Europe for the week and had never been, I might as well spend the weekends sight-seeing.)

Here is an obligatory photo from London:

(It’s a HDR composite done with Photomatix — the net result looks a little unrealistic, and yet it’s what it actually looked like.)

London was great, though outrageously expensive. And English accents are even more awesome than you might expect. The Underground, besides having an iconic logo, puts the MBTA to shame. I knew that they drive on the “wrong” side of the road, but I didn’t think it would impact me as a tourist who wouldn’t be driving. What I realized is that it’s terrifying as a pedestrian, especially at multi-way intersections, because you have absolutely no clue where cars will be coming from.

We took a WizzAir flight from London to Brno, a large city in the south-eastern part of the Czech Republic. Yes, “WizzAir” is a real airline, and yes, I was hesitant to book a reservation on it based on the name, but it was a nice enough budget airline.

The hotel has absolutely terrible Internet. Here’s what happens when I ping the wireless router:

--- 192.168.2.250 ping statistics ---
49 packets transmitted, 45 packets received, 8.2% packet loss
round-trip min/avg/max/stddev = 4.035/593.420/2627.601/702.471 ms

(Note that 593ms average latency, and the 8.2% packet loss, on a LAN.) This is entirely the fault of the hotel, though — in my company’s office, the Internet is just fine. We’re apparently only about 125ms away from Boston here.

The official language here is Czech, a West Slavic language that sort of seems like Polish to someone generally-ignorant about languages like me. I’ve come to realize that I’m rather afraid of being in a place where I can’t communicate, even though I’m surrounded by bilingual coworkers. It’s rather isolating. The good news is that many people, especially those in customer service venues (and people under perhaps 30) seem to speak some English, so I can get by when I’m at McDonald’s. (More on that soon!) Of course, my coworkers here all speak excellent English, so it’s not as if I’m really stranded not speaking the language. But that doesn’t stop me from worrying about it.

Last night, some friends and coworkers (thanks Tomas and Imre!) took us to a local (indoor) rock-climbing place and gave us training. It’s worth noting that the place served beer, though no one was actually drinking and climbing (or belaying).

I’ve never climbed before, and am deathly afraid of heights. So if someone had told me a few years ago that I’d one day find myself at an indoor climbing facility in the Czech Republic, I’d have thought they were insane.

And indeed, my first time up, I did chicken out after about 6 feet. My second time, I made it up perhaps 10-15 feet before I looked down. But the third time, I had the courage to make it to the top. (I really have no idea how high it was, but I’d guess perhaps 30-50 feet.) The photo of me actually at the top is… not flattering… but here’s a slightly less embarrassing photo of me midway up (exhibiting rather poor form, but hey, it was my first time…):

 

It might be interesting to note that the place had a small bar. This observation did not exactly help calm my nerves, though it ended up being a non-issue — the only people I saw drinking were chatting over a beer when they were done climbing. My fear that drunk people would be falling from the walls turned out to be entirely unfounded.

And speaking of fears of tolerance leading to mass chaos being unfounded, the country apparently has relatively lax (read: sane) drug laws.

None of us were particularly sure what this stuff was (a hemp hand cream was our best guess), but it led to an interesting discussion about drug laws here. Apparently, possession or use of small amounts of drugs (not just Cannabis) is decriminalized, though the general sale is not. (Which leaves me moderately confused about whatever this display case was.)

At first, it seems mildly insane that small amounts of LSD or cocaine (!) are legal. But it reminds me of something I saw on TV once, which was a (real-life) look at a city police department doing a drug sting. They had an agent sell small bags of cocaine to people, and a cadre of heavily-armed police agents would then swarm and tackle the buyer to the ground. As if this wasn’t appalling enough, there was a clear trend among the drug buyers in terms of race and socioeconomic status, and these people can face years in prison. (And time in prison, in turn, significantly reduces their odds of ever getting a decent job, causing what’s probably a vicious cycle.)

But just as there weren’t any drunks falling from the climbing wall when beer was served in the facility, I haven’t seen any drug addicts in the streets of Brno, or even been had reason to think drug use was a problem. Instead, it seems like the police are free to focus on crimes that have victims, and people with addictions are now able to seek treatment with legal impunity.

Apologies for the accidental political rant. Perhaps it is time I closed with a picture of the city, from my hotel balcony the other night:

The Wrong Metrics

I’ve noticed this interesting tendency of people to evaluate things based on all the wrong metrics.

A new Android phone came out the other day, and one of the reviews I read was praising its hardware specs. It had a quad-core processor and 2GB of RAM, or something like that. Its battery life was expressed in mAh and was a pretty high number.

Even though I’m a huge dork, I really don’t care about any of that stuff. I don’t want to overclock my phone. I want something where the apps run fast, and I don’t have to charge the phone every night or wake up with a dead battery. I want something where the interface feels polished, and there are lots of good apps. Oh, and I want it to not drop my calls all the time. I bet this is part of the reason why Apple has such a great market share for the iPhone — they promote the iPhone’s functionality and polish, not its tech specs.

Cameras are similar. If you’re comparing two cameras, what do you look at? Most people seem to care about which has the most megapixels, which is a pretty meaningless measure. (Case in point: I’ve actually turned down the resolution on my camera because the default was needlessly large. I think I’ve mentioned before that I have a high-quality 20×30″ print from a 6-megapixel camera?) The blame here doesn’t really lie with consumers, though. It’s something camera makers promote, and something stores go along with. They hype the metrics that just don’t matter.

I just happened across an ad for a hosting company, and forgot what a crazy industry that has become. It’s oversold beyond belief. Want 100GB of space and 5TB of bandwidth? There’s a line of companies that advertise stuff like that for a couple bucks a month. And then, when they reach rock-bottom prices, they start adding extra. 100GB of RAID 10 storage. 100 GB of RAID 10 storage on SSDs.

These, too, are the wrong metrics. For one, I bet most of them will cancel your account for vague reasons if you actually upload 100GB of content, or start pushing several terabytes a month of bandwidth. They bank on people not actually using any of it — but if you need to host your 3MB website, would you rather the company that gives you 5GB of storage, or the company that gives you 50GB of storage on striped SSDs?

It’s a trick question, of course. You’d rather the company that had a fast network, kept the load on its servers low, and had a responsive customer service department. (“Fast network” meaning that it has low latency and plenty of headroom, not that they advertise their “100GB network” as if they actually have 100 Gbps of transit.) But good luck finding anyone advertising those things.

Things on Amazon That Scare the Shit Out of Me


Over Door Cervical Traction Kit

This is apparently a legitimate medical thing, although they said that about trepanning in the past, too. But the fact that it’s a real medical thing will not stop me from having nightmares tonight about being tortured with this thing.


Cold Steel Gunstock War Club

The picture sort of makes this look like a large wooden club with a huge metal blade sticking out of it. But that’s not what it is. Rather, it’s a large polypropylene club with a huge metal blade sticking out of it. Wood is too breakable. Enough said.


Non-Metallic Covert Handcuff Key

There’s (presumably) nothing illegal about owning handcuff keys. There are maybe even legitimate reasons for wanting one that was concealable. (Though, short of being a magician, I’m having a hard time thinking of any.) But a legitimate reason for needing your concealed handcuff key to be non-metallic?


Fury Tactical Non-Metal Knife

The only reason I can think of for making a knife non-metallic would be (a) you need to perform surgery on someone inside of an MRI machine, or (b) you need to get your knife through a metal detector.

If I ever need surgery performed inside of an MRI machine, I’m hoping the surgeon doesn’t use a $7.08 knife from Amazon.

One comment happily proclaims that it won’t set off metal detectors. Two (though one is clearly in jest) talk about how effective it is on severing flesh.


Ethicon 662G Suture Kit

This seems to be targeted at medical students, and the related items make it look like there are fake arms for practicing on. So this one is entirely legitimate.

But I’m still going to have nightmares tonight that, while suspended in the neck-hanger in #1, my torturist (is that a real word?) begins suturing my arm at random.

Time and Habits

I usually get my hair cut every 4 weeks. And while I don’t want to sound like a crazy person who measures time by haircuts, I’ve noticed that my haircuts are feeling more and more frequent. For whatever reason, it just seems like time is flying by with incredible speed, and the fact that I feel like I see my hairdresser all the time is just one way it’s particularly apparent. And I’ve been of mixed minds about this. In some ways, it seems like time only drags by slowly when I’m bored, so it can’t be all that bad. But at the same time, there’s a sense that life is passing me by. Has anything noteworthy happened since my last visit that I can talk to my hairdresser about? Am I better off than I was last visit? And what about my next visit — will anything be different then?

Tonight I happened to read about something interesting, arguing that the best way to make a change is to take baby steps. And as someone who can sometimes have a lot of half-finished projects, this notion, although simple, seems appealing for a few reasons.

Most simply, baby steps force you to take steps, versus sitting idly by thinking about bigger steps later. I’ve been trying to start to exercise more often for most of the year. The problem is that, for a day, I’ll be all into it. The next day I’ll be hurting pretty bad, and the day after that I’ll think “I wouldn’t want to rush things.” Then the next day I’m just busy, and the day after that I forget. And a few weeks go by before I try again.

Suppose that I vowed to do 5 pushups a day, every day. That’s almost embarrassingly easy. But it means that, in between haircuts, I’ll have done 140 pushups. That’s still nothing overly impressive — but the point is that it’s probably about 120 more than I have done in the past 4 weeks. The baby-steps approach keeps me moving, and eliminates the “I don’t think I have enough time/energy today” excuse. Even if I’m really run down, I can find the time for five.

But the other thing I like about baby steps is that it’s easy to go beyond your goal. Why stop after five? There’s a sense of inertia. I suspect it’s the same reason we get sucked into continuing to pay for stuff after our “free trial” runs out — the hard part’s getting started, but once you’re going, you might as well keep at it. My problem with working out isn’t that I have a hard time keeping up, but just that I have a hard time actually doing anything. But it’s hard to say no to the “C’mon, it’s only 5 pushups!” voice, and once I’ve done 5, I might as well just keep going until I’m tired. And soon I’ll have tricked myself into actually exercising every day.

I also have a whole stack of books I’d like to read, and some more that I’d like to buy and add to the stack. But it has the same problem with getting started. I want to read them, but hey, I only have 45 minutes right now, and I might as well wait until I have more time. (This, incidentally, is why I don’t like watching movies: I have to agree to sacrifice several hours of time without knowing if it’s worth it.)

But what if my goal was to read 10 pages a day? (I’d much rather something like “A chapter a week,” but I think it has to be a daily goal. Otherwise, I can put it off until tomorrow.) That’ll take me what, 20 minutes? (Depending heavily on the book — the RSpec book I’m trying to make myself read is much slower going than, say, a paperback novel, since it requires some degree of concentration.)

Ten pages a day isn’t that much. But it means that, next time I see my hair dresser, I’ll have read 280 pages. And, like with pushups, I imagine it’ll be hard to stop after 10 pages. So many nights, “ten pages” might turn into “a chapter or four.”

When you combine this with the sense of time flying by that I’ve been experiencing, I think it’s exceptionally valuable, because the little bit a day will add up fast.

Of course — lean in close, because this is the secret — this isn’t really about setting low goals for yourself. It’s about tricking my sometimes-lazy habit into developing routines. I suspect that, once exercise or reading become something I actually reliably do every day, the goals can get adjusted upwards pretty quickly. But if you ask me to commit to a chapter a day or 20 pushups a day, I’ll make up excuses why I can’t. But five pushups? Ten pages of reading? Even at my laziest, I can’t argue against that.