<?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>Sun, 25 Jul 2010 09:57:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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[<p>gconftool-2 &#8211;set /apps/xchat/channel_list/auto_popup &#8211;type [...]]]></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[<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>

echo &#34;%_dbpath /home/user/rpmdb&#34; &#62;&#62; ~/.rpmmacros
mkdir /home/user/rpmdb
rpm -i --nodeps --justdb --force-debian *.rpm

<p>And [...]]]></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[[...]]]></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[<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>

gst-launch filesrc location=input_file ! decodebin2 name=decoder \
 [...]]]></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[<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>

WINEPREFIX=/tmp/dump regedit *.reg

<p>Which gives you nice plain-text ini-style registries to examine in /tmp/dump. That obviously needs [...]]]></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[<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 [...]]]></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[<p>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 [...]]]></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[<p>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 [...]]]></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[<p>If you ever wondered what parameters you could pass in that funny xmllet &#60;GnupgKeyParms&#62;&#60;/GnupgKeyParms&#62; when using gpgme_op_genkey:</p>
<p>The answer to that is</p>

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, [...]]]></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>
		<item>
		<title>Eternal struggle</title>
		<link>http://jensge.org/2009/04/eternal-struggle/</link>
		<comments>http://jensge.org/2009/04/eternal-struggle/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 09:09:18 +0000</pubDate>
		<dc:creator>Jens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Crypto]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[NoteToMyself]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">https://jensge.org/?p=195</guid>
		<description><![CDATA[<p>My current task is evaluation crypto (here: OpenPGP) solutions for Microsoft Windows; of course including GnuPG.</p>
<p>Well, what do I say. While there is a nice installer for GnuPG on Windows available (either here or here), try to find one for the gpgme supporting library&#8230; (including header and .lib import files for Visual Studio, that is).</p>
<p>You can [...]]]></description>
			<content:encoded><![CDATA[<p>My current task is evaluation crypto (here: OpenPGP) solutions for Microsoft Windows; of course including <a href="http://www.gnupg.org" target="_blank">GnuPG</a>.</p>
<p>Well, what do I say. While there is a nice installer for GnuPG on Windows available (either <a href="http://gnupg.org/download/" target="_blank">here</a> or <a href="http://www.gpg4win.org/download.html" target="_blank">here</a>), try to find one for the gpgme supporting library&#8230; (including header and .lib import files for Visual Studio, that is).</p>
<p>You can guess&#8230; It&#8217;s all about build-your-own-stuff. It basically boils down to this:</p>
<p><em>Preparations</em></p>
<ul>
<li>Create a directory to collect all the stuff you will need (e.g. <code>C:\gpgme</code> with <code>bin</code>, <code>include</code> and <code>lib</code> sub folders)</li>
<li>Get <a href="http://www.mingw.org" target="_blank">mingw</a> and install it</li>
<li>Get <a href="http://www.mingw.org/wiki/MSYS" target="_blank">MSYS</a> and install it</li>
<li><a href="http://www.gnupg.org/download/index.en.html#libgpg-error" target="_blank">Download libgpg-error</a> and extract it</li>
<li><a href="http://www.gnupg.org/download/index.en.html#gpgme" target="_blank">Download gpgme</a> and extract it</li>
</ul>
<p><em>Compiling libgpg-error</em></p>
<ul>
<li>In the MSYS bash, change to the directory you extracted libgpg-error into and run <code>./configure --prefix=/mingw &amp;&amp; make install</code></li>
<li>Call <code>strip src/.libs/libgpg-error-0.dll src/gpg-error.exe</code> as MSVC can&#8217;t use gcc&#8217;s debug info anyway</li>
<li>Copy <code>src/gpg-error.exe and src/.libs/libgpg-error-0.dll</code> to the bin directory created above</li>
<li>Copy <code>src/.libs/libgpg-error-0.dll.def</code> to <code>lib/libgpg-error-0.def</code> (note the renaming; otherwise your program will look for a <code>libgpg-error-0.dll.dll</code>)</li>
<li>Open the Visual Studio Command Prompt</li>
<li>Call <code>lib /machine:i386 /def:lib\libgpg-error-0.def /out:lib\libgpg-error-0.lib</code> to create the import library</li>
<li>Copy <code>include/gpg-error.h</code> to include</li>
</ul>
<p><em>Compiling gpgme</em></p>
<ul>
<li>In the MSYS bash, run <code>./configure --prefix=/mingw &amp;&amp; make</code></li>
<li>Call <code>strip src/gpgme-w32spawn.exe src/.libs/libgpgme-11.dll</code></li>
<li>Copy <code>src/gpgme-w32spawn.exe</code> to <code>bin</code> <strong>Note:</strong> To use the gpgme library, this binary has to live either in the installation dir of gpg (set in windows registry key <code>HKLM\Software\GNU\GnuPG\Installation Directory</code>) or in <code>%PROGRAMFILES%\GNU\GnuPG</code>. <strong>Otherwise gpgme will not work!</strong></li>
<li>Copy <code>src/.libs/libgpgme-11.dll</code> to bin and <code>src/.libs/libgpgme-11.dll.def</code> to <code>lib/libgpgme-11.def</code> (Once again, note the renaming)</li>
<li>Call <code>lib /machine:i386 /def:lib\libgpgme-11.def /out:lib\libgpgme-11.lib</code> to create the import library</li>
<li>Copy <code>include/gpgme.h</code> to <code>include</code></li>
</ul>
<p><em>Optional: Creating the documentation</em></p>
<p>I was not able to create the documentation properly using cygwin so I did this on a Linux host. Install a TeX distribution of your choice as well as texinfo (for Debian Lenny this would mean installing the packages texinfo, texi2html and texlive). Call make pdf in the doc subdir to generate the PDF documentation and manually call <code>texi2html gpgme.texi</code> for a HTML document.</p>
<p><em>Summary</em></p>
<p>Now you can add the lib dir to your Visual Studio linker settings and the include dir to your C/C++ common settings. To make gpgme work, be sure you have the gpgme-w32spawn.exe installed properly as noted above.</p>
<p>I hope this helps to guide one or another through the struggle of getting gpgme on windows.</p>
<p><em>Q&amp;A</em></p>
<ul>
<li>
<blockquote><p>Q: gpgme does not find libgpg-error</p></blockquote>
<p>A: You did not call <code>make install</code> after compiling it</li>
<li>
<blockquote><p>Q: My program is looking for <code>{libgpg-error-0.dll.dll|libgpgme-11.dll.dll}</code></p></blockquote>
<p>A: You did not rename the .def file before calling <code>lib.exe</code></li>
<li>
<blockquote><p>Q: I did everything you said, but when I run my program, <code>gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP)</code> fails with <code>GPG_ERR_INV_ENGINE</code>. If I check the engine info, <code>info-&gt;version</code> is empty</p></blockquote>
<p>A: First of all, check if you copied <code>gpgme-w32spawn.exe</code> to the correct directory. If this is the case, actually, I have no idea what went wrong</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jensge.org/2009/04/eternal-struggle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
