<?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>Skybert's Corner</title>
	<atom:link href="http://skybert.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://skybert.wordpress.com</link>
	<description>random rants on technology I care about</description>
	<lastBuildDate>Wed, 30 Nov 2011 21:54:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='skybert.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Skybert's Corner</title>
		<link>http://skybert.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://skybert.wordpress.com/osd.xml" title="Skybert&#039;s Corner" />
	<atom:link rel='hub' href='http://skybert.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Setting up xinerama using the open source nv driver</title>
		<link>http://skybert.wordpress.com/2009/10/22/setting-up-xinerama-using-the-open-source-nv-driver/</link>
		<comments>http://skybert.wordpress.com/2009/10/22/setting-up-xinerama-using-the-open-source-nv-driver/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 10:54:56 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=107</guid>
		<description><![CDATA[Getting xinerama working with the closed source nVIDIA driver is easy. However, setting it up using the open source nv a bit tricker. The solution, however, is quite easy once you know it Figure out the total capacity of your screens: $ xrandr -q Add the horizontal and vertical max sizes of your screens and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=107&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Getting xinerama working with the closed source nVIDIA driver is easy. However, setting it up using the open source <code>nv</code> a bit tricker. </p>
<p>The solution, however, is quite easy once you know it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Figure out the total capacity of your screens:</p>
<pre>
$ xrandr -q
</pre>
<p>Add the horizontal and vertical max sizes of your screens and dive into your <code>/etc/X11/xorg.conf</code> and a <code>Virtual</code>  directive to your <code>Display</code> sub section that accounts for the total virtual screen. </p>
<pre>
    SubSection     "Display"
        Depth       24
        #  1440+1600  900+1200
        Virtual     3040 2100
    EndSubSection
</pre>
<p>The final step is then to set tell <code>xrandr</code> setup your xinerama. I kick off my X session with the <code>.xinitrc</code> file, so I&#8217;ve put these two lines there (if you don&#8217;t use this approach, you can just type these lines manually after logging in):</p>
<pre>
xrandr  --output VGA1 --off
xrandr  --output VGA1 --right-of LVDS --pos 1440x900 --auto
</pre>
<p>And that&#8217;s it! Xinerama without the need of a closed source binary driver <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=107&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/10/22/setting-up-xinerama-using-the-open-source-nv-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaMail Mocking and BCC fields</title>
		<link>http://skybert.wordpress.com/2009/10/15/javamail-mocking-and-bcc-fields/</link>
		<comments>http://skybert.wordpress.com/2009/10/15/javamail-mocking-and-bcc-fields/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 09:10:51 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=105</guid>
		<description><![CDATA[It seems to me that the JavaMail Mock library has dodgy handling of BCC fields. Sending a message with BCC fields makes it possible to read the fields again when receiving the email (!) This is against the definition of BCC, isn&#8217;t it? Session session = Session.getDefaultInstance(mMailProperties, null); MimeMessage message = new MimeMessage(session); String body [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=105&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seems to me that the JavaMail Mock library has dodgy handling of BCC fields. Sending a message with BCC fields makes it possible to read the fields again when receiving the email (!) This is against the definition of BCC, isn&#8217;t it?</p>
<pre>
    Session session = Session.getDefaultInstance(mMailProperties, null);
    MimeMessage message = new MimeMessage(session);
    String body = "body from " + getClass().getName()
      + " @" + Calendar.getInstance().getTime().toString();
    message.setContent(body, "plain/text");
    message.setRecipients(RecipientType.TO, mTo);
    message.setRecipients(RecipientType.BCC, address2 + ", " + address3);
    Transport.send(message);
  ...
  store.connect(...);
  Folder folder = store.getFolder(...);
  folder.open(Folder.READ_WRITE);
  javax.mail.Message[] allMessages = folder.getMessages();
  for (javax.mail.Message message : allMessages) {
    ...
    Address[] addresses = theMessage.getRecipients(RecipientType.BCC);
</pre>
<p>The variable &#8216;addresses&#8217; now hold two entries. Note that <code>Mailbox.get(mTo)</code> works as you&#8217;d expect.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=105&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/10/15/javamail-mocking-and-bcc-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>IIS doesn&#8217;t impress me</title>
		<link>http://skybert.wordpress.com/2009/10/15/iis-doesnt-impress-me/</link>
		<comments>http://skybert.wordpress.com/2009/10/15/iis-doesnt-impress-me/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:06:41 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[The Dark Side]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=103</guid>
		<description><![CDATA[Okay, I admit it, this might not be completely fair as I don&#8217;t know the server setup, but still the help message at the bottom is pretty impressive stuff The page cannot be displayed The request cannot be processed at this time. The amount of traffic exceeds the Web site's configured capacity. Please try the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=103&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Okay, I admit it, this might not be completely fair as I don&#8217;t know the server setup, but still the help message at the bottom is pretty impressive stuff <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<pre>
The page cannot be displayed
The request cannot be processed at this time. The amount of traffic exceeds the Web site's configured capacity. 

Please try the following:
Click the Refresh button, or try again later.
If this error persists, contact the Web site administrator to inform them that this error continues to occur for this URL address.
HTTP Error 500.13 - Server error: Web server is too busy.
Internet Information Services (IIS)

Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 500.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Monitoring and Tuning Web Application Performance, Performance Monitoring and Scalability Tools, and About Custom Error Messages.
</pre>
<p>The site in question was http://birkebeiner.no/Min-Side/Pamelding/ were I wanted to sign up for the Birkebeiner ski race next March.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=103&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/10/15/iis-doesnt-impress-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle start/stop script that works</title>
		<link>http://skybert.wordpress.com/2009/08/24/oracle-startstop-script-that-works/</link>
		<comments>http://skybert.wordpress.com/2009/08/24/oracle-startstop-script-that-works/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 08:32:14 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[BASH]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=101</guid>
		<description><![CDATA[The oracle start/stop script I&#8217;ve found on the net (written for REHL, I believe), didn&#8217;t work for me. Thus, I wrote a wee script that works for my 11g install (on Debian). #! /usr/bin/env bash function stop_db() { sqlplus /nolog &#60;&#60;EOF connect /as sysdba shutdown EOF lsnrctl stop } function start_db() { sqlplus /nolog &#60;&#60;EOF [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=101&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <code>oracle</code> start/stop script I&#8217;ve  found on the net (written for REHL, I believe), didn&#8217;t work for me. Thus, I wrote a wee script that works for my 11g install (on Debian).</p>
<pre>
#! /usr/bin/env bash                                                                     

function stop_db()
{
    sqlplus /nolog &lt;&lt;EOF
connect /as sysdba
shutdown
EOF
    lsnrctl stop
}

function start_db()
{
    sqlplus /nolog &lt;&lt;EOF
connect /as sysdba
startup
EOF
    lsnrctl start
}

case &quot;$1&quot; in
    start)
        start_db
        ;;
    stop)
        stop_db
        ;;
    *)
        echo &quot;Usage:&quot; `basename $0` &quot;"
        ;;
esac

exit 0
</pre>
<p>As you can see, its far simpler than the more &#8220;official&#8221; scripts, but it does exactly what I want it to, so I&#8217;m happy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=101&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/08/24/oracle-startstop-script-that-works/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get Solr to log to a log file</title>
		<link>http://skybert.wordpress.com/2009/07/22/how-to-get-solr-to-log-to-a-log-file/</link>
		<comments>http://skybert.wordpress.com/2009/07/22/how-to-get-solr-to-log-to-a-log-file/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:43:38 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=95</guid>
		<description><![CDATA[Solr is a great piece of software but its logging is bloody annoying. Defaultwise on my Tomcat, it will write all its log messages to the system out log, which is a pain in the but to say the least. To make it log to its own log file, this is what I did to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=95&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://lucene.apache.org/solr/">Solr</a> is a great piece of software but its logging is bloody annoying. Defaultwise on my Tomcat, it will write all its log messages to the system out log, which is a pain in the but to say the least.</p>
<p>To make it log to its own log file, this is what I did to tomcat/conf/logging.properties</p>
<pre>
# added 6localhost.org.apache.juli.FileHandler to the list of handlers

6localhost.org.apache.juli.FileHandler.level = FINE
6localhost.org.apache.juli.FileHandler.directory = /var/log/escenic
6localhost.org.apache.juli.FileHandler.prefix = solr.

org.apache.solr.level=INFO
org.apache.solr.handlers=6localhost.org.apache.juli.FileHandler
</pre>
<p>Now, I get all <a href="http://lucene.apache.org/solr/">solr</a> messages in <code>/var/log/escenic/solr-2009-07-22.log</code>. What a relief! Of course, you may want to drop the logging level to <code>WARNING</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=95&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/07/22/how-to-get-solr-to-log-to-a-log-file/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>DBUnit and Hibernate</title>
		<link>http://skybert.wordpress.com/2009/02/23/dbunit-and-hibernate/</link>
		<comments>http://skybert.wordpress.com/2009/02/23/dbunit-and-hibernate/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 13:46:47 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=91</guid>
		<description><![CDATA[You wouldn&#8217;t think the difference between these two code snippets were anything to blog about, right? String selectString = "select * from mytable"; List result = getHibernateTemplate().find(selectString); and this one, and no, you woun&#8217;t get any points for pointing out that this is a better, non-deprectaed way of executing a query in Hibernate String selectString [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=91&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You wouldn&#8217;t think the difference between these two code snippets were anything to blog about, right?</p>
<pre>
String selectString = "select * from mytable";
List result = getHibernateTemplate().find(selectString);
</pre>
<p>and this one, and no, you woun&#8217;t get any points for pointing out that this is a better, non-deprectaed way of executing a query in Hibernate <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<pre>
String selectString = "select * from mytable";
Query query = getSession().createQuery(queryString);
List result = query.list();
</pre>
<p>And no to the funny part: the latter implementation makes DBUnit hang forever!</p>
<p>Doing a thread dump of the Maven Surefire process reveals that this part of code is hanging:</p>
<pre>
"main" prio=10 tid=0x09945c00 nid=0x5279 in Object.wait() [0xb7d74000..0xb7d751f8]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on  (a org.apache.commons.pool.impl.GenericObjectPool)
	at java.lang.Object.wait(Object.java:485)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:748)
	- locked  (a org.apache.commons.pool.impl.GenericObjectPool)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
</pre>
<p>Now, who can tell me why this is? </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=91&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/02/23/dbunit-and-hibernate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle nonsense</title>
		<link>http://skybert.wordpress.com/2009/02/11/oracle-nonsense/</link>
		<comments>http://skybert.wordpress.com/2009/02/11/oracle-nonsense/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 14:48:57 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=89</guid>
		<description><![CDATA[Was to install an Oracle DB on my Debian system the other day. Now, a big kudos to Oracle for providing Debian packages of their XE version. However, the non sense started once the thing was apt-get-ed. It turned out that if you set the system user password to &#8216;admin&#8217;, you cannot log in! What [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=89&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Was to install an Oracle DB on my Debian system the other day. Now, a big kudos to Oracle for providing Debian packages of their XE version. However, the non sense started once the thing was apt-get-ed.</p>
<p>It turned out that if you set the system user password to &#8216;admin&#8217;, you cannot log in! What kind of headless logic is that?!! And of course, there&#8217;s no way to re-set the admin password, so I had to re-install the DB to try a new password.</p>
<pre>
# apt-get --purge delete oracle-xe
# apt-get install oracle-xe
</pre>
<p>So, after setting the following in my <code>.bashrc</code>, I can enjoy  (developer version of) Oracle 10.2.0.1.0 with less installation fuss than normal <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<pre>
######################################################################
# Oracle
######################################################################
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_OWNER=oracle
export ORACLE_SID=XE
export SQLPLUS=$ORACLE_HOME/bin/sqlplus
export LSNR=$ORACLE_HOME/bin/lsnrctl
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=89&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/02/11/oracle-nonsense/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>Complex queries in Hibernate</title>
		<link>http://skybert.wordpress.com/2009/01/30/complex-queries-in-hibernate/</link>
		<comments>http://skybert.wordpress.com/2009/01/30/complex-queries-in-hibernate/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 16:09:05 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=81</guid>
		<description><![CDATA[I&#8217;m sure it&#8217;s doable, but it&#8217;s definitely not easy to do. Hibernate has added a complex, sorry &#8220;rich&#8221;, API on top of JDBC to construct queries and the like (in addition to OR mapping and I&#8217;m sure a host of other tings). Now, most tutorials out there are mere Micky Mouse examples and not that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=81&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure it&#8217;s <em>doable</em>, but it&#8217;s definitely not <em>easy</em> to do.</p>
<p>Hibernate has added a complex, sorry &#8220;rich&#8221;, API on top of JDBC to construct queries and the like (in addition to OR mapping and I&#8217;m sure a host of other tings). Now, most tutorials out there are mere Micky Mouse examples and not that useful for what I need right now: joining three (maybe four tables) and returning an entity (and yes, I do know that joining many tables is expensive).</p>
<p>I&#8217;ve joined two tables before using one DetachedCriteria &amp; Criteria and I assume I then can do a three table join by using two DetachedCriterias? Maybe, have to try this later. Matter of fact is that the API to construct queries is so complex, create so long code lines and so many of them, that I ventured into doing this using Hibernate&#8217;s own SQL dialect.</p>
<p>Of course, I believe it&#8217;s doable but I couldn&#8217;t find any good examples out there on doing it, I got this Array (or something) of java.lang.Objects rather than my nicely mapped Hibernate entity when I executed my Query object.</p>
<pre>
Object thing=[[Ljava.lang.Object;@956b74]
</pre>
<p>I didn&#8217;t see any good way of manipulating this Object thing, so I ventured lower down the food chain to the native SQL support in Hibernate:</p>
<pre>
SQLQuery query = Session.createSQLQuery(String);
</pre>
<p>Thanks to this one and setting the return entity, with the alias I used in the SQL String:</p>
<pre>
query.addEntity("b", Blue.class);
</pre>
<p>I finally got this thing working.</p>
<p>Now, to all of the Hibernate enthusiasts out there; if there&#8217;s a beautiful way of joining three tables returning an entity using the high level Hibernate API, I love to hear about it. But for now, I&#8217;m happy with my Hibernate/native SQL solution <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=81&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/01/30/complex-queries-in-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>Having way too much to do</title>
		<link>http://skybert.wordpress.com/2009/01/29/having-way-too-much-to-do/</link>
		<comments>http://skybert.wordpress.com/2009/01/29/having-way-too-much-to-do/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 08:28:26 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=75</guid>
		<description><![CDATA[I&#8217;ve started getting used to having way too much to do. After replying the same sentences a number of times to people wanting my services, I&#8217;ve written them down. They&#8217;re in Norwegian (English speaking colleagues still get individual answers Hopefully, these quotes can be of use to others too Din smerte og frustrasjon deles med [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=75&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started getting used to having way too much to do. After replying the same sentences a number of times to people  wanting my services, I&#8217;ve written them down. They&#8217;re in Norwegian (English speaking colleagues still get individual answers <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Hopefully, these quotes can be of use to others too <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
<cite><br />
Din smerte og frustrasjon deles med undertegnede, men akkurat nå så er<br />
det slik<br />
</cite><br />
<cite><br />
Det er en milliard småting jeg må ta tak i og jeg makter ikke å holde<br />
i mer enn fem-ti av gangen <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
</cite><br />
<cite><br />
Alt jeg har å si er at jeg vil ha &#8220;riktige&#8221; løsninger og ikke hacks<br />
for å fikse andre hacks.<br />
</cite></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=75&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/01/29/having-way-too-much-to-do/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
		<item>
		<title>Making Thunderbird faster</title>
		<link>http://skybert.wordpress.com/2009/01/29/making-thunderbird-faster/</link>
		<comments>http://skybert.wordpress.com/2009/01/29/making-thunderbird-faster/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 08:24:23 +0000</pubDate>
		<dc:creator>skybert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://skybert.wordpress.com/?p=73</guid>
		<description><![CDATA[All of a sudden, after using Thunderbird for Mail, GCalendar, Outlook Calendar, RSS feed reader for half a year (or maybe more), it all of a sudden got slow. I then learned about compacting folders: http://kb.mozillazine.org/Compacting_folders#How_to_compact_folders which has made it a lot faster (and doesn&#8217;t consume 90% CPU). However, it still freezes for a couple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=73&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>All of a sudden, after using Thunderbird for Mail, GCalendar, Outlook Calendar, RSS feed reader for half a year (or maybe more), it all of a sudden got slow.</p>
<p>I then learned about compacting folders:</p>
<p>http://kb.mozillazine.org/Compacting_folders#How_to_compact_folders</p>
<p>which has made it a lot faster (and doesn&#8217;t consume 90% CPU). However, it still freezes for a couple of seconds  every 5-10 minutes &#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skybert.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skybert.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skybert.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skybert.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skybert.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skybert.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skybert.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skybert.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skybert.wordpress.com&amp;blog=907414&amp;post=73&amp;subd=skybert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skybert.wordpress.com/2009/01/29/making-thunderbird-faster/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f8ce8b3ec47f451d48ef0d48973178a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">skybert</media:title>
		</media:content>
	</item>
	</channel>
</rss>
