Archive for October, 2011

15
Oct
11

so, a failure


So, my first attempt at V-Diet was a failure. Not completely, I know now that I can handle it. From Monday I start attempt #2. This time, completely by the book.

12
Oct
11

custom using the with statement


import os

class MyTempDir(object):
	def __init__(self,to_dir):
		self.to_dir = to_dir
		self.original_dir = os.path.abspath(os.getcwd())

	def __enter__(self):
		os.chdir(self.to_dir)
		return self.to_dir

	def __exit__(self, type, value, traceback):
		os.chdir(self.original_dir)

if __name__ == "__main__":
	with MyTempDir("c:\\") as value:
		print "Inside %s Confirmation %s" % (value,os.getcwd())

03
Oct
11

bitbucket with unlimited git support


BitBucket now allows for unlimited public & private repositories with Git! Check it out here. It’s amazing!

02
Oct
11

v-diet day 5


It is an easy enough day. Probably I still have some carbs in my system from yesterday’s meal. No headaches, no pain. Energy level is good.
Weight:77.1

02
Oct
11

v-diet day 4


I missed the taste of food, and I decided to make today my meal day. Unfortunately, I went for junk food, and it made me feel really bad. Oh well, next time I will go with something healthier.




Blog Stats

  • 216,805 hits