<?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/"
	>

<channel>
	<title>Dave Rowe's Blog &#187; Grinds My Gears</title>
	<atom:link href="http://blog.roweware.com/category/grinds-my-gears/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.roweware.com</link>
	<description>Ramblings about things I think I know...</description>
	<lastBuildDate>Tue, 18 Jan 2011 21:28:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Thoughts on the TSA and Safety</title>
		<link>http://blog.roweware.com/2010/11/25/thoughts-on-the-tsa-and-safety/</link>
		<comments>http://blog.roweware.com/2010/11/25/thoughts-on-the-tsa-and-safety/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 15:00:15 +0000</pubDate>
		<dc:creator>Dave Rowe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Grinds My Gears]]></category>
		<category><![CDATA[dhs]]></category>
		<category><![CDATA[fear]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tsa]]></category>

		<guid isPermaLink="false">http://blog.roweware.com/?p=243</guid>
		<description><![CDATA[You&#8217;re likely aware that the TSA has been putting new scanning machines in airports around the country, as well as, policies for a more &#8216;invasive&#8217; pat-down procedure should an &#8216;anomaly&#8217; show up on the scan, or should the passenger choose to opt-out of the scan.  This post isn&#8217;t about the potential health concerns of the [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re likely aware that the <a href="http://en.wikipedia.org/wiki/Transportation_Security_Administration" target="_blank">TSA</a> has been putting new <a href="http://en.wikipedia.org/wiki/Backscatter_X-ray" target="_blank">scanning machines</a> in <a href="http://www.tsa.gov/approach/tech/ait/faqs.shtm" target="_blank">airports</a> around the country, as well as, policies for a more &#8216;invasive&#8217; pat-down procedure should an &#8216;anomaly&#8217; show up on the scan, or should the passenger choose to <em>opt-out</em> of the scan.  This post isn&#8217;t about the potential health concerns of the scanning, nor the likening of the pat-down procedure to sexual assault.  This post is largely about the effectiveness of the TSA as an organization when it comes to the safety of Americans.</p>
<p>9/11 was obviously one of the major tragedies in American history.  It was a horrific event, causing thousands of people to prematurely lose their lives, led by a group of men who overtook the airplanes using items such as box-cutters, fear, etc.  What happened?  Summarizing what I understand to be the driving factor behind creation of the &#8220;<a href="http://en.wikipedia.org/wiki/Department_of_Homeland_Security" target="_blank">Department of Homeland Security</a>&#8220;: lack of communication and sharing of intelligence amongst government agencies.  Could the events that unfolded that tragic morning have been prevented, had proper communication channels been available?  We&#8217;ll never know.  Regardless, the American public needed to know it was safe to fly in the immediate days, weeks, months, even years following.  Steps were taken.  DHS was created.  Cockpit doors reinforced.  Additional training and ticketing procedures were put in place to raise flags.</p>
<p>Then, the <a href="http://en.wikipedia.org/wiki/Richard_Reid_(shoe_bomber)" target="_blank">shoe bomber</a>.  His attempts to detonate the plane failed, but it gives the TSA another reactionary element to their scanning procedures.  We now take our shoes off to be scanned.</p>
<p>Enter the <a href="http://en.wikipedia.org/wiki/Umar_Farouk_Abdulmutallab" target="_blank">underwear bomber</a> of Christmas 2009.  On an <em>International </em>flight to Detroit, he attempts to detonate a device he has hidden in his underwear.  The attempt to cause destruction, ultimately fails.</p>
<p>Now we have scanners that see through clothes.  Do you see the pattern?  Everything to this point from the TSA has been reactionary.  In the years following 9/11, were there attempted hijackings of domestic flights?  None that I&#8217;m aware of.  Were there any cases of explosive devices found in the shoes we all removed to have scanned?  Again, none that I&#8217;m aware of.  It has only been a year, but no other individual has attempted to ignite his underwear, that I&#8217;m aware of, on a domestic flight within the US, let alone another international flight.  We does the government assume that terrorist organizations will only use air travel as a means of destruction?  It happened once.  Yes, it was tragic, horrible, and inexplicably terrible.  But, does that mean we should now assume <em>everyone </em>is a suspect if they&#8217;re flying?  It doesn&#8217;t make sense.</p>
<p>Why is security so paramount to air travel to the extent it is today?  The metal detector and baggage scans appear to be working just fine.  Statistically speaking, I&#8217;m putting myself in <a href="http://www.census.gov/compendia/statab/cats/transportation/motor_vehicle_accidents_and_fatalities.html" target="_blank">MORE danger by choosing to drive</a> than I am flying in a plane that is full of unscanned individuals.</p>
<p>As a corollary, does anyone fear entering a Federal building upon the chance that someone could park a <a href="http://en.wikipedia.org/wiki/Oklahoma_City_bombing" target="_blank">Ryder van</a> outside packed with explosives?  No.  Measures were taken in the months following, I believe, to ensure a vehicle could not be parked so close to the building, but no rights are violated, no one is searched beyond a metal detector as a means of entering the building.</p>
<p>Logically, it just doesn&#8217;t make sense that this much security is required to partake in air travel.  More people die in DUI related accidents than were ever killed in 9/11 &#8211; yet, there are no checkpoints upon entering the interstate.  There is no alcohol detection required to start a vehicle.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.roweware.com/2010/11/25/thoughts-on-the-tsa-and-safety/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avoid Tires Plus</title>
		<link>http://blog.roweware.com/2010/11/22/avoid-tires-plus/</link>
		<comments>http://blog.roweware.com/2010/11/22/avoid-tires-plus/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 23:50:42 +0000</pubDate>
		<dc:creator>Dave Rowe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Grinds My Gears]]></category>
		<category><![CDATA[68164]]></category>
		<category><![CDATA[avoid]]></category>
		<category><![CDATA[horrible service]]></category>
		<category><![CDATA[omaha]]></category>
		<category><![CDATA[sham]]></category>
		<category><![CDATA[tires plus]]></category>

		<guid isPermaLink="false">http://blog.roweware.com/?p=231</guid>
		<description><![CDATA[I&#8217;ve had a problem with the local Tires Plus location (#244242) I recently visited. I took my 2005 Toyota 4Runner in for a full-set of new tires (all 4 replaced).  I was called a couple hours later, and was told by the technician that they replaced a TPMS sensor.  They did not state that it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a problem with the local <a href="http://www.tiresplus.com" target="_blank">Tires Plus</a> location (#<span style="font-family: Arial, Helvetica, sans-serif; line-height: normal;">244242)</span> I recently visited.</p>
<p>I took my 2005 Toyota 4Runner in for a full-set of new tires (all 4 replaced).  I was called a couple hours later, and was told by the technician that they replaced a <a href="http://en.wikipedia.org/wiki/Tire-pressure_monitoring_system" target="_blank">TPMS</a> sensor.  They did not state that it was broken prior to bringing it in, nor did they state that the technician broke it while replacing the tire.  They did state that there would be no charge to me (I assume this is an acceptance of fault).</p>
<p>I later picked up my vehicle, received my receipt which showed the replaced TPMS sensor, no charge.  Within 36 hours of having this work done, the TPMS system light illuminated and began flashing on the dashboard.  Upon consulting my owners manual, it stated this indicates a &#8216;malfunction&#8217; of the TPMS system, not a pressure problem on the tires.  I checked pressure to validate this.</p>
<p>I brought the vehicle back to Tires Plus to have the light evaluated.  I was told they were booked, and to bring it back Sunday.  I did so, and was again told, they were booked, could I come back Monday.  I did.</p>
<p>Monday, I was told that they ran a test, and the light was signaling a problem with the spare tire sensor.  Which had <em>NOT</em> been worked on.  I was told that they&#8217;d have to replace it, but it wouldn&#8217;t be free since it is a sensor they didn&#8217;t work on.  They reset the indicator, and within 24 &#8211; 36 hours, it came on again.</p>
<p>This is <em>extremely</em> suspect.<a href="http://blog.roweware.com/wp-content/uploads/2010/11/no_tires_plus.png"><img class="size-full wp-image-235 alignright" title="No Tires Plus!" src="http://blog.roweware.com/wp-content/uploads/2010/11/no_tires_plus.png" alt="" width="229" height="184" /></a></p>
<p>a)  I was not told <em>why</em> they needed to replace one of the TPMS sensors.</p>
<p>b)  If I was given the original replacement for free, at no admitted fault of the technician, why not give me another for the spare?</p>
<p>c)  There was no indication of a problem prior to bringing my vehicle to Tires Plus, yet within 36 hours, a sensor dies?</p>
<div>
<p>What really ticks me off about the whole process, is they attempt to up-sell you at <em>every </em>step, yet, when it comes down to basic tire replacement (well, what I consider basic for a TIRES store), they can&#8217;t do the job 100% correct.  If they can&#8217;t replace tires correctly, why on God&#8217;s green earth would I trust them to clean my fuel system, or check my brakes?</p>
<p>I&#8217;ve sent a communication via the Tires Plus website.</p>
<p><strong>UPDATE (11/23/2010 10:00AM): </strong>After speaking on the phone with a <em>very</em> defensive district manager, Tires Plus will be replacing the sensor on the spare tire.  If that does not resolve the issue, they wipe their hands clean of the situation.  He asks why I&#8217;m so distrustful, and my only response is &#8220;Because I had no issue, had tires replaced, and now have an issue&#8221;.  I do not think my reasoning is unreasonable.  Stay tuned.</p>
<p><strong>UPDATE (11/24/2010 11:00AM): </strong>Spare tire sensor has been replaced and all sensors have been &#8216;re-learned&#8217; to the system.  According to the service manager, all sensors were reading, saying at this point if the light comes back on, I will need to take it to the dealer as it is likely the computer.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.roweware.com/2010/11/22/avoid-tires-plus/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8216;Correct&#8217; SQL INSERT Syntax</title>
		<link>http://blog.roweware.com/2009/02/05/correct-sql-insert-syntax/</link>
		<comments>http://blog.roweware.com/2009/02/05/correct-sql-insert-syntax/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 15:23:22 +0000</pubDate>
		<dc:creator>Dave Rowe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Grinds My Gears]]></category>

		<guid isPermaLink="false">http://blog.roweware.com/?p=62</guid>
		<description><![CDATA[Recently I encountered an issue at work.  I had recently merged some code, and someone who tested from start to finish said there was an error right off the bat.  Crap. Looking at the error, my blood began to boil: ?View Code DOSPHP Fatal error: Column count doesn't match value count at row 1 So, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I encountered an issue at work.  I had recently merged some code, and someone who tested from start to finish said there was an error right off the bat.  Crap.</p>
<p>Looking at the error, my blood began to boil<code>:</code></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code4'); return false;">View Code</a> DOS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p624"><td class="code" id="p62code4"><pre class="dos" style="font-family:monospace;">PHP Fatal error: Column count doesn't match value count at row <span style="color: #cc66cc;">1</span></pre></td></tr></table></div>

<p>So, I investigated where this was happening, and found it.  Effectively, when you write an INSERT like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code5'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p625"><td class="code" id="p62code5"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">table</span> <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'3'</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>The DB will automatically match your values up with the columns.  Except, you&#8217;ve effectively broken the code because any change to the schema will change the number of columns.  Second, you cannot guarantee the column order on a table, so you just broke any chance of compatibility with another DB back-end.  Especially, in the case of multiple branches of a project being updated, you <em>must</em> be defensive about coding practices against the database.  You cannot assume anything about the mainline of development beyond your branch.</p>
<p>So, a small lesson.  Anytime you&#8217;re writing an INSERT, always, always, always, declare the column listing like so:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code6'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p626"><td class="code" id="p62code6"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">table</span> <span style="color: #66cc66;">&#40;</span>col_1<span style="color: #66cc66;">,</span> col_2<span style="color: #66cc66;">,</span> col_3<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'2'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'3'</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>Now, you see that the DB doesn&#8217;t have to think about which columns you&#8217;re populating, you told it directly.  This also guards against the change in column order, as well as, the addition of new columns.  Remember, if you&#8217;re adding columns that are set to &#8216;NOT NULL&#8217;, be sure to set a sane acceptable default, and you shouldn&#8217;t have compatibility issues with your old inserts.</p>
<p>Closing side benefit, I can look at this new INSERT, and know what the columns are.  Given the first, I&#8217;d have to go check the DB, and verify the column order, etc.  Always put column names in.  Always.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.roweware.com/2009/02/05/correct-sql-insert-syntax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Grinds My Gears &#8211; 60 Minutes Fat Report</title>
		<link>http://blog.roweware.com/2007/11/19/grinds-my-gears-60-minutes-fat-report/</link>
		<comments>http://blog.roweware.com/2007/11/19/grinds-my-gears-60-minutes-fat-report/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 15:13:04 +0000</pubDate>
		<dc:creator>Dave Rowe</dc:creator>
				<category><![CDATA[Grinds My Gears]]></category>

		<guid isPermaLink="false">http://blog.roweware.com/2007/11/19/grinds-my-gears-60-minutes-fat-report/</guid>
		<description><![CDATA[Peter Griffin of Family Guy used to work at the news station in Quahog, writing a piece called &#8220;What really grinds my gears&#8221;, I pay homage to that style with a &#8220;Grinds My Gears&#8221; post. Today on the radio one of the co-hosts was talking about a report from 60 Minutes about requiring restaurants in [...]]]></description>
			<content:encoded><![CDATA[<p>Peter Griffin of <a href="http://www.familyguy.com" target="_blank">Family Guy</a> used to work at the news station in Quahog, writing a piece called &#8220;What really grinds my gears&#8221;, I pay homage to that style with a &#8220;Grinds My Gears&#8221; post.</p>
<p>Today on the <a href="http://www.channel941.com" target="_blank">radio</a> one of the co-hosts was talking about a <a href="http://www.cbsnews.com/stories/2007/11/16/60minutes/main3513549.shtml" target="_blank">report</a> from 60 Minutes about requiring restaurants in New York City to post nutritional information on the menus.  As if the nutritional board wasn&#8217;t enough, or if you really cared, asking the manager somehow failed to get you the information you&#8217;ve been seeking.</p>
<p>You know &#8220;what really grinds my gears&#8221;?  People blaming the fast food industry for making America fatter.  As if people that eat fast food don&#8217;t realize that the food isn&#8217;t good for them.  Ask anyone on the street, &#8220;If I dunk food in a vat of boiling oil (fat), is it healthy for me?&#8221;  Of course not!  People know it, but they keep eating it.  What reason does McDonalds have to change the way it makes food?  McDonalds doesn&#8217;t have the responsibility to maintain the health of America.  Secondly, if McDonalds doesn&#8217;t provide the fat, someone else will.  McDonalds isn&#8217;t the problem here, folks.  It&#8217;s the people visiting the McDonalds.</p>
<p>Now if the health industry wants to run some type of campaign to make America healthier, and they use stats from the fast food companies for nutritional content (or lack thereof), by all means.  But, in no way should they create legislation that affects the fast food industries business (by directly making them change anything).  I believe anything they want to do to change the business should be indirect.  Make the <em>people</em> want to change.  If the people want McDonalds to change, it will.  Until then, nothing will change.</p>
<p>Hopefully, this isn&#8217;t the last &#8220;Grinds My Gears&#8221; post.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.roweware.com/2007/11/19/grinds-my-gears-60-minutes-fat-report/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

