Thursday, March 31, 2011

Decoding a Rotary Encoder

I recently acquired a rotary encoder to use as an input device for my hardware project. Knowing that such encoders make use of Gray code, I cracked open my Digital Design textbook and began coding a sketch for my Arduino. It wasn't as straightforward as I had hoped.

Tuesday, March 29, 2011

Sub'r Bowl Review: Jimmy John's Gourmet Sandwiches

Although last week was technically half way through the Sub'r Bowl, due to the shop being in the "wrong" Division, I consider this week's review of Jimmy John's Gourmet Sandwiches to be the half way point. For some reason I was dreading a visit to the National Chain Over 1000 Locations Division, but sometimes it's nice to be wrong.

Tuesday, March 22, 2011

Sub'r Bowl Review: Lenny's Sub Shop

This week's Sub'r Bowl review is for Lenny's Sub Shop, which is actually in the same Division that we hit two weeks ago. We were supposed to be visiting a shop in the "National Chain Over 1000 Locations" Division, but this was actually my fault. I mistakenly thought Lenny's was in that division (and I couldn't be more wrong: only about 200 locations in 20 states), but in the grand scheme of things it's not really that important, and we had a good lunch.

Tuesday, March 15, 2011

Sub'r Bowl Review: Florio's Pizza

For the second round in the Pizza Shops Division of the Sub'r Bowl we hit Florio's Pizza. I'm a fan of their New York style pizza, but I'd never had any of their subs before. Greg had been going on since the beginning of the Sub'r Bowl about how he wanted to try Florio's, not only because he loves the pizza, but also because he had heard the subs were good. Well, he finally got his wish.

Monday, March 14, 2011

Splitting a Path to a list in Python

At work today I needed to split a file path into it's various directory and subdirectory components using Python. While the result of os.path.split can be inversed with os.path.join, they don't do what you might intuitively think they do. A cursory search on Google, while turning up various and sometimes overbuilt solutions, didn't give me a quick and dirty function to accomplish this task, so I wrote one myself.

Tuesday, March 8, 2011

Sub'r Bowl Review: Firehouse Subs

The next visit in the Sub'r Bowl is Firehouse Subs. It's the second shop we've hit in the National Chain, Under 1000 Locations Division. I had never been to one of these before, although I was aware of them, so I was interested to see what they had to offer.

Tuesday, March 1, 2011

Sub'r Bowl Review: Boston Subworks

The naysayers of our group didn't think it would last 2 weeks, but this week marks the beginning of round 2 of the Sub'r Bowl, bringing us back to Division C, local sandwich shops. We decided on Boston Subworks, my favorite place in town for a cheese steak sandwich.