Seattle Weather

The sun has broken through the never-ending cloud cover here in Seattle, and it’s about time. We’ve been without a spring this year — I can count between two and four days of sunshine since February. Fortunately for me I’ve been attending class and coding Ruby most of the day, only spending time outside on my cycle commute. Foreigners think of Seattle as some strange rain ecosystem, where no one goes outside September through June. At least this is what my family and I thought when I was deciding where to go to school. When I travel to other parts of the world and mention that I go to school in Seattle, the typical response is, “Oh yeah, it rains up there a lot, huh?” From foreigner to foreigner, I thought I would describe Seattle’s weather for the four years I’ve been here.

Freshman Year: 2004-2005
This was a super mild winter. There was a huge drought in the northwest, making for dry, clear, insanely cold days. I would say that we got only a handful of rain days that year, with an average temperature in the low 40s. It wasn’t so bad; I skateboarded a lot. However, the snowboarding was awful. I recall that fall and spring were both pretty typical. Typical meaning mostly overcast and misty with spots of sun and warmth.

Sophomore Year: 2005-2006
This one was a doozy. We had a record-tying 33 days of rain in a row, and most of those days were filled with moderate to heavy rainfall. It was miserable, but awesome at the same time. I had the best snowboarding winter of my life this year. Again, I don’t really recall that fall and spring, but I think they were both typical.


Shi Shi Beach backpack trip.


Another Shi Shi shot.

Junior Year: 2006-2007
This one was a doozy as well. We had a record-breaking seven (I think?) inches of rain in a single day, and it almost happened twice. We also had a ridiculous fall, which consisted of rain, cold, and early snowfall. I think we had a total of six or seven snow days this year. Spring, however, was really nice. The sunshine came early and stayed for a while. I remember having two full weeks of warm sun. Insane!


Three Fingers hike.


Snow in Seattle.


Hike up Rainer, snowboard down.

Senior Year: 2007-2008
First let me talk about the summer of 2008. I spent this summer in Seattle working at Redfin, and I’ve never been more disappointed with the weather. Everyone agrees that the weather sucks in Seattle during the winter, but summers are apparently beautiful, warm, and clear. Let me just tell you that the summer of 2008 was a complete let down. I think there was a total of 2 weeks of sun and warmth, and the rest was filled with drizzles, clouds, mist, fog, and general misery.

The bad summer blended right in to a bad fall and an even worse winter. We had probably around seven or eight snow days and plenty of freezing weather and precipitation. I remember getting on my cycle at 8:00am en route for work and thinking I was going to freeze to death. The snow-covered mountains were insane, and I got a ton of awesome snowboard days in. So what about the spring? We didn’t have a spring. With snow in late April, sub 50 degree temperatures, and plenty of rain and wind, winter spilled right over all of spring. I’m hoping that today’s patch of sun will be the start of a trend, but I wouldn’t be surprised if it wasn’t


Alpaca farm on San Juan Island.

Conclusions
Is the weather in Seattle bad? Absolutely. Is the weather in Seattle bad even during the summer? In my experience, yes, but everyone says summer is great. I generally don’t mind bad weather, because it means better snowboarding. However, commuting to work and school either by foot or cycle sucks in the rain, and each consecutive day of miserable commutes adds to more and more frustration. The bad weather has definitely limited me by keeping me inside more often than I’d like to be. I wasn’t able to surf or skateboard that much this summer, and my winter commutes were sometimes canceled because of snow and ice. However, being inside more often has its perks. I’ve cranked out a ton of personal projects, and I’ve achieved a good academic status. The weather is not one of the things I will miss about Seattle, but there is plenty else to miss.

Ruby on Rails: Building a Reverse Index for Search

Wow.  I’ve never been so impressed with a framework.  Take a look at this guide to create a reverse index for search in Ruby on Rails.  Here’s the basic idea:

  1. Install a gem
  2. Install a plugin
  3. Specify the fields for each model that should be indexed
  4. Call the find_by_contents method

Insane!  I used Lucene with Timedex, and I can’t even begin to explain how much more work that was.

So rad!

The Power of Trackbacks

After not having checked my Google Analytics for a while, and after getting very tired of my statistics homework, I decided to take a peek and see how my blog traffic was doing.  I wrote a post a few days back about my second impression of Ruby on Rails; in that post I linked to a TechCrunch post that, at that time, had been recently published.  It turns out that the TechCrunch article that I linked to turned out to be a hot post, and my trackback turned out to be the first of many.  TechCrunch referred 10x the amount of people that normally visit my blog, and the referrals are still coming in.

The moral of the story is that trackbacks may not help SEO at all, but it’s definitely a good way of getting referrals.  I just wish my post was slightly more interesting.  Maybe then my subscriber count would have increased more (it didn’t really increase much at all).

Mmmmm. DVDs.

I arrived in Los Angeles earlier this evening to spend the weekend with my family.  I won’t get a chance to see them that much this summer seeing as how I’m going to Europe four days after school ends, and I’m going to China two weeks after I arrive from Europe.  It’s always great seeing my family, and it’ll for sure be time well spent.  This’ll also give me an awesome opportunity to put my family’s insane DVD collection onto my newly purchases iPod classic.  I don’t think I’ll be able to fit all 300+ DVDs, but I’ve chosen 19 of my favorites including all three Lord of the Rings extended editions, all three Austin Powers, Gladiator, etc.  Mmmmmm.

Google Reader Shared Items On Your Blog

You may have have noticed that my sidebar now has a section for items that I’ve recently shared in Google Reader.  I did this using the following two WordPress plugins:

Once you’ve downloaded these plugins to the /wp-content/plugins directory, follow these steps:

  1. Unzip and Activate these plugins
  2. Create a writable cache folder in /wp-content/cache (this problem is solved if you use WP-Cache)
  3. Login to Google Reader
  4. Click “Your Shared Items”
  5. Read through the text on the right side of the screen and look for a “a feed” link that is a link to your recently shared items in Reader
  6. Follow the SimplePie WordPress Plugin usage instructions to learn what PHP code you’re interested in.  It’ll look something like echo SimplePieWP(“your_feed_url”);
  7. Create a new template to customize the look of the feed.  This is the template that I’m using:

sh: /usr/bin/states: No such file or directory

I hope this helps!  Shoot me a comment if you run into any problems.

Another U-District Mishap

I just got this email about a robbery in the U-District:

On Thursday, May 1, 2008, shortly before 1:00 a.m., a female UW student was walking alone in the W-10 parking lot behind the Terry-Lander residence halls in west campus when she was approached from behind and knocked to the ground by two young men, one of whom grabbed her purse. The student was not injured. Both men immediately fled and entered a nearby waiting vehicle.  Two UWPD officers on foot patrol in the vicinity were alerted by the victim’s shouts for help.  The officers observed the suspects fleeing in their car.  They broadcast over their radio information to other UWPD officers in vehicles who stopped the car and arrested all three occupants for robbery.  The suspects were subsequently booked into the King County Jail and the Youth Services Center on investigation of second degree robbery.

The suspects in this crime are also being investigated as having been involved in similar crimes that occurred as recently as a week ago in the University District.

In order to decrease the chances of becoming a victim of crime, you should:

*  Walk with friends, especially late at night or early morning hours
*  Be aware of your environment and alert for possible danger.
*  Remove yourself from potentially dangerous situations as soon as possible.
*  Call 911 to report suspicious activity or persons to the police.
*  Call Husky NightWalk: 206-685-WALK (9255) for a security guard escort to various locations on campus and within a one-mile radius off campus. The hours of operation for these uniformed guards are 6:00pm-2:00am, 7 days week.

Notice the last bullet above – the Husky NightWalk.  I had no idea that this service existed!  I wonder if they just set it up or if they’ve just done a poor job advertising it?  I think the idea of having uniformed guards walking students around is a step in the right direction, but it totally won’t scale.  The UW Police just flat out need to clean up the U-District.  Deploy more nightly patrols, both on bike and in car, focus less on busting college students for partying and drinking, and continue to provide good services like the Husky NightWalk.  Good services will be in much lower demand with a cleaner U-District, but they’ll still be available for worrisome students.

Ruby on Rails: Second Impression

My second impression of Ruby on Rails is again good. I’ve began to dig into it quite a bit with my developing world project. I admit that I’m still not an expert, but I do have a few things to note:

Pros
As everyone will tell you, Rails does a lot for you. The amount of code you have to write is extremely small, and the code that you typically write is more interesting relative to most web code. What I mean is that Rails code is minimized in areas such as form processing or database access, so most of your time is spent coding business logic and views.

Rails is insanely well supported. There is a plugin or gem to do almost anything you want, and the support is wonderful. Googling for Rails information always turns up good results, and the IDEs available, for example Aptana, are super powerful.

Cons
You’ll try to do everything the “Rails way.” Rails allows you to do things by hand, for example manually include a style sheet or manually write an AJAX widget. However, Rails also offers tools and techniques to make things such as including style sheets and writing AJAX widgets easier and faster. This is somewhat of a catch-22, though, because I find myself spending too much time learning the “Rail way.” I suppose this is the same with any framework – in order to use it to its full potential, there is usually a large learning curve.

Another con that I have not noticed first hand is performance. I just read an article about Ruby on Rails performance problems, which describes how Twitter is moving away from Ruby on Rails for performance reasons. While reading through that article I noticed a comment about a particular PHP rapid application framework called CakePHP. I’m going to look into Cake, because it might be a pretty cool alternative to Rails.

More Rails updates coming soon!

Update: Open has a good post about Ruby on Rails scalability enhancements. Another good read.

Update2: ReadWriteWeb has an awesome article on website scalability, in particular about Twitter scalability.