Sort By:  Date - Title
Ruby 1.9.2, Rails 3, Riak and Ripple
| From : jit.nuance9.com
Published to Ruby on Rails
Here is a simple example to get you started. Prerequisites Install Riak via Homebrew  (brew install riak) Install Ruby 1.9.2 via RVM  (rvm install 1.9.2-rc2) Rails3 via RubyGems (gem install rails --pre) Version Disclosure This is what I'm using.  Things change, and YMMV. Ruby 1.9.2 RC2 Rails 3 Beta 4 Ripple edge (cb087f6) Riak 0.12.0 on Erlang R13B04 Step By Step > rails new myapp > cd myapp Edit Gemfile like so: source 'http://rubygems.org' gem 'rails', '3.0.0.beta4' gem 'ripple', :git... Read Full Story
What If Hosting Was a Library?
| From : jit.nuance9.com
Not yet published.
# Was thinking, "if hosting was a library, what might it look like..." require 'ProviderX' # We'll pretend we already have an account with fictitious ProviderX host = ProviderX.new(:user => 'foo', :password => 'secret') # Let's see what ProviderX will allow us to deploy to host.provides > ['Amazon', 'Google'] # Let's create a new environment to deploy to production = host.cloud.new(:vendor => 'Amazon', :name => 'production', :min_cpu => 2, :min_mem => 1024) # We also would need to define the... Read Full Story
HAProxy: Routing by domain name
| From : jit.nuance9.com
Not yet published.
Without too much effort I was able to find multiple search results that said HAProxy could direct traffic according to domain name. Unfortunately I was hard pressed to find any example configurations demonstrating that functionality. Turns out it is in section 7.7 of the documentation . If we wanted to direct traffic for foo.com and bar.com to different servers we could do so as follows: frontend http_proxy bind 192.168.0.1:80 acl is_foo hdr_dom(host) -i foo acl is_bar hdr_dom(host) -i bar... Read Full Story
HAProxy: Routing by domain name
| From : jit.nuance9.com
Not yet published.
Without too much effort I was able to find multiple search results that said HAProxy could direct traffic according to domain name. Unfortunately I was hard pressed to find any example configurations demonstrating that functionality. Turns out it is in section 7.7 of the documentation . If we wanted to direct traffic for foo.com and bar.com to different servers we could do so as follows: frontend http_proxy bind 192.168.0.1:80 acl is_foo hdr_dom(host) -i foo acl is_bar hdr_dom(host) -i bar... Read Full Story
Tiny email sending service with Amazon SQS
| From : jit.nuance9.com
Not yet published.
I found the " Dynamo Paper " by Amazon to be interesting. In particular I liked the idea of small services. Nothing new, but I liked the concept and wanted to play with it. The result was the 71 line SQS Mailer , available on Github. For this experiment the code polls an Amazon SQS queue. If there are messages in that queue, it retrieves them, parses them, and sends them out as emails via SMTP. If there are no messages waiting, it just sleeps for 5 seconds and tries again. So if you ran... Read Full Story
Tiny email sending service with Amazon SQS
| From : jit.nuance9.com
Not yet published.
I found the " Dynamo Paper " by Amazon to be interesting. In particular I liked the idea of small services. Nothing new, but I liked the concept and wanted to play with it. The result was the 71 line SQS Mailer , available on Github. For this experiment the code polls an Amazon SQS queue. If there are messages in that queue, it retrieves them, parses them, and sends them out as emails via SMTP. If there are no messages waiting, it just sleeps for 5 seconds and tries again. So if you ran... Read Full Story
Do you spend significant time "off-hours" on tech projects?
| From : jit.nuance9.com
Not yet published.
Do you spend significant time "off-hours" on tech projects? If so, are you driven by passion or fear of becoming irrelevant? Whether driven by passion or fear, does the amount of time involved negatively impact other areas of your life? Would be interested to hear what people think. Read Full Story
Abort: couldn't find mercurial libraries
| From : jit.nuance9.com
Not yet published.
I've been setting up my fresh Snow Leopard installation today. I followed the guide from Hivelogic: Compiling Mercurial on Snow Leopard . The installation completed without issue and 'which hg' showed everything was in place. However, when I tried to issue an 'hg' command the following error popped up: "abort: couldn't find mercurial libraries" Google came to the rescue, and revealed these tweets: https://wincent.com/twitter/155 https://wincent.com/twitter/156 For Snow Leopard, I just needed... Read Full Story
Abort: couldn't find mercurial libraries
| From : jit.nuance9.com
Not yet published.
I've been setting up my fresh Snow Leopard installation today. I followed the guide from Hivelogic: Compiling Mercurial on Snow Leopard . The installation completed without issue and 'which hg' showed everything was in place. However, when I tried to issue an 'hg' command the following error popped up: "abort: couldn't find mercurial libraries" Google came to the rescue, and revealed these tweets: https://wincent.com/twitter/155 https://wincent.com/twitter/156 For Snow Leopard, I just needed... Read Full Story
David vs United Airlines: An Internet Lesson
| From : blog.nuance9.com
Not yet published.
If you have any doubt that the Internet changes the dynamics of "business as usual", take a moment to consider the case of Mr. Dave Carroll . According to his side of the story, while flying United Airlines his guitar was broken. After 1 year of frustrated attempts to receive compensation for his loss he was told "No". 5 to 10 years ago that would have been the end of the story. Not so today. Dave Carroll told United Airlines that he was going to write 3 songs about the incident and produce... Read Full Story