Categories
Life Photos

the state of things (june 16, 2013)

On a scale of one to bear...I am bear.
On a scale of one to bear…I am bear.

hi internet

Oh man…totally sucked at keeping this thing up to date 🙁 Have a picture of me in the Muir Woods posing like a wooden bear!

Things have been going well out here in SF. I have bunch of pictures and videos uploaded to the blog and will try to start putting them up. Yelp‘s been Yelping real good. I’ve helped build a few things but there are a bunch of teams pushing out really cool enhancements all the time.

A couple of other random things:

  • After abondoning Trisquel 5.5 for a while for Ubuntu I’ve been using Trisquel 6.0 and have been very happy with the release. Give it a shot if you’re looking for a fully free distrubtion.
  • I saw this project for hardware bitcoin wallets on hacker news and got interested in bitcoin again. It’s a little weird creating an account on a site that used to be a Magic the Gathering card exchange but I think it’ll be really fun to try out.
  • My think penguin laptop is still running strong…but I am really jealous of this new high-res laptop they’re putting out now. Wants.

have a great week!

Categories
Programming

python list comprehensions, with surprise!

Wasn’t expecting this behavior, but variables used in list comprehensions and with blocks continue to be in scope…

# variables introduced in list comprehensions continue to exist in scope
[a_var for a_var in range(10)]

print "Hey, what's a_var?", a_var

# similar thing happens when using "with"
with open("some_file.txt") as a_file:
    pass

print "Hey, what's a_file?", a_file
python test.py
Hey, what's a_var? 9
Hey, what's a_file? <closed file 'some_file.txt', mode 'r' at 0xb747cee8>
Categories
Programming

git patch mode

A friend at work sent these videos around. If you use git and have ever made more than one feature change in a file between commits, patch mode can help!

http://www.youtube.com/watch?v=Wl0NfWYrvlY

http://www.youtube.com/watch?v=1tqMjJeyKpw