<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-12205688</id><updated>2011-07-07T18:46:52.797-05:00</updated><category term='jboss'/><category term='jruby activerecord sqlite validation'/><category term='Rails Tomcat warbler'/><category term='jruby'/><category term='mysql'/><category term='rails'/><title type='text'>Jeet's world</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12205688.post-8004399088380984259</id><published>2010-07-05T13:39:00.000-05:00</published><updated>2010-07-05T13:39:01.652-05:00</updated><title type='text'>Vivek Kundra Keynote at the Cloud Computing Forum &amp; Workshop</title><content type='html'>&lt;object style="background-image:url(http://i2.ytimg.com/vi/USfYrYKfYgI/hqdefault.jpg)"  width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/USfYrYKfYgI&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/USfYrYKfYgI&amp;amp;hl=en_US&amp;amp;fs=1" width="425" height="344" allowScriptAccess="never" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-8004399088380984259?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/8004399088380984259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=8004399088380984259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/8004399088380984259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/8004399088380984259'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2010/07/vivek-kundra-keynote-at-cloud-computing.html' title='Vivek Kundra Keynote at the Cloud Computing Forum &amp; Workshop'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-620100031578142790</id><published>2010-01-09T00:14:00.005-05:00</published><updated>2010-01-09T00:19:47.299-05:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.rubynation.org"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 180px; height: 120px;" src="http://1.bp.blogspot.com/_RjwrxanQnLQ/S0gRiJCGcmI/AAAAAAAABP0/wgTLgF54vNs/s320/rubyWebBadgeConference.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5424605029405717090" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.rubynation.org/"&gt;RubyNation&lt;/a&gt; is coming back to DC area again.  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-620100031578142790?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/620100031578142790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=620100031578142790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/620100031578142790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/620100031578142790'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2010/01/rubynation-is-coming-back-to-dc-area.html' title=''/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_RjwrxanQnLQ/S0gRiJCGcmI/AAAAAAAABP0/wgTLgF54vNs/s72-c/rubyWebBadgeConference.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-1478369900851591874</id><published>2009-12-10T11:30:00.002-05:00</published><updated>2009-12-10T11:40:11.900-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jruby activerecord sqlite validation'/><title type='text'>validates_uniqueness_of issue resolved</title><content type='html'>Recently I had an issue when Rails validation validates_uniqueness_of did not work on one of my table columns. When I looked at the Rails logs, the query to check if the value supplied in form exists was using empty string in the where clause. Then I looked at the validation code in ActiveRecord and it turned out that the column had type of text in the database and this validation skips columns of type text. Actually I never meant this column to be type text and even the migration showed it of type string (not sure why this happened) which should have mapped this column to varchar. But once I changed the type of column to varchar(255), everything worked fine. I was using JRuby, Rails 2.3.2 and Sqlite3 database on windows XP. Hope it helps somebody else.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-1478369900851591874?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/1478369900851591874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=1478369900851591874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/1478369900851591874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/1478369900851591874'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2009/12/validatesuniquenessof-issue-resolved.html' title='validates_uniqueness_of issue resolved'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-5587336519608825263</id><published>2009-09-12T22:20:00.005-05:00</published><updated>2009-09-12T22:32:58.593-05:00</updated><title type='text'>Product review of Balsamiq Mockups</title><content type='html'>&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Balsamic Review&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Recently I came across &lt;a href="http://www.balsamiq.com/"&gt;Balsamiq Mockup&lt;/a&gt; which is a Adobe AIR based application to create mockups. I recently used it to create multiple mockups for a website that I am working on. Here is a brief review of that effort.&lt;br /&gt;&lt;br /&gt;Here are some of the features that I really like about this tool.&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Alignment&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;left - top to bottom (e.g. all labels/input fields in a form&lt;/li&gt;&lt;li&gt;middle - useful for adding multiple items at the same level horizontally (e.g. a label and input textbox in a form)&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Variety of elements&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Amazing number of UI elements that can be added to mockups. They are nicely grouped into logical categories like containers, buttons, layout etc.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Customization of elements&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Each element provides all possible kind of customization that might be needed for it.&lt;/li&gt;&lt;li&gt;I really liked the customization to move elements forward or backwards when they overlap. Very useful when using containers.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Grouping of elements&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;It is very easy to group a number of elements by just clicking the mouse and dragging it to cover multiple elements. They can now be easily moved around as a group. This makes it very easy to change their positioning&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Overall it is a great tool to rapidly develop a User Interface prototype. I am in the process using it in conjuction with &lt;a href="www.napkee.com"&gt;Napkee &lt;/a&gt;which builds upon Balsamiq bmml (xml output of balsamiq mockup) and generates stylized html or Adobe flex output. I think the two of them combined make a compelling case for a web developer with limited UI skills to reapidly develop UI mockups. But in itself Balsamiq is great to develop quick prototypes in an agile manner.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-5587336519608825263?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/5587336519608825263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=5587336519608825263' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/5587336519608825263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/5587336519608825263'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2009/09/product-review-of-balsamiq-mockups.html' title='Product review of Balsamiq Mockups'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-2093464106971219079</id><published>2009-05-07T21:10:00.003-05:00</published><updated>2009-05-07T21:14:14.681-05:00</updated><title type='text'>Bridging the gap to Rails</title><content type='html'>There has been a new initiative in the Rails world "To create an inclusive and friendly Ruby on Rails community". Check out &lt;a href="http://railsbridge.org/"&gt;http://railsbridge.org/&lt;/a&gt;. I may contribute to it in coming times.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-2093464106971219079?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/2093464106971219079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=2093464106971219079' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/2093464106971219079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/2093464106971219079'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2009/05/bridging-gap-to-rails.html' title='Bridging the gap to Rails'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-1931152854421463203</id><published>2009-03-28T14:22:00.004-05:00</published><updated>2009-03-28T14:25:24.636-05:00</updated><title type='text'>RubyNation coming up</title><content type='html'>RubyNation, the DC area Ruby related conference is coming up again this summer from June12 to June 13, 2009. Check out &lt;a href="http://www.rubynation.org"&gt;http://www.rubynation.org&lt;/a&gt; for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-1931152854421463203?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/1931152854421463203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=1931152854421463203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/1931152854421463203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/1931152854421463203'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2009/03/rubynation-coming-up.html' title='RubyNation coming up'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-5869517559997581477</id><published>2008-08-07T13:53:00.003-05:00</published><updated>2008-08-07T13:57:53.332-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rails Tomcat warbler'/><title type='text'>Deploying Rails app as war with warbler to Tomcat</title><content type='html'>If you are deploying your Rails app to Tomcat using warbler and the Tomcat install directory has spaces in then you must escape the slashes and also add a starting and ending quote properly escaped as shown below in config/warbler.rb:&lt;br /&gt;&lt;br /&gt;config.autodeploy_dir = "\"C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0.18\\webapps\""&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-5869517559997581477?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/5869517559997581477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=5869517559997581477' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/5869517559997581477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/5869517559997581477'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2008/08/deploying-rails-app-as-war-with-warbler.html' title='Deploying Rails app as war with warbler to Tomcat'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-4051089034913233684</id><published>2008-06-16T21:36:00.002-05:00</published><updated>2008-06-16T21:43:39.171-05:00</updated><title type='text'>Ruby Conference in Northern Virginia</title><content type='html'>&lt;a href="http://www.rubynation.org"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://www.rubynation.org/images/conference/badges/ruby_attendee_small.png" border="0" alt="RubyNation" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;RubyNation&lt;/strong&gt; is an annual Ruby conference serving the Virginia, West Virginia, Maryland, and Washington, DC areas. This year's RubyNation will happen on &lt;strong&gt;August 1 &amp; 2, 2008&lt;/strong&gt; in Herndon, VA. Please visit the &lt;a href="http://www.rubynation.org"&gt;RubyNation &lt;/a&gt; site for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-4051089034913233684?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/4051089034913233684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=4051089034913233684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/4051089034913233684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/4051089034913233684'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2008/06/ruby-conference-in-northern-virginia.html' title='Ruby Conference in Northern Virginia'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-335803690709374190</id><published>2007-09-21T21:41:00.000-05:00</published><updated>2007-09-22T13:26:12.029-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jruby'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>Railing on JBoss</title><content type='html'>&lt;p&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;I recently successfully deployed a Ruby on Rails app running on jruby that uses ActiveRecord-JDBC adapter to talk to Oracle 10g database to run on JBoss 4.2.1. I used warbler plugin from Nick Seiger to convert the rails app to war file. I basically followed the instructions at this article about warbler (&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://blog.nicksieger.com/articles/2007/09/04/warbler-a-little-birdie-to-introduce-your-rails-app-to-java" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"&gt;&lt;u&gt;&lt;span style="color: rgb(0, 0, 255);font-family:Arial;" &gt;http://blog.nicksieger.com&lt;wbr&gt;/articles/2007/09/04/warbler-a&lt;wbr&gt;-little-birdie-to-introduce&lt;wbr&gt;-your-rails-app-to-java)&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt; and this one on using warbler with JBoss &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://www.advogato.org/person/johnnyb/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"&gt;&lt;u&gt;&lt;span style="color: rgb(0, 0, 255);font-family:Arial;" &gt;http://www.advogato.org/person&lt;wbr&gt;/johnnyb/&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;. Warbler makes it very easy to convert a rails app into a war file.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;p&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;There were a few quirks during this process which are listed below and hopefully these will be helpful to those trying to do the same. Theoretically this should work on any J2EE compliant app server or even Servlet containers.&lt;/span&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li style="color: rgb(0, 0, 0);"&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;I had to uncomment the following line in warble.rb (warbler config file)&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;&lt;span style="color: rgb(102, 102, 102);"&gt;#config.gems = ["ActiveRecord-JDBC", "jruby-openssl"]&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;and change it to &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;&lt;span style="color: rgb(102, 102, 102);"&gt;config.gems = ["rails", "ActiveRecord-JDBC"]&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:Arial;font-size:100%;"  &gt;This packages rails and ActiveRecord-JDBC gems in the war file.&lt;/span&gt;&lt;ul&gt;&lt;li style="color: rgb(0, 0, 0);"&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;To use ActiveRecord-JDBC adapter you need to add the following code to environment.rb file&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;p style="text-align: left;"&gt;       &lt;span style="font-size:100%;"&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p style="text-align: left; color: rgb(102, 102, 102);"&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style="font-style: italic;font-family:Arial;" &gt;if RUBY_PLATFORM =~ /java/&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; color: rgb(102, 102, 102);"&gt;&lt;span style="font-style: italic;font-size:100%;" &gt;       &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style="font-style: italic;"&gt;&lt;span style="font-family:Arial;"&gt;require 'rubygems'&lt;script&gt;&lt;!-- D(["mb","\u003c/font\&gt;\u003c/i\&gt;\n\n\u003cbr\&gt;\u003ci\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;               gem &amp;#39;ActiveRecord-JDBC&amp;#39;\u003c/font\&gt;\u003c/i\&gt;\n\n\u003cbr\&gt;\u003ci\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;               require &amp;#39;jdbc_adapter&amp;#39;\u003c/font\&gt;\u003c/i\&gt;\n\n\u003cbr\&gt;\u003ci\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;           end\u003c/font\&gt;\u003c/i\&gt;\n\u003c/p\&gt;\n\n\u003cp\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;You need to be careful about where in that file you add these lines. They must be added before the line \u003c/font\&gt;\n\n\u003cbr\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt; \u003c/font\&gt;\u003ci\&gt; \u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;Rails::Initializer.run do |config|\u003c/font\&gt;\u003c/i\&gt;\n\n\u003cul\&gt;\n\u003cli\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;This one should be obvious but you need to add the jdbc driver jar to JBoss lib folder. Since I used the default configuration in Jboss I added it to\u003c/font\&gt;\u003ci\&gt; \u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;C:\\opt\\jboss-4.2.1.GA\\server\\default\\lib folder\u003c/font\&gt;\u003c/i\&gt;\u003cfont size\u003d\"2\" face\u003d\"Arial\"\&gt;.\u003c/font\&gt;\u003c/li\&gt;\n\u003cbr\&gt;\n\u003cbr\&gt;\n\u003cbr\&gt;\n\u003c/ul\&gt;\n\u003c/p\&gt;\u003c/div\&gt;\n",0] ); D(["ce"]);  //--&gt;&lt;/script&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; color: rgb(102, 102, 102);"&gt;&lt;span style="font-style: italic;font-size:100%;" &gt;       &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style="font-style: italic;"&gt;&lt;span style="font-family:Arial;"&gt;gem 'ActiveRecord-JDBC&lt;/span&gt;&lt;/i&gt;&lt;i style="font-style: italic;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; color: rgb(102, 102, 102);"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style="font-style: italic;"&gt;&lt;span style="font-family:Arial;"&gt;        require 'jdbc_adapter'&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:100%;" &gt;  &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i style="font-style: italic;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style="font-style: italic; color: rgb(102, 102, 102);"&gt;&lt;span style="font-family:Arial;"&gt;end&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  You need to be careful about where in that file you add these lines. They must be added before the line&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;      &lt;span style="color: rgb(102, 102, 102);font-family:Arial;" &gt;Rails::Initializer.run do |config|&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;  &lt;/p&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li style="color: rgb(0, 0, 0);"&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;This one should be obvious but you need to add the jdbc driver jar to JBoss lib folder. Since I used the default configuration in Jboss I added it to&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt; &lt;span style="font-family:Arial;"&gt;C:\opt\jboss-4.2.1.GA\server\default\lib folder&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;font-size:100%;"  &gt;.&lt;/span&gt;&lt;/li&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-335803690709374190?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/335803690709374190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=335803690709374190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/335803690709374190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/335803690709374190'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2007/09/railing-on-jboss.html' title='Railing on JBoss'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-5817005442010624164</id><published>2007-06-21T00:44:00.000-05:00</published><updated>2007-10-16T06:32:41.912-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Accessing MySql from remote machine in my network</title><content type='html'>Just got my &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Ubuntu&lt;/span&gt; box up and running with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Fiesty&lt;/span&gt; Fawn and installed MySQL server (5.x). The default server does not allow, the MySQL server to be accessed remotely. Besides adding the user to &lt;span style="font-style: italic;"&gt;user's&lt;/span&gt; table in MySQL database, I had to &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;additionally&lt;/span&gt; edit &lt;span style="font-style: italic;"&gt;my.&lt;/span&gt;&lt;span style="font-style: italic;" class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;cnf&lt;/span&gt;&lt;span style="font-style: italic;"&gt; file &lt;/span&gt;in /etc/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;mysql&lt;/span&gt; and change the following setting:&lt;br /&gt;&lt;br /&gt;from&lt;br /&gt;bind-address           = 127.0.0.1&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;&lt;br /&gt;bind-address            = 0.0.0.0&lt;br /&gt;&lt;br /&gt;The IP of 0.0.0.0 allows incoming connection from any host and of course you need to make sure there is not firewall in between blocking the port 3306. Since all this setup sits behind my Linux firewall it is pretty secure and allows me to develop my &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;ROR&lt;/span&gt; apps from the windows box by accessing MySQL databases on another machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-5817005442010624164?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/5817005442010624164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=5817005442010624164' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/5817005442010624164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/5817005442010624164'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2007/06/accessing-mysql-from-remote-machine-in.html' title='Accessing MySql from remote machine in my network'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-8717082733525957336</id><published>2007-02-10T12:23:00.000-05:00</published><updated>2007-02-10T12:24:21.755-05:00</updated><title type='text'>Ruby and Rails Cheat Sheets</title><content type='html'>It is hard to remember all the useful Ruby and Rails utilities that one uses on a regular basis. But then you don't have to, there are some very commonly used Ruby and Rails related cheat sheets &lt;a href="http://cheat.errtheblog.com/b"&gt;here&lt;/a&gt; and more can be easily added and shared.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-8717082733525957336?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/8717082733525957336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=8717082733525957336' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/8717082733525957336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/8717082733525957336'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2007/02/ruby-and-rails-cheat-sheets.html' title='Ruby and Rails Cheat Sheets'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-116192126777203338</id><published>2006-10-26T22:50:00.000-05:00</published><updated>2006-10-27T22:46:23.163-05:00</updated><title type='text'>Rails Plugins Presentation</title><content type='html'>Yesterday at our local Northern Virginia Ruby User group meeting I gave a presentation on Rails Plugins. The presentation can be accessed &lt;a href="http://www.novarug.org/rails_plugins_presentation.ppt"&gt;here&lt;/a&gt;. In this presentation I discuss some general info about Rails plugins followed by the installation, configuration and usage of four useful plugins tabnav, acts_as_authenticated, file_column and acts_as_state_machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-116192126777203338?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/116192126777203338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=116192126777203338' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/116192126777203338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/116192126777203338'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2006/10/rails-plugins-presentation.html' title='Rails Plugins Presentation'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-115959485915175770</id><published>2006-09-30T00:40:00.000-05:00</published><updated>2006-09-30T00:40:59.206-05:00</updated><title type='text'>On Ruby: New JRuby Interview (part 1)</title><content type='html'>&lt;a href="http://on-ruby.blogspot.com/2006/09/new-jruby-interview-part-1.html"&gt;On Ruby: New JRuby Interview (part 1)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-115959485915175770?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/115959485915175770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=115959485915175770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/115959485915175770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/115959485915175770'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2006/09/on-ruby-new-jruby-interview-part-1.html' title='On Ruby: New JRuby Interview (part 1)'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-115722272528645922</id><published>2006-09-02T13:36:00.000-05:00</published><updated>2006-09-02T13:45:44.773-05:00</updated><title type='text'>Upgrade Engines to work with Rails 1.1.6</title><content type='html'>My Rails app at www.saraibooking.com just broke as Textdrive have upgraded Rails to 1.1.6 and the version of Engines, Log Engine and User Engine I had was not compatible with Rails 1.1.6. I removed the folder engines, login_engine and user_engine under RAILS_ROOT/vendor/plugins and installed engines, login_engine and user_engine using &lt;span style="font-style: italic;"&gt;script/plugin&lt;/span&gt;, restarted rails and everything was nice and dandy again. Using engines with Rails is slightly risky in this regard as almost every new version of Rails seems to break them. &lt;a href="http://www.loudthinking.com"&gt;DHH&lt;/a&gt; did not had any good words to say about Engines at RailsConf in Chicago.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-115722272528645922?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/115722272528645922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=115722272528645922' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/115722272528645922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/115722272528645922'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2006/09/upgrade-engines-to-work-with-rails-116.html' title='Upgrade Engines to work with Rails 1.1.6'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-115586203296856930</id><published>2006-08-17T19:37:00.000-05:00</published><updated>2006-08-17T19:47:12.976-05:00</updated><title type='text'>Tabs in Ruby on Rails</title><content type='html'>I am starting to prepare for a presentation for my local &lt;a href="http://www.ruby-lang.org/en/"&gt;Ruby &lt;/a&gt;users group &lt;a href="http://www.novarug.org"&gt;Novarug &lt;/a&gt;and the topic is  cool &lt;a href="http://www.rubyonrails.org"&gt;Ruby on Rails&lt;/a&gt; plugins. In this presentation I will demoing some very useful plugins and in this quest I found a very nifty plugin that provides tabs functionality to RoR applications. It is so easy to setup (isn't that true for all ROR plugins) and in minutes I had the tab functionality added to my RoR application. Check it out &lt;a href="http://blog.seesaw.it/articles/2006/07/23/the-easiest-way-to-add-tabbed-navigation-to-your-rails-app"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-115586203296856930?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chabbewal.blogspot.com/feeds/115586203296856930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12205688&amp;postID=115586203296856930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/115586203296856930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/115586203296856930'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2006/08/tabs-in-ruby-on-rails.html' title='Tabs in Ruby on Rails'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12205688.post-111360660459229279</id><published>2005-04-15T18:05:00.000-05:00</published><updated>2008-01-03T23:58:10.286-05:00</updated><title type='text'>Trying openbox on gentoo</title><content type='html'>Since Gnome is pretty resource intensive desktop environment, I decided to install &lt;a href="http://icculus.org/openbox/"&gt;openbox&lt;/a&gt; Widows Manager on my latest &lt;a href="http://www.gentoo.org"&gt;gentoo&lt;/a&gt; installation. It is certainly very fast to get loaded but there is not much to see. Of course I had to use right click of mouse to see the menu's. Also tried &lt;a href="http://pypanel.sourceforge.net/"&gt;pypanel&lt;/a&gt; which is supposed to help create panels in openbox but still trying to figure out how. If anybody has used pypanel drop me an email to give me some pointers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12205688-111360660459229279?l=chabbewal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/111360660459229279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12205688/posts/default/111360660459229279'/><link rel='alternate' type='text/html' href='http://chabbewal.blogspot.com/2005/04/trying-openbox-on-gentoo.html' title='Trying openbox on gentoo'/><author><name>Navjeet</name><uri>http://www.blogger.com/profile/00725836162507127145</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
