.

More Link FunTime

Time on your hands + DJ + Classic Tune = WTF
Movie


Q-Unit - Greatest Hits

Queen + 50 Cent = Q-Unit (thanks annie!) Who doesn’t love mashups ?

Q-Unit - Greatest Hits


Live From The Field

-We got the package - a drie fonteinen - a fine oude kriek!

DirkPhoto043.jpg


Live From The Field

Behold - an avacado margarita at Curras in Austin,Tx

DirkPhoto042.jpg


Wal-Mart Dance Party!

FlashMob + WalMart + Music = Instant Dance Party

The Toilet Paper Blog: Wal-Mart Dance Party!


SwitchTower - Production & Staging

Ok so I’ve switched over to SwitchTower for my deployment.

Now I’ve run into a small problem. Basically I develop on a workstation (dev), and I can push to production. That’s all well and good - except I’m missing a step.

Anyone see Staging?

It’s a not uncommon practice to have a staging server. This is the mid point between your dev environment and your production server. Some people use it for testing (since often times the dev environment is so different from production - you can get staging to more closely model production making a good place to do any final checks before you roll into production). It’s also nice to have as a place that can be accessible to users to see a version of the software before it goes “live”.

SwitchTower doesn’t seem to have this concept. (If I missed it let me know what I’m doing wrong). It’s not a big deal really - since I can just modify my /lib/tasks/switchtower.rake

A couple things about this file.

1. Nothing in here is really project specific - so if you want to use it on your project it should work for you.
2. You’ll need to create a deploy_staging.rb in your /config
3. I added in a little detector to determine if you are on Windows or not - since if you are the command is different
4. All the old commands now exist with two version (c.f. deploy becomes deploy_production deploy_staging)

I just got this to work tonight so there may still be some bugs in it. I’ll post and I get it all worked out - but I figured feedback would be a good thing.


# =============================================================================
# A set of rake tasks for invoking the SwitchTower automation utility.
# =============================================================================
desc "Figure out the correct switchtower to call based on platform"
task :switchtower_command do
if File::ALT_SEPARATOR
ENV["SWITCHTOWER_APP"] = “switchtower.cmd”
else
ENV["SWITCHTOWER_APP"] = “switchtower”
end
end

desc “Set the config_file to deploy_staging”
task :switchtower_staging do
ENV["SWITCHTOWER_CONFIG"] = “config/deploy_staging”
end
desc “Set the config_file to deploy”
task :switchtower_production do
ENV["SWITCHTOWER_CONFIG"] = “config/deploy”
end

desc “Push the latest revision into production using the release manager”
task :deploy_production => [:switchtower_command, :switchtower_production, :deploy] do
end

desc “Rollback to the release before the current release in production”
task :rollback_production => [:switchtower_command, :switchtower_production, :rollback] do
end

desc “Describe the differences between HEAD and the last production release”
task :diff_from_last_deploy_production => [:switchtower_command, :switchtower_production, :diff_from_last_deploy ] do
end

desc “Enumerate all available deployment tasks on production”
task :show_deploy_tasks_production => [:switchtower_command,:switchtower_production, :show_deploy_tasks] do
end

desc “Execute a specific action using the release manager on production”
task :remote_exec_production => [:switchtower_command, :switchtower_production,:remote_exec_production ] do
end

desc “Push the latest revision into staging using the release manager”
task :deploy_staging => [:switchtower_command, :switchtower_staging, :deploy] do
end

desc “Rollback to the release before the current release in staging”
task :rollback_staging => [:switchtower_command, :switchtower_staging, :rollback] do
end

desc “Describe the differences between HEAD and the last staging release”
task :diff_from_last_deploy_staging => [:switchtower_command, :switchtower_staging, :diff_from_last_deploy ] do
end

desc “Enumerate all available deployment tasks on staging”
task :show_deploy_tasks_staging => [:switchtower_command,:switchtower_staging, :show_deploy_tasks] do
end

desc “Execute a specific action using the release manager on staging”
task :remote_exec_staging => [:switchtower_command, :switchtower_staging,:remote_exec_staging ] do
end

desc “Push the latest revision into production using the release manager”
task :deploy => [:switchtower_command] do
system “#{ENV["SWITCHTOWER_APP"]} -vvvv -r #{ENV["SWITCHTOWER_CONFIG"]} -a deploy”
end

desc “Rollback to the release before the current release in production”
task :rollback => [:switchtower_command] do
system “#{ENV["SWITCHTOWER_APP"]} -vvvv -r #{ENV["SWITCHTOWER_CONFIG"]} -a rollback”
end

desc “Describe the differences between HEAD and the last production release”
task :diff_from_last_deploy => [:switchtower_command] do
system “#{ENV["SWITCHTOWER_APP"]} -vvvv -r #{ENV["SWITCHTOWER_CONFIG"]} -a diff_from_last_deploy”
end

desc “Enumerate all available deployment tasks”
task :show_deploy_tasks => [:switchtower_command] do
system “#{ENV["SWITCHTOWER_APP"]} -r #{ENV["SWITCHTOWER_CONFIG"]} -a show_tasks”
end

desc “Execute a specific action using the release manager”
task :remote_exec => [:switchtower_command] do
unless ENV['ACTION']
raise “Please specify an action (or comma separated list of actions) via the ACTION environment variable”
end

actions = ENV['ACTION'].split(”,”).map { |a| “-a #{a}” }.join(” “)
system “#{ENV["SWITCHTOWER_APP"]} -vvvv -r #{ENV["SWITCHTOWER_CONFIG"]} #{actions}”
end


Live From The Field

Watching a master at work (chris b) at Sam’s Burger Joint

DirkPhoto041.jpg


Live From The Field

Stop us - we’ve become stout drinkers!

DirkPhoto039.jpg


Live From The Field

There is a time and place for great bulgoji - and that time is now!

DirkPhoto038.jpg


Top 20 geek novels — the results! from Guardian Unlimited: Technology

Top 20 geek novels — the results! from Guardian Unlimited: Technology

1. The HitchHiker’s Guide to the Galaxy — Douglas Adams 85% (102)
Tried to read it - but just didn’t like it
2. Nineteen Eighty-Four — George Orwell 79% (92)
Still as disturbing as ever
3. Brave New World — Aldous Huxley 69% (77)
Listening to it on my palm pilot currently
4. Do Androids Dream of Electric Sheep? — Philip Dick 64% (67)
I cheated and watched the movie. I still intend to come back for the real thing
5. Neuromancer — William Gibson 59% (66)
Fine so I never read this classic
6. Dune — Frank Herbert 53% (54)
Great book - though everyone has advised me against reading the sequels
7. I, Robot — Isaac Asimov 52% (54)
Nope - I’m a late comer to the Hard Science Fiction stuff
8. Foundation — Isaac Asimov 47% (47)
See above - at least this book is on my “to read” bookshelf
9. The Colour of Magic — Terry Pratchett 46% (46)
He’s written a ton of books - I’ve just never taken the plunge
10. Microserfs — Douglas Coupland 43% (44)
I preferred 21 Dog Years - mostly because I like Amazon a lot more than Microsoft
11. Snow Crash — Neal Stephenson 37% (37)
A friend recently offered to buy this for me if I promised to read it
12. Watchmen — Alan Moore & Dave Gibbons 38% (37)
Oh yeah. Though I’m a little confused because I could have sworn this was a graphic novel. They say they’re going to make a movie - don’t worry it will be terrible.
13. Cryptonomicon — Neal Stephenson 36% (36)
10 pages in I began to realize that this was not the book for me
14. Consider Phlebas — Iain M Banks 34% (35)
Wow one I’ve never heard anything about
15. Stranger in a Strange Land — Robert Heinlein 33% (33)
My geek friends in High School tried to get me to read this. I didn’t but it’s on my palm pilot to listen to after I finish Brave New WOrld.
16. The Man in the High Castle — Philip K Dick 34% (32)
I Ching and Germans winnin WWII - Oh my! A strange look into the world of Philip K Dick. I liked it but I haven’t gone back
17. American Gods — Neil Gaiman 31% (29)
Everyone loves Sandman. Except me since I didn’t read it. Guess I didn’t feel compelled to read this for the same reason
18. The Diamond Age — Neal Stephenson 27% (27)
Fine I get it - Cyberpunk == Geek.
19. The Illuminatus! Trilogy — Robert Shea & Robert Anton Wilson 23% (21)
I made it almost all the way thru the trilogy. At the time I didn’t fully realize how tongue and cheek it was.
20. Trouble with Lichen - John Wyndham 21% (19)
No idea - but if it involves fungus, mold, or yeast - I’ll probably find it plenty interesting


    You are currently browsing the Economy Size Geek weblog archives for November, 2005.
    Previous Entries »
    Categories
    Archives

    .