<?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/"
	>

<channel>
	<title>dicianno.org/blog &#187; cli</title>
	<atom:link href="http://dicianno.org/blog/category/cli-apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://dicianno.org/blog</link>
	<description>notes about computers and lifestyle</description>
	<lastBuildDate>Thu, 04 Feb 2010 21:09:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>tar backup stupidity and limited space</title>
		<link>http://dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/</link>
		<comments>http://dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 04:12:01 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[obt]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/</guid>
		<description><![CDATA[So, pretend you have:

a new Mac laptop with a fast hard drive, but one that is smaller than all the data you need to backup
A backup hard drive you&#8217;ve used on Windows and Linux, but is formatted NTFS, and is much larger than your new laptop&#8217;s HD
You have files named on your system that needs [...]]]></description>
			<content:encoded><![CDATA[<p>So, pretend you have:</p>
<ul>
<li>a new Mac laptop with a fast hard drive, but one that is smaller than all the data you need to backup</li>
<li>A backup hard drive you&#8217;ve used on Windows and Linux, but is formatted NTFS, and is much larger than your new laptop&#8217;s HD</li>
<li>You have files named on your system that needs to be backed up that aren&#8217;t kosher for NTFS</li>
</ul>
<p>So, being a Linux geek, you realize &#8220;Ha! I&#8217;ll just tar my files up, copy it to the backup drive, over to the new system, and untar.&#8221;</p>
<p>Yes &#8211; you do just that, but then you need to use your laptop for work; so instead of waiting to untar the file, you copy the <em>very large</em> backup tar files from the external HD to your new laptop.</p>
<p>Now, here&#8217;s the problem: you can&#8217;t untar the entire tar flle w/o running out of space.  What do you do?  <strong>Un-tar a bit at a time; delete; continue.</strong></p>
<p>Untar a bit of the archive you want, delete it from the tar, and continue until you have more space on your HD than the rest of the tar file.<br />
<code><br />
# tar xf MYBACKUP.tar This/directory/I/want<br />
# tar --delete --file=MYBACKUP.tar This/directory/I/want<br />
</code>
</p>
<p>This method works surprisingly well, considering the tar file crossed all three major operating systems.</p>
<p>If you are unsure of what is inside the archive, you can use:<br />
<code><br />
# tar --list --file=MYBACKUP.tar<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>erlang</title>
		<link>http://dicianno.org/blog/2007/11/27/erlang-2/</link>
		<comments>http://dicianno.org/blog/2007/11/27/erlang-2/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 23:32:03 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/11/27/erlang-2/</guid>
		<description><![CDATA[For some reason, the Gentoo install of erlang put the man pages into man sections that ended in &#8220;erl&#8221;.  For example, instead a directory named man3 for the 3rd man page section, it&#8217;s man3erl.
I wrote a quick alias erlman that only searches these erlang man page sections.
~/.bashrc



&#160;


alias erlman=&#34;man -S 1erl:3erl:4erl:6erl&#34;


&#160;



]]></description>
			<content:encoded><![CDATA[<p>For some reason, the Gentoo install of erlang put the man pages into man sections that ended in &#8220;erl&#8221;.  For example, instead a directory named <tt>man3</tt> for the 3rd man page section, it&#8217;s <tt>man3erl</tt>.</p>
<p>I wrote a quick alias <tt>erlman</tt> that only searches these erlang man page sections.</p>
<p><tt>~/.bashrc</tt></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">alias</span> <span class="re2">erlman=</span><span class="st0">&quot;man -S 1erl:3erl:4erl:6erl&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/11/27/erlang-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating stream-able video</title>
		<link>http://dicianno.org/blog/2007/06/19/creating-stream-able-video/</link>
		<comments>http://dicianno.org/blog/2007/06/19/creating-stream-able-video/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 21:20:51 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[obt]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/06/19/creating-stream-able-video/</guid>
		<description><![CDATA[
I spent much to much time trying to figure out the right combination of video/audio encodings that would would from an RTSP streaming server (went with a RealServer demo, for now) to a variety of clients (QuickTime Player, VLC, various phones, etceteras.)
First, VLC is a champ.  Every time I tried a new streaming server, [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I spent much to much time trying to figure out the right combination of video/audio encodings that would would from an RTSP streaming server (went with a RealServer demo, for now) to a variety of clients (QuickTime Player, VLC, various phones, etceteras.)</p>
<p>First, VLC is a champ.  Every time I tried a new streaming server, VLC could play the stream with video and audio.  QuickTime Player was not so kind.  Even <strong>the phone we were streaming to</strong> &#8212; the Nokia N95 (<a href="http://forum.nokia.com/devices/N95">tech specs</a>) &#8212; <strong>could play streams that QuickTime Player could not.</strong></p>
<p>I tried a variety of tools, from the venerable ffmpeg to QuickTime Player&#8217;s export functionality to create stream-able videos (mainly for QuickTime, since it was being very picky).  The tools I used were the following:</p>
<ul>
<li>ffmpeg from <a href="http://ffmpeg.mplayerhq.hu/">FFMPEG project</a></li>
<li>faac from <a href="http://www.audiocoding.com/">AudioCoding</a></li>
<li>mp4creator from <a href="http://mpeg4ip.sourceforge.net/">MPEG4IP</a></li>
</ul>
<p>Here is a simple bash loop I made to iterate over .mov&#8217;s in the current directory and create MPEG4 video, MPEG4 audio (AAC LC), in an MPEG4 container that was hinted.  You should set FRAMERATE and SIZE (as &#8220;WxH&#8221;) as environment variables.  Note that the first line has <code>-ac 1</code> which sets the audio to mono.  Also, edit the -qscale to your liking (or remove it).</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">for</span> i <span class="kw1">in</span> `<span class="kw2">ls</span> *mov &#8211;<span class="re2">color=</span>never`; <span class="kw1">do</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; ffmpeg -i <span class="re1">$i</span> -ac <span class="nu0">1</span> -vn <span class="st0">&quot;$i.wav&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; faac &#8211;mpeg-vers <span class="nu0">4</span> &#8211;tns -o <span class="st0">&quot;$i.aac&quot;</span> <span class="st0">&quot;$i.wav&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; ffmpeg -re -i <span class="st0">&quot;$i&quot;</span> -pass <span class="nu0">1</span> -passlogfile <span class="st0">&quot;${i}pass&quot;</span> -vcodec mpeg4 -r <span class="re1">$FRAMERATE</span> -s <span class="re1">$SIZE</span> -qscale <span class="nu0">8</span> -an <span class="st0">&quot;$i.m4v&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="kw2">rm</span> -f <span class="st0">&quot;$i.m4v&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; ffmpeg -re -i <span class="st0">&quot;$i&quot;</span> -pass <span class="nu0">2</span> -passlogfile <span class="st0">&quot;${i}pass&quot;</span> -vcodec mpeg4 -r <span class="re1">$FRAMERATE</span> -s <span class="re1">$SIZE</span> -qscale <span class="nu0">8</span> -an <span class="st0">&quot;$i.m4v&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -c <span class="st0">&quot;$i.m4v&quot;</span> -optimize -<span class="re2">rate=</span><span class="re1">$FRAMERATE</span> <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -<span class="re2">hint=</span><span class="nu0">1</span> <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -c <span class="st0">&quot;$i.aac&quot;</span> -interleave -optimize <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; mp4creator -<span class="re2">hint=</span><span class="nu0">3</span> <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -list <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">done</span></div>
</li>
</ol>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/06/19/creating-stream-able-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>spamassassin: make it work!</title>
		<link>http://dicianno.org/blog/2006/06/16/spamassassin-make-it-work/</link>
		<comments>http://dicianno.org/blog/2006/06/16/spamassassin-make-it-work/#comments</comments>
		<pubDate>Fri, 16 Jun 2006 21:17:56 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/2006/06/16/spamassassin-make-it-work/</guid>
		<description><![CDATA[I emerged spamassassin, which installed the spamd server, and the spamc client, with which to talk to the server.
However, the logs were complaing TELL commands have not been enabled.  It seems that SPAMD_OPTS in /etc/conf.d/spamd is missing the -l (&#8211;allow-tell) option.
Adding the above -l to SPAMD_OPTS allowed spamc to talk to spamd and make [...]]]></description>
			<content:encoded><![CDATA[<p>I emerged spamassassin, which installed the <tt>spamd</tt> server, and the <tt>spamc</tt> client, with which to talk to the server.</p>
<p>However, the logs were complaing <tt>TELL commands have not been enabled</tt>.  It seems that SPAMD_OPTS in <tt>/etc/conf.d/spamd</tt> is missing the -l (&#8211;allow-tell) option.</p>
<p>Adding the above <tt>-l</tt> to SPAMD_OPTS allowed spamc to talk to spamd and make it start learning.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2006/06/16/spamassassin-make-it-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mutt: sending via multiple accounts with esmtp</title>
		<link>http://dicianno.org/blog/2006/06/15/mutt-sending-via-multiple-accounts-with-esmtp/</link>
		<comments>http://dicianno.org/blog/2006/06/15/mutt-sending-via-multiple-accounts-with-esmtp/#comments</comments>
		<pubDate>Fri, 16 Jun 2006 03:44:15 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/2006/06/15/mutt-sending-via-multiple-accounts-with-esmtp/</guid>
		<description><![CDATA[I found it much easier to set up multiple smtp accounts for mutt using esmtp than anything else.  It&#8217;s actually completely straightforward &#8212; just make esmtp do all the work &#8230;

install esmtp
create your ~/.esmtprc file

man esmtprc &#8212; seriously, it&#8217;s easy

add the following to your ~/.muttrc

set sendmail=&#8221;/usr/bin/esmtp&#8221;
set use_envelope_from
]]></description>
			<content:encoded><![CDATA[<p>I found it much easier to set up multiple smtp accounts for mutt using esmtp than anything else.  It&#8217;s actually completely straightforward &#8212; just make <tt>esmtp</tt> do all the work &#8230;</p>
<ul>
<li>install esmtp</li>
<li>create your <tt>~/.esmtprc</tt> file</li>
<ul>
<li><tt>man esmtprc</tt> &#8212; seriously, it&#8217;s easy</li>
</ul>
<li>add the following to your <tt>~/.muttrc</tt></li>
</ul>
<div class="code">set sendmail=&#8221;/usr/bin/esmtp&#8221;<br />
set use_envelope_from</div>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2006/06/15/mutt-sending-via-multiple-accounts-with-esmtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rxvt-unicode: options I use</title>
		<link>http://dicianno.org/blog/2006/05/02/rxvt-unicode-options-i-use/</link>
		<comments>http://dicianno.org/blog/2006/05/02/rxvt-unicode-options-i-use/#comments</comments>
		<pubDate>Tue, 02 May 2006 20:12:12 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/2006/05/02/rxvt-unicode-options-i-use/</guid>
		<description><![CDATA[These are the most common options I use as a default terminal.


option
purpose


-rv
Reverse video &#8212; black->white, white->black;
changes the behavior of progams that care about dark and light terminals


-fade 75
When the terminal window looses focus, this setting fades to the paramenter&#8217;s percentage of brightness


-ls
Start the shell as a login shell


+sb
Turn off the scrollbar


-bc
Blink the cursor


-ip (or -tr)
Turn [...]]]></description>
			<content:encoded><![CDATA[<p>These are the most common options I use as a default terminal.</p>
<table>
<tr>
<th width="20%">option</th>
<th>purpose</th>
</tr>
<tr>
<td>-rv</td>
<td>Reverse video &#8212; black->white, white->black;<br />
changes the behavior of progams that care about dark and light terminals</td>
</tr>
<tr>
<td>-fade 75</td>
<td>When the terminal window looses focus, this setting fades to the paramenter&#8217;s percentage of brightness</td>
</tr>
<tr>
<td>-ls</td>
<td>Start the shell as a login shell</td>
</tr>
<tr>
<td>+sb</td>
<td>Turn off the scrollbar</td>
</tr>
<tr>
<td>-bc</td>
<td>Blink the cursor</td>
</tr>
<tr>
<td>-ip (or -tr)</td>
<td>Turn off inheriting parent window&#8217;s pixmap &#8230; or &#8220;make transparent&#8221;</td>
</tr>
<tr>
<td>-tint [color]</td>
<td>Tint the window a color &#8212; useful when you use -tr and have many, many, many terminals</td>
</tr>
</table>
<p>e.g.</p>
<div class="code">urxvtc -rv -fade 75 -ls +sb -bc -ip -tint brown</div>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2006/05/02/rxvt-unicode-options-i-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rxtv-unicode: daemonize and use client for faster loads</title>
		<link>http://dicianno.org/blog/2006/05/02/rxtv-unicode-daemonize-and-use-client-for-faster-loads/</link>
		<comments>http://dicianno.org/blog/2006/05/02/rxtv-unicode-daemonize-and-use-client-for-faster-loads/#comments</comments>
		<pubDate>Tue, 02 May 2006 19:49:28 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/2006/05/02/rxtv-unicode-daemonize-and-use-client-for-faster-loads/</guid>
		<description><![CDATA[&#8220;rxvt-unicode&#8221; is a really nice terminal.  You can increase loading speed and memory using, if you tend to use multiple terminals, by using the urxvtd daemon and the urxvtc client.
First, you need to launch urxvtd.  This is as easy as adding a line like the following to your ~/.xinitrc:
urxvtd &#038;
Once the daemon is [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;rxvt-unicode&#8221; is a really nice terminal.  You can increase loading speed and memory using, if you tend to use multiple terminals, by using the <tt>urxvtd</tt> daemon and the <tt>urxvtc</tt> client.</p>
<p>First, you need to launch <tt>urxvtd</tt>.  This is as easy as adding a line like the following to your <tt>~/.xinitrc</tt>:</p>
<div class="code">urxvtd &#038;</div>
<p>Once the daemon is running in the background, you can connect to it with <tt>urxtvc</tt>.  Then a terminal launches, and you are ready to it as usual.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2006/05/02/rxtv-unicode-daemonize-and-use-client-for-faster-loads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Topic &#8211; Command Line Apps</title>
		<link>http://dicianno.org/blog/2006/05/02/topic-command-line-apps/</link>
		<comments>http://dicianno.org/blog/2006/05/02/topic-command-line-apps/#comments</comments>
		<pubDate>Tue, 02 May 2006 19:43:35 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/2006/05/02/topic-command-line-apps/</guid>
		<description><![CDATA[I&#8217;m going to try to keep things I&#8217;ve learned about different command line apps here.  I tend to move between more heavy desktop environments and lighter (and more interesting) window managers like ion3 or wmii.
This time, I&#8217;m going to actually keep notes of the different programs I use.  This will include programs like rxvt-unicode, my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to try to keep things I&#8217;ve learned about different command line apps here.  I tend to move between more heavy desktop environments and lighter (and more interesting) window managers like ion3 or wmii.</p>
<p>This time, I&#8217;m going to actually keep notes of the different programs I use.  This will include programs like rxvt-unicode, my terminal of choice, and mutt, which is arguably the best (or simply most popular) cli mail client.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2006/05/02/topic-command-line-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
