Guess what I saw today driving in Lakeside…
Kind of hard to see, but yeah it is the Google Street View car. My phone’s camera is pretty bad, this was as high res at it would allow…
Guess what I saw today driving in Lakeside…
Kind of hard to see, but yeah it is the Google Street View car. My phone’s camera is pretty bad, this was as high res at it would allow…
Moved hosts again. Taking it all in house. Yup, this fine blog of mine (and lots of other crap) is now being served off my home brew server sitting behind the TV(also acting as a fileserver). If there is one thing I freaking hate, it is moving a Wordpress install. Something always messes up and, while usually very easy to fix, it is never easy to spot.
I’ve also moved back to Apache2 from Nginx since I’ve got a lil more muscle to go around than with the Slicehost account I had. I’m going to hold on to it (Slicehost account) to see if anything horribly wrong happens. but I think this should be fun.
Alright, DNS is still propagating for yerhot.org and some others. Hopefully it’ll be done in the a.m. I’m hitting the sack.
Lemme know if you have any thoughts.
Why don’t I listen to people? Jen and I just sat through The Happening. Yes, it does suck just as much as every other M Night Shamalama dig dong movie since the Sixth Sense.
How he managed to make Mark Wahlberg and John Leguizamo completely suck beyond belief is beyond me. I’m not even sure why I’m writing this. Guess it was so bad I felt the need to let everyone know.
Yes, Jen and I got some hot rods.. two wheeled hot rods with pedals…
We are now the proud owners of two Specialized bikes. Jen has a Cross Roads and I got a Hard Rock. It’s by far the nicest bike I’ve ever ridden, though both are used and a couple years old and not top of the line by hardcore biker standards.
Anyways, we’ve been riding all over our new neighborhood and I have to say it is really fun. We’ve set a goal of riding (most of) the Munger Trail by the end of the summer. Sweet. Maybe we’ll even buy some of those spandex jump suits to bike around in. :)
Jen’s got the purple-ish one and I have the white one.
It has been a very long, but very fun day. We’re both pretty jet lagged and turning in for the day but some tthings we’ve noticed about the fine citizens of Seattle:
Heres some pictures from the day. Tomorrow I think we are going to go and see Mt. Rainier… more updates to follow.
Two things…
First - Jen and I are taking a trip to Seattle for 7 days starting this Saturday. We’re super pumped.
Second – Over Christmas last year I started on this lil Rails app I was calling duluthrentalreview.com. Pretty obvious what it was. I get so pissed at landlords in this town, and even more pissed at my fellow renters for putting up with the crap quality of said rentals. The problem is this: Landlords in this town do not keep up their rentals because renters do not demand that they are nice and decent and that the landlords keep them up. You get the idea.
Ok, so yeah I started writing this rental review site over christmas, got like halfway though it and just didn’t have time to finish it.. till now. I re-wrote almost all of it, convertging it to REST. I’m gonna try to continue updating it over the next couple days till our trip. Oh, ad the url changed from duluthrentalreview.com to rentalrundown.com… liked the sound of rentalrundown better.
Yesterday we moved into our new apartment. The day was ‘interesting’.
What a day. This morning I can barley move I’m so sore.
Simple Meta Programming in Ruby
Metaprogramming. What a lovely buzz word. I guess I’ve heard it enough and knew what the short definition is. Metaprogramming is code that writes code. I think it is one of those things I just never thought about, even though I had used concepts and even written some before without realizing it until recently.
Here is a short and simple example.
class Something @my_hash = {"foo" => "1234", "bar" => "5678"} def initialize @my_hash.each do |a, b| self.instance_eval do define_method(a.to_s) {b.to_s} end end end endAnd now we can play with it.
Now, what happened here is pretty neat in my opinion. We took our hash, my_hash, and in our initialize method, created two instance methods from its values. define_method is what did all the magic. You need to pass it a proc or, like what I did, just give it a simple block (just the string value from my hash).
Pretty neat, eh?