Posts

Showing posts from January, 2009

More notes on switching my development system to Ruby 1.9.1

I have been converting (on my development system, not in production yet) my Rails applications to work with Ruby 1.9.1. I converted my non-Rails stuff (that I care about) to work with 1.9.x a while ago. I still use ferret for single process (or single thread) web applications. I have wanted to switch to Sphinx and UltraSphinx for a while and since ferret is not compatible with Ruby 1.9.x because of changes for unicode (RString struct, specifically) I did that conversion late last night. I was pleasantly surprised how simple it was to switch to Sphinx and UltraSphinx: lots of little edits, but quick and easy. A little more frustrating: the auto_complete Rails plugin does not seem to be Ruby 1.9.x compatible in one of my Rails web apps. I am going through the plugin code, adding debug output, and looking for the problem. The problem may just be specific to my application. Because of the performance improvements of 1.9.x and because of the long term maintenance overhead of having (eventua...

Overcoming a psychological hurdle: switching my development system to use Ruby 1.9.1 by default instead of Ruby 1.8.6

I use bash aliases to quickly change my environment to use Ruby 1.8.x, JRuby, or Ruby 1.9.x. I am changing the default to use Ruby 1.9.1 - an important psychological hurdle :-)

Google Gears with GMail, Google Reader, and Google Docs

I would like to convert my workflow to use Gears enabled local persistence for GMail, Reader, and Docs. I used to use GMail POP3 support and GData web service APIs to backup my GMail and Docs locally. I still need to write some short Ruby scripts to access (as a test) the local sqlite databases used by Gears for GMail and Docs - just to make sure that I can use the local copies of my data . When I am sure that everything is accessible then I will stop doing my POP3 and GData based backups and just back up the sqlite databases that Gears creates and maintains. To access the sqlite databases, you need to do a little searching: on my system these files are on /Users/markw/Library/Caches/Firefox/Profiles/btzzru2q.default/Google Gears for Firefox Notice the randomly generated directory name. I plan on searching for "Google Gears for Firefox" and using its path. I was able to use sqlite (version 3 required) to open the two top level ".db" files and the attachments and ema...

Monetizing Twitter and Facebook

I read this morning that Twitter just secured a $250m VC infusion of operating funds. Good news for Twitter management and users (my handle on Twitter is mark_l_watson) but they do need a revenue model. Facebook (my handle there is my gmail.com address mark.watson) at least runs adds. I am not very active on either Twitter or Facebook but they are fun. As a consumer, I would not mind at all paying a low fee (like $5/year) for no-advertisement service and to keep them in business long term. As a developer I like to see open APIs with free low-volume use of the APIs and modest costs as use scales up. The issue is how to get people to start paying for services that they have been enjoying for free. Flickr ( mark_watson ) got me to upgrade to a paid account when I hit the 200 photograph limit for free accounts. I use Google gmail, documents, and calendar as part of both my business work-flow and my personal life-flow but I have yet to upgrade to a paid $50/year account. I think that Google...

Amazon Web Services (AWS) web based console. The economy and IT.

Amazon just released a very slick AJAX based console that provides a GUI environment for managing Instances and AMIs, and performing other admin tasks. I found the existing command line AWS admin utilities to be very nice to use but I will spend more time trying out the web based console the next time that I have a task using AWS. With the world wide economy in a long term slump it becomes even more important to get good value from IT spending. For small and medium size companies I think that using "cloud" services will be part of the "new frugality" although large scale server farms will always provide better value when economy of scale makes large support and infrastructure development teams make sense cost-wise. While many of us will favor commercial development tools I have a hard time imagining a future where open source infrastructure software does not dominate commercial products. Amazon does provide startup AMIs containing Windows Server and I am not arguing...

Very cool: Google's Picasa client is now available for OS X

Before I switched my business over to using Mac OS X, I "lived in Linux" and very much enjoyed the Linux port of Picasa. I use both Picasa and Flickr: both very good in different ways but I will favor Picasa now that there is a Mac client program. I enjoy travel, friends and family so reviewing pictures and videos is an almost daily activity. Picasa 3 : highly recommended!

Amazon S3 and EC2 are awesome

A customer asked me to help set up a Rails app on EC2 today and I must say I am impressed how well Amazon supports developers using their web services. Setting up a new Amazon account, generating the required keys, starting with an operating system image that roughly matches what you need to work on (e.g., Java, Ruby, Perl, etc.) and getting up and running is basically a one hour job. Amazon's developer services are awesome, especially because of the quality of documentation and tools. They did a very good job! I am working on a Ruby Web 3.0 developer's book and a small part of it deals with deployment strategies. I am definitely going to add a section on EC2.