<?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>Blog.Project13.pl &#187; gnu</title>
	<atom:link href="http://www.blog.project13.pl/index.php/tag/gnu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.project13.pl</link>
	<description>The Blog of a Coder</description>
	<lastBuildDate>Sun, 05 Feb 2012 02:28:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Terminal Heroes 8: Memory usage scripts</title>
		<link>http://www.blog.project13.pl/index.php/coding/442/memory-usage-scripts/</link>
		<comments>http://www.blog.project13.pl/index.php/coding/442/memory-usage-scripts/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 10:54:21 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[terminal heroes]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=442</guid>
		<description><![CDATA[I have a low-memory VPS running online and thus always have to worry about what uses how much memory&#8230; Of course top and my favorite htop are very good tools to check this, but sometimes I just want to get a super simple report if I&#8217;m overusing memory or not yet. The bellow scripts (most [...]]]></description>
			<content:encoded><![CDATA[<p>I have a low-memory VPS running online and thus always have to worry about what uses how much memory&#8230; Of course top and my favorite <strong>htop</strong> are very good tools to check this, but sometimes I just want to get a super simple report if I&#8217;m overusing memory or not yet. The bellow scripts (most of them was found online or hacked up from multiple scripts to fit my needs) print simple yet very readable memory usage information.</p>
<h2>memused</h2>
<div class="geshi no bash">
<div class="head">#!/bin/bash</div>
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#if [ $1 = &#39;&#39;]; then</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#    ps auxf | awk &#39;{sum=sum+$6}; END {print sum/1024}&#39;;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#else</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#    ps auxf | grep $1 | awk &#39;{sum=sum+$6}; END {print sum/1024}&#39;;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#fi</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">bean=</span>`<span class="kw2">cat</span> <span class="sy0">/</span>proc<span class="sy0">/</span>user_beancounters` <span class="re2">guar=</span>`<span class="kw3">echo</span> <span class="st0">&quot;$bean&quot;</span> <span class="sy0">|</span> <span class="kw2">grep</span> vmguar <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $4;}&#39;</span>` <span class="re2">burst=</span>`<span class="kw3">echo</span> <span class="st0">&quot;$bean&quot;</span> <span class="sy0">|</span> <span class="kw2">grep</span> privvm <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $5;}&#39;</span>` <span class="re2">priv=</span>`<span class="kw3">echo</span> <span class="st0">&quot;$bean&quot;</span> <span class="sy0">|</span> <span class="kw2">grep</span> privvm <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $2;}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="re2">total=</span>guar<span class="sy0">/</span><span class="nu0">256</span> <span class="kw3">let</span> <span class="re2">used=</span>priv<span class="sy0">/</span><span class="nu0">256</span> <span class="kw3">let</span> <span class="re2">burst=</span>burst<span class="sy0">/</span><span class="nu0">256</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;VPS memory usage:&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Used: $used MB&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Total: $total MB&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Burstable to: $burst MB&quot;</span></div>
</li>
</ol>
</div>
<p>Sample output:<br />
<code>VPS memory usage:<br />
Used: 296 MB<br />
Total: 256 MB<br />
Burstable to: 512 MB</code></p>
<h2>memfree</h2>
<div class="geshi no bash">
<div class="head">#!/bin/bash</div>
<ol>
<li class="li1">
<div class="de1"><span class="co0">#</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Revised 02-Feb-2007: include kernel memory (kmemsize) in &#39;used&#39; calculation</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># and show percentages in output.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BEAN=</span>`<span class="kw2">cat</span> <span class="sy0">/</span>proc<span class="sy0">/</span>user_beancounters`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">GUAR=</span>`<span class="kw3">echo</span> <span class="st0">&quot;$BEAN&quot;</span> <span class="sy0">|</span> <span class="kw2">grep</span> vmguar <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $4;}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">PRIV=</span>`<span class="kw3">echo</span> <span class="st0">&quot;$BEAN&quot;</span> <span class="sy0">|</span> <span class="kw2">grep</span> privvm <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $2;}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">KMEM=</span>`<span class="kw3">echo</span> <span class="st0">&quot;$BEAN&quot;</span> <span class="sy0">|</span> <span class="kw2">grep</span> kmem <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $3;}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="re2">TOTL=</span><span class="re1">$GUAR</span><span class="sy0">/</span><span class="nu0">256</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="re2">KMMB=</span><span class="re1">$KMEM</span><span class="sy0">/</span><span class="nu0">1048576</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="re2">PVMB=</span><span class="re1">$PRIV</span><span class="sy0">/</span><span class="nu0">256</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="re2">USED=</span><span class="re1">$KMMB</span>+<span class="re1">$PVMB</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="re2">FREE=</span><span class="re1">$TOTL</span>-<span class="re1">$USED</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="st0">&quot;$FREE&quot;</span> -gt <span class="st0">&quot;0&quot;</span> <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">let</span> <span class="re2">UPER=</span><span class="re1">$USED</span><span class="sy0">*</span><span class="nu0">100</span><span class="sy0">/</span><span class="re1">$TOTL</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">let</span> <span class="re2">FPER=</span><span class="nu0">100</span>-<span class="re1">$UPER</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">else</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">let</span> <span class="re2">UPER=</span><span class="st0">&quot;100&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">let</span> <span class="re2">FPER=</span><span class="st0">&quot;0&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;VPS Memory:&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot; Total: $TOTL mb Used: $USED mb (${UPER}%) Free: $FREE mb (${FPER}%)&quot;</span></div>
</li>
</ol>
</div>
<p>Sample output:<br />
<code>VPS Memory:<br />
Total: 256 mb Used: 302 mb (100%) Free: -46 mb (0%)</code></p>
<h2>memheld</h2>
<div class="geshi no bash">
<div class="head">#!/bin/bash</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw2">grep</span> oomguarpages <span class="sy0">/</span>proc<span class="sy0">/</span>user_beancounters <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{s=$2;t=$3;u=$4; {print &quot;VPS Memory Usage<span class="es0">\n</span>Current Held: &quot; s/256 &quot;MB<span class="es0">\n</span>Max Held: &quot; t/256 &quot;MB<span class="es0">\n</span>Barrier: &quot;u/256&quot;MB&quot; }}&#39;</span></div>
</li>
</ol>
</div>
<p>Sample output:<br />
<code>VPS Memory Usage<br />
Current Held: 160.832MB<br />
Max Held: 294.605MB<br />
Barrier: 256MB</code></p>
<h2>memps</h2>
<div class="geshi no bash">
<div class="head">#!/bin/bash</div>
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;ps axo pmem,pcpu,comm | sort&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">ps</span> axo pmem,pcpu,<span class="kw2">comm</span> <span class="sy0">|</span> <span class="kw2">sort</span></div>
</li>
</ol>
</div>
<p>Sample output:<br />
<code>ps axo pmem,pcpu,comm | sort<br />
0.0  0.0 script<br />
0.0  0.0 script<br />
0.1  0.0 init<br />
#...<br />
2.2  0.0 httpd<br />
4.0  0.0 mysqld<br />
7.3  0.0 httpd<br />
8.0  0.0 httpd<br />
%MEM %CPU COMMAND</code></p>
<h2>memprivmpages</h2>
<div class="geshi no bash">
<div class="head">#!/bin/bash</div>
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">beans=</span>`<span class="kw2">cat</span> <span class="sy0">/</span>proc<span class="sy0">/</span>user_beancounters <span class="sy0">|</span> <span class="kw2">grep</span> priv`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">max=</span>`<span class="kw3">echo</span> <span class="re1">$beans</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $4;}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">use=</span>`<span class="kw3">echo</span> <span class="re1">$beans</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{ print $2;}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="st0">&quot;per=$use*100/$max&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="st0">&quot;mb=$use/256&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">let</span> <span class="st0">&quot;mmb=$max/256&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;privvmpages usage: $mb MB ($per% of $mmb)&quot;</span></div>
</li>
</ol>
</div>
<p>Sample output:<br />
<code>privvmpages usage: 296 MB (57% of 512)</code><br />
For those wondering, yes I do have memory usage <em>above &#8220;100%&#8221; </em>in the output of some of these scripts, and it&#8217;s partially true. A VPS does usually have some guaranteed memory, and some &#8220;burstable&#8221; &#8211; so you can use more than just the guaranteed memory for some period of time. On the mashine I ran this I have 256 guaranteed and a &#8220;total&#8221; of 512MB &#8211; including the burstable memory.</p>
<p>If you like any of these, feel free to use them. I use them by creating a scripts directory and adding it to the PATH, so I can simply invoke them from anywhere.</p>
<p>PS: For more <strong>detailed memory usage information</strong> (as graphs etc), I&#8217;m using <a href="http://munin.projects.linpro.no/" onclick="urchinTracker('/outgoing/munin.projects.linpro.no/?referer=');"><strong>Munin</strong></a> and really recommend it. The graphs it draws are really nice, and it <strong>doesn&#8217;t</strong> inflict heavy load on the server, and it can <strong>monitor remote hosts</strong> if needed!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/coding/442/memory-usage-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQLIntegra: dbfiller &amp; wiki</title>
		<link>http://www.blog.project13.pl/index.php/null/401/mysqlintegra-dbfiller-wiki/</link>
		<comments>http://www.blog.project13.pl/index.php/null/401/mysqlintegra-dbfiller-wiki/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 23:06:21 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[agh]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[jmeter]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=401</guid>
		<description><![CDATA[I passed all my exams at my first attempt and should have now some time to relax, right? Well something like that, I&#8217;m actually doing quite a lot these days. We&#8217;re on the roll with MySQL Integra. Our server &#8220;Kopiec&#8221; is somewhat online (running CentOS off course) &#8211; we&#8217;re able to start/stop if thanks to [...]]]></description>
			<content:encoded><![CDATA[<p>I passed all my exams at my first attempt and should have now some time to relax, right? Well something like that, I&#8217;m actually doing quite a lot these days. We&#8217;re on the roll with MySQL Integra.</p>
<p>Our server &#8220;<strong>Kopiec</strong>&#8221; is somewhat online (running <strong>CentOS</strong> off course) &#8211; we&#8217;re able to start/stop if thanks to a tool that&#8217;s called &#8220;remote insight&#8221;, and I&#8217;ve put 3 databases on there. <strong>MariaDB</strong>, <strong>InfiniDB</strong> and a clean <strong>MySQL</strong> instalation. We&#8217;re somewhat having problems with <strong>TokuDB</strong>, but that&#8217;s going to be our 4th database of interest. If you want to keep track of our test&#8217;s you can take a look at: <a href="http://mysqlintegra.project13.pl/" onclick="urchinTracker('/outgoing/mysqlintegra.project13.pl/?referer=');">http://mysqlintegra.project13.pl/</a>.</p>
<p>The first step in getting things tested is filling those db&#8217;s with some data, and I mean a LOT of data. So we hacked up a <em>more or less quick and dirty</em> <strong>python</strong> script called <strong>dbfiller</strong> (<a href="http://github.com/barthez/mysql.integra.dbfiller" onclick="urchinTracker('/outgoing/github.com/barthez/mysql.integra.dbfiller?referer=');"><strong>source code </strong>avaiable on github</a>) that would simulate a very simple table generation scheme (people working on shifts and checking in when they&#8217;re finished or start some activity). If you&#8217;re interested, our task is specyfied in the /doc/Opis.pdf file (sorry, only in polish). After a few days it&#8217;s up and running and we&#8217;re moving on to filling up those databases with some gigabytes of data.</p>
<p>Next we&#8217;re going to write some SQL Views/Procedures and then we&#8217;ll use <a href="http://mysqlintegra.project13.pl/index.php/Apache_JMeter" onclick="urchinTracker('/outgoing/mysqlintegra.project13.pl/index.php/Apache_JMeter?referer=');">Apache<strong> JMeter</strong></a> to run some<strong> performance</strong> benchmarks of some interesting <strong>data storage engines</strong>.</p>
<p>PS: If you&#8217;re wondering about my GWT-Crossword project &#8211; yeah, it&#8217;s still actual, and I&#8217;ll get right on it when done with some of the stuff here.<br />
PPS: Yes, an Linux powered phone AT LAST in my hands! The HTC HERO is comming to me really soon &#8211; never again shall I use a ShitOS like WindowsMobile 6.5.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/null/401/mysqlintegra-dbfiller-wiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aiming Higher&#8230;</title>
		<link>http://www.blog.project13.pl/index.php/coding/363/aiming-higher/</link>
		<comments>http://www.blog.project13.pl/index.php/coding/363/aiming-higher/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 21:54:47 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[agh]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[integra]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=363</guid>
		<description><![CDATA[&#8230;is exactly what I&#8217;m currently trying to do. Thus, I&#8217;m out of Mediaframe, and got involved in a fascinating and very cool project. Under the lead of Dr Marek Długosz me and 2 of my friends will be tackling the topic of &#8220;MySQL Data Storage Engine Comprehension &#8211; with focus on Automatics use cases&#8221;. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;is exactly what I&#8217;m currently trying to do. Thus, I&#8217;m out of Mediaframe, and got involved in a fascinating and very cool project. Under the lead of Dr Marek Długosz me and 2 of my friends will be tackling the topic of <strong>&#8220;MySQL Data Storage Engine Comprehension &#8211; with focus on Automatics use cases&#8221;</strong>. It&#8217;s really interesting since MySQL is so popular, yet very little people know about the dozens of 3rd party storage engines &#8211; some of them are really interesting, just to name a few:</p>
<ul>
<li><span style="font-family: Courier,Monospaced; font-size: x-small;"><strong>TokuDB</strong> <a rel="nofollow" href="http://www.google.com/url?sa=D&amp;q=http://tokutek.com/&amp;usg=AFQjCNHysF12TbB3GldusTu-K-3nhZdweQ" onclick="urchinTracker('/outgoing/www.google.com/url?sa=D_amp_q=http_//tokutek.com/_amp_usg=AFQjCNHysF12TbB3GldusTu-K-3nhZdweQ&amp;referer=');">http://tokutek.com/</a><em></em></span></li>
<li><span style="font-family: Courier,Monospaced; font-size: x-small;"><strong>InfiniDB</strong> <a rel="nofollow" href="http://www.google.com/url?sa=D&amp;q=http://www.infinidb.org&amp;usg=AFQjCNEtOl432Euej2MhI_lbktMG0d8oVw" onclick="urchinTracker('/outgoing/www.google.com/url?sa=D_amp_q=http_//www.infinidb.org_amp_usg=AFQjCNEtOl432Euej2MhI_lbktMG0d8oVw&amp;referer=');">http://www.infinidb.org</a></span><em></em></li>
<li><span style="font-family: Courier,Monospaced; font-size: x-small;"><strong>percona</strong> </span><span style="font-family: Courier,Monospaced; font-size: x-small;"><a rel="nofollow" href="http://www.google.com/url?sa=D&amp;q=http://www.percona.com/docs/wiki/Percona-XtraDB:start&amp;usg=AFQjCNGYrLuDIAVe4j8r_CQysDAw801lOg" onclick="urchinTracker('/outgoing/www.google.com/url?sa=D_amp_q=http_//www.percona.com/docs/wiki/Percona-XtraDB_start_amp_usg=AFQjCNGYrLuDIAVe4j8r_CQysDAw801lOg&amp;referer=');">http://www.percona.com/docs/wiki/Percona-XtraDB:start</a></span><span style="font-family: Courier,Monospaced; font-size: x-small;"><em></em> </span></li>
<li><span style="font-family: Courier,Monospaced; font-size: x-small;"><strong>MariaDB</strong> <a rel="nofollow" href="http://www.google.com/url?sa=D&amp;q=http://askmonty.org/wiki/index.php/Maria&amp;usg=AFQjCNHItj3nVliSHeoWXcOGI9ODkrC7iQ" onclick="urchinTracker('/outgoing/www.google.com/url?sa=D_amp_q=http_//askmonty.org/wiki/index.php/Maria_amp_usg=AFQjCNHItj3nVliSHeoWXcOGI9ODkrC7iQ&amp;referer=');">http://askmonty.org/wiki/index.php/Maria</a> <em>(Maria, PBXT, FederatedX) </em></span></li>
<li><span style="font-family: Courier,Monospaced; font-size: x-small;"><strong>IBMDB2I </strong></span><span style="font-family: Courier,Monospaced; font-size: x-small;"><a rel="nofollow" href="http://www.google.com/url?sa=D&amp;q=http://dev.mysql.com/doc/refman/5.1/en/se-db2.html&amp;usg=AFQjCNEI0fPrDd9d5U8azYUe4o_KcsauLQ" onclick="urchinTracker('/outgoing/www.google.com/url?sa=D_amp_q=http_//dev.mysql.com/doc/refman/5.1/en/se-db2.html_amp_usg=AFQjCNEI0fPrDd9d5U8azYUe4o_KcsauLQ&amp;referer=');">http://dev.mysql.com/doc/refman/5.1/en/se-db2.html</a></span></li>
<li><span style="font-family: Courier,Monospaced; font-size: x-small;">&#8230;ane some more&#8230;?<br />
</span></li>
</ul>
<p>A simple comprehension will be the first thing we&#8217;ll do for this project&#8230; Later on we&#8217;ll do some simulated &#8220;real life&#8221; tests using <strong>JMeter</strong>. It&#8217;s possible that we&#8217;ll write some app based on this database later on &#8211; but that&#8217;s somehow far off at the moment. That said, I&#8217;m really happy to be involved in an interesting and <strong>open</strong> (it&#8217;s all open source &amp; free software after all) topic.</p>
<p>Tomorrow I&#8217;m going to the university to setup our very own (awesome ;-)) <span style="font-family: Courier,Monospaced;">HP ProLiant DL380</span> server. It has 6 hard drives, thus it should be very interesting to run HEAVY database LOAD tests &#8211; can&#8217;t wait. We&#8217;ll install CentOS 5.4 and think about it&#8217;s future then&#8230;<br />
<span style="text-align:center"><br />
<a href="/wp-content/uploads/2009/12/kretos.png"><img class="alignnone" title="server" src="/wp-content/uploads/2009/12/kretos-300x151.png" alt="server" width="300" height="151" /></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/coding/363/aiming-higher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Almost) Automatically convert files into PDF</title>
		<link>http://www.blog.project13.pl/index.php/fun/285/almost-automatically-convert-files-into-pdf/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/285/almost-automatically-convert-files-into-pdf/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 00:56:55 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[terminal heroes]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=285</guid>
		<description><![CDATA[I&#8217;m learning Numerical Analysis right now and a friend of mine found some really nice PS files by dr Marian Bubek ( http://www.icsr.agh.edu.pl/~mownit/mownit.html ). I was really happy to see some *.ps but some people from my fellow students started complaining that they&#8217;d rather have pdf&#8217;s and not ghostscript files (who knows why they&#8217;d do..?). [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m learning Numerical Analysis right now and a friend of mine found some really nice PS files by dr Marian Bubek ( <a href="http://www.icsr.agh.edu.pl/~mownit/mownit.html" onclick="urchinTracker('/outgoing/www.icsr.agh.edu.pl/_mownit/mownit.html?referer=');">http://www.icsr.agh.edu.pl/~mownit/mownit.html</a> ). I was really happy to see some *.ps but some people from my fellow students started complaining that they&#8217;d rather have pdf&#8217;s and not ghostscript files <em>(who knows why they&#8217;d do..?)</em>. Anyways, they all had &#8220;manual&#8221; repetitious methods for converting the files &#8211; even uploading to somewebsite to have them converted over there &#8220;in the cloud&#8221;&#8230; I though of a slightly quicker and more efficient way, here it is, hope you&#8217;ll like it. Ah, there is One &#8220;non standard&#8221; requirement for this to work, you have to install <strong>cups-pdf</strong> :-)</p>
<div class="geshi no bash">
<div class="head">wget http://www.icsr.agh.edu.pl/~mownit/mownit.html -r &#8211;level 1 -A.ps &#8211;cut-dirs 4</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw2">mv</span> www.icsr.agh.edu.pl<span class="sy0">/*</span> .</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> -rf www.icsr.agh.edu.pl<span class="sy0">/</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">for</span> <span class="kw2">file</span> <span class="kw1">in</span> `<span class="kw2">dir</span> -f <span class="sy0">*</span>` ; <span class="kw1">do</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="kw2">lpr</span> -P <span class="st0">&#39;cups-PDF&#39;</span> <span class="re1">$file</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="kw3">echo</span> <span class="st0">&quot;press enter when cups is done printing&#8230;&quot;</span> <span class="co0">#yeah, i got lazy here, one could watch lpq for changes etc.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="kw2">read</span> oczekiwanie;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;<span class="kw2">mv</span> <span class="sy0">/</span>home<span class="sy0">/</span>ktoso<span class="sy0">/</span>Pulpit<span class="sy0">/</span>cups-pdf<span class="sy0">/</span>template.pdf .<span class="sy0">/</span><span class="re1">$file</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">done</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># ________________ </span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#&lt; Happy hacking! &gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;- </span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &nbsp; &nbsp; &nbsp;\ &nbsp; ^__^</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &nbsp; &nbsp; &nbsp; \ &nbsp;(oo)\_______</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(__)\ &nbsp; &nbsp; &nbsp; )\/\</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;||&#8212;-w |</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|| &nbsp; &nbsp; ||</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/285/almost-automatically-convert-files-into-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWK and multiple lines from shell command</title>
		<link>http://www.blog.project13.pl/index.php/coding/274/awk-and-multiple-lines-from-shell-command/</link>
		<comments>http://www.blog.project13.pl/index.php/coding/274/awk-and-multiple-lines-from-shell-command/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 15:11:16 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=274</guid>
		<description><![CDATA[Let&#8217;s say you want to read the ps output inside an AWK script, it&#8217;s not so simple since system returns an exit code and not the string you want &#8211; it&#8217;s being sent to stdout, here is a simple trick to read multiple lines from a shell command inside awk: awk 'BEGIN{while ("ps aux" &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you want to read the ps output inside an AWK script, it&#8217;s not so simple since system returns an exit code and not the string you want &#8211; it&#8217;s being sent to stdout, here is a simple trick to read multiple lines from a shell command inside awk:<br />
<code>awk 'BEGIN{while ("ps aux" | getline){ print "test " $1 " test"}}' /dev/null | more</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/coding/274/awk-and-multiple-lines-from-shell-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m an RHCT &#8211; yay!</title>
		<link>http://www.blog.project13.pl/index.php/project13/261/im-an-rhct-now/</link>
		<comments>http://www.blog.project13.pl/index.php/project13/261/im-an-rhct-now/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 19:54:53 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[Project13]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[skills]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=261</guid>
		<description><![CDATA[Yes, my GNU/Linux skills have been certified and now I can call myself a Red Hat Certified Technician as I&#8217;ve today passed the RH-202 exam with a 100% score &#8211; which leads me to the idea that I should have tried to tackle RHCE and not RHCT &#8211; I&#8217;ll do ir eventually someday I guess [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blog.project13.pl/wp-content/uploads/2009/10/red-hat-logo-05071.png"><img class="size-full wp-image-262 alignleft" title="red-hat-logo-05071" src="http://www.blog.project13.pl/wp-content/uploads/2009/10/red-hat-logo-05071.png" alt="red-hat-logo-05071" width="120" height="120" /></a>Yes, my GNU/Linux skills have been certified and now I can call myself a <strong>Red Hat Certified Technician</strong> as I&#8217;ve today passed the RH-202 exam with a 100% score &#8211; which leads me to the idea that I should have tried to tackle <strong>RHCE</strong> and not <strong>RHCT</strong> &#8211; I&#8217;ll do ir eventually someday I guess anyways.</p>
<p>Happy Hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/project13/261/im-an-rhct-now/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blender &#8211; 04 &#8211; Simple Present</title>
		<link>http://www.blog.project13.pl/index.php/fun/248/blender-04-simple-present/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/248/blender-04-simple-present/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 00:47:34 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[blender]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=248</guid>
		<description><![CDATA[With this simple box i&#8217;ve learned a little about the &#8220;wave&#8221; property in blender. This, a little subsurv and smooth subdivision can actually be quite OK for creating a simple ribbon like the one below:The final render looked like this:]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">With this simple box i&#8217;ve learned a little about the &#8220;wave&#8221; property in blender. This, a little subsurv and smooth subdivision can actually be quite OK for creating a simple ribbon like the one below:<a href="http://www.blog.project13.pl/wp-content/uploads/2009/09/zrzut_ekranu-11.png"><img class="aligncenter size-medium wp-image-249" title="Ribbon" src="http://www.blog.project13.pl/wp-content/uploads/2009/09/zrzut_ekranu-11-300x187.png" alt="Ribbon" width="300" height="187" /></a><a href="http://www.blog.project13.pl/wp-content/uploads/2009/09/zrzut_ekranu-13.png"><img class="aligncenter size-medium wp-image-251" title="Ribbon &quot;how&quot;" src="http://www.blog.project13.pl/wp-content/uploads/2009/09/zrzut_ekranu-13-300x187.png" alt="Ribbon &quot;how&quot;" width="300" height="187" /></a>The final render looked like this:<a href="http://www.blog.project13.pl/wp-content/uploads/2009/09/denae_present.jpg"><img class="aligncenter size-medium wp-image-254" title="denae_present" src="http://www.blog.project13.pl/wp-content/uploads/2009/09/denae_present-300x225.jpg" alt="denae_present" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/248/blender-04-simple-present/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim Hacking &#8211; 1 &#8211; vis</title>
		<link>http://www.blog.project13.pl/index.php/coding/233/vim-hacking-1-vis/</link>
		<comments>http://www.blog.project13.pl/index.php/coding/233/vim-hacking-1-vis/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 18:33:42 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[terminal heroes]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=233</guid>
		<description><![CDATA[Vim is a really amazing text editor (though I&#8217;d like to learn Emacs too soon&#8230; :-)) and it can be easily expanded to be even more useful. One super cool extension I found is: vis -- it allows powerful sed-like line modification (you could use sed from inside vim, but that&#8217;s not really &#8220;handy&#8221;). Vis [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Vi</strong>m is a really amazing text editor (though I&#8217;d like to learn <strong>Emacs</strong> too soon&#8230; :-)) and it can be easily expanded to be even more useful. One super cool extension I found is: <strong>vis</strong> -- it allows powerful sed-like line modification<em> (you could use sed from inside vim, but that&#8217;s not really &#8220;handy&#8221;)</em>. Vis is a vim plugin, and as such, it has to be installed before use, here is how to do this (asuming you have <strong>vim 7.0+</strong>):<br />
<code>echo 'read some about the plugin at:  http://vim.sourceforge.net/scripts/script.php?script_id=1195'<br />
vim /home/script/location/vis.vba<br />
:source %</code><br />
With this done you can doo stuff like in this video i did:</p>
<p style="text-align:center;"><span class="youtube">
<object width="480" height="360">
<param name="movie" value="http://www.youtube.com/v/MzxEt9sK5eM&amp;color1=3a3a3a&amp;color2=999999&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0?rel=1&amp;hd=1" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube.com/v/MzxEt9sK5eM&amp;color1=3a3a3a&amp;color2=999999&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0?rel=1&amp;hd=1" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="360"></embed>
<param name="wmode" value="transparent" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=MzxEt9sK5eM&fmt=18" onclick="urchinTracker('/outgoing/www.youtube.com/watch?v=MzxEt9sK5eM_fmt=18&amp;referer=');"><img src="http://img.youtube.com/vi/MzxEt9sK5eM/default.jpg" width="130" height="97" border=0></a></p></p>
<p><a href="http://www.youtube.com/watch?v=MzxEt9sK5eM" onclick="urchinTracker('/outgoing/www.youtube.com/watch?v=MzxEt9sK5eM&amp;referer=');">Watch it on youtube</a> to see useful <strong>annotations</strong>! If your still new to vim you might want to start with simple editing as shown here: <a href="http://www.youtube.com/watch?v=71YTkxUNwmg&amp;NR=1" onclick="urchinTracker('/outgoing/www.youtube.com/watch?v=71YTkxUNwmg_amp_NR=1&amp;referer=');">http://www.youtube.com/watch?v=71YTkxUNwmg&amp;NR=1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/coding/233/vim-hacking-1-vis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal Heroes &#8211; 6 &#8211; Track X events</title>
		<link>http://www.blog.project13.pl/index.php/fun/236/terminal-heroes-6-track-x-events/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/236/terminal-heroes-6-track-x-events/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 22:53:33 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[terminal heroes]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line fu]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=236</guid>
		<description><![CDATA[Another Command Line Fu oneliner I&#8217;ve sumbited today: #show X window events in chosen window $ xev -id `xwininfo &#124; grep &#39;Window id&#39; &#124; awk &#39;{print $4}&#39;` EnterNotify event, serial 13, synthetic NO, window 0&#215;6400053, &#160; &#160; root 0x13c, subw 0x640005b, time 42431610, &#40;367,0&#41;, root:&#40;369,63&#41;, &#160; &#160; mode NotifyNormal, detail NotifyVirtual, same_screen YES, &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Another Command Line Fu oneliner I&#8217;ve sumbited today:</p>
<div class="geshi no bash">
<div class="head">#show X window events in chosen window</div>
<ol>
<li class="li1">
<div class="de1">$ xev -<span class="kw2">id</span> `xwininfo <span class="sy0">|</span> <span class="kw2">grep</span> <span class="st0">&#39;Window id&#39;</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{print $4}&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1">EnterNotify event, serial <span class="nu0">13</span>, synthetic NO, window 0&#215;6400053,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; root 0x13c, subw 0x640005b, <span class="kw1">time</span> <span class="nu0">42431610</span>, <span class="br0">&#40;</span><span class="nu0">367</span>,<span class="nu0">0</span><span class="br0">&#41;</span>, root:<span class="br0">&#40;</span><span class="nu0">369</span>,<span class="nu0">63</span><span class="br0">&#41;</span>,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; mode NotifyNormal, detail NotifyVirtual, same_screen YES,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; focus NO, state <span class="nu0">16</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">MotionNotify event, serial <span class="nu0">13</span>, synthetic NO, window 0&#215;6400053,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; root 0x13c, subw 0x640005b, <span class="kw1">time</span> <span class="nu0">42431610</span>, <span class="br0">&#40;</span><span class="nu0">367</span>,<span class="nu0">0</span><span class="br0">&#41;</span>, root:<span class="br0">&#40;</span><span class="nu0">369</span>,<span class="nu0">63</span><span class="br0">&#41;</span>,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; state 0&#215;10, is_hint <span class="nu0">0</span>, same_screen YES</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">MotionNotify event, serial <span class="nu0">13</span>, synthetic NO, window 0&#215;6400053,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; root 0x13c, subw 0x640005b, <span class="kw1">time</span> <span class="nu0">42431618</span>, <span class="br0">&#40;</span><span class="nu0">366</span>,<span class="nu0">0</span><span class="br0">&#41;</span>, root:<span class="br0">&#40;</span><span class="nu0">368</span>,<span class="nu0">63</span><span class="br0">&#41;</span>,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; state 0&#215;10, is_hint <span class="nu0">0</span>, same_screen YES</div>
</li>
</ol>
</div>
<p>After executing this, click on a window you want to track X Window events in. You could &#8220;read&#8221; this command like this: &#8220;<em>xev will track events in the window with the following -id, which we get by greping window information obtained by xwininfo</em>&#8221; :-)</p>
<p>Ok, but why did I need such weird information? Well, I wanted to make a simple video showing vis, a vim plugin etc. But as it is always in vim, keypresses are essential &#8211; so I wanted to &#8220;show what i type&#8221; bigger :-) I&#8217;ll post it really soon btw&#8230; :-)</p>
<p>The command was <a href="http://www.commandlinefu.com/commands/view/3547/track-x-window-events-in-chosen-window#comment" onclick="urchinTracker('/outgoing/www.commandlinefu.com/commands/view/3547/track-x-window-events-in-chosen-window_comment?referer=');">posted on commandlinefu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/236/terminal-heroes-6-track-x-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal Heroes &#8211; 5 &#8211; List internet active apps</title>
		<link>http://www.blog.project13.pl/index.php/fun/224/terminal-heroes-5-list-internet-active-apps/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/224/terminal-heroes-5-list-internet-active-apps/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 14:59:01 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[terminal heroes]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=224</guid>
		<description><![CDATA[A simple yet usefull command-line-fu I made up: #list all internet active apps $ netstat -lantp &#124; grep -i establ &#124; awk -F/ &#39;{print $2}&#39; &#124; sort &#124; uniq &#160; firefox java pidgin thunderbird-b Lookup this command at CommandLineFu Thanks to HarimaKenji for fixing a little issue with this command. &#8212;update&#8212; CommandLineFu user submited a [...]]]></description>
			<content:encoded><![CDATA[<p>A simple yet usefull command-line-fu I made up:</p>
<div class="geshi no bash">
<div class="head">#list all internet active apps</div>
<ol>
<li class="li1">
<div class="de1">$ <span class="kw2">netstat</span> -lantp <span class="sy0">|</span> <span class="kw2">grep</span> -i establ <span class="sy0">|</span> <span class="kw2">awk</span> -F<span class="sy0">/</span> <span class="st0">&#39;{print $2}&#39;</span> <span class="sy0">|</span> <span class="kw2">sort</span> <span class="sy0">|</span> <span class="kw2">uniq</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">firefox</div>
</li>
<li class="li1">
<div class="de1">java</div>
</li>
<li class="li1">
<div class="de1">pidgin</div>
</li>
<li class="li1">
<div class="de1">thunderbird-b</div>
</li>
</ol>
</div>
<p><a href="http://www.commandlinefu.com/commands/view/3537/show-apps-that-use-internet-connection-at-the-moment." onclick="urchinTracker('/outgoing/www.commandlinefu.com/commands/view/3537/show-apps-that-use-internet-connection-at-the-moment.?referer=');">Lookup this command at CommandLineFu</a><br />
<em>Thanks to <a href="http://www.commandlinefu.com/commands/by/HarimaKenji" onclick="urchinTracker('/outgoing/www.commandlinefu.com/commands/by/HarimaKenji?referer=');">HarimaKenji</a> for fixing a little issue with this command.</em><br />
&#8212;update&#8212;<br />
CommandLineFu user submited a super short version for this:<code>lsof -P -i -n</code><em>ComandLineFu ownz!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/224/terminal-heroes-5-list-internet-active-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

