<?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>Ramdom thoughts</title>
	<atom:link href="http://ntdt.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ntdt.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 04 Jan 2010 07:43:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ntdt.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ramdom thoughts</title>
		<link>http://ntdt.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ntdt.wordpress.com/osd.xml" title="Ramdom thoughts" />
	<atom:link rel='hub' href='http://ntdt.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Some notes on find and xargs</title>
		<link>http://ntdt.wordpress.com/2010/01/04/some-notes-on-find-and-xargs/</link>
		<comments>http://ntdt.wordpress.com/2010/01/04/some-notes-on-find-and-xargs/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 07:43:57 +0000</pubDate>
		<dc:creator>nguyenduytho</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://ntdt.wordpress.com/?p=20</guid>
		<description><![CDATA[Invoke multiple commands with find #find ./ -type f -name '*.txt' -exec cmd1 {} \; -exec cmd2 {} \; Use xargs with file contains spaces #find ./ -type f &#124;xargs -0  cmd Replace {} with a name &#8216;file&#8217; # find ./ -type f &#124;xargs -0 -I file cmd file<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=20&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Invoke multiple commands with find</p>
<pre>#find ./ -type f -name '*.txt' -exec cmd1 {} \; -exec cmd2 {} \;
</pre>
<p>Use xargs with file contains spaces</p>
<pre>#find ./ -type f |xargs -0  cmd</pre>
<p>Replace {} with a name &#8216;file&#8217;</p>
<pre># find ./ -type f |xargs -0 -I file cmd file
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ntdt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ntdt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ntdt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ntdt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ntdt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ntdt.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ntdt.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ntdt.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=20&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ntdt.wordpress.com/2010/01/04/some-notes-on-find-and-xargs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/556573606047273e458b8fc1dfb271da?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nguyenduytho</media:title>
		</media:content>
	</item>
		<item>
		<title>Apt on CentOS 5</title>
		<link>http://ntdt.wordpress.com/2009/12/25/apt-on-centos-5/</link>
		<comments>http://ntdt.wordpress.com/2009/12/25/apt-on-centos-5/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 08:01:46 +0000</pubDate>
		<dc:creator>nguyenduytho</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git apt rpmforge linux centos5 rhel]]></category>

		<guid isPermaLink="false">http://ntdt.wordpress.com/?p=17</guid>
		<description><![CDATA[Few steps to get apt on CentOS 5 $wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm $wget http://dag.wieers.com/rpm/packages/apt/apt-0.5.15lorg3.2-1.el5.rf.i386.rpm $sudo rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm apt-0.5.15lorg3.2-1.el5.rf.i386.rpm $sudo apt-get update $sudo apt-get install git<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=17&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Few steps to get apt on CentOS 5<br />
<code><br />
$wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
$wget http://dag.wieers.com/rpm/packages/apt/apt-0.5.15lorg3.2-1.el5.rf.i386.rpm<br />
$sudo rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm apt-0.5.15lorg3.2-1.el5.rf.i386.rpm<br />
$sudo apt-get update<br />
$sudo apt-get install git<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ntdt.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ntdt.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ntdt.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ntdt.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ntdt.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ntdt.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ntdt.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ntdt.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=17&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ntdt.wordpress.com/2009/12/25/apt-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/556573606047273e458b8fc1dfb271da?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nguyenduytho</media:title>
		</media:content>
	</item>
		<item>
		<title>Erlang-mode with Emacs on Cygwin</title>
		<link>http://ntdt.wordpress.com/2009/07/27/erlang-mode-with-emacs-on-cygwin/</link>
		<comments>http://ntdt.wordpress.com/2009/07/27/erlang-mode-with-emacs-on-cygwin/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 08:41:00 +0000</pubDate>
		<dc:creator>nguyenduytho</dc:creator>
				<category><![CDATA[cygwin]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://ntdt.wordpress.com/?p=12</guid>
		<description><![CDATA[Run setup.exe of Cygwin then select the package emacs. Once the install of emacs done, edit your $HOME/.emacs with the following content (setq load-path (cons &#8220;/cygdrive/c/erl/lib/tools-2.6.4/emacs&#8221; load-path)) (setq erlang-root-dir &#8220;/cygdrive/c/erl&#8221;) (setq exec-path (cons &#8220;/cygdrive/c/erl/bin/&#8221; exec-path)) (require &#8216;erlang-start) where Erlang is installed under c:/erl Now load your emacs with an erlang source code file. For references: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=12&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Run setup.exe of Cygwin then select the package emacs. Once the install of emacs done, edit your $HOME/.emacs with the following content</p>
<blockquote><p>(setq load-path (cons &#8220;/cygdrive/c/erl/lib/tools-2.6.4/emacs&#8221; load-path))<br />
(setq erlang-root-dir &#8220;/cygdrive/c/erl&#8221;)<br />
(setq exec-path (cons &#8220;/cygdrive/c/erl/bin/&#8221; exec-path))<br />
(require &#8216;erlang-start)
</p></blockquote>
<p>where Erlang is installed under c:/erl</p>
<p>Now load your emacs with an erlang source code file.</p>
<p>For references:</p>
<ul>
<li><a href="http://erlang.org/doc/man/erlang_mode.html">http://erlang.org/doc/man/erlang_mode.html</a></li>
<li><a href="http://bc.tech.coop/blog/070528.html">http://bc.tech.coop/blog/070528.html</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ntdt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ntdt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ntdt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ntdt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ntdt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ntdt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ntdt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ntdt.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=12&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ntdt.wordpress.com/2009/07/27/erlang-mode-with-emacs-on-cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/556573606047273e458b8fc1dfb271da?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nguyenduytho</media:title>
		</media:content>
	</item>
		<item>
		<title>Rxvt: a better console for win32</title>
		<link>http://ntdt.wordpress.com/2009/07/24/rxvt-cygwin/</link>
		<comments>http://ntdt.wordpress.com/2009/07/24/rxvt-cygwin/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 04:13:18 +0000</pubDate>
		<dc:creator>nguyenduytho</dc:creator>
				<category><![CDATA[cygwin]]></category>
		<category><![CDATA[rxvt]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[win32]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[dos]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Using cygwin is a good complement for people used to live with Unix-world but the default DOS-console is terrible.  Install rxvt for a better console on Windows.  I do the following steps to setup rxvt Launch your cygwin setup.exe then select the rxvt package. Create a shortcut on your desktop or your toolbar with "C:\cygwin\bin\rxvt.exe [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=1&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using cygwin is a good complement for people used to live with Unix-world but the default DOS-console is terrible.  Install rxvt for a better console on Windows.  I do the following steps to setup rxvt</p>
<ul>
<li>Launch your cygwin setup.exe then select the rxvt package.</li>
<li>Create a shortcut on your desktop or your toolbar with<br />
<blockquote><p><code>"C:\cygwin\bin\rxvt.exe -display :0 -fn "Monaco-18" -tn rxvt-cygwin-native -e /bin/bash --login"</code></p></blockquote>
</li>
<li>Edit your $HOME/.Xdefaults<br />
<blockquote><p><code><br />
Rxvt.reverseVideo:    true<br />
Rxvt.saveLines:       2000<br />
Rxvt.font:            "Monaco-18"<br />
Rxvt.geometry: 85x27</code></p></blockquote>
</li>
<li>Add the following lines to your <code>$HOME/.inputrc</code><br />
<blockquote><p><code><br />
"\e[3~": delete-char<br />
"\e[1~": beginning-of-line<br />
"\e[4~": end-of-line<br />
"\e[H": beginning-of-line<br />
"\e[F": end-of-line<br />
"\e[7~": beginning-of-line<br />
"\e[8~": end-of-line</code></p></blockquote>
</li>
</ul>
<p>You now have a shiny console for your Windows.</p>
<p><img class="alignnone size-full wp-image-10" title="rxvt-cygwin" src="http://ntdt.files.wordpress.com/2009/07/rxvt-cygwin.jpg?w=455" alt="rxvt-cygwin"   /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ntdt.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ntdt.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ntdt.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ntdt.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ntdt.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ntdt.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ntdt.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ntdt.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ntdt.wordpress.com&amp;blog=8708561&amp;post=1&amp;subd=ntdt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ntdt.wordpress.com/2009/07/24/rxvt-cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/556573606047273e458b8fc1dfb271da?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nguyenduytho</media:title>
		</media:content>

		<media:content url="http://ntdt.files.wordpress.com/2009/07/rxvt-cygwin.jpg" medium="image">
			<media:title type="html">rxvt-cygwin</media:title>
		</media:content>
	</item>
	</channel>
</rss>
