<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>my.tech.page</title>
	<atom:link href="http://durgaprasad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://durgaprasad.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 26 Dec 2008 00:36:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='durgaprasad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9f2271ffecc2a0f4783505bcbd21df4c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>my.tech.page</title>
		<link>http://durgaprasad.wordpress.com</link>
	</image>
			<item>
		<title>Location markers in web based email clients</title>
		<link>http://durgaprasad.wordpress.com/2008/12/26/location-markers-in-web-based-email-clients/</link>
		<comments>http://durgaprasad.wordpress.com/2008/12/26/location-markers-in-web-based-email-clients/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 00:15:25 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[Web services]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/?p=52</guid>
		<description><![CDATA[Mostly, I remember important e-mails by remembering the time frame (or any nearby events) during which I received the email. For example, all  conversations regarding first assignment of a course happened during the semester beginning time-frame. So, I would like to mark one e-mail which I received at the semester beginning. When I click on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=52&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Mostly, I remember important e-mails by remembering the time frame (or any nearby events) during which I received the email. For example, all  conversations regarding first assignment of a course happened during the semester beginning time-frame. So, I would like to mark one e-mail which I received at the semester beginning. When I click on that marked email, <strong>it should not open that email</strong>. It should show the list of emails in Inbox received during the semester beginning time-frame and the cursor/pointer should point to that email. So, I can find emails of the first assignment just above the marked email.</p>
<p>In GMail, &#8220;Starred&#8221; items act as &#8220;bookmarks&#8221;. When I click on an email in &#8220;Starred emails&#8221;, it will open that e-mail. The new feature that I want is &#8220;location markers&#8221;. &#8220;Searching emails&#8221; does not work for me always as I don&#8217;t remember the keywords many times, but I remember the time frame during which I received the email. Using &#8220;after&#8221; and &#8220;before&#8221; while searching in GMail solves the problem to some extent, but not completely.</p>
<p>If this feature is implemented in GMail, it would be really nice. May be, this feature is implemented in different form, but I am not aware.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=52&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2008/12/26/location-markers-in-web-based-email-clients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Functions with variable number of arguments</title>
		<link>http://durgaprasad.wordpress.com/2008/06/13/functions-with-variable-number-of-arguments/</link>
		<comments>http://durgaprasad.wordpress.com/2008/06/13/functions-with-variable-number-of-arguments/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 17:26:39 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/?p=46</guid>
		<description><![CDATA[In C/C++, functions can be written to take variable no. of arguments. Examples are printf, sprintf, snprintf etc. The prototype of printf functions looks like int printf(const char *format, &#8230;). These functions internally use macros such as va_start, va_arg, va_end etc to get the passed parameters. But, I have observed that for every function like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=46&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In C/C++, functions can be written to take variable no. of arguments. Examples are printf, sprintf, snprintf etc. The prototype of printf functions looks like <strong>int printf(const char *format, &#8230;)</strong>. These functions internally use macros such as va_start, va_arg, va_end etc to get the passed parameters. But, I have observed that for every function like printf, there is another similarly defined function which takes va_list instead of &#8230; . For example, vprintf is similar to printf and has <strong>int vprintf(const char *format, va_list ap)</strong> prototype. In the same way, vsprintf and vsnprintf are also defined. Till now, I did not know the reason and used to think of it as an unnecessary wrapper.</p>
<p>For example, if a wrapper called myprintf needs to be written over printf</p>
<p><strong>int myprintf(const char* format, &#8230;){</strong></p>
<p><strong>va_list ap;</strong></p>
<p><strong>va_start(ap,format);</strong></p>
<p><em><strong>???????</strong></em></p>
<p><strong>va_end(ap);</strong></p>
<p><strong>}</strong></p>
<p>In the above code, I can not put &#8216;printf&#8217; in place of ??????. Because printf is expecting variable arguments (like i, j , l) and not va_list dataype. So, in place of ??????, I should call vprintf which takes va_list.</p>
<p>So, I observed that it is a good practice to write 2 functions in case of variable number of arguments. One which takes variable no. of arguments as &#8230; and the other one taking va_list. An example is given below.</p>
<p><strong>void vfunction (char * format, va_list ap){</strong></p>
<p><strong>/*This function does the actual work*/</strong></p>
<p><strong>}</strong></p>
<p><strong>void function(char* format, &#8230;){</strong></p>
<p><strong>/*This function just redirects to vfunction which does the work */</strong></p>
<p><strong>va_list ap;</strong></p>
<p><strong>va_start(ap,format);</strong></p>
<p><strong>vfunction(format, ap);</strong></p>
<p><strong>va_end(ap);</strong></p>
<p><strong>}</strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=46&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2008/06/13/functions-with-variable-number-of-arguments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Plus addressing in GMail</title>
		<link>http://durgaprasad.wordpress.com/2008/04/11/plus-addressing-in-gmail/</link>
		<comments>http://durgaprasad.wordpress.com/2008/04/11/plus-addressing-in-gmail/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 07:44:18 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[Web services]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/?p=45</guid>
		<description><![CDATA[I recently learnt that plus addressing is supported in GMail. I feel this is a nice feature. If plus addressing is supported, even if we send a mail to user+office@gmail.com, it will be delivered to user@gmail.com. But, for user, it will be easy to set filters based on the extra information (+office). User can give [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=45&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently learnt that plus addressing is supported in GMail. I feel this is a nice feature. If plus addressing is supported, even if we send a mail to user+office@gmail.com, it will be delivered to user@gmail.com. But, for user, it will be easy to set filters based on the extra information (+office). User can give different email addresses (user+office, user+maths, user+studies etc.) to others for different purposes.</p>
<p>This feature (but as minus addressing) is supported in Yahoo mail also (only in Yahoo Mail Plus). You can read more information about plus addressing <a title="Plus addressing in emails." href="http://en.wikipedia.org/wiki/E-mail_address#Plus_.28or_Minus.29_addressing">here</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=45&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2008/04/11/plus-addressing-in-gmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Scheduling e-mails in web based mail services</title>
		<link>http://durgaprasad.wordpress.com/2008/02/27/scheduling-e-mails-in-web-based-mail-services/</link>
		<comments>http://durgaprasad.wordpress.com/2008/02/27/scheduling-e-mails-in-web-based-mail-services/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 10:10:03 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[Web services]]></category>
		<category><![CDATA[web pages]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/?p=43</guid>
		<description><![CDATA[In web based e-mail services like yahoo mail &#38; gmail, I always feel 1 feature is missing. That is setting timer to send mails. Suppose, if tomorrow is my friend&#8217;s birthday, I will write an email and set a timer to deliver the email at night 12&#8242; clock. I don&#8217;t have to be awake till [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=43&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In web based e-mail services like yahoo mail &amp; gmail, I always feel 1 feature is missing. That is setting timer to send mails. Suppose, if tomorrow is my friend&#8217;s birthday, I will write an email and set a timer to deliver the email at night 12&#8242; clock. I don&#8217;t have to be awake till 12&#8242; clock to wish him.</p>
<p>In the view part, only change is &#8220;Drop down&#8221; should be provided at the <b>send</b> button to select the time.</p>
<p>I know we can achieve this using schedulers present in our machines. But, feature like this in web based mail services will reach more audience. If this option is provided in yahoo or gmail, that will be very nice.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=43&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2008/02/27/scheduling-e-mails-in-web-based-mail-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>Find &amp; Replace non-printable characters in vim</title>
		<link>http://durgaprasad.wordpress.com/2007/09/25/find-replace-non-printable-characters-in-vim/</link>
		<comments>http://durgaprasad.wordpress.com/2007/09/25/find-replace-non-printable-characters-in-vim/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 22:54:03 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[IDE]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/2007/09/25/find-replace-non-printable-characters-in-vim/</guid>
		<description><![CDATA[When I converted a file from EBCDIC format to ASCII format using an online tool, there are many non-printable characters in the ASCII file. So, this ASCII file is completely unreadable. So, I followed the below steps to make it readable.
1) Find hexa value of that non-printable character. Move your cursor to that character and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=42&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I converted a file from <a href="http://en.wikipedia.org/wiki/EBCDIC">EBCDIC</a> format to ASCII format using an online tool, there are many non-printable characters in the ASCII file. So, this ASCII file is completely unreadable. So, I followed the below steps to make it readable.</p>
<p>1) Find hexa value of that non-printable character. Move your cursor to that character and press &#8216;ga&#8217;.</p>
<p>2) In escape mode, execute this &#8216;:%s/\%x85/\r/gc&#8217;. In my case, hexadecimal value of that non-printable character is 85. I replaced that with &#8216;\r&#8217;.</p>
<p>Some characters like &#8216;Ctrl+M&#8217; can be printed by &#8216;Ctrl+v&#8217; + &#8216;Ctrl+M&#8217;. But, in my case, 0&#215;85 is that non-printable character and could not print it using &#8216;Ctrl+v&#8217;.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=42&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2007/09/25/find-replace-non-printable-characters-in-vim/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>commands in /bin/sh like printf are slow</title>
		<link>http://durgaprasad.wordpress.com/2007/07/10/commands-in-binsh-like-printf-are-slow/</link>
		<comments>http://durgaprasad.wordpress.com/2007/07/10/commands-in-binsh-like-printf-are-slow/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 19:27:50 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/2007/07/10/commands-in-binsh-like-printf-are-slow/</guid>
		<description><![CDATA[In our makefiles, we call shell commands like printf. Makefiles are internally executing that command through /bin/sh like /bin/sh -c printf hi. In my newly installed solaris machine, I have observed that some commands [printf] are running very slow. Then, I have seen the main reason as printf is not built-in function in the shell. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=41&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In our makefiles, we call shell commands like printf. Makefiles are internally executing that command through /bin/sh like /bin/sh -c printf hi. In my newly installed solaris machine, I have observed that some commands [printf] are running very slow. Then, I have seen the main reason as printf is not built-in function in the shell. But, in /bin/bash, it is built-in. The same command is running very fast in bash. As I know, /bin/bash [BASH] is advanced than /bin/sh [Bourne shell]. So, I have created a soft link from /bin/bash to /bin/sh. Now, whenever I execute /bin/sh, automatically bash will be executed. As of now, I did not get any problem with this approach and it seems bash has many built-in commands and fast.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=41&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2007/07/10/commands-in-binsh-like-printf-are-slow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>some problems when commands are hashed</title>
		<link>http://durgaprasad.wordpress.com/2007/07/09/some-problems-when-commands-are-hashed/</link>
		<comments>http://durgaprasad.wordpress.com/2007/07/09/some-problems-when-commands-are-hashed/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 14:32:56 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/2007/07/09/some-problems-when-commands-are-hashed/</guid>
		<description><![CDATA[In Unix systems, commands are hashed for performance reasons [man hash]. Today, I got a problem related to this and wasted so much time for resolving. In my solaris machine, patch command is in /usr/bin/patch and its version is very old. So, I have installed a new patch version using pkgadd and it has installed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=40&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In Unix systems, commands are hashed for performance reasons [man hash]. Today, I got a problem related to this and wasted so much time for resolving. In my solaris machine, patch command is in /usr/bin/patch and its version is very old. So, I have installed a new patch version using pkgadd and it has installed patch command in /usr/local/bin/. In PATH variable, /usr/local/bin/ is before /usr/bin directory.  So, `which patch` command is showing /usr/local/bin/patch. But, when I execute patch on command prompt, it is executing old version of patch [/usr/bin/patch]. After some time, I tried type command `type patch` and it is showing /usr/bin/patch is hashed. Then, I came to know about hash command in solaris. After rehashing, every thing started working fine.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=40&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2007/07/09/some-problems-when-commands-are-hashed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>R6034 &#8211; C runtime error in Vista</title>
		<link>http://durgaprasad.wordpress.com/2007/06/04/r6034-c-runtime-error-in-vista/</link>
		<comments>http://durgaprasad.wordpress.com/2007/06/04/r6034-c-runtime-error-in-vista/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 19:18:11 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/2007/06/04/r6034-c-runtime-error-in-vista/</guid>
		<description><![CDATA[Today, when trying to execute a test program on Vista, I got the above error.  I have copied only executable and forgot to copy manifest file to the destination folder. So, I was getting the above error, when I tried to execute the executable. But, after copying manifest file also, this error did not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=39&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today, when trying to execute a test program on Vista, I got the above error.  I have copied only executable and forgot to copy manifest file to the destination folder. So, I was getting the above error, when I tried to execute the executable. But, after copying manifest file also, this error did not go away. I have searched over the net for any clues, in many forums this issue is discussed, but all posts are talking about some manifest problem in Vista. But, somewhere I read that Vista caches the meta data. So, I touched the executable using touch command to change the last modified time[I use cygwin]. After that OS is able to recognize manifest file associated with executable and started working fine.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=39&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2007/06/04/r6034-c-runtime-error-in-vista/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>My first bug in OpenSolaris</title>
		<link>http://durgaprasad.wordpress.com/2007/05/31/my-first-bug-in-opensolaris/</link>
		<comments>http://durgaprasad.wordpress.com/2007/05/31/my-first-bug-in-opensolaris/#comments</comments>
		<pubDate>Thu, 31 May 2007 09:59:06 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/2007/05/31/my-first-bug-in-opensolaris/</guid>
		<description><![CDATA[Yesterday, while using getpass* functions &#38; passwd command in solaris, I found a bug. Type passwd command and press ctrl-z to stop that process and bring that process to foreground using fg command. Now, you can see your password while typing it. Basically, tty are settings are reset when you stop the process and bring [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=38&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yesterday, while using getpass* functions &amp; passwd command in solaris, I found a bug. Type passwd command and press ctrl-z to stop that process and bring that process to foreground using fg command. Now, you can see your password while typing it. Basically, tty are settings are reset when you stop the process and bring it to foreground.</p>
<p>when I sent a mail to Sun Security Coordination Team [secure@security.Eng.Sun.COM], they said it was found internally recently and already raised as a bug http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6443857 in OpenSolaris bug database. By mistake, as it is noted as security vulnerability in bug description, so it is not visible outside.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=38&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2007/05/31/my-first-bug-in-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
		<item>
		<title>New tricks that I have learned in using debuggers</title>
		<link>http://durgaprasad.wordpress.com/2007/05/24/new-tricks-that-i-have-learned-in-using-debuggers/</link>
		<comments>http://durgaprasad.wordpress.com/2007/05/24/new-tricks-that-i-have-learned-in-using-debuggers/#comments</comments>
		<pubDate>Thu, 24 May 2007 20:19:53 +0000</pubDate>
		<dc:creator>durgaprasad</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://durgaprasad.wordpress.com/2007/05/24/new-tricks-that-i-have-learned-in-using-debuggers/</guid>
		<description><![CDATA[In gdb/dbx, we can see the variable using addresses. Suppose a structure [struct Box * b] is not deallocated but we are setting it to NULL i.e. b = NULL. We can not access that structure using b. But if we know the address pointed by b [we can get it using print b], we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=37&subd=durgaprasad&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In gdb/dbx, we can see the variable using addresses. Suppose a structure [struct Box * b] is not deallocated but we are setting it to NULL i.e. b = NULL. We can not access that structure using b. But if we know the address pointed by b [we can get it using <strong>print b</strong>], we can access it like *(struct Box *) (0&#215;4f2b2448) [assuming 0x4f2b2448 is the address that b points]. Obviously this is a very simple thing. But, I have used it for the first time. Similarly, when setting watchpoints over variables like <strong>watch b</strong>-&gt;length, if the control goes to some other place where this variable b is not in scope, that watchpoint will be deleted. [Atleast this happens in old gdb versions, I'm using SuSE 8]. So, in those cases you can put watch point over address so that it is accessible from anywhere. <strong>watch ((struct Box *)(0&#215;4f2b2448))-&gt;length</strong> works fine.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/durgaprasad.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/durgaprasad.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/durgaprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/durgaprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/durgaprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/durgaprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/durgaprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/durgaprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/durgaprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/durgaprasad.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/durgaprasad.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/durgaprasad.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=durgaprasad.wordpress.com&blog=442213&post=37&subd=durgaprasad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://durgaprasad.wordpress.com/2007/05/24/new-tricks-that-i-have-learned-in-using-debuggers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b58ec29335eefc5917ec862f3b12925f?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">durgaprasad</media:title>
		</media:content>
	</item>
	</channel>
</rss>