Twitter: A Case Study for Bad Software Development
I read (yet) another post about Twitter’s performance problems, but this one unlike others shined light onto the technical difficulties that Twitter is facing. From the post it appears as though Twitter was created too rapidly with an underemphasis on performance. It’s very easy for software developers to be so interested in cranking out features that they disregard performance altogether. I think Twitter is one of these cases. Read the post for more details, but basically they were naive when developing their application and didn’t dig deep into performance bottlenecks and limitations.
Let this be a lesson that performance must be a factor when developing an application. Consider what will happen to your code if you experience an insane amount of usage, and understand the performance bottlenecks that you’ll have. Google is a good counterexample to Twitter. Larry and Sergey knew how difficult it would be to create a fast index of the internet, so they developed tools to deal with large data. I’ll bet the developers at Twitter are running around like maniacs, profiling, testing, and screaming profanities. Had they taken performance into account earlier they could have avoided their recent downtime altogether or at least been more prepared to fix the problem when it occurred.
No commentsFriends Worth Fighting For
One of these guys had chemotherapy for his cancer and lost his hair. All the rest are his friends.
Seeing this picture on Facebook made me so happy that I decided to share it. It turns out that one of these guys is my best friend, and this photo reminds me how grateful I am to have great friends and family.
“A friend is someone who is there for you when he’d rather be anywhere else.” - Len Wein
5 commentsThe Google Crawler is Fast
It took the Google crawler all of 15 minutes to index my last post about PowerEdge Ubuntu RAID monitoring. That is utterly ridiculous. It boggles my mind that they can so quickly index, compute PageRank, and cache everything in that little amount of time. Perhaps they don’t do all of that right away. Maybe they assume a fresh post has a high PageRank. Maybe they really do compute the PageRank on the fly. Regardless, I’m totally amazed.
3 commentsDell PowerEdge 1950 + Ubuntu 6.10 Edgy RAID Monitoring
I finally setup a good RAID monitor on my machine; I’ll be able to sleep better at night now. I thought I should share what I did.
- Install omreport for general hardware reporting. Find comprehensive instructions here
- Test omreport by running omreport storage controller controller=0
- You’re mostly interested in the controller, virtual (RAID) disk, and physical disks
- Make sure you have a mail client setup like sendmail
- Setup a cron job by creating a file in /etc/cron.daily that contains one line: omreport storage controller controller=0 | mutt -s “RAID Monitoring Notification” youremail@domain.com
- Make the file executable with sudo chmod a+x <file>
- Start receiving a daily email with the omreport output
Here’s some information about my machine:
- PERC5/i SATA RAID1 controller
- 2 x 250GB SATA drives
- 2 x Xeon processors
- Ubuntu 6.10 (Edgy)
I’m pretty happy with this monitor, because it’s simple and quick. Now all I need to do is figure out how to monitor my redundant power supplies. Shoot me a comment with questions. I hope this helps!
1 commentMore Travel Purchases
The travel purchases never end.
- Traveler’s health insurance - $66 for all seven weeks of Europe
- International Student Identity Card - $25
- International Phone and SIM Card - $39 (includes $10 of talk credit)
I’m not even finished yet. In other news, my mom and I sewed an old sheet into a sheet bag for the hostels that don’t have bedding.
Bonus purchase: my team and I won our Google APM scavenger hunt, so I got a $50 gift certificate to the Google Store. I bought a Google bike jersey. Now all I need to buy to make my outfit complete is a nice pair of tight, short bike pants. Mmmmm.
2 commentsBetter Code Syntax Highlighting in WordPress
I’ve written previously about syntax highlighting in WordPress, but I’ve found a better plugin since then. Google’s syntax highlighting plugin for WordPress is much better; and thank god it supports Delphi.
Here’s an example:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Pretty shnazzy, huh? Here are the usage instructions and language support.
I had to make one minor change to one of their CSS files. I changed Styles/SyntaxHighlighter.css such that the .dp-highlighter .bar definition had a smaller left padding. Take a look:
.dp-highlighter .bar {
padding-left: 30px;
}
Enjoy!
No commentsKarma Prevails - A Tale of Passing
I’ve complained before about cycling passing etiquette. I was stopped at a red light on my morning commute earlier today, when just as the light turned green a dude in a super fancy, multi-thousand-dollar bike whizzed by me. This particular light was at the base of a long, steep hill, and I was determined to catch up with him. He was hauling, but I managed to pass him and his insane bike. I kept a 16mph pace climbing Dexter from the Fremont bridge, and I was hammered when I got to the top. He passed me on the gradual downhill leading up to downtown, but before the commute was over I had my vengeance. Just before my turn onto 2nd Ave., I sprinted and got ahead of him. BOOM!
Karma prevails, at least in this case. I’ve been passed plenty a time with bad etiquette and not been able to catch up, but not this time. Vengeance is sweet.
For the record I think it’s fun to complain about this, and I don’t actually get angry when I get passed with bad etiquette.
2 commentsSan Juan Island Cycle
Last weekend my roommate, Matt, and I cycled around San Juan island. I thought I would describe our trip for those of you who might be interested. It was a ton of fun, and I would recommend it everyone.
Drive from Seattle to Anacortes
The trip started with Matt and me leaving Seattle at 6:00am. We arrived in Anacortes at around 7:30am, just in time for the 7:45am ferry. Look here for a complete ferry schedule. The drive was quick and easy.
Ferry from Anacortes to Friday Harbor, San Juan Island
The ferry ride cost us around $14 each — $10 per person and $4 per bike. It was very empty and very pleasant. The ferry weaved through the San Juan islands and stopped at Orcas Island before arriving at Friday Harbor. The ride was about 90 minutes and probably would have been around an hour without the Orcas Island stop.
Cycle around the Island
We started and ended our loop in Friday Harbor. The route we took is mapped here. Google says it’s 25 miles, but I have no way of confirming that. The roads were constantly changing pitch, giving us short amounts of time on downhills and long amounts of time on uphills. The island is generally flat, so each hill was relatively moderate but still challenging. The whole ride took us about three hours, including at least 45 minutes of site seeing, relaxation, and photography. The scenery was totally diverse — we traveled along cliff-side roads, through thick forests, beside farms (including Alpaca farms!), and across small prairies. It was tons of fun!
About half way around the island was a national park and campsite. If I were to do this ride again, I would pack a sleeping back and tarp and spend the night at this campsite. The site is right on the water with a view of Victoria Island, and it was relatively deserted when we stopped to rest.
We ate awesome fish and beef burgers at The Hungry Clam restaurant after our ride in Friday Harbor’s quant downtown. We also took a short stroll around the town, which consisted mostly of souvenir and tourist shops.
Ferry to Anacortes, Drive to Seattle
The trip back to Seattle was more or less the same as the trip up. However, this time our ferry had come from Canada. This meant that we had to go through customs on our way off the boat, which took all of two or three minutes. We didn’t have our passports, and the border patrol officer was content with that.
Conclusions
All in all the trip was awesome, and I’m totally glad I did it. It’s a relatively easy ride, but the scenery and isolation make it worthwhile. I wish I would have camped one night at the national park, but I suppose it was nice to pack light. Actually, come to think of it, it would be pretty challenging to bike around the island twice in a row. Maybe I’ll do that next :).
Thank You, Fake Steve
There’s been a bunch of buzz lately about the relationship between Microsoft and OLPC, and Fake Steve’s post about it is by far the best. All you need to do is read the title, though the rest of the post is pretty classic as well.
While you’re at it you should grab his RSS feed.
3 commentsSeattle 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.
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!

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.












