<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Madsdyd&#039;s Weblog</title>
	<atom:link href="http://madsdyd.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://madsdyd.wordpress.com</link>
	<description>Stuff that I could not google</description>
	<lastBuildDate>Wed, 26 Oct 2011 19:42:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='madsdyd.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Madsdyd&#039;s Weblog</title>
		<link>http://madsdyd.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://madsdyd.wordpress.com/osd.xml" title="Madsdyd&#039;s Weblog" />
	<atom:link rel='hub' href='http://madsdyd.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The pain of oracle nulls in check constraints</title>
		<link>http://madsdyd.wordpress.com/2011/10/26/the-pain-of-oracle-nulls-in-check-constraints/</link>
		<comments>http://madsdyd.wordpress.com/2011/10/26/the-pain-of-oracle-nulls-in-check-constraints/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 19:41:27 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[check constraint]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=84</guid>
		<description><![CDATA[So, you are using oracle and think you have the part about &#8221; strings beeing null nailed? Well, so did I (only goes to show how silly I am) until I found that a number of constraints was not working at all. Example The reason the check on b does not work, is because of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=84&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, you are using oracle and think you have the part about &#8221; strings beeing null nailed?</p>
<p>Well, so did I (only goes to show how silly I am) until I found that a number of constraints was not working at all. Example</p>
<p><pre class="brush: sql;">

drop table testme;
create table testme (
z NVARCHAR2(13),
a NVARCHAR2(13) CHECK (a IN ( 'foo', 'bar' ) ),
b NVARCHAR2(13) CHECK (b IN ( '', 'bar' ) )
);

insert into testme values ( '1', '', '' ); -- OK, a allowed to be null
insert into testme values ( '2', 'foo', '' ); -- OK, b allowed to ''/null
insert into testme values ( '3', '', 'bar' ); -- OK, b allowed to be bar
insert into testme values ( '4', 'foo', 'bar' ); -- OK
insert into testme values ( '5', 'foobar', 'bar' ); -- Fails: a not allowed to be foobar: OK
insert into testme values ( '6', 'foo', 'foo' ); -- DOES NOT FAIL??? b not allowed to be foo?

</pre></p>
<p>The reason the check on b does not work, is because of three things:</p>
<p>a) &#8221; becomes null in oracle (but you knew that, because you learn that very early on)</p>
<p>b) comparing something to null becomes unknown in oracle (I did not*really* appreciate this)</p>
<p>c) CHECK only fails, if the result is actually False. (I did not at all know this)</p>
<p>c) means that CHECK does not fail, if the result is unknown&#8230;</p>
<p>Enter Wikipedia:</p>
<p>&#8220;While a DML WHERE clause must evaluate to True for a row, a check<br />
constraint must not evaluate to False. This means that a check<br />
constraint will succeed if the result of the check is either True or<br />
Unknown.&#8221;</p>
<p>http://en.wikipedia.org/wiki/Null_(SQL)#Check_constraints</p>
<p>So, the check does not fail.</p>
<p>Now, if you tried the same in statement, with a select, it would not actually return any rows. Assume the table contains a row where b = &#8216;foobar&#8217;</p>
<p>

select * from testme where b in ( '', 'bar )

</p>
<p>As you would expect, this only returns rows where b == &#8216;bar&#8217;.</p>
<p>&#8230;</p>
<p>Ok, so I know this now. I still believe the engineer that thought up this particular piece of sematics should be hugely ashamed&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madsdyd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=84&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2011/10/26/the-pain-of-oracle-nulls-in-check-constraints/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>Automatic Qt gui testing with Hooq &#8211; getting it to compile and work</title>
		<link>http://madsdyd.wordpress.com/2011/10/19/automatic-qt-gui-testing-with-hooq-getting-it-to-compile-and-work/</link>
		<comments>http://madsdyd.wordpress.com/2011/10/19/automatic-qt-gui-testing-with-hooq-getting-it-to-compile-and-work/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 19:06:23 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[automatic testing]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[hooq]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=76</guid>
		<description><![CDATA[I need to write some automatic tests of a Qt program I have written. I stumbled upon the Hooq system to script these things. For some reason the images are missing in my end. If you look through the discussion at the end, you will se that a lot of people have trouble gettuing hooq [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=76&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I need to write some automatic tests of a Qt program I have written.</p>
<p>I stumbled upon the <a title="Blog post about the Hooq system" href="http://www.fredemmott.co.uk/blog/2010/01/18/Qt4 GUI Testing with Hooq">Hooq system</a> to script these things. For some reason the images are missing in my end. If you look through the discussion at the end, you will se that a lot of people have trouble gettuing hooq to record anything on their applications. I did to, this post describes how I got it to work.</p>
<p>I downloaded the source using:</p>
<pre>git clone https://git.gitorious.org/hooq/hooq.git.</pre>
<p>I am running Kubuntu 11.4, and I needed to apply the following patch, heavily inspired by the <a title="Blog about changing the way hooq runs gdb" href="http://shiqiyang.com/blog/?p=195">source here</a>, to make it work:</p>
<p><pre class="brush: diff;">
diff --git a/hooqInjector/GdbInjector.cpp b/hooqInjector/GdbInjector.cpp
index a390601..9668926 100644
--- a/hooqInjector/GdbInjector.cpp
+++ b/hooqInjector/GdbInjector.cpp
@@ -92,27 +92,28 @@ void GdbInjector::startProcess()
Q_ASSERT(m_gdb-&gt;state() == QProcess::Running);
Q_ASSERT(m_gdb-&gt;isWritable());
m_gdbStream.setDevice(m_gdb);
-       m_gdbStream &lt;&lt; &quot;set auto-solib-add off&quot; &lt;&lt; endl; // avoid loading symbols for shared libraries
-                                                        // that we do not need to interact with from GDB
-       m_gdbStream &lt;&lt; &quot;break _start&quot; &lt;&lt; endl; // C entry point - after main libraries have been loaded
-       m_gdbStream &lt;&lt; &quot;set args&quot; &lt;&lt; argumentsString &lt;&lt; endl;
-       m_gdbStream &lt;&lt; &quot;run&quot; &lt;&lt; endl; // run until we hit it, and therefore Qt shared libraries are loaded
-       m_gdbStream &lt;&lt; &quot;sharedlibrary libdl&quot; &lt;&lt; endl; // load the libdl library so that we can call __dlopen()
-       m_gdbStream &lt;&lt; &quot;sharedlibrary libc&quot; &lt;&lt; endl;  // load the libc library so that we can call __dlopen()
-       m_gdbStream &lt;&lt; &quot;sharedlibrary libQtCore&quot; &lt;&lt; endl; // load QtCore for breaking on QCoreApplication::exec()
-       m_gdbStream &lt;&lt; &quot;break QCoreApplication::exec()&quot; &lt;&lt; endl; // now, we can set this breakpoint...
-       m_gdbStream &lt;&lt; &quot;continue&quot; &lt;&lt; endl;
-
-       // Newer systems
-       m_gdbStream &lt;&lt; QString(&quot;call dlopen(\&quot;%1\&quot;, %2)&quot;).arg(libraryPath()).arg(QString::number(RTLD_NOW)) &lt;&lt; endl; // load our library
-       // Older systems
-       m_gdbStream &lt;&lt; QString(&quot;call __dlopen(\&quot;%1\&quot;, %2)&quot;).arg(libraryPath()).arg(QString::number(RTLD_NOW)) &lt;&lt; endl; // load our library
-
-       m_gdbStream &lt;&lt; &quot;sharedlibrary injectedHooq&quot; &lt;&lt; endl; // load the hooq injector library so that we can call startHooq()
-       m_gdbStream &lt;&lt; &quot;call startHooq()&quot; &lt;&lt; endl; // install our plugin (which required QCoreApplication setup)
-       m_gdbStream &lt;&lt; &quot;continue&quot; &lt;&lt; endl; // run the app
-       m_gdbStream &lt;&lt; &quot;backtrace&quot; &lt;&lt; endl; // just in case (use with --spam)
-       m_gdbStream &lt;&lt; &quot;quit&quot; &lt;&lt; endl; // after the application has exited, quit gdb
+        m_gdbStream &lt;&lt; &quot;set breakpoint pending on&quot; &lt;&lt; endl;
+        m_gdbStream &lt;&lt; &quot;set auto-solib-add off&quot; &lt;&lt; endl; // avoid loading symbols for shared libraries
+                                                         // that we do not need to interact with from GDB
+        m_gdbStream &lt;&lt; &quot;break _start&quot; &lt;&lt; endl; // C entry point - after main libraries have been loaded
+        m_gdbStream &lt;&lt; &quot;set args&quot; &lt;&lt; argumentsString &lt;&lt; endl;
+        m_gdbStream &lt;&lt; &quot;run&quot; &lt;&lt; endl; // run until we hit it, and therefore Qt shared libraries are loaded
+        m_gdbStream &lt;&lt; &quot;sharedlibrary libdl&quot; &lt;&lt; endl; // load the libdl library so that we can call __dlopen()
+        m_gdbStream &lt;&lt; &quot;sharedlibrary libc&quot; &lt;&lt; endl;  // load the libc library so that we can call __dlopen()
+        //m_gdbStream &lt;&lt; QString(&quot;call dlopen(\&quot;/usr/lib64/libQtCore.so.4\&quot;,%1)&quot;).arg(QString::number(RTLD_NOW)) &lt;&lt; endl;
+        // Newer systems
+        m_gdbStream &lt;&lt; QString(&quot;call dlopen(\&quot;%1\&quot;, %2)&quot;).arg(libraryPath()).arg(QString::number(RTLD_NOW)) &lt;&lt; endl; // load our library
+        // Older systems
+        m_gdbStream &lt;&lt; QString(&quot;call __dlopen(\&quot;%1\&quot;, %2)&quot;).arg(libraryPath()).arg(QString::number(RTLD_NOW)) &lt;&lt; endl; // load our library
+        m_gdbStream &lt;&lt; &quot;sharedlibrary libQtCore&quot; &lt;&lt; endl; // load QtCore for breaking on QCoreApplication::exec()
+        m_gdbStream &lt;&lt; &quot;sharedlibrary libQtGui&quot; &lt;&lt; endl; // load QtCore for breaking on QCoreApplication::exec()
+        m_gdbStream &lt;&lt; &quot;break QCoreApplication::exec&quot; &lt;&lt; endl; // now, we can set this breakpoint...
+        m_gdbStream &lt;&lt; &quot;continue&quot; &lt;&lt; endl;
+        m_gdbStream &lt;&lt; &quot;sharedlibrary injectedHooq&quot; &lt;&lt; endl; // load the hooq injector library so that we can call startHooq()
+        m_gdbStream &lt;&lt; &quot;call startHooq()&quot; &lt;&lt; endl; // install our plugin (which required QCoreApplication setup)
+        m_gdbStream &lt;&lt; &quot;continue&quot; &lt;&lt; endl; // run the app
+        m_gdbStream &lt;&lt; &quot;backtrace&quot; &lt;&lt; endl; // just in case (use with --spam)
+        m_gdbStream &lt;&lt; &quot;quit&quot; &lt;&lt; endl; // after the application has exited, quit gdb
}

void GdbInjector::attach(Q_PID processId)
</pre></p>
<p>Now, you also make *sure* that your have the Qt library debug symbols installed on your system. I had to do:</p>
<pre>sudo apt-get install libqt4-dbg</pre>
<p>and then recompile both my app and hooq for it to work.</p>
<p>Then it just worked, and hooq recorded events, and so on. Whether this system works to my full satisfaction remains to be seen.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madsdyd.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=76&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2011/10/19/automatic-qt-gui-testing-with-hooq-getting-it-to-compile-and-work/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>Qt::ApplicationModal and Dialogs designed with QtCreator</title>
		<link>http://madsdyd.wordpress.com/2010/11/23/qtapplicationmodal-and-dialogs-designed-with-qtcreator/</link>
		<comments>http://madsdyd.wordpress.com/2010/11/23/qtapplicationmodal-and-dialogs-designed-with-qtcreator/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 12:27:35 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=73</guid>
		<description><![CDATA[If you design a dialog with qtcreator, and do *not* tick the &#8220;modal&#8221; property, weird stuff happen. The dialog will not be modal, even though you show it with exec(). It will report it self as Qt::ApplicationModal, but it wont actually be. So, remember to tick that &#8220;modal&#8221; property in qtcreator/designer. Sigh.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=73&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you design a dialog with qtcreator, and do *not* tick the &#8220;modal&#8221; property, weird stuff happen.<br />
The dialog will not be modal, even though you show it with exec(). It will report it self as Qt::ApplicationModal, but it wont actually be.</p>
<p>So, remember to tick that &#8220;modal&#8221; property in qtcreator/designer.</p>
<p>Sigh.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madsdyd.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=73&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2010/11/23/qtapplicationmodal-and-dialogs-designed-with-qtcreator/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>Formatting an USB key for the Denver DMB-105HD</title>
		<link>http://madsdyd.wordpress.com/2010/11/02/formatting-an-usb-key-for-the-denver-dmb-105hd/</link>
		<comments>http://madsdyd.wordpress.com/2010/11/02/formatting-an-usb-key-for-the-denver-dmb-105hd/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 21:32:19 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=68</guid>
		<description><![CDATA[For some reasons my cheap Denver DMB-105HD MPEG4 DVB-T box, can not read the usb keys it formats itself. Sigh. Luckily it works with a key formated under Linux, using the mtools like this: mformat -F -v PVR z: This is with two partitions; /dev/sdb and /dev/sdb1, where z: points to /dev/sdb. Oh, and my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=68&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some reasons my cheap Denver DMB-105HD MPEG4 DVB-T box, can not read the usb keys it formats itself.</p>
<p>Sigh.</p>
<p>Luckily it works with a key formated under Linux, using the mtools like this:<br />
<code><br />
mformat -F -v PVR z:<br />
</code></p>
<p>This is with two partitions; /dev/sdb and /dev/sdb1, where z: points to /dev/sdb.</p>
<p>Oh, and my serial number starts with 5753 &#8211; it seems there is a big change at around 5801.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madsdyd.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=68&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2010/11/02/formatting-an-usb-key-for-the-denver-dmb-105hd/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>Printing a bitmap with the POS 104 / PRP-085IIIT receipt printer</title>
		<link>http://madsdyd.wordpress.com/2010/10/19/printing-a-bitmap-with-the-pos-104-prp-085iiit-receipt-printer/</link>
		<comments>http://madsdyd.wordpress.com/2010/10/19/printing-a-bitmap-with-the-pos-104-prp-085iiit-receipt-printer/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 20:45:33 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ESC/POS POS 104 PRP-085IIIT bitmap output Qt C++ GS * GS / Linux]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=50</guid>
		<description><![CDATA[Fiddled around some more with the new receipt printer I got. I needed some code to print a logo. I got some good information on ESC/POS here and also here. Turns out, that ESC/POS has a number of commands to print bitmaps. I ended up using the GS * command, which defines a bitmap, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=50&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Fiddled around some more with the new receipt printer I got. I needed some code to print a logo.</p>
<p>I got some good information on ESC/POS <a href="http://nicholas.piasecki.name/blog/2009/12/sending-a-bit-image-to-an-epson-tm- t88iii-receipt-printer-using-c-and-escpos/">here</a> and also <a href="http://www.barcode-manufacturer.com/receipt_printer/printer_image_upload.html">here</a>.</p>
<p>Turns out, that ESC/POS has a number of commands to print bitmaps. I ended up using the GS * command, which defines a bitmap, and then, the GS / command, which can print it.</p>
<p>Here is some example Qt/C++ code, that loads an image, and creates a QByteArray containing the bytes needed to do a GS * command. Even if you do not use Qt, the code should be so straightforward, that you should be able to get it working with other libs/languages quite easily. </p>
<p><pre class="brush: cpp;">
// C++
#include &lt;iostream&gt;
#include &lt;iomanip&gt;
#include &lt;vector&gt;

// Qt
#include &lt;QCoreApplication&gt;
#include &lt;QImage&gt;

using namespace std;

class ESCPOSImage {
private:
    int m_width;
    int m_height;
    int m_gs_x;
    int m_gs_y;
    int m_gs_k;
    // Actual bytes for image - could have used QByteArray for this, I guess.
    vector &lt;unsigned char&gt; m_bytes;

    // This turns on a pixel a position x, y as you would expect. 
    // The bytes in the bitmap is stored in a weird &quot;y first&quot;, &quot;x second&quot; order.
    // The bit fiddling here takes care of it.
    void setPixel( int x, int y ) {
        size_t byte_index = x * m_gs_y + y / 8;
        int bit_no = y % 8;
        // Swap msb/lsb order. This probably only works on machines with &quot;normal&quot; endianess.....
        unsigned char bit = 1 &lt;&lt; ( 7 - bit_no );
        m_bytes.at( byte_index ) = m_bytes.at( byte_index ) | bit;
    }

public:
    ESCPOSImage( const QImage &amp; image ) {
        // Set up x and y as pr. epson manual
        m_width = image.width();
        m_height = image.height();

        m_gs_x = m_width / 8 + (m_width % 8 != 0?1:0);
        m_gs_y = m_height / 8 + (m_height % 8 != 0?1:0);
        
         if ( m_gs_x &gt; 255 || m_gs_y &gt; 255 ) {
            // You may want to write an error message here
            throw &quot;Too large on dimension&quot;; 
        }

        m_gs_k = m_gs_x * m_gs_y * 8;
        // Bit unsure about this limit. It depends on the actual printer....
        if ( m_gs_k &gt; (3072*8) ) {
            // You may want to write an error message here
            throw &quot;Too large on area&quot;; 
        }

        vector&lt;unsigned char&gt; bytes( m_gs_k, 0 ); // Blank all bytes.
        m_bytes = bytes;
        
        // Iterate over the image, turn on any pixels that are set in the monochromo image.
        for ( int i_y = 0; i_y &lt; m_height; ++i_y ) {
            for ( int i_x = 0; i_x &lt; m_width; ++i_x ) {
                if ( image.pixelIndex( i_x, i_y ) == Qt::color1 ) {
                    setPixel( i_x, i_y );
                }
            }
        }
    }

    // Access internal representation. Should be const something, I guess.
    vector&lt;unsigned char&gt; &amp; getBytes() {
        return m_bytes;
    }

    // Bytes suitable to send to the printer to define the bitmap.
    QByteArray getGSStar() {
        QByteArray res( m_bytes.size() + 4, 0 );
        res[0] = 29;
        res[1] = '*';
        res[2] = (unsigned char) m_gs_x;
        res[3] = (unsigned char) m_gs_y;
        for ( size_t i = 0; i &lt; m_bytes.size(); ++i ) {
            res[ 4 + i ] = m_bytes.at( i );
        }
        return res;
    };

};

int main( int argc, char ** argv ) {
    // Note, that exception code is not handled here!
    // If you get weird errors, try putting in an exception handler around the body of main.

    // Fire up Qt.
    QCoreApplication app( argc, argv );
 
    // Assume the user was friendly enough to pass the name of an image, load it.
    QImage orgImage( argv[1] );
    if ( orgImage.isNull() ) {
        cerr &lt;&lt; &quot;Unable to load image&quot; &lt;&lt; endl;
        return 1;
    }

    // Convert to monochrome. The conversion done by Qt is a bit bad. So probably a good idea to be monochrome already...
    QImage monoImage = orgImage.convertToFormat( QImage::Format_Mono, Qt::MonoOnly );
    if ( monoImage.isNull() ) {
        cerr &lt;&lt; &quot;Unable to convert image to monochrome&quot; &lt;&lt; endl;
        return 1;
    }

    // Create the ESCPOS image representation, get the bytes that represents the GS Star command, and dump the raw bytes to stdout.
    ESCPOSImage posImage( monoImage );
    QByteArray ar = posImage.getGSStar();
    for ( int i = 0; i &lt; ar.size(); ++i ) {
        cout &lt;&lt; (unsigned char) ar[i];
    }
    cout &lt;&lt; &quot;\n&quot;; // This may not be needed, actually.

    // Do a GS / to actually output the bitmap.
    cout &lt;&lt; (unsigned char) 29 &lt;&lt; &quot;/&quot; &lt;&lt; (unsigned char) 0 &lt;&lt; &quot;\n&quot;;
    
    return 0;
}
</pre></p>
<p>If you are running linux, you want to do something like:</p>
<p><code><br />
g++  -L/usr/lib -lQtSql -lQtGui -lQtCore -lpthread -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I. -I. -o test-bitmap test-bitmap.cc<br />
</code></p>
<p>and then, something like</p>
<p><code><br />
./test-bitmap some-image.png &gt; /dev/usblp0<br />
</code></p>
<p>and you should be set.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madsdyd.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=50&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2010/10/19/printing-a-bitmap-with-the-pos-104-prp-085iiit-receipt-printer/feed/</wfw:commentRss>
		<slash:comments>6</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>Getting the POS 104 / PRP-085IIIT to print Latin1</title>
		<link>http://madsdyd.wordpress.com/2010/10/16/getting-the-pos-104-prp-085iiit-to-print-latin1/</link>
		<comments>http://madsdyd.wordpress.com/2010/10/16/getting-the-pos-104-prp-085iiit-to-print-latin1/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 20:53:38 +0000</pubDate>
		<dc:creator>madsdyd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madsdyd.wordpress.com/?p=47</guid>
		<description><![CDATA[Got a new receipt printer for at project I am doing. Its probably pretty OEM. The only markings it have is POS 104, and possibly PRP-085IIIT and then, perhaps, full name is: PRP-085IIIT-BI-B-UP. I needed it to print the danish letters. Took me pretty long to figure out that I needed it to go away [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=47&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Got a new receipt printer for at project I am doing.</p>
<p>Its probably pretty OEM. The only markings it have is POS 104, and possibly PRP-085IIIT and then, perhaps, full name is: PRP-085IIIT-BI-B-UP.</p>
<p>I needed it to print the danish letters. Took me pretty long to figure out that I needed it to go away from two byte character mode (FS .), and use ESC t 6 to select &#8220;Western Europe&#8221; aka Latin1. Then it prints Latin1 happily.</p>
<p>Small shell script to configure for this (values are octal)</p>
<p><pre class="brush: bash;">
echo -n &quot;&#092;&#048;034.&#092;&#048;033t&#092;&#048;006&quot;
</pre></p>
<p>Hex:<br />
1c 2e 1b 74 06</p>
<p>Just wanted to share here, in case anyone else gets such a POS printer.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/madsdyd.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/madsdyd.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/madsdyd.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/madsdyd.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/madsdyd.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/madsdyd.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/madsdyd.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=47&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2010/10/16/getting-the-pos-104-prp-085iiit-to-print-latin1/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>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]= [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=44&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=4508694&amp;post=44&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></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&amp;blog=4508694&amp;post=43&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=4508694&amp;post=43&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=madsdyd.wordpress.com&amp;blog=4508694&amp;post=40&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=4508694&amp;post=40&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://madsdyd.wordpress.com/2009/06/18/encoding-for-a-no-name-mp4-player/feed/</wfw:commentRss>
		<slash:comments>6</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&amp;blog=4508694&amp;post=35&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/madsdyd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/madsdyd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=4508694&amp;post=35&amp;subd=madsdyd&amp;ref=&amp;feed=1" width="1" height="1" />]]></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>
	</channel>
</rss>
