Archive for the 'Web Dev' Category

ProRubyConf08 Wrap Up

This past week I attended the Voices That Matter Professional Ruby Conference in Boston with three of my co-workers from Sports Technologies. I learned a lot from all of the speakers and it was great to meet other Rubyists and hear about the types of things they are working on.

ActsAsFlinn and Myself talking to the guys from ThoughtBot
ActsAsFlinn and Myself talking to the guys from ThoughtBot

Some of the best things I took away from the conference were to focus on testing, and push to improve the process of the product cycle where I work. I also got a lot out of watching the guys from ThoughtBot talk about refactoring code. They had a lot of good tips.

Nick Quaranto (pictured on the left in the photo above) did a great job live blogging the conference and took notes with all the sessions.

Matt Bauer did a talk about Berkeley DB and used a cycling related application he is working on called Pedal Brain for some of the examples. I talked to him briefly about it, and I am excited to see what comes of it. Hopefully I can help beta test!

Exploring Yahoo Open Strategy: Y!OS

Today Yahoo opened up it’s new open framework to 3rd party developers. There seems like there could be some great possibilities to building application and distributing content through Yahoo platform. This video is a good introduction.

Five Fun Twitter Mashups

I have been using Twitter a little more recently and I have seen some fun Twitter mashups. I plan to use the Twitter API to send status messages of user activity from some of the web site I work on, and if you are considering creating a Twitter mashup using Ruby on Rails, you will want to check out Twitter4r. It is a Ruby library for the Twitter REST API that really simplifies creating a Twitter app in Rails.

Here are some fun applications that use the Twitter API:

Foamee: This is one of the originals created by Simplebits. If a friend does you a favor you can let them know you owe them a beer or coffee.

Twootball: This is a new app that combines Twitter and a love for the NFL. Tweet while you are watching an NFL game and include the name of a team in your message and it will show up on Twootball.

GoodBad.me: This is a new app created for the Rails Rumble competition. Follow @goodbadme, then if you do something good or bad include #goodme or #badme in your tweet.

Twitter Grader: Put in your Twitter username, and Grader will give you a score based on the power of your Twitter profile.

TwitterVision: This is another oldie but goodie. This is a mashup of Twitter and Google maps so you can see where in the world people are posting their tweets.

Facebook Connect and OpenId

I’ve been doing a lot of research on Facebook Connect and OpenId recently. Facebook Connect has created a lot of buzz. I couldn’t always see the business reason for stand alone web sites to put a priority on building Facebook apps, but Facebook connect seems like the perfect solution for web sites that want to take advantage of Facebook’s social graph. Facebook connect allows users to sign into another site with their Facebook account, invite their friends from Facebook, and publish their activity back to their Facebook feed. Today I read this great summary of the current state of Facebook Connect and OpenId from TechCrunch: Facebook Connect and OpenID Relationship Status: “It’s Complicated”. I’m sure I’ll be doing more development that involves Facebook Connect or OpenID in the near future.

Dan Patrick Weekly Challenge

This week I launched the Dan Patrick Weekly Challenge pick’em game on FanNation.com. It is a similar game to others I have developed recently. One new thing is groups that are specific to the game (instead of FanNation groups) and the ability for users to join multiple groups.

Dan Patrick Weekly Challenge

The interface is laid out using absolute positioning, and uses javascript to set hidden form fields when a user clicks on the option they pick to win, an then updates the css class to set the background image on the element to indicate which option is selected. With this application I built some admin pages where the producer of the Dan Patrick show can enter the matchups and set the winners. The designer at SI cuts logos or images to go with each matchup, so there are input fields for the image URLs as well.

This is a pretty simple game that could be reskinned to let users pick any type of matchups. Our Sports Technologies web site has been updated recently.

Bracket Challenge Project

My latest project that I devoped for FanNation / SI.com is the Seth Davis Bracket Challenge for the NCAA Tournament. To date this project has probably been my most complex Ruby on Rails application. I was also really happy with how the interface for picking your bracket turned out. It is all html, css, and javascript based (as opposed to ESPN’s Flash interface for picking teams).

I used a sliding window effect where a div with smaller dimensions set to overflow hidden wrap a div with a greater height and width. After the user saves a region via Ajax, I used the scriptaculous Effect.Move function to animate the screen moving to the next region.

Scrolling SDC Screenshot

Some of the challenges I was faced in this application included clearing out downstream picks if you changed a team in a earlier round that you had advancing farther down the bracket, and displaying pick percentages for each team at each round as you are making picks.

To solve the first issue I set a javacript array that included all the match ids and match position (top or bottom) that were downstream of every match, and when a user clicks a team to select the pick I checked if the opponent in that match was already selected in a position down the bracket and cleared it out.

To dynamically display the pick percentages as you move a team, I printed out a javascript array (actually a JSON object) that listed every team id, and an hash of each percentage ar each round when the page is loaded. Then when the user clickes on a team to advance it, I cloned the innerHTML of the div they were selecting and replaced the innerHTML of the percentage div with the percentage of that team for the next round.

After all the work I put into this, it’s too bad that the interface is only viewable for four days to the users until the game locks before the tournament begins. Hopefully we will make use of the code for next year’s bracket or some other fantasy games we build in the future.

I’m on Rails

For a long time now I have wanted to rebuild BikeRide.com from the ground up. It is a site I started a long time ago, and I haven’t really given it the attention it deserves. Since I wanted to make a fresh start, I also thought it would be a great time to learn Ruby on Rails. I looked into some other options like the Symfony framework for PHP, or possibly building a site with Drupal, but in the end I chose Rails.

My background has been in using classic ASP, and at ESPN / Disney we use a proprietary scripting language called Tea. So, whether I chose a PHP framework, or Ruby on Rails there would be a learning curve getting used to the syntax.

I followed Dan Benjamin’s steps on setting up a Ruby on Rails development environment on OS X. It was a big help in getting things working. I had a little trouble connecting to mySQL, but that was because I tried to create a database name with an illegal chatacter in the name. Once I figure that out I was good to go.

The first thing I did was install the plugin for Acts as Authenticated which gave me a big head start with setting up a user registration and authentication system.

I am just getting started and I have a lot to learn, but so far I have joined the Ruby on Rails Google Group, and bought the Agile Web Development with Rails book

Some things I have planned for BikeRide.com include a much better events calendar where users will be able up add and manage their own events. Users will be able to check events that they plan to participate in. Sort of similar to Upcoming.org, but just for cycling events.

I plan to move all bike related links to a database backed system where users can suggest new links, and possibly rate, or mark links as a favorite. Links will be organized with tags instead of the single category designation that is there now.

Those are just two of the things I have planned. I have more ideas as well, but I don’t want to give too much away, and I’d first like to get the current main features of events and links, then add to it from there.

Digg Releases API

Digg.com has just realeased an API (Application Programming Interface) for web sites or application developers who would like to use their data. I can already think of some good uses for their data. Things like displaying any stories from your site that have been dugg can now be done through the API.

I’m on Twitter

I signed up for a Twitter account. If you don’t know what Twitter is, it is the latest, greatest, social/Web 2.0 web application. The idea is to post what you are doing. You can add friends so you can see what your friends are doing. My username is bikeride. You can send or get updates from a mobile device or IM. I’d like to use the API to automatically update Twitter when I publish a blog post, create a new flickr photoset, bookmark something with del.icio.us, or share an item in google reader, or add a new training log entry. Maybe I’ll get to it.

Google Reader vs. Bloglines

I have been a big fan of Bloglines. Over the past year I find myself consuming most of my web content with feeds through Bloglines. I find myself visiting sites less if they don’t have an RSS feed. CyclingNews.com is one of those sites. Although they have probably the most in depth cycling coverage, they don’t have an RSS feed, so it make it inconvenient to get their content when I can quickly go through feeds with a newe aggregator like Blogllines. VeloNews.com has an RSS feed, but it isn’t formatted correctly and they don’t have rel tags on their site to make the RSS feeds automatically discoverable by the browser.

Google just released a new version of Google Reader. After looking at a video describing some of the features I was sold to switch from Bloglines. For me the ability to share is becoming very important with social web applications becoming so popular. The feature that got me to switch was the ablility to mark articles as shared, and let other people see or subscribe to a feed of items that I find interesting.

It was easy to export my feed subscribtions from Bloglines to a standard opml file and import those into Google Reader. If you use Gmail, the Google Reader UI will be familiar.




About Brent

I have been a Web Developer since the early '90s working on some of the highest traffic sites on the internet such as MSN.com and ESPN.com. Since 2007 I have been using Ruby on Rails while working for Sports Technologies, a small internet company in Connecticut, developing features for FanNation.com and Fantasy Sports applications for Sports Illustrated.

I am interested in all things related to Social Media, User Experience, and creating great Web Applications.

I am a Cycling enthusiast who raced competitively for many years, and still try to get out and ride as much as I can. I created the site BikeRide.com and have developed some other cycling related sites in the past.

I am a husband, and the father of two girls. I grew up in western Washington, but now live in Connecticut.