<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Thomas Johansen's Blog</title><subtitle type="html">The Daily Highlight</subtitle><id>http://weblogs.asp.net/tjohansen/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/tjohansen/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2005-02-24T12:34:00Z</updated><entry><title>My first tattoo</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/08/16/422680.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/08/16/422680.aspx</id><published>2005-08-16T07:09:00Z</published><updated>2005-08-16T07:09:00Z</updated><content type="html">&lt;p&gt;Today I finally got &lt;a href="http://www.flickr.com/photos/thomasjo/34459969/"&gt;my first tattoo&lt;/a&gt; -- I've been wanting one for a long, long time and now just seemed like the perfect time, so I went for it... I am very happy that I did! &lt;/p&gt;&lt;p&gt;The pain was noticeable, but absolutely worth it. My reasoning for getting it on the lower left arm is that it will be easily spotted there, but at the same time, I can hide it in e.g. a business situation or otherwise.&lt;/p&gt;&lt;p&gt;&lt;i&gt;Copied from &lt;a href="http://lonelywasabi.net/"&gt;my main blog&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=422680" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>Looking for contract work</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/07/27/420664.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/07/27/420664.aspx</id><published>2005-07-27T02:52:00Z</published><updated>2005-07-27T02:52:00Z</updated><content type="html">It's that time of year again; I've currently got way too much leisure time, so I'm actively seeking contract work - both design and development work. Well, if you or anyone you know is on the look out for a designer/developer for contract work, head over to &lt;a href="http://lonelywasabi.net/contact/"&gt;my contact page&lt;/a&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=420664" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>New blog</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/06/04/New-blog.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/06/04/New-blog.aspx</id><published>2005-06-03T16:23:00Z</published><updated>2005-06-03T16:23:00Z</updated><content type="html">&lt;p&gt;Ok guys, I am considering letting this blog die and move all of my blogging over to my &lt;a href="http://lonwas.net/"&gt;new site&lt;/a&gt;, so if you want to read about XHTML, CSS and graphic design, subscribe to my feed right away! ;-)&lt;/p&gt;&lt;p&gt;(I might keep this blog going for posting about .NET related topics, but most likely I will move that over to the new blog as well)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=410308" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>Flickr... is amazing!</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/05/01/405205.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/05/01/405205.aspx</id><published>2005-05-01T10:34:00Z</published><updated>2005-05-01T10:34:00Z</updated><content type="html">&lt;p&gt;Wow, I just decided to try out Flickr and I am blown away by how awesome it is! The interface is so damn easy to use. Another great example of how a UI should be created ;)&lt;/p&gt;
&lt;p&gt;If you feel like checking out my photos, you can find them &lt;a href="http://www.flickr.com/photos/thomasjo/"&gt;here&lt;/a&gt;  (also feel free to add me to your contact list if you use Flickr :)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=405205" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>Mono on OSX</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/03/23/395594.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/03/23/395594.aspx</id><published>2005-03-23T03:31:00Z</published><updated>2005-03-23T03:31:00Z</updated><content type="html">&lt;p&gt;Just installed the OSX build of Mono; it was a breeze! No problems at all!&lt;br/&gt;
Been mocking around with Cocoa# for a few hours, creating some simple applications -- .NET 1.x is suddenly fun again. Everything seems to be working great.&lt;/p&gt;
&lt;p&gt;Already started thinking about some cool ideas for some Mono/Cocoa# apps :-)&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=395594" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>My reasoning for getting a PowerMac</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/03/15/394627.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/03/15/394627.aspx</id><published>2005-03-15T07:41:00Z</published><updated>2005-03-15T07:41:00Z</updated><content type="html">&lt;p&gt;Need I say more? ;-)&lt;/p&gt;&lt;p&gt;&lt;img src="http://photos7.flickr.com/6575390_8c0aadf707_m_d.jpg" alt="MacHottie"/ &gt;&lt;/p&gt;&lt;p&gt;&lt;small&gt;Brought to you by &lt;a href="http://www.macmerc.com/index.php"&gt;MacMerc.com&lt;/a&gt;&lt;/small&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=394627" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>My Power Mac rocks!</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/03/13/394444.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/03/13/394444.aspx</id><published>2005-03-13T05:15:00Z</published><updated>2005-03-13T05:15:00Z</updated><content type="html">&lt;p&gt;Got my Dual 2.5GHz Power Mac a few days ago -- so far I'm loving it! OS X is light-years ahead of Windows XP. Everything is so darn slick! Apple are still following the good UNIX tradition of having small specialized applications that usually only have one main task (and does that task _very_ well), instead of the other "standard" of BloatWare(tm).&lt;/p&gt;

&lt;p&gt;Well enough praising and bashing; I'm posting this entry from &lt;a href="http://ranchero.com/marsedit/"&gt;Ranchero MarsEdit&lt;/a&gt;. It's a sweet little cutie and it looks and behaves very much like Apple Mail (which also kicks serious ass ;)
My feeds have been moved over to &lt;a href="http://ranchero.com/netnewswire/"&gt;NetNewsWire 2.0 beta&lt;/a&gt; (also from Ranchero -- any Ranchero execs out there that feel like giving me free licenses to these two awesome apps? :)&lt;/p&gt;

&lt;p&gt;I'll keep everyone posted on how much my Mac 0wns j00!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=394444" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>Wicked little web app</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/02/26/380715.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/02/26/380715.aspx</id><published>2005-02-25T15:09:00Z</published><updated>2005-02-25T15:09:00Z</updated><content type="html">While going through my blogroll I came across &lt;a href="http://www.pentacom.jp/soft/ex/font/edit.html"&gt;this awesome little bitmap font maker web app &lt;/a&gt;&amp;ndash; it&amp;rsquo;s so darn cute! :)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=380715" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>Bye, bye Sage -- Hello Onfolio!</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/02/25/380625.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/02/25/380625.aspx</id><published>2005-02-25T12:20:00Z</published><updated>2005-02-25T12:20:00Z</updated><content type="html">&lt;a href="http://robfuller.blogspot.com/"&gt;Rob Fuller&lt;/a&gt; commented my post about &lt;a href="http://weblogs.asp.net/tjohansen/archive/2005/02/21/377257.aspx"&gt;Sage&lt;/a&gt; and recommended that I&amp;rsquo;d give &lt;a href="http://www.onfolio.com/"&gt;Onfolio&lt;/a&gt; a try &amp;mdash; I have, and damn, it is smokin&amp;rsquo;! I&amp;rsquo;ve only used it for a couple of hours, but I can already heartily recommend it.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=380625" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author></entry><entry><title>SQL 'SELECT CASE' problem</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/tjohansen/archive/2005/02/24/379541.aspx" /><id>http://weblogs.asp.net/tjohansen/archive/2005/02/24/379541.aspx</id><published>2005-02-24T02:34:00Z</published><updated>2005-02-24T02:34:00Z</updated><content type="html">&lt;p&gt;&lt;A href="http://weblogs.asp.net/dneimke"&gt;Darren &lt;/a&gt;came to me today requesting some help with an SQL&amp;nbsp; problem had run into; he was trying to return some conditional data using a ‘SELECT CASE’ in his&amp;nbsp;query, but he kept being served NULL values for all the rows that did not match his ‘WHEN’ statements. He tried to check if the returned value from the CASE was a NULL in a WHERE clause:&lt;/p&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;&lt;font color="#0000ff"&gt;select&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#ff00ff"&gt;case&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;when&lt;/font&gt; shipcountry = &lt;font color="#ff0000"&gt;'norway'&lt;/font&gt; &lt;font color="#9a9a9a"&gt;and&lt;/font&gt; @year1 = &lt;font color="#ff00ff"&gt;datepart&lt;/font&gt;(yy, orderdate) &lt;font color="#0000ff"&gt;then&lt;/font&gt; employeeid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;when&lt;/font&gt; shipcountry = &lt;font color="#ff0000"&gt;'brazil'&lt;/font&gt; &lt;font color="#9a9a9a"&gt;and&lt;/font&gt; @year2 = &lt;font color="#ff00ff"&gt;datepart&lt;/font&gt;(yy, shippeddate) &lt;font color="#0000ff"&gt;then&lt;/font&gt; employeeid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;end&lt;/font&gt;&lt;br /&gt;&lt;font color="#0000ff"&gt;from&lt;/font&gt; orders&lt;br /&gt;&lt;font color="#0000ff"&gt;where&lt;/font&gt; 1 &lt;font color="#0000ff"&gt;is&lt;/font&gt; &lt;font color="#808080"&gt;not null&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;That didn’t work because what he was checking was whether the column value was NULL or not and not the value of the actual value returned from the CASE. That’s when I suggested the following example to Darren:&lt;/p&gt; &lt;p&gt;&lt;font face="Courier New" size="2"&gt;&lt;font color="#0000ff"&gt;select&lt;/font&gt; employeeid&lt;br /&gt;&lt;font color="#0000ff"&gt;from&lt;/font&gt; orders&lt;br /&gt;&lt;font color="#0000ff"&gt;where&lt;/font&gt; orderid in (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;select&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#ff00ff"&gt;case&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;when&lt;/font&gt; shipcountry = &lt;font color="#ff0000"&gt;'norway'&lt;/font&gt; &lt;font color="#9a9a9a"&gt;and&lt;/font&gt; @year1 = &lt;font color="#ff00ff"&gt;datepart&lt;/font&gt;(yy, orderdate) &lt;font color="#0000ff"&gt;then&lt;/font&gt; orderid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;when&lt;/font&gt; shipcountry = &lt;font color="#ff0000"&gt;'brazil'&lt;/font&gt; &lt;font color="#9a9a9a"&gt;and&lt;/font&gt; @year2 = &lt;font color="#ff00ff"&gt;datepart&lt;/font&gt;(yy, shippeddate) &lt;font color="#0000ff"&gt;then&lt;/font&gt; orderid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;end&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/font&gt;&lt;/p&gt; &lt;p&gt;This works perfectly and does exactly what he wanted — you have got to love the power of nested queries ;)&lt;/p&gt; &lt;p&gt;NOTE: the actual sample queries have been modified for the Northwind database for your testing pleasure.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=379541" width="1" height="1"&gt;</content><author><name>Aylar</name><uri>http://weblogs.asp.net/members/Aylar.aspx</uri></author><category term="Tips &amp;amp; Tricks" scheme="http://weblogs.asp.net/tjohansen/archive/tags/Tips+_2600_amp_3B00_+Tricks/default.aspx" /></entry></feed>