<?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>Analyze the Data not the Drivel.</title>
	<atom:link href="http://bakerjd99.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bakerjd99.wordpress.com</link>
	<description>I will resort to logic when all else fails.</description>
	<lastBuildDate>Tue, 31 Jan 2012 19:39:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bakerjd99.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a4c78b8f24ac17d7472c9822a119b2ec?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Analyze the Data not the Drivel.</title>
		<link>http://bakerjd99.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bakerjd99.wordpress.com/osd.xml" title="Analyze the Data not the Drivel." />
	<atom:link rel='hub' href='http://bakerjd99.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Mike Brown Punts Pluto</title>
		<link>http://bakerjd99.wordpress.com/2012/01/29/mike-brown-punts-pluto/</link>
		<comments>http://bakerjd99.wordpress.com/2012/01/29/mike-brown-punts-pluto/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 07:12:40 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[astronomical history]]></category>
		<category><![CDATA[astronomy]]></category>
		<category><![CDATA[Eris]]></category>
		<category><![CDATA[Kuiper belt]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[Pluto]]></category>
		<category><![CDATA[quaoar]]></category>
		<category><![CDATA[science writing]]></category>
		<category><![CDATA[Sedna]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=2348</guid>
		<description><![CDATA[As a longtime amateur astronomer I appreciate good science writing and Mike Brown&#8217;s little book How I Killed Pluto and Why It Had It Coming is a wonderful example of the genre. When Pluto was tossed from the pantheon of planets I didn&#8217;t care. I knew that in previous centuries when asteroids were first discovered [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2348&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="margin-left:6px;margin-right:6px;" src="http://conceptcontrol.smugmug.com/photos/i-Qbt45gC/0/M/i-Qbt45gC-M.jpg" alt="" width="168" height="259" /></p>
<p>As a longtime amateur astronomer I appreciate good science writing and Mike Brown&#8217;s little book <a href="http://www.amazon.com/How-Killed-Pluto-Why-Coming/dp/0385531087">How I Killed Pluto and Why It Had It Coming</a> is a wonderful example of the genre. When Pluto was tossed from the pantheon of planets I didn&#8217;t care. I knew that in previous centuries when asteroids were first discovered that they were briefly counted as planets. Eventually asteroids lost their planet status; there were too many of them and they were all dinky compared to real planets. Brown notes this bit of astronomical history by pointing to 19th century textbooks with high planet counts. The same holds for Pluto, <a href="http://www.astronomytoday.com/astronomy/eris.html">Eris</a>, <a href="http://www.nasa.gov/vision/universe/solarsystem/planet_like_body.html">Sedna, </a><a href="http://news.nationalgeographic.com/news/2002/10/1003_021007_quaoar.html">Quaoar</a> and all the other known baby ice balls that make up the <a href="http://solarsystem.nasa.gov/planets/profile.cfm?Object=KBOs&amp;Display=OverviewLong">Kuiper belt</a>. Real planets are massive enough to clear their orbits of crap. By this standard Mars barely qualifies and Pluto does not.</p>
<p>The <a href="http://www.youtube.com/watch?v=eNaNxo9jFHE">emotional hysterics</a> that greeted Pluto&#8217;s demise are still playing out. <a href="http://www.goodreads.com/review/show/257414013">Some reviews posted here castigate Brown</a> in terms rightly applied to suicide bombers and Obama voters. When Pluto bulks up and starts bullying its neighbors like all manly planets do we&#8217;ll talk until then I&#8217;d advise the puerile Pluto partisans to plumb up their pie holes otherwise we&#8217;ll have to toss you in the crank bin with the creationists and cold fusion nitwits.</p>
<p><em>cross posted on <a href="http://www.goodreads.com/review/show/269216864">Goodreads</a>.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/2348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/2348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/2348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/2348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/2348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/2348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/2348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/2348/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2348&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2012/01/29/mike-brown-punts-pluto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/photos/i-Qbt45gC/0/M/i-Qbt45gC-M.jpg" medium="image" />
	</item>
		<item>
		<title>Blogging off for Christmas</title>
		<link>http://bakerjd99.wordpress.com/2011/12/23/blogging-off-for-christmas/</link>
		<comments>http://bakerjd99.wordpress.com/2011/12/23/blogging-off-for-christmas/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 22:02:36 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Image Processing]]></category>
		<category><![CDATA[J]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[christmas wallpaper]]></category>
		<category><![CDATA[image editors]]></category>
		<category><![CDATA[image processing]]></category>
		<category><![CDATA[jsoftware]]></category>
		<category><![CDATA[Picture Window Pro]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=2315</guid>
		<description><![CDATA[I am celebrating Christmas by combining two of my favorite things: the programming language J and the superb image editor Picture Window Pro. The other day the good folks at Digital Light and Color announced 64 bit versions of Picture Window Pro. I was delighted. PWP is my favorite image editor. It&#8217;s had 16 bit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2315&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 333px"><a href="http://conceptcontrol.smugmug.com/Themes/Manipulations/Image-Hacking-1/7387395_SCSNdg"><img style="margin:5px;" title="J Christmas Wallpaper" src="http://conceptcontrol.smugmug.com/Themes/Manipulations/Image-Hacking-1/i-zfTHPnJ/0/M/jwrapping-M.png" alt="J Christmas Wallpaper" width="323" height="450" /></a><p class="wp-caption-text">J Christmas Wallpaper</p></div>
<p>I am celebrating Christmas by combining two of my favorite things: the <a href="http://www.jsoftware.com/">programming language J</a> and the superb image editor <em><a href="http://www.dl-c.com/">Picture Window Pro</a>.</em> The other day the good folks at <a href="http://www.dl-c.com/">Digital Light and Color</a> announced 64 bit versions of Picture Window Pro. I was delighted. PWP is my favorite image editor. It&#8217;s had 16 bit image support since the cows came home and it simply nukes Photoshop when it comes to flat-out crunching performance.  I was afraid that the good old-fashioned C programmers that had crafted this program were retiring: perhaps overwhelmed by a sea of mediocre consumer oriented overpriced sludge &#8212; <em>yes Photoshop Elements I&#8217;m talking about you! </em>Fortunately it&#8217;s not to be! 64 bit multi-core versions of PWP will dramatically extend the lifetime of PWP for this loyal customer.</p>
<p>Speaking of superb good old-fashioned C programs I must give a shout out to J. I&#8217;ve been busy preparing a talk for the up coming <a href="http://www.jsoftware.com/jwiki/Community/Conference2012">J conference</a> so J has been on my mind more than usual. Still <a href="http://www.youtube.com/watch?v=NgMdz2fe0CY">all work and no play makes J a dull boy!</a> This morning I rooted around in the J bin directories, sucked some J icons into PWP, and then twiddled transformations to generate some Christmas J monitor wallpaper: download and decorate at will!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/2315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/2315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/2315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/2315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/2315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/2315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/2315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/2315/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2315&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/12/23/blogging-off-for-christmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/Themes/Manipulations/Image-Hacking-1/i-zfTHPnJ/0/M/jwrapping-M.png" medium="image">
			<media:title type="html">J Christmas Wallpaper</media:title>
		</media:content>
	</item>
		<item>
		<title>The Instagram Metadata Massacre</title>
		<link>http://bakerjd99.wordpress.com/2011/12/14/the-instagram-metadata-massacre/</link>
		<comments>http://bakerjd99.wordpress.com/2011/12/14/the-instagram-metadata-massacre/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 23:19:45 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[EXIF/Metadata]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[apple marketing]]></category>
		<category><![CDATA[Exif]]></category>
		<category><![CDATA[exif data]]></category>
		<category><![CDATA[Instagram]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[photo libraries]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=2287</guid>
		<description><![CDATA[I&#8217;ve been playing around with the iPhone app Instagram.  I decided to give this freebie a try after a gaggle of soulless self promoting Apple marketing zombies declared it &#8221;imaging app of the year.&#8221;  Instagram, like Hipstamatic,  (which incidentally stopped working after the last update), crops iPhone images to squares, applies hokey filters and then offers you the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2287&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 178px"><a href="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/17756793_PfCsJz"><img class="     " title="Instagram Fingers" src="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-zS3BH5h/0/S/fingers-instagram-S.jpg" alt="Instagram Fingers" width="168" height="168" /></a><p class="wp-caption-text">Instagram Fingers</p></div>
<p>I&#8217;ve been playing around with the iPhone app <a href="http://itunes.apple.com/us/app/instagram/id389801252?mt=8">Instagram</a>.  I decided to give this freebie a try after a gaggle of soulless self promoting Apple marketing zombies declared it &#8221;imaging<a href="http://articles.businessinsider.com/2011-12-08/tech/30489467_1_android-apps-ipad"> app of the year</a>.&#8221;  Instagram, like <a href="http://hipstamatic.com/the_app.html">Hipstamatic</a>,  (which incidentally stopped working after the last update), crops iPhone images to squares, applies hokey filters and then offers you the opportunity to &#8220;share&#8221;  or print your masterpieces on related websites.  Apparently Instagram is already one of the words largest online photo libraries. Considering Instagram images are filtered iPhone shots it&#8217;s almost certainly <em>the worlds second largest online collection of crappy throw-away shots.  Facebook is the largest if you&#8217;re wondering!</em></p>
<p>You probably sense that I am not drinking the Instagram cool-aid. Instagram is a fine fun freebie but it strips EXIF data from the images it drops in the iPhone camera roll. This is the second<a href="http://bakerjd99.wordpress.com/2011/04/03/smugshot-metadata-mess/"> iPhone EXIF exterminator</a> I have encountered.  I have this thing about EXIF data; it annoys me when software massacres it.</p>
<p>Here&#8217;s a little poem:</p>
<p style="text-align:center;"><em>Exterminate EXIF &#8211; <strong>NOT</strong></em></p>
<p style="text-align:center;"><em>Let it be</em></p>
<p style="text-align:center;"><em>Set your fricking EXIF free</em></p>
<p style="text-align:center;"><strong><em>Alas, with Instagram, it&#8217;s not to be!</em></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/2287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/2287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/2287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/2287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/2287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/2287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/2287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/2287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2287&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/12/14/the-instagram-metadata-massacre/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-zS3BH5h/0/S/fingers-instagram-S.jpg" medium="image">
			<media:title type="html">Instagram Fingers</media:title>
		</media:content>
	</item>
		<item>
		<title>Revenge of the PhD Camera</title>
		<link>http://bakerjd99.wordpress.com/2011/12/04/revenge-of-the-phd-camera/</link>
		<comments>http://bakerjd99.wordpress.com/2011/12/04/revenge-of-the-phd-camera/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 05:01:51 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[cell-phone]]></category>
		<category><![CDATA[Hipstamatic]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=2215</guid>
		<description><![CDATA[Cameras come in two flavors. There are expensive serious cameras used by serious photographers to take serious photographs and then there are PhD, (Push here Dummy), cameras. Serious cameras meet the highest technical standards, lenses are diffraction limited, chromatic aberration approaches zero, pixel counts match Nyquist limits, ISO&#8217;s exceed retinal sensitivity, auto-focus is instantaneous, color spaces are wide, calibrated [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2215&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 226px"><a href="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/17756793_PfCsJz"><img style="margin-left:10px;margin-right:10px;" title="Hipstamatic water meter" src="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-7kRRKBL/0/S/water-main-cove-hipstamatic-S.jpg" alt="Hipstamatic water meter" width="216" height="216" /></a><p class="wp-caption-text">Hipstamatic water meter</p></div>
<p>Cameras come in two flavors. There are expensive <em>serious </em>cameras used by serious photographers to take serious photographs and then there are PhD, (<strong>P</strong>ush <strong>h</strong>ere <strong>D</strong>ummy), cameras. Serious cameras meet the highest technical standards, lenses are diffraction limited, chromatic aberration approaches zero, pixel counts match <a href="http://www.normankoren.com/Tutorials/MTF2.html">Nyquist limits</a>, ISO&#8217;s exceed retinal sensitivity, auto-focus is instantaneous, color spaces are wide, calibrated and range into the infra-red and ultra-violet. <em>PhD cameras don&#8217;t go there! PhD cameras provide a button for dummies to push.</em> Over the years I&#8217;ve ying&#8217;ed and yang&#8217;ed from serious to PhD cameras. It&#8217;s not that I cannot make up my mind. Camera choice is another eternal struggle sort of like that squabble between good and evil or light and regular beers.</p>
<p>When I&#8217;m on a serious photography kick I put time, expertise and money into my pictures. For me serious photography is exhausting. I  seek out worthy subjects, wait for the <em>right light</em>, agonize over composition, experiment with lenses, tweak f-stops, adjust shutter speeds and take as many exposures as light and time allow. Then the post shutter ordeal begins. Digital imaging processing makes anything possible. You can take your exposures and like some mad photo-shopping Rumpelstiltskin spin straw into gold.  But, as in the fairy tale, there is a high price, perfect images will suck years out of you. Photographers often talk about <em>workflow</em> and they aren&#8217;t kidding. When I start tweaking my workflow I know I&#8217;m reaching the end of my serious rope. Photography is one of my hobbies and I never ruin hobbies by turning them into jobs!</p>
<p><a href="http://1000memories.com/blog/94-number-of-photos-ever-taken-digital-and-analog-in-shoebox"><img class="alignleft" style="margin-left:8px;margin-right:8px;" title="The World's largest Photo Libraries 2011  1000memories.com" src="http://conceptcontrol.smugmug.com/photos/i-JV33FXZ/0/M/i-JV33FXZ-M.png" alt="The World's largest Photo Libraries 2011  1000memories.com" width="233" height="180" /></a></p>
<p>Eventually I snap out of it and resume PhD&#8217;ing. Unlike serious photography PhD&#8217;ing is effortless and fun. It&#8217;s always been fun, remember <a href="http://www.brownie-camera.com/">Brownies</a> and <a href="http://camerapedia.wikia.com/wiki/Instamatic">Instamatics</a>, but this <em>is the golden age of PhD photography!</em> In the last decade PhD cameras have evolved and mutated from cheap plastic boxes filled with grainy high-speed ISO film to sophisticated little internet photo-shopping engines that ride around in our pockets as cell phones. I don&#8217;t even know why they are called cell phones. My iPhone takes hundreds of images for every <em>phone call</em> it processes. It&#8217;s really more of an iCamera+iBrowser that can, on rare occasions, be used as a phone. Based on <a href="http://1000memories.com/blog/94-number-of-photos-ever-taken-digital-and-analog-in-shoebox">surveys of web image sites</a> I am not the only iCamera user. PhD photography is growing faster than the national debt.</p>
<div class="wp-caption alignright" style="width: 118px"><a href="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/17756793_PfCsJz"><img class=" " title="Mixing up cell phone color channels" src="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-vSstmnN/0/S/bird-shoulder-statue-forest-S.jpg" alt="Mixing up cell phone color channels" width="108" height="180" /></a><p class="wp-caption-text">Mixing up cell phone color channels</p></div>
<p>Explosive growth attracts armies of sinners and saints. Every two-bit whore chasing a buck is now writing image processing software for cell phones. In the last two years we&#8217;ve seen apps that <a href="http://itunes.apple.com/us/app/360-panorama/id377342622?mt=8">stitch panoramas on the fly</a>, apply <a href="http://www.appbrain.com/app/camera-360/vStudio.Android.GPhoto">cheesy photo-shop effects</a> and automatically create <a href="http://en.wikipedia.org/wiki/High_dynamic_range_imaging">HDR</a> images by blending two or more exposures.  As <a href="http://en.wikipedia.org/wiki/Sturgeon's_Law">Sturgeon&#8217;s law</a> predicts most of these apps are crap but that&#8217;s not a problem for PhD photography. The goal is to offer a fun button for dummies. My favorite PhD app is a great little toy called <a href="http://hipstamatic.com/the_app.html">Hipstamatic</a>. Hipstamatic simulates crappy old PhD film cameras loaded with expired film. You can choose a lens, a film and a flash or you can just shake your iPhone and let it randomly select all these parameters. Shake and shoot breaks all the rules of serious photography; it&#8217;s the revenge of the PhD camera.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/2215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/2215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/2215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/2215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/2215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/2215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/2215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/2215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2215&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/12/04/revenge-of-the-phd-camera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-7kRRKBL/0/S/water-main-cove-hipstamatic-S.jpg" medium="image">
			<media:title type="html">Hipstamatic water meter</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/photos/i-JV33FXZ/0/M/i-JV33FXZ-M.png" medium="image">
			<media:title type="html">The World&#039;s largest Photo Libraries 2011  1000memories.com</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-vSstmnN/0/S/bird-shoulder-statue-forest-S.jpg" medium="image">
			<media:title type="html">Mixing up cell phone color channels</media:title>
		</media:content>
	</item>
		<item>
		<title>Old white guys look at the sky!</title>
		<link>http://bakerjd99.wordpress.com/2011/11/20/old-white-guys-look-at-the-sky/</link>
		<comments>http://bakerjd99.wordpress.com/2011/11/20/old-white-guys-look-at-the-sky/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 22:35:44 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Diary]]></category>
		<category><![CDATA[astronomy]]></category>
		<category><![CDATA[astronomy clubs]]></category>
		<category><![CDATA[clubs]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=2151</guid>
		<description><![CDATA[Last Friday I joined the Saint Louis Astronomical Society (SLAS). In the last twenty years I have been a member of two chapters of the Royal Astronomical Society of Canada, Kingston and Ottawa, the Forth Worth Astronomical Society in Texas, the Minnesota Astronomical Society in Saint Paul and the Orange County Astronomers in southern California. No matter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2151&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.slasonline.org/"><img class="alignleft" style="margin-left:6px;margin-right:6px;" src="http://conceptcontrol.smugmug.com/photos/i-6wpcfgH/0/S/i-6wpcfgH-S.jpg" alt="" width="124" height="130" /></a>Last Friday I joined the <a href="http://www.slasonline.org/">Saint Louis Astronomical Society</a> (SLAS). In the last twenty years I have been a member of two chapters of the <a href="http://www.rasc.ca/">Royal Astronomical Society of Canada</a>, <a href="http://kingston.rasc.ca/">Kingston</a> and <a href="http://www.ottawa.rasc.ca/">Ottawa</a>, the <a href="http://www.fortworthastro.com">Forth Worth Astronomical Society</a> in Texas, the <a href="http://www.mnastro.org/">Minnesota Astronomical Society</a> in Saint Paul and the <a href="http://www.ocastronomers.org/">Orange County Astronomers</a> in southern California. No matter where I go I can see the sky and I can find people who share my interest in it. The SLAS is very similar to other clubs. If you were to walk into a typical astronomy club meeting your overwhelming impression would be: <em>old white guys like looking at the sky!  </em></p>
<p><em></em>The undeniable old whiteness of astronomy clubs is a concern because it tells you something about the health of our culture.  If you think I am pulling your leg or being sarcastic consider the following.</p>
<ol>
<li><strong>Club members have strong <em>noncommercial </em>or <em>unprofessional</em> interests in science.</strong>  Most are not professional astronomers or even scientists. Few derive any income from their interests in astronomy and many spend insane amounts of time and money building telescopes, observing  the sky and keeping up with findings in astronomy and related sciences. What&#8217;s the point? Wouldn&#8217;t these people be better off devoting the time they &#8220;waste&#8221; on astronomy to more productive pursuits?  Mind you the same applies to <em>unprofessional</em> artists and hobbyists of all types that &#8220;waste&#8221; comparable amounts of time on their own &#8220;pointless&#8221; pursuits.  Astronomy club members love what they do, and, in my experience, it&#8217;s a constant and enduring love that never dims or goes away. Anyone with a real passion knows what I&#8217;m talking about.</li>
<li><strong>Astronomy club members respect, understand and value scientific arguments. </strong>We are constantly reading depressing assessments of the public&#8217;s dismal understanding of science. For example, 44% of the US public accepts that, &#8220;<a href="http://www.religioustolerance.org/ev_publia.htm">God created man pretty much in his present form at one time within the last 10,000 years.</a>&#8221;  Only 5% of scientists accept this nonsense and <a href="http://bakerjd99.wordpress.com/2009/10/29/hard-ass-skeptic-rules/">even 5% seems to high for my skeptical ass.</a>  Astronomy club members will poll more like scientists than the general public on this question. A society that depends on science yet harbors ignorant masses that do not grasp or appreciate basic scientific findings will not hold.</li>
<li><strong>Club members welcome anyone with an interest in astronomy. </strong>I have belonged to half a dozen astronomy clubs and without exception they welcome anyone with an interest in the subject. I have never seen somebody turned away, or discouraged, for reasons of race, age, sex, sexual orientation, political or religious affiliations, or social class. Astronomy clubs are about as egalitarian as it gets! It gets better. Most clubs nurture and cherish the youngsters in their midst&#8217;s. This is partly because we don&#8217;t see a lot of youngsters and by youngster I mean anyone under thirty!</li>
</ol>
<p>So why are astronomy clubs in North America old and white? Do people think you need expensive telescopes and other pricey gadgets to enjoy amateur astronomy?  I&#8217;ve looked at the sky for decades primarily with binoculars. They are still the best way to learn the sky. Has the public&#8217;s interest in science declined during the last forty years? Is elementary science education worse than it was when I was a child? Is the XBox&#8217;ed and Avatar&#8217;ed generation bored with looking at faint smudges in the sky? <em>Finally, do we smell?</em>  I don&#8217;t know why astronomy clubs are old and white but I do know that I will probably be associated with one until the day I die.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/2151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/2151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/2151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/2151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/2151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/2151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/2151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/2151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2151&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/11/20/old-white-guys-look-at-the-sky/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/photos/i-6wpcfgH/0/S/i-6wpcfgH-S.jpg" medium="image" />
	</item>
		<item>
		<title>I lose another battle with Gravity</title>
		<link>http://bakerjd99.wordpress.com/2011/11/09/i-lose-another-battle-with-gravity/</link>
		<comments>http://bakerjd99.wordpress.com/2011/11/09/i-lose-another-battle-with-gravity/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 17:08:05 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[emergency]]></category>
		<category><![CDATA[exercise]]></category>
		<category><![CDATA[fall]]></category>
		<category><![CDATA[gym]]></category>
		<category><![CDATA[syncopal episode]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=2045</guid>
		<description><![CDATA[Yesterday I found myself back in Saint Luke&#8217;s emergency department being asked what day it was. An hour before I had stepped into the shower at 24 Hour Fitness over on Clayton,  I had just finished my noon hour workout.  I try to force myself to the gym at least four times a week.  It&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2045&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 290px"><a href="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/17756793_PfCsJz"><img class=" " title="24 Hour Fitness" src="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-6z3xBXn/0/S/chesterfield-gym-S.jpg" alt="24 Hour Fitness" width="280" height="209" /></a><p class="wp-caption-text">24 Hour Fitness</p></div>
<p>Yesterday I found myself back in Saint Luke&#8217;s emergency department being asked what day it was. An hour before I had stepped into the shower at 24 Hour Fitness over on Clayton,  I had just finished my noon hour workout.  I try to force myself to the gym at least four times a week.  It&#8217;s one of my many delusional projects. I&#8217;ve always wanted the lithe, lean muscular body of Spider Man but since I cannot cling to walls I&#8217;ve never managed the trick. As I stepped into the shower I suddenly felt sick to my stomach, it was a good pre-vomit feeling, I briefly thought about sitting down but then I stepped into the hot water and then &#8230; the next thing I remember  &#8230;  I was lying on my back on the shower floor with a few nude guys looking down at me.  A guy off to my side said, &#8221;you were out for bit,&#8221;  another added,  &#8221;you hit your head when you fell.&#8221;  Apparently,  if the news could be believed,  I had fallen out of the shower stall on my back.  I couldn&#8217;t remember a thing. <em>I had passed out in the freaking shower! </em> My first thought,  &#8221;oh goody one concussion coming up,&#8221;  I oddly didn&#8217;t care about my naked body inelegantly sprawled over harsh shower floor tiles for all to admire.  See you can get over gym shower shyness.</p>
<p>Of course this alarmed the gym staff, we live in a litigious, sue on the drop of &#8212; in this case my body &#8212; age.  They dutifully took notes and advised me to ride the ambulance to emergency.  &#8221;It wouldn&#8217;t be a good idea to drive away and pass out on the highway.&#8221;  They had me there!  The EMT guys arrived, strapped me up to an electrocardiogram,  started an IV and then hauled my ass over to Saint Luke&#8217;s where I am almost on first name basis with the staff.  One of the nurses said,  &#8221;I remember you, weren&#8217;t you <a href="http://bakerjd99.wordpress.com/2011/02/25/a-walk-in-the-park/">the guy that tore his quadriceps</a>?&#8221;  I enjoy being  recognized if only it was somewhere other than emergency.   Emergency staff plugged me into electric doo-dads,  drew my blood, measured my oxygen levels measured and shined lights into my eyes.  An earnest and very nice resident carefully interviewed me and declared I had experienced a <a href="http://www.medicineonline.com/topics/S/2/Syncopal-Episode/Fainting.html">syncopal episode</a>.  Google it,  it doesn&#8217;t sound good,  I may be a dead man walking or I could have just overdone it at the gym.  Time will certainly tell.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/2045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/2045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/2045/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=2045&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/11/09/i-lose-another-battle-with-gravity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://conceptcontrol.smugmug.com/Themes/Diaries/Cell-Phoning-It-In/i-6z3xBXn/0/S/chesterfield-gym-S.jpg" medium="image">
			<media:title type="html">24 Hour Fitness</media:title>
		</media:content>
	</item>
		<item>
		<title>Iranian Regime Justice is pathetic Sharia Savagery.</title>
		<link>http://bakerjd99.wordpress.com/2011/09/30/iranian-regime-justice-is-pathetic-sharia-savagery/</link>
		<comments>http://bakerjd99.wordpress.com/2011/09/30/iranian-regime-justice-is-pathetic-sharia-savagery/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 16:17:02 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[apostasy]]></category>
		<category><![CDATA[death sentence]]></category>
		<category><![CDATA[Iran]]></category>
		<category><![CDATA[Islam]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[religion of peace]]></category>
		<category><![CDATA[Sharia]]></category>
		<category><![CDATA[Yousef Nadarkhani]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=1952</guid>
		<description><![CDATA[I rarely comment on the &#8220;news&#8221; but the planned execution of Yousef Nadarkhani for the make-believe crime of Islamic apostasy has really pissed me off. Once again the Iranian branch of the &#8220;religion of peace&#8221; shows its primitive, ass-backwards, subhuman side to a stunned world that finds it hard to believe that changing your mind about fictitious religious nonsense is punishable by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1952&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_1971" class="wp-caption alignleft" style="width: 208px"><a href="http://bakerjd99.files.wordpress.com/2011/09/yousefnadarkhani.jpg"><img class="size-full wp-image-1971 " title="Yousef Nadarkhani" src="http://bakerjd99.files.wordpress.com/2011/09/yousefnadarkhani.jpg?w=630" alt="Yousef Nadarkhani"   /></a><p class="wp-caption-text">Yousef Nadarkhani</p></div>
<p>I rarely comment on the &#8220;news&#8221; but the planned execution of <a href="http://michellemalkin.com/2011/09/29/iranian-pastor-yousef-nadarkhani-faces-execution-for-refusing-to-renounce-christianity-where-are-the-hollyweirdos-and-euroweenies-now/">Yousef Nadarkhani</a> for the<a href="http://bakerjd99.wordpress.com/2009/10/26/counting-gods/"> make-believe</a> crime of Islamic apostasy has really pissed me off. Once again the Iranian branch of the &#8220;religion of peace&#8221; shows its primitive, ass-backwards, subhuman side to a stunned world that finds it hard to believe that <em>changing your mind about fictitious religious nonsense is punishable by death! </em>It&#8217;s rubbish like this that turned me into a hardcore atheist. If this is Sharia then Sharia is shit!</p>
<p>Let&#8217;s be perfectly clear. I am not condemning Iranians. I am married to an Iranian!  I have many lovely Iranian in-laws, and not a single one of them approves of this atavistic <a href="http://www.urbandictionary.com/define.php?term=Assinity">assinity</a>. Like civilized people everywhere their feelings alternate between disgust, shame and rage. While I forgive the Iranian people I condemn the Iranian regime. The government courts that imposed this sentence are pathetic throwbacks. They don&#8217;t belong in the modern world and one day they won&#8217;t.</p>
<p>Savages always assume they can bully and terrorize people forever. At first people are easily cowed but even the most egregious assaults fail to deter in the long run. The next time the Iranian masses take to the streets the regime will fall and with the exception of a few <em>islaminals </em>nobody is going to miss it!</p>
<p><em>P.S.  Before you go all brave fatwa waving kafir killing jihad warrior on me keep in mind that Missouri is a concealed carry state.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/1952/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/1952/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/1952/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/1952/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/1952/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/1952/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/1952/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/1952/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1952&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/09/30/iranian-regime-justice-is-pathetic-sharia-savagery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://bakerjd99.files.wordpress.com/2011/09/yousefnadarkhani.jpg" medium="image">
			<media:title type="html">Yousef Nadarkhani</media:title>
		</media:content>
	</item>
		<item>
		<title>New Conan not as Philosophical as Old Conan</title>
		<link>http://bakerjd99.wordpress.com/2011/09/18/new-conan-not-as-philosophical-as-old-conan/</link>
		<comments>http://bakerjd99.wordpress.com/2011/09/18/new-conan-not-as-philosophical-as-old-conan/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 01:48:35 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[Movies]]></category>
		<category><![CDATA[Nostalgia]]></category>
		<category><![CDATA[Conan]]></category>
		<category><![CDATA[Conan movie]]></category>
		<category><![CDATA[Conan the Barbarian]]></category>
		<category><![CDATA[Philosopher King]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=1919</guid>
		<description><![CDATA[Bad news philosophers, our preeminent social critic, our font of wisdom, our modern Socrates has succumbed to the malignant Hollywood poisons of reality TV, celebrity whoring, financial ennui and hopeless incompetent governance. Given the forces arrayed against our philosopher king only Vegas bookies on crack would favor his chances. I knew all this when I sat down to view [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1919&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bad news philosophers, our preeminent social critic, our font of wisdom, our modern Socrates has succumbed to the malignant Hollywood poisons of <a href="http://www.youjustmademylist.com/?p=562">reality TV</a>, <a href="http://www.spike.com/articles/0xugni/the-top-10-whore-rific-female-celebrities">celebrity whoring</a>, <a href="http://www.bizjournals.com/seattle/blog/2011/09/scant-improvement-in-nations.html">financial ennui</a> and <a href="http://www.whitehouse.gov/">hopeless incompetent governance</a>. Given the forces arrayed against our philosopher king only Vegas bookies on crack would favor his chances. I knew all this when I sat down to view the latest <a href="http://www.imdb.com/video/screenplay/vi3994852377/">Conan the Barbarian</a> movie but I let hope trump reason &#8212; sound familiar. If I wasn&#8217;t a <a href="http://staff.rio.edu/miket/attitude.htm">mainly-manly-man</a> I would cry for no longer will we ponder religious dissertations like:</p>
<p style="text-align:left;"><em>&#8220;Crom! I have never prayed to you before. I have no tongue for it. No one, not even you, will remember if we were good men or bad. Why we fought, or why we died. All that matters is that today, two stood against many. That&#8217;s what&#8217;s important! Valor pleases you, Crom; so grant me this one request. Grant me revenge! <strong>And if you do not listen, then to hell with you!</strong>&#8220;</em></p>
<p>Or learn about what&#8217;s good in life:</p>
<span style="text-align:center; display: block;"><a href="http://bakerjd99.wordpress.com/2011/09/18/new-conan-not-as-philosophical-as-old-conan/"><img src="http://img.youtube.com/vi/6PQ6335puOc/2.jpg" alt="" /></a></span>
<p>My friends that golden Apollonic age is past! Now we must content ourselves with <a href="http://bakerjd99.wordpress.com/2010/08/16/binge-pretend-boink/">eat, pray, love</a> travesties like:</p>
<p style="text-align:left;"><em>&#8220;I live, I love, I slay, I am content.&#8221;</em></p>
<p><strong>When did Conan the Barbarian decide to come out?</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/1919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/1919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/1919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/1919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/1919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/1919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/1919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/1919/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1919&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/09/18/new-conan-not-as-philosophical-as-old-conan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>
	</item>
		<item>
		<title>Typesetting UTF8 APL code with the LaTeX lstlisting package</title>
		<link>http://bakerjd99.wordpress.com/2011/08/15/typesetting-utf8-apl-code-with-the-latex-lstlisting-package/</link>
		<comments>http://bakerjd99.wordpress.com/2011/08/15/typesetting-utf8-apl-code-with-the-latex-lstlisting-package/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 02:27:57 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[APL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[TeX/LaTeX]]></category>
		<category><![CDATA[apl syntax coloring]]></category>
		<category><![CDATA[APL+WIN]]></category>
		<category><![CDATA[APL385]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[LaTeX2e]]></category>
		<category><![CDATA[lstlisting]]></category>
		<category><![CDATA[LuaLaTeX]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[UTF-8]]></category>
		<category><![CDATA[XeLaTeX]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=1837</guid>
		<description><![CDATA[Typesetting APL source code has always been a pain in the ass! In the dark ages, (the 1970&#8242;s), you had to fiddle with APL type-balls and live without luxuries like lower case letters. With the advent of general outline fonts it became technically possible to render APL glyphs on standard display devices provided you: Designed your own APL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1837&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_1908" class="wp-caption alignright" style="width: 308px"><a href="http://www.box.net/shared/62x2208x56lrjy5vkesz"><img class="size-full wp-image-1908 " title="aplbadboys" src="http://bakerjd99.files.wordpress.com/2011/08/aplbadboys.png?w=630" alt=""   /></a><p class="wp-caption-text">UTF8 APL characters within a LaTeX lstlisting environment. Click for *.tex source code</p></div>
<p>Typesetting <a href="http://en.wikipedia.org/wiki/APL_(programming_language)">APL</a> source code has always been a pain in the ass! In the dark ages, (<a href="http://www.google.com/search?tbm=isch&amp;hl=en&amp;source=hp&amp;biw=994&amp;bih=584&amp;q=the+seventies&amp;gbv=2&amp;oq=the+seventi">the 1970&#8242;s</a>), you had to fiddle with APL type-balls and live without luxuries like <em>lower case letters</em>. With the advent of general outline fonts it became <em>technically possible</em> to render APL <a href="http://www.merriam-webster.com/dictionary/glyph">glyphs </a>on standard display devices provided you:</p>
<ol>
<li>Designed your own APL font.</li>
<li>Mapped the <em><a href="http://aplwiki.com/AtomicVector">atomic vector</a></em> of your APL to whatever encoding your font demanded.</li>
<li>Wrote <span style="font-family:Courier;">WSFULL</span>&#8216;s of junk transliteration functions to dump your APL objects as font encoded text.</li>
</ol>
<p>It&#8217;s a testament to either the talent, or pig headedness of APL programmers, that many actually did this. We all hated it! We still hate it! But, like an abused spouse, we kept going back for more.  <em>It&#8217;s our fault; if we loved APL more it would stop hitting us!</em></p>
<p>When Unicode appeared APL&#8217;ers cheered &#8212; our long ASCII nightmare was ending. The more politically astute worked to include the <a href="http://aplwiki.com/UnicodeForAplers">APL characters in the Unicode standard.</a> Hey if <a href="http://www.evertype.com/standards/csur/klingon.html">Klingon </a>is there why not APL? Everyone thought it was just a matter of time until APL vendors abandoned their nonstandard atomic vectors and fully embraced Unicode. With a few notable exceptions we are still waiting. <em>While we wait the problem of typesetting APL source code festers.</em></p>
<p>My preferred source code listing tool is the <img src='http://s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=f0f0f0&amp;fg=555555&amp;s=0' alt='&#92;LaTeX' title='&#92;LaTeX' class='latex' /> <a href="http://en.wikibooks.org/wiki/LaTeX/Packages/Listings">lstlisting package</a>. <span style="font-family:Courier;">lstlisting</span> works well for standard ANSI source code.  I use it for <span style="font-family:Courier;">J, C#, SQL, C, XML, Ocaml, Mathmematica, F#,</span> shell scripts and <img src='http://s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=f0f0f0&amp;fg=555555&amp;s=0' alt='&#92;LaTeX' title='&#92;LaTeX' class='latex' /> source code, i.e. everything except APL! <span style="font-family:Courier;">lstlisting</span> is an eight bit package; it will not handle arbitrary Unicode out of the box.  I didn&#8217;t know how to get around this so I handled APL by enclosing UTF8 APL text in plain <span style="font-family:Courier;">\begin{verbatim} &#8230; \end{verbatim}</span> environments. This works for <span style="font-family:Courier;">XeLaTeX</span> and <span style="font-family:Courier;">LuaLaTeX</span> but you lose all the <span style="font-family:Courier;">lstlisting</span> goodies. Then I saw an interesting <a href="http://tex.stackexchange.com/">tex.stackexchange.com</a> posting about <a href="http://tex.stackexchange.com/questions/25391/the-listings-package-and-utf-8">The &#8216;listings&#8217; package and UTF-8</a>. One solution to the post&#8217;s &#8220;French ligature problem&#8221; showed how to force Unicode down <span style="font-family:Courier;">lstlisting</span>&#8216;s throat. I wondered if the same method would work for APL. It turns out that it does!</p>
<p>If you insert the following snippet of <span style="font-family:Courier;">TeX</span> code in your document preamble <span style="font-family:Courier;">LuaLaTeX</span> and <span style="font-family:Courier;">XeLaTeX</span> will properly process UTF8 APL text in <span style="font-family:Courier;">lstlisting</span> environments. You will need to download and install the <a href="http://v4.vector.org.uk/resource/">APL385 Unicode</a> font if it&#8217;s not on your system.  <strong>A test <img src='http://s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=f0f0f0&amp;fg=555555&amp;s=0' alt='&#92;LaTeX' title='&#92;LaTeX' class='latex' /> document illustrating this hack is available <a href="https://www.box.net/shared/62x2208x56lrjy5vkesz">here</a>. The compiled PDF is available <a href="https://www.box.net/shared/bnl3n4sqt2h3bhn8bb79">here</a>.</strong> As always these files can be accessed in the files sidebar.</p>
<p><pre class="brush: plain; auto-links: false; gutter: true; wrap-lines: false;">
% set lstlisting to accept UTF8 APL text
\makeatletter
\lst@InputCatcodes
\def\lst@DefEC{%
 \lst@CCECUse \lst@ProcessLetter
  ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f%
  ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f%
  ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af%
  ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf%
  ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf%
  ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df%
  ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef%
  ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff%
  ^^^^20ac^^^^0153^^^^0152%
  ^^^^20a7^^^^2190^^^^2191^^^^2192^^^^2193^^^^2206^^^^2207^^^^220a%
  ^^^^2218^^^^2228^^^^2229^^^^222a^^^^2235^^^^223c^^^^2260^^^^2261%
  ^^^^2262^^^^2264^^^^2265^^^^2282^^^^2283^^^^2296^^^^22a2^^^^22a3%
  ^^^^22a4^^^^22a5^^^^22c4^^^^2308^^^^230a^^^^2336^^^^2337^^^^2339%
  ^^^^233b^^^^233d^^^^233f^^^^2340^^^^2342^^^^2347^^^^2348^^^^2349%
  ^^^^234b^^^^234e^^^^2350^^^^2352^^^^2355^^^^2357^^^^2359^^^^235d%
  ^^^^235e^^^^235f^^^^2361^^^^2362^^^^2363^^^^2364^^^^2365^^^^2368%
  ^^^^236a^^^^236b^^^^236c^^^^2371^^^^2372^^^^2373^^^^2374^^^^2375%
  ^^^^2377^^^^2378^^^^237a^^^^2395^^^^25af^^^^25ca^^^^25cb%
  ^^00}
\lst@RestoreCatcodes
\makeatother
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/1837/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/1837/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/1837/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/1837/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/1837/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/1837/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/1837/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/1837/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1837&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/08/15/typesetting-utf8-apl-code-with-the-latex-lstlisting-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>

		<media:content url="http://bakerjd99.files.wordpress.com/2011/08/aplbadboys.png" medium="image">
			<media:title type="html">aplbadboys</media:title>
		</media:content>
	</item>
		<item>
		<title>Common Table Expression (CTE) SQLServer Queries with J</title>
		<link>http://bakerjd99.wordpress.com/2011/08/13/common-table-expression-cte-sqlserver-queries-with-j/</link>
		<comments>http://bakerjd99.wordpress.com/2011/08/13/common-table-expression-cte-sqlserver-queries-with-j/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 22:01:10 +0000</pubDate>
		<dc:creator>John Baker</dc:creator>
				<category><![CDATA[J]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[common table expression]]></category>
		<category><![CDATA[CTE]]></category>
		<category><![CDATA[jsoftware]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[SQLServer]]></category>

		<guid isPermaLink="false">http://bakerjd99.wordpress.com/?p=1795</guid>
		<description><![CDATA[I&#8217;ve been blogging long enough to observe that your awesome posts are often ignored while your little &#8220;one-offs&#8221; sometimes strike hit gold. This is particularly true for &#8220;code example&#8221; posts. When I&#8217;m trolling for code &#8212; the geek equivalent of trolling for babes &#8212; I don&#8217;t want to read about the author&#8217;s programming philosophy or what the hell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1795&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been blogging long enough to observe that your<em> awesome posts are often ignored</em> while your little &#8220;one-offs&#8221; sometimes strike <a href="http://www.webopedia.com/TERM/H/hit.html">hit</a> gold. This is particularly true for &#8220;code example&#8221; posts. When I&#8217;m trolling for code &#8212; the geek equivalent of trolling for babes &#8212; I don&#8217;t want to read about the author&#8217;s programming philosophy or what the hell he thinks about the idiot in the White House. <strong>Just show me the code and shut up!</strong></p>
<p>So, taking my own advice,  the following is an example of a SQLSever <a href="http://msdn.microsoft.com/en-us/library/ms190766.aspx">Common Table Expression</a> (CTE) query.</p>
<p><pre class="brush: sql; auto-links: false; gutter: false; wrap-lines: false;">
WITH cte1
     AS (SELECT c.obj_id                            AS obj_id,
                a.created                           AS creation_date,
                Datediff(DAY, a.created, Getdate()) AS day_cnt
         FROM   [HIST].[dbo].[History] a
                JOIN [HIST].[dbo].[HistorySummary] b
                  ON a.rowid = b.rowid
                JOIN [HIST].[dbo].[ObjectNames] c
                  ON c.obj_name = b.obj_name),
     cte2
     AS (SELECT cte1.obj_id AS obj_id,
                CASE
                  WHEN cte1.day_cnt &lt;= 30 THEN 1
                  ELSE 0
                END         AS d0,
                CASE
                  WHEN ( cte1.day_cnt &gt; 30 )
                       AND ( cte1.day_cnt &lt;= 60 ) THEN 1
                  ELSE 0
                END         AS d1,
                CASE
                  WHEN ( cte1.day_cnt &gt; 60 )
                       AND ( cte1.day_cnt &lt;= 90 ) THEN 1
                  ELSE 0
                END         AS d2,
                CASE
                  WHEN ( cte1.day_cnt &gt; 90 ) THEN 1
                  ELSE 0
                END         AS d3
         FROM   cte1)
SELECT obj_id,
       SUM(d0) AS OneMonth,
       SUM(d1) AS TwoMonths,
       SUM(d2) AS ThreeMonths,
       SUM(d3) AS Overdue
FROM   cte2
GROUP  BY obj_id
</pre></p>
<p>CTE queries <em>essentially</em> create temporary virtual tables during query execution. They are similar to nested SQL queries but are easier to code, more general, (see <a href="http://msdn.microsoft.com/en-us/library/ms186243.aspx">recursive CTE queries</a>), and often perform better than their convoluted equivalents. This example creates two virtual tables <span style="font-family:Courier;">cte1</span> and <span style="font-family:Courier;">cte2</span> that are then used to compute a quick histogram.</p>
<p>You can call CTE queries with the <a href="http://www.jsoftware.com/jwiki/ODBC">J ODBC</a> interface. The following assumes a SQLServer ODBC connection <a href="http://www.geeksengine.com/article/mysql-odbc.html">dsn</a> <span style="font-family:Courier;">history.</span></p>
<p><pre class="brush: plain; auto-links: false; gutter: false; wrap-lines: false;">
NB. odbc interface
require 'dd'

NB. read CTE query
HistoryAgeSQL=. read 'c:/temp/HistoryAge.sql'

NB. connect sqlserver database
ch =. ddcon 'dsn=history'

NB. select with CTE query
sh =. HistoryAgeSQL ddsel ch

NB. fetch results
data=. ddfet sh,_1
</pre></p>
<p>As a final note it&#8217;s worth comparing the SQL CTE histogram code with J equivalents.  The two following J verbs taken from the <a href="http://www.jsoftware.com/jwiki/FrontPage">J wiki</a>, (<a href="http://www.jsoftware.com/jwiki/Essays/Histogram">here</a> and <a href="http://www.jsoftware.com/jwiki/BrianSchott/Histogram">here</a>), compute histograms.</p>
<p><pre class="brush: plain; auto-links: false; gutter: false; wrap-lines: false;">
NB. computes histograms uses right open intervals
histogram=:&lt;:@(#/.~)@(i.@#@[ , I.)

NB. variation on (histogram) uses left open intervals
histogram2=:&lt;:@(#/.~)@(i.@&gt;:@#@[ , |.@[ (#@[ - I.) ])
</pre></p>
<p>They scale to tens of millions of data points; returning results in a few seconds on my laptop. The SQL CTE, shown above, takes about three seconds running on 180,000 row tables on my employer&#8217;s <a href="http://www.trekmania.net/science/warp_scale.htm">full warp</a> servers.  If I could convince the masses to adopt languages like J a large part of my job would disappear. Fortunately, <em>the world is hostile to terse elegance!</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bakerjd99.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bakerjd99.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bakerjd99.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bakerjd99.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bakerjd99.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bakerjd99.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bakerjd99.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bakerjd99.wordpress.com/1795/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bakerjd99.wordpress.com&amp;blog=9342940&amp;post=1795&amp;subd=bakerjd99&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bakerjd99.wordpress.com/2011/08/13/common-table-expression-cte-sqlserver-queries-with-j/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d564a508700caf0e93eb415d0a6651f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bakerjd99</media:title>
		</media:content>
	</item>
	</channel>
</rss>
