Swapfile for my brain http://simplygenius.com/geekblog Matt Conway's blog - Keeping track of all my bits Sun, 01 Jun 2008 00:17:36 +0000 http://wordpress.org/?v=2.2 en RailsConf 2008 http://simplygenius.com/geekblog/2008/05/31/railsconf-2008/ http://simplygenius.com/geekblog/2008/05/31/railsconf-2008/#comments Sun, 01 Jun 2008 00:17:36 +0000 matt http://simplygenius.com/geekblog/2008/05/31/railsconf-2008/ In Portland, Oregon all this weekend for RailsConf 2008, any like-minded readers interested in chatting over a beer?I gave a lightning talk on rubber today, if anyone wangts a more detailed demo, seek me out (twitter: mattconway). 

]]>
http://simplygenius.com/geekblog/2008/05/31/railsconf-2008/feed/
Replacing AppleScript with Ruby http://simplygenius.com/geekblog/2008/05/29/replacing-applescript-with-ruby/ http://simplygenius.com/geekblog/2008/05/29/replacing-applescript-with-ruby/#comments Thu, 29 May 2008 23:24:14 +0000 matt http://simplygenius.com/geekblog/2008/05/29/replacing-applescript-with-ruby/ I had a brief run-in with AppleScript trying to overcome an OS X terminal bug.  and its not something I enjoyed.  I would much rather be able to do scripts like this in a language I’m more comfortable in like ruby.  I’ve known for a while that one of the enhancements in OS X Leopard is that it has native support for scripting the UI from within other scripting languages like python and ruby, however, I didn’t realize that I could drop those scripts in the user scripts folder (~/Library/Scripts) and have them available from the scripts toolbar icon. (more…)

]]>
http://simplygenius.com/geekblog/2008/05/29/replacing-applescript-with-ruby/feed/
Capistrano and ssh connection limit http://simplygenius.com/geekblog/2008/03/11/capistrano-and-ssh-connection-limit/ http://simplygenius.com/geekblog/2008/03/11/capistrano-and-ssh-connection-limit/#comments Tue, 11 Mar 2008 19:44:49 +0000 matt http://simplygenius.com/geekblog/2008/03/11/capistrano-and-ssh-connection-limit/ We use capistrano to deploy our rails applications from a subversion repository that is accessed using svn+ssh.  Recently we ran into a problem where Capistrano was unable to connect to subversion from some of the deployment hosts with an error like:

*** [err :: host.domain.com] ssh_exchange_identification: Connection closed by remote host

Since capistrano tries to fire off N svn checkouts simultaneously, it was running into a connection limit for ssh on the the subversion server.  Turns out there is a MaxStartups setting for sshd_config which effectively determines how many clients can be trying to connect simultaneously.  It defaults to 10, and our failures started happening when we went above 10.  Changing the value to 50 on our svn/ssh server cleared up the problem.

]]>
http://simplygenius.com/geekblog/2008/03/11/capistrano-and-ssh-connection-limit/feed/
Client for nettica dns service http://simplygenius.com/geekblog/2008/01/28/client-for-nettica-dns-service/ http://simplygenius.com/geekblog/2008/01/28/client-for-nettica-dns-service/#comments Tue, 29 Jan 2008 00:12:13 +0000 matt http://simplygenius.com/geekblog/2008/01/28/client-for-nettica-dns-service/ One of the drawbacks of EC2 is that there are no static IPs to be had, so short of using an external (to ec2) solution, the only way to have redundant load balancers is to use dns round robin.  If a load balancer instance goes down, we should ideally remove it from the round robin so that clients don’t continue to use the dead IP.

(more…)

]]>
http://simplygenius.com/geekblog/2008/01/28/client-for-nettica-dns-service/feed/
Deploying Rails Apps to EC2 with Capistrano http://simplygenius.com/geekblog/2008/01/28/deploying-rails-apps-to-ec2-with-capistrano/ http://simplygenius.com/geekblog/2008/01/28/deploying-rails-apps-to-ec2-with-capistrano/#comments Mon, 28 Jan 2008 23:30:52 +0000 matt http://simplygenius.com/geekblog/2008/01/28/deploying-rails-apps-to-ec2-with-capistrano/ I’ve created yet another system for deploying rails apps to ec2 using capistrano.  None of the others were doing it for me, primarily because I needed a way to deploy/configure/scale-up to multiple instances as needed.
(more…)

]]>
http://simplygenius.com/geekblog/2008/01/28/deploying-rails-apps-to-ec2-with-capistrano/feed/
Using Capistrano without source control http://simplygenius.com/geekblog/2008/01/27/using-capistrano-without-source-control/ http://simplygenius.com/geekblog/2008/01/27/using-capistrano-without-source-control/#comments Sun, 27 Jan 2008 06:27:11 +0000 matt http://simplygenius.com/geekblog/2008/01/27/using-capistrano-without-source-control/ I’m in the process of writing some capistrano recipes to make deploying to Amazon’s Elastic Compute Cloud (ec2) easier. Since I’m making this project available for general consumption, I wanted a way to make it easy for someone to try it out without having to check something into source control. (more…)

]]>
http://simplygenius.com/geekblog/2008/01/27/using-capistrano-without-source-control/feed/
Mounting Xen DomU LVM disk in Dom0 http://simplygenius.com/geekblog/2008/01/27/mounting-xen-domu-lvm-disk-in-dom0/ http://simplygenius.com/geekblog/2008/01/27/mounting-xen-domu-lvm-disk-in-dom0/#comments Sun, 27 Jan 2008 05:57:44 +0000 matt http://simplygenius.com/geekblog/2008/01/27/mounting-xen-domu-lvm-disk-in-dom0/ I setup a xen based system for our production environment at work. I’m using LVM throughout for all the benefits it provides (resizing, snapshot backups, etc). Each domU gets its own logical volume on dom0’s volume group. This logical volume actually looks like an entire physical disk to the domU, and the domU then further partitions it into a boot partition and a nested LVM partition (swap + root fs). Aren’t the layers of unix file abstractions a thing of beauty to behold? :)

In retrospect I probably should have mapped LVM logical volumes direct from dom0 as partitions in domU rather than having domU add the extra LVM layer on top - though reading around shows that this _may_ not be supported in the future, so… (more…)

]]>
http://simplygenius.com/geekblog/2008/01/27/mounting-xen-domu-lvm-disk-in-dom0/feed/
Wireless Shenanigans http://simplygenius.com/geekblog/2007/09/21/wireless-shenanigans/ http://simplygenius.com/geekblog/2007/09/21/wireless-shenanigans/#comments Sat, 22 Sep 2007 03:35:53 +0000 matt http://simplygenius.com/geekblog/2007/09/21/wireless-shenanigans/ To date, my wireless setup at home consists of 2 linksys WRT54Gs modded with the OpenWRT firmware + x-wrt (webif2) for a better web ui. One of these routers serves as my gateway/firewall and the other connects my upper floors to the gateway via WDS (basically, its only there so my Series-1 Tivo can get online as the only mod I have for it is a wired ethernet card :) I also have a server (mythtv) which connects to my gateway via an ethernet cable cleverly hidden under a rug between the living room and study. Something my wife isn’t too happy with! :)
(more…)

]]>
http://simplygenius.com/geekblog/2007/09/21/wireless-shenanigans/feed/
Create your own ringtone http://simplygenius.com/geekblog/2007/09/12/create-your-own-ringtone/ http://simplygenius.com/geekblog/2007/09/12/create-your-own-ringtone/#comments Wed, 12 Sep 2007 23:03:23 +0000 matt http://simplygenius.com/geekblog/2007/09/12/create-your-own-ringtone/ We just added a cool feature called Make My Ringtone, where you can turn any MP3 file into a custom ringtone for your phone. It’s free, easy to use, and works on all major U.S. carriers including Verizon.

To check it out,
1. Go to www.mobicious.com/ringtones/new
2. Select an MP3 file from your desktop
3. Choose and preview any 20 second clip
4. Send your custom ringtone to your mobile phone

]]>
http://simplygenius.com/geekblog/2007/09/12/create-your-own-ringtone/feed/
Camping for an iPhone http://simplygenius.com/geekblog/2007/06/29/camping-for-a-iphone/ http://simplygenius.com/geekblog/2007/06/29/camping-for-a-iphone/#comments Fri, 29 Jun 2007 20:05:15 +0000 matt http://simplygenius.com/geekblog/2007/06/29/camping-for-a-iphone/ Yes, I actually am - I think this is the first tme I have ever camped for anything. Not sure if one can call sitting in line for 3 hours “camping”, but is as close as I’ll ever come :)

For those nearby - the AT&T store on Needham St in Needham MA, only has abou 40 people in line.

]]>
http://simplygenius.com/geekblog/2007/06/29/camping-for-a-iphone/feed/