15
Nov 10

Edge Rails pro-tip!

When using edge Rails, you should use edge Arel and edge Rack, also. Otherwise you’ll get weird bugs.

gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'arel',  :git => 'git://github.com/rails/arel.git'
gem 'rack',  :git => 'git://github.com/rack/rack.git'
Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

29
Oct 10

Edge Rails and Bundler

I needed some Rails 3.1 enhancements to Rails Engines for an in-development app, so I enabled Edge Rails in my Gemfile:

gem 'rails', :git => 'git://github.com/rails/rails.git'

Then I did what I normally do, sudo bundle install. But this broke the rails command—why?

I deleted the Git checkout and tried again:

$ sudo bundle install
Fetching git://github.com/rails/rails.git
remote: Counting objects: 195841, done.
remote: Compressing objects: 100% (42932/42932), done.
remote: Total 195841 (delta 151525), reused 195056 (delta 150929)
Receiving objects: 100% (195841/195841), 33.12 MiB | 2.05 MiB/s, done.
Resolving deltas: 100% (151525/151525), done.
Fetching source index for http://rubygems.org/
[...]
Using rails (3.1.0.beta) from git://github.com/rails/rails.git (at master)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle show
git://github.com/rails/rails.git (at master) is not checked out. Please run `bundle install`

Although Bundler has had some issues with remote Git repositories in the past, this one was entirely my fault: don’t use sudo bundle install. A simple check confirms this: sudo bundle show works like you’d expect.

So to recap: remove the checkout and bundle install (no sudo!) to fix this problem.

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

23
Oct 10

You’re doing it wrong

The following appeared on a mailing list I subscribe to.

Hi,

I have 3000 definitions in my config.ini .

routes.cates1.route = “list1/:page”
routes.cates1.defaults.module = “default”
routes.cates1.defaults.controller = “list”
routes.cates1.defaults.action = “index”
routes.cates1.defaults.id = 1
routes.cates1.defaults.page = 1
routes.cates1.reqs.page = “d+”

….
….

routes.cates3000.route = “list3000/:page”
routes.cates3000.defaults.module = “default”
routes.cates3000.defaults.controller = “list”
routes.cates3000.defaults.action = “index”
routes.cates3000.defaults.id = 3000
routes.cates3000.defaults.page = 3000
routes.cates3000.reqs.page = “d+”

I think my web site (it isn´t production) is slower than before. This is Okay or I need other solution.

bye

George

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

31
Jul 10

MySpace Music iTunes cover art

Random post! I made an iTunes album cover and thought other people might want it. Every now and then a musician or band I follow releases a song exclusively to their MySpace site. If it’s not available to buy I grab it with the fantastic WireTap Studio, then slap this bad boy on it:

(Download an iTunes-suitable version (actual size 600×600) or the original vector image if you’d like to customize it.)

Not surprisingly, MySpace’s marketing department doesn’t understand image quality at all. This is the original “high-definition” version of the MySpace Music logo found on their press site, actual size:

Maybe it looks great on a BlackBerry or something.

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!

05
Mar 10

Know your Uniform Resource Locator

I work for a company that does a fair amount of web crawling (no, not that one), and recently there has been an ongoing discussion between the engineering side and the business side about various sundry details of URL validation. On a whim, I created this diagram (among others) to help facilitate that discussion.

Click for a larger image.

Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!