Archive for January, 2007

C25K: Week 1 Day 2

The second day of the C25K is done. I am running with a partner when we can find days that match up. Today was the first time it worked out. Running with someone else who is in better shape pushed me to run a little harder than I did yesterday. Overall not bad, but I am not ready to run that fast yet :)

Next time out is either Thursday or Friday depending on work.

I survived

Day one is in the done column. I set out around 9. I completed the day one circuit of ‘5 Minute brisk walk -> 60 seconds of jogging -> 90 seconds of walking. The 60/90 you repeat till 20 minutes are up, so 6 reps.

Overall it wasn’t bad. I am tired. I do feel like I just used muscles I didn’t know I had, and it was COLD…but I had it in my head I was going to die out there today…so I am feeling pretty good about still walking upright and assimilating nutrients.

Computers

If anyone would like old computers, from parts to whole machines, and you live near me, let me know. I have a ton of crap to get rid of.

Some items of interest to the hobbist:

  • TRS 80 (works)
  • TI 99/4A (works)
  • Amiga 2000HD (works)

I think there is a Vic20 up there, though I’ll have to confirm that. In addition there are some small form factor celerons, and various towers in various states of completeness (most are PIII’s or Smelerons).

Let me know, otherwise the next time computer clean up comes to my town, they are going.

Understanding message passing in Ruby

I saw a link on reddit comparing Python and Ruby. The article, surprisingly, wasn’t an infantile fan boy tirade. And it solidified some of my Ruby reading. One of the things I don’t always “read” when I look at Ruby is the concept of message passing. However the following snippet, I think, makes it very real.


class Foo

def something
puts "Hello"
end

end

f = Foo.new
f.send('something')
f.something

Both, ‘.send()’ and ‘.method’ result in the same thing.

In my mind, calling a method on an object is still pretty rooted in the Java idea that we inspect the object for something, whereas in Ruby we are passing a message to the object. The difference is subtle, but interesting.

C25K

Ok, here it is…this will force me into action. On Monday, I am going to start trying to get back into shape. I am going to follow this:

http://www.coolrunning.com/engine/2/2_3/181.shtml

I’ll blog my way through it, and I will put it in the blather category so you can skip it if you want.

Wish me luck!

**Edit I changed the category to running later Edit**

irb

On Ubuntu, edgy, irb doesn’t have tab completion out of the box. Create a file called ~/.irbrc and put in it:


require 'irb/completion'

Next time you use irb you can hit tab twice to see what methods are available on an object or what commands start with a letter.


irb(main):004:0> require 'hpricot'
irb(main):004:0> require 'open-uri'
irb(main):004:0> doc = Hpricot(open('http://some.url.com/'))
irb(main):004:0> doc.[tab][tab]
Display all 121 possibilities? (y or n)
doc.filter[:contains]
doc.find_element
doc.pretty_print_instance_variables
doc.__id__
doc.filter[:empty]
doc.freeze
...

**EDIT** typo, thanks Melissa! **EDIT**

Many of you may already be aware

There is a new release of Prototype. Looks like they are touting the docs this release. I’ll have to check them out.

Vegetarian

I just want to put this out there. There was a story on reddit today about being vegetarian, and it’s overall effect on global warming. Most of the comments on reddit from vegetarians seemed apologetic in nature. Like “I am sorry I am a vegetarian, but” .

Look it. Screw that. I am a vegetarian, have been for the last 15 years. I don’t owe you an explanation. Next time you sit down to dinner with someone who doesn’t eat meat, don’t ask them why they don’t eat meat. It’s none of your business. If you want to eat dead animals and be a dick about it, that’s your baggage… don’t ask me to defend myself.

Predictions

2008 presidential election…I want to seal my prediction here.

John Edwards wins, with Barak Obama as vice president.

SD Card

For a geek, I have surprising little experience with digital cameras. I had bought Erika a Canon Poweshot A620 for her birthday, and needed to borrow it to take pictures of my ailing house to show potential fixers of those ailments.

I know when I was running gentoo I was able, after some tweaking, to get pics from the camera using gphoto2. However, on Ubuntu gphoto2 wasn’t seeing it. Then I remembered that my laptop has some crazy 12 in 1 card reader that I have never used. I popped in the SD Card, and bang, there it was mounted. I did a little drag and drop and the pics were saved.

Neato. I need to get my own camera one of these days.

Next Page »