Monday, August 3, 2009

C25K week 4


Success! Week 4 is well underway with two runs down. First session of week 4 (yesterday) was pretty hellish. I think I might've stopped running on the way back if it weren't for a cyclist suddenly appearing out of nowhere and scaring the bejeezus out of me. That got me enough adrenaline to keep going.

Second session (today) was actually really fun and not nearly as taxing as yesterday. No scary cyclists either. I think I finally know what a second wind feels like. Feels pretty good. Only one more session to go this week, but at this rate, I'm thinking of just going for it every day I can, taking a break on the weekend. More later.

Thursday, July 30, 2009

AND now for something completely different

Haven't touched python in quite some time now. Maybe I'll return to it sometime later. Just got my big toe stuck under the wheel of my chair. Stuck like a chinese fingertrap. Ouch.

Anyway;

I started running 3 weeks ago in the C25K plan (couch to 5k). Plan can be found at www.c25k.com . Currently on my week 3 break, and ready to start week 4 on Sunday after 2 days of rest. Week 3 was the most arduous yet (naturally), given the hilly terrain around my house and the requirement of jogging for 3 minute stretches. 3 whole minutes. Hoo-boy I am out of shape.

Also, I've been sporting Vibram Fivefingers KSO "shoes" for the entirety of the program, and the adjustments of barefoot running technique are really starting to strain my calves and achilles tendons. Got my first calf cramp two days ago, but today was better; the muscles are building to accommodate. The first couple weeks I had a bit of a problem with forefoot pain since the balls of my feet are unused to hitting the asphalt; the pain has since disappeared for the most part now that I'm used to running in this manner. For those of you unfamiliar with Vibram Fivefingers KSO's, here's a picture:
They are really fantastic shoes and I cannot recommend them enough. For any activity. Except ballroom dancing.

I'm hesitantly looking forward to week 4's runs:

Brisk five-minute warmup walk, then:
  • Jog 1/4 mile (or 3 minutes)
  • Walk 1/8 mile (or 90 seconds)
  • Jog 1/2 mile (or 5 minutes)
  • Walk 1/4 mile (or 2-1/2 minutes)
  • Jog 1/4 mile (or 3 minutes)
  • Walk 1/8 mile (or 90 seconds)
  • Jog 1/2 mile (or 5 minutes)
I'll actually be jogging for a somewhat significant distance in my estimation, since I run by time rather than distance (and I jog quite a bit faster than 10 min. per mile.) However, it's times like these that I wish the first quarter mile wasn't a 7.5 % grade uphill. (approx. 125 feet in total elevation.) I guess it adds to a good workout though, so I can't complain about the benefits.

Will post updates later on.

Saturday, June 6, 2009

snakes

Started learning Python today. Will post shitty programs as evidence of progress.

calculator.py

loop = 1
choice = 0
print "Welcome to MY calculator! Version dumb.butt"

while loop == 1:
print""
print "What would you like to do?"
print " "
print "1 - add two numbers"
print "2 - subtract two numbers"
print "3 - multiply two numbers"
print "4 - divide two numbers"
print "5 - exponent two numbers"
print "6 - quit Rob's calculator"
print " "
choice = input("Select your Choice:")

if choice == 1:
add1 = input("first number: ")
add2 =input("second number: ")
sum = add1 + add2
print "the sum is", sum

elif choice == 2:
sub1 = input("first number: ")
sub2 = input("second number: ")
diff = sub1 - sub2
print "the difference is: ", diff

elif choice == 3:
mult1 = input ("first number: ")
mult2 = input ("second number: ")
product = mult1 * mult2
print "the product is: ", product

elif choice == 4:
print "SORRY, I FORGOT HOW TO DO DIVISION."

elif choice == 5:
print "what's an exponent???"

elif choice == 6:
loop = 2
print "thanks for using this calculator."

else:
print "What? I don't think I heard you right."

AND

calculator2.py (not a calculator obviously)

a = 1
phone = {}


phone['me'] = 1987654321
phone['you'] = 1234567890
phone['him'] = 1234543210
phone['her'] = 3141592653

def menu():
print ""
print "What would you like to do?"
print ""
print "1) View all names"
print "2) Find a phone number"
print "3) Create a new entry"
print "4) Quit"
print ""
choice = input("Select an option: ")
return choice

def entername():
name = raw_input ("Enter name: ")
return name

def enterage():
age = raw_input ("Enter age: ")
return age

def sortnames(names):
names.sort()
print names

def cont():
b = 0
while b == 0:
print ""
print "Select another option?"
print "1 - Yes"
print "2 - No"
dude = input("?")

if dude == 1:
b = 1
return 1
elif dude == 2:
b = 1
return 2
else:
b = 0



print "Welcome to MMYYY Phonebook version 1.uhh"

while a == 1:
print ""
choice = menu()
if choice == 1:
names = phone.keys()
names.sort()
print names
a = cont()
elif choice == 2:
try:
print phone[entername()]
except:
print "Name is not in the List"
a = cont()
elif choice == 3:
print "I don't know how to do that yet! SORRY."
a = cont()
elif choice == 4:
print "bye!"
a = 2

THAS IT

Tuesday, June 2, 2009

OP+2

no sheet

OP+1

still farting

OP

farting and it smells really bad