Archive for March, 2008

Python is Ugly but Damn She’s Beautiful

March 26th, 2008 tony 2 comments

Remember the Python crawler NotSleepy built to suck up all your internets and find your affiliate IDs? Well we kept massaging the code and finally slapped that thing down on a fat pipe. WOW. The stats are rocking now. How about double time!

Latest Stats:
35.6 URLs per second
3.073 Million URLs per day!

Whats most promising is that the new fat pipe is still the bottleneck which means that if anybody really wants to party, all we need to do is lay down some greenbacks and a OC-12 will show us mass terabyte pleasure.

Categories: Code, Crawlers Tags:

Why Basecamp Sucks…

March 12th, 2008 tony 11 comments




Read more…

Categories: Code Tags:

Easy Solution for Conflicting Rails Migration Version Numbering

March 2nd, 2008 tony 1 comment

migrations numbers
Thats a crappy blog post title but the best I could come up with! You know the scenario: you are about to commit your latest Rails code to subversion and you perform an update first. Rats. Someone has committed a new migration with the same number as yours. So you mess around with SQL manually reversing changes, and rename files. Its a pain, and I think this single problem with Rails causes much stress because as Rails developers we are used to everything working so smoothly. We’ll Steve Purcell has solved this problem in a beautiful way.

Install his plugin ‘renumber_migrations’:
script/plugin install

Next time you run into this migrations mess:
rake db:migrate:renumber

Problem solved!

One note: for some reason I couldn’t get it to work until I removed line 18:
raise "This task currently supports only subversion projects"

Don’t know why he added that line but once it was removed it worked perfectly. Thank you very much Steve! Now if someone will write a nice script to setup a bunch of common ignore properties (log/, schema.rb, tmp/) in SVN when first importing a new Rails project…. :)

Categories: Code, Ruby on Rails Tags:

Netflix’s Ace in Pocket: Porn to the Doorstep?

March 1st, 2008 tony 2 comments

There has been a lot of speculation over whether or not Netflix will survive given the changing market including AppleTV rentals, illegal downloads, and the very real possibility that Google has big plans for all that dark fiber they’ve been scooping up at an alarming rate including a Google TV box. Maybe they are counting on the multi billion dollar industry of porn to keep them alive b/c they’ve been registering domains like:

Categories: Uncategorized Tags: