We have some small sinatra apps that are used for integration testing, and bound with ShamRack.
Today, I found myself wanting to run one of them as a standalone app.
I created a Rack configuration file, config.ru:
And ran it inside my bundle with the rails script runner:
bundle exec script/runner rackup config.ru
I had a problem this morning with a rails (2.3.11) project at work.
I had added a migration that added a new column to the Partner table, but when I tried to test all migrations by rolling back to version 0 and then forward, an EARLIER migration that inserted data into Partner.
The migration was failing (against sqlite3), trying to insert a null into the column that didn’t exist yet.
Turns out the problem is that ActiveRecord caches the columns of the model objects, so winding them back to the start and re-running them leaves it confused about which columns should be inserted.
The fix? As found here, add
into the OLD migration before the failing insert. This forces ActiveRecord to reload the object metadata, and the migration will then work correctly.
The announcement of a Presidential press conference late on Sunday evening drove a huge amount of internet traffic.
The New York Times was one of the first places I went to in search of answers. (actually, the first place I went was Twitter, but that’s another story). In spite of presumably very high traffic, the site was loading pretty quickly. However, trying to click through to any stories resulted a redirect to an error page, which timed out.
I was logged in at the time, so maybe that had something to do with it.
The paywall is probably running on a different set of servers from the rest of the regular site, maybe they aren’t as beefy.
In any case, at times of extreme traffic load, the New York Times are going to need a better solution. They can’t let the paywall block everybody off from their content.
He’s here to help.
Credit: Alain-Christian | http://www.flickr.com/photos/aseraphin/986724621/
This guide is for people who have a PC install of World of Warcraft and want to install the game on their Mac, without downloading 15 GB of game client again.
I tried looking for this in Google, and didn’t find anything useful. There might be some redundant steps here, but this is what worked for me:
Anyway, that’s what worked for me. Hope this helps someone!
Observer, p13: “Labor lead shrinks thanks to strong opposition campaign, concerns about climate change — and anger at treachery over dumped leader”
Independent, p23: “Budgiegate — one election too close to call, one pair of trunks (too small)”
Telegraph, p24: “amid disillusion with woman PM, election result leaves parties seeking allies to form a new government”
Thrilling 6 second video of Australian election queue in London!