<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Madsdyd's Weblog</title>
	<atom:link href="http://madsdyd.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://madsdyd.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 25 Sep 2009 10:53:48 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='madsdyd.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/20a1c1f19833a8b81654cf4eebda85ae?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Madsdyd's Weblog</title>
		<link>http://madsdyd.wordpress.com</link>
	</image>
			<item>
		<title>Do not think that you can get fractional seconds into Oracle TIMESTAMP columns from Qt</title>
		<link>http://madsdyd.wordpress.com/2009/09/25/do-not-think-that-you-can-get-fractional-seconds-into-oracle-timestamp-columns-from-qt/</link>
		<comments>http://madsdyd.wordpress.com/2009/09/25/do-not-think-that-you-can-get-fractional-seconds-into-oracle-timestamp-columns-from-qt/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 10:53:48 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle qt datetime timestamp fractional seconds]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=44</guid>
		<description><![CDATA[Trying to use a QDateTime through a QSqlQuery into Oracle? No fractional seconds turning up?
There is a good reason for this, in the Qt source:
QByteArray qMakeOraDate(const QDateTime&#38; dt)
{
 QByteArray ba;
 ba.resize(7);
 int year = dt.date().year();
 ba[0]= (year / 100) + 100; // century
 ba[1]= (year % 100) + 100; // year
 ba[2]= dt.date().month();
 ba[3]= dt.date().day();
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=44&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Trying to use a QDateTime through a QSqlQuery into Oracle? No fractional seconds turning up?</p>
<p>There is a good reason for this, in the Qt source:</p>
<p><code>QByteArray qMakeOraDate(const QDateTime&amp; dt)<br />
{<br />
 QByteArray ba;<br />
 ba.resize(7);<br />
 int year = dt.date().year();<br />
 ba[0]= (year / 100) + 100; // century<br />
 ba[1]= (year % 100) + 100; // year<br />
 ba[2]= dt.date().month();<br />
 ba[3]= dt.date().day();<br />
 ba[4]= dt.time().hour() + 1;<br />
 ba[5]= dt.time().minute() + 1;<br />
 ba[6]= dt.time().second() + 1;<br />
 return ba;<br />
}</code></p>
<p>Basically Qt treats all QDateTime as DATE, TIME or DATETIME values, and does not transfer the fractional seconds.<br />
So, you have to figure out some other way&#8230; as I do as well&#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=44&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/09/25/do-not-think-that-you-can-get-fractional-seconds-into-oracle-timestamp-columns-from-qt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>Qt does require a QCoreApplication or QApplication object</title>
		<link>http://madsdyd.wordpress.com/2009/08/19/qt-does-require-a-qcoreapplication-or-qapplication-object/</link>
		<comments>http://madsdyd.wordpress.com/2009/08/19/qt-does-require-a-qcoreapplication-or-qapplication-object/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 13:32:11 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/2009/08/19/qt-does-require-a-qcoreapplication-or-qapplication-object/</guid>
		<description><![CDATA[Just fiddled with an app for 2 hours, trying to get a QTextStream to read stuff in the local encoding. Turns out the app did not have a Q(Core)Application object. Helped a lot to have one such&#8230;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=43&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just fiddled with an app for 2 hours, trying to get a QTextStream to read stuff in the local encoding. Turns out the app did not have a Q(Core)Application object. Helped a lot to have one such&#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=43&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/08/19/qt-does-require-a-qcoreapplication-or-qapplication-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>Encoding for a no-name mp4 player</title>
		<link>http://madsdyd.wordpress.com/2009/06/18/encoding-for-a-no-name-mp4-player/</link>
		<comments>http://madsdyd.wordpress.com/2009/06/18/encoding-for-a-no-name-mp4-player/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 19:51:44 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=40</guid>
		<description><![CDATA[My kid just got a used AtiPix mp4 player 1GB. It only supports playback of &#8220;avi&#8221; videos in 320&#215;240. Took a lot of fiddling around, running the windows program in wine, and help from Dark_Shikari in #ffmpeg on irc.freenode.org to figure this ffmpeg command line out:
ffmpeg -i input.mpeg -vcodec libxvid -s 320x240 -b 528000 -aspect [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=40&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My kid just got a used AtiPix mp4 player 1GB. It only supports playback of &#8220;avi&#8221; videos in 320&#215;240. Took a lot of fiddling around, running the windows program in wine, and help from Dark_Shikari in #ffmpeg on irc.freenode.org to figure this ffmpeg command line out:</p>
<p><code>ffmpeg -i input.mpeg -vcodec libxvid -s 320x240 -b 528000 -aspect 4:3 -r 20 -vtag XVID -acodec mp2 -ab 128000 output.avi</code></p>
<p>The key would seem to be -vcodec libxvid AND -vtag XVID.</p>
<p>Its a sucky player, but whatever it takes to make the kid happy&#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=40&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/06/18/encoding-for-a-no-name-mp4-player/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>KDE 4.2: love/hate &amp; konqueror bugs</title>
		<link>http://madsdyd.wordpress.com/2009/05/26/kde-4-2-lovehate-konqueror-bugs/</link>
		<comments>http://madsdyd.wordpress.com/2009/05/26/kde-4-2-lovehate-konqueror-bugs/#comments</comments>
		<pubDate>Tue, 26 May 2009 06:03:59 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kde4 konqueror bug]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=35</guid>
		<description><![CDATA[There are tons of great things about kde 4.2 especially for the developers. But there are still lots of features missing, and bugs, some of them glaring. I was hit by one of the more subtle bugs today; konqueror would start with two windows, and then crash. There was no way I could get it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=35&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are tons of great things about kde 4.2 especially for the developers. But there are still lots of features missing, and bugs, some of them glaring. I was hit by one of the more subtle bugs today; konqueror would start with two windows, and then crash. There was no way I could get it running, which was a pain.</p>
<p>Turns out that the file $HOME/.kde/share/apps/konqueror/closeditems_saved was corrupted. Deleting this file fixed everything up.</p>
<p>Now, I really look forward to a new release that fixes the krunner problems and adds dbus functionality to konsole. Then perhaps at some point, an inclusion in ubuntu of the kpilot and a finished akonadi. Then we are about where kde 3.5.9 was when I left it. Especially if I get the apt: io slave back. Sorely missing that one, I am.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=35&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/05/26/kde-4-2-lovehate-konqueror-bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>The magic of C++ templates</title>
		<link>http://madsdyd.wordpress.com/2009/03/09/the-magic-of-the-c-templates/</link>
		<comments>http://madsdyd.wordpress.com/2009/03/09/the-magic-of-the-c-templates/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 08:57:00 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c++ template]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/2009/03/09/the-magic-of-the-c-templates/</guid>
		<description><![CDATA[Yesterday I went and wanted to convert a function into a templated function in C++. No big deal, but one of my constructs gave me some problems. I&#8217;ll illustrate with an example function, that contains the problem I had
void myfunc( int a ) {
  some_class::some_method&#60;some_class&#62;( a );
}
There are good reasons for some_method to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=25&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yesterday I went and wanted to convert a function into a templated function in C++. No big deal, but one of my constructs gave me some problems. I&#8217;ll illustrate with an example function, that contains the problem I had</p>
<p><code>void myfunc( int a ) {<br />
  some_class::some_method&lt;some_class&gt;( a );<br />
}</code></p>
<p>There are good reasons for some_method to be templated with some_class, which has to do with the fact that some_method is static and needs to interface to some C code, that expects static callbacks, and what not.<br />
I wanted to make this work for both some_class, and some_other_class. Here is my first try:</p>
<p><code>template &lt;class T&gt;<br />
void myfunc( int a ) {<br />
  T::some_method&lt;T&gt;( a );<br />
}</code></p>
<p>This declaration/definition does not work. The compiler wants a primary expression before the first &gt;,and complains about the &#8220;,&#8221; operator ignoring its first argument.<br />
I was a bit stumped by this, but got some help from ##c++ on irc.freenode.net.<br />
Here is the right way to write it:</p>
<p><code>template &lt;class T&gt;<br />
void myfunc( int a ) {<br />
T::template some_method&lt;T&gt;( a );<br />
}</code></p>
<p>Turns out, that when the compiler needs to figure out what some_method is, it can not look in T for help. So, it assumes that some_method is not a templated function, and the first &#8216;&lt;&#8217; is interprented as operator&lt;. This also explains why it want a primary expression, and why it complains about operator,. </p>
<p>The solution: Let the compiler know that some_method is templated, by inserting &#8220;template &#8221; before the method call.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=25&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/03/09/the-magic-of-the-c-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>Kontact can post to wordpress</title>
		<link>http://madsdyd.wordpress.com/2009/03/07/kontact-can-post-to-wordpress/</link>
		<comments>http://madsdyd.wordpress.com/2009/03/07/kontact-can-post-to-wordpress/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 21:00:00 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/2009/03/07/journal-for-080309/</guid>
		<description><![CDATA[Read on userbase.kde.org that kontact can be used to post blog entries, and behold! It works.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=23&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Read on userbase.kde.org that kontact can be used to post blog entries, and behold! It works.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=23&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/03/07/kontact-can-post-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>Exim4 and max size of received messages in kubuntu/debian</title>
		<link>http://madsdyd.wordpress.com/2009/03/03/exim4-and-max-size-of-received-messages-in-kubuntudebian/</link>
		<comments>http://madsdyd.wordpress.com/2009/03/03/exim4-and-max-size-of-received-messages-in-kubuntudebian/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 08:24:30 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[exim4 kubuntu debian mailsize]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=21</guid>
		<description><![CDATA[Turns out exim3/4 at some point introduced a max size for messages it wants to receive.
If you have not changed anything, exim will refuse to accept messages larger than 50MB. I need to be able to receive mails larger than this. 
Figuring out how to change it under Kubuntu/debian was a bit harder than I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=21&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Turns out exim3/4 at some point introduced a max size for messages it wants to receive.</p>
<p>If you have not changed anything, exim will refuse to accept messages larger than 50MB. I need to be able to receive mails larger than this. </p>
<p>Figuring out how to change it under Kubuntu/debian was a bit harder than I thought, but I got some help on irc. First of all, debian allows to configure in two &#8220;modes&#8221;: split and non-split. This assumes split, which I believe is the default:</p>
<p><code><br />
sudo echo MESSAGE_SIZE_LIMIT=2000M &gt;&gt; /etc//exim4/conf.d/main/00_exim4-config_localmacrodefs<br />
sudo update-exim4.conf<br />
sudo /etc/init.d/exim4 restart<br />
</code></p>
<p>You can then check that the new size is set with</p>
<p><code><br />
sudo exim4 -bP message_size_limit<br />
</code></p>
<p>Thanks to valdyn and petemc on irc.freenode.net for helping me out.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=21&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/03/03/exim4-and-max-size-of-received-messages-in-kubuntudebian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>Boost unit testing strings</title>
		<link>http://madsdyd.wordpress.com/2008/10/05/boost-unit-testing-strings/</link>
		<comments>http://madsdyd.wordpress.com/2008/10/05/boost-unit-testing-strings/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 16:28:04 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boost unittest]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=19</guid>
		<description><![CDATA[If you use the boost unit test framework, you probably have a need to test the string output of a function once in a while. If you use BOOST_CHECK_EQUAL Boost kindly reports string differences, by listing the input and output. Then you can start comparing. Not very usefull.
Instead you can use something like this:
boost::test_tools::predicate_result
compare_qstrings( QString [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=19&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you use the boost unit test framework, you probably have a need to test the string output of a function once in a while. If you use BOOST_CHECK_EQUAL Boost kindly reports string differences, by listing the input and output. Then you can start comparing. Not very usefull.</p>
<p>Instead you can use something like this:</p>
<p><code>boost::test_tools::predicate_result<br />
compare_qstrings( QString const &amp; actual, QString const &amp; expected )<br />
{<br />
  // Lets get the trivial case out of the way.<br />
  if ( actual == expected ) {<br />
    return true;<br />
  }<br />
  // We want output like this:<br />
  // boost_extract_xml_from_es_task_package.cc(106): error in "itemorder":<br />
  // check "todo" ==<br />
  // output_24575997 failed<br />
  // output differs at position 42<br />
  // expected ...ISO-8859-1"?&gt;todo<br />
  //                          ^</p>
<p>  boost::test_tools::predicate_result res( false );<br />
  int i          = 0;<br />
  int actual_l   = actual.size();<br />
  int expected_l = expected.size();<br />
  int max_l      = actual_l &lt; expected_l ? actual_l : expected_l;<br />
  if ( actual_l &lt; expected_l ) {<br />
    max_l = actual_l;<br />
    res.message() &lt;&lt; "actual is shorter than expected\n"; // &lt; expected_l ) {<br />
    max_l = expected_l;<br />
    res.message() &lt;&lt; "actual is longer than expected\n"; // &lt;&lt; std::endl;<br />
  }<br />
  while( i &lt; max_l &amp;&amp; actual.at( i ) == expected.at( i ) ) {<br />
    ++i;<br />
  }<br />
  res.message() &lt;&lt; "actual and expected differs at position " &lt;&lt; i &lt; 20) ? (i - 20) : 0;<br />
  const char * prefix = begin &gt; 0 ? "..." : "";<br />
  res.message() &lt;&lt; "expected: " &lt;&lt; prefix &lt;&lt; expected.mid( begin, 70 )<br />
                &lt;&lt; ( begin + 70 &lt; expected_l ? "..." : "" ) &lt;&lt; "\n"; // std::endl;<br />
  res.message() &lt;&lt; "actual:   " &lt;&lt; prefix &lt;&lt; actual.mid( begin, 70 )<br />
                &lt;&lt; ( begin + 70 &lt; actual_l ? "..." : "" ) &lt;&lt; "\n"; // std::endl;<br />
  res.message() &lt;&lt; "          " &lt;&lt; QString( ( i - begin ) + QString( prefix ).size(), ' ' ).toStdString()<br />
                &lt;&lt; "^"; // &lt;&lt; std::endl;<br />
  return res;<br />
}<br />
</code></p>
<p>And, call it like this:<br />
<code><br />
BOOST_CHECK( compare_qstrings( "string a", "string b" ) )<br />
</code><br />
and then you will get output like this:</p>
<p><code><br />
boost_extract_xml_from_es_task_package.cc(470): error in "itemorder": check compare_qstrings( extract.extractXml( input_24229551 ), output_24229551 ) failed. actual is shorter than expected<br />
actual and expected differs at position 23<br />
expected: &lt;ill5:ILL-APDU xmlns:ill5="...<br />
actual:   &lt;ill5:ILL-APDU xmlns:ill5="...<br />
                           ^<br />
</code></p>
<p>which is way more useful in my opinion.</p>
<p>Of course, wordpress formats it so it is totally unreadable &#8211; so you just have to take my word for it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The above uses QString, but it is of course trivial to change it to use std::string.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=19&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2008/10/05/boost-unit-testing-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to build kdenlive for KDE4 yourself</title>
		<link>http://madsdyd.wordpress.com/2008/08/15/how-to-build-kdenlive-for-kde4-yourself/</link>
		<comments>http://madsdyd.wordpress.com/2008/08/15/how-to-build-kdenlive-for-kde4-yourself/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 19:06:08 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kde4]]></category>
		<category><![CDATA[kdenlive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[video editor]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=13</guid>
		<description><![CDATA[I just updated my wizard that builds Kdenlive for KDE4 on Linux. 
It should now be easier than ever (perhaps unless your hobby is tweaking linux video libraries) to get the development version of kdenlive to run on your system.
Get it here &#8211; and remember to vote &#8220;good&#8221; for it  .
    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=13&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I just updated my wizard that builds <a href="http://www.kdenlive.org/">Kdenlive</a> for <a href="http://www.kde.org/">KDE4</a> on Linux. </p>
<p>It should now be easier than ever (perhaps unless your hobby is tweaking linux video libraries) to get the development version of kdenlive to run on your system.</p>
<p><a href="http://www.kde-apps.org/content/show.php?content=85826">Get it here</a> &#8211; and remember to vote &#8220;good&#8221; for it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/madsdyd.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/madsdyd.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=13&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2008/08/15/how-to-build-kdenlive-for-kde4-yourself/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
		<item>
		<title>Kinetic Typography</title>
		<link>http://madsdyd.wordpress.com/2008/08/14/kinetic-typography/</link>
		<comments>http://madsdyd.wordpress.com/2008/08/14/kinetic-typography/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 16:31:11 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kinetic typography]]></category>
		<category><![CDATA[synfig]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=9</guid>
		<description><![CDATA[Yesterday, while looking for an answer to a problem with synfig on irv, pixelgeek pointed out Kinetic Typography to me. That is some really cool stuff they do. Be sure to follow the links and watch the videos with sound.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=9&subd=madsdyd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yesterday, while looking for an answer to a problem with <a href="http://synfig.org/">synfig</a> on irv, pixelgeek pointed out <a href="http://en.wikipedia.org/wiki/Kinetic_typography">Kinetic Typography</a> to me. That is some really cool stuff they do. Be sure to follow the links and watch the videos with sound.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/madsdyd.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/madsdyd.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&blog=4508694&post=9&subd=madsdyd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2008/08/14/kinetic-typography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d65bbcf427de53574ee1d1329581e0e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">madsdyd</media:title>
		</media:content>
	</item>
	</channel>
</rss>