Skip to main content

Benjamin Oakes

Photo of Ben Oakes

Hi, I'm Ben Oakes and this is my geek blog. Currently, I'm a Ruby/JavaScript Developer at Liaison. Previously, I was a Developer at Continuity and Hedgeye, a Research Assistant in the Early Social Cognition Lab at Yale University and a student at the University of Iowa. I also organize TechCorridor.io, ICRuby, OpenHack Iowa City, and previously organized NewHaven.rb. I have an amazing wife named Danielle Oakes.

Filtering for the month January, 2017. Clear

10 simple ways to use less oil

by Ben

This entry comes by popular request. A lot of people have been asking what they can do to use less oil, and reduce demand for the sticky stuff ruining beaches everywhere. Here’s my top ten, feel free to add to it in comments:1. Carpool, cycle or use public transport to go to work.2. Choose, when possible, products packaged …

Source: 10 simple ways to use less oil | Greenpeace International

Wood waste alcohol converted to jet fuel, used in Alaska Airlines test flight

by Ben

Airlines are slowly experimenting with alternative fuel mixtures to reduce greenhouse gases.

Source: Wood waste alcohol converted to jet fuel, used in Alaska Airlines test flight | Ars Technica

Face This Prospect: The End of Electric Car Incentives

by Ben

Plug-in vehicle sales un the US hit an all-time record of 159,000 units in 2016. That’s encouraging, but we are still in early days with EVs representing less than 1 percent of the new car market. It’s hard to know if the upward trend will continue, especially considering the many unpredictable factors, most notably gas prices. But what unfortunately seems very likely in the coming years is a systematic attempt to reverse incentives and other legislation that supports cleaner transportation.

Source: Face This Prospect: The End of Electric Car Incentives

Deleting Lines that don’t Match a Pattern

by Ben

And we want to delete all lines that don’t contain calculate. We can do that with :v. Simply running:

:v/calculate/d

Source: Deleting Lines that don’t Match a Pattern

Giving Up on TDD

by Ben

Not just the tests. You have to DESIGN period. No matter what you are writing; whether a unit test, or an acceptance test, or production code, or a mock, or a stub, you have to DESIGN.

Source: Clean Coder Blog

Replace Battery in the 1st Edition Barnes and Noble Nook

by Ben

If necessary, the battery can be replaced. A replacement battery must be of the following type:

Barnes & Noble Lithium Polymer battery
Model Number BNRB1530
Rating: 3.7V, 1530mAh, 5.66Wh

You will need a small Phillips head screw driver (size 0 or 00).

Source: NOOK 1st Edition – Replace Battery – Barnes and Noble

I recently picked up a 1st generation Nook for $20. I was a little weary of the age of the battery (6 or so years old?), but it turns out that this Nook is one of the few consumer electronics released in recent memory that was built to be repairable. (The battery was meant to be replaced! There are even official instructions.) This is in stark contrast to my 2nd generation Amazon Kindle which had hardware problems and became unusable right after the warranty period ended. That experience soured me on the Kindle, understandably.

At any rate, the only Nook that has a user-replaceable battery is the 1st generation model. Also, it seems that Barnes and Noble doesn’t seem to sell the replacement anymore. (I could only find one outdated listing). Fortunately, the batteries are easily found online for about $10. The steps are pretty obvious to replace it: pop off the back with your fingers, unscrew a screw, put the new battery in, and then reverse the process.

Between the replaceable battery and the free 3G internet included with the device, hopefully these devices stay in use for quite a long time!