Archive

Author Archive

Ruby runs on iPhone

September 19th, 2007 tony 3 comments

Peter Cooper pondered Ruby on iPhone?…. Giles has no iPhone, and nor do I, so we can’t test it,…”.

Yes it works:

And for any skeptics all doubt should be cleared up with this horrifically blurry, bad video I made with the only camera I had here at the office (iSight) :)

Categories: Ruby on Rails, iPhone Tags:

Google Street View is Coming to Raleigh

August 19th, 2007 tony 11 comments

On my way home Friday I found myself behind one of the Immersive Media cars that I assume was scanning streets in Raleigh for Google Street View. These are crap photos but my camera on my phone is crap. The Beetle had www.immersivemedia.com across the back window and Oregon plates.

Horrible screen capture from video
google streetview car
Read more…

Categories: Google Tags:

Finally a good Drupal image module

August 15th, 2007 tony 67 comments

After trying out every Drupal module and combination of modules out there for image upload I was still frustrated and decided to design my own. I wanted to be able to:

  • Upload an image
  • Have thumbnails generated automatically
  • Specify size to resize to of one or both of the thumbnail and big image
  • Browse and choose images from my uploaded library, specify float, alt attributes, link to options, and have the HTML generated for me and pasted into my node at the current cursor position.

Read more…

Categories: Drupal Tags:

Compete.com’s new tool is so good I kinda feel dirty :)

July 17th, 2007 tony 1 comment

I received a beta account to test Compete.com’s competitive analysis tool dubbed “Search Analytics”. They should rename it to “Login to Your Competitor’s Web Stats” because the “Site Referrals” tool is exactly that.

For instance I have a site that competes with YachtWorld.com so I plugged it into the site referrals tool and it spits back a list of keywords sorted by click volume that for which YachtWorld.com receives organic traffic. Whoa! Thats kind of scary.

Compete.com

I’m off to London but will write more later on Compete.com’s new tool that will leave you feeling dirty. :)

Compete.com

New columns not immediately available in migrations

July 4th, 2007 tony 4 comments

Sometimes you add a column to a table in a migration and then you want populate the new column with some data. Run your migration and while your column has been created in the database, your data does not populate. The problem is that those columns are not accessible via ActiveRecord and so you just need to tell it to update itself:

add_column :user, :favorite_beer, :string
User.reset_column_information  #<<<<<<<< Here is the ActiveRecord reload
tony = User.find_by_name "Tony Spencer"
tony.favorite_beer = "Terrapin Rye Pale Ale"
tony.save
Categories: Code, Ruby on Rails Tags: