<?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>The adventures of Foo &#187; NoteToMyself</title>
	<atom:link href="http://jensge.org/tag/notetomyself/feed/" rel="self" type="application/rss+xml" />
	<link>http://jensge.org</link>
	<description>My aggregated random tech blabber</description>
	<lastBuildDate>Sat, 04 Feb 2012 19:12:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Resolving DBus uniqe names</title>
		<link>http://jensge.org/2011/01/resolving-dbus-uniqe-names/</link>
		<comments>http://jensge.org/2011/01/resolving-dbus-uniqe-names/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 16:40:46 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DBus]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=489</guid>
		<description><![CDATA[Often you stumble across DBus logs (e.g. originating from bustle or dbus-monitor) which only feature DBus unique names (those :1.xyz numbers) and you can only guess which process it originates from. Helper script to resolve those addresses to processes (if &#8230; <a href="http://jensge.org/2011/01/resolving-dbus-uniqe-names/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Often you stumble across DBus logs (e.g. originating from <a href="http://willthompson.co.uk/bustle/">bustle</a> or dbus-monitor) which only feature DBus unique names (those :1.xyz numbers) and you can only guess which process it originates from.</p>
<p>Helper script to resolve those addresses to processes (if the system is still running):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">name</span>=<span style="color: #007800;">$1</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$name</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #007800;">result</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #007800;">LANG</span>=C dbus-send \
                  <span style="color: #660033;">--session</span> \
                  <span style="color: #660033;">--print-reply</span> \
                  <span style="color: #660033;">--dest</span>=org.freedesktop.DBus \
                  <span style="color: #000000; font-weight: bold;">/</span> \
                  org.freedesktop.DBus.GetConnectionUnixProcessID \
                  string:<span style="color: #ff0000;">&quot;<span style="color: #007800;">$name</span>&quot;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null<span style="color: #000000; font-weight: bold;">`</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #007800;">process</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> ax <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ^<span style="color: #800000;">${result##* }</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$name</span> -&gt; <span style="color: #007800;">$process</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
    <span style="color: #7a0874; font-weight: bold;">shift</span>; <span style="color: #007800;">name</span>=<span style="color: #007800;">$1</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2011/01/resolving-dbus-uniqe-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popup ads</title>
		<link>http://jensge.org/2010/07/popup-ads/</link>
		<comments>http://jensge.org/2010/07/popup-ads/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:35:47 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[NoteToMyself]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=422</guid>
		<description><![CDATA[gconftool-2 &#8211;set /apps/xchat/channel_list/auto_popup &#8211;type bool false]]></description>
			<content:encoded><![CDATA[<p>gconftool-2 &#8211;set /apps/xchat/channel_list/auto_popup &#8211;type bool false</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2010/07/popup-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fake rpm database in ubuntu</title>
		<link>http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/</link>
		<comments>http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 11:17:12 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=374</guid>
		<description><![CDATA[At work I&#8217;m currently developing software which is supposed to run on openSUSE. I need to query the package database at some point which of course does not exist on my ubuntu machine. Here&#8217;s a quick setup how to create &#8230; <a href="http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At work I&#8217;m currently developing software which is supposed to run on openSUSE. I need to query the package database at some point which of course does not exist on my ubuntu machine. Here&#8217;s a quick setup how to create a fake local RPM database:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;%_dbpath /home/user/rpmdb&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.rpmmacros
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>user<span style="color: #000000; font-weight: bold;">/</span>rpmdb
rpm <span style="color: #660033;">-i</span> <span style="color: #660033;">--nodeps</span> <span style="color: #660033;">--justdb</span> <span style="color: #660033;">--force-debian</span> <span style="color: #000000; font-weight: bold;">*</span>.rpm</pre></div></div>

<p>And that&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2010/01/fake-rpm-database-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Gnu-)Tar option of the day</title>
		<link>http://jensge.org/2010/01/gnu-tar-option-of-the-day/</link>
		<comments>http://jensge.org/2010/01/gnu-tar-option-of-the-day/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 10:54:09 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=372</guid>
		<description><![CDATA[--exclude-vcs]]></description>
			<content:encoded><![CDATA[<p><code>--exclude-vcs</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2010/01/gnu-tar-option-of-the-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>any to WMV</title>
		<link>http://jensge.org/2009/12/any-to-wmv/</link>
		<comments>http://jensge.org/2009/12/any-to-wmv/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 11:05:53 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[UPnP]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=360</guid>
		<description><![CDATA[While trying to vamp up XBox 360 support for rygel, I also need a transcoder suitable for the XBox. While H.264 would work it is CPU consuming and hard to get right for the XBox, because it is quite picky. &#8230; <a href="http://jensge.org/2009/12/any-to-wmv/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While trying to vamp up XBox 360 support for rygel, I also need a transcoder suitable for the XBox. While H.264 would work it is CPU consuming and hard to get right for the XBox, because it is quite picky. So I decided to go for WMV1/WMA2. Prototype gst-launch commandline:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">gst-launch filesrc location=input_file ! decodebin2 name=decoder \
               asfmux name=mux ! filesink location=foo.wmv \
               { decoder. ! queue ! ffenc_wmv1 bitrate=1200 ! mux. } \
               { decoder. ! queue ! audioconvert ! audioresample ! ffenc_wmav2 bitrate=64000 ! mux. }</pre></div></div>

<p>I know that the curly braces are not needed anymore but I still think they improve readability a lot.<br />
<strong>Update:</strong>The resulting file works great for offline playback on the XBox, but live streaming does not work unfortunatly. I had to rely on <code>ffmux_asf</code> to make live transcoding working.</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/12/any-to-wmv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to examine binary registry dumps in Linux</title>
		<link>http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/</link>
		<comments>http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:36:22 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=335</guid>
		<description><![CDATA[Say you have a binary registry export or dump from Windows and need to have a look at its contents. What do you do? The solution I came up with is: WINEPREFIX=/tmp/dump regedit *.reg Which gives you nice plain-text ini-style &#8230; <a href="http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Say you have a binary registry export or dump from Windows and need to have a look at its contents. What do you do? The solution I came up with is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">WINEPREFIX</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>dump regedit <span style="color: #000000; font-weight: bold;">*</span>.reg</pre></div></div>

<p>Which gives you nice plain-text ini-style registries to examine in <code>/tmp/dump</code>. That obviously needs <a href="http://winehq.com">Wine</a> installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/11/how-to-examine-binary-registry-dumps-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Non-functional ALT key and VMWare</title>
		<link>http://jensge.org/2009/09/non-functional-alt-key-and-vmware/</link>
		<comments>http://jensge.org/2009/09/non-functional-alt-key-and-vmware/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 10:08:13 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=299</guid>
		<description><![CDATA[If you&#8217;re using VMWare on Linux host, you sometimes might experience that after switching from VM to Host your ALT key (or some other &#8220;special&#8221; key) stopps working. Found the workaround to correct this: setxkbmap (Workaround found in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/195982)]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using VMWare on Linux host, you sometimes might experience that after switching from VM to Host your ALT key (or some other &#8220;special&#8221; key) stopps working. Found the workaround to correct this: setxkbmap</p>
<p>(Workaround found in <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/195982">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/195982</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/09/non-functional-alt-key-and-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concerning gnupg&#8230;</title>
		<link>http://jensge.org/2009/07/concerning-gnupg/</link>
		<comments>http://jensge.org/2009/07/concerning-gnupg/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 09:17:07 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=262</guid>
		<description><![CDATA[I wrote earlier about compiling libgpgme for use with Visual Studio. Forgot to mention that this is an useless effort because the filedescriptor passing does not work and as such you can only encrypt decrypt from or to memory.]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://jensge.org/2009/04/eternal-struggle/">wrote earlier about compiling libgpgme for use with Visual Studio</a>. Forgot to mention that this is an useless effort because the filedescriptor passing does not work and as such you can only encrypt decrypt from or to memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/07/concerning-gnupg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba as AD client</title>
		<link>http://jensge.org/2009/05/samba-as-ad-client/</link>
		<comments>http://jensge.org/2009/05/samba-as-ad-client/#comments</comments>
		<pubDate>Mon, 18 May 2009 10:36:10 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jensge.org/?p=242</guid>
		<description><![CDATA[If net ads join ever again fails with Failed to join domain: failed to find DC for domain just throw the stupid NetBIOS name of the ActiveDirectory server into the hosts file, will you? Sheesh&#8230;]]></description>
			<content:encoded><![CDATA[<p>If <code>net ads join</code> ever again fails with <code>Failed to join domain: failed to find DC for domain</code> just throw the stupid <a href="http://en.wikipedia.org/wiki/Netbios">NetBIOS</a> name of the <a href="http://en.wikipedia.org/wiki/Active_Directory">ActiveDirectory</a> server into the hosts file, will you? Sheesh&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/05/samba-as-ad-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Return of the struggle</title>
		<link>http://jensge.org/2009/04/return-of-the-struggle/</link>
		<comments>http://jensge.org/2009/04/return-of-the-struggle/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 14:51:11 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Crypto]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[OSS]]></category>

		<guid isPermaLink="false">https://jensge.org/?p=200</guid>
		<description><![CDATA[If you ever wondered what parameters you could pass in that funny xmllet &#60;GnupgKeyParms&#62;&#60;/GnupgKeyParms&#62; when using gpgme_op_genkey: The answer to that is in the gnupg source, file g10/keygen.c, line 2363 at http://lists.gnupg.org/pipermail/gnupg-users/2007-February/030330.html at doc/DETAILS, line 716.]]></description>
			<content:encoded><![CDATA[<p>If you ever wondered what parameters you could pass in that funny xmllet <code>&lt;GnupgKeyParms&gt;&lt;/GnupgKeyParms&gt;</code> when using <code>gpgme_op_genkey</code>:</p>
<p>The answer to that is</p>
<ul>
<li>in the gnupg source, file <code>g10/keygen.c</code>, line 2363</li>
<li>at <a href="http://lists.gnupg.org/pipermail/gnupg-users/2007-February/030330.html" target="_blank">http://lists.gnupg.org/pipermail/gnupg-users/2007-February/030330.html</a></li>
<li>at <code>doc/DETAILS</code>, line 716.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/04/return-of-the-struggle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

