<?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>Balu Blogs</title>
	<atom:link href="http://balublogs.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://balublogs.wordpress.com</link>
	<description>Balu Blogs</description>
	<lastBuildDate>Fri, 11 Mar 2011 09:06:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='balublogs.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Balu Blogs</title>
		<link>http://balublogs.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://balublogs.wordpress.com/osd.xml" title="Balu Blogs" />
	<atom:link rel='hub' href='http://balublogs.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Google Maps Navigation is not yet available in your location</title>
		<link>http://balublogs.wordpress.com/2011/03/11/google-maps-navigation/</link>
		<comments>http://balublogs.wordpress.com/2011/03/11/google-maps-navigation/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 08:59:50 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[Balu Android]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[balumohan ts]]></category>
		<category><![CDATA[Google Maps Navigation is not yet available in your location]]></category>
		<category><![CDATA[google maps not working]]></category>
		<category><![CDATA[google maps not working in samsung galaxy s]]></category>
		<category><![CDATA[Google navigation]]></category>
		<category><![CDATA[navigation not working]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=81</guid>
		<description><![CDATA[Today my point is about Google maps Navigation in Android phones. Its the same thing like OVI maps for Nokia. But the Google Maps Navigation wont work in India. It works only in US. So currently its a useless piece of program whose output is just an alert &#8220;Google Maps Navigation is not yet available [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=81&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today my point is about <strong>Google maps Navigation in Android phones.</strong></p>
<p>Its the same thing like OVI maps for Nokia. But the Google Maps Navigation wont work in India. It works only in US. So currently its a useless piece of program whose output is just an alert &#8220;Google Maps Navigation is not yet available in your location&#8221;.</p>
<p>But now we have got an alternative. A BRUT way..</p>
<p>xda-developers are providing brut google maps which will allow people from India also to use Google Navigation.</p>
<ul>
<li>worldwide navigation using Google Maps Directions</li>
<li> map tiles caching on SD card</li>
<li>force-enable MT. If you&#8217;re on Eclair or some custom Donut and don&#8217;t have multitouch zooming, then maybe this will enable it.</li>
<li>force-enable Buzz feature</li>
<li>fix for map shift issue in China</li>
<li>option to hide zoom buttons</li>
<li>installable on non-rooted devices</li>
<li>could be installed beside original app</li>
</ul>
<p>Want to try??? http://forum.xda-developers.com/showthread.php?t=630887</p>
<p>But always use the renamed one. As when we try to reinstall google navigation it will pop up an error. Its in a read only state.</p>
<p>Its working for me <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=81&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2011/03/11/google-maps-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>Cannot resolve collation conflict for equal to operation</title>
		<link>http://balublogs.wordpress.com/2011/02/15/cannot-resolve-collation-conflict-for-equal-to-operation/</link>
		<comments>http://balublogs.wordpress.com/2011/02/15/cannot-resolve-collation-conflict-for-equal-to-operation/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 14:15:52 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[bals]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balu blog]]></category>
		<category><![CDATA[balublogs]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[Cannot resolve collation conflict for equal to operation]]></category>
		<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=78</guid>
		<description><![CDATA[Recently I ran into an issue in MS SQL when ever I tried to run an sp. I was getting an error message like &#8216;Cannot resolve collation conflict for equal to operation&#8217;. Anyways I got the solution. So thought of including a quick note on the issue. This issue can occur in the following areas. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=78&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I ran into an issue in MS SQL when ever I tried to run an sp. I was getting an error message like &#8216;Cannot resolve collation conflict for equal to operation&#8217;. Anyways I got the solution. So thought of including a quick note on the issue.</p>
<p>This issue can occur in the following areas.<br />
Collation can affect following areas:</p>
<p>While using tempdb<br />
Join statements<br />
UDF (My issue was in here)<br />
Where portions in queries</p>
<p>This issue occurs when the collation of the column that are being compared like in &#8216;=&#8217; or &#8216;&lt;&#8217; or &#8216;&gt;&#8217; or &#8216;like&#8217; are different. So if we change the collation of one of the column to that of the other we can remove this issue.<br />
Like:<br />
<em><span style="color:#000080;">where table1.[column] collate SQL_Latin1_General_Cp437_CI_AI = table2.[column]</span></em></p>
<p>Here we changed the collation of the table.column to that of table2.column.</p>
<p>The best way to remove this kind of error is to set the collation of the columns that are being used to the database default. This can be done by using like below</p>
<p><em><span style="color:#000080;">WHERE table1.[column] COLLATE DATABASE_DEFAULT</span></em><br />
<em><span style="color:#000080;">= table2.[column] COLLATE DATABASE_DEFAULT</span></em></p>
<p>In case of this issue while using temporary tables, it can be because the db is in another collation with that of the temp db. So while using tempdb in where clause or joins, we just have to change the collation of the temp db to the database default.</p>
<p>So,</p>
<p>If this error msg pops up better use <em><span style="color:#000080;">COLLATE DATABASE_DEFAULT</span></em></p>
<p>Cheers&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=78&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2011/02/15/cannot-resolve-collation-conflict-for-equal-to-operation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>Ferrari with Andriod</title>
		<link>http://balublogs.wordpress.com/2010/11/19/ferrari-with-andriod/</link>
		<comments>http://balublogs.wordpress.com/2010/11/19/ferrari-with-andriod/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 05:22:21 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[andriod ferrari]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[ferrari]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=75</guid>
		<description><![CDATA[All you Ferrari Lovers, Acer launched new Andriod phone in India.. Specifications: Qualcomm Snapdragon mobile processor 512 MB RAM 5MP camera capable of recording high-definition video 3.5 inch touchscreen 108 MB onboard memory 2.1 Andriod The handset will be costing around 30000. Check this out!! http://onlygizmos.com/acer-ferrari-android-phone-arrives-in-india-with-expected-stiff-price-tag/2010/09/ &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=75&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>All you <strong><span style="color:#ff0000;">Ferrari Lovers, Acer launched new Andriod phone in India..</p>
<p>Specifications:</p>
<p>Qualcomm Snapdragon mobile processor</p>
<p>512 MB RAM</p>
<p>5MP camera capable of recording high-definition video</p>
<p>3.5 inch touchscreen</p>
<p>108 MB onboard memory <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>2.1 Andriod</p>
<p>The handset will be costing around 30000.</p>
<p>Check this out!!</p>
<p>http://onlygizmos.com/acer-ferrari-android-phone-arrives-in-india-with-expected-stiff-price-tag/2010/09/</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=75&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/11/19/ferrari-with-andriod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>ModelGlue Debugger Addon Firefox</title>
		<link>http://balublogs.wordpress.com/2010/11/18/modelglue-debugger-addon-firefox/</link>
		<comments>http://balublogs.wordpress.com/2010/11/18/modelglue-debugger-addon-firefox/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 12:25:41 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[addon]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[digitalmesh]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[model glue]]></category>
		<category><![CDATA[modelglue]]></category>
		<category><![CDATA[Modelglue addon for firefox]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=72</guid>
		<description><![CDATA[Chris Blackwell developed a cool add on for firefox which can be used along with modelglue gesture. Check this out: http://groups.google.com/group/model-glue/browse_thread/thread/256ac11d7ff05a0f &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=72&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Chris Blackwell developed a cool add on for firefox which can be used along with modelglue gesture.</p>
<p>Check this out:</p>
<p>http://groups.google.com/group/model-glue/browse_thread/thread/256ac11d7ff05a0f</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=72&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/11/18/modelglue-debugger-addon-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>Firebug</title>
		<link>http://balublogs.wordpress.com/2010/11/09/firebug/</link>
		<comments>http://balublogs.wordpress.com/2010/11/09/firebug/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 12:33:41 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balumohan ts]]></category>
		<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firebug in ie]]></category>
		<category><![CDATA[firebuglite]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=66</guid>
		<description><![CDATA[Are you a lover of firebug and would like to get it in other browsers? Check this out.. http://getfirebug.com/firebuglite<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=66&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Are you a lover of firebug and would like to get it in other browsers?</p>
<p>Check this out..</p>
<p>http://getfirebug.com/firebuglite</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=66&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/11/09/firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>javascript after page execution</title>
		<link>http://balublogs.wordpress.com/2010/11/09/javascript-after-page-execution/</link>
		<comments>http://balublogs.wordpress.com/2010/11/09/javascript-after-page-execution/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 10:09:43 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[ajaxonload]]></category>
		<category><![CDATA[bals]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[balumohan ts]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[function after page load]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript after page load]]></category>
		<category><![CDATA[javascript after page load coldfusion]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[page complete javascript]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=64</guid>
		<description><![CDATA[OK. Here I&#8217;ll explain with a scenario. I wanted to execute a javascript function after a cfwindow completes its loading. Here I am changing the state of a radio group according to some calculations. The problem here was that the javascript function was called even before the page completes its loading and the script was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=64&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OK. Here I&#8217;ll explain with a scenario. I wanted to execute a javascript function after a cfwindow completes its loading. Here I am changing the state of a radio group according to some calculations. The problem here was that the javascript function was called even before the page completes its loading and the script was not getting the radio input control.</p>
<p>The rescuer:</p>
<p>ajaxonload</p>
<p>Ajaxonload will be called just below the radio control. By this when the page is loading the javascript will be called only after the controls are generated.</p>
<p><span style="color:#333399;">&lt;cfset ajaxonload(&#8216;changeSelection&#8217;)&gt;</span></p>
<p>By the way it may be so simple. But it took a hell lot of time in my development. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8230; So thought to share..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=64&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/11/09/javascript-after-page-execution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>Excel File Creation Using POI</title>
		<link>http://balublogs.wordpress.com/2010/11/09/excel-file-creation-using-poi/</link>
		<comments>http://balublogs.wordpress.com/2010/11/09/excel-file-creation-using-poi/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 09:51:46 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[bals.balu]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[balumohan ts]]></category>
		<category><![CDATA[coldfusion excel]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[excel coldfusion]]></category>
		<category><![CDATA[excel creation]]></category>
		<category><![CDATA[export to excel in coldfusion]]></category>
		<category><![CDATA[poi]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=60</guid>
		<description><![CDATA[Normally we create Excel files in coldfusion by the simple cfoutput with table structure and assigning it to a file with extension xls. But by this method we can find that sometimes the excel sheet is having special characters filled up. So here comes a old “NEW” method for the rescue. ie Excel File Creation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=60&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Normally we create Excel files in coldfusion by the simple cfoutput  with table structure and assigning it to a file with extension xls. But  by this method we can find that sometimes the excel sheet is having  special characters filled up. So here comes a old “NEW” method for the  rescue. ie Excel File Creation using POI. Now this method is used as  this is more efficient than the normal way of excel creation.</p>
<p><em>An example code for Excel File Creation</em></p>
<p><span style="color:#333399;">//creating the workbook using poi</span><br />
<span style="color:#333399;"> &lt;cfset workBook = createObject(“java”,”org.apache.poi.hssf.usermodel.HSSFWorkbook”).init()/&gt;</span></p>
<p><span style="color:#333399;">//assigning style to the cells in the excel sheet</span><br />
<span style="color:#333399;"> &lt;cfset cellstyle = workbook.createCellStyle()&gt;</span><br />
<span style="color:#333399;"> //assigning font weight</span><br />
<span style="color:#333399;"> &lt;cfset fontface = workbook.createFont()&gt;</span><br />
<span style="color:#333399;"> &lt;cfset fontface.setBoldweight(fontface.BOLDWEIGHT_BOLD)&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cellstyle.setFont(fontface)&gt;</span></p>
<p><span style="color:#333399;">//this is the sheet counter for the excel work book. for our example it is 3.</span><br />
<span style="color:#333399;"> &lt;cfset sheetcounter = 0&gt;</span></p>
<p><span style="color:#333399;">&lt;cfloop from=”1″ to=”3″ index=”sheetcounter”&gt;</span><br />
<span style="color:#333399;"> &lt;cfset newSheet = workBook.createSheet()/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset row = newSheet.createRow(0)/&gt;</span></p>
<p><span style="color:#333399;">//this is the student list. We will create sheets for these students</span><br />
<span style="color:#333399;"> &lt;cfset studentlist = “balu,pinky,deepu”/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset subjectlist = “science,maths,english,computer”/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfloop list = “#studentlist#” index=”student”&gt;</span><br />
<span style="color:#333399;"> &lt;cfset workBook.setSheetName(#sheetcounter#, “#student#”)/&gt;</span><br />
<span style="color:#333399;"> //this is for creating headings for each sheet.. ie the subject names science,maths,english,computer</span><br />
<span style="color:#333399;"> &lt;cfset counter = 0&gt;</span><br />
<span style="color:#333399;"> &lt;cfloop list=”#subjectlist#” index=”header”&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cell = row.createCell(counter)/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset cell.setCellStyle(cellstyle)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cell.setCellValue(#header#)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset counter = counter+1&gt;</span><br />
<span style="color:#333399;"> &lt;/cfloop&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset sheetcounter = sheetcounter+1&gt;</span><br />
<span style="color:#333399;"> &lt;/cfloop&gt;</span><br />
<span style="color:#333399;"> &lt;/cfloop&gt;</span></p>
<p><span style="color:#333399;">//the resultset name is  studentdetails. We are looping through the query in order to assign the  values to the cells of the excel sheet.</span></p>
<p><span style="color:#333399;">&lt;cfloop from = “1″ to = “#listlen(studentlist)#” index = “datacounter”&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset currentsheet = workBook.getSheetAt((datacounter-1)&gt;</span><br />
<span style="color:#333399;"> &lt;cfset row = currentsheet.createRow(1)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset datasheetcounter = 1/&gt;</span></p>
<p><span style="color:#333399;">//getting data from the table student</span></p>
<p><span style="color:#333399;">&lt;cfquery name=”studentdetails” datasource=”studentdb”&gt;</span></p>
<p><span style="color:#333399;">select * from studentdetails where studentname = ‘#datacounter#’</span><br />
<span style="color:#333399;"> &lt;/cfquery&gt;</span></p>
<p><span style="color:#333399;">&lt;cfif studentdetails.recordcount&gt;</span></p>
<p><span style="color:#333399;">//looping through the student details</span><br />
<span style="color:#333399;"> &lt;cfloop query=”studentdetails”&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset row = currentsheet.createRow(datasheetcounter)/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset cell = row.createCell(0)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cell.setCellValue(studentdetails.science)/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset cell = row.createCell(1)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cell.setCellValue(studentdetails.maths)/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset cell = row.createCell(2)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cell.setCellValue(studentdetails.english)/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset cell = row.createCell(3)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset cell.setCellValue(studentdetails.computer)/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset datasheetcounter = datasheetcounter + 1&gt;</span></p>
<p><span style="color:#333399;">&lt;/cfloop&gt;</span><br />
<span style="color:#333399;"> &lt;/cfif&gt;</span></p>
<p><span style="color:#333399;">&lt;/cfloop&gt;</span></p>
<p><span style="color:#333399;">//this is the directory where we are going to save the excel file</span><br />
<span style="color:#333399;"> &lt;cfset directorypath = “d:\studentdetails”/&gt;</span></p>
<p><span style="color:#333399;">&lt;cfif NOT DirectoryExists(directorypath)&gt;</span><br />
<span style="color:#333399;"> //creating the directory if the directory is not there in the server</span><br />
<span style="color:#333399;"> &lt;cfdirectory action=”create” directory=”#directorypath#” &gt;</span></p>
<p><span style="color:#333399;">&lt;/cfif&gt;</span></p>
<p><span style="color:#333399;">&lt;cfset fullpath= “d:\studentdetails\studentdetails.xls”/&gt;</span><br />
<span style="color:#333399;"> //if the file is there in the directory we are deleting that file</span><br />
<span style="color:#333399;"> &lt;cfif FileExists(fullpath)&gt;</span><br />
<span style="color:#333399;"> &lt;cffile action=”delete” file=”#fullpath#”&gt;</span><br />
<span style="color:#333399;"> &lt;/cfif&gt;</span></p>
<p><span style="color:#333399;">//writing the file</span><br />
<span style="color:#333399;"> &lt;cfset fileOutStream = createObject(“java”,”java.io.FileOutputStream”).init(#fullpath#)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset workBook.write(fileOutStream)/&gt;</span><br />
<span style="color:#333399;"> &lt;cfset fileOutStream.close()/&gt;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=60&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/11/09/excel-file-creation-using-poi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>Code By Browser</title>
		<link>http://balublogs.wordpress.com/2010/03/05/code-by-browser/</link>
		<comments>http://balublogs.wordpress.com/2010/03/05/code-by-browser/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:47:39 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[browser name]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[code by browser]]></category>
		<category><![CDATA[HTTP_USER_AGENT]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=57</guid>
		<description><![CDATA[Code By Browser<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=57&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes we may have to write codes for different browser. We can make that possible by using CGI. We can do that by using the HTTP_USER_AGENT.</p>
<p>Here is how we do that</p>
<p><em>&lt;cfif CGI.HTTP_USER_AGENT contains &#8220;MSIE&#8221;&gt;</p>
<p>&lt;!&#8212; This is IE &#8212;&gt;</p>
<p>&lt;cfif CGI.HTTP_USER_AGENT contains &#8220;MSIE 8.0&#8243;&gt;</p>
<p>&lt;!&#8212; This is IE 8&#8212;&gt;</p>
<p>&lt;cfelse&gt;<br />
&lt;!&#8212; This is IE all other versions&#8212;&gt;<br />
&lt;/cfif&gt;</p>
<p>&lt;cfelseif CGI.HTTP_USER_AGENT contains &#8220;Opera&#8221;&gt;</p>
<p>&lt;!&#8212; This is Opera&#8212;&gt;</p>
<p>&lt;cfelseif CGI.HTTP_USER_AGENT contains &#8220;Safari&#8221;&gt;</p>
<p>&lt;cfif CGI.HTTP_USER_AGENT contains &#8220;Chrome&#8221;&gt;</p>
<p>&lt;!&#8212; This is chrome&#8212;&gt;</p>
<p>&lt;cfelse&gt;</p>
<p>&lt;!&#8212; This is safari&#8212;&gt;</p>
<p>&lt;/cfif&gt;</p>
<p>&lt;cfelseif CGI.HTTP_USER_AGENT contains &#8220;Firefox&#8221;&gt;</p>
<p>&lt;!&#8212; This is firefox&#8212;&gt;</p>
<p>&lt;cfelse&gt;</p>
<p>&lt;!&#8212; All other browsers&#8212;&gt;</em> <em></p>
<p>&lt;/cfif&gt;</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=57&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/03/05/code-by-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>check dsn exists</title>
		<link>http://balublogs.wordpress.com/2010/01/22/check-dsn-exists/</link>
		<comments>http://balublogs.wordpress.com/2010/01/22/check-dsn-exists/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 10:03:36 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[bals]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balu blog]]></category>
		<category><![CDATA[balublogs]]></category>
		<category><![CDATA[balumohan]]></category>
		<category><![CDATA[check dsn]]></category>
		<category><![CDATA[dsn]]></category>
		<category><![CDATA[dsn exists]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=52</guid>
		<description><![CDATA[check dsn exists<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=52&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;!&#8212; This is to verify the dsn &#8212;&gt;</p>
<p>&lt;!&#8212; this is the dsn &#8212;&gt;<br />
&lt;cfset var dsn = &#8220;mydsn&#8221;&gt;<br />
&lt;cftry&gt;<br />
&lt;!&#8212; this is to create the object of the service factory &#8212;&gt;<br />
&lt;cfobject action=&#8221;create&#8221; type=&#8221;java&#8221; name=&#8221;servicefac&#8221; class=”coldfusion.server.ServiceFactory”&gt;<br />
&lt;!&#8212; getting the data source service &#8212;&gt;<br />
&lt;cfset datasourcesrvce =servicefac.getdatasourceservice()&gt;<br />
&lt;!&#8212; checking whether the dsn exists &#8212;&gt;<br />
&lt;cfset existdsn = datasourcesrvce.verifydatasource(dsn)&gt;<br />
&lt;!&#8212; dsn exists if not going to catch &#8212;&gt;<br />
&lt;cfcatch type=&#8221;any&#8221;&gt;<br />
&lt;!&#8212; dsn dont exist &#8212;&gt;<br />
&lt;cfset existdsn=&#8221;false&#8221;&gt;<br />
&lt;/cfcatch&gt;<br />
&lt;/cftry&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=52&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/01/22/check-dsn-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
		<item>
		<title>cfscript library</title>
		<link>http://balublogs.wordpress.com/2010/01/19/cfscript-library-2/</link>
		<comments>http://balublogs.wordpress.com/2010/01/19/cfscript-library-2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:06:17 +0000</pubDate>
		<dc:creator>balsbalu</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[bals]]></category>
		<category><![CDATA[balu]]></category>
		<category><![CDATA[balumohancfscript library]]></category>
		<category><![CDATA[cfloop]]></category>
		<category><![CDATA[cfquery in cfscript]]></category>
		<category><![CDATA[cfscript]]></category>

		<guid isPermaLink="false">http://balublogs.wordpress.com/?p=46</guid>
		<description><![CDATA[This is how we can use cfscripts Setting a normal variable &#60;cfscript&#62; myvariable = “balu”; &#60;/cfscript&#62; Do / While Loop &#60;cfscript&#62; myvariable = 1; do { myvariable  = myvariable + 1; WriteOutput(myvariable); } while (myvariable LTE 0); &#60;/cfscript&#62; While Loop &#60;cfscript&#62; myvariable = 0; while (myvariable LT 10) { myvariable = myvariable + 1; WriteOutput(myvariable); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=46&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is how we can use cfscripts</p>
<p><strong>Setting a normal variable</strong></p>
<p>&lt;cfscript&gt;</p>
<p>myvariable = “balu”;</p>
<p>&lt;/cfscript&gt;</p>
<p><strong>Do / While Loop</strong></p>
<p>&lt;cfscript&gt;</p>
<p>myvariable = 1;</p>
<p>do {</p>
<p>myvariable  = myvariable + 1;</p>
<p>WriteOutput(myvariable);</p>
<p>} while (myvariable LTE 0);</p>
<p>&lt;/cfscript&gt;</p>
<p><strong>While Loop</strong></p>
<p>&lt;cfscript&gt;</p>
<p>myvariable = 0;<br />
while (myvariable LT 10) {<br />
myvariable = myvariable + 1;<br />
WriteOutput(myvariable);<br />
}<br />
&lt;/cfscript&gt;</p>
<p><strong>Try / Catch Statements</strong></p>
<p>&lt;cfscript&gt;</p>
<p>try {<br />
x = 10 / 0;<br />
}<br />
catch(Any e) {<br />
WriteOutput(&#8220;Error occured &#8221; &amp; e.message);<br />
}<br />
&lt;/cfscript&gt;</p>
<p><strong>Single Line Comments</strong></p>
<p>&lt;cfscript&gt;</p>
<p>a = a + 10; //This is a single line comment<br />
&lt;/cfscript&gt;</p>
<p><strong>Multi-Line Comments</strong></p>
<p>&lt;cfscript&gt;</p>
<p>/* This is a multi line comment<br />
that can written in<br />
multiple lines<br />
*/<br />
&lt;/cfscript&gt;</p>
<p><strong>FOR Loop</strong></p>
<p>&lt;cfscript&gt;</p>
<p>for (i=1;i LTE ArrayLen(array);i=i+1)<br />
{<br />
WriteOutput(array[i]);<br />
}<br />
&lt;/cfscript&gt;</p>
<p><strong>Switch Case</strong></p>
<p>&lt;cfscript&gt;</p>
<p>switch(myvalue) {<br />
case &#8220;1&#8243;:<br />
WriteOutput(&#8220;1 is the value&#8221;);<br />
break;<br />
case &#8220;2&#8243;:<br />
WriteOutput(&#8220;2 is the value&#8221;);<br />
break;<br />
default:<br />
WriteOutput(&#8220;default value&#8221;);<br />
}<br />
&lt;/cfscript&gt;</p>
<p><strong>If… else….</strong></p>
<p>&lt;cfscript&gt;</p>
<p>if (myvariable EQ 1) {<br />
WriteOutput(&#8220;1 is the value&#8221;);<br />
}<br />
else if (myvariable EQ 2) {<br />
WriteOutput(&#8220;2 is the value&#8221;);<br />
}<br />
else {<br />
WriteOutput(&#8220;default value&#8221;);<br />
}<br />
&lt;/cfscript&gt;</p>
<p><strong>CFQuery in CFScript</strong></p>
<p>Normally we use like<br />
&lt;cfquery name=”getstudents” datasource=”dsnstudents”&gt;<br />
select stuname,stuage,stuclass from students where stuid &gt; 1<br />
&lt;/cfquery&gt;</p>
<p>In CFscript</p>
<p>&lt;cfscript&gt;</p>
<p>objFactory = CreateObject(”java”,”coldfusion.server.ServiceFactory”);<br />
objDataService = objFactory.DataSourceService;<br />
objDataSource = objDataService.GetDataSource(”dsnstudents”);<br />
objConnection = objDataSource.GetConnection(Enter the username and password here);<br />
objstatementstring = “select stuname,stuage,stuclass from students where stuid &gt; 1?;<br />
objStatement = objConnection.PrepareStatement(objstatementstring);<br />
objResults = CreateObject(”java”,”coldfusion.sql.QueryTable”).Init( objStatement.ExecuteQuery() );<br />
objConnection.Close();<br />
&lt;/cfscript&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balublogs.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balublogs.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balublogs.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balublogs.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balublogs.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balublogs.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balublogs.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balublogs.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balublogs.wordpress.com&amp;blog=8297529&amp;post=46&amp;subd=balublogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balublogs.wordpress.com/2010/01/19/cfscript-library-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c13d250687ce4dc8ebc2cc00c9905af?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">balsbalu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
