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

<channel>
	<title>Arkham's Eyrie</title>
	<atom:link href="http://ark.asengard.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://ark.asengard.net/blog</link>
	<description>Where Doves Kill &#38; Ravens Die.</description>
	<pubDate>Tue, 19 Aug 2008 00:41:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-bleeding</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Luck</title>
		<link>http://ark.asengard.net/blog/2008/08/19/luck/</link>
		<comments>http://ark.asengard.net/blog/2008/08/19/luck/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 00:39:06 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=54</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align: middle;" src="http://img146.imageshack.us/img146/5879/pokercroppedsmallim5.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/08/19/luck/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Another Failed Mutation</title>
		<link>http://ark.asengard.net/blog/2008/07/10/another-failed-mutation/</link>
		<comments>http://ark.asengard.net/blog/2008/07/10/another-failed-mutation/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 17:18:40 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=52</guid>
		<description><![CDATA[By George Carlin,
&#8220;We&#8217;re so self-important. So arrogant. Everybody&#8217;s going to save something now. Save the trees, save the bees, save the whales, save the snails. And the supreme arrogance? Save the planet! Are these people kidding? Save the planet? We don&#8217;t even know how to take care of ourselves; we haven&#8217;t learned how to care [...]]]></description>
			<content:encoded><![CDATA[<p>By George Carlin,</p>
<p>&#8220;We&#8217;re so self-important. So arrogant. Everybody&#8217;s going to save something now. Save the trees, save the bees, save the whales, save the snails. And the supreme arrogance? Save the planet! Are these people kidding? Save the planet? We don&#8217;t even know how to take care of ourselves; we haven&#8217;t learned how to care for one another. We&#8217;re gonna save the fuckin&#8217; planet? . . . And, by the way, there&#8217;s nothing wrong with the planet in the first place. The planet is fine. The people are fucked! Compared with the people, the planet is doin&#8217; great. It&#8217;s been here over four billion years . . . The planet isn&#8217;t goin&#8217; anywhere, folks. We are! We&#8217;re goin&#8217; away. Pack your shit, we&#8217;re goin&#8217; away. And we won&#8217;t leave much of a trace. Thank God for that. Nothing left. Maybe a little Styrofoam. The planet will be here, and we&#8217;ll be gone. Another failed mutation; another closed-end biological mistake.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/07/10/another-failed-mutation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mplayer and Nautilus &#8220;Open with&#8221;</title>
		<link>http://ark.asengard.net/blog/2008/06/19/mplayer-and-nautilus-open-with/</link>
		<comments>http://ark.asengard.net/blog/2008/06/19/mplayer-and-nautilus-open-with/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:07:09 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=50</guid>
		<description><![CDATA[Nautilus &#8220;Open with&#8221; option and Mplayer don&#8217;t seem to behave correctly when the file we want to open contains spaces. The dirty hack to solve it is:

su
vi /usr/share/applications/mplayer.desktop

And replace &#8220;Exec=gmplayer %U&#8221; with &#8220;Exec=gmplayer %F&#8221;
  
]]></description>
			<content:encoded><![CDATA[<p>Nautilus &#8220;Open with&#8221; option and Mplayer don&#8217;t seem to behave correctly when the file we want to open contains spaces. The dirty hack to solve it is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>applications<span style="color: #000000; font-weight: bold;">/</span>mplayer.desktop</pre></div></div>

<p>And replace &#8220;Exec=gmplayer %U&#8221; with &#8220;Exec=gmplayer %F&#8221;</p>
<p> <img src='http://ark.asengard.net/blog/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/06/19/mplayer-and-nautilus-open-with/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable the Recent Documents Menu in Gnome</title>
		<link>http://ark.asengard.net/blog/2008/05/30/disable-the-recent-documents-menu-in-gnome/</link>
		<comments>http://ark.asengard.net/blog/2008/05/30/disable-the-recent-documents-menu-in-gnome/#comments</comments>
		<pubDate>Fri, 30 May 2008 13:20:12 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=47</guid>
		<description><![CDATA[
cd
su
rm -i .recently-used*
chattr +i .recently-used.xbel

  
]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span>
<span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-i</span> .recently-used<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">chattr</span> +i .recently-used.xbel</pre></div></div>

<p> <img src='http://ark.asengard.net/blog/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/05/30/disable-the-recent-documents-menu-in-gnome/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MIA: Firefox titlebar icon</title>
		<link>http://ark.asengard.net/blog/2008/05/30/mia-firefox-titlebar-icon/</link>
		<comments>http://ark.asengard.net/blog/2008/05/30/mia-firefox-titlebar-icon/#comments</comments>
		<pubDate>Fri, 30 May 2008 12:42:33 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=42</guid>
		<description><![CDATA[I just installed firefox3 beta and I realized that the little icon in upper right corner of the application (the titlebar) had just disappeared leaving a pretty sad spot in my eyesight.
After symlinking a hundred of different images in $FIREFOX_DIR and /usr/share/pixmaps I finally discovered the right one:

cd /opt/mozilla/lib/firefox-3.0/
mkdir -p chrome/icons/default/
cp icons/default.xpm  chrome/icons/default/default.xpm

If the [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed firefox3 beta and I realized that the little icon in upper right corner of the application (the titlebar) had just disappeared leaving a pretty sad spot in my eyesight.<br />
After symlinking a hundred of different images in $FIREFOX_DIR and /usr/share/pixmaps I finally discovered the right one:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firefox-<span style="color: #000000;">3.0</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> chrome<span style="color: #000000; font-weight: bold;">/</span>icons<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> icons<span style="color: #000000; font-weight: bold;">/</span>default.xpm  chrome<span style="color: #000000; font-weight: bold;">/</span>icons<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>default.xpm</pre></div></div>

<p>If the same problem happens while you&#8217;re using the normal Firefox just change /opt/mozilla/lib/firefox-3.0 into /usr/lib/firefox <img src='http://ark.asengard.net/blog/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/05/30/mia-firefox-titlebar-icon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Revenge</title>
		<link>http://ark.asengard.net/blog/2008/05/28/who-is-the-master/</link>
		<comments>http://ark.asengard.net/blog/2008/05/28/who-is-the-master/#comments</comments>
		<pubDate>Wed, 28 May 2008 18:32:39 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=34</guid>
		<description><![CDATA[Today I was returning home from university and I saw an old lady while she was wiping his little dog ass.
Who is the pet now?
]]></description>
			<content:encoded><![CDATA[<p>Today I was returning home from university and I saw an old lady while she was wiping his little dog ass.</p>
<p>Who is the pet now?</p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/05/28/who-is-the-master/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Archlinux Ettercap GTK b0rk3n</title>
		<link>http://ark.asengard.net/blog/2008/05/15/archlinux-ettercap-gtk-b0rk3n/</link>
		<comments>http://ark.asengard.net/blog/2008/05/15/archlinux-ettercap-gtk-b0rk3n/#comments</comments>
		<pubDate>Thu, 15 May 2008 10:59:30 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=30</guid>
		<description><![CDATA[<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>1827</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>1827</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2180</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3025</b><br />
<br />
<b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Argument must be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3077</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3108</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3108</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3151</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3151</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3292</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3292</b><br />
Yes, it&#8217;s broken.

arkham ~  $  ettercap-gtk 
ettercap-gtk: error while loading shared libraries: libltdl.so.3: 
cannot open shared object file: No such file or directory

ABS Solution:

mkdir -p ~/builds


cp -r /var/abs/extra/ettercap-gtk ~/builds


cd ~/builds/ettercap-gtk


makepkg -c


pacman -U ettercap-gtk-NG_0.7.3-2-i686.pkg.tar.gz

  
]]></description>
			<content:encoded><![CDATA[<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>1827</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>1827</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2180</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3025</b><br />
<br />
<b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Argument must be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3077</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3108</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3108</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3151</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3151</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3292</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/.annapurna/ark/ark.asengard.net/blog/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3292</b><br />
<p>Yes, it&#8217;s broken.</p>

<div class="wp_syntax"><div class="code"><pre class="" style="font-family:monospace;">arkham ~  $  ettercap-gtk 
ettercap-gtk: error while loading shared libraries: libltdl.so.3: 
cannot open shared object file: No such file or directory</pre></div></div>

<p><strong>ABS Solution:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>builds</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>abs<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>ettercap-gtk ~<span style="color: #000000; font-weight: bold;">/</span>builds</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>builds<span style="color: #000000; font-weight: bold;">/</span>ettercap-gtk</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">makepkg <span style="color: #660033;">-c</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">pacman <span style="color: #660033;">-U</span> ettercap-gtk-NG_0.7.3-<span style="color: #000000;">2</span>-i686.pkg.tar.gz</pre></div></div>

<p> <img src='http://ark.asengard.net/blog/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/05/15/archlinux-ettercap-gtk-b0rk3n/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Raising skinny elephants&#8230;</title>
		<link>http://ark.asengard.net/blog/2008/04/28/raising-skinny-elephants/</link>
		<comments>http://ark.asengard.net/blog/2008/04/28/raising-skinny-elephants/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 19:50:18 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=27</guid>
		<description><![CDATA[Today, out of the blue, my system freezed.
So, once for all, I decided to enable Magic SysRq keys.

echo &#34;1&#34; &#62; /proc/sys/kernel/sysrq

If my system would ever freeze again, I will start raising skinny elephants&#8230;
R -> put the keyboard in raw mode
S -> sync the disk
E -> terminate all processes gracefully
I -> kill all processes
U -> umount [...]]]></description>
			<content:encoded><![CDATA[<p>Today, out of the blue, my system freezed.<br />
So, once for all, I decided to enable Magic SysRq keys.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>sysrq</pre></div></div>

<p>If my system would ever freeze again, I will start raising skinny elephants&#8230;</p>
<p><strong>R</strong> -> put the keyboard in raw mode<br />
<strong>S</strong> -> sync the disk<br />
<strong>E</strong> -> terminate all processes gracefully<br />
<strong>I</strong> -> kill all processes<br />
<strong>U</strong> -> umount all filesystems and remount them read only<br />
<strong>B</strong> -> reboot the system</p>
<p>In a sentence:</p>
<p><strong>R</strong>aising<br />
<strong>S</strong>kinny<br />
<strong>E</strong>lephants<br />
<strong>I</strong>s<br />
<strong>U</strong>tterly<br />
<strong>B</strong>oring</p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/04/28/raising-skinny-elephants/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vim staircase effect</title>
		<link>http://ark.asengard.net/blog/2008/02/28/vim-staircase-effect/</link>
		<comments>http://ark.asengard.net/blog/2008/02/28/vim-staircase-effect/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 02:05:54 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=25</guid>
		<description><![CDATA[If you are terminal vim users, I&#8217;m sure you have tried to copy/paste text into a file and thought &#8220;Wtf, this is pretty damn wrong&#8221; seeing something like this:

void
randomize &#40;void&#41;
&#123;
       struct timeval *tv = malloc &#40;sizeof &#40;struct timeval&#41;&#41;;
            [...]]]></description>
			<content:encoded><![CDATA[<p>If you are terminal vim users, I&#8217;m sure you have tried to copy/paste text into a file and thought &#8220;Wtf, this is pretty damn wrong&#8221; seeing something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="c c" style="font-family:monospace;"><span style="color: #993333;">void</span>
randomize <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
       <span style="color: #993333;">struct</span> timeval <span style="color: #339933;">*</span>tv <span style="color: #339933;">=</span> malloc <span style="color: #009900;">&#40;</span><span style="color: #993333;">sizeof</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">struct</span> timeval<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #993333;">struct</span> timezone <span style="color: #339933;">*</span>tz <span style="color: #339933;">=</span>
                  <span style="color: #009900;">&#40;</span><span style="color: #993333;">struct</span> timezone <span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span> malloc <span style="color: #009900;">&#40;</span><span style="color: #993333;">sizeof</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">struct</span> timezone<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
                 gettimeofday <span style="color: #009900;">&#40;</span>tv<span style="color: #339933;">,</span> tz<span style="color: #009900;">&#41;</span>;
                      srand <span style="color: #009900;">&#40;</span>tv<span style="color: #339933;">-&gt;</span>tv_usec<span style="color: #009900;">&#41;</span>;
                           free <span style="color: #009900;">&#40;</span>tv<span style="color: #009900;">&#41;</span>;
                                free <span style="color: #009900;">&#40;</span>tz<span style="color: #009900;">&#41;</span>;
                            <span style="color: #009900;">&#125;</span></pre></div></div>

<p>That&#8217;s called vi staircase effect.</p>
<p>The solution is to type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">set</span> paste</pre></div></div>

<p>before pasting and</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">:<span style="color: #000000; font-weight: bold;">set</span> nopaste</pre></div></div>

<p>after finishing.</p>
<p>Alternatively, just add to your ~/.vimrc:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">nnoremap <span style="color: #000000; font-weight: bold;">&lt;</span>silent<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>F12<span style="color: #000000; font-weight: bold;">&gt;</span> :<span style="color: #000000; font-weight: bold;">set</span> paste<span style="color: #000000; font-weight: bold;">!&lt;</span>CR<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>to press F12 for toggling between paste and nopaste conditions.</p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/02/28/vim-staircase-effect/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trust WB-1400T webcam on Ubuntu</title>
		<link>http://ark.asengard.net/blog/2008/02/27/trust-wb-1400t-on-ubuntu-linux/</link>
		<comments>http://ark.asengard.net/blog/2008/02/27/trust-wb-1400t-on-ubuntu-linux/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 19:05:06 +0000</pubDate>
		<dc:creator>Arkham</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ark.asengard.net/blog/?p=24</guid>
		<description><![CDATA[Download the source here.
Now open a root terminal and create the folder:

mkdir -p /usr/src/modules

Move the package to the new folder and move into it:

mv &#60;gspcav1_package&#62; /usr/src/modules


cd /usr/src/modules

Extract and move into it:

tar -xzvf &#60;gspcav1_package&#62;


cd &#60;gspcav1_folder&#62;

Compile and install:

make &#38;&#38; make install

Remove eventually previous version of the module and load the new one:

modprobe -r gspca &#38;&#38; modprobe gspca

Plug-in [...]]]></description>
			<content:encoded><![CDATA[<p>Download the source <a href="http://mxhaard.free.fr/download.html">here</a>.</p>
<p>Now open a root terminal and create the folder:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>modules</pre></div></div>

<p>Move the package to the new folder and move into it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">&lt;</span>gspcav1_package<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>modules</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>modules</pre></div></div>

<p>Extract and move into it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzvf</span> <span style="color: #000000; font-weight: bold;">&lt;</span>gspcav1_package<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">&lt;</span>gspcav1_folder<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Compile and install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Remove eventually previous version of the module and load the new one:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">modprobe <span style="color: #660033;">-r</span> gspca <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> modprobe gspca</pre></div></div>

<p>Plug-in the webcam, and you should see something in dmesg.<br />
Now you can just test with</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mplayer</span> tv:<span style="color: #000000; font-weight: bold;">//</span> <span style="color: #660033;">-tv</span> <span style="color: #007800;">driver</span>=v4l:<span style="color: #007800;">width</span>=<span style="color: #000000;">352</span>:<span style="color: #007800;">height</span>=<span style="color: #000000;">288</span>:<span style="color: #007800;">device</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>video0</pre></div></div>

<p>or using programs like xawtv, camorama, amsn or skype. Have fun <img src='http://ark.asengard.net/blog/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ark.asengard.net/blog/2008/02/27/trust-wb-1400t-on-ubuntu-linux/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
