Archive for March, 2006


Rails 1.1 Follow Up

Wednesday, March 29th, 2006

In the end DreamHost has uninstalled Rails 1.1 and all other dependencies. An odd move if you ask me since it was more work involved than fixing the upgrade. I think the main issue of contention was that Typo (a Ruby blogging program) doesn’t work with 1.1.

Before that I did manage to get all my sites working properly. There are three main ways to do this:

  1. rake gem_freeze
  2. Copy Rails 1.0 to your vendor directory:
    svn export http://dev.rubyonrails.org/svn/rails/tags/rel_1-0-0 rails
    
    Or do it manually as laid out here.
  3. Or insert the appropriate lines from the wiki to specify certain versions of Rails and its components. This requires your host to have older versions of the gems. A few caveats:
    • Make sure you have require ‘rubygems’
    • Make sure the dependencies come before any lines that need them, e.g.:
      ActiveRecord::Base.configurations = File.open("#{RAILS_ROOT}/config/database.yml") { |f| YAML::load(f) }
      
    • Comment out the default require lines for Rails
Also make sure you kill any old ruby processes so the changes can have an affect. To be honest I used a combination of 2 and 3, I’m fairly certain only one made a difference, and I know which one, but since the site is live and is now working, I’m very reluctant to change anything. As for future Rails hosts, my shortlist is:
  1. OCS Solutions
  2. Planet Aragon
  3. and a distant third, TextDrive

I think I’ll go with OCS Solutions, because they seem very serious about Rails, they support lighttp, I couldn’t find any bad press about them and they’re cheap. DreamHost is good for testing Rails apps, but I definitely wouldn’t recommend them for client hosting.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Rails 1.1 Follow Up digg.com digg it!  |  reddit reddit!

Rails 1.1 Pain

Wednesday, March 29th, 2006

DreamHost upgraded to Rails 1.1 last night, which broke my sites. Of course this was just a few hours after I announced them, making me look like a complete tit. Strictly speaking I should have locked my version of Rails to prevent this sort of thing happening, but a warning would have been nice. I doubt they would have upgraded to an incompatible version of PHP without mentioning it. Actually the problem is not so much the upgrade, but it was a partial upgrade. They forgot to upgrade activerecord, so no Rails sites work. So far it’s been over 10 hours without a word from their support team. All they need to do is roll out one gem across their servers.

I managed to get one site back up but the other is still down. DreamHost have always been a bit slow when it comes to Rails performance so I’m on the look out for a new host for my Rails sites. A quick search shows users on TextDrive (the official RoR host) went through a similar unannounced upgrade. If you know any solid Rails hosting company, let me know.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Rails 1.1 Pain digg.com digg it!  |  reddit reddit!

Books on my desk

Tuesday, March 21st, 2006

I’ve have a post on character sets that’s probably going to sit in my drafts folder for a while, so to fill the void I’ve decided to do an inane post. So without further ado, here are the books currently on my desk at work. (Expect a home edition if my writer’s block continues)

Books on my desk
Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Books on my desk digg.com digg it!  |  reddit reddit!

Wordpress 2.0.2 Security Release

Monday, March 13th, 2006

If you use Wordpress this post is probably redundant because the notice is right there on your dashboard, but just in case you haven’t seen it. Wordpress have released version 2.0.2 to fix a cross site scripting vulnerability. So upgrade now.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Wordpress 2.0.2 Security Release digg.com digg it!  |  reddit reddit!

Tracking the Internet into the 21st Century

Thursday, March 9th, 2006

On Tuesday night I went to see Vint Cerf speak at Google’s Open House in London. As one of the guys who started the Internet it was interesting to see where he thought it was going next.

How the Internet is Changing He first covered how the Internet is changing, who’s connected, what they’re connecting with, etc. I was surprised to hear that Asia already has the most people connected, although less than Europe and North America combined. But with most of the World’s population eventually they will have the most people connected so we should expect a shift in culture and content of the Internet.

At the moment there are about one billion people connected to the net. There are about three billion fixed telephone lines and already two billion mobile phones. The number of mobiles is growing while the fixed lines are static so there should be a shift to more mobile connections (the consequences of that are covered later), but this is countered by the speed of the connection. Vint stressed that mobiles are going to become a much more important part of the Internet, but I think the speed and cost of the connection has to change dramatically first.

Broadband is becoming more prevalent, which means more and more people are online all the time with fast connections. He came up with the term ’21st Century dialtone’ to describe how an Internet connection is something we assume to be there. A consequence of this is that you can provide more every day services over the Internet.

A thought one such example of this is VOIP, turn the broadband connection into a cheap phone. But Vint brought up a very good point, the money is made in the Internet/POTN bridge and placing the call, this isn’t always going to be necessary. Once everyone has a connection all the time VOIP is going to become easy, and profitable as email.

Digital Media Faster connections means you can also start doing more things with digital media. Having warehouses and inventory is expensive, and it gets a lot more expensive if you try to scale it. As a result selections aren’t always the best, i.e. you get the current best sellers. By digitizing media you slash your costs and the marginal cost of supplying an additional title is so low you can start taking advantage of the long tail, i.e. low demand titles, but by selling enough low demand titles you make enough money for it to be worthwhile. He estimates the long tail may increase revenues by 30%.

There is still a way for this though because the connections still aren’t fast enough. He used Netflix, an online DVD rental company as an example. They ship 1.7m DVDs a day. Assuming each movie only has one DVD and a steady data flow, that requires a 740 Gbit/s connection! Maybe the movie industry will want to reconsider the Bittorrent protocol and the DivX codec. ;)

Vint then went off for a bit about turing online gaming in a potential video conferencing platform. An odd idea, but Joi Ito agrees, so maybe I’m the one who doesn’t ‘get it’.

Mobiles and Mobility Back to mobiles. There are two billion of them out there, most are a general purpose programming device just waiting for the right software. They’ll stress the architecture of the net, I assume through sheer numbers if they all went online. They have plenty of potential uses. They’re already used for instant message (SMS) and as payment systems (also SMS), but combine them with geolocation services and they get a lot more interesting. They’ll create a great opportunity to monetize information that has been indexed with geographic information.

IMHO there’s so much scope of what you could do with just local search, but throw in a portable handset and geolocation and the sky’s the limit. It might be a bit sacrilegious to post Yahoo! stuff in the post but check out Checkmates and Event Browser, okay the latter isn’t for phones but imagine being able to use your phone to find something happening in your area, then get all your friends to meet up. And that’s just the tip of the iceberg, but enough about that, back to the talk.

New Business Models I think this is the only point Vint talked about Google. They’ve have introduced new business models, the main one of course is making online advertising work. So much so Google is now known as an advertising company rather than a search company in certain circles.

With their APIs they’re trying to expand their advertising space rather than charging directly for the services. e.g. you have a database of information and make a Google Maps mashup, then place Google ads on the site. You get make a cool app fairly easily and Google gets its value from having more ads out there.

I’d be interested to know if Google’s main business plan is to simply create more places to put adverts, or if they plan to come up with different revenue streams.

Back to Basics Here’s the bit for the PhD students. Vint brought up potential research areas of how he’d design the Internet if given the chance again today:

  • End/end connectivity - Basically get rid of NAT
  • Authentication - Get the end points of the network to authenticate themselves
  • Flexible VPN membership - Make it part of the Internet rather than a bolt on
  • Mobility (and spectrum sharing) - Consider a Boeing plane with Internet access, it’s basically a whole network that is getting connected to different points as if flies
  • Confidentiality
  • Early vs. Late Binding of DNS - Late binding is better for mobiles
  • Broadband everywhere - Assume faster connections

Policy and Governance I didn’t take too many notes during this bit. Something about a World Summit creating a working group, which then decided to hold a forum, and all the people involved were shocked that something like the Internet was under central control.

But it wasn’t all negative, he reckons with such a forum they might be able to start tackling problems like SPAM and fraud. Maybe.

Internet Enabled Appliances More and more non-computers are connecting to the net. One particularly cool example was an Internet enabled photo frame that you can give to your family, then update the photos on a website. But as more devices get connected we will have to make the jump to IP6 just to have enough addresses for them all.

RFID also makes things a lot more interesting by letting things collobrate. e.g. your Internet enabled fridge can identify what you have, check a recipe online, then text you what things you need to buy. Or maybe just bypass you can order them from the supermarket itself.

We’ll see a shift in how we use the Internet from accessing it through one terminal to using multiple devices that collobrate.

InterPlanNetary Intenet (IPN) An interesting project, but ultimately related to the Internet only by name. Currently things we send into space have custom networking hardware and protocols for efficiently reasons. The downside to this is that you cannot reuse equipment left in space for future missions.

Vint is working at the Jet Propulsion Labs on a standard networking protocol for things we send into space. So each mission means we’ll have another node in the network that can be used for things such as communication, sensor readings, etc. It looks like NASA is going to adopt this for their missions for the next 40 years.

Q&A There was a brief Q&A session, nothing of note except for a book recommendation, The Singularity Is Near. Amazon describes it as:

Inventor and futurist Ray Kurzweil examines the next step in the evolutionary process of the union of human and machine. Kurzweil foresees the dawning of a new civilization where we will be able to transcend our biological limitations and amplify our creativity, combining our biological skills with the vastly greater capacity, speed and knowledge-sharing abilities of our creations. In practical terms, human ageing and illness will be reversed; pollution will be stopped and world hunger and poverty will be solved. There will be no clear distinction between human and machine, real reality and virtual reality. “The Singularity is Near” offers a view of the coming age that is both a dramatic culmination of centuries of technological ingenuity and a genuinely inspiring vision of our ultimate destiny.

I might pick up a copy, but I’ve been warned it’s quite long and goes into a lot of detail.

After the talk there was drinks and food. As I mentioned in an earlier post I didn’t get a chance to meet any one from Google but did catch up with a few people from Imperial. Cheers Google for hosting the night.

Here’s my friend Simon’s take on the evening, and here is another writeup of the same talk given at Imperial College early that day.

They filmed the talk but I haven’t been able to find the video online. If I find the link, I’ll post it here.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Tracking the Internet into the 21st Century digg.com digg it!  |  reddit reddit!

Typo Sidebar - CalendarHelper

Wednesday, March 8th, 2006

One of the sidebar plugins I wrote needed a calendar. I decided to use Jeremy Voorhis’s calendar-helper. There are examples on his page on how to use it so I won’t go into those details here. The reason for this post is about how to get it working with Typo.

It proved fiddly because after putting the file in the ‘components’ directory made it visible in my controller class (with require 'calendar-helper' and include CalendarHelper) but not in ‘content.rhtml’. After a lot of Googling I found that the component needed to be installed as a global view helper. Those instructions aren’t the clearest, so here’s what you need to do:

  1. Install calendar_helper.rb to /typo/vendor/plugins/calendar_helper/lib
  2. In calendar_helper.rb change module CalendarHelper to module ActionView::Helpers::CalendarHelper
  3. At the bottom of calendar_helper.rb (after the last end) add
    ActionView::Base.send(:include, ActionView::Helpers::CalendarHelper)
  4. Create a file: ‘/typo/vendor/plugins/calendar_helper/init.rb‘ and put in it:
    require 'calendar_helper'
    

And after those four easy steps the ‘calendar’ function is now available in ‘content.rhtml’.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Typo Sidebar - CalendarHelper digg.com digg it!  |  reddit reddit!

Typo Sidebar Tutorial

Wednesday, March 8th, 2006

I’ve been playing around a bit with Typo, a Rails blogging program, recently. The main reason I chose Typo is because I wanted to add some news features to a golf league manager I’ve also written in Rails. Merging the two code bases is probably a bit much at this stage but I did want to add something to Typo to integrate the two. The best way to do is sidebar components. This is a brief tutorial on how to write a sidebar component. In my examples I’ll use the category sidebar from Typo.

Read the rest of this entry »

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Typo Sidebar Tutorial digg.com digg it!  |  reddit reddit!

Woohoo! Black text in Bloglines again

Wednesday, March 8th, 2006

Just upgraded to KDE 3.5.1 on my work box, which includes an upgrade to Konqueror. Not sure what the full set of changes are but there is at least one fix to the CSS rendering that means the text on Bloglines is black again. During KDE 3.4 the text was the same blue as their links, making it pretty tough to read.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Woohoo! Black text in Bloglines again digg.com digg it!  |  reddit reddit!

Google Talk Aftermath

Tuesday, March 7th, 2006

I’m confused. I’m not sure what I just attended. Don’t get me wrong, it was an interesting talk by Vint Cert (which I’ll write up tomorrow), but I thought I was walking into a recruitment event. I even have the pad of paper with www.google.com/jobs printed along the bottom. Maybe I’ve been spoilt by the investment banking recruiting events I went to during university, but this just seemed like a missed opportunity for Google. You’re struggling to fill your London R&D centre, you get a hundred or more smart computing people in one room, why aren’t we being told about the great place Google is to work at, and all the interesting things we will be working on?

There were between five and ten Google employees there, I didn’t get a chance to speak to one of them but from what I overheard they were talking about Google in general rather than what is actually planned for the London office. I think part of the reason why I’m so disappointed was that I wanted to be tempted from my current job. I wanted to see this great office (it is very nice), with excited people, working on interesting problems, but I didn’t. From what I’ve read in the press and their job listings, Google plans to focus on mobile Internet in London but nothing tonight confirmed that.

On the bright side I did catch up with several people from my old department. The other reason I went along was to see if I could find any potential hires for the positions at Runtime, but that was a no go. There were some other people scouting too, and I found out from them that after the dot-com crash the number of computing graduates has fallen and a lot of them (from Imperial at least) are getting hovered up by banks. I guess that is the problem Google is having too. Straight after university people join an investment bank, get paid a lot of money, then decide they don’t like the work and quit but aren’t willing to take the pay cut to join a software company. Annoying but the way it is in London.

Well, that’s enough ranting for one night.

Update: I was wondering why there weren’t any Imperial undergraduates at the talk (just postgraduates). It turns out Vint Cerf gave the same talk a few hours earlier at IC.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Google Talk Aftermath digg.com digg it!  |  reddit reddit!

Google Open House - Vint Cerf

Tuesday, March 7th, 2006

Tonight I’m going to a talk by Vint Cerf at Google’s London office. It’s a great chance to hear one of the ‘founding fathers of the Internet’ speak, but it looks like it’s also going to be a recruiting event.

I’d be lying if I said the idea of working at Google wasn’t an attractive one, but their current engineering jobs in London aren’t geared towards my specialities, unless of course I make the switch to mobile technologies. Ironically at my current job at Runtime Collective, I get to work on more search related things than those listed at Google.

My friend Simon is going too, and I’m sure there will be other old faces from Imperial. I’ll write up the talk here either later tonight (unlikely if I manage to catch the end of the Barcelona/Chelsea game) or sometime tomorrow.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Google Open House - Vint Cerf digg.com digg it!  |  reddit reddit!