<?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>Andreas Schneider - GlaDiaC's strace</title>
	<atom:link href="http://blog.cynapses.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cynapses.org</link>
	<description>Just another weblog for penguins!</description>
	<lastBuildDate>Tue, 23 Feb 2010 10:17:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Featurecasts</title>
		<link>http://blog.cynapses.org/2010/02/23/featurecasts/</link>
		<comments>http://blog.cynapses.org/2010/02/23/featurecasts/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 09:57:02 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[KDE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=141</guid>
		<description><![CDATA[Yesterday I&#8217;ve visited the Tokamak4 Sprint. I&#8217;ve attended the talks in the evening and then had dinner with some KDE hackers. Today I&#8217;ve looked at PlanetKDE and saw the KDE bluetooth screencast from Alex Fiestas. I liked the screencasts in the KDE 4.4 announcement, it should the users what&#8217;s cool and new. Yesterday I&#8217;ve heard [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I&#8217;ve visited the Tokamak4 Sprint. I&#8217;ve attended the talks in the evening and then had dinner with some KDE hackers. Today I&#8217;ve looked at <a href="http://www.planetkde.org/">PlanetKDE</a> and saw the <a href="http://www.afiestas.org/fulfilling-promises-apple-wireless-keyboard-working-with-kbluetooth/">KDE bluetooth screencast</a> from Alex Fiestas. I liked the <a href="http://www.kde.org/announcements/4.4/">screencasts in the KDE 4.4 announcement</a>, it should the users what&#8217;s cool and new. Yesterday I&#8217;ve heard the first time about activities in KDE4. I wondered what Aaron is talking about.</p>
<p>Here comes the conclusion:</p>
<p><strong>We need a Featurecast section on the KDE website with screencasts that shows all the cool hidden stuff!</strong></p>
<p>This should be the first thing a user finds on the KDE website. The user normally hasn&#8217;t installed KDE at all or doesn&#8217;t have the latest version. So the first thing should be something which shows what you can do with it and how cool this stuff is.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2010/02/23/featurecasts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Documenting the Source</title>
		<link>http://blog.cynapses.org/2010/02/10/documenting-source-code/</link>
		<comments>http://blog.cynapses.org/2010/02/10/documenting-source-code/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:23:26 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=136</guid>
		<description><![CDATA[As you maybe know I have a new job since last December and I&#8217;m working on
Samba4 now. Samba4 is a monster so I&#8217;ve asked for some simple tasks to get
started. The task was to migrate some code to a new Samba library called
tsocket. The problem was I didn&#8217;t know what to do and how. Some [...]]]></description>
			<content:encoded><![CDATA[<p>As you maybe know I have a new job since last December and I&#8217;m working on<br />
Samba4 now. Samba4 is a monster so I&#8217;ve asked for some simple tasks to get<br />
started. The task was to migrate some code to a new Samba library called<br />
tsocket. The problem was I didn&#8217;t know what to do and how. Some functions<br />
of the API were documented but not all. So I had to guess from the names<br />
what the function is doing and read the code to understand it. Then I&#8217;ve<br />
started to work with the interface and I had to look again the the code to<br />
find out possible return values. In the end I spent a lot of time jumping<br />
through the source code to find out the return values for the functions.</p>
<p>If the API would be completely documented I could get my work done a lot of<br />
faster so I simply started to document it cause I had to understand it anyway.<br />
I&#8217;ve decided to write the documentation with doxygen and put it in the header<br />
file, so that people who use the PAI always have the documentation with them.</p>
<p>After I finished it, started to work on the source code again and got some<br />
things working as I was able to understand the API of the library. Then I<br />
crossed the next undocumented API of a library. Ok, it wasn&#8217;t undocumented it<br />
had a text file describing everything but having doxygen documentation is much<br />
nicer than a text file. So I&#8217;ve started to document <a href="http://talloc.samba.org/">talloc</a> from Samba4 with<br />
doxygen.</p>
<p>The talloc API uses macros for a lot of things to make debugging easier or<br />
to hide things you&#8217;re doing from the user. However if you document a macro<br />
than normally you want that it looks like a function. To be able to do that<br />
with doxygen you have to use a little trick. As doxygen has a C preprocessor<br />
built in you can create a define for a doxygen mode. That&#8217;s what I&#8217;ve done in<br />
the config file and all you need to do in the source code is to use it with<br />
#ifdef.</p>
<p><code>#ifdef DOXYGEN<br />
/**<br />
 * @brief Create a new talloc context.<br />
 *<br />
 * The talloc() macro is the core of the talloc library. It takes a memory<br />
 * context and a type, and returns a pointer to a new area of memory of the<br />
 * given type.<br />
 *<br />
 * The returned pointer is itself a talloc context, so you can use it as the<br />
 * context argument to more calls to talloc if you wish.<br />
 *<br />
 * The returned pointer is a "child" of the supplied context. This means that if<br />
 * you talloc_free() the context then the new child disappears as well.<br />
 * Alternatively you can free just the child.<br />
 *<br />
 * @param[in]  ctx      A talloc context to create a new reference on or NULL to<br />
 *                      create a new top level context.<br />
 *<br />
 * @param[in]  type     The type of memory to allocate.<br />
 *<br />
 * @return              A type casted talloc context or NULL on error.<br />
 *<br />
 * @code<br />
 *      unsigned int *a, *b;<br />
 *<br />
 *      a = talloc(NULL, unsigned int);<br />
 *      b = talloc(a, unsigned int);<br />
 * @endcode<br />
 *<br />
 * @see talloc_zero<br />
 * @see talloc_array<br />
 * @see talloc_steal<br />
 * @see talloc_free<br />
 */<br />
void *talloc(const void *ctx, #type);<br />
#else<br />
#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)<br />
void *_talloc(const void *context, size_t size);<br />
#endif<br />
</code></p>
<p>So start to document your API. What you get well be something like <a href="http://talloc.samba.org/">this</a> and other will love it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2010/02/10/documenting-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>csync at FOSDEM</title>
		<link>http://blog.cynapses.org/2010/02/01/csync-at-fosdem/</link>
		<comments>http://blog.cynapses.org/2010/02/01/csync-at-fosdem/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:25:22 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=132</guid>
		<description><![CDATA[I&#8217;m currently updating csync to work with libssh 0.4 and I will give a lightning talk about csync at FOSDEM next weekend. csync is a file synchronizer to keep two folders in sync. This can be local or remote. The main purpose of csync is to provide Roaming Home Directories.
I will work with Aris on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently updating <a href="http://www.csync.org/">csync</a> to work with <a href="http://www.libssh.org/">libssh</a> 0.4 and I will give a <a href="http://www.fosdem.org/2010/schedule/tracks/lightningtalks">lightning talk</a> about csync at <a href="http://www.fosdem.org">FOSDEM</a> next weekend. csync is a file synchronizer to keep two folders in sync. This can be local or remote. The main purpose of csync is to provide <a href="http://www.csync.org/userguide/">Roaming Home Directories</a>.</p>
<p>I will work with <a href="http://blog.0xbadc0de.be/">Aris</a> on libssh stuff and try to get some small features in KDE for kio_sftp. I heard that some KDE guys are around too. I hope to see you there.</p>
<p>If you&#8217;re a Samba developer and go to FOSDEM, let me know <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2010/02/01/csync-at-fosdem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kio_sftp updates</title>
		<link>http://blog.cynapses.org/2009/10/01/kio_sftp-updates/</link>
		<comments>http://blog.cynapses.org/2009/10/01/kio_sftp-updates/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 08:39:06 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[KDE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=129</guid>
		<description><![CDATA[openSUSE has backported the new kio_sftp implementation based on libssh to their KDE 4.3 packages. This increased the users and helped to find some bugs in kio_sftp and KDE. The current implementation is working fairly well.
As soon as libssh 0.4 will be released (hopefully soon) I will add more features. Users asked for ~/.ssh/config support [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.opensuse.org/Kde">openSUSE</a> has backported the new kio_sftp implementation based on <a href="http://www.libssh.org/">libssh</a> to their KDE 4.3 packages. This increased the users and helped to find some bugs in kio_sftp and KDE. The current implementation is working fairly well.</p>
<p>As soon as libssh 0.4 will be released (hopefully soon) I will add more features. Users asked for ~/.ssh/config support and I&#8217;ve added openssh&#8217;s statvfs extension to libssh. This means I can check if there is enough space on the server before I copy a file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/10/01/kio_sftp-updates/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>mlmmj webarchiver</title>
		<link>http://blog.cynapses.org/2009/09/13/mlmmj-webarchiver/</link>
		<comments>http://blog.cynapses.org/2009/09/13/mlmmj-webarchiver/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 10:49:20 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=125</guid>
		<description><![CDATA[I run mlmmj (mailinglist management made joyful) for my mailing lists. The problem was, that I didn&#8217;t have any mailinglist webarchives for a long time. I had to change this so I started on Friday to changes this. It took me the whole day to write the scripts. mlmmj-webarchiver has been written by Sven Michels [...]]]></description>
			<content:encoded><![CDATA[<p>I run <a href="http://mlmmj.org/">mlmmj</a> (mailinglist management made joyful) for my mailing lists. The problem was, that I didn&#8217;t have any mailinglist webarchives for a long time. I had to change this so I started on Friday to changes this. It took me the whole day to write the scripts. mlmmj-webarchiver has been written by Sven Michels using hypermail. As hypermail is more or less a dead project I decided to use mhonarc. So I started to rewrite the script and use the theme the <a href="http://www.roundcube.net/">roundcube</a> project created.</p>
<p>You can see the result here:</p>
<p><a href="http://www.libssh.org/archive/">http://www.libssh.org/archive/</a><br />
<a href="http://www.csync.org/archive/">http://www.csync.org/archive/</a></p>
<p>I&#8217;ve created a git repository for the mlmmj-webarchiver:</p>
<p>git clone git://git.cynapses.org/users/gladiac/mlmmj-webarchiver.git</p>
<p>Patches are welcome <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/09/13/mlmmj-webarchiver/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>undefined reference to &#8220;function name&#8221;</title>
		<link>http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/</link>
		<comments>http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 20:11:00 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[linker]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=118</guid>
		<description><![CDATA[Since hermes is flooding my mailbox I haven&#8217;t looked if all my packages are compiling on Factory. So I had a look for interesting emails today. ctrlproxy (irc proxy/bouncer) didn&#8217;t build with undefined reference to &#8220;&#8220;. I wondered if the libarary packages have been renamed, but everything looked fine. I&#8217;ve talked to darix and he [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://hermes.opensuse.org/">hermes</a> is flooding my mailbox I haven&#8217;t looked if all my packages are compiling on Factory. So I had a look for interesting emails today. <a href="http://www.ctrlproxy.org/">ctrlproxy</a> (irc proxy/bouncer) didn&#8217;t build with undefined reference to &#8220;<function-name>&#8220;. I wondered if the libarary packages have been renamed, but everything looked fine. I&#8217;ve talked to darix and he told me about the &#8211;as-needed flag of the linker which is set by default now. I&#8217;ve searched for some documentation didn&#8217;t find something which explains the problems so here is my documentation.</p>
<p>The problem is the linking order of the libraries and source code! Lets look at an example:</p>
<p>Assume that you built a static library libwurst and it uses the pow() function from the math library.</p>
<p><code> $ gcc -Wl,--as-needed --static main.c -o wurstsalat -L. -lm -lwurst<br />
 ./libwurst.a(wurst.o): In function `wurst':<br />
 wurst.c:(.text+0x29): undefined reference to `pow'</code></p>
<p>The problem here is, that the linker doesn&#8217;t find any reference to pow() in main.c. Then the first library is libm and as it is not needed, the linker skips it. So you have to link against libwurst.a before you link against libm.</p>
<p><code> $ gcc -Wl,--as-needed --static main.c -o wurstsalat -L. -lwurst -lm</code></p>
<p>To summarize it: <strong>When using &#8211;as-needed, the order in which the libraries appear in the command line is relevant: any library X must precede all libraries Y that offer symbols that X uses.</strong></p>
<p>I&#8217;ve created a page in the openSUSE wiki, you can find it <a href="http://en.opensuse.org/Packaging/Fixing">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>kio_sftp rewrite upstream</title>
		<link>http://blog.cynapses.org/2009/08/11/kio_sftp-rewrite-upstream/</link>
		<comments>http://blog.cynapses.org/2009/08/11/kio_sftp-rewrite-upstream/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:05:58 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[kio]]></category>
		<category><![CDATA[libssh]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=114</guid>
		<description><![CDATA[I&#8217;ve commited my kio_sftp rewrite to KDE trunk today. The patch for KDE 4.3 if you want to test it is available here. You need libssh 0.3.2 to get it working but I suggest to use the libssh v0-3 git branch which has fixes found by kio_sftp testers. Thanks to all of them!
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve <a href="http://websvn.kde.org/?view=rev&#038;revision=1010049">commited</a> my kio_sftp rewrite to KDE trunk today. The patch for KDE 4.3 if you want to test it is available <a href="http://www.cynapses.org/tmp/patches/kde/kio_sftp_rewrite.patch">here</a>. You need libssh 0.3.2 to get it working but I suggest to use the libssh v0-3 git branch which has fixes found by kio_sftp testers. Thanks to all of them!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/08/11/kio_sftp-rewrite-upstream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack Week: kio_sftp in action!</title>
		<link>http://blog.cynapses.org/2009/07/24/kio_sftp-in-action/</link>
		<comments>http://blog.cynapses.org/2009/07/24/kio_sftp-in-action/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 16:45:16 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=101</guid>
		<description><![CDATA[The openSUSE Hackweek is over and I have a working kio_sftp implementation using libssh. There is still work which needs to be done. I have to cleanup the code and test all the features (resume of files, recursive deletion). Today I&#8217;ve copied successfully the first files to my webserver!

I&#8217;ve uploaded the two files to my [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://news.opensuse.org/2009/07/08/hack-week-iv-approaches/">openSUSE Hackweek</a> is over and I have a working kio_sftp implementation using <a href="http://www.libssh.org/">libssh</a>. There is still work which needs to be done. I have to cleanup the code and test all the features (resume of files, recursive deletion). Today I&#8217;ve copied successfully the first files to my webserver!</p>
<p><a href="http://blog.cynapses.org/wp-content/uploads/2009/07/kio_sftp1.png" target="_blank"><img src="http://blog.cynapses.org/wp-content/uploads/2009/07/kio_sftp1-300x175.png" alt="kio_sftp" title="kio_sftp in action" width="300" height="175" class="size-medium wp-image-102" /></a></p>
<p>I&#8217;ve uploaded the two files to my webspace, <a href="http://www.cynapses.org/tmp/patches/kde/">here</a>. Remeber that it&#8217;s not finished yet! You need libssh&#8217;s v0-3 git branch to get it working. I&#8217;ve found serveral bugs during the week. I will release libssh 0.3.2 next week.</p>
<p>Thanks to Dirk Müller who answered all my question and helped me with the KDE stuff.</p>
<p>Benchmarks will follow soon too.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/07/24/kio_sftp-in-action/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>kio_sftp authentication with libssh works</title>
		<link>http://blog.cynapses.org/2009/07/21/kio_sftp-authentication-with-libssh-works/</link>
		<comments>http://blog.cynapses.org/2009/07/21/kio_sftp-authentication-with-libssh-works/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:24:49 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=96</guid>
		<description><![CDATA[I&#8217;ve got the fingerprint verification and authentication with public key and keyboard interactive working. There is still a dialog missing for special interactive questions, but the normal user stuff works just fine.

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got the fingerprint verification and authentication with public key and keyboard interactive working. There is still a dialog missing for special interactive questions, but the normal user stuff works just fine.</p>
<p><a href="http://blog.cynapses.org/wp-content/uploads/2009/07/kio_sftp.png" target=_blank"><img class="alignnone size-thumbnail wp-image-97" title="kio_sftp" src="http://blog.cynapses.org/wp-content/uploads/2009/07/kio_sftp-150x150.png" alt="kio_sftp" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/07/21/kio_sftp-authentication-with-libssh-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kio_sftp using libssh</title>
		<link>http://blog.cynapses.org/2009/07/20/kio_sftp-using-libssh/</link>
		<comments>http://blog.cynapses.org/2009/07/20/kio_sftp-using-libssh/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 14:50:07 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=94</guid>
		<description><![CDATA[I wanted to reimplement kio_sftp with libssh since some month. This week is another openSUSE Hack Week. I&#8217;m in the SUSE office in Nürnberg with some KDE developers. Dirk Müller helps me with the implementation. I&#8217;m normally not a C++ developer so it is a good oppurtunity to get help and things done. More on [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to reimplement kio_sftp with <a href="http://www.libssh.org/">libssh</a> since some month. This week is another openSUSE Hack Week. I&#8217;m in the SUSE office in Nürnberg with some KDE developers. Dirk Müller helps me with the implementation. I&#8217;m normally not a C++ developer so it is a good oppurtunity to get help and things done. More on Wednesday. The weather will be good tommorow so I plan to go climbing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/07/20/kio_sftp-using-libssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
