<?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>Just Blogging..</title>
	<atom:link href="http://chiddu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chiddu.wordpress.com</link>
	<description>Just another blog ?</description>
	<lastBuildDate>Sat, 19 Dec 2009 18:36:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chiddu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Just Blogging..</title>
		<link>http://chiddu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chiddu.wordpress.com/osd.xml" title="Just Blogging.." />
	<atom:link rel='hub' href='http://chiddu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Emacs grep</title>
		<link>http://chiddu.wordpress.com/2009/10/27/emacs-grep/</link>
		<comments>http://chiddu.wordpress.com/2009/10/27/emacs-grep/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:20:22 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=45</guid>
		<description><![CDATA[Some of these commands are written entirely in elisp, some work as a wrapper to the unix command tool. Here are some examples. How to grep a file? To call the unix grep command, do “ Alt+! grep xyz filename”. Or, in Emacs, you can use “Alt+x list-matching-lines” or delete-matching-lines. “list-matching-lines” starts from the beginning [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=45&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some of these commands are written entirely in elisp, some work as a wrapper to the unix command tool. Here are some examples.</p>
<h2>How to grep a file?</h2>
<div>
<p>To call the unix grep command, do “ <strong><span style="color:#ff6600;">Alt+! grep xyz filename</span></strong>”.</p>
<p>Or, in Emacs, you can use “<strong><span style="color:#ff6600;">Alt+x list-matching-lines</span></strong>” or delete-matching-lines. “<strong><span style="color:#ff6600;">list-matching-lines</span></strong>” starts from the beginning of file (regardless if there&#8217;s a region). “delete-matching-lines” works on the region if there is one, else it starts at the cursor point. There&#8217;s also “<span style="color:#ff6600;"><strong>delete-non-matching-lines</strong></span>”.</p>
</div>
<h2>How to grep all files in a dir?</h2>
<div>
<p>To call the unix command: “<span style="color:#ff6600;"><strong>Alt+! grep -r mySearchStr dir_name</strong></span>”.</p>
<p>To call emacs version, type: “<strong><span style="color:#ff6600;">Alt+x grep</span></strong>”.</p>
<p>The difference between calling the unix grep inside emacs and calling emacs&#8217;s grep, is this: the result of Emac&#8217;s grep will be nicely colored and linked. Your search string are highlighted, and you can jump to the file by clicking on the file name or press return when the cursor is on the file name.</p>
</div>
<h2>How to list files that contain a particular string? (grep -l)</h2>
<p>“Alt+x grep-find”.</p>
<p>The grep-find command will invoke find . -type f -exec grep -nH -e MySearchStr {} /dev/null \; or grep -r &lt;C&gt; -nH -e . &#8211;include=, depending on which distro or version of emacs. Emacs will promp the above command in the minibuffer, then you can edit it to modify your search word, or type name extension to search. When you execute the command, emacs will place the output in a formated and linked way in another pane.</p>
<p>If you use the command often, you can creat a alias or keyboard shortcut. Here&#8217;s the code to put in your emacs init file:</p>
<address><span style="color:#ff6600;">(defalias &#8216;gf &#8216;grep-find)<br />
(global-set-key (kbd &#8220;&lt;f8&gt;&#8221;) &#8216;grep-find) ; the F8 key</span></address>
<address> </address>
<address>Link : <a href="http://xahlee.org/emacs/emacs_unix.html">http://xahlee.org/emacs/emacs_unix.html</a></address>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=45&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/10/27/emacs-grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs &#8230;</title>
		<link>http://chiddu.wordpress.com/2009/10/27/emacs/</link>
		<comments>http://chiddu.wordpress.com/2009/10/27/emacs/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:15:57 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/2009/10/27/emacs/</guid>
		<description><![CDATA[Interactively Find and Replace String Patterns on Multiple Files Xah Lee, 2006-06, 2009-08, 2009-09-29 Suppose you need to do find and replace of a string pattern, for the hundreds of files in a directory. However, you do not want to replace all of them. You need to look at it in a case-by-case basis. What [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=43&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Interactively Find and Replace String Patterns on Multiple Files</h2>
<p>Xah Lee, 2006-06, 2009-08, 2009-09-29</p>
<p>Suppose you need to do find and replace of a string pattern, for the hundreds of files in a directory. However, you do not want to replace all of them. You need to look at it in a case-by-case basis. What can you do?</p>
<p>Answer: emacs.</p>
<h2>Solution</h2>
<ul>
<li>Call “dired” or “find-dired” to list files in dir and all subdirs.</li>
<li>Mark the files you want. You can mark by regex by typing “%m”</li>
<li>Type “Q” to call dired-do-query-replace-regexp.</li>
<li>Type your find regex and replace string.</li>
<li>For each occurance, type “y” to replace, “n” to skip, “!” for replacing all occurances in current file. Type “Ctrl+g” to abort the whole operation.</li>
<li>To do the replacement on all files without further asking, type “Y”. To skip all possible replacement on the rest of the current file, type “N”. (These are Emacs 23 only)</li>
<li>Call “ibuffer” to list all opened files.</li>
<li>Type “*u” to mark all unsaved files, type “S” to save all marked files, type “D” to close them all.</li>
</ul>
<h2>Step-by-Step Guide</h2>
<h3>Select Target Files</h3>
<p>Start emacs by typing “emacs” in the command line interface prompt. (Or, double click the Emacs icon if you are in a Graphics User Interface environment)</p>
<h4>Selecting Files In A Directory</h4>
<p>First you need to select the files you want to do the replace. Use the graphical menu “File‣Open Directory”. Emacs will ask you for a directory path. Type the directory path, then press Enter.</p>
<p>Now, you will be shown the list of files, and now you need to “mark” the files you want the regex find-replace to work on. You mark a file by moving the cursor to the file you want, then press “m”. Unmark it by pressing “u”. (To list subdirectories, move your cursor to the directory and press “i”. The subdirectory&#8217;s content will be listed at the bottom.) To mark all files by a regex, type “%m”, then type your regex pattern. For example, if you want to mark all html files, then type “%mhtml$”. (You can find a list of the mark commands in the graphical menu “Mark” (this menu appears when you are in the dired mode).)</p>
<h4>Selecting Files In A Directory And All Its Subdirectories</h4>
<p>If you want to do find and replace on files inside a directory, including hundreds of subdirectories, here&#8217;s a method to select all these files.</p>
<p>Press the “Esc” key, then press the x key, then type “find-dired”. (then press Enter) Then, type a directory name, e.g. “/Users/mary/myfiles”</p>
<p>Emacs will ask you with the prompt “Run find (with args): ”. If you need to do the replacement on all html files, then type “-name &#8220;*html&#8221;”. If you don&#8217;t care about what kind of file but simply all files under that dir, then give “-type f”.</p>
<p>Now, mark the files as described above.</p>
<h3>Interactive Find &amp; Replace</h3>
<p>Now, you are ready to do the interactive find replace. For simplicity, let&#8217;s say you just want to replace the word “quick” by “super”. Now, type “Esc x dired-do-query-replace-regexp”. It will prompt you for the regex string and the replacement string. Type “quick”, enter, then “super”.</p>
<p>Now, emacs will use your pattern and check the files, and stop and show you whenever a match occurred. When this happens, emacs will prompt you, and you have a choice of making the change or skip the change. To make the change, type “y”. To skip, type “n”. If you simply want emacs to go ahead and make all such changes to the current file, type “!”.</p>
<p>If you want to cancel the whole operation without saving any changes you&#8217;ve made, type “Ctrl+g”, then exit emacs using the menu “File‣Exit Emacs”.</p>
<h3>Saving the Changed Files</h3>
<p>Now, after you went through the above ordeal. There is one more step you need to do, and that is saving the changed files.</p>
<p>If you have emacs version 22, you can type “Esc x ibuffer” to go into a buffer listing mode, then type “*u” to mark all unsaved files, then type “S” to save them all. (that&#8217;s shift-s)</p>
<p>If you are using a emacs version 21, then you can do this: type “Esc x list-buffer”, then move the cursor to the file you want to save and type “s”. It will mark the file for later save action. Type “u” to unmark. Once you are done, type “x” to execute the saving of all files marked for save. (in emacs, opened file is called “buffer”. Disregard other things there.)</p>
<p>Alternative to the above options, you can also type “Esc x save-some-buffers”. Then emacs will display each unsaved file and ask if you want it saved.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=43&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/10/27/emacs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs fun</title>
		<link>http://chiddu.wordpress.com/2009/10/27/emacs-fun/</link>
		<comments>http://chiddu.wordpress.com/2009/10/27/emacs-fun/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:13:35 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[calculator]]></category>
		<category><![CDATA[convert]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=40</guid>
		<description><![CDATA[Converting Numbers to Binary, Octal, Hexadecimal forms. To convert the decimal 10 to binary representation in calc, type “10 Enter d2”. The d2 will display all numbers in the window in the binary form. The numbers will have a “2#” prefix to indicate that they are in base 2. To display them back in decimal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=40&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><img src="http://xahlee.org/emacs/i/emacs_learning_curves.png" alt="emacs learning curve" width="600" height="400" /></h3>
<h3>Converting Numbers to Binary, Octal, Hexadecimal forms.</h3>
<p>To convert the decimal 10 to binary representation in calc, type “10 Enter d2”. The d2 will display all numbers in the window in the binary form. The numbers will have a “2#” prefix to indicate that they are in base 2. To display them back in decimal form, type “d0”. To show numbers in octal or hexadecimal form, type “d8” or “d6”.</p>
<p>To convert a binary number 1010 to decimal, type “2#1010 Enter” to enter the number then type “d0” to show all numbers in decimal form. Similarly, to enter a number in octal form, precede it with “8#” and hexadecimal numbers are prefixed with “16#”.</p>
<h3>unit conversion</h3>
<p>To find out what is 40 F° in C°, type “40 Enter ut dF Enter dC Enter”.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=40&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/10/27/emacs-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>

		<media:content url="http://xahlee.org/emacs/i/emacs_learning_curves.png" medium="image">
			<media:title type="html">emacs learning curve</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs less known tips</title>
		<link>http://chiddu.wordpress.com/2009/10/27/emacs-less-known-tips/</link>
		<comments>http://chiddu.wordpress.com/2009/10/27/emacs-less-known-tips/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:02:37 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[refresh]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=31</guid>
		<description><![CDATA[How to “refresh” a opened file to its current saved state? For example, other people have edited the file thru a network. Call revert-buffer. If someone modified the file, typically emacs will auto detect it, and when you type something, emacs will automatically ask you what to do. Is there a way for emacs to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=31&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 class="q">How to “refresh” a opened file to its current saved state? For example, other people have edited the file thru a network.</h2>
<div class="a">
<p>Call <span style="color:#ff6600;">revert-buffer</span>. If someone modified the file, typically emacs will auto detect it, and when you type something, emacs will automatically ask you what to do.</p>
</div>
<h2 class="q">Is there a way for emacs to interpret the file as hex-decimal? (i.e. byte-code editor)</h2>
<p>To open the file as hex, call <span style="color:#ff6600;">hexl-find-file</span>. If the file is already opened, call <span style="color:#ff6600;">hexl-mode</span>.</p>
<h2 class="q">How to set the background color so that all new “frames” will have that color? (not set-background-color)</h2>
<p><span style="color:#ff6600;">“<span class="kbd"><span class="key">Alt</span>+<span class="key">x</span></span> customize-variable <span style="color:#808080;"><span class="key">Enter</span> </span>default-frame-alist <span style="color:#808080;"><span class="key">Enter</span></span>”</span></p>
<p>If you want to code elisp manually, see <span class="kbd"><span class="key">Ctrl</span>+<span class="key">h</span> <span class="key">v</span> </span>default-frame-alist. Here&#8217;s a example you can put in your emacs init file:</p>
<address class="elisp"><span style="color:#ff6600;">(setq default-frame-alist<br />
&#8216;((tool-bar-lines . 0)<br />
(menu-bar-lines . 1)<br />
(background-color . <span class="string">&#8220;cornsilk&#8221;</span>)))</span><br />
</address>
<p>To see a list of color names emacs support, call <span style="color:#ff6600;">list-colors-display</span>.</p>
<h2>Alias Long Commands to Shorter Names</h2>
<p>Many emacs&#8217;s commands have long names. You can alias frequently used commandsto shorter names.</p>
<p>For example, here is some of my aliases:</p>
<address class="elisp"><span style="color:#ff6600;"><span class="comment-delimiter">; </span><span class="comment">get rid of prompt that forces you to type full “yes” or “no”.<br />
</span><span class="comment-delimiter">; </span><span class="comment">y or n is enough<br />
</span>(<span class="keyword">defalias</span> &#8216;<span class="function-name">yes-or-no-p</span> &#8216;y-or-n-p)<span class="comment-delimiter">; </span><span class="comment">shortening of often used commands<br />
</span>(<span class="keyword">defalias</span> &#8216;<span class="function-name">gf</span> &#8216;grep-find)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">fd</span> &#8216;find-dired)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">sh</span> &#8216;shell)(<span class="keyword">defalias</span> &#8216;<span class="function-name">qrr</span> &#8216;query-replace-regexp)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">lml</span> &#8216;list-matching-lines)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">dml</span> &#8216;delete-matching-lines)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">rof</span> &#8216;recentf-open-files)(<span class="keyword">defalias</span> &#8216;<span class="function-name">eb</span> &#8216;eval-buffer)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">er</span> &#8216;eval-region)<br />
(<span class="keyword">defalias</span> &#8216;<span class="function-name">ee</span> &#8216;eval-expression)
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></span></address>
<p>The default keyboard shortcut for execute-extended-command is “<span class="kbd"><span class="key">Alt</span>+<span class="key">x</span></span>”. You can define “<span class="kbd"><span class="key">Alt</span>+<span class="key">a</span></span>”, which makes it on the home row. (See <a href="http://xahlee.org/emacs/ergonomic_emacs_keybinding.html">A Ergonomic Keyboard Shortcut Layout For Emacs</a>)</p>
<address class="elisp"><span style="color:#ff6600;">(global-set-key (kbd <span class="string">&#8220;M-a&#8221;</span>) &#8216;execute-extended-command) <span class="comment-delimiter">; </span></span><span class="comment"><span style="color:#ff6600;">was backward-sentence</span></span></address>
<address class="elisp"><span class="comment"><span style="color:#ff6600;"><br />
</span></span></address>
<address class="elisp"><span style="color:#888888;"><span class="comment">Link: </span></span><a href="http://xahlee.org/emacs/emacs_esoteric.html">http://xahlee.org/emacs/emacs_esoteric.html</a></address>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=31&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/10/27/emacs-less-known-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs Tips &amp; Tricks</title>
		<link>http://chiddu.wordpress.com/2009/10/27/emacs-tips-tricks/</link>
		<comments>http://chiddu.wordpress.com/2009/10/27/emacs-tips-tricks/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 11:48:31 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=23</guid>
		<description><![CDATA[How to disable emacs&#8217;s automatic backup? Use this code: (setq make-backup-files nil) ; stop creating those backup~ files (setq auto-save-default nil) ; stop creating those #auto-save# files How to set emacs so that all backups are directed into one folder? (such as at a directory &#8220;~/myBackups&#8221;) Use the following lisp code in init file: ; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=23&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 class="q">How to disable emacs&#8217;s automatic backup?</h2>
<p>Use this code:</p>
<address class="elisp">(setq make-backup-files nil) <span class="comment-delimiter">; </span><span class="comment">stop creating those backup~ files<br />
</span>(setq auto-save-default nil) <span class="comment-delimiter">; </span><span class="comment">stop creating those #auto-save# files<br />
</span></address>
<h2 class="q">How to set emacs so that all backups are directed into one folder? (such as at a directory &#8220;~/myBackups&#8221;)</h2>
<p>Use the following lisp code in init file:</p>
<address class="elisp"><span class="comment-delimiter">; </span><span class="comment">return a backup file path of a give file path<br />
</span><span class="comment-delimiter">; </span><span class="comment">with full directory mirroring from a root dir<br />
</span><span class="comment-delimiter">; </span><span class="comment">non-existant dir will be created<br />
</span>(<span class="keyword">defun</span> <span class="function-name">my-backup-file-name</span> (fpath)<br />
<span class="doc">&#8220;Return a new file path of a given file path.<br />
If the new path&#8217;s directories does not exist, create them.&#8221;</span><br />
(<span class="keyword">let</span> (backup-root bpath)<br />
(setq backup-root <span class="string">&#8220;~/.emacs.d/emacs-backup&#8221;</span>)<br />
(setq bpath (concat backup-root fpath <span class="string">&#8220;~&#8221;</span>))<br />
(make-directory (file-name-directory bpath) bpath)<br />
bpath<br />
)<br />
)<br />
(setq make-backup-file-name-function &#8216;my-backup-file-name)<br />
</address>
<p>The above will mirror all directories at the given backup dir. For example, if you are editing a file “/Users/jane/web/xyz/myfile.txt”, and your backup root is “/Users/jane/.emacs.d/emacs-backup”, then the backup will be at “/Users/jane/.emacs.d/emacs-backup/Users/jane/web/xyz/myfile.txt~”.</p>
<p>If you want all backup to be flat in a dir, use the following:</p>
<address class="elisp">(setq backup-directory-alist &#8216;((<span class="string">&#8220;&#8221;</span> . <span class="string">&#8220;~/.emacs.d/emacs-backup&#8221;</span>)))<br />
</address>
<p>This will create backup files flat in the given dir, and the backup file names will have “!” characters in place of the directory separator. For example, if you are editing a file at “/Users/jane/web/xyz/myfile.txt”, and your backup dir is set at “/Users/jane/.emacs.d/emacs-backup”, then the backup file will be at: “/Users/jane/.emacs.d/emacs-backup/Users!jane!web!emacs!myfile.txt~”. If you use long file names or many nested dirs, this scheme will reach file name length limit quickly.</p>
<h2 class="q">How to record a sequence of keystrokes?</h2>
<p>To record keystrokes, type “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">x</span> <span class="key">(</span></span>” then start typing your keystrokes. When done, type  “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">x</span> <span class="key">)</span></span>”. This records your keystrokes. To run the keystrokes you&#8217;ve recorded, type “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">x</span> <span class="key">e</span></span>”.</p>
<p>Here are the command names and their shortcuts:</p>
<address class="bdr">start-kbd-macro            <span class="kbd"><span class="key">Ctrl</span>+<span class="key">x</span> <span class="key">(</span></span><br />
end-kbd-macro              <span class="kbd"><span class="key">Ctrl</span>+<span class="key">x</span> <span class="key">)</span></span><br />
call-last-kbd-macro        <span class="kbd"><span class="key">Ctrl</span>+<span class="key">x</span> <span class="key">e</span></span></address>
<address class="bdr"> </address>
<p>If you want to use your keyboard macro for future use, you can save it. To save the macro, first type “<span class="kbd"><span class="key">Alt</span>+<span class="key">x</span></span> name-last-kbd-macro”, then type “<span class="kbd"><span class="key">Alt</span>+<span class="key">x</span></span> insert-kbd-macro”, which will insert the lisp code for the keyboard macro at the cursor point. Put the code in your emacs init file (usually at “~/.emacs”). Then, you can execute your keyboard macro like this: “<span class="kbd"><span class="key">Alt</span>+<span class="key">x</span></span> yourMacroName” the next time you start emacs.</p>
<h2 class="q">How to replace unprintable characters such as tabs or line return chars in Emacs?</h2>
<p>Use any of the find/replace commands (Example: <span class="kbd"><span class="key">Alt</span>+<span class="key">x</span></span> query-replace) as usual, type the unprintable char by preceding it with “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span></span>”. Example: type “<span class="kbd"><span class="key">Alt</span>+<span class="key">%</span></span> <span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span> <span class="key">Ctrl</span>+<span class="key">j</span></span> <span class="key">Enter</span> <span class="key">Space</span> <span class="key">Enter</span>”, will replace all returns with spaces.</p>
<p>The “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span></span>” does the command quoted-insert, which will let you enter the next charater literally. For example, to type a literal tab, press “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span></span>” then the Tab key. Some characters do not have a representation on the keyboard (for example, unix&#8217;s line return the form feed), so emacs provides the “<span class="kbd"><span class="key">Ctrl</span>+<span class="key">j</span></span>” method to input them. Here&#8217;s a short table on how to enter common unprintable chars:</p>
<table class="nrm">
<tbody>
<tr>
<th>Name</th>
<th>ASCII Code</th>
<th>string notation</th>
<th>Caret Notation</th>
<th>Input method</th>
</tr>
<tr>
<td>horizontal tab</td>
<td>9</td>
<td>\t</td>
<td>^I</td>
<td><span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span> <span class="key">Ctrl</span>+<span class="key">i</span></span> or <span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span> <span class="key">Tab</span></span></td>
</tr>
<tr>
<td>line feed</td>
<td>10</td>
<td>\n</td>
<td>^J</td>
<td><span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span> <span class="key">Ctrl</span>+<span class="key">j</span></span></td>
</tr>
<tr>
<td>carriage return</td>
<td>13</td>
<td>\r</td>
<td>^M</td>
<td><span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span> <span class="key">Ctrl</span>+<span class="key">m</span></span> or <span class="kbd"><span class="key">Ctrl</span>+<span class="key">q</span> <span class="key">Enter</span></span></td>
</tr>
</tbody>
</table>
<p>If you are confused by all these notations, see this article <a href="http://xahlee.org/emacs/keystroke_rep.html">The Confusion of Emacs&#8217;s Keystroke Representation</a> for a explanation.</p>
<h2><strong>How to replace unprintable characters such as tabs or line return chars in Emacs?</strong></h2>
<p>Use any of the find/replace commands (Example: Alt+x query-replace) as usual, type the unprintable char by preceding it with “Ctrl+q”. Example: type “Alt+% Ctrl+q Ctrl+j Enter Space Enter”, will replace all returns with spaces.</p>
<p>The “Ctrl+q” does the command quoted-insert, which will let you enter the next charater literally. For example, to type a literal tab, press “Ctrl+q” then the Tab key. Some characters do not have a representation on the keyboard (for example, unix&#8217;s line return the form feed), so emacs provides the “Ctrl+j” method to input them. Here&#8217;s a short table on how to enter common unprintable chars:</p>
<table>
<tbody>
<tr>
<th>Name</th>
<th>ASCII Code</th>
<th>string notation</th>
<th>Caret Notation</th>
<th>Input method</th>
</tr>
<tr>
<td>horizontal tab</td>
<td>9</td>
<td>\t</td>
<td>^I</td>
<td>Ctrl+q Ctrl+i or Ctrl+q Tab</td>
</tr>
<tr>
<td>line feed</td>
<td>10</td>
<td>\n</td>
<td>^J</td>
<td>Ctrl+q Ctrl+j</td>
</tr>
<tr>
<td>carriage return</td>
<td>13</td>
<td>\r</td>
<td>^M</td>
<td>Ctrl+q Ctrl+m or Ctrl+q Enter</td>
</tr>
</tbody>
</table>
<p>If you are confused by all these notations, see this article <a href="http://xahlee.org/emacs/keystroke_rep.html">The Confusion of Emacs&#8217;s Keystroke Representation</a> for a explanation.</p>
<h3>How to change file line endings between Mac/Dos/Unix?</h3>
<p>Open the file, then do “Alt+x set-buffer-file-coding-system” (Ctrl+x Enter f). When it prompts you for a coding system, type one of: “mac”, “dos”, “unix”. Then, when you save the file, it&#8217;ll be saved with the proper encoding for newlines.</p>
<p>Note: Unixes (including Linuxes and Mac OS X) uses LF (ascii 10; line feed) for newline. Mac OS Classic uses CR (ascii 13; carriage return) for newline. (Mac OS X prefers LF but accepts CR too) Windows uses CR followed by LF (&#8220;\r\n&#8221;) for its newline char. See wikipedia <a href="http://en.wikipedia.org/wiki/Newline">newline</a> for detail.</p>
<p>To do it batch on a list of files, use the following lisp code:</p>
<blockquote><address>(defun to-unix-eol (fpath)<br />
&#8220;Change file&#8217;s line ending to unix convention.&#8221;<br />
(let (mybuffer)<br />
(setq mybuffer (find-file fpath))<br />
(set-buffer-file-coding-system &#8216;unix) ; or &#8216;mac or &#8216;dos<br />
(save-buffer)<br />
(kill-buffer mybuffer)<br />
)<br />
)(mapc &#8216;to-unix-eol<br />
(list<br />
&#8220;~/jane/myfile1&#8243;<br />
&#8220;~/jane/myfile2&#8243;<br />
&#8220;~/jane/myfile3&#8243;<br />
; &#8230;<br />
)<br />
)
<p>&nbsp;</p>
</address>
</blockquote>
<p>To use the code, first edit the list of files above. Then, select all the code, type “Alt+x eval-region”. That&#8217;s it.</p>
<p>If you want the function to work on marked files in dired, then use the following code:</p>
<blockquote><address>(defun dired-2unix-marked-files ()<br />
&#8220;Change to unix line ending for marked (or next arg) files.&#8221;<br />
(interactive)<br />
(mapc &#8216;to-unix-eol (dired-get-marked-files))<br />
)<br />
</address>
</blockquote>
<p>Select the code and do “Alt+x eval-region”, then “Alt+x dired”, then press “m” to mark the files you want, then do “Alt+x dired-dos2unix-marked-files”.</p>
<p>Link: http://xahlee.org/emacs/emacs_adv_tips.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=23&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/10/27/emacs-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>Life is changing&#8230; so is House</title>
		<link>http://chiddu.wordpress.com/2009/09/30/life-is-changing/</link>
		<comments>http://chiddu.wordpress.com/2009/09/30/life-is-changing/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 19:51:41 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[TV]]></category>
		<category><![CDATA[\\]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=20</guid>
		<description><![CDATA[This was year of change, not only for me, also for Dr. House. I enjoyed watching House, next only to Dexter, because of his style of mocking people and they was he is always right, even when he almost screw up. The first episode of house this season was pretty different from the past seasons. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=20&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This was year of change, not only for me, also for Dr. House. I enjoyed watching House, next only to Dexter, because of his style of mocking people and they was he is always right, even when he almost screw up. The first episode of house this season was pretty different from the past seasons. None of House&#8217;s tricks work, for good or bad, he appears to change accept the fact certain things can&#8217;t be changed and are out of human control. But, the episode does not sideline the ray of hope and reestablishes faith to believe in people. This was aptly potraited by how the how the man with superpower  miraculously save the girl by bringing her the &#8220;voice box&#8221;. Quite a good episode, i must say, a very fresh start. Looking forward for rest of the season.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=20&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/09/30/life-is-changing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows vs Linux</title>
		<link>http://chiddu.wordpress.com/2009/09/27/windows-vs-linux/</link>
		<comments>http://chiddu.wordpress.com/2009/09/27/windows-vs-linux/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 17:18:22 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=17</guid>
		<description><![CDATA[In the past I have had made many attempts to use linux. The following sequence of events happened. 1. Get bored and thenfrustated with windows over the appearances and customization options of windows. usually after seeing the screenshot by people using linux. 2. Download a open source version of linux (Fedora , Ubuntu or opensuse) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=17&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the past I have had made many attempts to use linux. The following sequence of events happened.</p>
<p>1. Get bored and thenfrustated with windows over the appearances and customization options of windows. usually after seeing the screenshot by people using linux.</p>
<p>2. Download a open source version of linux (Fedora , Ubuntu or opensuse) install it, update it add all repositories customise it to minimal level.</p>
<p>3. Reward youself for the good work with some entertainment like movie etc</p>
<p>4. Be reminde by someone of setain work/assignment need you to use a certain software. In general you will be familiar with the windows version of software.</p>
<p>5. Boot back with windows to avoid the painful procedure to lean new command.</p>
<p>6. remain in windows till step 1 repeats. and so the next steps follow.</p>
<p>Finally the virtual OS came to rescue no need to dual boot i guess. thanks to those with the briliant idea (This is not a new concept but i have finaly tried this out so just blogging i guess&#8230; ).</p>
<p>Finally i am trying to get things done by making use of the open source community.  Presently i am using windows XP as host and Ubuntu as guest. One can use VirtualBox by Sun to install the guest OS. its pretty cool much more easy to use and install the than the original dual boot installation and no more problem with the grub being corrupted.  I got too  fond of  Emacs, its simply brilliant.</p>
<p>Ok&#8230; its time to get back to my work  will blog soon .. hope fully.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=17&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/09/27/windows-vs-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>The journey continues &#8230;</title>
		<link>http://chiddu.wordpress.com/2009/09/27/the-journey-continues/</link>
		<comments>http://chiddu.wordpress.com/2009/09/27/the-journey-continues/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 16:54:11 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[TV]]></category>
		<category><![CDATA[House]]></category>
		<category><![CDATA[TV series]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/?p=14</guid>
		<description><![CDATA[Everyone know that every thing that has a beginning has a end too.  In this post am referring to the end of college days and thus a new  beginning. After 5 years my stay at college it became quite routine and got very much accustomed to that life and interaction with similar kind of people [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=14&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Everyone know that every thing that has a beginning has a end too.  In this post am referring to the end of college days and thus a new  beginning. After 5 years my stay at college it became quite routine and got very much accustomed to that life and interaction with similar kind of people every day. Life was very much predictable and so it was time for a change.</p>
<p>New job , new place new people but same old me (or was it ?). The key to success is how adaptable you are to the new environment. It was first exposure to professional environment and i was stuck up with the old trick and that lead to confusion and poor communication. I realize that when and journey ends you need to spent sometime with your self to make a mental note of what one has learned from it enjoy the happy moments and remember the hard times. Rethink about the relationships. and be prepared for the new journey ahead.</p>
<p>Unfinished blog will update next time &#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=14&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2009/09/27/the-journey-continues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>High CPU usage due to Interrupts</title>
		<link>http://chiddu.wordpress.com/2008/06/22/high-cpu-usage-due-to-interrupts/</link>
		<comments>http://chiddu.wordpress.com/2008/06/22/high-cpu-usage-due-to-interrupts/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 20:25:00 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[CPU]]></category>
		<category><![CDATA[Interrupt]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/2008/06/22/high-cpu-usage-due-to-interrupts/</guid>
		<description><![CDATA[For the past one week, I have been facing the problem of high CPU usage. I instantly noticed that this was because of large number of interrupts being generated (thanks to Process Explorer which i used to replace the default Task Manager). Now i had to find out what exactly was causing the interrupts, so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=7&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="text-align:justify;">        For the past one week, I have been facing the problem of high CPU usage. I instantly noticed that this was because of large number of interrupts being generated (thanks to Process Explorer which i used to replace the default Task Manager). Now i had to find out what exactly was causing the interrupts, so i kept monitoring the CPU usage and ultimately found out that that utorrent was causing the problem. Did some googling to find utorrent in some cases gave this problem. Also there reports where the problem was the cause of some NIC (network issues) problem. that would explain why DC++was also giving the problem.</p>
<p>      I had to rule out that the problem was due to network issues as even coping files from one partition to other gave interrupts. I searched some diagnostic tools from Seagate, &#8230; but before I used the tools i simply used S (out of sheer laziness as I didn&#8217;t want to go out and buy a floppy or CD which was required). The scan ran endlessly partition by by partition till eternity., so i was  pretty sure it was a problem lies with  the hard disk. the scan did correct some error but did not improve the performance still interrupts were high whenever HD was accessed.</p>
<p><span style="font-weight:bold;color:rgb(102, 0, 204);">Now finally the solution:</span><br />      Just before i set out for buying the floppy/CD or formatting by complete my HD( which i was thinking about but was planning to avoid). I finally decided to just change the port from SATA1 to SATA2. And there you go problem solved &#8230;..</p>
<p>So solution was simple but before I could solve i had to do all the above stuff and had to suffer with problem for a entire week when even playing songs was not possible ( the voice used to break due to high interrupt in between and it was so irritating). So be it<span style="color:rgb(255, 204, 51);"> <span style="color:rgb(255, 0, 0);font-weight:bold;">Life is always like that&#8230;</span></span></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chiddu.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chiddu.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=7&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2008/06/22/high-cpu-usage-due-to-interrupts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
		<item>
		<title>Reference/Guide</title>
		<link>http://chiddu.wordpress.com/2008/06/16/referenceguide/</link>
		<comments>http://chiddu.wordpress.com/2008/06/16/referenceguide/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 18:24:00 +0000</pubDate>
		<dc:creator>chiddu</dc:creator>
				<category><![CDATA[guide]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://chiddu.wordpress.com/2008/06/16/referenceguide/</guid>
		<description><![CDATA[General information about anything: Wikipedia Technology related to computers : Techtree Tech2 Information about latest games: Gamespot<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=6&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>General information about anything:
<ol>
<li><a href="http://en.wikipedia.org/wiki/Wiki">Wikipedia</a></li>
</ol>
<p>Technology related to computers :
<ol>
<li><a href="http://www.techtree.com/techtree/jsp/home.jsp">Techtree</a></li>
<li><a href="http://www.tech2.com/">Tech2</a></li>
</ol>
<p>Information about latest games:
<ol>
<li><a href="www.gamespot.com">Gamespot</a></li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chiddu.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chiddu.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chiddu.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chiddu.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chiddu.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chiddu.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chiddu.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chiddu.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chiddu.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chiddu.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chiddu.wordpress.com&amp;blog=4053588&amp;post=6&amp;subd=chiddu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chiddu.wordpress.com/2008/06/16/referenceguide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6c3ad8aa3b3eee63675b42a55678c24f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chiddu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
