<?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>Prajwol&#039;s blog</title>
	<atom:link href="http://prajwolkumar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://prajwolkumar.wordpress.com</link>
	<description>Technology and Inspiration. They are here.</description>
	<lastBuildDate>Wed, 14 Sep 2011 06:13:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='prajwolkumar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/caf7f63395274e12cc385777432d6d75?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Prajwol&#039;s blog</title>
		<link>http://prajwolkumar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://prajwolkumar.wordpress.com/osd.xml" title="Prajwol&#039;s blog" />
	<atom:link rel='hub' href='http://prajwolkumar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Table manner with a Finn</title>
		<link>http://prajwolkumar.wordpress.com/2011/05/24/table-manner-with-a-finn/</link>
		<comments>http://prajwolkumar.wordpress.com/2011/05/24/table-manner-with-a-finn/#comments</comments>
		<pubDate>Tue, 24 May 2011 18:20:29 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[cheers]]></category>
		<category><![CDATA[drink]]></category>
		<category><![CDATA[Finn]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=268</guid>
		<description><![CDATA[One of my colleagues educated me about table manner in Finland that I somehow missed to learn when I was there &#8220;Two Finns go to a bar. They order some booze. One of them raises a toast and says &#8220;Cheers Kip-piss&#8221;. The other one gives a stare and says &#8211; Are we here to drink or to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=268&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of my colleagues educated me about table manner in Finland that I somehow missed to learn when I was there <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&#8220;Two Finns go to a bar. They order some booze. One of them raises a toast and says &#8220;Cheers Kip-piss&#8221;. The other one gives a stare and says &#8211; Are we here to drink or to talk?. &#8220;</p>
<p> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://prajwolkumar.wordpress.com/category/inspiration/'>Inspiration</a>, <a href='http://prajwolkumar.wordpress.com/category/miscellaneous/'>Miscellaneous</a> Tagged: <a href='http://prajwolkumar.wordpress.com/tag/cheers/'>cheers</a>, <a href='http://prajwolkumar.wordpress.com/tag/drink/'>drink</a>, <a href='http://prajwolkumar.wordpress.com/tag/finn/'>Finn</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=268&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2011/05/24/table-manner-with-a-finn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Latex Table</title>
		<link>http://prajwolkumar.wordpress.com/2011/05/21/latex-table/</link>
		<comments>http://prajwolkumar.wordpress.com/2011/05/21/latex-table/#comments</comments>
		<pubDate>Sat, 21 May 2011 12:52:13 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[Latex]]></category>
		<category><![CDATA[cline]]></category>
		<category><![CDATA[footnotes in tables]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[multicolumn]]></category>
		<category><![CDATA[multirow]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[tablenotes]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=254</guid>
		<description><![CDATA[If you are looking for table in Latex that is anything like the picture, then this post can be helpful . Multirow, multicolumn, tablenotes, cline, customized width &#8211; all are here. Enjoy. CODE: \documentclass[a4paper,11pt]{report} \usepackage{threeparttable, multirow, array} \hyphenpenalty=5000 \newcolumntype{x}[1]{ &#62;{\centering}m{#1} } \begin{document} \begin{table} \begin{threeparttable} \caption{Table in Action} \begin{tabular}{l x{5.5cm} m{6cm}} \hline \multicolumn{3}{c}{Education} \\ \hline \multirow{2}{2.5cm}{Master- [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=254&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are looking for table in Latex that is anything like the picture, then this post can be helpful <img src='http://s1.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . Multirow, multicolumn, tablenotes, cline, customized width &#8211; all are here. Enjoy.</p>
<p><a href="http://prajwolkumar.files.wordpress.com/2011/05/table.png"><img class="size-full wp-image-259 aligncenter" title="Table in Latex" src="http://prajwolkumar.files.wordpress.com/2011/05/table.png?w=674&#038;h=272" alt="Table in Lates" width="674" height="272" /></a></p>
<p><strong>CODE</strong>:</p>
<table>
<tbody>
<tr>
<td>
<pre>\documentclass[a4paper,11pt]{report}
\usepackage{threeparttable, multirow, array}
\hyphenpenalty=5000 

\newcolumntype{x}[1]{
	&gt;{\centering}m{#1}
}

\begin{document}

\begin{table}
	\begin{threeparttable}
		\caption{Table in Action}
		\begin{tabular}{l x{5.5cm} m{6cm}} \hline
			\multicolumn{3}{c}{Education} \\ \hline
			\multirow{2}{2.5cm}{Master- NordSecMob}
				&amp; Royal Institute of Technology \tnote{a}

				Sweden &amp; Master of Science 

				Communication System Design\\ \cline{2-3}

				&amp; Aalto University \tnote{b}

				Finland &amp; Master of Science (Technology) 

				Technical Information Security and Network Services
				\\ \hline

			Bachelor
				&amp; Tribhuvan University \tnote{c}

				Nepal &amp; Computer Engineering \\ \hline
		\end{tabular}
		\begin{tablenotes}
			\item [a] 2009-2010
			\item [b] 2010-2011
			\item [c] 2003-2008
		\end{tablenotes}
	\end{threeparttable}
\end{table} 

\end{document}</pre>
</td>
</tr>
</tbody>
</table>
<p>=================<br />
Cheese n Cheers</p>
<br />Filed under: <a href='http://prajwolkumar.wordpress.com/category/latex/'>Latex</a> Tagged: <a href='http://prajwolkumar.wordpress.com/tag/cline/'>cline</a>, <a href='http://prajwolkumar.wordpress.com/tag/footnotes-in-tables/'>footnotes in tables</a>, <a href='http://prajwolkumar.wordpress.com/tag/latex-2/'>latex</a>, <a href='http://prajwolkumar.wordpress.com/tag/multicolumn/'>multicolumn</a>, <a href='http://prajwolkumar.wordpress.com/tag/multirow/'>multirow</a>, <a href='http://prajwolkumar.wordpress.com/tag/table/'>table</a>, <a href='http://prajwolkumar.wordpress.com/tag/tablenotes/'>tablenotes</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/254/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=254&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2011/05/21/latex-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>

		<media:content url="http://prajwolkumar.files.wordpress.com/2011/05/table.png" medium="image">
			<media:title type="html">Table in Latex</media:title>
		</media:content>
	</item>
		<item>
		<title>Packet capture in N1 Gingerbread</title>
		<link>http://prajwolkumar.wordpress.com/2011/04/28/packet-capture-in-n1-gingerbread/</link>
		<comments>http://prajwolkumar.wordpress.com/2011/04/28/packet-capture-in-n1-gingerbread/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 16:09:56 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android nexus one N1 gri40 root superboot tcpdump packet capture unlock bootloader]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=244</guid>
		<description><![CDATA[I am summarizing what I had to do to capture IP packets in my Nexus One 2.3.3 GRI49 Android phone. If you want to upgrade your Android to GRI49, then this might be helpful. My development environment is Linux, however, the links contain files for Windows and Mac as well. Download Fastboot &#8211; here Extract the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=244&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am summarizing what I had to do to capture IP packets in my Nexus One 2.3.3 GRI49 Android phone. If you want to upgrade your Android to GRI49, then <a title="Upgrade Nexus One to Gingerbread GRI40" href="http://prajwolkumar.wordpress.com/2011/03/16/upgrade-nexus-one-to-gingerbread-gri40/">this</a> might be helpful. My development environment is Linux, however, the links contain files for Windows and Mac as well.</p>
<ol>
<ol>
<li>Download <strong>Fastboot</strong> &#8211; <a title="Fastboot" href="http://www.romraid.com/paul/fastboot.zip">here</a></li>
<li>Extract the files and make sure that fastboot can detect your device &#8211; <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">./fastboot-linux devices</span></li>
<li>Unlock the bootloader - <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">./fastboot-linux oem unlock</span></li>
<li>Reboot the phone in fastboot mode &#8211; turn off the phone; turn on with the trackball pressed</li>
<li>Download <strong>Superboot</strong> for N1 GRI40 &#8211; <a title="Superboot for GRI40" href="http://www.romraid.com/paul/nexusone/1.0-GRI40-nexusone-superboot.zip">here</a></li>
<li>Extract the files and make the installation script an executable - <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">&#8216;chmod +x install-superboot-linux.sh&#8217;</span></li>
<li>Now, from your terminal execute the script - <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">&#8216;./install-superboot-linux.sh&#8217;</span></li>
<li>After the phone restarts, you will notice an app called &#8216;SuperUser&#8217;</li>
<li>Configure it as you want it to behave.</li>
<li>Download <strong>Tcpdump</strong> for Android &#8211; <a title="Tcpdump for Android" href="http://www.eecs.umich.edu/~timuralp/tcpdump-arm">here</a></li>
<li>Change it into executable</li>
<li>Push the file into your phone &#8211; <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">adb push tcpdump-arm /somewhere</span></li>
<li>Now enter the terminal of your phone &#8211; <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">adb shell</span></li>
<li>Switch to super user &#8211; <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">su</span></li>
<li>Go to /somewhere and start capturing capturing packets - <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">./tcpdump-arm -s 0 -w somefile.dump</span></li>
<li>Pull the file into your PC - <span class="Apple-style-span" style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">adb pull /somewhere/somefile.dump pcfile.dump</span></li>
<li>Open the file with Wireshark</li>
<li>Say cheese <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
</ol>
</ol>
<div>For elaborated explanation, follow these links:</div>
<div>
<ol>
<li><a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/299078/how-to-unlock-the-bootloader-on-your-nexus-one/">http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/299078/how-to-unlock-the-bootloader-on-your-nexus-one/</a></li>
<li><a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/298782/08-mar-superboot-erd79-gri40-rooting-the-nexus-one/">http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/298782/08-mar-superboot-erd79-gri40-rooting-the-nexus-one/</a></li>
<li><a href="http://www.vbsteven.be/blog/android-debugging-inspectin-network-traffic-with-tcpdump/">http://www.vbsteven.be/blog/android-debugging-inspectin-network-traffic-with-tcpdump/</a></li>
</ol>
<div>~ Until next</div>
</div>
<br />Filed under: <a href='http://prajwolkumar.wordpress.com/category/android/'>Android</a> Tagged: <a href='http://prajwolkumar.wordpress.com/tag/android-nexus-one-n1-gri40-root-superboot-tcpdump-packet-capture-unlock-bootloader/'>android nexus one N1 gri40 root superboot tcpdump packet capture unlock bootloader</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=244&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2011/04/28/packet-capture-in-n1-gingerbread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrade Nexus One to Gingerbread GRI40</title>
		<link>http://prajwolkumar.wordpress.com/2011/03/16/upgrade-nexus-one-to-gingerbread-gri40/</link>
		<comments>http://prajwolkumar.wordpress.com/2011/03/16/upgrade-nexus-one-to-gingerbread-gri40/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 16:10:21 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gingerbread]]></category>
		<category><![CDATA[GRI40]]></category>
		<category><![CDATA[nexus one]]></category>
		<category><![CDATA[passimg]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=238</guid>
		<description><![CDATA[After spending several hours for the right files and right order to upgrade Nexus One to Gingerbread, I found this to be correct for me. The mobile phones that I was working with were Android 2.2 FYF91. When I connected them to internet, the phones asked to install an update. I installed the update to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=238&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After spending several hours for the right files and right order to upgrade Nexus One to Gingerbread, I found <a href="http://forum.xda-developers.com/showthread.php?t=976582">this</a> to be correct for me. The mobile phones that I was working with were Android 2.2 <strong>FYF91</strong>. When I connected them to internet, the phones asked to install an update. I installed the update to one of the phone and found that it got upgraded to <strong>FRG83D</strong>. I wanted to upgrade each phone to <strong>GRI40</strong>. Now when I searched and tried and retried and again tried &#8230;&#8230;.. in both the phones  &#8230; the phones wouldn&#8217;t seem to agree. They keep showing-</p>
<ul>
<li>E: failed to verify whole-file signature</li>
<li>E: signature verification failed</li>
<li>installation aborted</li>
</ul>
<p>Several blogs would say that the order should be followed - <strong>FRG33</strong>-&gt;<strong>FRG83D</strong>-&gt;<strong>FRG83G</strong>-&gt;<strong>GRI40</strong>. However if you follow the steps <a href="http://forum.xda-developers.com/showthread.php?t=976582">here</a>, <strong>FRG33</strong> can be directly upgraded to <strong>GRI40</strong>, as I did. So the bottom line is:</p>
<ol>
<li>First downgrade to <strong>FRG33</strong>: Make passimg.zip out of FRG33 ROM image = <a href="http://www.multiupload.com/NTA9DANZGC">http://www.multiupload.com/NTA9DANZGC</a></li>
<li>Upgrade directly to <strong>GRI40</strong>: Make update.zip out of FRG33 to GRI40 update = <a href="http://android.clients.google.com/pa...8.656099b1.zip">http://android.clients.google.com/pa&#8230;8.656099b1.zip</a></li>
</ol>
<p>So there is gingerbread. Bon apetite <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>P.S. It may be nice idea to reset the phone to factory settings after upgrade. But again, it is not necessary.</p>
<p>~ Until next.</p>
<br />Filed under: <a href='http://prajwolkumar.wordpress.com/category/android/'>Android</a> Tagged: <a href='http://prajwolkumar.wordpress.com/tag/android-2/'>android</a>, <a href='http://prajwolkumar.wordpress.com/tag/error/'>error</a>, <a href='http://prajwolkumar.wordpress.com/tag/gingerbread/'>gingerbread</a>, <a href='http://prajwolkumar.wordpress.com/tag/gri40/'>GRI40</a>, <a href='http://prajwolkumar.wordpress.com/tag/nexus-one/'>nexus one</a>, <a href='http://prajwolkumar.wordpress.com/tag/passimg/'>passimg</a>, <a href='http://prajwolkumar.wordpress.com/tag/solution/'>solution</a>, <a href='http://prajwolkumar.wordpress.com/tag/update/'>update</a>, <a href='http://prajwolkumar.wordpress.com/tag/upgrade/'>upgrade</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=238&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2011/03/16/upgrade-nexus-one-to-gingerbread-gri40/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Internet access in Android emulator</title>
		<link>http://prajwolkumar.wordpress.com/2011/03/01/internet-access-on-android-emulator/</link>
		<comments>http://prajwolkumar.wordpress.com/2011/03/01/internet-access-on-android-emulator/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 10:23:36 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=232</guid>
		<description><![CDATA[Internet access on Android emulator <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=232&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Solution: <span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;line-height:18px;font-size:12px;white-space:pre;">ifconfig eth0 down</span></p>
<p>In my case the Android emulator cannot access internet when my laptop is connected to the Internet via WIFI. However, when I am using Internet via Ethernet, then it doesn&#8217;t have no problem.</p>
<p>What I do is I disable my eth0 when I am using wlan0. It may be a bit crazy but it works. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers (Y)</p>
<br />Filed under: <a href='http://prajwolkumar.wordpress.com/category/android/'>Android</a> Tagged: <a href='http://prajwolkumar.wordpress.com/tag/android-2/'>android</a>, <a href='http://prajwolkumar.wordpress.com/tag/emulator/'>emulator</a>, <a href='http://prajwolkumar.wordpress.com/tag/ethernet/'>ethernet</a>, <a href='http://prajwolkumar.wordpress.com/tag/internet/'>internet</a>, <a href='http://prajwolkumar.wordpress.com/tag/wifi/'>wifi</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=232&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2011/03/01/internet-access-on-android-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>My journey to NordSecMob. Some tips and G5.</title>
		<link>http://prajwolkumar.wordpress.com/2009/08/12/my-journey-to-nordsecmob-some-tips-and-g5/</link>
		<comments>http://prajwolkumar.wordpress.com/2009/08/12/my-journey-to-nordsecmob-some-tips-and-g5/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 05:32:07 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[NordSecMob]]></category>
		<category><![CDATA[Erasmus Mundus]]></category>
		<category><![CDATA[Finland]]></category>
		<category><![CDATA[Graduate]]></category>
		<category><![CDATA[Masters]]></category>
		<category><![CDATA[Nepalese Student]]></category>
		<category><![CDATA[Prajwol]]></category>
		<category><![CDATA[Scholarship]]></category>
		<category><![CDATA[Sweden]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=113</guid>
		<description><![CDATA[“The next application round for NordSecMob programme begins 3rd November, 2008 and ends 9th January, 2009” – while reading this during my application days, I didn’t have no clue that I would be writing this post as a NordSecMob scholar “Congratulations on your successful application. Competition for Erasmus Mundus scholarships has been more intense than ever [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=113&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>“<em>The next application round for NordSecMob programme begins 3rd November, 2008 and ends 9th January, 2009</em>” – while reading this during my application days, I didn’t have no clue that I would be writing this post as a NordSecMob scholar <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>“<em>Congratulations on your successful application. Competition for Erasmus Mundus scholarships has been more intense than ever this year, with over 22 000 applications from 166 countries around the world. Of these applicants, only 8% were selected. We hope you will decide to accept your offer of a scholarship&#8230;.</em>” – it wouldn’t take me more than 139.889 milliseconds to accept such an offer ni hoina <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>G5</strong> &#8211; Grand and Garlanded Gratitude to Goodness Grace, I mean.</p>
<p><a href="http://nordsecmob.tkk.fi/index.html">http://nordsecmob.tkk.fi/index.html</a> is the link that should provide you with all the necessary information on this course. There are 5 partner universities viz. <a href="http://www.tkk.fi/English/">Helsinki University of Technology (TKK)</a> in Finland, <a href="http://www.dtu.dk/English.aspx">Technical University of Denmark (DTU)</a>, <a href="http://www.kth.se/?l=en_UK">The Royal Institute of Technology (KTH)</a> in Sweden, <a href="http://www.ntnu.no/english">The Norwegian University of Science and Technology (NTNU)</a> and the <a href="http://www.ut.ee/index.aw/set_lang_id=2">University of Tartu (UT)</a> in Estonia. You have to choose two among these and your specialization will vary based on your choice of universities. I had chosen TKK and KTH. That means my first year is in Helsinki and second year is in Stockholm. Both these universities are highly esteemed and I am grateful that my chosen mobility was granted <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>TKK is the coordinating university with which you will communicate all along the application procedure. The process is to first fill in the online application and then courier them the printed application form along with other supporting documents. Don’t worry, all these things are mentioned in the site above. I used FedEx to courier them the documents, nevertheless, you can also use Linkage or other brokers which provide the service in low prices.</p>
<p>About Documents:</p>
<ul>
<li><strong>BE Original Certificate</strong> or <strong>BE Provisional Certificate</strong> – Must. I had to improvise with Provisional since Original was not issued by then.  Attest it in Balkhu.</li>
<li><strong>BE Transcript</strong> – Must. Everyone already has this, I guess <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Attest it in Balkhu.</li>
<li><strong>+2</strong> or <strong>ISC Transcript</strong> – Must. I attested it in my +2 college.</li>
<li><strong>Letter of Motivation</strong> – Must. Take time and effort in crafting this. Limited to 4000 characters.</li>
<li><strong>CV</strong> – Must. Put your achievements and portfolio here.</li>
<li><strong>Letter of Recommendation</strong> – Must. Two of this is required. I took one from HOD and one from my major project supervisor.</li>
<li><strong>BE syllabus</strong> – Must. Limit it to some 20 pages. Exclude subjects like Mechanical Drawings, Applied Mechanics and other not directly related to Computer Engineering.</li>
<li><strong>Passport</strong> – Must.</li>
<li><strong>English Proficiency</strong> – Must. I took TOEFL test on 23<sup>rd</sup> November. Better take it earlier than this.</li>
<li><strong>Work Experience </strong>– Optional. I didn’t send any experience letter from my workplace. However, you can include this, if you don’t want to take any chance.</li>
</ul>
<p>Letter of Motivation is very important in the sense that, this is your chance to say “<strong>Why choose ME</strong>?”. So don’t do no hurry. Collect yourself and remember all your achievements and vital milestones you have achieved. Since the letter limit is 4000 characters, make it short and sweet. Simple but Sample, I mean <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I had the following things in order in my motivation letter.</p>
<ol>
<li>Who I am.</li>
<li>My aptitude and activities on communication and security during my college.</li>
<li>Hands on experience and knowhow on scope of security and wireless communication during my professional tenure.</li>
<li>How this course can help my career.</li>
<li>My plan after this graduation.</li>
</ol>
<p>CV or Resume is also equally important. Mine was only 6 pages <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  and contained following sections.</p>
<ol>
<li>Education</li>
<li>Work Experience</li>
<li>Other Experience</li>
<li>Technical Skills</li>
<li>Professional Projects</li>
<li>Academic Projects</li>
<li>Awards and Achievements</li>
<li>Publications</li>
<li>Personal – Marital Status is Single wala <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  he he</li>
</ol>
<p>Your Letter of Recommendation also needs to be good. Since this involves our teachers, who are always so so busy, make sure that you initiate this process very early. It might take you some weeks to get just 2 recommendations. <span style="color:#ff0000;">I alert.</span></p>
<p>“<em>… I have the motivation to learn, diligence to contribute and endurance to face the challenges of graduate studies. If provided with the opportunity I am confident that I will live up to the academic and research standards set by the partner universities …</em>” I said this during my application and now <strong>I just can’t wait to experience the scope of foreign study, fun of cultural exchange and drama of my first-ever out-of-home life.</strong></p>
<p>With good regards to future NordSecMob students</p>
<p>Some links you can use:</p>
<ul>
<li><a href="http://eacea.ec.europa.eu/erasmus_mundus/results_compendia/selected_projects_action_1_master_courses_en.php" target="_blank">http://eacea.ec.europa.eu/erasmus_mundus/results_compendia/selected_projects_action_1_master_courses_en.php</a></li>
<li><a href="http://www.nepalfinland.com/2008/11/european-scholarships-for-master-and.html" target="_blank">http://www.nepalfinland.com/2008/11/european-scholarships-for-master-and.html</a></li>
<li><a href="http://ec.europa.eu/education/programmes/mundus/projects/index_en.html" target="_blank">http://ec.europa.eu/education/programmes/mundus/projects/index_en.html</a></li>
</ul>
<p>Cheese and Cheers</p>
<p>Prajwol</p>
<br />Posted in Inspiration, Miscellaneous, NordSecMob Tagged: Erasmus Mundus, Finland, Graduate, Masters, Nepalese Student, NordSecMob, Prajwol, Scholarship, Sweden <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=113&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2009/08/12/my-journey-to-nordsecmob-some-tips-and-g5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Computational Intelligence in Inflation Forecasting</title>
		<link>http://prajwolkumar.wordpress.com/2009/08/11/computational-intelligence-in-inflation-forecasting/</link>
		<comments>http://prajwolkumar.wordpress.com/2009/08/11/computational-intelligence-in-inflation-forecasting/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 03:50:19 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[ANN]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Artificial Neural Network]]></category>
		<category><![CDATA[Computational Intelligence]]></category>
		<category><![CDATA[Forecast]]></category>
		<category><![CDATA[GA]]></category>
		<category><![CDATA[Genetic Algorithm]]></category>
		<category><![CDATA[Inflation]]></category>
		<category><![CDATA[Inflation Forecast]]></category>
		<category><![CDATA[Intelligence]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=109</guid>
		<description><![CDATA[Using ANN and GA to study and forecast one of the key macroeconomic indicator- "inflation"<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=109&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Open Software Challenge Nepal 2009 </strong>was announced somewhere during early 2009. And somehow, computer-half of the CSIDC team (me-Prajwol and Dipesh) decided to participate in it. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Screen blurred, grayscale starts</strong> &#8211; To talk about CSIDC, it was CSIDC 2006, organized by the IEEE under the theme of “Preserving, Protecting and Enhancing the Environment”. Saurav Ratna Tuladhar and Nilesh Shakya (electronics), and Dipesh Karki and Prajwol Kumar Nakarmi –me (computer) were selected from Pulchowk Campus to participate in it. We had presented our project “<strong>iForest</strong> – A Monitoring and Management System for Sustainable Forestry”. The certificate of participation of this competition has definitely increased the weight of our CVs <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  – <strong>Screen normal, colorscale resumes</strong>. he he <img src='http://s1.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Dipesh and I talked in phone, texted in MSN, brainstormed in Eiden Garden and came out with what we christened “<strong>Computational Intelligence in Inflation Forecasting</strong>” (CIIF). Of course Carlsberg was there to accompany us whenever possible. LOL</p>
<p>Now on August, we both are proud to say that we made to the prestigious <strong>TOP 10</strong> among some 80+ projects. My heartfelt congratulations to the guys who made it to the TOP 3 (Y).</p>
<p>Many were expecting our project to do better before the result announcement, and of course, we were hopeful too.  But probably, the fact that our development platform was .NET pulled our legs and we didn’t make till the TOP 3 mark. We had some people asking “<strong><em>how can your software be open when I have to pay for it</em></strong>” LOL LOL a big disgrace to such a question. We tried to explain – they seemed to agree – it was apparent that they didn’t understand :’(. <strong>May the true meaning of Openness of the Software come to light to all of us, AMEN.</strong></p>
<p>Let me, now, say some about CIIF. As we know, Inflation is a persistent and significant increase in general price level and it is calculated by averaging the percentage growth rate of the prices of selected sample of commodities. It is one of the most essential macroeconomic indicator as many other economic variables like wage rate, salaries , gross domestic product, interest rate are either directly or indirectly related to change in price. However the inflation can be calculated only in hindsight by comparing present commodity price with the past. As this isn’t much help while formulating the future pricing policy, a forecasting mechanism must be introduced to estimate the future expectation of the inflation rate.</p>
<p>In this light, the software, that attempts to forecast one of the key macroeconomic indicator- ‘<strong>Inflation’</strong> using both Neural Network and Genetic Algorithm, was developed. Ladies and Gentlemen, we give to you CIIF <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . The system consists of two main engines, viz. <strong>Artificial Neural Network</strong> and <strong>Genetic Algorithm</strong>. Two flavors of the later are available as Encoding and No Encoding. Statistics are present to measure the fitness of the predicted data. For easy visualization of the output, Graph component is also available.</p>
<p>The input data consisted of inflation rates of USA for last 1143 months, dating back to January of 1914 to March of 2009.  Before beginning the training, the data set is divided into the training set and the validation (Prediction set). First 1043 months data are kept in training set while last 100 are kept in validation set. The application is supple in sense that by simply changing the parameter in the input file the size of validation set as well as training set can be changed. The value of R2 &gt;= 0.5 is acceptable for our system, which implies that at least 50pc of total variation in the data should be explained by the system. Our tests show that the results are over par. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>You can follow CIIF under <a href="http://collaborate.d2labs.org/projects/ciif/">http://collaborate.d2labs.org/projects/ciif/</a></p>
<p>Cheese and Cheers</p>
<p>Prajwol</p>
<br />Posted in .NET, Inspiration, Miscellaneous Tagged: ANN, Artificial Intelligence, Artificial Neural Network, Computational Intelligence, Forecast, GA, Genetic Algorithm, Inflation, Inflation Forecast, Intelligence <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=109&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2009/08/11/computational-intelligence-in-inflation-forecasting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Solving the encoding problem while writing to Response</title>
		<link>http://prajwolkumar.wordpress.com/2009/06/19/solving-the-encoding-problem-while-writing-to-response/</link>
		<comments>http://prajwolkumar.wordpress.com/2009/06/19/solving-the-encoding-problem-while-writing-to-response/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:40:26 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[japanese]]></category>
		<category><![CDATA[save as]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=106</guid>
		<description><![CDATA[Technology: C# ASP.NET Level: Expert Depth: Medium I, once, had to present a save-as dialogue that would export the content of a GridView into csv and the database would contain Japanese texts. Export was all fine and the file was read fine from Visual Studio itself. However, when the csv was opened from Excel, the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=106&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Technology</strong>: C# ASP.NET</p>
<p><strong>Level</strong>: Expert</p>
<p><strong>Depth</strong>: Medium</p>
<p>I, once, had to present a save-as dialogue that would export the content of a GridView into csv and the database would contain Japanese texts. Export was all fine and the file was read fine from Visual Studio itself. However, when the csv was opened from Excel, the Japanese texts came all garbage.</p>
<p>This could have been for my PC doesn’t have Japanese locales and fonts. But the PC with such features also read it same. Here I present a way that solved this problem.</p>
<p><em>protected void ImageButton_CSV_Click(object sender, ImageClickEventArgs e)</em></p>
<p><em> {</em></p>
<p><em> &#8230;</em></p>
<p><em> MyDataSet.MyDataTable exportTable = &#8230;</em></p>
<p><em> </em></p>
<p><em> HttpContext context = HttpContext.Current;</em></p>
<p><em> context.Response.Clear();</em></p>
<p><em> <strong>context.Response.ContentEncoding = Encoding.GetEncoding(&#8220;shift_JIS&#8221;);</strong></em></p>
<p><em> </em></p>
<p><em> for (int i = 1; i &lt; exportTable.Columns.Count; i++)</em></p>
<p><em> {</em></p>
<p><em> context.Response.Write(exportTable.Columns[i].ColumnName + &#8220;,&#8221;);</em></p>
<p><em> }</em></p>
<p><em> </em></p>
<p><em> context.Response.Write(Environment.NewLine);</em></p>
<p><em> <strong>string orig_string = &#8220;&#8221;;</strong></em></p>
<p><strong><em> byte[] unicodeBytes = null;</em></strong></p>
<p><strong><em> byte[] codBytes = null;</em></strong></p>
<p><strong><em> char[] codChars = null;</em></strong></p>
<p><strong><em> string codString = &#8220;&#8221;;</em></strong></p>
<p><strong><em> Encoding cod = Encoding.GetEncoding(&#8220;shift_JIS&#8221;);</em></strong></p>
<p><strong><em> Encoding unicode = Encoding.UTF8;</em></strong></p>
<p><em> </em></p>
<p><em> for (int i = 1; i &lt; exportTable.Rows.Count; i++)</em></p>
<p><em> {</em></p>
<p><em> for (int j = 0; j &lt; exportTable.Columns.Count; j++)</em></p>
<p><em> { </em></p>
<p><strong><em> orig_string = exportTable[i][j].ToString().Replace(&#8220;,&#8221;, string.Empty).Replace(&#8220;&amp;nbsp;&#8221;, string.Empty) + &#8220;,&#8221;;</em></strong></p>
<p><strong><em> unicodeBytes = unicode.GetBytes(orig_string);</em></strong></p>
<p><strong><em> codBytes = Encoding.Convert(unicode, cod, unicodeBytes);</em></strong></p>
<p><strong><em> codChars = new char[cod.GetCharCount(codBytes, 0, codBytes.Length)];</em></strong></p>
<p><strong><em> cod.GetChars(codBytes, 0, codBytes.Length, codChars, 0);</em></strong></p>
<p><strong><em> codString = new string(codChars);</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em> context.Response.Write(codString);</em></strong><em> </em></p>
<p><em> }</em></p>
<p><em> context.Response.Write(Environment.NewLine);</em></p>
<p><em> }</em></p>
<p><em> </em></p>
<p><em> context.Response.ContentType = &#8220;text/csv&#8221;;</em></p>
<p><em> context.Response.AppendHeader(&#8220;Content-Disposition&#8221;, &#8220;attachment; filename=my_file.csv&#8221;);</em></p>
<p><em> context.Response.End();</em></p>
<p><em> }</em></p>
<p><em> </em></p>
<p>The codes in the bold do the actual trick. The content encoding and writing to the response in the correct manner is all that needs to be done.</p>
<p>This, however, is not limited to csv exports. You can try with other file formats too.</p>
<p>Cheers and Cheese (Y)</p>
<br />Posted in .NET Tagged: asp.net, C#, csv, encoding, export, japanese, save as <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=106&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2009/06/19/solving-the-encoding-problem-while-writing-to-response/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Locking Vertical Scrollbar in DataGridView or ListView WinForm C#</title>
		<link>http://prajwolkumar.wordpress.com/2009/06/11/locking-vertical-scrollbar-in-datagridview-or-listview-winform-c/</link>
		<comments>http://prajwolkumar.wordpress.com/2009/06/11/locking-vertical-scrollbar-in-datagridview-or-listview-winform-c/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 09:35:34 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[datagridview]]></category>
		<category><![CDATA[flicker]]></category>
		<category><![CDATA[listview]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[srollbar]]></category>
		<category><![CDATA[vertical scrollbar]]></category>
		<category><![CDATA[winform]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=99</guid>
		<description><![CDATA[how to locking, virtually, vertical scrollbar for fast changing data in datagridview or listview<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=99&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Verdana;line-height:normal;color:#333333;font-size:12px;"> </span></p>
<p style="font:normal normal normal 1em/1.3em Verdana, Arial, Helvetica, sans-serif;"><strong>Technology</strong>: C# WinForm</p>
<p style="font:normal normal normal 1em/1.3em Verdana, Arial, Helvetica, sans-serif;"><strong>Level</strong>: Expert</p>
<p style="font:normal normal normal 1em/1.3em Verdana, Arial, Helvetica, sans-serif;"><strong>Depth</strong>: Medium</p>
<p>There are times that we display data in DataGridView or ListView. When the data flows beyond the size of the control, vertical scrollbar appears that we can use to navigate to positions of our choice. So good so far.</p>
<p>Now suppose that the data needs to be refreshed every 1 or 2 seconds. And we are viewing the bottom row or the bottom item, which means that the vertical scroll bar is at the bottom. Now, when the refresh method finishes execution, the data is repopulated and we notice that the vertical scroll bar jumps to the top. For constantly changing data with large number of rows or items, this poses a serious problem because the scrollbar is not locked to its position. Since the data refreshes very fast, dragging the scroll times 60 times a minute is also not plausible.</p>
<p>In this page, I put in my approach to counter the above problem. It&#8217;s simple and working.</p>
<p>The code goes like this:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">public Form_ClosedPosition()</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">InitializeComponent();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for (int i = 0; i &lt; 10; i++)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">dataGridView_Closed.Rows.Add(i.ToString(), DateTime.Now.ToString(&#8220;HH:mm:ss&#8221;), i.ToString());</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ReloadList();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">private void ReloadList()</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">this.SuspendLayout();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">dataGridView_Closed.SuspendLayout();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for (int i = 0; i &lt; 10; i++)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">dataGridView_Closed.Rows.Add(i.ToString(), DateTime.Now.ToString(&#8220;HH:mm:ss&#8221;), i.ToString());</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for (int i = 0; i &lt; 10; i++)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">dataGridView_Closed.Rows.RemoveAt(0);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">dataGridView_Closed.ResumeLayout(false);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">this.ResumeLayout(false);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">private void Form_ClosedPosition_FormClosing(object sender, FormClosingEventArgs e)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Hide();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">e.Cancel = true;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">private void Form_ClosedPosition_VisibleChanged(object sender, EventArgs e)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//if (Visible == true)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//    MessageBox.Show(&#8220;Timer started&#8221;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//else</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//    MessageBox.Show(&#8220;Timer stopped&#8221;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">//}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">private void timer_Refresh_Tick(object sender, EventArgs e)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ReloadList();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">}</div>
<p><em>public Form_ClosedPosition()</em></p>
<p><em> {</em></p>
<p><em> InitializeComponent();</em></p>
<p><em> for (int i = 0; i &lt; 10; i++)</em></p>
<p><em> {</em></p>
<p><em> dataGridView_Closed.Rows.Add(i.ToString(), DateTime.Now.ToString(&#8220;HH:mm:ss&#8221;), i.ToString());</em></p>
<p><em> }</em></p>
<p><em> ReloadList();</em></p>
<p><em> }</em></p>
<p><em> private void ReloadList()</em></p>
<p><em> {</em></p>
<p><em> this.SuspendLayout();</em></p>
<p><em> dataGridView_Closed.SuspendLayout();</em></p>
<p><em> for (int i = 0; i &lt; 10; i++)</em></p>
<p><em> {</em></p>
<p><em> dataGridView_Closed.Rows.Add(i.ToString(), DateTime.Now.ToString(&#8220;HH:mm:ss&#8221;), i.ToString());</em></p>
<p><em> }</em></p>
<p><em> for (int i = 0; i &lt; 10; i++)</em></p>
<p><em> {</em></p>
<p><em> dataGridView_Closed.Rows.RemoveAt(0);</em></p>
<p><em> }</em></p>
<p><em> dataGridView_Closed.ResumeLayout(false);</em></p>
<p><em> this.ResumeLayout(false);</em></p>
<p><em> }</em></p>
<p><em> private void timer_Refresh_Tick(object sender, EventArgs e)</em></p>
<p><em> {</em></p>
<p><em> ReloadList();</em></p>
<p><em> }</em></p>
<p>What I am doing in the above code is appending the new rows and then removing the old rows from the beginning, instead of clearing the rows and then adding new rows. Doing the later, as we know, produce the flickering and jumping scroll bars as we have discussed intially.</p>
<p>The bottom line is: <strong>Don’t clear the rows and fill the control</strong>, instead, <strong>Append the new rows and remove the old ones</strong>.</p>
<p>Cheers and Cheese.</p>
<br />Posted in .NET Tagged: .NET, datagridview, flicker, listview, lock, srollbar, vertical scrollbar, winform <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=99&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2009/06/11/locking-vertical-scrollbar-in-datagridview-or-listview-winform-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Preventing multiple form submission</title>
		<link>http://prajwolkumar.wordpress.com/2009/01/14/preventing-multiple-form-submission/</link>
		<comments>http://prajwolkumar.wordpress.com/2009/01/14/preventing-multiple-form-submission/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 06:41:38 +0000</pubDate>
		<dc:creator>Prajwol Kumar Nakarmi</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Forms]]></category>

		<guid isPermaLink="false">http://prajwolkumar.wordpress.com/?p=85</guid>
		<description><![CDATA[Technology: JavaScript Level: Intermediate Depth: Brief For any form, clicking the &#8220;Submit&#8221; button twice results in the submission of  the form two times. This results in the duplicate backend logic and is so a flaw.  This situation can be safeguarded with either client-side or server-side logic. Depending upon the server-side programming language, we can employ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=85&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Technology</strong>: JavaScript</p>
<p><strong>Level</strong>: Intermediate</p>
<p><strong>Depth</strong>: Brief</p>
<p>For any form, clicking the &#8220;Submit&#8221; button twice results in the submission of  the form two times. This results in the duplicate backend logic and is so a flaw. </p>
<p>This situation can be safeguarded with either client-side or server-side logic. Depending upon the server-side programming language, we can employ our back-end logics to detect the multiple submission of the same form and act similarly. This should not be of any problem. So in this post, I will throw in some code related to client-side JavaScript.</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>Code</strong></td>
<td><strong>Remarks</strong></td>
</tr>
<tr>
<td>&lt;input type=&#8221;submit&#8221;   value=&#8221;Submit&#8221; onClick=&#8221;this.onClick=new Function(&#8216;return   false;&#8217;);&#8221; &gt;</td>
<td>The button doesn&#8217;t submit the form again</td>
</tr>
<tr>
<td>&lt;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221;   onClick=&#8221;this.disabled=true&#8221; /&gt;</td>
<td>The submit button is disabled once it&#8217;s been pressed the first time</td>
</tr>
<tr>
<td>&lt;input type=&#8221;submit&#8221;   value=&#8221;Submit&#8221; onClick=&#8221;this.value=&#8217;Processing&#8230;&#8217;&#8221; /&gt;</td>
<td>The user is notified that the form is under process. But doesn&#8217;t do   anything to prevent the re-submission</td>
</tr>
<tr>
<td>&lt;script type=&#8221;text/javascript&#8221;   language=&#8221;JavaScript&#8221;&gt;&lt;!&#8211;       </p>
<p>start_over_at = 3;</p>
<p>counter = 0;</p>
<p>function monitor() {</p>
<p>counter++;</p>
<p>if(counter &gt;= start_over_at) { counter = 1; }</p>
<p>if(counter &gt; 1) { return false; }</p>
<p>return true;</p>
<p>} // &#8211;&gt;&lt;/script&gt;</p>
<p>&lt;input type=&#8221;submit&#8221;   value=&#8221;Submit&#8221; onClick=&#8221;return monitor() &#8221; /&gt;</td>
<td>This script allows the submission to go through if the user clicks   more than a specified number of times</td>
</tr>
</tbody>
</table>
<p>Some useful links:</p>
<ol>
<li><a href="http://www.willmaster.com/library/web-development/multiple-form-submission-prevention.php">http://www.willmaster.com/library/web-development/multiple-form-submission-prevention.php</a></li>
<li><a href="http://www.smashingmagazine.com/2009/01/12/10-useful-web-application-interface-techniques/">http://www.smashingmagazine.com/2009/01/12/10-useful-web-application-interface-techniques/</a></li>
</ol>
<br />Posted in JavaScript, Security Tagged: Forms, JavaScript <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prajwolkumar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prajwolkumar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prajwolkumar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prajwolkumar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prajwolkumar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prajwolkumar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prajwolkumar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prajwolkumar.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prajwolkumar.wordpress.com&amp;blog=3042820&amp;post=85&amp;subd=prajwolkumar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prajwolkumar.wordpress.com/2009/01/14/preventing-multiple-form-submission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">prajwolkumar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
