<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>Sune Trudslev's WebLog</title>
    <link>http://www.tanis.dk/blog/</link>
    <description>Advanced concepts -- Easy explainations</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4 - http://www.s9y.org/</generator>
    <pubDate>Thu, 19 Apr 2007 11:33:04 GMT</pubDate>

    <image>
        <url>http://www.tanis.dk/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Sune Trudslev's WebLog - Advanced concepts -- Easy explainations</title>
        <link>http://www.tanis.dk/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>My big interview</title>
    <link>http://www.tanis.dk/blog/archives/33-My-big-interview.html</link>
            <category>Rants</category>
    
    <comments>http://www.tanis.dk/blog/archives/33-My-big-interview.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=33</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=33</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;So, Brandy is getting into the whole blogging scene, and I had sent her an &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url=aHR0cDovL3d3dy50c20uc2VydmVibG9nLm5ldC8=&amp;amp;entry_id=33&quot; title=&quot;http://www.tsm.serveblog.net/&quot;  onmouseover=&quot;window.status=&#039;http://www.tsm.serveblog.net/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;URL for a blog&lt;/a&gt; which is written by the wife of a person that I know from the &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url=aHR0cDovL3d3dy5lYXN5dW8uY29tLw==&amp;amp;entry_id=33&quot; title=&quot;http://www.easyuo.com/&quot;  onmouseover=&quot;window.status=&#039;http://www.easyuo.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;EasyUO&lt;/a&gt; site.&lt;/p&gt;&lt;p&gt;So, Tracy, as the woman is called who is writing the blog, decided to interview Brandy and have her &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url=aHR0cDovL3d3dy5hbmRyb21ldGEuZGsvYmxvZy9hcmNoaXZlcy8zMzMtSnVzdC10b28tbXVjaC1mdW4tdG8tYmUtbGVnYWwhLmh0bWw=&amp;amp;entry_id=33&quot; title=&quot;http://www.andrometa.dk/blog/archives/333-Just-too-much-fun-to-be-legal!.html&quot;  onmouseover=&quot;window.status=&#039;http://www.andrometa.dk/blog/archives/333-Just-too-much-fun-to-be-legal!.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;post the answers&lt;/a&gt; on her (Brandy&#039;s) blog. So I decided to have Brandy do an interview on me and then I would post my answers here (Well, okay, she kinda dared me to do it! &lt;img src=&quot;http://www.tanis.dk/blog/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;).&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;strong&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;Whats the one material possession that you own, that you couldnt live without, and why?&lt;/span&gt;&lt;/font&gt; &lt;/strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;That is almost a silly questions, since everybody in the entire world would know that, that is, of course, my computer. I am a total geek, when it comes to computers, I have been working with then on a daily basis for about 22 years now. I go to work 8 hours every day and work on a computer, and guess what I want to do when I get home?&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;Whats the best thing about you?&lt;/span&gt;&lt;/font&gt; &lt;/strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;The best thing about me is that I never give up. Some people would probably argue that it is also the worst thing about me. &lt;img src=&quot;http://www.tanis.dk/blog/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;strong&gt;Which actress or celebrity do you find sexy, and why?&lt;/strong&gt;&lt;/span&gt;&lt;/font&gt; &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;Well, since I believe that sexy is mainly in the mind of people, it is a little hard to answer that question, since I don&#039;t actually know any actresses or celebrities.&lt;br /&gt;&lt;br /&gt;That being said (and I&#039;m probably being totally boring now) Angeline Jolie is pretty sexy. There&#039;s something about her, that I would describe as a &amp;quot;Sean Connery&amp;quot; aura. When you see her, you want to know more.&lt;br /&gt;&lt;br /&gt;I guess I just wish my wife was an actress or a celebrity, so I could say her, because she is by far the sexiest woman alive (too cheesy? well, she knows I mean it).&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;strong&gt;If you could pack and up and leave the country tomorrow, where would you go?&lt;/strong&gt;&lt;/span&gt;&lt;/font&gt; &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;If I could, I would travel the world, until I had seen all the places that I&#039;ve yet to see. The places that have culture, history, and something to sparkle my instincts, tickle my senses, work out my intellect. I just love being stimulated. &lt;img src=&quot;http://www.tanis.dk/blog/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;strong&gt;What is 1 thing that your wife doesnt know about you?&lt;/strong&gt;&lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;If you ask her, she doesn&#039;t know much about me at all. I, however, feel like I an open book, and tell her everything about me. She probably doesn&#039;t know that I worry. As a guy you&#039;re supposed to be strong, and strong people don&#039;t worry at all, right? I know I got it all wrong, but what can you do?&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;The rules for this little interview game, is outlined in these 5 simple statements:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;font face=&quot;Verdana&quot; color=&quot;#3a3a3a&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;Leave me a comment saying, &amp;quot;Interview me.&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Verdana&quot; color=&quot;#3a3a3a&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;I will respond by emailing you five questions. I get to pick the questions.&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Verdana&quot; color=&quot;#3a3a3a&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;You will update your blog with the answers to the questions.&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Verdana&quot; color=&quot;#3a3a3a&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;You will include this explanation and an offer to interview someone else in the same post.&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Verdana&quot; color=&quot;#3a3a3a&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;When others comment asking to be interviewed, you will ask them five questions.&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt; 
    </content:encoded>

    <pubDate>Wed, 18 Apr 2007 20:18:47 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/33-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Disk Defragmentation -- Useful optimization turned hoax?</title>
    <link>http://www.tanis.dk/blog/archives/32-Disk-Defragmentation-Useful-optimization-turned-hoax.html</link>
            <category>Technical</category>
    
    <comments>http://www.tanis.dk/blog/archives/32-Disk-Defragmentation-Useful-optimization-turned-hoax.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=32</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;I LOOOOOVE &lt;a rel=&quot;thickbox&quot; href=&quot;http://www.tanis.dk/blog/exit.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9EZWZyYWdtZW50YXRpb24=&amp;amp;entry_id=32&quot; title=&quot;http://en.wikipedia.org/wiki/Defragmentation&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/Defragmentation&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;defragmentation&lt;/a&gt;. I love the thought of my files, my bytes, my bits, on my harddrive is laying in a nice and orderly stream; perfectly aligned and ready to be read right off the magnetic surface of my disks.&lt;/p&gt;&lt;p&gt;So, I was sitting there contemplating the concept of deframentation on a modern &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9IYXJkZHJpdmU=&amp;amp;entry_id=32&quot; title=&quot;http://en.wikipedia.org/wiki/Harddrive&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/Harddrive&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;harddrive&lt;/a&gt;. These days, the disks don&#039;t actually report the actual geometry of the disk, instead it maps the &amp;quot;virtual geometry&amp;quot;, which is exposed to the OS, to the actual geometry of the disk. This way the disk can easily detect bad sectors on the drive and move and map them to another position on the drive, in case a part of the disk goes bad (which is probably more often than we&#039;d like to know).&lt;/p&gt;&lt;p&gt;So, we power up our favorite defragmentation program and has it move all the files around so that they are ordred perfectly in the &amp;quot;virtual geometry&amp;quot;. The problem, as I see it, is that when the disk actually has to read the data, it will be read from the actual geometry of the disk, which could, at least in theory, be scattered all over the disk.&lt;/p&gt;&lt;p&gt;Does this mean that defragmentation is more useful when the disk is new (and has less bad sectors)? Does it even make sense to defragment your disk?&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 09 Aug 2006 19:36:00 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/32-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Lightbox Test</title>
    <link>http://www.tanis.dk/blog/archives/30-Lightbox-Test.html</link>
            <category>Entertainment</category>
    
    <comments>http://www.tanis.dk/blog/archives/30-Lightbox-Test.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=30</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=30</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;a class=&quot;serendipity_image_link&quot; title=&quot;The opera house in the Copenhagen Harbor, captured by a 6 year old girl. Not bad, eh?&quot; href=&quot;http://www.tanis.dk/blog/exit.php?url_id=123&amp;amp;entry_id=30&quot;  onmouseover=&quot;window.status=&#039;http://www.tanis.dk/blog/uploads/Photography/Operaen.jpg&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; rel=&quot;lightbox&quot;&gt;&lt;img rel=&quot;lightbox&quot; style=&quot;BORDER-RIGHT: 0px; PADDING-RIGHT: 5px; BORDER-TOP: 0px; PADDING-LEFT: 5px; FLOAT: left; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px&quot; height=&quot;44&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/Operaen.serendipityThumb.jpg&quot; width=&quot;110&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=123&amp;amp;entry_id=30&quot; title=&quot;http://www.tanis.dk/blog/uploads/Photography/Operaen.jpg&quot;  onmouseover=&quot;window.status=&#039;http://www.tanis.dk/blog/uploads/Photography/Operaen.jpg&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=123&amp;amp;entry_id=30&quot; title=&quot;http://www.tanis.dk/blog/uploads/Photography/Operaen.jpg&quot;  onmouseover=&quot;window.status=&#039;http://www.tanis.dk/blog/uploads/Photography/Operaen.jpg&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;&lt;/a&gt;This is a test of the &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=125&amp;amp;entry_id=30&quot; title=&quot;http://www.huddletogether.com/projects/lightbox2/&quot;  onmouseover=&quot;window.status=&#039;http://www.huddletogether.com/projects/lightbox2/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;lightbox script&lt;/a&gt;. It seems to work quite nicely. Try and click the thumbnailed image.  
    </content:encoded>

    <pubDate>Thu, 06 Jul 2006 08:25:05 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/30-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Photography in the genes?</title>
    <link>http://www.tanis.dk/blog/archives/29-Photography-in-the-genes.html</link>
            <category>Photography</category>
    
    <comments>http://www.tanis.dk/blog/archives/29-Photography-in-the-genes.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;So every time I run around like a mad person, clicking away on my camera, Amalie seems to be watching me like a hawk.&lt;/p&gt;&lt;p&gt;So, the other day where we took a &amp;quot;tourist&amp;quot; trip on the canals of Copenhagen, she got to be in charge of Brandy&#039;s camera. She was snapping away like a mad person, barely able to wrap her fingers around the camera. Sometimes making excited sounds, sometimes grunting is discontent.&lt;/p&gt;&lt;p&gt;So we got home and we popped the camere in it&#039;s dock and proceeded to transfer the pictures. To our big surprise the girl (who&#039;s only 6 at the moment), took alot of good pictures (and alot of bad ones too, just like the rest of us).&lt;/p&gt;&lt;p&gt;I took a few into photoshop, straightend a bit, auto contrasted, and cropped. Here&#039;s what I think is the best one:&lt;/p&gt;&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;WIDTH: 700px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;img height=&quot;280&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/Operaen.jpg&quot; width=&quot;700&quot; alt=&quot;&quot;  /&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;The new opera house in the Copenhagen Harbor, captured by a 6 year old girl. Not bad, eh?&lt;/div&gt;&lt;/div&gt; 
    </content:encoded>

    <pubDate>Fri, 16 Jun 2006 09:57:18 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/29-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Taking Popart further...</title>
    <link>http://www.tanis.dk/blog/archives/28-Taking-Popart-further....html</link>
            <category>Photography</category>
    
    <comments>http://www.tanis.dk/blog/archives/28-Taking-Popart-further....html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=28</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;Trying to take the Popart concept a bit further, I found this &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=99&amp;amp;entry_id=28&quot; title=&quot;http://www.melissaclifton.com/tutorial-popart.html&quot;  onmouseover=&quot;window.status=&#039;http://www.melissaclifton.com/tutorial-popart.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;excellent tutorial&lt;/a&gt; on how to create popart in Photoshop.&lt;/p&gt;&lt;p&gt;It&#039;s definitely not something for absolute beginners, but in a few hours I produced this:&lt;/p&gt;&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;WIDTH: 600px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;img height=&quot;900&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/Popart_fk2.jpg&quot; width=&quot;600&quot; alt=&quot;&quot;  /&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;My beautiful wife, Brandy, again posing as Popart&lt;/div&gt;&lt;/div&gt; 
    </content:encoded>

    <pubDate>Fri, 16 Jun 2006 09:53:20 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/28-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Momondo again..</title>
    <link>http://www.tanis.dk/blog/archives/27-Momondo-again...html</link>
            <category>Entertainment</category>
            <category>Technical</category>
    
    <comments>http://www.tanis.dk/blog/archives/27-Momondo-again...html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=27</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=27</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;So we are nearing a release of &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=97&amp;amp;entry_id=27&quot; title=&quot;http://www.momondo.com/&quot;  onmouseover=&quot;window.status=&#039;http://www.momondo.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;www.momondo.com&lt;/a&gt;. I am really happy with the results. We have moved all the different services to different servers which has resulted in a serious improvement of performance on the site. Results are blazing out.&lt;/p&gt;&lt;p&gt;Also, the work we have done with ensuring the quality of the robots and adding many new robots, the data quality is excellent. I have no doubt that our site has the best coverage out of all the different sites that seem to be opening lately.&lt;/p&gt;&lt;p&gt;I hope you will all go check it out and book your next vacation through our links (which will in turn give us a small kickback from the airline), so that the site can become the success that, I believe, that it deserves.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 03 Jun 2006 08:28:50 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/27-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>The current state of Denmark</title>
    <link>http://www.tanis.dk/blog/archives/26-The-current-state-of-Denmark.html</link>
            <category>Rants</category>
    
    <comments>http://www.tanis.dk/blog/archives/26-The-current-state-of-Denmark.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=26</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=26</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;PissedOffPencil writes in his &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=90&amp;amp;entry_id=26&quot; title=&quot;http://pissedoffpencil.blogspot.com/2006/02/somethings-rotten-in-state-of-denmark.html&quot;  onmouseover=&quot;window.status=&#039;http://pissedoffpencil.blogspot.com/2006/02/somethings-rotten-in-state-of-denmark.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;blog&lt;/a&gt; how Jyllands Posten made a grave error in judgement when publishing the infamous pictures of Islamic prophet Mohammed.&lt;/p&gt;&lt;p&gt;While I agree with the thruth of the statement he comtinues to say that &amp;quot;they&amp;quot; (not sure if he means Jyllands Posten or the entire Danish people) are hiding behind the freedom of speech that we have in Denmark. &lt;/p&gt;&lt;p&gt;See, that&#039;s just not true. What people are defending when it comes to the freedom of speech is the fact that right after the pictures were published, the Danish Prime Minister (who is, btw, not a social democrate, but a right wing liberalist), were approached by a number of official people from countries that mainly have Islam as their religion, and he was asked to intervene and take measures against Jyllands Posten. He declined, because the political system cannot enforce their views on the press, but the press has to be dealt with, first, by an ethical board, and then the courts. THAT is what people are defending. &lt;/p&gt;&lt;p&gt;Okay, so the Prime Minister did decline to talk to 11 ambassadors for these countries, which, in my opinion, has made this sorry ordeal what it is.&lt;/p&gt;&lt;p&gt;Now we can just sit back and see what will happen.&lt;/p&gt;&lt;p&gt;I, personally, hope that we can conclude this in a nice and respectable manner. Muslims and people of any religion are welcome in my country. Their religious symbols should not be made fun of.&lt;/p&gt;&lt;p&gt;Peace.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 04 Feb 2006 08:49:31 +0100</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/26-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Sune Warhol?</title>
    <link>http://www.tanis.dk/blog/archives/25-Sune-Warhol.html</link>
            <category>Photography</category>
    
    <comments>http://www.tanis.dk/blog/archives/25-Sune-Warhol.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=25</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Tonight I thought to that I would work on my Photoshop skills, so I loaded up a picture of my beatiful wife Brandy that I took just a few days ago.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;I removed the background and made it black and white, then I ran it though the Cutout filter and saved four copies. I took each copy and colored it with bright colors. So here is my venture into pop-art alá Andy Warhol:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;img style=&quot;BORDER-RIGHT: 0px; PADDING-RIGHT: 5px; BORDER-TOP: 0px; PADDING-LEFT: 5px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px&quot; height=&quot;937&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/warhol.jpg&quot; width=&quot;700&quot; alt=&quot;&quot;  /&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 23 Jan 2006 22:16:54 +0100</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/25-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Winter's Bite</title>
    <link>http://www.tanis.dk/blog/archives/24-Winters-Bite.html</link>
            <category>Photography</category>
    
    <comments>http://www.tanis.dk/blog/archives/24-Winters-Bite.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=24</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;So, I am turning into a photo-geek. I guess it&#039;s just another geek thing to add to my list. Well, my wife uses the pictures I take on her &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=89&amp;amp;entry_id=24&quot; title=&quot;http://www.andrometa.dk/blog/archives/108-Let-it-snow!!.html&quot;  onmouseover=&quot;window.status=&#039;http://www.andrometa.dk/blog/archives/108-Let-it-snow!!.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;blog&lt;/a&gt;, but I thought I would show people some of my favorites.&lt;/p&gt;&lt;p&gt;Saturday and yesterday I was out in search of winter pictures. It had just snowed and all the trees were full of ice, so I got a few interesting shots.&lt;/p&gt;&lt;p&gt;I hope you like them:&lt;/p&gt;&lt;p&gt;&lt;img style=&quot;BORDER-RIGHT: 0px; PADDING-RIGHT: 5px; BORDER-TOP: 0px; PADDING-LEFT: 5px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px&quot; height=&quot;525&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/DSCF0577.jpg&quot; width=&quot;700&quot; alt=&quot;&quot;  /&gt; &lt;/p&gt;&lt;p&gt;&lt;img style=&quot;BORDER-RIGHT: 0px; PADDING-RIGHT: 5px; BORDER-TOP: 0px; PADDING-LEFT: 5px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px&quot; height=&quot;525&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/DSCF0580.jpg&quot; width=&quot;700&quot; alt=&quot;&quot;  /&gt;&lt;/p&gt;&lt;p&gt;&lt;img style=&quot;BORDER-RIGHT: 0px; PADDING-RIGHT: 5px; BORDER-TOP: 0px; PADDING-LEFT: 5px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px&quot; height=&quot;525&quot; src=&quot;http://www.tanis.dk/blog/uploads/Photography/DSCF0576.jpg&quot; width=&quot;700&quot; alt=&quot;&quot;  /&gt; &lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Mon, 23 Jan 2006 10:13:02 +0100</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/24-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Happy New Year!</title>
    <link>http://www.tanis.dk/blog/archives/23-Happy-New-Year!.html</link>
            <category>Family</category>
    
    <comments>http://www.tanis.dk/blog/archives/23-Happy-New-Year!.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=23</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    Have a happy new year. I hope 2006 will bring you anything you want, need, desire and wish for. 
    </content:encoded>

    <pubDate>Mon, 02 Jan 2006 11:33:28 +0100</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/23-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Travel cheap</title>
    <link>http://www.tanis.dk/blog/archives/22-Travel-cheap.html</link>
            <category>Entertainment</category>
            <category>Technical</category>
    
    <comments>http://www.tanis.dk/blog/archives/22-Travel-cheap.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;I mean, who cares what the flight is like, as long as you can trust the airline, not to crash the airplane. Okay, so it&#039;s not just me that thinks that, but people in general. The success of low-cost carriers like &lt;a title=&quot;easyJet - fly cheap in Europe&quot; href=&quot;http://www.tanis.dk/blog/exit.php?url_id=91&amp;amp;entry_id=22&quot;  onmouseover=&quot;window.status=&#039;http://www.easyjet.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;easyJet&lt;/a&gt; and &lt;a title=&quot;RyanAir - Fly cheap in Europe&quot; href=&quot;http://www.tanis.dk/blog/exit.php?url_id=92&amp;amp;entry_id=22&quot;  onmouseover=&quot;window.status=&#039;http://www.ryanair.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;RyanAir&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;So, what I do for a living, is make a low-cost carrier search system. The system itself is called SpeedFares and is targeted at business travel agencies as a complimentary system to their GDS (Global Travel Distribution System) which mainly includes classical airlines, like, SAS, KLM, Lufthansa, and the likes.&lt;/p&gt;&lt;p&gt;So lately we&#039;ve been toying with the idea of taking our search engine to the web. I&#039;ve recenly finished a &amp;quot;to-the-bones&amp;quot; version of the search engine. Programmed with &lt;a title=&quot;Read what Ajax is..&quot; href=&quot;http://www.tanis.dk/blog/exit.php?url_id=93&amp;amp;entry_id=22&quot;  onmouseover=&quot;window.status=&#039;http://en.wikipedia.org/wiki/AJAX&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Ajax&lt;/a&gt; techniques. It has a spiffy dropdown for choosing the cities to travel from and to, and a very cool dynamically updating price comparrisson page. In short I&#039;m pretty proud of the result.&lt;/p&gt;&lt;p&gt;So, if I caught you interest you can go see how you can &lt;a title=&quot;Travel search engine&quot; href=&quot;http://www.tanis.dk/blog/exit.php?url_id=94&amp;amp;entry_id=22&quot;  onmouseover=&quot;window.status=&#039;http://www.momondo.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;travel cheap&lt;/a&gt; on Momondo for yourself. I hope you will like it, and that you will use it the next time you are going to go somewhere.&lt;/p&gt;&lt;p&gt;If you feel any routes or carriers are missing feel free to leave me a note here.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 30 Nov 2005 09:05:14 +0100</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/22-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Gallery: A giant among midgets</title>
    <link>http://www.tanis.dk/blog/archives/21-Gallery-A-giant-among-midgets.html</link>
            <category>Technical</category>
    
    <comments>http://www.tanis.dk/blog/archives/21-Gallery-A-giant-among-midgets.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=21</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;When picking out a web-based image gallery system, the choices are almost endless: &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=74&amp;amp;entry_id=21&quot; title=&quot;http://www.comdevweb.com/photogallery.php&quot;  onmouseover=&quot;window.status=&#039;http://www.comdevweb.com/photogallery.php&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Comdev Photo Gallery&lt;/a&gt;, &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=75&amp;amp;entry_id=21&quot; title=&quot;http://www.webligo.com/products_imspro.php&quot;  onmouseover=&quot;window.status=&#039;http://www.webligo.com/products_imspro.php&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;IMS Pro&lt;/a&gt;, &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=76&amp;amp;entry_id=21&quot; title=&quot;http://www.ktools.net/stock_photo_site.php&quot;  onmouseover=&quot;window.status=&#039;http://www.ktools.net/stock_photo_site.php&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;PhotoStore&lt;/a&gt;, &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=77&amp;amp;entry_id=21&quot; title=&quot;http://www.photopost.com/&quot;  onmouseover=&quot;window.status=&#039;http://www.photopost.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;PhotoPost PHP Pro&lt;/a&gt;, &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=78&amp;amp;entry_id=21&quot; title=&quot;http://coppermine-gallery.net/index.php&quot;  onmouseover=&quot;window.status=&#039;http://coppermine-gallery.net/index.php&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Coppermine Photo Gallery&lt;/a&gt;, and my personal favorite: &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=79&amp;amp;entry_id=21&quot; title=&quot;http://gallery.menalto.com/&quot;  onmouseover=&quot;window.status=&#039;http://gallery.menalto.com/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Gallery&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;I recently updated my &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=80&amp;amp;entry_id=21&quot; title=&quot;http://www.andrometa.dk/photos&quot;  onmouseover=&quot;window.status=&#039;http://www.andrometa.dk/photos&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;wifes web-based image gallery&lt;/a&gt; which was using Gallery 1.5.1. We had decided that it was looking a little bland, and might be in need of an update, so I went scouting for what was out there.&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;After taking the whole trip around, I ended up with Gallery again. They had recently released 2.0.0, so I decided to try it out.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;I have always felt that Gallery was well designed, inside and out, but I have to say that the installation process really blew me away. It was step based and each set would tell you of any problem. For example I &lt;span title=&quot;PHP: Hypertext Preprocessor (http://www.php.net)&quot; class=&quot;serendipity_glossaryMarkup&quot;&gt;php&lt;/span&gt;&#039;s maximum script memory set to 8M. The script told me it need to be updated to 16M to run it. It was a breeze to install and about 5 minutes later I had a running version of Gallery2.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;Fiddling around with the importer in about 5 more minutes. I got it to import the captions so they would work with Gallery2, and then it just had to run for about 45 minutes (importing, scaling and thumbnailing 1600 pictures).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;The look is excellent, the features are great, installation is as easy as it&#039;s humanly possible, and it doesn&#039;t cost 1 cent.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;You be the judge.&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 02 Oct 2005 17:18:37 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/21-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>SQL: SELECT by priority</title>
    <link>http://www.tanis.dk/blog/archives/20-SQL-SELECT-by-priority.html</link>
            <category>SQL</category>
    
    <comments>http://www.tanis.dk/blog/archives/20-SQL-SELECT-by-priority.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;I have been working on a project at work where it should be possible to set up what suppliers are available to our customers and their users. We also wanted to be able to be able to provide the customers with a standard setup (sort of a template) based on what type of product they are using. &lt;/p&gt;&lt;p&gt;Here is the solution I came up with.&lt;/p&gt;&lt;p /&gt;&lt;hr /&gt;&lt;p /&gt;&lt;p&gt;First the tables we already have available:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Customer&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Column Name&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Value&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;CustomerId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Int (PK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CustomerName&lt;/td&gt;&lt;td&gt;Varchar(30)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Office&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Column Name&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Value&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;OfficeId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Int (PK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CustomerId&lt;/td&gt;&lt;td&gt;Int (FK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SupplierTemplateId&lt;/td&gt;&lt;td&gt;Int (FK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OfficeName&lt;/td&gt;&lt;td&gt;Varchar(30)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Supplier&lt;/strong&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Column Name&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Value&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Int (PK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SupplierName&lt;/td&gt;&lt;td&gt;Varchar(30)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;So then we will need to add a table to hold the templates:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;SupplierTemplate&lt;/strong&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Column Name&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Value&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierTemplateId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Int (PK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SupplierTemplateName&lt;/td&gt;&lt;td&gt;Varchar(30)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;Last but not least we will need a table to hold the actual supplier selection:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;SupplierSetting&lt;/strong&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Column Name&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Value&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierSettingId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Int (PK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SupplierId&lt;/td&gt;&lt;td&gt;Int (FK)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SupplierTemplateId&lt;/td&gt;&lt;td&gt;Int (FK) NULL&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CustomerId&lt;/td&gt;&lt;td&gt;Int (FK) NULL&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OfficeId&lt;/td&gt;&lt;td&gt;Int (FK) NULL&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Enabled&lt;/td&gt;&lt;td&gt;Bit&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Priority&lt;/td&gt;&lt;td&gt;Int&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;A setting can either belong to a template, a customer, a registration number or none (which makes it a default setting).&lt;/p&gt;&lt;p&gt;The priority is assigned as follows:&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Condition&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Priority&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;No owner&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Owned by a template&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Owned by a customer&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Owned by a registration&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;So now we can fill in some data:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Customer&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;CustomerId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;CustomerName&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Test Customer&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;SupplierTemplate&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierTemplateId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierTemplateName&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Template 1&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Office&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;OfficeId&lt;/td&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;CustomerId&lt;/td&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;SupplierTemplateId&lt;/td&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;OfficeName&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 25%&quot;&gt;Test Office&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Supplier&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierId&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;SupplierName&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Test Supplier 1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;WIDTH: 50%&quot;&gt;Test Supplier 2&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;Now all that is left is set up the suppliers:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;SupplierSetting&lt;/strong&gt;&lt;br /&gt;&lt;table style=&quot;WIDTH: 100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;SupplierSettingId&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;SupplierId&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;SupplierTemplateId&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;CustomerId&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;OfficeId&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;Enabled&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;Priority&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;true&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;true&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;NULL&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;WIDTH: 14%&quot;&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;br /&gt;Here is a textual representation of the above data:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;On a global (default) level &#039;Test Supplier 1&#039; is turned on and &#039;Test Supplier 2&#039; is turned off.&lt;/li&gt;&lt;li&gt;On &#039;Test Customer&#039; level &#039;Test Supplier 2&#039; is turned on&#039;&lt;/li&gt;&lt;li&gt;On &#039;Test Office&#039; level &#039;Test Supplier 1&#039; is turned off.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So how do we get this data out so we only have one row per supplier with the correct status? Well, the answer is a SELECT statement with a sub-SELECT to find the highest priority for the current supplier. Enjoy!&lt;/p&gt;&lt;p&gt;Here it is:&lt;/p&gt;&lt;pre&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: &quot;&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: &quot;&gt;DECLARE @OfficeId INT&lt;br /&gt;SELECT @OfficeId = 1&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: &quot;&gt;DECLARE @CustomerId INT&lt;br /&gt;DECLARE @SupplierTemplateId INT&lt;br /&gt;SELECT&lt;br /&gt;  &lt;/span&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: &quot;&gt;@CustomerId = CustomerId,&lt;br /&gt;  @SupplierTemplateId = SupplierTemplateId &lt;br /&gt;FROM &lt;br /&gt;  Office &lt;br /&gt;WHERE &lt;br /&gt;  OfficeId = @OfficeId&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;FONT-SIZE: 12pt; FONT-FAMILY: &quot;&gt;SELECT &lt;br /&gt;  * &lt;br /&gt;FROM &lt;br /&gt;  SupplierSetting s1 &lt;br /&gt;WHERE &lt;br /&gt;  (CustomerId  = @CustomerId OR CustomerId IS NULL) AND&lt;br /&gt;  (SupplierTemplateId = @SupplierTemplateId OR SupplierTemplateId IS NULL) AND&lt;br /&gt;  (OfficeId = @OfficeId OR OfficeId IS NULL) AND&lt;br /&gt;  Priority = (&lt;br /&gt;    SELECT &lt;br /&gt;      MAX(Priority) &lt;br /&gt;    FROM &lt;br /&gt;      SupplierSetting s2 &lt;br /&gt;    WHERE &lt;br /&gt;      s1.SupplierId = s2.SupplierId AND&lt;br /&gt;      (CustomerId  = @CustomerId OR CustomerId IS NULL) AND&lt;br /&gt;      (SupplierTemplateId = @SupplierTemplateId OR SupplierTemplateId IS NULL) AND&lt;br /&gt;      (OfficeId = @OfficeId OR OfficeId IS NULL)&lt;br /&gt;  )&lt;/span&gt;&lt;/pre&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Fri, 30 Sep 2005 18:57:00 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/20-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Lego: You just gotta love it..</title>
    <link>http://www.tanis.dk/blog/archives/19-Lego-You-just-gotta-love-it...html</link>
            <category>Entertainment</category>
    
    <comments>http://www.tanis.dk/blog/archives/19-Lego-You-just-gotta-love-it...html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=19</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;I&#039;ve always loved Lego. Being a Dane, I&#039;m also proud of Lego, because it&#039;s probably the most popular Danish invention ever.&lt;/p&gt;&lt;p&gt;So one of my friends sends me a link for something new Lego thought up: &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=59&amp;amp;entry_id=19&quot; title=&quot;http://www.lego.com/eng/factory/default.asp&quot;  onmouseover=&quot;window.status=&#039;http://www.lego.com/eng/factory/default.asp&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;&gt;Lego Factory&lt;/a&gt;. It&#039;s just up my alley: Create your own Lego designs in a program, upload it to their site and buy the pieces needed to build it yourself.&lt;/p&gt;&lt;p&gt;Pure genious. &lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 19 Sep 2005 15:50:27 +0200</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/19-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>
<item>
    <title>Regular Expressions is the stuff</title>
    <link>http://www.tanis.dk/blog/archives/18-Regular-Expressions-is-the-stuff.html</link>
            <category>Technical</category>
    
    <comments>http://www.tanis.dk/blog/archives/18-Regular-Expressions-is-the-stuff.html#comments</comments>
    <wfw:comment>http://www.tanis.dk/blog/wfwcomment.php?cid=18</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.tanis.dk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    

    <author>nospam@example.com (Sune Trudslev)</author>
    <content:encoded>
    &lt;p&gt;I just found this excellent beginner&#039;s tutorial to &lt;a href=&quot;http://www.tanis.dk/blog/exit.php?url_id=55&amp;amp;entry_id=18&quot; title=&quot;http://www.codeproject.com/useritems/RegexTutorial.asp&quot;  onmouseover=&quot;window.status=&#039;http://www.codeproject.com/useritems/RegexTutorial.asp&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;Regular Expressions&lt;/a&gt;. If you don&#039;t know what Regular Expressions are, or know what they are, but not how to use them, I strongly urge you to read the article. Your life will never be the same, well, at least your programming life.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 20 Dec 2004 10:01:30 +0100</pubDate>
    <guid isPermaLink="false">http://www.tanis.dk/blog/archives/18-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/</creativeCommons:license>
</item>

</channel>
</rss>