<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Thinking Outloud</title>
	
	<link>http://thebull.macsimumweb.com</link>
	<description>Thoughts on poker, programming and other stuff.</description>
	<lastBuildDate>Thu, 22 Oct 2009 19:52:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/thebull" type="application/rss+xml" /><feedburner:emailServiceId>thebull</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Interesting hibernate transaction issue</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/90t4i7l_eDA/interesting-hibernate-transaction-issue</link>
		<comments>http://thebull.macsimumweb.com/interesting-hibernate-transaction-issue#comments</comments>
		<pubDate>Thu, 22 Oct 2009 19:52:41 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[grails]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=378</guid>
		<description><![CDATA[I&#8217;m working on a new Grails based project and came across a transaction issue. The application is an ecommerce app and as such the placing of the order has a lot going on that should all reside in a transaction. 
Being a Grails app I decided to put the processing inside a transactional service method. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a new Grails based project and came across a transaction issue. The application is an ecommerce app and as such the placing of the order has a lot going on that should all reside in a transaction. </p>
<p>Being a Grails app I decided to put the processing inside a transactional service method. So far so good. The flow looks something like this:</p>
<ol>
<li>Create billing address</li>
<li>Create credit card</li>
<li>Assign billing address to card</li>
<li>Create shipping address</li>
<li>Loop through the cart items and for each item find stock(inventory) to fulfill each</li>
<li>Mark the stock as sold as applied</li>
<li>Add each order item to the order</li>
<li>Assign order to customer</li>
<li>Save order and customer</li>
</ul>
<p>That is a little oversimplified, but you get the idea. So, what was the problem?</p>
<p>The problem came in during the select for the stock. This select would cause a hibernate exception about the address being a transient object. Well that made no sense at all. </p>
<p>At first I started down the road of abandoning the whole transaction thing and doing it manually. Naturally that was ugly and very error prone, so I did some research to find out what the cause might be. Came up empty.</p>
<p>My gut said that a select should not cause a problem with unsaved data. Then I thought that maybe hibernate was enforcing some sort of isolation level mechanism. Most of us never bother with database isolation levels (and fewer even know what they are sadly enough), but perhaps that was causing it. So what I did was move all the save() calls from the end to where they were being used.</p>
<p>In other words I called save on the two addresses and the credit card before the loops on getting and assigning stock.</p>
<p>Worked like a charm. I now have the whole thing in a transaction as it should be.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=90t4i7l_eDA:mtZtkDIDT-s:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=90t4i7l_eDA:mtZtkDIDT-s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=90t4i7l_eDA:mtZtkDIDT-s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=90t4i7l_eDA:mtZtkDIDT-s:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/90t4i7l_eDA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/interesting-hibernate-transaction-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/interesting-hibernate-transaction-issue</feedburner:origLink></item>
		<item>
		<title>My new app minus the RDBMS</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/ypWvsbopWow/my-new-app-minus-the-rdbms</link>
		<comments>http://thebull.macsimumweb.com/my-new-app-minus-the-rdbms#comments</comments>
		<pubDate>Wed, 16 Sep 2009 02:20:21 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[grails]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=376</guid>
		<description><![CDATA[I&#8217;ve been intrigued for some time about building an application on using a datastore that wasn&#8217;t a relational database. This &#8220;movement&#8221; as it were is being called &#8220;noSQL&#8221;. 
My application is a search engine service. As such I don&#8217;t need much actual data that is stored in a database and I decided to forgo using [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been intrigued for some time about building an application on using a datastore that wasn&#8217;t a relational database. This &#8220;movement&#8221; as it were is being called &#8220;noSQL&#8221;. </p>
<p>My application is a search engine service. As such I don&#8217;t need much actual data that is stored in a database and I decided to forgo using trusty old MySQL for this job and try something different.</p>
<h2>SimpleDB</h2>
<p>So I decided to go with Amazon&#8217;s <a href="http://aws.amazon.com/simpledb/">SimpleDB</a> for this project. It has come a long way since I first looked at it and has all the query capabilities that I need.</p>
<p>If you aren&#8217;t familiar with SimpleDB, it is a schema-less setup where domains act as tables. The schema-less design means that the schema can accommodate new columns as needed. While not really necessary for my particular application, it is a feature.</p>
<p>What do I gain with SimpleDB? As traffic increases, I can spool up more servers (can you say Amazon&#8217;s EC2?) and since they communicate with SimpleDB, I don&#8217;t have to worry about a load on a central RDBMS. </p>
<h2>The App</h2>
<p>The app itself is built on Grails. For those familiar with Grails, it uses Hibernate under the covers as part of GORM. Well, I&#8217;m not using that obviously for this project. However since my query requirements are pretty minimal, that is not an issue. I only have a few domain objects and in most cases I get them by id. </p>
<p>Behind the grails app is <a href="http://lucene.apache.org/solr/">Solr</a>, the web app front end to <a href="http://lucene.apache.org/">Lucence</a> indexing engine. </p>
<p>Initial development is about done and will be alpha tested behind an existing site that receives ~100k pageviews a month. I&#8217;ll give that a month or so and expand into beta testing.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=ypWvsbopWow:nS5p3ym-FfM:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=ypWvsbopWow:nS5p3ym-FfM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=ypWvsbopWow:nS5p3ym-FfM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=ypWvsbopWow:nS5p3ym-FfM:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/ypWvsbopWow" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/my-new-app-minus-the-rdbms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/my-new-app-minus-the-rdbms</feedburner:origLink></item>
		<item>
		<title>New gun bag for my AK</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/kIecD1ODNMI/new-gun-bag-for-my-ak</link>
		<comments>http://thebull.macsimumweb.com/new-gun-bag-for-my-ak#comments</comments>
		<pubDate>Fri, 17 Jul 2009 14:59:11 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[guns]]></category>
		<category><![CDATA[ak-47]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=370</guid>
		<description><![CDATA[I finally got a gun bag for my AK. Got it from Desert Tactical and it is a 36&#8243; bag with plenty of pockets and storage.
Here are some pics:
Still waiting for the new tapco magazines to come in as well as the lula loader.
Get the latest celebrity news from around the web here!
]]></description>
			<content:encoded><![CDATA[<p>I finally got a gun bag for my AK. Got it from Desert Tactical and it is a 36&#8243; bag with plenty of pockets and storage.</p>
<p>Here are some pics:<br />

<a href='http://thebull.macsimumweb.com/new-gun-bag-for-my-ak/dsc_5969' title='dsc_5969'><img width="150" height="150" src="http://thebull.macsimumweb.com/wp-content/upload/2009/07/dsc_5969-150x150.jpg" class="attachment-thumbnail" alt="" title="dsc_5969" /></a>
<a href='http://thebull.macsimumweb.com/new-gun-bag-for-my-ak/dsc_5970' title='dsc_5970'><img width="150" height="150" src="http://thebull.macsimumweb.com/wp-content/upload/2009/07/dsc_5970-150x150.jpg" class="attachment-thumbnail" alt="" title="dsc_5970" /></a>
</p>
<p>Still waiting for the new tapco magazines to come in as well as the lula loader.
<p>Get the latest celebrity news from around the web <a href="http://www.celebrityblender.com">here!</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=kIecD1ODNMI:MXlILieBGNA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=kIecD1ODNMI:MXlILieBGNA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=kIecD1ODNMI:MXlILieBGNA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=kIecD1ODNMI:MXlILieBGNA:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/kIecD1ODNMI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/new-gun-bag-for-my-ak/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/new-gun-bag-for-my-ak</feedburner:origLink></item>
		<item>
		<title>Sarah Palin’s new assault rifle</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/ZosiugjJrMI/sarah-palins-new-assault-rifle</link>
		<comments>http://thebull.macsimumweb.com/sarah-palins-new-assault-rifle#comments</comments>
		<pubDate>Mon, 04 May 2009 18:17:33 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[shooting]]></category>
		<category><![CDATA[ar15]]></category>
		<category><![CDATA[sarah palin]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=368</guid>
		<description><![CDATA[I wrote about it here, but the NRA is giving the governor a beautiful custom built .50 AR-15 style assault rifle in honor of her defense of the second amendment. Whether you like guns or not, the workmanship on this one is pretty spectacular.
$5 a month Ruby on Rails hosting. No kidding! Unlimited domains, 7.5 [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote about it <a href="http://www.examiner.com/examiner/x-7891-Oklahoma-City-Republican-Examiner~y2009m5d4-NRA-honors-Sarah-Palin">here</a>, but the NRA is giving the governor a beautiful custom built .50 AR-15 style assault rifle in honor of her defense of the second amendment. Whether you like guns or not, the workmanship on this one is pretty spectacular.
<p><a href="http://tinyurl.com/2eyjqv">$5 a month Ruby on Rails hosting</a>. No kidding! Unlimited domains, 7.5 TB of bandwidth</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=ZosiugjJrMI:8sGo9zYocEY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=ZosiugjJrMI:8sGo9zYocEY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=ZosiugjJrMI:8sGo9zYocEY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=ZosiugjJrMI:8sGo9zYocEY:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/ZosiugjJrMI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/sarah-palins-new-assault-rifle/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/sarah-palins-new-assault-rifle</feedburner:origLink></item>
		<item>
		<title>Shooting an AR15</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/9ibi_vbUCsg/shooting-an-ar15</link>
		<comments>http://thebull.macsimumweb.com/shooting-an-ar15#comments</comments>
		<pubDate>Mon, 04 May 2009 18:14:48 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[shooting]]></category>
		<category><![CDATA[ar15]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=365</guid>
		<description><![CDATA[This weekend I had a good time shooting my friend&#8217;s AR15 out the Nevada desert. All told we put 470 round through it over the course of a couple hours. The video below wasn&#8217;t my best shooting, but both us did manage to hit the pins every time it was our turn to shoot.

Not too [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I had a good time shooting my friend&#8217;s AR15 out the Nevada desert. All told we put 470 round through it over the course of a couple hours. The video below wasn&#8217;t my best shooting, but both us did manage to hit the pins every time it was our turn to shoot.</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/c4WOcKHYzFg&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/c4WOcKHYzFg&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>Not too shabby considering I was standing, unsupported shooting through iron sights with a slight wind.
<p>New and Used Mac Minis available on <a href="http://www.usedmacmini.com">MacMini.com</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=9ibi_vbUCsg:JP9_3EOQIo8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=9ibi_vbUCsg:JP9_3EOQIo8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=9ibi_vbUCsg:JP9_3EOQIo8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=9ibi_vbUCsg:JP9_3EOQIo8:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/9ibi_vbUCsg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/shooting-an-ar15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/shooting-an-ar15</feedburner:origLink></item>
		<item>
		<title>More Americans think global warming is natural</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/eF0TgRa8zfo/more-americans-think-global-warming-is-natural</link>
		<comments>http://thebull.macsimumweb.com/more-americans-think-global-warming-is-natural#comments</comments>
		<pubDate>Sat, 18 Apr 2009 20:07:19 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=363</guid>
		<description><![CDATA[Despite the best efforts of Al Gore and his legion of leftist alarmists, most Americans believe that global warming is a natural thing.
According to Rasmussen reports, only one out of three voters believe global warming is caused by human activity.
The rest of the story is here.
]]></description>
			<content:encoded><![CDATA[<p>Despite the best efforts of Al Gore and his legion of leftist alarmists, most Americans believe that global warming is a natural thing.</p>
<p>According to Rasmussen reports, only one out of three voters believe global warming is caused by human activity.</p>
<p>The rest of the story is <a href="http://www.examiner.com/examiner/x-7891-Oklahoma-City-Republican-Examiner~y2009m4d18-More-Americans-think-global-warming-is-natural">here</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=eF0TgRa8zfo:-ggYk64M1nc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=eF0TgRa8zfo:-ggYk64M1nc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=eF0TgRa8zfo:-ggYk64M1nc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=eF0TgRa8zfo:-ggYk64M1nc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/eF0TgRa8zfo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/more-americans-think-global-warming-is-natural/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/more-americans-think-global-warming-is-natural</feedburner:origLink></item>
		<item>
		<title>My new XD 45</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/h6iz3yol64I/my-new-xd-45</link>
		<comments>http://thebull.macsimumweb.com/my-new-xd-45#comments</comments>
		<pubDate>Sat, 18 Apr 2009 18:21:54 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[shooting]]></category>
		<category><![CDATA[guns]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=346</guid>
		<description><![CDATA[A few weekends ago I wrote about going shooting with a friend and his new Springfield XD 45. It had been a long time since I had shot a gun and I enjoyed it thoroughly.
Well, I had so much fun that my wife and I went shooting. She brought her .22 Magnum revolver that she [...]]]></description>
			<content:encoded><![CDATA[<p>A few weekends ago <a href="http://www.examiner.com/examiner/x-7891-Oklahoma-City-Republican-Examiner~y2009m4d11-Enjoying-my-gun-rights">I wrote about going shooting</a> with a friend and his new Springfield XD 45. It had been a long time since I had shot a gun and I enjoyed it thoroughly.</p>
<p>Well, I had so much fun that my wife and I went shooting. She brought her .22 Magnum revolver that she got from her brother and we also rented a Glock 17 (9mm). We had a good time and I was hooked. I wanted my own handgun.</p>
<p>I did some research and it seemed like the XD was the hot thing out there now. I enjoyed the Glock, but I liked the XD just a bit more. It also came with more for the money, and I told my wife I wanted one.</p>
<p>So she ended up getting me one for my birthday, along with a UpLULA speed loader, a couple of extra magazines and cleaning kit. It wasn&#8217;t easy finding one as they sell out pretty quickly, but find one we did.</p>
<div id="attachment_349" class="wp-caption aligncenter" style="width: 310px"><a href="http://thebull.macsimumweb.com/wp-content/upload/2009/04/dscn0265.jpg"><img src="http://thebull.macsimumweb.com/wp-content/upload/2009/04/dscn0265-300x225.jpg" alt="XD 45 with UpLULA loaders and cleaning kit" title="Springfield XD .45" width="300" height="225" class="size-medium wp-image-349" /></a><p class="wp-caption-text">XD 45 with UpLULA loaders and cleaning kit</p></div>
<p><div style="text-align:center">
<script type="text/javascript"><!--
google_ad_client = "pub-3450648811772145";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "3e4243";
google_color_bg = "ffffff";
google_color_link = "00800";
google_color_text = "717171";
google_color_url = "717171";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></p>
<h2>First 100 Rounds</h2>
<p>Today I got to shoot it for the first time and I put two boxes of round through it. I am very pleased to say the least. The picture below shows about 4 mags worth of rounds. With the exception of a few stragglers most are in pretty a good group. If my math is correct, I put 73% in a 5&#8243; grouping. All of these were at 10 yards.</p>
<div id="attachment_350" class="wp-caption aligncenter" style="width: 310px"><a href="http://thebull.macsimumweb.com/wp-content/upload/2009/04/dscn0266.jpg"><img src="http://thebull.macsimumweb.com/wp-content/upload/2009/04/dscn0266-300x225.jpg" alt="First 100 rounds with XD 45" title="dscn0266" width="300" height="225" class="size-medium wp-image-350" /></a><p class="wp-caption-text">First 100 rounds with XD 45</p></div>
<p>For a little fun I put a couple mags into some head shots. Only one miss. Again at 10 yards.<br />
<div id="attachment_351" class="wp-caption aligncenter" style="width: 297px"><a href="http://thebull.macsimumweb.com/wp-content/upload/2009/04/dscn0267.jpg"><img src="http://thebull.macsimumweb.com/wp-content/upload/2009/04/dscn0267-287x300.jpg" alt="2 mags into the heads" title="head shots" width="287" height="300" class="size-medium wp-image-351" /></a><p class="wp-caption-text">2 mags into the heads</p></div></p>
<p>I then hooked up a smaller target, put it at ten yards and shot about a mag and half (the rest of my .45 rounds). I was a bit off on that one and wasn&#8217;t too pleased. Maybe it was a little fatigue, who knows. I also shot my wife&#8217;s .22 for a little variety. It is quite accurate and I managed a couple of 2&#8243; groups with it at 7 yards.</p>
<p>All around, I am very happy with the gun and my shooting. I plan on going at least twice a month and working on those groupings. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=h6iz3yol64I:GN8aUzTl8QA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=h6iz3yol64I:GN8aUzTl8QA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=h6iz3yol64I:GN8aUzTl8QA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=h6iz3yol64I:GN8aUzTl8QA:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/h6iz3yol64I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/my-new-xd-45/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/my-new-xd-45</feedburner:origLink></item>
		<item>
		<title>Upgrading to Grails 1.1</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/8jIJS9QYvoI/upgrading-to-grails-11</link>
		<comments>http://thebull.macsimumweb.com/upgrading-to-grails-11#comments</comments>
		<pubDate>Fri, 10 Apr 2009 15:00:27 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=337</guid>
		<description><![CDATA[I spent about a day&#8217;s worth of work upgrading PatriotRoom.com from Grails 1.0.4 to Grails 1.1.
There were two areas that I had trouble with. The first was the plugins and was the easiest to overcome. I just had to reinstall them. The second however was logging which was completely revamped in Grails 1.1.
Personally I always [...]]]></description>
			<content:encoded><![CDATA[<p>I spent about a day&#8217;s worth of work upgrading <a href="http://patriotroom.com">PatriotRoom.com</a> from Grails 1.0.4 to Grails 1.1.</p>
<p>There were two areas that I had trouble with. The first was the plugins and was the easiest to overcome. I just had to reinstall them. The second however was logging which was completely revamped in Grails 1.1.</p>
<p>Personally I always <a href="http://thebull.macsimumweb.com/has-anyone-gotten-log4j-and-grails-to-play-nice">had mixed results</a> with logging settings in different environments. Turns out this site was the worst. However I like the new approach although it took the longest to get right. Some of it is because the documentation is a bit light in the area, especially with regards to custom appenders. I use two appenders, a daily rolling appender and an email appender for errors. </p>
<p>My file appender now looks like this:</p>
<pre class="brush: groovy">
appenders {
  console name:&#039;stdout&#039;, layout:pattern(conversionPattern: &#039;%d{ISO8601} [%p] -%X{user} %X{ip} # %X{sessionid} - %c{2} - %m%n&#039;)

appender new org.apache.log4j.DailyRollingFileAppender(name:&#039;rollingfile&#039;, datePattern:&quot;&#039;.&#039;yyyy-MM-dd&quot;,layout:pattern(conversionPattern: &#039;%d{ISO8601} [%p] -%X{user} %X{ip} # %X{sessionid} - %c{2} - %m%n&#039;), file:&#039;../logs/patriotroom.log&#039;);
}
</pre>
<p>I still haven&#8217;t gotten the email appender working yet though. </p>
<p>Besides that, I also had to turn off the nice warning about the createLinkTo tag being deprecated. Guess I should fix those <img src='http://thebull.macsimumweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The best part of the upgrade though is the &#8211;nojars build option. This is a real timesaver. My war file went from 25mb down to 6mb, which means my upload times went from just over 2 minutes down to 18 seconds. Now that is nice!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=8jIJS9QYvoI:Rtjeechp18o:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=8jIJS9QYvoI:Rtjeechp18o:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=8jIJS9QYvoI:Rtjeechp18o:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=8jIJS9QYvoI:Rtjeechp18o:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/8jIJS9QYvoI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/upgrading-to-grails-11/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/upgrading-to-grails-11</feedburner:origLink></item>
		<item>
		<title>Will Google App Engine Revolutionize Java Development?</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/kp5Kg8c1D7c/will-google-app-engine-revolutionize-java-development</link>
		<comments>http://thebull.macsimumweb.com/will-google-app-engine-revolutionize-java-development#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:16:31 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[google app engine]]></category>
		<category><![CDATA[grails]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=331</guid>
		<description><![CDATA[There is a lot of buzz in the Java community concerning the announcement over the availability of Java on the Google App Engine. It is a big boon for Java developers for sure, but there are some drawbacks for serious applications.





Logging
Seems you are stuck with using the JDK logging. Let&#8217;s face it, no developer in [...]]]></description>
			<content:encoded><![CDATA[<p>There is a lot of buzz in the Java community concerning the announcement over the availability of Java on the Google App Engine. It is a big boon for Java developers for sure, but there are some drawbacks for serious applications.<br />
<div style="text-align:center">
<script type="text/javascript"><!--
google_ad_client = "pub-3450648811772145";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "3e4243";
google_color_bg = "ffffff";
google_color_link = "00800";
google_color_text = "717171";
google_color_url = "717171";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></p>
<h3>Logging</h3>
<p>Seems you are stuck with using the JDK logging. Let&#8217;s face it, no developer in his right mind chooses that over Log4j. There just isn&#8217;t enough functionality there to make it worthwhile (reporting anyone?).</p>
<h3>Persistence</h3>
<p>You are limited to JDO. This can be both good and bad. JDO and related technologies, are fine for many applications, but there are times when you just need more power than object queries allow.  The upside is that you probably don&#8217;t have to worry about data scaling needs.</p>
<h3>Threading</h3>
<p>You can&#8217;t create your own threads, nor presumably can anything else. This may be a big hindrance for many applications. For example I use the Quartz library all the time for various scheduling needs (especially in Grails).</p>
<p>There are a few other things you can and can&#8217;t do, but the ones above require some serious consideration before choosing to deploy on the app engine. On some brighter news, it looks like the Grails group is working on making Grails compatible with GAE. That alone will probably be the biggest use on GAE, and that isn&#8217;t a bad thing at all.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=kp5Kg8c1D7c:unEioBywgvs:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=kp5Kg8c1D7c:unEioBywgvs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=kp5Kg8c1D7c:unEioBywgvs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=kp5Kg8c1D7c:unEioBywgvs:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/kp5Kg8c1D7c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/will-google-app-engine-revolutionize-java-development/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/will-google-app-engine-revolutionize-java-development</feedburner:origLink></item>
		<item>
		<title>Java is safe. For now…</title>
		<link>http://feedproxy.google.com/~r/thebull/~3/X5ezlsUvDrM/java-is-safe-for-now</link>
		<comments>http://thebull.macsimumweb.com/java-is-safe-for-now#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:45:07 +0000</pubDate>
		<dc:creator>The Bull</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://thebull.macsimumweb.com/?p=329</guid>
		<description><![CDATA[IBM has pulled its offer to buy Sun according the NYT:
I.B.M. withdrew its $7 billion bid for Sun Microsystems on Sunday, one day after Sun’s board balked at a reduced offer, according to three people close to the talks.
The article goes on to say that other possible suitors could be HP and Cisco. I think [...]]]></description>
			<content:encoded><![CDATA[<p>IBM has pulled its offer to buy Sun according the <a href="http://www.nytimes.com/2009/04/06/technology/business-computing/06blue.html?_r=2&#038;ref=global-home">NYT</a>:</p>
<blockquote><p>I.B.M. withdrew its $7 billion bid for Sun Microsystems on Sunday, one day after Sun’s board balked at a reduced offer, according to three people close to the talks.</p></blockquote>
<p>The article goes on to say that other possible suitors could be HP and Cisco. I think with HP it would be similar to IBM in that HP would buy and dissolve the company with the possible exception of Java. As for Cisco, which is just entering the server business it would be a definite expansion of products all around.</p>
<p>Granted, Java has never really been a money maker for Sun but for IBM Sun&#8217;s Java software is a big competitor all the way from JVM to JEE servers. The other two companies don&#8217;t have a Java stack at all and would most likely leave the Java side alone, keeping out of Big Blue&#8217;s death.</p>
<p>Although IBM has pulled out, there is nothing from them getting back into it, and if Sun&#8217;s upcoming earnings report looks bad IBM may be the only one willing to buy them. Let&#8217;s hope for the best.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/thebull?a=X5ezlsUvDrM:p54WKOH64jc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/thebull?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=X5ezlsUvDrM:p54WKOH64jc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/thebull?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/thebull?a=X5ezlsUvDrM:p54WKOH64jc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/thebull?i=X5ezlsUvDrM:p54WKOH64jc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/thebull/~4/X5ezlsUvDrM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thebull.macsimumweb.com/java-is-safe-for-now/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://thebull.macsimumweb.com/java-is-safe-for-now</feedburner:origLink></item>
	</channel>
</rss>
