<?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>Arun's Blog</title>
	<atom:link href="http://arunprasad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arunprasad.wordpress.com</link>
	<description>Talk about /.*?/</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:34:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='arunprasad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Arun's Blog</title>
		<link>http://arunprasad.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://arunprasad.wordpress.com/osd.xml" title="Arun&#039;s Blog" />
	<atom:link rel='hub' href='http://arunprasad.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Enable Ubuntu to discover Wi-Fi networks</title>
		<link>http://arunprasad.wordpress.com/2009/07/25/enable-ubuntu-to-discover-wi-fi-networks/</link>
		<comments>http://arunprasad.wordpress.com/2009/07/25/enable-ubuntu-to-discover-wi-fi-networks/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 05:33:21 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[wi-fi]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=64</guid>
		<description><![CDATA[I had tough time configuring Wi-Fi for different locations and switching between them, say home and office. I use Ubuntu jaunty, and I use to change /etc/network/interfaces file and restart eth0, eth1 accordingly. I have noticed my network monitor showing no connectivity always. Also my current setup doesn&#8217;t discover Wi-Fi available networks. After searching through [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=64&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had tough time configuring Wi-Fi for different locations and switching between them, say home and office. I use Ubuntu jaunty, and I use to change /etc/network/interfaces file and restart eth0, eth1 accordingly. I have noticed my network monitor showing no connectivity always.</p>
<p>Also my current setup doesn&#8217;t discover Wi-Fi available networks. After searching through the internet I landed into <a href="http://www.debianadmin.com/enable-wpa-wireless-access-point-in-ubuntu-linux.html">this</a> fine piece of information, which helped out of the hassles in switching between networks.</p>
<p><code>sudo apt-get update</code></p>
<p><code>sudo apt-get install wpasupplicant</code></p>
<p><code>sudo apt-get install network-manager-gnome network-manager</code></p>
<p><code>sudo vim /etc/network/interfaces</code></p>
<p>Comment out everything other than “lo”, ie &#8220;lookback address&#8221; entries in that file and save the file</p>
<p><code>sudo vim /etc/default/wpasupplicant</code></p>
<p>Add entry <code>ENABLED=0</code> and save the file</p>
<p>Reboot your system.</p>
<p>Now your system automatically switch between networks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=64&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/07/25/enable-ubuntu-to-discover-wi-fi-networks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Cut, Merge AVI files</title>
		<link>http://arunprasad.wordpress.com/2009/06/21/cut-merge-avi-files/</link>
		<comments>http://arunprasad.wordpress.com/2009/06/21/cut-merge-avi-files/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 05:12:58 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[cut avi]]></category>
		<category><![CDATA[join avi]]></category>
		<category><![CDATA[menoder]]></category>
		<category><![CDATA[merge avi]]></category>
		<category><![CDATA[video file]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=61</guid>
		<description><![CDATA[To cut specifed duration from a AVI file, first you need to have mencoder installed (google will help you here). After installation type in the following command on you console (cmd in Windows). mencoder -ss 00:02:00 -endpos 00:30:00 -ovc copy -oac copy in.avi -o out.avi This command will cut in.avi of duration 30 minutes skipping [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=61&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To cut specifed duration from a AVI file, first you need to have mencoder installed (google will help you here). After installation type in the following command on you console (cmd in Windows).</p>
<p><code>mencoder -ss 00:02:00 -endpos 00:30:00 -ovc copy -oac copy in.avi -o out.avi</code></p>
<p>This command will cut in.avi of duration 30 minutes skipping first 2 minutes from in.avi.</p>
<p>To merge, use the following command.</p>
<p><code>cat 1.avi 2.avi &gt; temp.avi</code><br />
<code>mencoder -forceidx -oac copy -ovc copy temp.avi -o out.avi</code></p>
<p>First command, simply joins those AVI files into one file, second command is the one makes the video playable by creating index.</p>
<p>Hope you find it useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=61&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/06/21/cut-merge-avi-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Testing web pages in various versions of IE</title>
		<link>http://arunprasad.wordpress.com/2009/04/13/testing-web-pages-in-various-versions-of-ie/</link>
		<comments>http://arunprasad.wordpress.com/2009/04/13/testing-web-pages-in-various-versions-of-ie/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 15:04:08 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ietester]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[web pages]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=58</guid>
		<description><![CDATA[I came across this tool http://www.my-debugbar.com/ietester/ for testing web pages against multiple versions on Internet Explorer. With the release of IE8, adding to existing 6,7 testing become difficult. ietester even supports IE8.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=58&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I came across this tool <a href="http://www.my-debugbar.com/ietester/">http://www.my-debugbar.com/ietester/</a> for testing web pages against multiple versions on Internet Explorer. With the release of IE8, adding to existing 6,7 testing become difficult. ietester even supports IE8.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=58&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/04/13/testing-web-pages-in-various-versions-of-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>How to: min-width/height max-width/height in Internet Explorer 6</title>
		<link>http://arunprasad.wordpress.com/2009/04/01/how-to-min-widthheight-max-widthheight-in-internet-explorer-6/</link>
		<comments>http://arunprasad.wordpress.com/2009/04/01/how-to-min-widthheight-max-widthheight-in-internet-explorer-6/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 12:20:58 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=49</guid>
		<description><![CDATA[We often find some of the handy CSS properties are not supported by IE6. It is not good idea to ignore IE6, as a web developer we need to maximize the reach of our website. For that we need to support a wide range of browsers. Coming back to the main aim of the post, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=49&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We often find some of the handy CSS properties are not supported by IE6. It is not good idea to ignore IE6, as a web developer we need to maximize the reach of our website. For that we need to support a wide range of browsers.</p>
<p>Coming back to the main aim of the post, min-width, min-height, max-width, max-height are some of the properties with IE6 doesn&#8217;t support. So how we do with that? Here is how, we have to use IE&#8217;s expression in CSS to make it work for us.</p>
<p><pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script&gt;
&lt;/script&gt;
&lt;style&gt;
.pagewidth {
margin: 0 auto;
background-color: #CDCDCD;
height:20px;
min-width: 500px;
}
∗ html div.pagewidth {
width: expression( document.body.clientWidth &lt; 501 ? &quot;500px&quot; : &quot;auto&quot; );
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;pagewidth&quot;&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre></p>
<p>By using <code>* html div#pagewidth</code> we are targeting IE specifically, then we are telling the browser to execute an expression to find a with for that particular element. <code>document.body.clientWidth &lt; 501 ? "500px" : "auto"</code> is conditional statement, which test clientWidth and choose the value for width.</p>
<p>For min-height and max-height, you have to test with <code>document.body.scrollHeight</code>.</p>
<p>You can read more about this <a href="http://perishablepress.com/press/2007/01/16/maximum-and-minimum-height-and-width-in-internet-explorer/">here</a>.  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=49&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/04/01/how-to-min-widthheight-max-widthheight-in-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Change/Switch Stylesheets with Javascript</title>
		<link>http://arunprasad.wordpress.com/2009/03/18/changeswitch-stylesheets-with-javascript/</link>
		<comments>http://arunprasad.wordpress.com/2009/03/18/changeswitch-stylesheets-with-javascript/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 10:07:20 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[web page]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=42</guid>
		<description><![CDATA[Here is how you can change theme of a web page, without reloading that page. Using JavaScript, change the value of rel attribute in link element to something other than stylesheet, which will disable that link element. Now you have to add a new link element with reference to other stylesheet. Simple!! below is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=42&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is how you can change theme of a web page, without reloading that page. Using JavaScript, change the value of <code>rel</code> attribute in <code>link</code> element to something other than <code>stylesheet</code>, which will disable that link element. Now you have to add a new link element with reference to other stylesheet.</p>
<p>Simple!! below is the for doing the same.</p>
<p><code>sample.html :</code></p>
<p><pre class="brush: xml;">
&lt;html&gt;
&lt;head&gt;
&lt;link id=&quot;ss_style1&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style1.css&quot; /&gt;
&lt;!--link id=&quot;ss_style2&quot; rel=&quot;alternate stylesheet&quot; type=&quot;text/css&quot; href=&quot;style2.css&quot; /--&gt;
&lt;script&gt;
var css = &quot;style1&quot;;
function changeStyleSheet(sss) {
    if(sss == css)
        return;
    var sel = document.getElementById('ss_'+sss);
    var cur = document.getElementById('ss_'+css);
    if(!sel) {
        sel = cur.cloneNode(true);
        sel.id = &quot;ss_&quot;+sss;
        sel.setAttribute(&quot;href&quot;,cur.getAttribute(&quot;href&quot;).replace(new RegExp(css),sss));
    }
    cur.setAttribute(&quot;rel&quot;,&quot;stylesheet1&quot;);
    sel.setAttribute(&quot;rel&quot;,&quot;stylesheet&quot;);
    document.getElementsByTagName('head')[0].appendChild(sel);
    css = sss;
}
&lt;/script&gt;
&lt;style&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;Hello Test!!&lt;/div&gt;
&lt;button onclick=&quot;changeStyleSheet('style1')&quot;&gt;Style 1&lt;/button&gt;
&lt;button onclick=&quot;changeStyleSheet('style2')&quot;&gt;Style 2&lt;/button&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre></p>
<p><code>style1.css:</code></p>
<p><pre class="brush: css;">
div {
 background-color:#000;
 color:#fff;
}
</pre></p>
<p><code>style2.css:</code></p>
<p><pre class="brush: css;">
div {
 background-color:#cdcdcd;
 color:#000;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=42&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/03/18/changeswitch-stylesheets-with-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Cut MP3 file on your own</title>
		<link>http://arunprasad.wordpress.com/2009/03/11/cut-mp3-file-on-your-own/</link>
		<comments>http://arunprasad.wordpress.com/2009/03/11/cut-mp3-file-on-your-own/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 11:34:49 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=37</guid>
		<description><![CDATA[Some times you might want to cut out your favorite background score of a music track for setting as ring tone on your mobile phone. There are number of tools available, most of them are shareware(you need to pay after limited usage). If you have mp3 file, you can do it your self without wasting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=37&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some times you might want to cut out your favorite background score of a music track for setting as ring tone on your mobile phone. There are number of tools available, most of them are shareware(you need to pay after limited usage).</p>
<p>If you have mp3 file, you can do it your self without wasting your money on that. You will need some knowledge about command prompt(<em>cmd</em>). Here is how you do.</p>
<p>First we need do install mplayer, lame.</p>
<p>Download mplayer from<br />
Windows: <a href="http://www1.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc1.zip">http://www1.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc1.zip</a> (or latest)<br />
Linux: <a href="http://www1.mplayerhq.hu/MPlayer/releases/">http://www1.mplayerhq.hu/MPlayer/releases/</a> (you will have to compile or search for binary package)</p>
<p>Dowload lame from<br />
Windows: <a href="http://www.rarewares.org/mp3-lame-bundle.php">http://www.rarewares.org/mp3-lame-bundle.php</a> (usually first Download link)<br />
Linux: <a href="http://lame.sourceforge.net/">http://lame.sourceforge.net/</a> (you will have to compile or search for binary package)</p>
<p>Following instructions are targeted at Windows users, Linux users can transform it to there platform.</p>
<p>Extract/Unzip MPlayer-mingw32-1.0rc1.zip to C:\mplayer (or a location you desire, need to change commands accordingly)<br />
Extract/Unzip lame3.98.2.zip to C:\lame</p>
<p>Assuming you are having mp3 file in the Desktop</p>
<p>Open command prompt<br />
&nbsp;&nbsp;&nbsp;&nbsp;Go to <em>Start</em> &gt; <em>Run</em>, enter &#8220;<em>cmd</em>&#8221; (without quotes) and click <em>OK</em></p>
<p>Change to the location of mp3 file<br />
<code>cd Desktop</code></p>
<p>Now type in the following commands (change your input file name, or you have downloaded latest path changes accordingly)</p>
<p><code>"C:\mplayer\MPlayer-1.0rc2\mplayer.exe" -ss 00:00:11 -endpos 00:00:20 -ao pcm:file=out.wav input.mp3</code><br />
<code>"C:\lame\lame.exe" -V2 out.wav output.mp3</code></p>
<p>Now first command needs some explanation, since you will need to cut a specific portion from that mp3 file.</p>
<p><code>-ss 00:00:10</code> specifies starting position, if you want to start from 1 minute and 3 second use <code>-ss 00:01:03</code>.<br />
<code>-endpos 00:00:20</code> specifies length, if you want to cut for 2 minute and 30 second use <code>-endpos 00:02:30</code>.</p>
<p>You will see a new file output.mp3 created on you Desktop, which the portion of audio you want to cut from a mp3 file.</p>
<p>Try it your self!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=37&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/03/11/cut-mp3-file-on-your-own/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Google time in any timezone</title>
		<link>http://arunprasad.wordpress.com/2009/03/10/google-time-in-any-timezone/</link>
		<comments>http://arunprasad.wordpress.com/2009/03/10/google-time-in-any-timezone/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 09:23:52 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=30</guid>
		<description><![CDATA[When you work with people across various region, you might run into problem of converting time to required timezone. Now google has time tool integrated to their search. To now current time in any timezone simply type time &#60;location&#62; eg. time india, time sydney you will get current time of location you have queried. Nice [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=30&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you work with people across various region, you might run into problem of converting time to required timezone. Now google has time tool integrated to their search.<br />
To now current time in any timezone simply type</p>
<p><code>time &lt;location&gt;</code><br />
eg. <code>time india</code>, <code>time sydney</code></p>
<p>you will get current time of location you have queried. Nice feature, helpful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=30&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/03/10/google-time-in-any-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Running multiple Firefox instance</title>
		<link>http://arunprasad.wordpress.com/2009/03/05/running-multiple-firefox-instance/</link>
		<comments>http://arunprasad.wordpress.com/2009/03/05/running-multiple-firefox-instance/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 09:34:21 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Tweaks]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=26</guid>
		<description><![CDATA[So you want to run multiple Firefox instance? Here are the steps to run multiple Firefox. Note: Exit Firefox, if it is running. First you have to create new profile. For that invoke Profile Manager. For Windows, enter the following command into &#8216;Run&#8217; window, and hit enter. "C:\Program Files\Mozilla Firefox\firefox.exe" -profilemanager For *nix, (rest of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=26&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So you want to run multiple Firefox instance? Here are the steps to run multiple Firefox.</p>
<p>Note: Exit Firefox, if it is running.</p>
<p>First you have to create new profile. For that invoke Profile Manager.</p>
<p>For Windows, enter the following command into &#8216;Run&#8217; window, and hit enter.</p>
<p><code>"C:\Program Files\Mozilla Firefox\firefox.exe" -profilemanager</code></p>
<p>For *nix, (rest of instruction provided only for windows, you can convert to your platform)</p>
<p><code>/path/to/firefox -profilemanager</code></p>
<p>You will see a window like <a href="http://kb.mozillazine.org/images/Profilemanager1.png">this</a></p>
<p>Now click, &#8220;Create Profile&#8221; and give a name of your choice.</p>
<p>Start Firefox with newly created Profile.</p>
<p><code>"C:\Program Files\Mozilla Firefox\firefox.exe" -P "Porfile Name"</code></p>
<p>without -P option default profile will be used. Even now Firefox will not allow to open two profile, for that you have to user -no-remote option.</p>
<p><code>"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P "Porfile Name"</code></p>
<p>will open an instance with newly created profile and</p>
<p><code>"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P "Porfile Name"</code></p>
<p>will open an instance with default profile. Now you can notice two instance of Firefox running.</p>
<p>Do you want to run different versions of Firefox? Just copy &#8220;C:\Program Files\Mozilla Firefox&#8221; to &#8220;C:\Program Files\Mozilla Firefox Old&#8221; and install another version you want to run.</p>
<p><code>"C:\Program Files\Mozilla Firefox Old\firefox.exe" -no-remote -P "Porfile Name"</code></p>
<p>will start old version of Firefox. while all other shortcuts work with new version Firefox.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=26&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/03/05/running-multiple-firefox-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert set of images to PDF</title>
		<link>http://arunprasad.wordpress.com/2009/03/04/convert-set-of-images-to-pdf/</link>
		<comments>http://arunprasad.wordpress.com/2009/03/04/convert-set-of-images-to-pdf/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 18:19:22 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Utility]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=23</guid>
		<description><![CDATA[ImageMagick is an excellent tool, which does creating, editing, converting images. You need this tool installed, for converting a set of images to a PDF. We use convert command for converting between image formats. convert *.jpg output.pdf There are lot more use of this tool, refer http://www.imagemagick.org/Usage/ for more.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=23&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.imagemagick.org" target="_blank">ImageMagick</a> is an excellent tool, which does creating, editing, converting images. You need this tool installed, for converting a set of images to a PDF. We use <em>convert</em> command for converting between image formats.</p>
<p><code>convert *.jpg output.pdf</code></p>
<p>There are lot more use of this tool, refer http://www.imagemagick.org/Usage/ for more.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=23&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2009/03/04/convert-set-of-images-to-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>encodeURIComponent equivalent in Java</title>
		<link>http://arunprasad.wordpress.com/2008/12/05/encodeuricomponent-equivalent-in-java/</link>
		<comments>http://arunprasad.wordpress.com/2008/12/05/encodeuricomponent-equivalent-in-java/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 17:23:50 +0000</pubDate>
		<dc:creator>arunprasad</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[encodeURIComponent]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://arunprasad.wordpress.com/?p=17</guid>
		<description><![CDATA[We know how helpful the function encodeURIComponent in JavaScript. This function comes handy when we want send unicode data via XMLHTTPRequest. This function actually encode all characters except alphabets, digits, &#8211; _ . ! ~ * &#8216; ( ) to URL safe coding. When we connect to some web service API through URLConnection, we might [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=17&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We know how helpful the function <em>encodeURIComponent</em> in JavaScript. This function comes handy when we want send unicode data via XMLHTTPRequest. This function actually encode all characters except alphabets, digits, &#8211; _ . ! ~ * &#8216; ( ) to URL safe coding.</p>
<p>When we connect to some web service API through URLConnection, we might need to encode data similar way the browser encodes. This is where the requirement for an equivalent function in Java arise. Here is the class which I have worked upon, might be useful for you.</p>
<p><pre class="brush: java;">
public class HttpUtil {

    static final String EX = &quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.!~*'()&quot;;

    public static void main(String... a) throws Exception {
        String input = &quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,./;'[]`~!@#$%^&amp;*()_+-={}:\&quot;&lt;&gt;?|\\ Google \u0baa\u0bb1\u0bcd\u0bb1\u0bbf\u0ba4\u0bcd \u0ba4\u0bc6\u0bb0\u0bbf\u0ba8\u0bcd\u0ba4\u0bc1\u0b95\u0bca\u0bb3\u0bcd\u0bb3\u0bc1\u0b99\u0bcd\u0b95\u0bb3\u0bcd - Google.com in English\n&quot;;
        System.out.println(encodeURIComponent(input));
    }

    public static String encodeURIComponent(String input) throws Exception {
        int l = input.length();
        StringBuilder o = new StringBuilder(l * 3);
        for(int i=0; i &lt; l; i++) {
            String e = input.substring(i,i+1);
            if(EX.indexOf(e)==-1) {
                byte[] b = e.getBytes(&quot;utf-8&quot;);
                o.append(getHex(b));
                continue;
            }
            o.append(e);
        }
        return o.toString();
    }

    public static String getHex(byte buf[])
    {
        StringBuilder o = new StringBuilder(buf.length * 3);
        for(int i=0; i&lt; buf.length; i++)
        {
            int n = (int) buf[i] &amp; 0xff;
            o.append(&quot;%&quot;);
            if(n &lt; 0x10)
                o.append(&quot;0&quot;);
            o.append(Long.toString(n, 16).toUpperCase());
        }
        return o.toString();
    }
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arunprasad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arunprasad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arunprasad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arunprasad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arunprasad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arunprasad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arunprasad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arunprasad.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arunprasad.wordpress.com&amp;blog=293958&amp;post=17&amp;subd=arunprasad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arunprasad.wordpress.com/2008/12/05/encodeuricomponent-equivalent-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa72915c36fa24665e2548c7d3e4db2c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arunprasad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
