<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>.::ich-wars-nicht.ch::. &#187; Linux</title>
	<atom:link href="http://blog.ich-wars-nicht.ch/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ich-wars-nicht.ch</link>
	<description>yet another blog about technology, linux, and everyday life...</description>
	<lastBuildDate>Sun, 22 Jan 2012 22:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
		<item>
		<title>dwm config &#8211; volume, battery notification, unread e-mail count &amp; more</title>
		<link>http://blog.ich-wars-nicht.ch/2012/01/dwm-config-volume-battery-notification-unread-e-mail-count-more/</link>
		<comments>http://blog.ich-wars-nicht.ch/2012/01/dwm-config-volume-battery-notification-unread-e-mail-count-more/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 10:09:31 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[dwm]]></category>
		<category><![CDATA[window manager]]></category>
		<category><![CDATA[xinitrc]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3166</guid>
		<description><![CDATA[As many other dwm users do, I customized my .xinitrc file and the dwm status bar in to display some useful information. Here is my configuration: .xinitrc This is what my .xinitrc looks like: # set keyboard layout to Swiss German setxkbmap ch &#160; # Load .Xresources file xrdb -merge ~/.Xresources &#160; # Start xbindkeys [...]]]></description>
			<content:encoded><![CDATA[<p>As many other <a href="http://dwm.suckless.org/">dwm</a> users do, I customized my .xinitrc file and the dwm status bar in to display some useful information. Here is my configuration:</p>
<h3>.xinitrc</h3>
<p>This is what my .xinitrc looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># set keyboard layout to Swiss German</span>
setxkbmap ch
&nbsp;
<span style="color: #666666; font-style: italic;"># Load .Xresources file</span>
xrdb <span style="color: #660033;">-merge</span> ~<span style="color: #000000; font-weight: bold;">/</span>.Xresources
&nbsp;
<span style="color: #666666; font-style: italic;"># Start xbindkeys</span>
xbindkeys <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Set some defaults</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">BROWSER</span>=chromium <span style="color: #000000; font-weight: bold;">&amp;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EDITOR</span>=<span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
xdg-mime default evince.desktop application<span style="color: #000000; font-weight: bold;">/</span>pdf <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Loop</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #666666; font-style: italic;"># Set root title</span>
    <span style="color: #c20cb9; font-weight: bold;">sh</span> .xsetroot.sh
&nbsp;
    <span style="color: #666666; font-style: italic;"># Check battery level</span>
    <span style="color: #007800;">BATT</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> acpi <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/.*[charging|unknown], \([0-9]*\)%.*/\1/gi'</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">STATUS</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> acpi <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/.*: \([a-zA-Z]*\),.*/\1/gi'</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$BATT</span> <span style="color: #660033;">-le</span> <span style="color: #000000;">5</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$STATUS</span> == <span style="color: #ff0000;">'Discharging'</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #666666; font-style: italic;"># Beep</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\007&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>tty10 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">0.2</span> 
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\007&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>tty10 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">0.2</span> 
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\007&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>tty10 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">0.2</span> 
        <span style="color: #666666; font-style: italic;"># Blink</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'on'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>acpi<span style="color: #000000; font-weight: bold;">/</span>ibm<span style="color: #000000; font-weight: bold;">/</span>light <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'off'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>acpi<span style="color: #000000; font-weight: bold;">/</span>ibm<span style="color: #000000; font-weight: bold;">/</span>light
    <span style="color: #000000; font-weight: bold;">fi</span>  
&nbsp;
    <span style="color: #666666; font-style: italic;"># Update every 10s</span>
    <span style="color: #c20cb9; font-weight: bold;">sleep</span> 10s
<span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Set up rotated dual screen without touching my xorg.conf</span>
xrandr <span style="color: #660033;">--output</span> DVI-<span style="color: #000000;">1</span> <span style="color: #660033;">--auto</span> <span style="color: #660033;">--rotate</span> left <span style="color: #660033;">--pos</span> 0x0 <span style="color: #660033;">--output</span> DVI-<span style="color: #000000;">0</span> <span style="color: #660033;">--auto</span> <span style="color: #660033;">--pos</span> 1080x720 <span style="color: #660033;">--rotate</span> normal
&nbsp;
<span style="color: #666666; font-style: italic;"># Read .xsessionrc</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span> ~<span style="color: #000000; font-weight: bold;">/</span>.xsessionrc <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Set wallpaper</span>
feh <span style="color: #660033;">--bg-scale</span> ~<span style="color: #000000; font-weight: bold;">/</span>.xwallpaper-dwm.png
&nbsp;
<span style="color: #666666; font-style: italic;"># Set WM name (for Java apps)</span>
wmname LG3D
&nbsp;
<span style="color: #666666; font-style: italic;"># Run dwm</span>
<span style="color: #7a0874; font-weight: bold;">exec</span> dwm</pre></div></div>

<h3>.Xresources</h3>
<p>In my .Xresources, I&#8217;m setting the UXTerm color to white on black, as well as fixing a bug with the <code>Alt</code> key in SSH sessions. The last line is to set the window URGENT flag when the window uses the system bell.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">UXTerm<span style="color: #000000; font-weight: bold;">*</span>eightBitInput: <span style="color: #c20cb9; font-weight: bold;">false</span>
UXTerm<span style="color: #000000; font-weight: bold;">*</span>metaSendsEscape: <span style="color: #c20cb9; font-weight: bold;">true</span>
UXTerm<span style="color: #000000; font-weight: bold;">*</span>reverseVideo: <span style="color: #c20cb9; font-weight: bold;">true</span>
UXTerm<span style="color: #000000; font-weight: bold;">*</span>bellIsUrgent: <span style="color: #c20cb9; font-weight: bold;">true</span></pre></div></div>

<h3>.xsetroot.sh</h3>
<p>As you&#8217;ve seen in my .xinitrc file, I didn&#8217;t want to keep my xsetroot commands in the .xinitrc file. The main reason for this is that now I can update the status information from an external script, e.g. when pushing some volume buttons on my notebook.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DATETIME</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">UPTIME</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uptime</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/.*up\s*//'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/,\s*[0-9]* user.*//'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/  / /g'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">VOLUME</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> amixer sget Master <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'Front Left:'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/[^\[]*\[\([0-9]\{1,3\}%\).*\(on\|off\).*/\2 \1/'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/off/M/'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/on //'</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">UNREADMAIL</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> .unreadmail<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">BATTERYSTATE</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> acpi <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ split($5,a,&quot;:&quot;); print substr($3,0,2), $4, &quot;[&quot;a[1]&quot;:&quot;a[2]&quot;]&quot; }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">','</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>S<span style="color: #000000; font-weight: bold;">`</span> == <span style="color: #000000;">30</span> <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>S<span style="color: #000000; font-weight: bold;">`</span> == 00 <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> python imap_check_unread.py <span style="color: #000000; font-weight: bold;">&gt;</span> .unreadmail; <span style="color: #000000; font-weight: bold;">fi</span>
xsetroot <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;Unread <span style="color: #007800;">${UNREADMAIL}</span> | <span style="color: #007800;">${VOLUME}</span> | <span style="color: #007800;">${DATETIME}</span> | Up <span style="color: #007800;">${UPTIME}</span>h | <span style="color: #007800;">${BATTERYSTATE}</span>&quot;</span></pre></div></div>

<p>The uptime value doesn&#8217;t look perfect, there are bugs if the uptime is &lt;1h. But that doesn&#8217;t bug me <img src='http://blog.ich-wars-nicht.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In summary, my status bar displays the following things:</p>
<ul>
<li>Unread e-mail count</li>
<li>Volume</li>
<li>Date and time</li>
<li>Uptime</li>
<li>Battery status</li>
</ul>
<h3>imap_check_unread.py</h3>
<p>To check the unread mail count in my IMAP account, I created a little Python script. But because I don&#8217;t want to query the server every second, I&#8217;m caching the value in a file and updating it every 30 seconds. Create a cronjob or similar to update the file.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">imaplib</span>
&nbsp;
obj = <span style="color: #dc143c;">imaplib</span>.<span style="color: black;">IMAP4_SSL</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'xxx.xxx.xxx.xxx'</span>, <span style="color: #483d8b;">'993'</span><span style="color: black;">&#41;</span>
obj.<span style="color: black;">login</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'user'</span>, <span style="color: #483d8b;">'password'</span><span style="color: black;">&#41;</span>
obj.<span style="color: #dc143c;">select</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>obj.<span style="color: black;">search</span><span style="color: black;">&#40;</span><span style="color: #008000;">None</span>, <span style="color: #483d8b;">'UnSeen'</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2012/01/dwm-config-volume-battery-notification-unread-e-mail-count-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>DWM ssh/screen/irssi notifications</title>
		<link>http://blog.ich-wars-nicht.ch/2011/09/dwm-sshscreenirssi-notifications/</link>
		<comments>http://blog.ich-wars-nicht.ch/2011/09/dwm-sshscreenirssi-notifications/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 09:00:39 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[beep]]></category>
		<category><![CDATA[dwm]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3177</guid>
		<description><![CDATA[I always keep an irssi session open inside a screen session on my server via ssh. I always thought that notifications aren&#8217;t possible for such a setup. But they are. 1. In your irssi session, issue the following commands: /set beep_msg_level NOTICE MSGS HILIGHT /set bell_beeps OFF You can save this configuration permanently by issueing [...]]]></description>
			<content:encoded><![CDATA[<p>I always keep an irssi session open inside a screen session on my server via ssh. I always thought that notifications aren&#8217;t possible for such a setup. But they are.</p>
<p>1. In your irssi session, issue the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">/set beep_msg_level NOTICE MSGS HILIGHT
/set bell_beeps OFF</pre></div></div>

<p>You can save this configuration permanently by issueing <code>/save</code>.</p>
<p>2. In your ~/.screenrc, add the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">vbell off
bell_msg 'Bell in window %n^G'</pre></div></div>

<p>3. Tell your terminal to set the URGENT flag when beeping. Add one of the following lines to your .Xresources:</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;"># For UXterm users:
UXTerm*bellIsUrgent: true
&nbsp;
# For (u)rxvt users:
Rxvt.urgentOnBell: true</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2011/09/dwm-sshscreenirssi-notifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Show MySQL Storage Engines</title>
		<link>http://blog.ich-wars-nicht.ch/2011/04/show-mysql-storage-engines/</link>
		<comments>http://blog.ich-wars-nicht.ch/2011/04/show-mysql-storage-engines/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:09:00 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3127</guid>
		<description><![CDATA[If you have ever wanted to know the storage engine type of every table in one of your MySQL databases, you know how tedious that can be. I have written a Python script that will simplify that task. You can get it on Github. Usage: $ ./show-engines.py or $ python show-engines.py Download: https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines]]></description>
			<content:encoded><![CDATA[<p>If you have ever wanted to know the storage engine type of every table in one of your MySQL databases, you know how tedious that can be.</p>
<p>I have written a Python script that will simplify that task. You can get it on <a href="https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines">Github</a>.</p>
<h3>Usage:</h3>
<p>
<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">$ ./show-engines.py</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">$ python show-engines.py</pre></div></div>

</p>
<h3>Download:</h3>
<p><a href="https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines">https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2011/04/show-mysql-storage-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>A simple LaTeX Makefile</title>
		<link>http://blog.ich-wars-nicht.ch/2011/02/a-simple-latex-makefile/</link>
		<comments>http://blog.ich-wars-nicht.ch/2011/02/a-simple-latex-makefile/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 19:18:08 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bibtex]]></category>
		<category><![CDATA[dokumente]]></category>
		<category><![CDATA[gnu make]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[makefile]]></category>
		<category><![CDATA[pdflatex]]></category>
		<category><![CDATA[ps2pdf]]></category>
		<category><![CDATA[schriftsatz]]></category>
		<category><![CDATA[tex]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3065</guid>
		<description><![CDATA[Today I created a simple LaTeX Makefile based on this tutorial. First of all, this is the first time I&#8217;m writing a Makefile, but it seems to work; if I have overlooked anything just point it out to me. # Makefile to create PDF documents from LaTeX-Files # Needed software packages: pdflatex, rubber # License: [...]]]></description>
			<content:encoded><![CDATA[<p>Today I created a simple LaTeX Makefile based on <a href="http://www.linux-fuer-alle.de/doc_show.php?docid=92">this tutorial</a>. First of all, this is the first time I&#8217;m writing a Makefile, but it seems to work; if I have overlooked anything just point it out to me.</p>

<div class="wp_syntax"><div class="code"><pre class="make" style="font-family:monospace;"><span style="color: #339900; font-style: italic;"># Makefile to create PDF documents from LaTeX-Files</span>
<span style="color: #339900; font-style: italic;"># Needed software packages: pdflatex, rubber</span>
<span style="color: #339900; font-style: italic;"># License: No copyright, just do what the heck you want with it</span>
&nbsp;
all<span style="color: #004400;">:</span> pdf clean
&nbsp;
pdf<span style="color: #004400;">:</span>
	for file in <span style="color: #000088; font-weight: bold;">$$</span><span style="color: #004400;">&#40;</span>ls <span style="color: #004400;">*</span>tex <span style="color: #004400;">|</span> cut <span style="color: #004400;">-</span>d \<span style="color: #004400;">.</span> <span style="color: #004400;">-</span>f <span style="color: #CC2200;">1</span><span style="color: #004400;">&#41;</span> <span style="color: #004400;">;</span> do make <span style="color: #000088; font-weight: bold;">$$</span>file<span style="color: #004400;">.</span>pdf <span style="color: #004400;">;</span> done
&nbsp;
<span style="color: #004400;">%.</span>pdf<span style="color: #004400;">:</span> <span style="color: #004400;">%.</span>tex
	rubber <span style="color: #004400;">-</span>m pdftex <span style="color: #000088; font-weight: bold;">$&lt;</span>
&nbsp;
clean<span style="color: #004400;">:</span>
	rm <span style="color: #004400;">-</span>f <span style="color: #004400;">*.</span>toc <span style="color: #004400;">*.</span>aux <span style="color: #004400;">*.</span>log
&nbsp;
cleanall<span style="color: #004400;">:</span>
	rm <span style="color: #004400;">-</span>f <span style="color: #004400;">*.</span>toc <span style="color: #004400;">*.</span>pdf <span style="color: #004400;">*.</span>aux <span style="color: #004400;">*.</span>log
&nbsp;
<span style="color: #990000;">.PHONY</span><span style="color: #004400;">:</span> all pdf clean cleanall
<span style="color: #990000;">.SILENT</span><span style="color: #004400;">:</span> pdf
&nbsp;
<span style="color: #339900; font-style: italic;"># vim: set tabstop=4 shiftwidth=4 noexpandtab:</span></pre></div></div>

<p>This creates a PDF version of each *.tex-File in the current directory using <a href="https://launchpad.net/rubber">rubber</a>. I chose rubber over directly using pdflatex because it compiles the documents as many times as necessary in order to get all the TOCs and footnotes. Feel free to substitute it with whatever other command you prefer.</p>
<p>Save the code in a file called <code>Makefile</code> and run <code>make</code> to get all *.tex-files in the current directory converted to PDF. Type <code>make file.pdf</code> to convert file.tex to file.pdf. Type <code>make clean</code> to remove all unnecessary *.toc, *.aux and *.log files and <code>make cleanall</code> to remove all PDF documents as well.</p>
<p>Warnings:</p>
<ol>
<li>Don&#8217;t use <code>make cleanall</code> if you have other important PDF files in the current directory, they will get removed as well.</li>
<li>Retain the tabs in the Makefile, spaces won&#8217;t work</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2011/02/a-simple-latex-makefile/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Install Brother DCP-7010 under Arch Linux</title>
		<link>http://blog.ich-wars-nicht.ch/2011/01/install-brother-dcp-7010-under-arch-linux/</link>
		<comments>http://blog.ich-wars-nicht.ch/2011/01/install-brother-dcp-7010-under-arch-linux/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 13:02:43 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[brother]]></category>
		<category><![CDATA[dcp-7010]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[scanner]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3032</guid>
		<description><![CDATA[This how-to will enable you to print and scan with a Brother DCP-7010 printer under Arch Linux. (For deb- and rpm-based Distributions, there are Drivers available.) Install brother-dcp7010 and brscan2 via AUR Install sane and a frontend for it, e.g. xsane Add your user to the scanner-Group: gpasswd -a username scanner Add the keyword brother2 [...]]]></description>
			<content:encoded><![CDATA[<p>This how-to will enable you to print and scan with a Brother DCP-7010 printer under Arch Linux. (For deb- and rpm-based Distributions, there are <a href="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html">Drivers available</a>.)</p>
<ol>
<li>Install <a href="http://aur.archlinux.org/packages.php?ID=39170">brother-dcp7010</a> and <a href="http://aur.archlinux.org/packages.php?ID=19122">brscan2</a> via <a href="https://wiki.archlinux.org/index.php/Arch_User_Repository">AUR</a></li>
<li>Install <code>sane</code> and a frontend for it, e.g. <code>xsane</code></li>
<li>Add your user to the scanner-Group: <code>gpasswd -a username scanner</code></li>
<li>Add the keyword <code>brother2</code> to /etc/sane.d/dll.conf</li>
<li>Log out and back in</li>
</ol>
<p>You should now be able to print and scan.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2011/01/install-brother-dcp-7010-under-arch-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Update file type associations under Linux</title>
		<link>http://blog.ich-wars-nicht.ch/2011/01/update-file-type-associations-under-linux/</link>
		<comments>http://blog.ich-wars-nicht.ch/2011/01/update-file-type-associations-under-linux/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 17:03:24 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[association]]></category>
		<category><![CDATA[file type]]></category>
		<category><![CDATA[mime type]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3026</guid>
		<description><![CDATA[To update a file type (or rather a mime type) association under Linux, you can use the xdg-mime command. $ xdg-mime default desktop-file mimetype E.g. to open pdf files with evince, issue $ xdg-mime default evince.desktop application/pdf]]></description>
			<content:encoded><![CDATA[<p>To update a file type (or rather a mime type) association under Linux, you can use the <code>xdg-mime</code> command.</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">$ xdg-mime default desktop-file mimetype</pre></div></div>

<p>E.g. to open pdf files with evince, issue</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">$ xdg-mime default evince.desktop application/pdf</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2011/01/update-file-type-associations-under-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Pidgin MSN &#8211; &#8220;Zertifikat omega.contacts.msn.com konnte nicht validiert werden&#8221;</title>
		<link>http://blog.ich-wars-nicht.ch/2010/11/pidgin-msn-zertifikat-omega-contacts-msn-com-konnte-nicht-validiert-werden/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/11/pidgin-msn-zertifikat-omega-contacts-msn-com-konnte-nicht-validiert-werden/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 10:13:39 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[live messenger]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[omega]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[zertifikate]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2993</guid>
		<description><![CDATA[(English: To fix Pidgin, update it. Ubuntu / Windows.) Seit ein paar Tagen kann man sich mit Pidgin nicht mehr im MSN einloggen, stattdessen kommt die folgende Meldung: Kann Zertifikat nicht validieren Das Zertifikat für omega.contacts.msn.com konnte nicht validiert werden. Die präsentierte Zertifizierungskette ist ungültig. Um dieses Problem zu beheben muss man entweder manuell das [...]]]></description>
			<content:encoded><![CDATA[<p>(English: To fix Pidgin, update it. <a href="http://pidgin.im/download/ubuntu/">Ubuntu</a> / <a href="http://pidgin.im/download/windows/">Windows</a>.)</p>
<p>Seit ein paar Tagen kann man sich mit Pidgin nicht mehr im MSN einloggen, stattdessen kommt die folgende Meldung:</p>
<blockquote><p>Kann Zertifikat nicht validieren<br />
Das Zertifikat für omega.contacts.msn.com konnte nicht validiert werden. Die präsentierte Zertifizierungskette ist ungültig.</p></blockquote>
<p>Um dieses Problem zu beheben muss man entweder manuell das aktualisierte Zertifikat installieren, oder Pidgin updaten. Leider wird Pidgin unter Ubuntu nur bei Sicherheitsupdates aktualisiert. Abhilfe schafft folgendes Vorgehen:</p>
<h3>Ubuntu</h3>
<ol>
<li>Das <a href="https://launchpad.net/~pidgin-developers/+archive/ppa/+files/pidgin-ppa_0.0.3_all.deb">Pidgin PPA</a> herunterladen</li>
<li>.deb-Datei öffnen und mit dem GDebi Installier installieren</li>
<li>Eine Konsole öffnen und <code>sudo apt-get update &#038;&#038; sudo apt-get upgrade</code> eingeben</li>
</ol>
<p>Daraufhin wird Pidgin aktualisiert und sollte wieder funktionieren.</p>
<h3>Windows</h3>
<p>Unter Windows kann man Pidgin wie gewohnt <a href="http://pidgin.im/download/windows/">herunterladen</a> und installieren/updaten.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/11/pidgin-msn-zertifikat-omega-contacts-msn-com-konnte-nicht-validiert-werden/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Use easy_install under Arch Linux or Ubuntu</title>
		<link>http://blog.ich-wars-nicht.ch/2010/11/use-easy_install-under-arch-linux-or-ubuntu/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/11/use-easy_install-under-arch-linux-or-ubuntu/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 13:57:23 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[easy_install]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2977</guid>
		<description><![CDATA[If you want to use Python&#8217;s easy_install, you need to install an additional package. Under Arch Linux, you need python2-distribute. pacman -S python2-distribute If you&#8217;re an Ubuntu user, install python-setuptools. apt-get install python-setuptools]]></description>
			<content:encoded><![CDATA[<p>If you want to use Python&#8217;s <code>easy_install</code>, you need to install an additional package. Under Arch Linux, you need <code>python2-distribute</code>.</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">pacman -S python2-distribute</pre></div></div>

<p>If you&#8217;re an Ubuntu user, install <code>python-setuptools</code>.</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">apt-get install python-setuptools</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/11/use-easy_install-under-arch-linux-or-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Slock Logging Patch</title>
		<link>http://blog.ich-wars-nicht.ch/2010/11/slock-logging-patch/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/11/slock-logging-patch/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 20:03:23 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[dwm]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[screenlocker]]></category>
		<category><![CDATA[slock]]></category>
		<category><![CDATA[window manager]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2958</guid>
		<description><![CDATA[I love slock, a simple screenlocker written for dwm, but I was missing some logging functionality. So I&#8217;ve created a small patch for slock 0.9 that enables logging of locks, unlocks and failed unlock attempts into a logfile. For download, see the suckless.org [dev] mailinglist archive.]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://tools.suckless.org/slock">slock</a>, a simple screenlocker written for <a href="http://dwm.suckless.org/">dwm</a>, but I was missing some logging functionality. So I&#8217;ve created a small patch for slock 0.9 that enables logging of locks, unlocks and failed unlock attempts into a logfile.</p>
<p>For download, see the <a href="http://lists.suckless.org/dev/1011/6362.html">suckless.org [dev] mailinglist archive</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/11/slock-logging-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Fingerprint Reader with Thinkpad T410 using Ubuntu</title>
		<link>http://blog.ich-wars-nicht.ch/2010/10/fingerprint-reader-with-thinkpad-t410-using-ubuntu/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/10/fingerprint-reader-with-thinkpad-t410-using-ubuntu/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 01:34:56 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[biometrie]]></category>
		<category><![CDATA[biometry]]></category>
		<category><![CDATA[fingerabdruck]]></category>
		<category><![CDATA[fingerprint]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[t410]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upek]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2787</guid>
		<description><![CDATA[How to add fingerprint reader support to your Ubuntu installation (yes, it does work): Add fingerprint-gui ppa to your sources: sudo add-apt-repository ppa:fingerprint/fingerprint-gui sudo apt-get update Install fingerprint-gui sudo apt-get install fingerprint-gui Install UPEK library libbsapi sudo apt-get install libbsapi Log out and back in Play with settings in System > Preferences > Fingerprint GUI [...]]]></description>
			<content:encoded><![CDATA[<p>How to add fingerprint reader support to your Ubuntu installation (yes, it does work):</p>
<ol>
<li>Add fingerprint-gui ppa to your sources:

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt-get update</pre></div></div>

</li>
<li>Install fingerprint-gui

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">sudo apt-get install fingerprint-gui</pre></div></div>

</li>
<li>Install UPEK library libbsapi

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">sudo apt-get install libbsapi</pre></div></div>

</li>
<li>Log out and back in</li>
<li>Play with settings in <em>System > Preferences > Fingerprint GUI</em></li>
</ol>
<p>For more and more detailed information, see <a href="https://launchpad.net/~fingerprint/+archive/fingerprint-gui">https://launchpad.net/~fingerprint/+archive/fingerprint-gui</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/10/fingerprint-reader-with-thinkpad-t410-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>

