Double Shot #648 »
Created at: 15.02.2010 13:50, source: A Fresh Cup, tagged: Double Shot bluepill capistrano delayed job fonts jquery rails refraction
Snow and deadlines. Must be Monday.
- Quicksand - Fun bit of jQuery eye candy for rearranging items on screen.
- Monitoring Delayed Job with Bluepill and Capistrano - Putting together a few more bits of infrastructure.
- JQuery Ajax - The latest from PeepCode.
- Rails 3 Testing environment - Gist showing how to set one up safely with rvm.
- TypeDNA - Some interesting font tools, including one that will identify fonts in uploaded images.
- Insourcing - Sarah Allen is experimenting with some ways to cost-effectively grow a development team without the risks of outsourcing, through carefully-managed internships.
- Visual Website Optimizer - Beta hosted service to help you do A/B testing with analysis.
- A/Bingo 1.0.0 Official Release - Alternately, you can just set up your own A/B testing infrastructure.
- Refraction - Rack middleware to replace mod_rewrite. One of the few uses of Rack middleware that actually strikes me as reasonable.
more »
Double Shot #611 »
Created at: 23.12.2009 18:57, source: A Fresh Cup, tagged: Double Shot bundler capistrano css friendly jquery rails statistics websockets
Know what day it is? Nope, not 2 days before Christmas: it's the 1-year anniversary of the announcement of the Rails and Merb merger! It's a good thing we don't need Rails 3 to build good web applications.
- WRKTE - Rich text editor in jQuery.
- #grid - Easy grid overlay for web page design.
- Ruby & WebSockets: TCP for the Browser - A technology I don't feel the need for yet, but maybe some day.
- Bundler is the new hotness: deploying rails apps with bundler and capistrano - If you're headed down the Bundler road with Rails 3, this will help you out with deployment.
- Portable Contacts - Ruby implementation of a standard for importing address books that's supported by some of the big players.
- Friendly 0.4: scopes, named_scopes, associations, and more - This NoSQL-in-MySQL project is moving right along.
- Statistics - ActiveRecord plugin for statistics and reporting.
more »
Twizzle Your Deplizzles »
Created at: 22.12.2009 04:30, source: RailsTips - Home, tagged: twitter capistrano
Steve and I have a Twitter account that we send all our commits to. It is all handled by Github and both of us find it really handy. Rain or shine, we get commit updates on our phone which is great for staying in the loop.
For a little while now, I’ve been wanting to add deploy notices to this twitter account and tonight I finally got around to it. It was pretty easy, but I’ll post the code here to save others time. I went the no dependencies route (even though I created the Twitter gem).
set :twitter_username, 'username'
set :twitter_password, 'password'
namespace :twitter do
task :update do
require 'open-uri'
require 'net/http'
url = URI.parse('http://twitter.com/statuses/update.xml')
request = Net::HTTP::Post.new(url.path)
request.basic_auth twitter_username, twitter_password
request.set_form_data('status' => "Deployed #{current_revision[0..6]} to #{rails_env}")
begin
response = Net::HTTP.new(url.host, url.port).start do |http|
http.open_timeout = 10
http.request(request)
end
puts 'Deploy notice sent to twitter'
rescue Timeout::Error => e
puts "Timeout after 10s: Seems like Twitter is down."
puts "Use \"cap twitter:update\" to update Twitter status later w/o deploying"
end
end
end
after "deploy", "twitter:update"
Just drop this in your deploy file and update the username and password. Notice that I even included the git revision and rails environment so you can easily see what was last deployed and where to. You end up with a nice little message like this:
Deployed 09ea23f to staging
Very handy!
more »
Twizzle Your Deplizzles »
Created at: 21.12.2009 04:30, source: RailsTips - Home, tagged: capistrano twitter
In which I show how to easily update Twitter with deploy notices that include the environment and revision.
Steve and I have a Twitter account that we send all our commits to. It is all handled by Github and both of us find it really handy. Rain or shine, we get commit updates on our phone which is great for staying in the loop.
For a little while now, I’ve been wanting to add deploy notices to this twitter account and tonight I finally got around to it. It was pretty easy, but I’ll post the code here to save others time. I went the no dependencies route (even though I created the Twitter gem).
set :twitter_username, 'username'
set :twitter_password, 'password'
namespace :twitter do
task :update do
require 'open-uri'
require 'net/http'
url = URI.parse('http://twitter.com/statuses/update.xml')
request = Net::HTTP::Post.new(url.path)
request.basic_auth twitter_username, twitter_password
request.set_form_data('status' => "Deployed #{current_revision[0..6]} to #{rails_env}")
begin
response = Net::HTTP.new(url.host, url.port).start do |http|
http.open_timeout = 10
http.request(request)
end
puts 'Deploy notice sent to twitter'
rescue Timeout::Error => e
puts "Timeout after 10s: Seems like Twitter is down."
puts "Use \"cap twitter:update\" to update Twitter status later w/o deploying"
end
end
end
after "deploy", "twitter:update"
Just drop this in your deploy file and update the username and password. Notice that I even included the git revision and rails environment so you can easily see what was last deployed and where to. You end up with a nice little message like this:
Deployed 09ea23f to staging
Very handy!
more »
Twizzle Your Deplizzles »
Created at: 21.12.2009 04:30, source: RailsTips - Home, tagged: twitter capistrano
Steve and I have a Twitter account that we send all our commits to. It is all handled by Github and both of us find it really handy. Rain or shine, we get commit updates on our phone which is great for staying in the loop.
For a little while now, I’ve been wanting to add deploy notices to this twitter account and tonight I finally got around to it. It was pretty easy, but I’ll post the code here to save others time. I went the no dependencies route (even though I created the Twitter gem).
set :twitter_username, 'username'
set :twitter_password, 'password'
namespace :twitter do
task :update do
require 'open-uri'
require 'net/http'
url = URI.parse('http://twitter.com/statuses/update.xml')
request = Net::HTTP::Post.new(url.path)
request.basic_auth twitter_username, twitter_password
request.set_form_data('status' => "Deployed #{current_revision[0..6]} to #{rails_env}")
begin
response = Net::HTTP.new(url.host, url.port).start do |http|
http.open_timeout = 10
http.request(request)
end
puts 'Deploy notice sent to twitter'
rescue Timeout::Error => e
puts "Timeout after 10s: Seems like Twitter is down."
puts "Use \"cap twitter:update\" to update Twitter status later w/o deploying"
end
end
end
after "deploy", "twitter:update"
Just drop this in your deploy file and update the username and password. Notice that I even included the git revision and rails environment so you can easily see what was last deployed and where to. You end up with a nice little message like this:
Deployed 09ea23f to staging
Very handy!
more »
