<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>Fei Nan.com Blog</title>
	<link>http://blog.feinan.com</link>
	<description>Dedicated to the Queen of My Heart</description>
	<pubDate>Thu, 16 Oct 2008 21:16:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>List Word Occurrence for A Given Document</title>
		<link>http://blog.feinan.com/2008/03/22/list-word-occurrence-for-a-given-document/</link>
		<comments>http://blog.feinan.com/2008/03/22/list-word-occurrence-for-a-given-document/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 02:16:57 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2008/03/22/list-word-occurrence-for-a-given-document/</guid>
		<description><![CDATA[cat nautilus-debug-log.txt &#124; tr -cs A-Za-z &#8216;12&#8242; &#124; tr A-Z a-z &#124; sort
&#124; uniq -c &#124; sort -r -n &#124; sed 25q
   2660 x
   2659 user
   2659 to
   2659 signal
   2659 log
   2659 dumped
   2659 due
   2659 debug
  [...]]]></description>
			<content:encoded><![CDATA[<p>cat nautilus-debug-log.txt | tr -cs A-Za-z &#8216;12&#8242; | tr A-Z a-z | sort<br />
| uniq -c | sort -r -n | sed 25q</p>
<p>   2660 x<br />
   2659 user<br />
   2659 to<br />
   2659 signal<br />
   2659 log<br />
   2659 dumped<br />
   2659 due<br />
   2659 debug<br />
      1 milestones<br />
      1 begin<br />
      1<br />
.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2008/03/22/list-word-occurrence-for-a-given-document/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GNU Screen &#8212; MITBBS Linux</title>
		<link>http://blog.feinan.com/2008/02/18/gnu-screen-mitbbs-linuxaeooaeoa/</link>
		<comments>http://blog.feinan.com/2008/02/18/gnu-screen-mitbbs-linuxaeooaeoa/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 12:06:18 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2008/02/18/gnu-screen-mitbbs-linuxaeooaeoa/</guid>
		<description><![CDATA[&#8212;&#8212;=_1203336378_289654110.attach
Content-Type: text/plain
]]></description>
			<content:encoded><![CDATA[<p>&#8212;&#8212;=_1203336378_289654110.attach<br />
Content-Type: text/plain</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2008/02/18/gnu-screen-mitbbs-linuxaeooaeoa/feed/</wfw:commentRss>
		</item>
		<item>
		<title>how do you list all users in linux</title>
		<link>http://blog.feinan.com/2008/01/25/how-do-you-list-all-users-in-linux/</link>
		<comments>http://blog.feinan.com/2008/01/25/how-do-you-list-all-users-in-linux/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 20:51:05 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2008/01/25/how-do-you-list-all-users-in-linux/</guid>
		<description><![CDATA[We&#8217;ll start by
1.cat /etc/passwd
2.As we all know that by default all the users created will have their
home directories in /home share
so we&#8217;ll modify our command a bit by using grep.
Now it&#8217;ll be
cat /etc/passwd &#124; grep &#8220;/home&#8221;
3. Now we&#8217;ll get all the user accounts which have their home share in /home.
But the only output we need [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ll start by<br />
1.cat /etc/passwd</p>
<p>2.As we all know that by default all the users created will have their<br />
home directories in /home share<br />
so we&#8217;ll modify our command a bit by using grep.<br />
Now it&#8217;ll be<br />
cat /etc/passwd | grep &#8220;/home&#8221;</p>
<p>3. Now we&#8217;ll get all the user accounts which have their home share in /home.<br />
But the only output we need is the list of users &amp; nothing else.</p>
<p>4. So we&#8217;ll modify our command again<br />
cat /etc/passwd | grep &#8220;/home&#8221; |cut -d: -f1<br />
Now what we have done is that we have piped the output of previous<br />
command to another variable &#8220;cut&#8221;<br />
What we have done here is we have added<br />
cut -d: -f1<br />
-d: means delimiter :<br />
-f1 means display first field of line i.e. username.</p>
<p>So final command is<br />
Cat /etc/passwd |grep &#8220;/home&#8221; |cut -d: -f1</p>
<p>This works until all your users have their home share in /home. If you<br />
have defined their home share to some other destination. Modify the<br />
above command.<br />
.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2008/01/25/how-do-you-list-all-users-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Perl String Output Tricks</title>
		<link>http://blog.feinan.com/2007/11/28/perl-string-output-tricks/</link>
		<comments>http://blog.feinan.com/2007/11/28/perl-string-output-tricks/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 20:42:55 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/11/28/perl-string-output-tricks/</guid>
		<description><![CDATA[
echo -n &#8216;abc.efgh.ijk.lmn&#8217; &#124; perl -ne &#8216;&#123;while &#40;/&#40;&#91;a-z&#93;+&#41;\.&#40;&#91;a-z&#93;+&#41;&#40;.*&#41;/&#41; &#123;
print &#8220;$1.$2\n&#8220;; $_ = $2.$3;&#125;&#125;&#8216;

]]></description>
			<content:encoded><![CDATA[<div class="codesnip-container" >
<div class="codesnip">echo -n &#8216;abc.efgh.ijk.lmn&#8217; | perl -<span class="kw1">ne</span> &#8216;<span class="br0">&#123;</span><span class="kw1">while</span> <span class="br0">&#40;</span>/<span class="br0">&#40;</span><span class="br0">&#91;</span>a-z<span class="br0">&#93;</span>+<span class="br0">&#41;</span>\.<span class="br0">&#40;</span><span class="br0">&#91;</span>a-z<span class="br0">&#93;</span>+<span class="br0">&#41;</span><span class="br0">&#40;</span>.*<span class="br0">&#41;</span>/<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<a href="http://perldoc.perl.org/functions/print.html"><span class="kw3">print</span></a> <span class="st0">&#8220;$1.$2<span class="es0">\n</span>&#8220;</span>; <span class="re0">$_</span> = $<span class="nu0">2</span>.$<span class="nu0">3</span>;<span class="br0">&#125;</span><span class="br0">&#125;</span>&#8216;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/11/28/perl-string-output-tricks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shortest passwordless ssh tutorial</title>
		<link>http://blog.feinan.com/2007/11/01/shortest-passwordless-ssh-tutorial/</link>
		<comments>http://blog.feinan.com/2007/11/01/shortest-passwordless-ssh-tutorial/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 04:05:22 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/11/01/shortest-passwordless-ssh-tutorial/</guid>
		<description><![CDATA[Shortest passwordless ssh tutorial
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.translucentcode.org/mick/2003/09/18/shortest_passwordless_ssh_tutorial_ever/" title="Shortest passwordless ssh tutorial">Shortest passwordless ssh tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/11/01/shortest-passwordless-ssh-tutorial/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Counting bits set</title>
		<link>http://blog.feinan.com/2007/10/07/counting-bits-set/</link>
		<comments>http://blog.feinan.com/2007/10/07/counting-bits-set/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 10:13:03 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/10/07/counting-bits-set/</guid>
		<description><![CDATA[This is the most elegant way of counting bits set in an unsigned integer.

unsigned int in_integer;
unsigned int num_bits;
for &#40;num_bits = 0; in_integer; num_bits++&#41;
&#123;
&#160; in_integer &#38;= in_integer - 1;
&#125;

]]></description>
			<content:encoded><![CDATA[<p>This is the most elegant way of counting bits set in an unsigned integer.</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="kw4">unsigned</span> <span class="kw4">int</span> in_integer;<br />
<span class="kw4">unsigned</span> <span class="kw4">int</span> num_bits;<br />
<span class="kw1">for</span> <span class="br0">&#40;</span>num_bits = <span class="nu0">0</span>; in_integer; num_bits++<span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
&nbsp; in_integer &amp;= in_integer - <span class="nu0">1</span>;<br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/10/07/counting-bits-set/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mp3 playback</title>
		<link>http://blog.feinan.com/2007/10/07/mp3-playback/</link>
		<comments>http://blog.feinan.com/2007/10/07/mp3-playback/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 09:03:18 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/10/07/mp3-playback/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/10/07/mp3-playback/feed/</wfw:commentRss>
<enclosure url="http://play82.tom.com/uploadfile/song/200705/26/1180163015_295743.mp3" length="3591097" type="audio/mpeg" />
		</item>
		<item>
		<title>integrating Plogger in Wordpress</title>
		<link>http://blog.feinan.com/2007/10/07/integrating-plogger-in-wordpress/</link>
		<comments>http://blog.feinan.com/2007/10/07/integrating-plogger-in-wordpress/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 02:45:38 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/10/07/integrating-plogger-in-wordpress/</guid>
		<description><![CDATA[Integrating Plogger
Integrating Plogger into WordPress
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.davidcubed.com/integrating-plogger/" title="Permanent Link to Integrating Plogger">Integrating Plogger</a><br />
<a href="http://www.livingos.com/2007/02/26/integrating-plogger-into-wordpress/" title="Permanent Link: Integrating Plogger into WordPress">Integrating Plogger into WordPress</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/10/07/integrating-plogger-in-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Call for Papers, Data Compression Conference March 2008, Snowbird, UT</title>
		<link>http://blog.feinan.com/2007/10/07/call-for-papers-data-compression-conference-march-2008-snowbird-ut/</link>
		<comments>http://blog.feinan.com/2007/10/07/call-for-papers-data-compression-conference-march-2008-snowbird-ut/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 19:59:54 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/10/07/call-for-papers-data-compression-conference-march-2008-snowbird-ut/</guid>
		<description><![CDATA[*****  Data Compression Conference (DCC&#8217;2008) *****
Snowbird, Utah
Tues, March 25 - Thurs March 27, 2008
The CALL FOR PAPERS is posted at:
www.cs.brandeis.edu/~dcc
DCC is held at the Cliff Lodge convention center in the beautiful
Snowbird / Alta Ski areas; located a short ride from the Salt
Lake City International Airport.
It is an international forum for current work on data [...]]]></description>
			<content:encoded><![CDATA[<p>*****  Data Compression Conference (DCC&#8217;2008) *****</p>
<p>Snowbird, Utah</p>
<p>Tues, March 25 - Thurs March 27, 2008</p>
<p>The CALL FOR PAPERS is posted at:<br />
www.cs.brandeis.edu/~dcc</p>
<p>DCC is held at the Cliff Lodge convention center in the beautiful<br />
Snowbird / Alta Ski areas; located a short ride from the Salt<br />
Lake City International Airport.</p>
<p>It is an international forum for current work on data compression<br />
and related applications. The conference addresses not only<br />
compression methods for specific types of data (text, images,<br />
video, audio, medical, scientific, space, graphics, web content,<br />
etc.), but also the use of techniques from information theory and<br />
data compression in networking, communications, and storage<br />
applications involving large data sets (including image and<br />
information mining, retrieval, archiving, backup, communications,<br />
and HCI). Both theoretical and experimental work are of interest.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/10/07/call-for-papers-data-compression-conference-march-2008-snowbird-ut/feed/</wfw:commentRss>
		</item>
		<item>
		<title>book list</title>
		<link>http://blog.feinan.com/2007/10/06/fwd-book-list/</link>
		<comments>http://blog.feinan.com/2007/10/06/fwd-book-list/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 08:36:59 +0000</pubDate>
		<dc:creator>feinan</dc:creator>
		
		<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://blog.feinan.com/2007/10/06/fwd-book-list/</guid>
		<description><![CDATA[&#8212;&#8212;&#8212;- Forwarded message &#8212;&#8212;&#8212;-
From: W M
Date: May 4, 2007 11:29 PM
Subject: book list
To: Fei Nan
honey,
here is the list:
Downtown Lib:
HB31.C69 no. 6
HA33.M33
Math Lib (Armstrong Bldg):
QA280.A5
QA280.H35
QA276.H32
Thanks. Kiss.
]]></description>
			<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;- Forwarded message &#8212;&#8212;&#8212;-<br />
From: W M<br />
Date: May 4, 2007 11:29 PM<br />
Subject: book list<br />
To: Fei Nan</p>
<p>honey,</p>
<p>here is the list:</p>
<p>Downtown Lib:</p>
<p>HB31.C69 no. 6<br />
HA33.M33</p>
<p>Math Lib (Armstrong Bldg):<br />
QA280.A5<br />
QA280.H35<br />
QA276.H32</p>
<p>Thanks. Kiss.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.feinan.com/2007/10/06/fwd-book-list/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
