<?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; linux</title>
	<atom:link href="http://www.blog.project13.pl/index.php/tag/linux/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>[release] Sidewinder X6 MacroKeys on GNU/Linux</title>
		<link>http://www.blog.project13.pl/index.php/fun/1333/1333/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/1333/1333/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 22:30:03 +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[keystroke]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[sidewinder]]></category>
		<category><![CDATA[sidewinder x6 linux]]></category>
		<category><![CDATA[xdotool]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=1333</guid>
		<description><![CDATA[I&#8217;ve released my keyboard event mapper for the Microsoft Sidewinder X6 in an quite usable state right now. Take a look at sidewinder-x6-linux-macro-key-events on github. Here&#8217;s a quick description what it does: As the Sidewinder is an Microsoft keyboard, it obviously does all it can to not work at it&#8217;s full potential on GNU/Linux systems [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released my keyboard event mapper for the <a href="http://www.microsoft.com/poland/hardware/gaming/productdetails.aspx?pid=102" onclick="urchinTracker('/outgoing/www.microsoft.com/poland/hardware/gaming/productdetails.aspx?pid=102&amp;referer=');">Microsoft Sidewinder X6</a> in an quite usable state right now. Take a look at <a href="https://github.com/ktoso/sidewinder-x6-linux-macro-key-events" onclick="urchinTracker('/outgoing/github.com/ktoso/sidewinder-x6-linux-macro-key-events?referer=');">sidewinder-x6-linux-macro-key-events</a> on github. Here&#8217;s a quick description what it does:</p>
<p><a href="http://www.blog.project13.pl/wp-content/uploads/2011/07/sidewinder-x6-macro-keys.jpg"><img class="aligncenter size-full wp-image-1334" title="sidewinder-x6-macro-keys" src="http://www.blog.project13.pl/wp-content/uploads/2011/07/sidewinder-x6-macro-keys.jpg" alt="" width="500" height="375" /></a>As the Sidewinder is an Microsoft keyboard, it obviously does all it can to not work at it&#8217;s full potential on GNU/Linux systems ;-) What my script does is watch for usb events, using <strong>usbmon</strong>, then it filters it searching for events from this keyboard, and then it filters out the discrete keystrokes for them. When such keystroke is found, we launch an bash script located in <strong>actions/S##.sh </strong>which can then do anything you want it to do &#8211; fire up intellij, or send keystrokes. I&#8217;d advice the second idea &#8211; use <a href="http://www.semicomplete.com/projects/xdotool/" onclick="urchinTracker('/outgoing/www.semicomplete.com/projects/xdotool/?referer=');">xdotool</a> to send keyboard events, which you then map in Intellij or Netbeans or KDE/GNOME. Such keycode send looks like this:</p>
<p><code>xdotool key --clearmodifiers ctrl+shift+F1</code></p>
<p>That&#8217;s about it. I also wanted to thank some guys on github, who found my project and it really helped them out :-) Just to cite my fav email:</p>
<blockquote><p>
[...]<br />
I&#8217;m amazed to see that somebody made this keyboard work under linux, I was beggining to lose hope. Great job!<br />
[...]
</p></blockquote>
<p>Thanks for the feedback, it&#8217;s what keeps me going with opensourceing projects like this :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/1333/1333/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>G73 keyboard backlight scripts</title>
		<link>http://www.blog.project13.pl/index.php/fun/1163/g73-keayboard-backlight-scripts/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/1163/g73-keayboard-backlight-scripts/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 19:09:42 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[terminal heroes]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[fsf]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[notebook]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=1163</guid>
		<description><![CDATA[I&#8217;ve upgraded my desktop and laptop last week. By &#8220;and&#8221; I mean that I&#8217;ve bought an desktop replacement class notebook &#8211; an Asus G73 series. Amongst many nice parts it has I&#8217;m very happy about the harddrives &#8211; Seagate Momentus XT, click the link to see an very interesting benchmark of it. Anyways, that&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve upgraded my desktop and laptop last week. By &#8220;and&#8221; I mean that I&#8217;ve bought an desktop replacement class notebook &#8211; an <strong>Asus G73 </strong>series. Amongst many nice parts it has I&#8217;m very happy about the harddrives &#8211; <a href="http://www.tomshardware.com/reviews/seagate-momentus-xt-hybrid-hard-drive-ssd,2638.html" onclick="urchinTracker('/outgoing/www.tomshardware.com/reviews/seagate-momentus-xt-hybrid-hard-drive-ssd_2638.html?referer=');">Seagate Momentus XT</a>, click the link to see an very interesting benchmark of it. Anyways, that&#8217;s not what this post should be about.</p>
<p>The G73 has an backlit keyboard, which may come in handy while late night coding without lights on as I like to code sometimes. (I&#8217;m using a X6 Sidewinder, even with this Notebook so it&#8217;s not like it&#8217;s keyboard matters to me most of the time ;-)) As usual with such &#8220;super cool addons&#8221; the funtion keys regulating the keyboard backlight seemed to only work on Windows &#8211; which I&#8217;m only using for gaming (but rarely) and testing if the software I happened to write runs ok on it. Anyways, turns out that the keyboard does really well integrate with linux, and you just need a few simple commands to use it, I&#8217;ve made them available on github :-)</p>
<p><a href="https://github.com/ktoso/g73-keyboard-backlight-sh/" onclick="urchinTracker('/outgoing/github.com/ktoso/g73-keyboard-backlight-sh/?referer=');">https://github.com/ktoso/<strong>g73-keyboard-backlight-sh</strong></a> &lt;- Go here to check it out :-)</p>
<div class="geshi no markdown">
<div class="head">Asus G73 Keyboard Backlight GNU/Linux Scripts</div>
<ol>
<li class="li1">
<div class="de1">=============================================
</div>
</li>
<li class="li1">
<div class="de1">To enable the `Fn + F3` and `Fn + F4` shortcuts to work under linux and really
</div>
</li>
<li class="li1">
<div class="de1">manipulate the backlight brighntess on your *Asus G73* series notebook, follow theese simple steps:
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">1. Clone this repository to your home directory (or wherever you want to, I&#39;ll do this example for ~/ for simplicity)
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;cd
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;git clone git://github.com/ktoso/g73-keyboard-backlight-sh.git g73
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;
</div>
</li>
<li class="li1">
<div class="de1">2. Make sure all scripts are marked executable:
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;cd g73
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;chmod +x *.sh
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">3. Take a look at these scripts to make sure you trust them, why? Because they&#39;ll need root access,
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;without asking for the password. Now we&#39;ll add these scripts to allow `sudo`to run them without
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;asking for any password:
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;su -c &#39;visudo&#39; # or &#39;sudo visudo&#39; if you&#39;re a sudoer (on ubuntu etc)
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;There just add the following lines at the end of this file (or similar, with the script names etc).
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;Of course, replace `ktoso` and `/home/ktoso/` with your *username* and *your home directory*.
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;## allow running keyboard backlight scripts
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;ktoso ALL=(ALL) NOPASSWD:/home/ktoso/g73/*
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">4. Now all that&#39;s left is to setup the key bindings for the scripts. If you&#39;re on KDE4, just go to
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;*System Settings -&amp;gt; Shortcuts and Gestures -&amp;gt; Custom Shortcuts* and *edit -&amp;gt; import&#8230;* the file **~/g73/g73_keyboard.khotkeys**
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; which contains ready keybindings for these scripts.
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Now you may use `Fn + F3` to make the keyboard backlight shine **less**, and the `Fn + F4` combination to make it shine **more**.</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/1163/g73-keayboard-backlight-scripts/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>[song] Every OS sucks!</title>
		<link>http://www.blog.project13.pl/index.php/fun/774/song-every-os-sucks/</link>
		<comments>http://www.blog.project13.pl/index.php/fun/774/song-every-os-sucks/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 23:01:20 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[freedom]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=774</guid>
		<description><![CDATA[An very amazing and beautiful song I just had to share with you guys! It&#8217;s by http://www.deadtroll.com/ so feel free to get over to their site if you liked it :-) It&#8217;s my second favourite GeekSong &#8211; I&#8217;ll link my favourite next week (by VoidMain and an special guest!)&#8230; :-) Download the MP3 file: three_dead_trolls_in_a_baggie-every_os_sucks.mp3 [...]]]></description>
			<content:encoded><![CDATA[<p>An very amazing and beautiful song I just had to share with you guys! It&#8217;s by <a href="http://www.deadtroll.com/" onclick="urchinTracker('/outgoing/www.deadtroll.com/?referer=');">http://www.deadtroll.com/</a> so feel free to get over to their site if you liked it :-) It&#8217;s my second favourite GeekSong &#8211; I&#8217;ll link my favourite next week (by VoidMain and an special guest!)&#8230; :-)</p>
<p>Download the MP3 file: <a href="http://www.up.project13.pl/files/three_dead_trolls_in_a_baggie-every_os_sucks.mp3" onclick="urchinTracker('/outgoing/www.up.project13.pl/files/three_dead_trolls_in_a_baggie-every_os_sucks.mp3?referer=');">three_dead_trolls_in_a_baggie-every_os_sucks.mp3</a></p>
<p>And here are the lyrics:</p>
<p><!-- p, li { white-space: pre-wrap; } --></p>
<blockquote><p><!--StartFragment-->(spoken introduction)</p>
<p>You see, I come from a time in the nineteen-hundred-and-seventies when computers were used for two things &#8211; to either go to the moon, or play Pong&#8230; nothing in between. Y&#8217;see, you didn&#8217;t need a fancy operating system to play Pong, and the men who went to the moon&#8211;God Bless &#8216;em&#8211;did it with no mouse, and a plain text-only black-and-white screen, and 32 kilobytes of RAM.</p>
<p>But then &#8217;round &#8217;bout the late 70&#8242;s, home computers started to do a little more than play Pong&#8230; very little more. Like computers started to play non-Pong-like games, and balance checkbooks, and why&#8230; you could play Zaxxon on your Apple II, or&#8230; write a book! All with a computer that had 32 kilobytes of RAM! It was good enough to go to the moon, it was good enough for you.</p>
<p>It was a golden time. A time before Windows, a time before mouses, a time before the internet and bloatware, and a time&#8230; before every OS sucked.</p>
<p>*sigh*</p>
<p>(singing)</p>
<p>Well, way back in the olden times,<br />
my computer worked for me.<br />
I&#8217;d laugh and play, all night and day,<br />
on Zork I, II and III.</p>
<p>The Amiga, VIC-20 and the Sinclair II,<br />
The TRS 80 and the Apple II,<br />
they did what they were supposed to do,<br />
wasn&#8217;t much&#8230; but it was enough.</p>
<p>But then Xerox made a prototype,<br />
Steve Jobs came on the scene,<br />
read &#8220;Of Mice and Menus,&#8221; Windows, Icons<br />
a trash, and a bitmap screen.</p>
<p>Well Stevie said to Xerox,<br />
&#8220;Boys, turn your heads and cough.&#8221;<br />
And when no-one was looking,<br />
he ripped their interfaces off.</p>
<p>Stole every feature that he had seen,<br />
put it in a cute box with a tiny little screen,<br />
Mac OS 1 ran that machine,<br />
only cost five thousand bucks.</p>
<p>But it was slow, it was buggy,<br />
so they wrote it again,<br />
And now they&#8217;re up to OS 10,<br />
they&#8217;ll charge you for the Beta, then charge you again,<br />
but the Mac OS still sucks.</p>
<p>Every OS wastes your time,<br />
from the desktop to the lap,<br />
Everything since Apple Dos,<br />
Just a bunch of crap.</p>
<p>From Microsoft, to Macintosh,<br />
to Lin&#8211; line&#8211; lin&#8211; lie&#8230; nux,<br />
Every computer crashes,<br />
&#8217;cause every OS sucks.</p>
<p>Well then Microsoft jumped in the game,<br />
copied Apple&#8217;s interface, with an OS named,<br />
&#8220;Windows 3.1&#8243; &#8211; it was twice as lame,<br />
but the stock price rose and rose.</p>
<p>Then Windows 95, then 98,<br />
man solitaire never ran so great,<br />
and every single version came out late,<br />
but I guess that&#8217;s the way it goes.</p>
<p>But that bloatware&#8217;ll crash and delete your work,<br />
NT, ME, man, none of &#8216;em work.<br />
Bill Gates may be richer than Captain Kirk,<br />
but the Windows OS blows!</p>
<p>And sucks!</p>
<p>At the same time!</p>
<p>I&#8217;d trade it in, yeah right&#8230; for what?<br />
It&#8217;s top of the line from the Compuhut.<br />
The fridge, stove and toaster, never crash on me,<br />
I should be able to get online, without a PHD.</p>
<p>My phone doesn&#8217;t take a week to boot it,<br />
my TV doesn&#8217;t crash when I mute it,<br />
I miss ASCII text, and my floppy drive,<br />
I wish VIC-20 was still alive&#8230;</p>
<p>But it ain&#8217;t the hardware, man.</p>
<p>It&#8217;s just that every OS sucks&#8230; and blows.</p>
<p>Now there&#8217;s lih-nux or lie-nux,<br />
I don&#8217;t know how you say it,<br />
or how you install it, or use it, or play it,<br />
or where you download it, or what programs run,<br />
but lih-nux, or lie-nux, don&#8217;t look like much fun.</p>
<p>However you say it, it&#8217;s getting great press,<br />
though how it survives is anyone&#8217;s guess,<br />
If you ask me, it&#8217;s a great big mess,<br />
for elitist, nerdy shmucks.</p>
<p>&#8220;It&#8217;s free!&#8221; they say, if you can get it to run,<br />
the Geeks say, &#8220;Hey, that&#8217;s half the fun!&#8221;<br />
Yeah, but I got a girlfriend, and things to get done,<br />
the Linux OS SUCKS.<br />
(I&#8217;m sorry to say it, but it does.)</p>
<p>Every OS wastes your time,<br />
from the desktop to the lap,<br />
Everything since the abacus,<br />
Just a bunch of crap.</p>
<p>From Microsoft, to Macintosh,<br />
to lin&#8211; line&#8211; lin&#8211; lie&#8230; nux.<br />
Every computer crashes,<br />
&#8217;cause every OS sucks.</p>
<p>Every computer crashes&#8230; &#8217;cause every OS sucks!<!--EndFragment--></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/fun/774/song-every-os-sucks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.up.project13.pl/files/three_dead_trolls_in_a_baggie-every_os_sucks.mp3" length="4179968" type="audio/mpeg" />
		</item>
		<item>
		<title>Kill only Tomcat</title>
		<link>http://www.blog.project13.pl/index.php/coding/422/easy-way-to-kill-tomcat/</link>
		<comments>http://www.blog.project13.pl/index.php/coding/422/easy-way-to-kill-tomcat/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 22:14:47 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[jee]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=422</guid>
		<description><![CDATA[There is sometimes the need to kill some JVM, I usually use &#8220;killall java&#8221; and that works fine as long as that&#8217;s in fact what I want &#8211; kill ALL. But let&#8217;s say i just want to kill Tomcat and not my IDE? The below method works quite well in such an situation: [ktoso@homunculus ~]$ [...]]]></description>
			<content:encoded><![CDATA[<p>There is sometimes the need to kill some JVM, I usually use &#8220;killall java&#8221; and that works fine as long as that&#8217;s in fact what I want &#8211; kill ALL. But let&#8217;s say i just want to kill Tomcat and not my IDE? The below method works quite well in such an situation:</p>
<div class="geshi no bash">
<div class="head">[ktoso@homunculus ~]$ sudo netstat -lpn | grep 8080</div>
<ol>
<li class="li1">
<div class="de1">tcp &nbsp; &nbsp; &nbsp; &nbsp;<span class="nu0">0</span> &nbsp; &nbsp; &nbsp;<span class="nu0">0</span> :::<span class="nu0">8080</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :::<span class="sy0">*</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LISTEN &nbsp; &nbsp; &nbsp;<span class="nu0">18525</span><span class="sy0">/</span>java</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#91;</span>ktoso<span class="sy0">@</span>homunculus ~<span class="br0">&#93;</span>$ <span class="kw2">kill</span> <span class="nu0">18525</span> <span class="co0"># you might need to add -9 here (SIGKILL)</span></div>
</li>
</ol>
</div>
<p>A quickly hacked up version of an simple shell script to kill this tomcat could look like (I still suck at awk&#8230;):</p>
<div class="geshi no bash">
<div class="head">#!/bin/sh</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw2">kill</span> <span class="nu0">-9</span> `<span class="kw2">netstat</span> -lpn <span class="sy0">|</span> <span class="kw2">grep</span> <span class="nu0">8080</span> <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{print $7}&#39;</span> <span class="sy0">|</span> <span class="kw2">awk</span> -F<span class="sy0">/</span> <span class="st0">&#39;{print $1}&#39;</span>`</div>
</li>
</ol>
</div>
<p>The above obviously sux, as we&#8217;re using two awk commands after another&#8230; Ans also in the above examples, I&#8217;ve assumed that tomcat is listening on 8080, this may not always be the case, since with mod_proxy_ajp, there is no need fot it to listen on it&#8217;s default port and just the one to communicate by AJP. Let&#8217;s use it&#8217;s name to find it&#8217;s PID, we&#8217;ll use ps and grep and awk &#8211; life is simple with them. :-)<br />
Here&#8217;s the final version of this command: </p>
<div class="geshi no bash">
<div class="head">#!/bin/sh</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw2">kill</span> <span class="nu0">-9</span> `<span class="kw2">ps</span> aux <span class="sy0">|</span> <span class="kw2">grep</span> catalina <span class="sy0">|</span> <span class="kw2">awk</span> <span class="st0">&#39;{print $2}&#39;</span>`</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/coding/422/easy-way-to-kill-tomcat/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>Fixing Blender problems on IntelGMAX4500</title>
		<link>http://www.blog.project13.pl/index.php/coding/269/fixing-blender-problems-on-intelgmax4500/</link>
		<comments>http://www.blog.project13.pl/index.php/coding/269/fixing-blender-problems-on-intelgmax4500/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 19:30:07 +0000</pubDate>
		<dc:creator>Ktoso</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[blender]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.blog.project13.pl/?p=269</guid>
		<description><![CDATA[I&#8217;ve recently bought a new laptop, a 15.6&#8221; HP Probook, that replaced my netbook Asus EEE 900 (needed some bigger hardware to work on &#8220;on the move&#8221;). One problem I encountered was blender not displaying correctly if I&#8217;d expand any dropdown menu etc. The fix is very simple yet powerfull, just set the following: LIBGL_ALWAYS_SOFTWARE=1 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently bought a new laptop, a 15.6&#8221; HP Probook, that replaced my netbook Asus EEE 900 (needed some bigger hardware to work on &#8220;on the move&#8221;). One problem I encountered was blender not displaying correctly if I&#8217;d expand any dropdown menu etc. The fix is very simple yet powerfull, just set the following:</p>
<p><code>LIBGL_ALWAYS_SOFTWARE=1 blender</code></p>
<p>This will launch blender and render it&#8217;s interface in software mode &#8211; runs perfectly, and no slowdowns could be detected by me so far :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.project13.pl/index.php/coding/269/fixing-blender-problems-on-intelgmax4500/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>
	</channel>
</rss>

