<?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>selfjungle</title>
	<atom:link href="http://matetelki.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://matetelki.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 06 Dec 2011 19:57:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>bash case-insensitive filename tab-competion</title>
		<link>http://matetelki.com/blog/?p=376</link>
		<comments>http://matetelki.com/blog/?p=376#comments</comments>
		<pubDate>Tue, 06 Dec 2011 19:57:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=376</guid>
		<description><![CDATA[Edit /etc/inputrc: add this line: set completion-ignore-case on]]></description>
			<content:encoded><![CDATA[<p>Edit <code>/etc/inputrc</code>:</p>
<p>add this line:</p>
<pre class="brush:[bash]">
set completion-ignore-case on
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=376</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shortcuts to find and grep</title>
		<link>http://matetelki.com/blog/?p=372</link>
		<comments>http://matetelki.com/blog/?p=372#comments</comments>
		<pubDate>Mon, 05 Dec 2011 19:08:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=372</guid>
		<description><![CDATA[Writing these 2 line way too much a day. Edit ~.bashrc: function gr { grep -Hrni $1 * } function f { find . -iname *$1* &#124; grep -i $1 }]]></description>
			<content:encoded><![CDATA[<p>Writing these 2 line way too much a day.</p>
<p>Edit <code>~.bashrc</code>:</p>
<pre class="brush:[bash]">
function gr {
grep -Hrni $1 *
}

function f {
find . -iname *$1* | grep -i $1
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=372</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>colorful man pages</title>
		<link>http://matetelki.com/blog/?p=367</link>
		<comments>http://matetelki.com/blog/?p=367#comments</comments>
		<pubDate>Fri, 18 Nov 2011 13:29:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[app]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=367</guid>
		<description><![CDATA[Edit ~./Xdefaults: *VT100*colorULMode: on *VT100*colorUL: yellow !*VT100*italicULMode: on *VT100*underLine: off ! Uncomment this to use color for the bold attribute *VT100*colorBDMode: on *VT100*colorBD: cyan]]></description>
			<content:encoded><![CDATA[<p>Edit <code>~./Xdefaults</code>:</p>
<pre class="brush:[bash]">
*VT100*colorULMode: on
*VT100*colorUL: yellow
!*VT100*italicULMode: on
*VT100*underLine: off
! Uncomment this to use color for the bold attribute
*VT100*colorBDMode: on
*VT100*colorBD: cyan
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=367</wfw:commentRss>
		<slash:comments>123</slash:comments>
		</item>
		<item>
		<title>merge two pdf documents</title>
		<link>http://matetelki.com/blog/?p=352</link>
		<comments>http://matetelki.com/blog/?p=352#comments</comments>
		<pubDate>Tue, 18 Oct 2011 15:02:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[app]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=352</guid>
		<description><![CDATA[I had to sign a document, which was basically: Print the last, 5th page of the pdf. Sign the sheet. Scan it as a one-paged pdf. Change the 5th page from the pdf with the new one. Again, the solution was pdfjam, which did the job of merging the first 4 page of the original [...]]]></description>
			<content:encoded><![CDATA[<p>I had to sign a document, which was basically:</p>
<ol>
<li>Print the last, 5th page of the pdf.</li>
<li>Sign the sheet.</li>
<li>Scan it as a one-paged pdf.</li>
<li>Change the 5th page from the pdf with the new one.</li>
</ol>
<p><a href="http://matetelki.com/blog/?p=225">Again</a>, the solution was <a href="http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/">pdfjam</a>, which did the job of merging the first 4 page of the original document with the new pdf.</p>
<pre class="brush:[bash]">
pdfjam original.pdf '1-4'  new.pdf '-' --outfile merged.pdf
</pre>
<p>I found nice pdfjam examples at the <a href="http://0x2a.at/blog/2011/02/pdf_manipulation_on_the_cli/">The Bit Brothers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=352</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>perl regexp &#8211; threat whole string as one line</title>
		<link>http://matetelki.com/blog/?p=348</link>
		<comments>http://matetelki.com/blog/?p=348#comments</comments>
		<pubDate>Tue, 19 Jul 2011 15:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=348</guid>
		<description><![CDATA[s - Treat the whole string as one line, so that even /./ will match a "newline" character. #!/usr/bin/perl my $multiline = "In the town where I was born,\n" . "Lived a man who sailed to sea,\n" . "And he told us of his life,\n" . "In the land of submarines."; if ($multiline =~ /born,.Lived/s) [...]]]></description>
			<content:encoded><![CDATA[<p><code>s</code> - Treat the whole string as one line, so that even <code>/./</code> will match a "newline" character. </p>
<pre class="brush:[perl]">
#!/usr/bin/perl

my $multiline =
  "In the town where I was born,\n" .
  "Lived a man who sailed to sea,\n" .
  "And he told us of his life,\n" .
  "In the land of submarines.";

if ($multiline =~ /born,.Lived/s) {
  print "found\n";   # found in deed
} else {
  print "not found\n";
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=348</wfw:commentRss>
		<slash:comments>77</slash:comments>
		</item>
		<item>
		<title>xterm colors</title>
		<link>http://matetelki.com/blog/?p=344</link>
		<comments>http://matetelki.com/blog/?p=344#comments</comments>
		<pubDate>Tue, 19 Jul 2011 14:57:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[app]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=344</guid>
		<description><![CDATA[The blue is too dark for my eyes, specially then it's used by colorgcc to highlight line numbers. ...and I just can't get angry with a cheerful orange cursorColor ~./Xdefaults: xterm*foreground: #ffffff xterm*background: #000000 xterm*cursorColor: orange xterm*color4: #526fcf]]></description>
			<content:encoded><![CDATA[<p>The blue is too dark for my eyes, specially then it's used by <code>colorgcc</code> to highlight line numbers.</p>
<p>...and I just can't get angry with a cheerful orange cursorColor <img src='http://matetelki.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><code>~./Xdefaults</code>:</p>
<pre class="brush:[bash]">
xterm*foreground:       #ffffff
xterm*background:       #000000
xterm*cursorColor:      orange
xterm*color4:           #526fcf
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=344</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
		<item>
		<title>find and remove files</title>
		<link>http://matetelki.com/blog/?p=338</link>
		<comments>http://matetelki.com/blog/?p=338#comments</comments>
		<pubDate>Tue, 19 Jul 2011 12:41:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=338</guid>
		<description><![CDATA[With rm and find: rm $(find . -name *.gcda) Or with the -exec paramter of find find . -name *.gcda -exec rm -rf {} \;]]></description>
			<content:encoded><![CDATA[<p>With <code>rm</code> and <code>find</code>:</p>
<pre class="brush:[bash]">
rm $(find . -name *.gcda)
</pre>
<p>Or with the <code>-exec</code> paramter of <code>find</code></p>
<pre class="brush:[bash]">
find . -name *.gcda -exec rm -rf {} \;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=338</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git tag</title>
		<link>http://matetelki.com/blog/?p=333</link>
		<comments>http://matetelki.com/blog/?p=333#comments</comments>
		<pubDate>Mon, 18 Jul 2011 08:37:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=333</guid>
		<description><![CDATA[Tag commit: git tag -m &#60;msg&#62; &#60;tagname&#62; &#60;commit&#62; Push tags (not done by default): git push --tags &#60;remote&#62; &#60;branch&#62; Fetch tags: git fetch --tags &#60;remote&#62; &#60;branch&#62; or git remote update &#60;remote&#62;]]></description>
			<content:encoded><![CDATA[<p>Tag commit:</p>
<pre class="brush:[bash]">
git tag -m &lt;msg&gt; &lt;tagname&gt; &lt;commit&gt;
</pre>
<p>Push tags (not done by default):</p>
<pre class="brush:[bash]">
git push --tags &lt;remote&gt; &lt;branch&gt;
</pre>
<p>Fetch tags:</p>
<pre class="brush:[bash]">
git fetch --tags &lt;remote&gt; &lt;branch&gt;
</pre>
<p>or</p>
<pre class="brush:[bash]">
git remote update &lt;remote&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=333</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>choose default answers at make oldconfig</title>
		<link>http://matetelki.com/blog/?p=330</link>
		<comments>http://matetelki.com/blog/?p=330#comments</comments>
		<pubDate>Mon, 18 Jul 2011 08:23:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=330</guid>
		<description><![CDATA[Linux command yes outputs parameter string. yes "" &#124; make oldconfig]]></description>
			<content:encoded><![CDATA[<p>Linux command <code>yes</code> outputs parameter string.</p>
<pre class="brush:bash">
yes "" | make oldconfig
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=330</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
		<item>
		<title>Stringizing Operator, Token concatenation</title>
		<link>http://matetelki.com/blog/?p=322</link>
		<comments>http://matetelki.com/blog/?p=322#comments</comments>
		<pubDate>Sat, 19 Mar 2011 11:36:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://matetelki.com/blog/?p=322</guid>
		<description><![CDATA[After many years, even C shows new stuff: Stringizing Operator #define QUOTEME(x) #x According to wiki: Although macro expansion does not occur within a quoted string, the text of the macro arguments can be quoted and treated as a string literal by using the "#" directive (also known as the "Stringizing Operator"). the code printf("%s\n", [...]]]></description>
			<content:encoded><![CDATA[<p>After many years, even C shows new stuff:</p>
<p><strong>Stringizing Operator</strong></p>
<pre class="brush:[c]">
#define QUOTEME(x) #x
</pre>
<p>According to <a href="http://en.wikipedia.org/wiki/C_preprocessor#Quoting_macro_arguments">wiki</a>:</p>
<blockquote><p>Although macro expansion does not occur within a quoted string, the text of the macro arguments can be quoted and treated as a string literal by using the "#" directive (also known as the "Stringizing Operator"). </p></blockquote>
<p>the code</p>
<pre class="brush:[c]">
printf("%s\n", QUOTEME(1+2));
</pre>
<p>will expand to</p>
<pre class="brush:[c]">
printf("%s\n", "1+2");
</pre>
<p><strong>Token concatenation</strong></p>
<blockquote><p>Token concatenation, also called token pasting, is one of the most subtle — and easy to abuse — features of the C macro preprocessor. Two arguments can be 'glued' together using ## preprocessor operator; this allows two tokens to be concatenated in the preprocessed code. This can be used to construct elaborate macros which act like a crude version of C++ templates.</p></blockquote>
<p>For instance:</p>
<pre class="brush:[c]">
#define MYCASE(item,id) \
case id: \
  item##_##id = id;\
break
</pre>
<p>the code</p>
<pre class="brush:[c]">
MYCASE(widget,23);
</pre>
<p>will expand to</p>
<pre class="brush:[c]">
widget_23 = 23;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matetelki.com/blog/?feed=rss2&#038;p=322</wfw:commentRss>
		<slash:comments>72</slash:comments>
		</item>
	</channel>
</rss>

