<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>N Rao Lakkakula&#039;s Blog</title>
	<atom:link href="http://nlakkakula.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nlakkakula.wordpress.com</link>
	<description>Daily Technical Observations....</description>
	<lastBuildDate>Sun, 01 Nov 2009 16:40:30 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='nlakkakula.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f0921d680211101dc5cf84aae0b0f354?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>N Rao Lakkakula&#039;s Blog</title>
		<link>http://nlakkakula.wordpress.com</link>
	</image>
			<item>
		<title>How To: Rails with SQL Server 2008</title>
		<link>http://nlakkakula.wordpress.com/2009/11/01/how-to-rails-with-sql-server-2008/</link>
		<comments>http://nlakkakula.wordpress.com/2009/11/01/how-to-rails-with-sql-server-2008/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:40:30 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=173</guid>
		<description><![CDATA[Most common database used with Rails is mySQL but if you ever need to use SQL Server, here is a quick how to.
I am using  Windows Vista, SQL Server 2008, Rails 2.2.
1)  Install  activerecord-sqlserver-adapter gem
 &#62; gem install activerecord-sqlserver-adapter
 
2) Create a new Login for this new database (say testuser) using SQL Server Management Studio

3) Create a new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=173&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg"></a>Most common database used with Rails is mySQL but if you ever need to use SQL Server, here is a quick how to.</p>
<p>I am using  Windows Vista, SQL Server 2008, Rails 2.2.</p>
<p>1)  Install  activerecord-sqlserver-adapter gem</p>
<p> &gt; gem install activerecord-sqlserver-adapter</p>
<p> <a href="http://nlakkakula.files.wordpress.com/2009/11/capture11.jpg"><img class="alignnone size-medium wp-image-176" title="Capture1" src="http://nlakkakula.files.wordpress.com/2009/11/capture11.jpg?w=300&#038;h=129" alt="Capture1" width="300" height="129" /></a></p>
<p>2) Create a new Login for this new database (say testuser) using SQL Server Management Studio</p>
<p><a href="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg"><img title="Capture3" src="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg?w=300&#038;h=189" alt="Capture3" width="300" height="189" /></a></p>
<p>3) Create a new database in SQL Server 2008 for your project (say testproject) and choose testuser as Owner</p>
<p><a href="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg"><img class="alignnone size-medium wp-image-178" title="Capture3" src="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg?w=300&#038;h=189" alt="Capture3" width="300" height="189" /></a></p>
<p>4) Create a new ODBC DNS</p>
<p>Control Panel -&gt; Administrative Tools -&gt; Data Sources (ODBC)</p>
<p><a href="http://nlakkakula.files.wordpress.com/2009/11/capture5.jpg"><img class="alignnone size-medium wp-image-180" title="Capture5" src="http://nlakkakula.files.wordpress.com/2009/11/capture5.jpg?w=300&#038;h=247" alt="Capture5" width="300" height="247" /></a><a href="http://nlakkakula.files.wordpress.com/2009/11/capture4.jpg"></a></p>
<p>Add a new &#8216;User DSN&#8217;,  choose SQL Server,  give a name for DSN (say testprojectconn) then configure SQL Server authentication.</p>
<p>5) Now create your rails application as usual.  Configure db connection using database.yml as follows</p>
<p>  adapter: sqlserver<br />
  mode: odbc<br />
  dsn: testprojectconn<br />
  host: localhost<br />
  username: testuser<br />
  password: testpass<br />
  encoding: utf8</p>
<p>Thats it!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=173&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/11/01/how-to-rails-with-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/11/capture11.jpg?w=300" medium="image">
			<media:title type="html">Capture1</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg?w=300" medium="image">
			<media:title type="html">Capture3</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/11/capture3.jpg?w=300" medium="image">
			<media:title type="html">Capture3</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/11/capture5.jpg?w=300" medium="image">
			<media:title type="html">Capture5</media:title>
		</media:content>
	</item>
		<item>
		<title>How to setup a Cisco VPN Client on CentOS 5.3</title>
		<link>http://nlakkakula.wordpress.com/2009/10/25/how-to-setup-a-cisco-vpn-client-on-centos-5-3/</link>
		<comments>http://nlakkakula.wordpress.com/2009/10/25/how-to-setup-a-cisco-vpn-client-on-centos-5-3/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 03:22:35 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=166</guid>
		<description><![CDATA[installing and using vpnc: a vpn client on linux<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=166&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This blog post deals with VPNC (<a href="http://www.unix-ag.uni-kl.de/~massar/vpnc/">http://www.unix-ag.uni-kl.de/~massar/vpnc/</a>) : an alternative to Cisco&#8217;s linux version client.  If you happy with cisco&#8217;s client and were able to install it successfully then you can skip the rest of the blog. </p>
<p>Most of the information can be found at original sources <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge">http://wiki.centos.org/AdditionalResources/Repositories/RPMForge</a>  and <a href="http://wiki.centos.org/HowTos/vpnc">http://wiki.centos.org/HowTos/vpnc</a> </p>
<p>Only issue you might face is installing yum prorities using yum. That is broken in CentOS 5.3 (atleast til I tried). So here are the steps involved. </p>
<p>1) Install Yum Prorities</p>
<p>Install prorities using rpm instead of yum.</p>
<address><span style="color:#0000ff;">wget </span><span style="color:#0000ff;">http://mirror.centos.org/centos-5/5.3/os/i386/CentOS/yum-priorities-1.1.16-13.el5.centos.noarch.rpm    <br />
</span></address>
<address><span style="color:#0000ff;">rpm -ivh yum-priorities-1.1.16-13.el5.centos.noarch.rpm</span></address>
<address>                     <br />
2) Check if plugin is enabled (see <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge">http://wiki.centos.org/AdditionalResources/Repositories/RPMForge</a> for details)</address>
<p><span style="color:#0000ff;">nano /etc/yum/pluginconf.d/priorities.conf</span></p>
<p>3) Update Proirities for repo files</p>
<p><span style="color:#0000ff;">nano /etc/yum.repos.d/CentOS-Base.repo</span></p>
<p>4) Install rpm forge</p>
<address><span style="color:#0000ff;">wget </span><span style="color:#0000ff;">http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm</span></address>
<address><span style="color:#0000ff;">rpm &#8211;import </span><span style="color:#0000ff;">http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt</span></address>
<address><span style="color:#0000ff;">rpm -K rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm<br />
rpm -i rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm</span></address>
<p>5) Update prority for rpmforge repo file</p>
<address><span style="color:#0000ff;">nano /etc/yum.repos.d/rpmforge.repo</span></address>
<p>6) Update yum to start using priorirites and rpmforge as source.</p>
<address><span style="color:#0000ff;">yum check-update</span></address>
<p>7) install VPNC</p>
<address><span style="color:#0000ff;">yum -y install vpnc</span></address>
<p>Now vpnc is installed.  Follow <a href="http://wiki.centos.org/HowTos/vpnc">http://wiki.centos.org/HowTos/vpnc</a> to know how to use it.</p>
 Tagged: CentOS, Linux, VPN <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=166&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/10/25/how-to-setup-a-cisco-vpn-client-on-centos-5-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Quickly Visualize/Analyze a MySQL Database?</title>
		<link>http://nlakkakula.wordpress.com/2009/10/25/how-to-quickly-visualizeanalyze-a-new-mysql-database/</link>
		<comments>http://nlakkakula.wordpress.com/2009/10/25/how-to-quickly-visualizeanalyze-a-new-mysql-database/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 02:54:44 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Schema]]></category>
		<category><![CDATA[Visualize Schema]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=161</guid>
		<description><![CDATA[quickly visualize a mysql database using schemaspy.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=161&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Once in a while we been in situations where you need to quickly understand/analyze a database given to you by others.  We can go through each table and try to understand but it is usually lot simpler if you can visualize all the tables involved and relationships between those.  Enter SchemaSpy: a free tool to do that.    For sake of specifics, say the database given is MySQL and your pc is running some version of Windows.</p>
<p>A. Download and Install Pre-requsites (if you dont have already)</p>
<ul>
<li>Graphviz  (<a href="http://www.graphviz.org/Download_windows.php">http://www.graphviz.org/Download_windows.php</a>)
<ul>
<li>use MSI installer (see warnings specific to vista on the download page)</li>
</ul>
</li>
<li>Java (<a href="http://www.java.com/en/download/index.jsp">http://www.java.com/en/download/index.jsp</a>)
<ul>
<li>Download and install Java as usual.</li>
</ul>
</li>
<li>JDBC driver for mySQL ( <a href="http://dev.mysql.com/downloads/connector/j/5.1.html">http://dev.mysql.com/downloads/connector/j/5.1.html</a>)
<ul>
<li>Download driver and extract to a known location (say C:\mydblayout)</li>
</ul>
</li>
</ul>
<p>B. Download latest SchemaSpy Jar File  from <a href="http://sourceforge.net/projects/schemaspy/files/">http://sourceforge.net/projects/schemaspy/files/</a>   (In my case it is schemaSpy_4.1.1.jar)  to a known location (using same C:\mydblayout)</p>
<p>Now run the schemaspy to generate report (html format) for database &#8221;mytestdb&#8221;  which is sitting at a local mySQL server.</p>
<address><strong><span style="color:#0000ff;">C:\mydblayout&gt;java -jar schemaSpy_4.1.1.jar -t mysql </span></strong></address>
<address><strong><span style="color:#0000ff;"> </span></strong><strong><span style="color:#0000ff;">-dp mysql-connector-java-5.1.10\mysql-connector-java-5.1.10\mysql-connector-java-5.1.10-bin.jar </span></strong></address>
<address><strong><span style="color:#0000ff;">-db mysql -host localhost -u root -p mysecretpass -o mytestdb_report</span></strong></address>
<p>See how -dp flag is used to point to jdbc driver.  The above command creates a folder called &#8220;mytestdb_report&#8221;  with all the nice html files.  Just open the &#8220;index.html&#8221; file.</p>
<p>For example output see <a href="http://schemaspy.sourceforge.net/unifieddb/characters/index.html">http://schemaspy.sourceforge.net/unifieddb/characters/index.html</a></p>
<p>For more details, look at web page of  this wonderful SchemaSpy (<a href="http://schemaspy.sourceforge.net/">http://schemaspy.sourceforge.net/</a>) written by John Currier.</p>
 Tagged: MySQL, Schema, Visualize Schema <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=161&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/10/25/how-to-quickly-visualizeanalyze-a-new-mysql-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
		<item>
		<title>Having trouble debugging VS 2003/2005 Projects after upgrading to IE 8 ?</title>
		<link>http://nlakkakula.wordpress.com/2009/09/11/having-trouble-debugging-vs-20032005-projects-after-upgrading-to-ie-8/</link>
		<comments>http://nlakkakula.wordpress.com/2009/09/11/having-trouble-debugging-vs-20032005-projects-after-upgrading-to-ie-8/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 14:38:38 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=159</guid>
		<description><![CDATA[Close all IE8 windows&#8230;
if you have any IE window open, then VS cant start debugger&#8230;.
Its not a problem with VS2008
Close all IE8 windows&#8230;
if you have any IE window open, then VS cant start debugger&#8230;.
Its not a problem with VS2008 onwards.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=159&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Close all IE8 windows&#8230;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">if you have any IE window open, then VS cant start debugger&#8230;.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Its not a problem with VS2008</div>
<p>Close all IE8 windows&#8230;</p>
<p>if you have any IE window open, then VS cant start debugger&#8230;.</p>
<p>Its not a problem with VS2008 onwards.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=159&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/09/11/having-trouble-debugging-vs-20032005-projects-after-upgrading-to-ie-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
		<item>
		<title>Security Hole in IPhone with AT&amp;T</title>
		<link>http://nlakkakula.wordpress.com/2009/09/05/security-hole-in-iphone-and-att/</link>
		<comments>http://nlakkakula.wordpress.com/2009/09/05/security-hole-in-iphone-and-att/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 14:53:14 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Iphone]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Voice mail]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=145</guid>
		<description><![CDATA[IPhone voicemail is exposed to world unless you set password. How to setup password is explained.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=145&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To be more precise, the security hole is with the network (AT&amp;T network) IPhone uses. I noticed this problem while working on a Voice-enabled application using Asterisk and surprised to see that my voicemail is wideopen to public. Then later found out that this has been reported earlier by various folks (<a href="http://friendsofdave.org/node/910">here</a> and<a href="http://www.oreillynet.com/onlamp/blog/2007/06/iphone_users_att_cingular_voic.html"> here</a>) but seems like it is not fixed yet. So if you own an IPhone (or any other phone for that matter) with AT&amp;T network, please keep  reading and I show you how to fix the problem yourself.</p>
<h2><span style="color:#3366ff;">So what is the problem?</span></h2>
<p>Others can listen to your voice mail, change your personal greeting and other settings.   AT&amp;T voicemail identifies user based on incoming caller ID, so if callerID matches the phone # you are calling from, it assumes that you are calling yourself to check voice mail then it simply goes to voice mail (if you don&#8217;t have password set).</p>
<h2><span style="color:#3366ff;">Am I protected or Not?</span></h2>
<p> Call yourself with your phone (by dialing 1 or dialing your number).  If you are prompted for a password, then you are fine.  If it takes your directly to  voice mail menu, then you are NOT secured. See how to set password below.</p>
<h2><span style="color:#3366ff;">How to protect my voice mail?</span></h2>
<p>Dial 1 to call Voicemail from your phone</p>
<p>Press * to get to the voicemail Main Menu</p>
<ul>
<li>Press 4 for Personal Options</li>
<li>Press 2 for Administrative Options</li>
<li>Press 1 for Passwords</li>
<li>Press 2 to turn password on</li>
<li>Select any random 4– to 14–digit password</li>
</ul>
<p> </p>
<h2><span style="color:#3366ff;">Why I am blogging this?</span></h2>
<p> I don&#8217;t know if new AT&amp;T users may be forced to set password or not, but when I got my phone couple of years back and my voicemail was setup without password.  It ended up that most of my friends with IPhone also don&#8217;t have password setup for voicemail because simply they are not aware of the security hole.   With easy access to Open source PBX like Asterisk or spoofing calling cards, its not hard to exploit this security hole.  So if this blog helps people to realize how important is to set password, then my job is done.</p>
<h2><span style="color:#3366ff;">Disclaimer</span></h2>
<p><em>The opinions expressed in this blog post are my own and not of any company. The usual standard disclaimer applies, especially the fact that I am not liable for any damages caused by direct or  indirect use of the information.  I bear NO responsibility for content or misuse of this information or any derivatives thereof.  <em>This post is NO WAY intended  to blame anyone, especially  AT&amp;T.  They may have already posted about this issue somewhere on their website. </em></em></p>
 Tagged: Asterisk, Iphone, Security, Voice mail <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=145&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/09/05/security-hole-in-iphone-and-att/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make old ASP.NET MVC Design Templates work with new Release Candidate</title>
		<link>http://nlakkakula.wordpress.com/2009/02/21/how-to-make-old-aspnet-mvc-design-templates/</link>
		<comments>http://nlakkakula.wordpress.com/2009/02/21/how-to-make-old-aspnet-mvc-design-templates/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 02:18:15 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Design templates]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=126</guid>
		<description><![CDATA[Making first version of design templates released before MVC Release Candidate 1 to work with lastest release is explained in short.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=126&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you download any Pre-Janauray Design template from <a href="http://www.asp.net/mvc/gallery/default.aspx?supportsjs=true">http://www.asp.net/mvc/gallery/default.aspx?supportsjs=true</a> and trying to test with latest MVC  Release (after following ReadMe.txt),  chances of you getting an ugly error like below are real high.</p>
<p style="text-align:center;"><a href="http://nlakkakula.files.wordpress.com/2009/02/mvctemplate_capture1.jpg"><img class="aligncenter size-full wp-image-127" title="Error" src="http://nlakkakula.files.wordpress.com/2009/02/mvctemplate_capture1.jpg?w=480&#038;h=180" alt="Error" width="480" height="180" /></a></p>
<p>So how to make these template with new version? You can with very few changes to site.master page (This following example is for Bluebubbles template but this may work for most of the templates)</p>
<p>Views/Shared/Site.Master</p>
<p style="text-align:center;">Page Directives Before<a href="http://nlakkakula.files.wordpress.com/2009/02/capture23.jpg"><img class="size-full wp-image-128 aligncenter" title="Before" src="http://nlakkakula.files.wordpress.com/2009/02/capture23.jpg?w=480&#038;h=42" alt="Directives before changes" width="480" height="42" /></a></p>
<p>Page Directives After Changes</p>
<p style="text-align:center;"><a href="http://nlakkakula.files.wordpress.com/2009/02/capture34.jpg"><img class="aligncenter size-full wp-image-134" title="capture34" src="http://nlakkakula.files.wordpress.com/2009/02/capture34.jpg?w=480&#038;h=59" alt="capture34" width="480" height="59" /></a></p>
<p>Head Section Before</p>
<p style="text-align:center;"><a href="http://nlakkakula.files.wordpress.com/2009/02/capture4.jpg"><img class="aligncenter size-full wp-image-130" title="capture4" src="http://nlakkakula.files.wordpress.com/2009/02/capture4.jpg?w=479&#038;h=98" alt="capture4" width="479" height="98" /></a></p>
<p>Head Section After Changes</p>
<p style="text-align:center;"><a href="http://nlakkakula.files.wordpress.com/2009/02/capture5.jpg"><img class="aligncenter size-full wp-image-131" title="capture5" src="http://nlakkakula.files.wordpress.com/2009/02/capture5.jpg?w=480&#038;h=127" alt="capture5" width="480" height="127" /></a></p>
 Tagged: ASP.NET MVC, Design templates <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=126&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/02/21/how-to-make-old-aspnet-mvc-design-templates/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/mvctemplate_capture1.jpg" medium="image">
			<media:title type="html">Error</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture23.jpg" medium="image">
			<media:title type="html">Before</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture34.jpg" medium="image">
			<media:title type="html">capture34</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture4.jpg" medium="image">
			<media:title type="html">capture4</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture5.jpg" medium="image">
			<media:title type="html">capture5</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a generic &#8220;Please Wait&#8230;&#8221; page for ASP.NET</title>
		<link>http://nlakkakula.wordpress.com/2009/02/08/creating-generic-loading-page-for-aspnet/</link>
		<comments>http://nlakkakula.wordpress.com/2009/02/08/creating-generic-loading-page-for-aspnet/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 06:00:08 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=108</guid>
		<description><![CDATA[I was looking at Peter Bromberg&#8217;s post &#8221;Build a dynamic progress page&#8221; which is about creating a &#8220;Loading&#8221; page for time-taking asp.net webpages. The problem with Peter&#8217;s solution is if your destination page has more than one query string params, then it wont work. Another small problem is non-standard DOM access which wont work in non-IE browsers [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=108&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-family:Verdana;">I was looking at Peter Bromberg&#8217;s post &#8221;<a href="http://www.eggheadcafe.com/articles/20050108.asp" target="_blank">Build a dynamic progress page</a>&#8221; which is about creating a &#8220;Loading&#8221; page for time-taking asp.net webpages. </span><span style="font-family:Verdana;">The problem with Peter&#8217;s solution is if your destination page has more than one query string params, then it wont work. Another small problem is non-standard DOM access which wont work in non-IE browsers (it was written almost five years back so it might not a big concern at that time)</span></p>
<p><span style="font-family:Verdana;">Here is the modified code to make it work with query string AND non-IE browsers.</span></p>
<p><span style="font-family:Verdana;">The basic idea is having a transient &#8216;Loading&#8217; page which loads the time-taking page in the background and in meantime show a nice animated progress bar. Lets name our middle page &#8216;loading.aspx&#8217;</span></p>
<p><span style="font-family:Verdana;"><strong></strong></span></p>
<p><span style="font-family:Verdana;"><strong><span style="text-decoration:underline;">loading.aspx</span></strong></span></p>
<p><span style="font-family:Verdana;"><strong></strong></span> <span style="font-family:Verdana;">Header section has javascript code to show, hide progress bar while loading the destination page</span></p>
<p><span style="font-family:Verdana;">       <a href="http://nlakkakula.files.wordpress.com/2009/02/capture1.jpg"><img class="aligncenter size-full wp-image-111" title="capture1" src="http://nlakkakula.files.wordpress.com/2009/02/capture1.jpg?w=479&#038;h=310" alt="capture1" width="479" height="310" /></a> </span></p>
<p>Body has nothing but visual element for progress bar. Note that we are calling Begin() on body load and End() on unload.</p>
<p style="text-align:center;"> </p>
<p><a href="http://nlakkakula.files.wordpress.com/2009/02/capture2.jpg"><img class="aligncenter size-full wp-image-112" title="capture2" src="http://nlakkakula.files.wordpress.com/2009/02/capture2.jpg?w=480&#038;h=151" alt="capture2" width="480" height="151" /></a> </p>
<p>loading.aspx.cs</p>
<p>In the code-behind, destinal URL is generated.</p>
<p style="text-align:center;"> </p>
<p><a href="http://nlakkakula.files.wordpress.com/2009/02/capture31.jpg"><img class="aligncenter size-full wp-image-121" title="capture31" src="http://nlakkakula.files.wordpress.com/2009/02/capture31.jpg?w=480&#038;h=252" alt="capture31" width="480" height="252" /></a> </p>
<p>Finally, to use this page to call a time-consuming page (say  longloadingpage.aspx) which takes ID1 and ID2 as query params  simply call</p>
<p>/loading.aspx?destPage=longloadingpage.aspx?ID1=123&amp;ID2=345</p>
 Tagged: ASP.NET, C# <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=108&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/02/08/creating-generic-loading-page-for-aspnet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture1.jpg" medium="image">
			<media:title type="html">capture1</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture2.jpg" medium="image">
			<media:title type="html">capture2</media:title>
		</media:content>

		<media:content url="http://nlakkakula.files.wordpress.com/2009/02/capture31.jpg" medium="image">
			<media:title type="html">capture31</media:title>
		</media:content>
	</item>
		<item>
		<title>Houston Techfest</title>
		<link>http://nlakkakula.wordpress.com/2009/01/21/houston-techfest/</link>
		<comments>http://nlakkakula.wordpress.com/2009/01/21/houston-techfest/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 04:30:16 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=106</guid>
		<description><![CDATA[For folks in houston area, remember that this weekend we have wonderful Techfest at University of Houston. Visit http://www.houstontechfest.com and register.  It features lot of exciting sessions in .NET, Java and Rails. And best of all its free.
See you there!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=106&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For folks in houston area, remember that this weekend we have wonderful Techfest at University of Houston. Visit http://www.houstontechfest.com and register.  It features lot of exciting sessions in .NET, Java and Rails. And best of all its free.</p>
<p>See you there!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=106&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2009/01/21/houston-techfest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
		<item>
		<title>10 Steps to deploy your RubyonRails Application on Windows Vista/2008 using Apache and Mongrel cluster</title>
		<link>http://nlakkakula.wordpress.com/2008/11/24/10-steps-for-deploying-your-ruby-on-rails-application-on-a-windows-server-2008-apache-mongrel-cluster/</link>
		<comments>http://nlakkakula.wordpress.com/2008/11/24/10-steps-for-deploying-your-ruby-on-rails-application-on-a-windows-server-2008-apache-mongrel-cluster/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 05:22:54 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mongrel Cluster]]></category>
		<category><![CDATA[Production Setup]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=96</guid>
		<description><![CDATA[Settingup a Production environment on Windows for RubyonRails using Apache Proxy and Mongrel cluster.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=96&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wrote a <a href="http://nlakkakula.wordpress.com/2007/07/19/setting-up-rails-production-server-using-apache2-mongrel-cluster-on-fedora-core-5/">similar blog post</a> last year if you are interested on setting up a production server on Linux( BTW which made lot simpler by Passenger now and recommended way to do it). But there are some cases, we have to deploy to MS servers. In the following article lets us look at doing the same on a Windows 2008 Server (I think it works for windows XP or 2003 too).</p>
<p>If you are like me, you usually develop RoR applications on linux (I am talking about non-mac people, anyway&#8230;).  My setup is usually looks like this : XUbuntu + Netbeans  + Mysql/Sqlite3 + Apache + Phusion Passanger.  Assuming you got all your development done andi it&#8217;s called  &#8220;MyApp&#8221;.</p>
<p><strong>On Windows 2008 Box</strong></p>
<p><strong>Step 1:  Install Ruby, gems and rails</strong></p>
<p>Get <a href="http://rubyforge.org/frs/download.php/29263/ruby186-26.exe">Ruby 1.8.6 One-Click Installer</a> (from http://www.ruby-lang.org/en/downloads/) and make sure to install gems.</p>
<p>Then installing rails is a breeze. Open a command line window and type</p>
<address>gem install rails &#8211;include-dependencies</address>
<p><strong>Step 2: Install mongrel &amp; mongrel_service</strong></p>
<address>gem install mongrel</address>
<address>gem install mongrel_service</address>
<p><strong>Step 3 : Install Apache and enable required modules</strong></p>
<p>A. Get Latest msi version for windows (currently <a href="http://mirror.jimbojay.com/apache/httpd/binaries/win32/apache_2.2.10-win32-x86-no_ssl.msi">apache_2.2.10-win32-x86-no_ssl.msi</a>) from http://httpd.apache.org/download.cgi</p>
<p>B. Install as a service.</p>
<p>C. Enable required modules by uncommenting these following line in httpd.conf file (which can be found at C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\</p>
<p>if you followed the default installation)</p>
<address>LoadModule rewrite_module modules/mod_rewrite.so</address>
<address>LoadModule proxy_module modules/mod_proxy.so</address>
<address>LoadModule proxy_balancer_module modules/mod_proxy_balancer.so</address>
<address>LoadModule proxy_http_module modules/mod_proxy_http.so</address>
<p>D. Start the server to makesure it starts and runs OK. If there is a problem with config file you would see an error.</p>
<p><strong>Step 4 : Install database drivers </strong></p>
<p>This really depends on your database. Remember that for sqlite3, if you are having trouble installing latest</p>
<p>drivers, try giving a version no as follows.</p>
<address>gem install &#8211;version 1.2.3 sqlite3-ruby</address>
<p><strong>Step 5 : Create a skeleton rails application</strong></p>
<p>I am assuming we are keeping our rails application in C:\railsapps\</p>
<p>So create the new rails application by changing to that directory and running</p>
<address>rails Myapp</address>
<p>The reason for creating a skeleton instead of just copying our application from Linux, is that the way some files are created on windows may not be same as linux.  So let it create a dummy app and test it to make sure, its able to pullup the welcome page.</p>
<p><strong>Step 6 : Copy your application Files over to windows</strong></p>
<p>The directories usually copy are</p>
<address>app/      all directories below<br />
</address>
<address>public/   any static files you created,  directories  stylesheets, javascripts and images.</address>
<address>config/   routes.rb, database.yml</address>
<address>db/        schema.rb </address>
<p>(Again, this is highly dependent on your application. May be you didn&#8217;t have any custom javascripts or stylesheets in that case you could skip public/ folder all together)</p>
<p><strong>Step 7:  Load Database Schema into production db</strong></p>
<address>rake db:schema:load RAILS_ENV=production</address>
<address></address>
<p><strong>Step 8 : Create Multiple Mongrel Server Instances and start them as automatic </strong></p>
<p>I am creating 3 instances here</p>
<address>mongrel_rails service::install -N mongrel_Myapp1 -p 3001 -e production -c c:\railsapps\Myapp</address>
<address>mongrel_rails service::install -N mongrel_Myapp2 -p 3002 -e production -c c:\railsapps\Myapp</address>
<address>mongrel_rails service::install -N mongrel_Myapp3 -p 3003 -e production -c c:\railsapps\Myapp</address>
<p>which creates three services (you could see them Start&gt;&gt;Administrative Tools &gt;&gt; Services Panel). By default the services are created as  &#8220;Startup Type &#8212; Manual&#8221;. Set that to &#8220;Automatic&#8221; so that they will start back again if you reboot the server.</p>
<p><strong>Step 9: Setup Apache </strong></p>
<p class="text">In the apache&#8217;s httpd.conf file make sure to have these following lines</p>
<address># Virtual hosts</address>
<address>Include conf/extra/httpd-vhosts.conf</address>
<p>Then make your  conf/extra/httpd-vhosts.conf  File look like this</p>
<p>#&#8212;&#8212;- Start of http-vhosts.conf file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<address>NameVirtualHost *:80</address>
<address>#Proxy balancer section (create one for each ruby app cluster)</address>
<address>&lt;Proxy balancer://Myapp_cluster&gt;</address>
<address>BalancerMember http://127.0.0.1:3001</address>
<address>BalancerMember http://127.0.0.1:3002</address>
<address>BalancerMember http://127.0.0.1:3003</address>
<address>&lt;/Proxy&gt;</address>
<address>&lt;VirtualHost *:80&gt;</address>
<address>DocumentRoot &#8220;C:/railsapps/Myapp/public&#8221;</address>
<address>ErrorLog &#8220;logs/Myapp-error.log&#8221;</address>
<address>CustomLog &#8220;logs/Myapp-access.log&#8221; common</address>
<address></address>
<address>&lt;Directory C:/railsapps/Myapp/public/ &gt;</address>
<address>Options Indexes FollowSymLinks MultiViews</address>
<address>AllowOverride All</address>
<address>Order allow,deny</address>
<address>allow from all</address>
<address>&lt;/Directory&gt;</address>
<address></address>
<address>RewriteEngine On</address>
<address># Rewrite index to check for static files</address>
<address>RewriteRule ^/$ /index.html [QSA] </address>
<address># Rewrite to check for Rails cached pages</address>
<address>RewriteRule ^([^.]+)$ $1.html [QSA]</address>
<address># Redirect all non-static requests to cluster</address>
<address>RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f</address>
<address>RewriteRule ^/(.*)$ balancer://Myapp_cluster%{REQUEST_URI} [P,QSA,L]</address>
<address>&lt;/VirtualHost&gt;</address>
<address>#&#8212;&#8212;- End of http-vhosts.conf file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</address>
<p>If you ever used apache&#8217;s mod_rewrite module then you dont need any explanation. If you don&#8217;t, then breif explanation wont make much sense to you either&#8230;.</p>
<p>Becareful with name of Proxy balancer and make sure to use exact name in last RewriteRule (in the above case its Myapp_cluster), then you should be fine.</p>
<p><strong>Step 10 :  Start the mongrel services and Restart Apache.</strong></p>
<p>Now when you go to http://localhost/  you should be sent to one of the 3 servers of balancer and see the application.  If you see broken images or ugly layout, then it means you didnt copy my &#8220;http-vhosts.conf&#8221; file properly!  Have a careful look at &lt;Directory&gt; directive again. You would know.</p>
<p>Happy programming and happy holidays.  Ciao.</p>
<p>p.s.  If you want to run multiple rails applications on same server like MyApp1, MyApp2&#8230;., have a look at rails.conf I used in &#8220;<a href="http://nlakkakula.wordpress.com/2007/07/19/setting-up-rails-production-server-using-apache2-mongrel-cluster-on-fedora-core-5/">Fedora production setup</a>&#8220;. By adding another balancer and modifing RewriteRules littlebit, its not that tough.</p>
 Tagged: Apache, Mongrel Cluster, Production Setup, Rails, Windows Server, Windows Vista <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=96&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2008/11/24/10-steps-for-deploying-your-ruby-on-rails-application-on-a-windows-server-2008-apache-mongrel-cluster/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
		<item>
		<title>Removing Additional White-Spaces in Sentence (C#)</title>
		<link>http://nlakkakula.wordpress.com/2008/09/16/removing-additional-white-spaces-in-sentence-c/</link>
		<comments>http://nlakkakula.wordpress.com/2008/09/16/removing-additional-white-spaces-in-sentence-c/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 02:03:16 +0000</pubDate>
		<dc:creator>Bob Lakkakula</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://nlakkakula.wordpress.com/?p=83</guid>
		<description><![CDATA[One of my co-workers asked me if I know on top of my head to remove additional white spaces in a sentence using C#.   We all know that Trim() removes white spaces at front and end&#8230;. and &#8220;Replace&#8221; can be used to remove all white spaces in string   BUT  he dont want to remove all spaces [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=83&subd=nlakkakula&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of my co-workers asked me if I know on top of my head to remove additional white spaces in a sentence using C#.   We all know that Trim() removes white spaces at front and end&#8230;. and &#8220;Replace&#8221; can be used to remove all white spaces in string   BUT  he dont want to remove all spaces &#8230;he just wants to remove extra spaces if any&#8230;.</p>
<p>Input :  This is              a test sentence   with    some                 spaces<br />
Desired Output :   This is a test sentence with some spaces</p>
<div>Using RegEx here is the way, if you need it&#8230;. </div>
<blockquote>
<div>
<p><span style="color:#333399;">System.Text.RegularExpressions.Regex.Replace(input, @&#8221;\s+&#8221;, &#8221; &#8220;);</span></div>
</blockquote>
<p>Remember that this removes all whitespace characters including tabs, newlines  etc&#8230;  which is he wants anyway!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nlakkakula.wordpress.com/83/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nlakkakula.wordpress.com/83/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nlakkakula.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nlakkakula.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nlakkakula.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nlakkakula.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nlakkakula.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nlakkakula.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nlakkakula.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nlakkakula.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nlakkakula.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nlakkakula.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nlakkakula.wordpress.com&blog=1169014&post=83&subd=nlakkakula&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://nlakkakula.wordpress.com/2008/09/16/removing-additional-white-spaces-in-sentence-c/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Bob</media:title>
		</media:content>
	</item>
	</channel>
</rss>