37signals Getting Real Book
David announced that the Getting Real book was now available as a PDF file.
I bought a copy, downloaded it and read it from end to end. It is mostly a compilation of the 37signals blog with supporting quotes and evidence. It is a good read overall, although it did make me envious of how developers at 37signals and other startups are able to work without the overhead that I have to face here at Sun. I'm not really the target audience though since the book is better targetted to small teams and startups working on products.
I certainly recommend it.
Update: The 37signals team released a refreshed version of the PDF in response to comments from people who bought the book. It is certainly a great example of a company walking the talk.
Ruby on Rails Tutorial on apple.com
Apple has posted a tutorial about Ruby on Rails on their web site. It does highlight Textmate and explains why Mac OS X is such a great platform to develop RoR applications.
Of course, you knew that already if you played with RoR on a Mac...
Better-than-Google activity indicators with Rails
The next time that you use your GMail account, look on the upper-right corner of the screen when you go from email to email. You'll notice that a red box shows up containing the word "Loading...". This is a very helpful indicator that GMail is in the process of doing something.
Mir.aculo.us has a great article on how to achieve a similar effect using an animated GIF image. You can achieve an even nicer effect by adding partials and Script.aculo.us effects.
First, make sure that the javascripts files are loaded by adding this to the head of your page:
1
| |
This will force the default sets of javascripts files to load. These do include effects.js and application.js.
Next, create a file called application.js under public/javascripts if it doesn't already exists. Add this code:
1
2
3
4
5
6
7
8
9
10
11
| |
Then create a partial called _loading.rhtml:
1
2
3
| |
I also added the following CSS to my application's stylesheet:
1
2
3
4
5
6
7
8
| |
I finally included the partial at the bottom of my layout:
1
| |
From that point on, I got a "loading" indicator each time I clicked on a link created through the link_to_remote helper method. No need to go ahead and add the effects to each invocations.
-- Fred
First Boulder-Denver Ruby Enthusiasts Meeting
The Boulder-Denver Ruby Group had its first meet and greet last night at the Southern Sun Pub and Grill in South Boulder. The attendance was much higher than was expected, and the crowd quite noisy.
The group is going to start meeting in a more regular venue next month (see this message in archives). It's certainly going to be an interesting group to interact with. I am glad that such a group is forming in the Denver area. I read many blog entries from people in Seattle and Portland boasting about their meetings.
A big theme was the Waterfall 2006 conference being planned for Niagara falls. Looks like I might have to skip that one though ;).
-- Fred
Geocoding, REXML and the Missing Method
The first step is to find (and URL encode) an address. For this demonstration, we will be using "Mission & Valencia Sts, San Francisco CA" as the address. You will see the following XML document if you point a browser at http://rpc.geocoder.us/service/rest?address=Mission+%26+Valencia+Sts%2C+San+Francisco+CA:
1
2
3
4
5
6
7
| |
This is technically an RDF document. It can still be parsed as a regular XML document though. Let's define a Location class:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| |
From there, you can create a Location object and get the coordinates:
1
2
3
| |
From there, you can use the location in a mapping application (such as a Google Maps mashup for example...)
