<?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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dossy's Blog</title>
	
	<link>http://dossy.org</link>
	<description>Everything that comes out of Dossy, from the strange to the banal.</description>
	<lastBuildDate>Wed, 18 Apr 2012 22:10:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/dossy/feed" /><feedburner:info uri="dossy/feed" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>40.99313</geo:lat><geo:long>-74.358939</geo:long><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><feedburner:emailServiceId>dossy/feed</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How young is too young … for WordCamp?</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/BbVAZINVqmE/</link>
		<comments>http://dossy.org/2012/04/how-young-is-too-young-for-wordcamp/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 22:10:12 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Geeking out]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1288</guid>
		<description>I was thinking about attending WordCamp NYC 2012 this coming June, and I thought, &amp;#8220;Hey, Charlie has a WordPress blog, maybe she&amp;#8217;d like to attend, too.&amp;#8221; I mentioned this to Samantha, and it brought up the question: Is she too young to attend? I&amp;#8217;m not so sure. Charlie&amp;#8217;s quite bright for her age, she&amp;#8217;s occasionally [...]
No related posts.</description>
			<content:encoded><![CDATA[<div style="float:right; padding-left:15px;"><img src="http://dossy.org/uploads/2012/04/wordcamp-nyc.png" alt="WordCamp NYC" border="0" width="320" height="200" style="display:block;" /></div>
<p>I was thinking about attending <a href="http://2012.nyc.wordcamp.org/">WordCamp NYC 2012</a> this coming June, and I thought, &#8220;Hey, <a href="http://charlie.shiobara.com/">Charlie has a WordPress blog</a>, maybe she&#8217;d like to attend, too.&#8221;</p>
<p>I mentioned this to Samantha, and it brought up the question: <i>Is she too young to attend?</i>  I&#8217;m not so sure.  Charlie&#8217;s quite bright for her age, she&#8217;s occasionally shown an interest in blogging, and seeing the wide range of possibility by meeting and interacting with other bloggers could give her new ideas, inspire her, generate additional interest, etc.</p>
<p>What say you, blogosphere?  Are there likely to be too many age-inappropriate topics discussed within earshot?  Will she just be ignored and written off as too young to interact with, and therefore be bored and discouraged?</p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=BbVAZINVqmE:tFOiZLmzBvk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=BbVAZINVqmE:tFOiZLmzBvk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=BbVAZINVqmE:tFOiZLmzBvk:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/BbVAZINVqmE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2012/04/how-young-is-too-young-for-wordcamp/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://dossy.org/2012/04/how-young-is-too-young-for-wordcamp/</feedburner:origLink></item>
		<item>
		<title>I may not have the plumbing, but I have a brain</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/YLRGh5iYujM/</link>
		<comments>http://dossy.org/2012/02/i-may-not-have-the-plumbing-but-i-have-a-brain/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 16:41:23 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Piss and moan (Rants)]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1283</guid>
		<description>Especially in election years, the following cliché is often trotted around in its many forms: &amp;#8220;If you don&amp;#8217;t have a vagina, don&amp;#8217;t tell someone else what to do with theirs.&amp;#8221; While I absolutely agree with this statement&amp;#8217;s underlying principles, as I&amp;#8217;m a huge fan of &amp;#8220;personal liberty&amp;#8221; in most of its forms, I think the [...]
No related posts.</description>
			<content:encoded><![CDATA[<p>Especially in election years, the following cliché is often trotted around in its many forms:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid; overflow:auto;"><p>&#8220;If you don&#8217;t have a vagina, don&#8217;t tell someone else what to do with theirs.&#8221;</p></blockquote>
<p>While I absolutely agree with this statement&#8217;s underlying principles, as I&#8217;m a huge fan of &#8220;personal liberty&#8221; in most of its forms, I think the cliché is so flawed, it might actually hurt the argument it&#8217;s trying to win.</p>
<p>For example, take the following form of the cliché that follows the same approach:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid; overflow:auto;"><p>&#8220;If you don&#8217;t have children, don&#8217;t tell someone else how to raise theirs.&#8221;</p></blockquote>
<p>This might sound reasonable at first, but let me elaborate it to make it clearer:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid; overflow:auto;"><p>&#8220;Just because one does not have children, they couldn&#8217;t possibly&#8211;shouldn&#8217;t ever&#8211;be able to describe what child abuse is, and try to prevent others from committing it.&#8221;</p></blockquote>
<p>If you agree with the very last statement, you&#8217;re wrong and are no longer intellectually qualified to discuss this matter.  You can stop reading now, thanks for trying, at least.</p>
<p>&#8230;</p>
<p>Often, that&#8217;s how I feel when folks use the &#8220;if you have no vagina, you have no basis to prevent others from using theirs however they see fit&#8221; argument.  It makes for a good sound bite, but it&#8217;s wrong, and it&#8217;s hard to actually win an argument when you&#8217;re actually wrong.</p>
<p>Maybe you still disagree.  That&#8217;s fine.  Assume for a moment that you&#8217;re actually right, and as a consequence, men become totally silent on the matter of women&#8217;s health.  Are you trying to really convince me that there aren&#8217;t women out there who are pro-life or anti-abortion?  Just because they have the plumbing, does that give them the right to tell other women what to do with theirs?  Does it make them right?  Should women listen to them?</p>
<p>Of course not.  What plumbing you have is not what qualifies you as having the &#8220;right&#8221; to tell someone what to do with theirs.</p>
<p>We mutually agree on rules and establish laws in order to maintain order.  Some folks try to abuse the system to enforce their personal sense of ethics and morality, and that&#8217;s unfortunate.</p>
<p>In America, we have rules and laws around rape.  &#8220;If you don&#8217;t have a penis, don&#8217;t tell me what to do with mine&#8221; is clearly a ridiculous defense of rape, but &#8220;if you don&#8217;t have a vagina, don&#8217;t tell me what to do with mine&#8221; isn&#8217;t a ridiculous defense of abortion?  See what I did there?</p>
<p>If you want to argue in favor of personal liberty, and I think every person who enjoys any sense of freedom should do so, if you want to ever win, you <i>must</i> stop arguing using a framework that can never win&#8211;one that&#8217;s clearly flawed and wrong.</p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=YLRGh5iYujM:hvhU_KFzAG0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=YLRGh5iYujM:hvhU_KFzAG0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=YLRGh5iYujM:hvhU_KFzAG0:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/YLRGh5iYujM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2012/02/i-may-not-have-the-plumbing-but-i-have-a-brain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://dossy.org/2012/02/i-may-not-have-the-plumbing-but-i-have-a-brain/</feedburner:origLink></item>
		<item>
		<title>Oh, Starbucks, you really know how to get my attention!</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/Y5VZdhB7s5c/</link>
		<comments>http://dossy.org/2012/01/oh-starbucks-you-really-know-how-to-get-my-attention/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 16:39:57 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Observations]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1271</guid>
		<description>Anyone who knows me should understand why this ad on the New York Times website home page caught my attention &amp;#8230; (Zoom! Enhance!) I&amp;#8217;m sure it tastes like garbage like all other Starbucks coffee, but it did get my attention. Reminds me of that old cliché, &amp;#8220;You can&amp;#8217;t polish a sneaker.&amp;#8221; Even great marketing can&amp;#8217;t [...]
No related posts.</description>
			<content:encoded><![CDATA[<p>Anyone who knows me should understand why this ad on the New York Times website home page caught my attention &#8230;</p>
<div style="width:500px; margin-left:auto; margin-right:auto;"><img src="http://dossy.org/uploads/2012/01/nytimes-starbucks-blonde-roast.png" alt="Starbucks blonde roast" border="0" width="500" height="356" style="display:block;" /></div>
<p style="text-align: center;">(Zoom!  Enhance!)</p>
<div style="width:500px; margin-left:auto; margin-right:auto;"><img src="http://dossy.org/uploads/2012/01/starbucks-blonde-roast.png" alt="Starbucks Blonde Roast" border="0" width="500" height="350" style="display:block;" /></div>
<p>I&#8217;m sure it tastes like garbage like all other Starbucks coffee, but it did get my attention.</p>
<p>Reminds me of that old cliché, &#8220;You can&#8217;t polish a sneaker.&#8221;  Even great marketing can&#8217;t sell a bad product.</p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=Y5VZdhB7s5c:4snQlZDwdyg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=Y5VZdhB7s5c:4snQlZDwdyg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=Y5VZdhB7s5c:4snQlZDwdyg:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/Y5VZdhB7s5c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2012/01/oh-starbucks-you-really-know-how-to-get-my-attention/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://dossy.org/2012/01/oh-starbucks-you-really-know-how-to-get-my-attention/</feedburner:origLink></item>
		<item>
		<title>2011 In Review, Part 1</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/nPHztbu0YEg/</link>
		<comments>http://dossy.org/2011/12/2011-in-review-part-1/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 04:46:48 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Dossy, Dossy and more Dossy!]]></category>
		<category><![CDATA[Observations]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1267</guid>
		<description>On the cusp between 2011 and 2012, I decided to take advantage of the much-maligned Facebook Timeline feature and briefly summarize some highlights from the past year. January January brought us the great story of Ted Williams, a homeless man with that deep radio-personality voice. It&amp;#8217;s the kind of feel-good story that was a perfect [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2008/12/six-weeks-in-south-africa-part-1/' rel='bookmark' title='Six weeks in South Africa (Part 1)'&gt;Six weeks in South Africa (Part 1)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2010/08/review-samsung-captivate-on-att/' rel='bookmark' title='Review: Samsung Captivate on at&amp;amp;t'&gt;Review: Samsung Captivate on at&amp;#038;t&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
			<content:encoded><![CDATA[<p>On the cusp between 2011 and 2012, I decided to take advantage of the much-maligned Facebook <a href="http://www.facebook.com/about/timeline">Timeline</a> feature and briefly summarize some highlights from the past year.</p>
<h2>January</h2>
<div style="float:right; padding-left:15px;"><a href="http://www.clevelandleader.com/node/15605"><img src="http://dossy.org/uploads/2011/12/ted-williams-jan-2011.jpg" alt="Ted Williams, the man with the &dquot;golden radio voice&dquot;" border="0" width="225" height="188" style="display:block;" /></a></div>
<p>January brought us the <a href="http://www.clevelandleader.com/node/15605">great story</a> of Ted Williams, a homeless man with that deep radio-personality voice.  It&#8217;s the kind of feel-good story that was a perfect way to start out the year.  Or, at least try to &#8230;</p>
<p>Sadly, we learn of <a href="http://en.wikipedia.org/wiki/Bill_Zeller">Bill Zeller</a>&#8216;s suicide, before which he posts an elaborate <a href="http://gizmodo.com/5726667/the-agonizing-last-words-of-bill-zeller">suicide note</a>. I could write volumes on how I feel about this, but I&#8217;ll just leave well enough alone.</p>
<p>My friend Ian visited us in January, and his Prius wouldn&#8217;t start when he went to leave.  I can now say that I&#8217;ve jump-started a Prius.  With all those batteries, you&#8217;d think Toyota would have designed it to never need a jump start, right?  Wrong.</p>
<p>I <a href="http://stackoverflow.com/questions/2908459/mobile-safari-5mb-html5-application-cache-limit">discovered</a> that the Mobile Safari browser limits each open tab to 5 MB of memory.</p>
<p>In a fit of despair, I channeled my <a href="http://dossy.org/2011/01/i-need-more-of-my-time-to-be-billable/">stress</a> into a <a href="http://dossy.org/2011/01/this-is-my-flavor-of-crazy/">redesign of my blog</a>.</p>
<p>Working briefly with <a href="http://loganzanelli.com/">Logan Zanelli</a>, we launched <a href="http://johnnybtruant.com/">Johnny B. Truant</a>&#8216;s new blog design.</p>
<p>Discovered an incredible YouTube video of Phish&#8217;s <a href="http://youtu.be/ABhIzoo0-xc">Meatstick</a> from New Year&#8217;s 2010:</p>
<div style="text-align:center;"><iframe width="560" height="315" src="http://www.youtube.com/embed/ABhIzoo0-xc?rel=0" frameborder="0" allowfullscreen></iframe></div>
<p>Egypt packed up its toys and went home, <a href="http://www.renesys.com/blog/2011/01/egypt-leaves-the-internet.shtml">disconnecting</a> the whole country from the Internet.</p>
<p>The <a href="http://en.wikipedia.org/wiki/January_25%E2%80%9327,_2011_North_American_blizzard">North American blizzard</a> dropped so much snow on us, it was the snowpocalypse.</p>
<p>I was able to get my email inbox down to 1,685 messages.</p>
<p>We tried to introduce the girls to Dungeons &amp; Dragons.  They both really seemed to like it.</p>
<h2>February</h2>
<p>Suzie turned 8, and Charlie turned 11.  Both of them celebrate their birthday in February.  This makes for a very hectic month, to say the least.</p>
<p>I was introduced to Van Canto&#8217;s version of <a href="http://www.youtube.com/watch?v=HSpuVsLnl1k">Master of Puppets</a>.  A cappella heavy metal.  Two great tastes that taste great together &#8230;</p>
<p>A <a href="http://news.cnet.com/bank-robber-hires-decoys-on-craigslist-fools-cops/">brilliant bank robbery</a> was committed, where the robber&#8217;s escape plan involved blending into a crowd of construction workers, crowdsourced from Craigslist, and the getaway vehicle was an inner-tube.</p>
<p>Through some friends-of-friends, I started doing some consulting work for BloomAvenue.com (which is now no longer).  Later in the year, this would transform into me working from <a href="http://www.fromyouflowers.com/">FromYouFlowers.com</a>.</p>
<h2>March</h2>
<p>Good ol&#8217; Charlie Sheen grabs a few <a href="http://latimesblogs.latimes.com/showtracker/2011/03/charlie-sheen-on-good-morning-america-the-goddesses-polygamy-and-what-his-kids-will-think.html">minutes of fame</a> with his &#8220;goddesses.&#8221;</p>
<div style="float:left; padding-right:15px;"><a href="http://goodnightdune.com/"><img src="http://dossy.org/uploads/2011/12/goodnight-dune-mar-2011.jpg" alt="Goodnight Dune" border="0" width="225" height="191" style="display:block;" /></a></div>
<p>Julia Yu gave us <a href="http://goodnightdune.com/">Goodnight Dune</a>, a fantastic parody of the age-old children&#8217;s classic of similar name.</p>
<p>The world reeled as Japan got pwnt by a tremendous <a href="http://en.wikipedia.org/wiki/2011_T%C5%8Dhoku_earthquake_and_tsunami">earthquake and tsunami</a>.  The catastrophic event trashed the Fukushima nuclear power plants, and held the world&#8217;s attention with radiation scares.</p>
<p>Apple launched the <a href="http://en.wikipedia.org/wiki/IPad_2">iPad 2</a> tablet this month.</p>
<p>Mazda recalls a bunch of Mazda6&#8242;s because of <a href="http://money.cnn.com/2011/03/03/autos/mazda6_spider_recall/index.htm">some spiders</a> nesting in its parts.</p>
<p>Blair River, the spokesman for the Heart Attack Grill, <a href="http://www.nydailynews.com/news/national/blair-river-575-pound-spokesman-heart-attack-grill-arizona-dead-29-article-1.116746">ironically dies</a> from pneumonia, at the young age of 29.</p>
<p>Taylor Mali&#8217;s <a href="http://www.youtube.com/watch?v=fuBmSbiVXo0">incredibly powerful poetry</a> about the importance of teachers makes the rounds on the Internet, again:</p>
<div style="text-align:center;"><iframe width="480" height="360" src="http://www.youtube.com/embed/fuBmSbiVXo0?rel=0" frameborder="0" allowfullscreen></iframe></div>
<p>The Passaic, Morris and Essex Counties were ravaged by <a href="http://www.nj.com/news/index.ssf/2011/03/nj_climatologists_says_recent.html">intense flooding</a>.  Governor Chris Christie declared <a href="http://www.nytimes.com/2011/03/12/nyregion/12flooding.html">a state of emergency</a>.  Unfortunately, this won&#8217;t be the last time the area floods, this year.</p>
<p>Charlie and Suzie become &#8220;mages&#8221; at MagiQuest, starting with the one <a href="https://foursquare.com/dossy/checkin/4d852dad81fdb1f7929d0cc0">at the Funplex</a> in East Hanover, NJ.</p>
<p>Facebook quietly starts working on Facebook Deals, most likely in response to Groupon&#8217;s tremendous success.</p>
<div style="width:500px; margin-left:auto; margin-right:auto;"><img src="http://dossy.org/uploads/2011/12/facebook-deals-mar-2011.jpg" alt="Facebook Deals" border="0" width="500" height="95" style="display:block;" /></div>
<p>Lady Gaga reminds us that she was <a href="http://www.youtube.com/watch?v=jmR5Aat11P8">Born This Way</a>.  Matter of fact, we all are.  Good to remind ourselves of this, once in a while.</p>
<p>My friend Maya returns to the United States, and I get to see her again after years since the last visit.  It&#8217;s nice to catch up with old friends, even if it&#8217;s bittersweet.</p>
<p>Google <a href="http://techcrunch.com/2010/12/07/google-plus-one-pic/">finally launches</a> their latest entry into the social web space with &#8220;<a href="http://googleblog.blogspot.com/2011/03/1s-right-recommendations-right-when-you.html">Google +1</a>.&#8221;</p>
<p>RSA, the company that&#8217;s well-known for creating one-time-password <a href="http://gadgetwise.blogs.nytimes.com/2011/03/18/rsas-secure-ids-hacked-what-to-do/">security fobs, gets hacked</a>.  This story will not end well &#8230;</p>
<h2>April</h2>
<p>Eric Whitacre <a href="http://www.disruptiveconversations.com/2011/04/ted-video-eric-whitacres-virtual-choir-20-is-truly-amazing.html">leverages technology</a> to create his &#8220;Virtual Choir 2.0.&#8221;  This is the future I want to live in.</p>
<p>I published a <a href="http://dossy.org/2011/04/android-usb-tethering-on-mac-os-x/">HOWTO on tethering an Android phone via USB to MacOS X</a>.</p>
<p>Epsilon has a <a href="http://www.pcworld.com/businesscenter/article/224192/epsilon_data_breach_expect_a_surge_in_spear_phishing_attacks.html">data breach</a> where millions of email addresses were acquired.</p>
<p>I did some DIY repair on my Mitsubishi Lancer, replacing the O2 sensor, so that the car would pass NJ state inspection.</p>
<p>We saw the US government <a href="http://money.cnn.com/2011/04/04/news/economy/shutdown_faq/index.htm">nearly shut down</a> because our politicians can&#8217;t agree on how to best overspend the American taxpayer dollar.</p>
<div style="float:right; padding-left:15px;"><a href="http://chickswithstevebuscemeyes.tumblr.com/"><img src="http://dossy.org/uploads/2011/12/steve-buscemi-eyes-apr-2011.jpg" alt="Steve Buscemi eyes" border="0" width="450" height="450" style="display:block;" /></a></div>
<p>The eyes might be the windows to the soul, but Photoshopping <a href="http://chickswithstevebuscemeyes.tumblr.com/">Steve Buscemi&#8217;s eyes</a> onto other people is a window into insanity.  Thanks, Internet &#8230; everyone needs a new nightmare, every now and then.</p>
<p>My college alma mater, Rutgers, demonstrates that the &#8220;RU Screw&#8221; is still <a href="http://edbeckerprincetonnj.wordpress.com/2011/04/02/student-choices-and-real-world-perception-not-always-aligned/">alive and well</a>, by paying Snooki some $32k to perform.</p>
<p>In the &#8220;seriously, this happened?&#8221; department, the Med Peds Clinic of Fort Collins, Colorado, employed someone who thought it&#8217;d be a good idea to <a href="http://www.9news.com/news/article/193134/339/Children-told-to-be-tested-for-HIV-after-flu-vaccines-reused-">split a flu vaccine</a> dose, by using half of the syringe and swapping out the needle.  No, you can&#8217;t make this stuff up.</p>
<p>Just when I thought I lived in a sleepy little suburban town, <a href="http://abclocal.go.com/wabc/story?section=news/local/new_jersey&#038;id=8047411">tragedy strikes</a> when someone brutally beats Frank the barber who dies from his injuries, right on Main Street in Bloomingdale.</p>
<div style="float:left; padding-right:15px;"><img src="http://dossy.org/uploads/2011/12/first-communion-apr-2011.jpg" alt="Charlie's first communion" border="0" width="225" height="212" style="display:block;" /></div>
<p>The four of us spent a week down in Atlantic City, at the <a href="https://foursquare.com/dossy/checkin/4da90f858154abafc28b4cb5">Wyndham Skyline Tower</a>.</p>
<p>Charlie has made her first communion at church this year, on Palm Sunday.</p>
<p>SETI <a href="http://mashable.com/2011/04/27/seti-shuts-down/">stops operating</a> the Allen Telescope Array.  Millions of geeks cry out as they try to figure out what to do with their unused CPU cycles.</p>
<p>Adam Mansbach&#8217;s faux <a href="http://moms.today.msnbc.msn.com/_news/2011/04/26/6534646-want-another-bedtime-story-sweetie-heres-one-go-the-fk-to-sleep?GT1=43001">children&#8217;s book</a> &#8220;Go the F&#8212; to Sleep&#8221; gets some press.</p>
<p>Sony&#8217;s <a href="http://www.pcworld.com/article/226128/sony_makes_it_official_playstation_network_hacked.html">PlayStation Network (PSN) gets hacked</a>, <a href="http://blog.us.playstation.com/2011/04/26/update-on-playstation-network-and-qriocity/">officially</a>.  This won&#8217;t be the last time &#8230;</p>
<h2>May</h2>
<p>Just in case you forgot what the American &#8220;War on Terror&#8221; was all about, Osama bin Laden is <a href="http://www.whitehouse.gov/blog/2011/05/02/osama-bin-laden-dead">finally dead</a>.  Little did Sohaib Athar realize at the time, but he <a href="https://twitter.com/#!/ReallyVirtual/status/64780730286358528">live-tweeted the raid</a>.</p>
<p>I finally broke down and bought myself a white iPad 2 (16 GB, Wi-Fi).</p>
<p>Nicktoons threatens to destroy more of <a href="http://www.ugo.com/tv/voltron-force-trailer">my fond childhood memories</a>, looting the corpse of the Voltron legacy.</p>
<p>The Library of Congress makes a <a href="http://www.loc.gov/jukebox/">wealth of old recordings</a> available online.</p>
<p>Microsoft begins the process of <a href="http://www.microsoft.com/presspass/press/2011/may11/05-10corpnewspr.mspx">acquiring Skype</a> for $8.5 billion in cash.  No shortage of &#8220;Sky.NET&#8221; jokes at this point.</p>
<p>Google launches its Music Beta service. Is it really the right time for a cloud-based <a href="http://googleblog.blogspot.com/2011/05/android-momentum-mobile-and-more-at.html">music service</a>?</p>
<p>We get to watch the FCC Commissioner Meredith Attwell Baker approve Comcast&#8217;s purchase of NBC, then <a href="http://consumerist.com/2011/05/fcc-commissioner-approves-comcast-deal-leaves-fcc-to-go-work-for-comcast.html">go work for Comcast</a>.  No, I&#8217;m not kidding &#8230;</p>
<p>It&#8217;s finally official: I&#8217;m now working for FromYouFlowers.com as a Senior Solutions Architect.</p>
<p>His Holiness the Dalai Lama comes to Newark, New Jersey, and tries to tell Americans that we need to <a href="http://www.nj.com/news/index.ssf/2011/05/dalai_lama_urges_ethics_educat.html">teach our kids ethics</a>.</p>
<p>Watermelon farmers in China get screwed when they <a href="http://www.nytimes.com/2011/05/18/world/asia/18briefs-Watermelon.html?_r=1">overdosed their crops</a> with growth chemicals, resulting in exploding watermelons.</p>
<p>Sony&#8217;s PSN&#8211;you know, the Password Sharing Network&#8211;gets <a href="http://thehackernews.com/2011/05/sony-playstation-network-hacked-again.html">hacked again</a>.</p>
<div style="float:right; padding-left:15px;"><img src="http://dossy.org/uploads/2011/12/macho-man-vs-jesus-may-2011.jpg" alt="Macho Man vs Jesus" border="0" width="225" height="253" style="display:block;" /></div>
<p>Harold Camping predicts the end of the world on May 21st, 2011.  Sadly, the Macho Man Randy Savage dies on the 20th, <a href="http://www.tmz.com/2011/05/20/randy-savage-car-accident-macho-man-dead-dies-died-killed-wwe-wrestler-florida/#.Tv_Z9SNzqFE">just in time</a> to stop Jesus from coming back to rapture us all.  OHHHH, YEAHHHH!</p>
<p>Apparently some &#8220;faulty software&#8221; released 450 of the <a href="http://www.kron4.com/Article.aspx?ArticleID=1162">most dangerous inmates</a> from California prisons.  And people try and make fun of me for living in New Jersey &#8230; ??!</p>
<p>One of America&#8217;s largest defense contractors, Lockheed Martin, gets hacked.  Allegedly, the breach may have involved the <a href="http://www.rawstory.com/rs/2011/05/27/hackers-penetrate-u-s-defense-contractors-security-networks/">recently compromised</a> RSA security technology.</p>
<p>The Ridgewood Cavaliers of Harmony, the <a href="http://cavaliersofharmony.com/">barbershop society chapter</a> I belong to, had a sing-out at Van Neste Square in Ridgewood, New Jersey, for Memorial Day.</p>
<h2>June</h2>
<p>Samuel L. Jackson, the quintessential Bad Mother F@#!ker, does the <a href="http://www.nerve.com/news/books/listen-samuel-l-jackson-narrates-go-the-fuck-to-sleep">audiobook reading</a> of &#8220;Go the F&#8212; to Sleep.&#8221;  Naturally.</p>
<p>The girls have their Performing Arts Academy dance recital <a href="https://foursquare.com/dossy/checkin/4debb72345dd3993a8ac8155">at the Shea Center</a> on the William Paterson University campus.</p>
<p>Congressman Anthony Weiner resigns after a little <a href="http://www.cnn.com/2011/POLITICS/06/16/weiner.scandal/index.html">sexting scandal</a>, where he accidentally tweeted a link to a picture of his junk in his underwear.  D&#8217;oh.</p>
<p>Neil Patrick Harris performs the opening number for the 2011 Tony Awards, <a href="http://www.youtube.com/watch?v=-6S5caRGpK4">pointing out</a> that &#8220;Broadway&#8217;s not just for gays anymore.&#8221;</p>
<p>Web designers explore how <a href="http://designfestival.com/the-cicada-principle-and-why-it-matters-to-web-designers/">repeating intervals</a> that follow prime numbers in nature, specifically the cicada, can yield interesting visual effects, as well.</p>
<p>RIM&#8217;s stock <a href="http://mashable.com/2011/06/17/rimm-stock-price/">drops in value</a> by 20% overnight.</p>
<p>Michael Vick comes to Butler, New Jersey, to <a href="http://triboro.patch.com/articles/michael-vick-to-sign-autographs-in-butler-june-19">sign autographs</a>, and winds up being greeted by protesters.</p>
<p>Google starts <a href="http://techcrunch.com/2011/06/28/google-plus/">rolling out</a> Google+.</p>
<p>Weird Al Yankovic releases his Lady Gaga <a href="http://jezebel.com/5813694/weird-al-sings-lady-gaga-parody-stars-in-creepy-video">parody</a>, &#8220;Perform This Way.&#8221;</p>
<p>Britney Spears reminds us that she&#8217;s <a href="http://www.youtube.com/watch?v=T-sxSd1uwoU">still a hottie</a>, even after poppin&#8217; out a baby, with her video for &#8220;I Wanna Go.&#8221;  Hell, even if you don&#8217;t care for Britney, Guillermo Diaz who plays Scarface in Half Baked, appears in the video.</p>
<p>The state of Georgia enacts some anti-illegal-immigrant law, which totally <a href="http://www.boingboing.net/2011/06/22/georgias-anti-immigr.html">screws the farmers</a> in Georgia who can&#8217;t find enough affordable labor to harvest crops.  If it wasn&#8217;t clear that illegal immigrants aren&#8217;t the problem before, it sure ought to be now.</p>
<p>Danous Estenor performs a <a href="http://rivals.yahoo.com/ncaa/football/blog/dr_saturday/post/Amazing-tales-USF-lineman-lifts-Cadillac-saves">heroic act of total badassery</a> by lifting up a car, freeing a man who was trapped underneath.</p>
<p>Gary Foster made his alma mater Rutgers <a href="http://www.nytimes.com/2011/06/28/business/28citi.html">proud by embezzling</a> some $19.2 million dollars.  In America, you can only get away with it if you&#8217;re white &#8230;</p>
<div style="text-align: center;">***</div>
<p>Okay, it&#8217;s almost midnight &#8230; and I&#8217;m only up to July, so I&#8217;m going to post this now.  Maybe I&#8217;ll get to do the second half of 2011, tomorrow.</p>
<p>Happy New Years, everyone!</p>
<p>Related posts:<ol>
<li><a href='http://dossy.org/2008/12/six-weeks-in-south-africa-part-1/' rel='bookmark' title='Six weeks in South Africa (Part 1)'>Six weeks in South Africa (Part 1)</a></li>
<li><a href='http://dossy.org/2010/08/review-samsung-captivate-on-att/' rel='bookmark' title='Review: Samsung Captivate on at&amp;t'>Review: Samsung Captivate on at&#038;t</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=nPHztbu0YEg:CW9EOzHsP10:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=nPHztbu0YEg:CW9EOzHsP10:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=nPHztbu0YEg:CW9EOzHsP10:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/nPHztbu0YEg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/12/2011-in-review-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/12/2011-in-review-part-1/</feedburner:origLink></item>
		<item>
		<title>MySQL replication connection error on non-standard ports</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/jFWLRWNsi94/</link>
		<comments>http://dossy.org/2011/11/mysql-replication-connection-error-on-non-standard-ports/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 20:25:52 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1256</guid>
		<description>or, &amp;#8220;Why SELinux was the worst thing to happen to Linux since LinuxThreads.&amp;#8221; Setting up MySQL master-slave replication is pretty straightforward. I&amp;#8217;ve done it plenty of times. Similarly, running multiple MySQL server instances on the same host using mysqld_multi, really painless. Give each instance its own server-id and port to listen on, and that&amp;#8217;s it. [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2004/07/microsoft-inbound-connection-limit-nazi-says-no-connection-for-you/' rel='bookmark' title='microsoft inbound connection limit nazi says: no connection for you!'&gt;microsoft inbound connection limit nazi says: no connection for you!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2007/03/mysql-50-for-beginners-training-class-may-710-2007-in-edison-nj/' rel='bookmark' title='MySQL 5.0 for Beginners training class (May 7-10, 2007) in Edison, NJ'&gt;MySQL 5.0 for Beginners training class (May 7-10, 2007) in Edison, NJ&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2010/07/using-mysql-meta-data-effectively-at-odtug-kaleidoscope-2010/' rel='bookmark' title='Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010'&gt;Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
			<content:encoded><![CDATA[<p><small style="margin-left:2.5em;">or, <i>&#8220;Why <a href="http://en.wikipedia.org/wiki/Security-Enhanced_Linux">SELinux</a> was the worst thing to happen to Linux since LinuxThreads.&#8221;</i></small></p>
<p>Setting up MySQL master-slave <a href="http://dev.mysql.com/doc/refman/5.5/en/replication.html">replication</a> is pretty straightforward.  I&#8217;ve done it plenty of times.  Similarly, running multiple MySQL server instances on the same host using <a href="http://dev.mysql.com/doc/refman/5.5/en/mysqld-multi.html"><tt>mysqld_multi</tt></a>, really painless.  Give each instance its own <tt>server-id</tt> and <tt>port</tt> to listen on, and that&#8217;s it.</p>
<p>In this case, the server that was being replicated was listening on port 3307.  I could connect to it just fine using the <tt>mysql</tt> client using &#8220;<tt>-P 3307</tt>&#8221; as the replication user.  It was clearly possible for the two machines to communicate over TCP port 3307.  But, then, why was the MySQL slave I/O thread failing to connect to the master?</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid; overflow:auto;"><pre>mysql> SHOW SLAVE STATUS \G
*************************** 1. row ***************************
               Slave_IO_State: Connecting to master
                  Master_Host: x.x.x.x
                  Master_User: repl
                  Master_Port: 3307
                Connect_Retry: 60
...
             Slave_IO_Running: Connecting
            Slave_SQL_Running: Yes
...
                Last_IO_Errno: 2003
                Last_IO_Error: error connecting to master 'repl@x.x.x.x:3307' - retry-time: 60  retries: 86400
...
1 row in set (0.00 sec)</pre>
</blockquote>
<p>Makes no sense, right?  Right!  Unless, of course, you&#8217;re on a machine&#8211;in this case, Red Hat Enterprise Linux 5.7&#8211;that has ever-so-helpfully screwed you by installing SELinux policies that restrict what ports <tt>mysqld</tt> can use, and has SELinux enabled by default.</p>
<p>How can you tell if SELinux is enabled and its policies are being enforced?</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><pre># grep 1 /selinux/enforce
1</pre>
</blockquote>
<p>If you get no output, then SELinux isn&#8217;t being enforced.  But, if it is enabled, here&#8217;s how you can tell if <tt>mysqld</tt>&#8216;s ability to make network connections is being restricted by a policy:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><pre># semanage port -l | grep 3306
mysqld_port_t                  tcp      1186, 3306</pre>
</blockquote>
<p>You can tell if this is happening if you look in <tt>/var/log/audit/audit.log</tt> and see an entry like this:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><p><b>type=AVC</b> msg=audit(1320869122.773:56478): <b>avc:  denied  { name_connect }</b> for  pid=2990 <b>comm=&#8221;mysqld&#8221; dest=3307</b> scontext=user_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket</p></blockquote>
<p>(I bolded the elements to keep an eye out for.)</p>
<p>So, how do we remedy the situation?  Personally, my first recommendation is to turn SELinux off.  It is <em>always</em> more trouble than it&#8217;s worth.  I&#8217;ve never heard of a single anecdote where it improved security or otherwise did anything useful.</p>
<p>Disable SELinux by editing <tt>/etc/selinux/config</tt> and change the line that reads &#8220;<tt>SELINUX=enforcing</tt>&#8221; to &#8220;<tt>SELINUX=disabled</tt>&#8221; and then reboot the system.  There&#8217;s some caveats around disabling SELinux with respect to re-enabling it in the future, but you&#8217;re never going to do that if you have a choice, so who cares.</p>
<p>If you absolutely must leave SELinux enabled, because you&#8217;re actually burning in Hell and being tortured by some unreasonable and irrational organizational policy that requires it, then this is how you can add ports to the list of ports that <tt>mysqld</tt> will be allowed to use:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><pre># semanage port -a -t mysqld_port_t -p tcp 3307</pre>
</blockquote>
<p>This command might take a few seconds to complete, and won&#8217;t generate any output if successful.  You can check to see if it did what you wanted using the same command we used before, but this time the newly added port should be in the list, as well:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><pre># semanage port -l | grep 3306
mysqld_port_t                  tcp      3307, 1186, 3306</pre>
</blockquote>
<p>To make sure this really did fix the problem, lets look at the MySQL replication status, again:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid; overflow:auto;"><pre>mysql> SHOW SLAVE STATUS \G
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: x.x.x.x
                  Master_User: repl
                  Master_Port: 3307
                Connect_Retry: 60
...
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
...
                Last_IO_Errno: 0
                Last_IO_Error:
...
1 row in set (0.00 sec)</pre>
</blockquote>
<p>And there you have it, replication configured on TCP port 3307, connected successfully, waiting for the master to send it updates, like it should be.</p>
<p>Hopefully, this has helped save you time, aggravation and much head-scratching as you tried to figure out why MySQL replication wasn&#8217;t working on a port other than 3306.</p>
<p>Got any other good gotcha stories like this?  Share them in the comments below.</p>
<p>Related posts:<ol>
<li><a href='http://dossy.org/2004/07/microsoft-inbound-connection-limit-nazi-says-no-connection-for-you/' rel='bookmark' title='microsoft inbound connection limit nazi says: no connection for you!'>microsoft inbound connection limit nazi says: no connection for you!</a></li>
<li><a href='http://dossy.org/2007/03/mysql-50-for-beginners-training-class-may-710-2007-in-edison-nj/' rel='bookmark' title='MySQL 5.0 for Beginners training class (May 7-10, 2007) in Edison, NJ'>MySQL 5.0 for Beginners training class (May 7-10, 2007) in Edison, NJ</a></li>
<li><a href='http://dossy.org/2010/07/using-mysql-meta-data-effectively-at-odtug-kaleidoscope-2010/' rel='bookmark' title='Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010'>Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=jFWLRWNsi94:2ZEFGM_XpDo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=jFWLRWNsi94:2ZEFGM_XpDo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=jFWLRWNsi94:2ZEFGM_XpDo:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/jFWLRWNsi94" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/11/mysql-replication-connection-error-on-non-standard-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/11/mysql-replication-connection-error-on-non-standard-ports/</feedburner:origLink></item>
		<item>
		<title>Business meals for self-employed, work-from-home consultants</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/qLncPiGquxo/</link>
		<comments>http://dossy.org/2011/11/business-meals-for-self-employed-work-from-home-consultants/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 14:19:20 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Death and Taxes]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1254</guid>
		<description>I&amp;#8217;d like to try and crowdsource an answer to a tax question I&amp;#8217;ve had over the years but never felt like I had a good answer to: IRS Topic 511, Business Travel Expenses, describes qualifying expenses while travelling. It is written with a very employee-centric tone, which isn&amp;#8217;t particularly helpful for me as a self-employed [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2007/04/if-you-work-from-home-where-do-you-take-your-kids/' rel='bookmark' title='If you work from home, where do you take your kids?'&gt;If you work from home, where do you take your kids?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2009/09/reorganizing-the-home-office/' rel='bookmark' title='Reorganizing the home office'&gt;Reorganizing the home office&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2007/10/the-disaster-which-is-my-home-office/' rel='bookmark' title='The disaster which is my home office'&gt;The disaster which is my home office&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
			<content:encoded><![CDATA[<p>I&#8217;d like to try and crowdsource an answer to a tax question I&#8217;ve had over the years but never felt like I had a good answer to:</p>
<p>IRS <a href="http://www.irs.gov/taxtopics/tc511.html">Topic 511, Business Travel Expenses</a>, describes qualifying expenses while travelling.  It is written with a very employee-centric tone, which isn&#8217;t particularly helpful for me as a self-employed consultant who works primarily out of his own home office.</p>
<p><strong>1) Is New York City &#8220;close enough&#8221; to New Jersey to consider it the same &#8220;general area&#8221; or does travelling to New York City count as valid business travel in my case?</strong></p>
<p>Suppose I have a client (one of many) for whom I travel, once a week, from my home office in New Jersey to their office in New York City.  Since I earn the majority of my income working out of my home office in New Jersey, I think it&#8217;s appropriate to consider New Jersey my &#8220;tax home.&#8221;  But, the tax topic is worded using the phrase &#8220;general area&#8221; which is vague.  How is this supposed to be interpreted?</p>
<p><strong>2) What does the IRS consider an &#8220;assignment&#8221;?</strong></p>
<p>Topic 511 refers to temporary and indefinite &#8220;assignments&#8221; and talks about durations less and greater than one year.  For the self-employed consultant, are clients considered &#8220;assignments&#8221;?  Are individual projects for a client an &#8220;assignment&#8221;?  I can&#8217;t find a definition for &#8220;assignment&#8221; in the <a href="http://www.irs.gov/app/understandingTaxes/student/glossary.jsp">IRS Tax Glossary</a>.</p>
<p>Most clients of mine are of the &#8220;indefinite&#8221; kind, ones I intend to work with for at least a year or more.  Individual projects for my clients generally span anywhere from less than a single day up to several months, but never a year or more.</p>
<p>I think this qualifies my one-day-a-week on-site visits as &#8220;short term travel&#8221; and therefore my travel expenses are deductible, but given sufficiently loose interpretations in the IRS&#8217;s favor, it makes me nervous.  How is this supposed to be interpreted?</p>
<p>Naturally, I can arrive at my own conclusions and interpretations of what this all means.  What I&#8217;d like to know is if anyone here has dealt with the IRS with respect to these two issues, and what their official stance is.</p>
<p>I suppose I could try and call the IRS and try to explain this to them and get an answer, but I&#8217;m not too keen on getting a verbal one-off interpretation by some call center representative.  Getting this in writing is somewhat important, for obvious reasons.</p>
<p>Related posts:<ol>
<li><a href='http://dossy.org/2007/04/if-you-work-from-home-where-do-you-take-your-kids/' rel='bookmark' title='If you work from home, where do you take your kids?'>If you work from home, where do you take your kids?</a></li>
<li><a href='http://dossy.org/2009/09/reorganizing-the-home-office/' rel='bookmark' title='Reorganizing the home office'>Reorganizing the home office</a></li>
<li><a href='http://dossy.org/2007/10/the-disaster-which-is-my-home-office/' rel='bookmark' title='The disaster which is my home office'>The disaster which is my home office</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=qLncPiGquxo:ZMNBHY5qLxw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=qLncPiGquxo:ZMNBHY5qLxw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=qLncPiGquxo:ZMNBHY5qLxw:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/qLncPiGquxo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/11/business-meals-for-self-employed-work-from-home-consultants/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/11/business-meals-for-self-employed-work-from-home-consultants/</feedburner:origLink></item>
		<item>
		<title>November Rain? How about October Snow …</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/MFBtowAB0ug/</link>
		<comments>http://dossy.org/2011/10/november-rain-how-about-october-snow/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 19:53:17 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Observations]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1252</guid>
		<description>The northeast US got slapped with a nice blizzard this last week of October 2011, right on Halloween weekend. There are still green leaves (!) on the trees, and the weight of the snow has taken out many tree limbs and wires, resulting in Governor Christie declaring a statewide state of emergency. Millions of people [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2007/04/snow-in-april-2007/' rel='bookmark' title='Snow in April, 2007'&gt;Snow in April, 2007&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2009/10/snow-leopard-bring-on-the-pain/' rel='bookmark' title='Snow Leopard: Bring on the pain!'&gt;Snow Leopard: Bring on the pain!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2010/12/time-lapse-of-december-26-27-2010-snow-storm/' rel='bookmark' title='Time lapse of December 26-27, 2010, snow storm'&gt;Time lapse of December 26-27, 2010, snow storm&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
			<content:encoded><![CDATA[<p>The northeast US got slapped with a nice blizzard this last week of October 2011, right on Halloween weekend.  There are still green leaves (!) on the trees, and the weight of the snow has taken out many tree limbs and wires, resulting in Governor Christie <a href="http://www.state.nj.us/governor/news/news/552011/approved/20111029a.html">declaring a statewide state of emergency</a>.  Millions of people across New England <a href="http://www.bloomberg.com/news/2011-10-29/rare-october-snowstorm-moves-into-u-s-northeast-threatening-power-losses.html">are without power</a>, up to 600,000 of them <a href="http://www.nj.com/news/index.ssf/2011/10/gov_christie_declares_state_of_1.html">in New Jersey alone</a>.</p>
<p>Making the best out of the situation, our girls got bundled up and went outside to play in the snow.  Here&#8217;s a short video I took of them:</p>
<div style="text-align: center;"><iframe width="560" height="315" src="http://www.youtube.com/embed/1j2QkryhxCs?rel=0" frameborder="0" allowfullscreen></iframe></div>
<p>Related posts:<ol>
<li><a href='http://dossy.org/2007/04/snow-in-april-2007/' rel='bookmark' title='Snow in April, 2007'>Snow in April, 2007</a></li>
<li><a href='http://dossy.org/2009/10/snow-leopard-bring-on-the-pain/' rel='bookmark' title='Snow Leopard: Bring on the pain!'>Snow Leopard: Bring on the pain!</a></li>
<li><a href='http://dossy.org/2010/12/time-lapse-of-december-26-27-2010-snow-storm/' rel='bookmark' title='Time lapse of December 26-27, 2010, snow storm'>Time lapse of December 26-27, 2010, snow storm</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=MFBtowAB0ug:rSHKJkBh4qk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=MFBtowAB0ug:rSHKJkBh4qk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=MFBtowAB0ug:rSHKJkBh4qk:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/MFBtowAB0ug" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/10/november-rain-how-about-october-snow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/10/november-rain-how-about-october-snow/</feedburner:origLink></item>
		<item>
		<title>The Oxford comma, let me teach you it</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/-MGYljHfWHM/</link>
		<comments>http://dossy.org/2011/10/the-oxford-comma-let-me-teach-you-it/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 03:37:42 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Linguistics]]></category>
		<category><![CDATA[Piss and moan (Rants)]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1250</guid>
		<description>[ I originally wrote this as a comment on a friend's LJ in response to his reposting the below image, but wanted to also post the comment on my blog since it's a subject I feel strongly about. ] I personally, dislike, the Oxford comma, and, prefer, the Shatner comma. Seriously, though, most of the [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2006/09/it-takes-grant-money-to-teach-kids-to-cross-the-street-are-you-kidding-me/' rel='bookmark' title='It takes grant money to teach kids to cross the street?  Are you kidding me?'&gt;It takes grant money to teach kids to cross the street?  Are you kidding me?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
			<content:encoded><![CDATA[<p>[ I originally wrote this as a comment on a friend's LJ in response to his reposting the below image, but wanted to also post the comment on my blog since it's a subject I feel strongly about. ]</p>
<div style="width:452px; margin-left:auto; margin-right:auto;"><a href="http://aeferg.tumblr.com/post/10290286196/grammar-is-important-kids-credit-for-original"><img src="http://dossy.org/uploads/2011/10/oxford-comma-strippers-jfk-stalin.jpg" alt="With the Oxford comma: we invited the strippers, jfk, and stalin.  Without the Oxford comma: we invited the strippers, jfk and stalin." border="0" width="452" height="591" style="display:block;" /></a></div>
<p>I personally, dislike, the Oxford comma, and, prefer, <a href="http://latimesblogs.latimes.com/jacketcopy/2011/06/goodbye-oxford-comma-hello-shatner-comma.html">the Shatner comma</a>.<br />
 <img src='http://dossy.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Seriously, though, most of the examples folks use when illustrating the value of &#8220;<a href="http://en.wikipedia.org/wiki/Serial_comma">the Oxford comma</a>&#8221; follows this pattern:</p>
<p>&#8220;&#8230; Noun, ProperNoun and ProperNoun.&#8221;</p>
<p>In this specific case, I agree, the series (Oxford) comma is necessary. However, if the last three of the list elements are proper nouns, it&#8217;s not necessary:</p>
<p>&#8220;I went to England, Spain and France.&#8221;</p>
<p>Or, if none of the last three elements in the list are proper nouns:</p>
<p>&#8220;At the grocery store, please buy carrots, mangos and limes.&#8221;</p>
<p>What&#8217;s worse is when folks use the serial (Oxford) comma before a conjunction when NOT enumerating a list, like:</p>
<p>&#8220;I went to the store, and bought a book.&#8221; FUCK NO WRONG WRONG WRONG. This is NOT an Oxford comma, it&#8217;s called WRONG WRONGITY WRONG WRONG.</p>
<p>*neck-twitch*</p>
<p>Related posts:<ol>
<li><a href='http://dossy.org/2006/09/it-takes-grant-money-to-teach-kids-to-cross-the-street-are-you-kidding-me/' rel='bookmark' title='It takes grant money to teach kids to cross the street?  Are you kidding me?'>It takes grant money to teach kids to cross the street?  Are you kidding me?</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=-MGYljHfWHM:E5V8UoccxTQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=-MGYljHfWHM:E5V8UoccxTQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=-MGYljHfWHM:E5V8UoccxTQ:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/-MGYljHfWHM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/10/the-oxford-comma-let-me-teach-you-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/10/the-oxford-comma-let-me-teach-you-it/</feedburner:origLink></item>
		<item>
		<title>DM Weil art gallery in New Paltz, NY</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/xtNNYNlNdY8/</link>
		<comments>http://dossy.org/2011/09/dm-weil-art-gallery-in-new-paltz-ny/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 22:30:31 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[Arts and Crafts]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1247</guid>
		<description>My wife and I visited DM Weil&amp;#8217;s gallery as part of our anniversary weekend away, somewhat randomly, looking for things to do in the Hudson River Valley area on TripAdvisor. While we enjoy the finer things in life, we&amp;#8217;re not art snobs. Often, the art gallery experience is dull &amp;#8212; sure, there&amp;#8217;s some great art, [...]
No related posts.</description>
			<content:encoded><![CDATA[<p>My wife and I visited <a href="http://dmweilgallery.com/">DM Weil&#8217;s gallery</a> as part of our anniversary weekend away, somewhat randomly, looking for things to do in the Hudson River Valley area on <a href="http://www.tripadvisor.com/Attraction_Review-g48245-d2097476-Reviews-DM_Weil_Gallery-New_Paltz_New_York.html">TripAdvisor</a>.</p>
<div style="float: right; padding-left: 15px;"><a href="http://dmweilgallery.com/"><img src="http://dossy.org/uploads/2011/09/dm-weil-gallery.jpg" alt="DM Weil's gallery" border="0" width="325" height="201" /></a></div>
<p>While we enjoy the finer things in life, we&#8217;re not art snobs. Often, the art gallery experience is dull &#8212; sure, there&#8217;s some great art, or at least that&#8217;s what everyone calls it &#8212; but it&#8217;s totally different at DM Weil. Ken, the gallery manager, makes you really feel welcome and will gladly answer your questions about the art, the products available, and so on. Donna shared her story with us about her art, that gave us a real connection to her gift and talent on display.</p>
<p>The art itself covers a broad range &#8212; busy, energetic, curious, transporting, nuanced, whimsy, vibrant. The gallery space is wonderful, airy, bright and crisp. It really gives you the opportunity to get lost in the art.</p>
<p>In comparison to upscale New York City galleries, DM Weil&#8217;s gallery is beautiful, peaceful and relaxed. As guests, you feel so welcome and the hosts are generous, offering refreshments and conversation.</p>
<p>We will certainly be back to see new works on display in the future. Even if you don&#8217;t think you care for art, if you&#8217;re in the area, and you can keep an open mind, definitely stop in when the gallery is open. Beyond the paints and canvas is a wonderful person who shares her time and talent with you, with everyone.</p>
<p>No related posts.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=xtNNYNlNdY8:JIPy7VKgw60:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=xtNNYNlNdY8:JIPy7VKgw60:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=xtNNYNlNdY8:JIPy7VKgw60:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/xtNNYNlNdY8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/09/dm-weil-art-gallery-in-new-paltz-ny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/09/dm-weil-art-gallery-in-new-paltz-ny/</feedburner:origLink></item>
		<item>
		<title>MySQL Geo Distance Code and Samples</title>
		<link>http://feedproxy.google.com/~r/dossy/feed/~3/qBkurXmjNuM/</link>
		<comments>http://dossy.org/2011/09/mysql-geo-distance-code-and-samples/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 02:27:04 +0000</pubDate>
		<dc:creator>Dossy Shiobara</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://dossy.org/?p=1244</guid>
		<description>Over the years, I&amp;#8217;ve implemented and re-implemented the haversine formula whenever I&amp;#8217;ve needed to compute great-circle distances, which is pretty common when you&amp;#8217;re doing geospatial proximity searches, e.g., &amp;#8220;What&amp;#8217;s near me?&amp;#8221; or &amp;#8220;How far are these two locations from each other?&amp;#8221; For an implementation of the formula in MySQL, Alexander Rubin&amp;#8217;s presentation is quite useful, [...]
Related posts:&lt;ol&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2009/03/aolserver-in-googles-summer-of-code-2009/' rel='bookmark' title='AOLserver in Google&amp;#8217;s Summer of Code 2009'&gt;AOLserver in Google&amp;#8217;s Summer of Code 2009&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://dossy.org/2010/07/using-mysql-meta-data-effectively-at-odtug-kaleidoscope-2010/' rel='bookmark' title='Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010'&gt;Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
			<content:encoded><![CDATA[<p>Over the years, I&#8217;ve implemented and re-implemented the <a href="http://en.wikipedia.org/wiki/Haversine_formula">haversine formula</a> whenever I&#8217;ve needed to compute great-circle distances, which is pretty common when you&#8217;re doing geospatial proximity searches, e.g., &#8220;What&#8217;s near me?&#8221; or &#8220;How far are these two locations from each other?&#8221;</p>
<p>For an implementation of the formula in MySQL, <a href="http://www.arubin.org/files/geo_search.pdf">Alexander Rubin&#8217;s presentation</a> is quite useful, and is what I&#8217;ve based the following code on this time around.</p>
<p>Hopefully, rather than re-implementing this <i>yet again</i> the next time I need it, I&#8217;ll find my own blog entry on it and just reuse this code.  I keep forgetting where I&#8217;ve stashed the most recent copy, which is why I keep ending up re-implementing this every time I&#8217;ve needed it.</p>
<p>Here&#8217;s the code, tested on MySQL 5.1.41:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><pre>
DELIMITER $$

DROP FUNCTION IF EXISTS geodist $$
CREATE FUNCTION geodist (
  src_lat DECIMAL(9,6), src_lon DECIMAL(9,6),
  dst_lat DECIMAL(9,6), dst_lon DECIMAL(9,6)
) RETURNS DECIMAL(6,2) DETERMINISTIC
BEGIN
  SET @dist := 3956 * 2 * ASIN(SQRT(
      POWER(SIN((src_lat - ABS(dst_lat)) * PI()/180 / 2), 2) +
      COS(src_lat * PI()/180) *
      COS(ABS(dst_lat) * PI()/180) *
      POWER(SIN((src_lon - dst_lon) * PI()/180 / 2), 2)
    ));
  RETURN @dist;
END $$

DROP FUNCTION IF EXISTS geodist_pt $$
CREATE FUNCTION geodist_pt (src POINT, dst POINT)
RETURNS DECIMAL(6,2) DETERMINISTIC
BEGIN
  RETURN geodist(Y(src), X(src), Y(dst), X(dst));
END $$

DROP PROCEDURE IF EXISTS geobox $$
CREATE PROCEDURE geobox (
  IN src_lat DECIMAL(9,6), IN src_lon DECIMAL(9,6), IN dist DECIMAL(6,2),
  OUT lat_top DECIMAL(9,6), OUT lon_lft DECIMAL(9,6),
  OUT lat_bot DECIMAL(9,6), OUT lon_rgt DECIMAL(9,6)
) DETERMINISTIC
BEGIN
  /*
   * src_lat, src_lon -> center point of bounding box
   * dist -> distance from center in miles
   * lat_top, lon_lft -> top left corner of bounding box
   * lat_bot, lon_rgt -> bottom right corner of bounding box
   */
  SET lat_top := src_lat - (dist / 69);
  SET lon_lft := src_lon - (dist / ABS(COS(RADIANS(src_lat)) * 69));
  SET lat_bot := src_lat + (dist / 69);
  SET lon_rgt := src_lon + (dist / ABS(COS(RADIANS(src_lat)) * 69));
END $$

DROP PROCEDURE IF EXISTS geobox_pt $$
CREATE PROCEDURE geobox_pt (
  IN pt POINT, IN dist DECIMAL(6,2),
  OUT top_lft POINT, OUT bot_rgt POINT
) DETERMINISTIC
BEGIN
  /*
   * pt -> center point of bounding box
   * dist -> distance from center in miles
   * top_lft -> top left corner of bounding box
   * bot_rgt -> bottom right corner of bounding box
   */
  CALL geobox(Y(pt), X(pt), dist, @lat_top, @lon_lft, @lat_bot, @lon_rgt);
  SET top_lft := POINT(@lon_lft, @lat_top);
  SET bot_rgt := POINT(@lon_rgt, @lat_bot);
END $$

DROP PROCEDURE IF EXISTS geobox_pt_bbox $$
CREATE PROCEDURE geobox_pt_bbox (
  IN pt POINT, IN dist DECIMAL(6,2), OUT bbox POLYGON
) DETERMINISTIC
BEGIN
  /*
   * pt -> center point of bounding box
   * dist -> distance from center in miles
   * bbox -> bounding box, dist miles from pt
   */
  CALL geobox_pt(pt, dist, @top_lft, @bot_rgt);
  SET bbox := Envelope(LineString(@top_lft, @bot_rgt));
END $$

DELIMITER ;
</pre>
</blockquote>
<p>And, here&#8217;s examples on how to use the above function and procedures:</p>
<blockquote style="padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; margin-left:1.5em; border-left:#666 3px solid;"><pre>
SELECT @src := pt FROM exp_geo
WHERE postal_code = '07405' AND city = 'Butler';

CALL GEOBOX_PT(@src, 10.0, @top_lft, @bot_rgt);
SELECT Y(@top_lft) AS lat_top, X(@top_lft) AS lon_lft,
       Y(@bot_rgt) AS lat_bot, X(@bot_rgt) AS lon_rgt;

CALL GEOBOX_PT_BBOX(@src, 10.0, @bbox);
SELECT AsWKT(@bbox);

-- Assuming INDEX on (lat, lon) and SPATIAL INDEX on (pt) ...

-- Fast:
SELECT g.postal_code, g.city, g.state,
       GEODIST(Y(@src), X(@src), lat, lon) AS dist
FROM exp_geo g
WHERE lat BETWEEN Y(@top_lft) AND Y(@bot_rgt)
AND lon BETWEEN X(@top_lft) AND X(@bot_rgt)
HAVING dist &lt; 5.0
ORDER BY dist;

-- Also fast:
SELECT g.postal_code, g.city, g.state, GEODIST_PT(@src, g.pt) AS dist
FROM exp_geo g
WHERE lat BETWEEN Y(@top_lft) AND Y(@bot_rgt)
AND lon BETWEEN X(@top_lft) AND X(@bot_rgt)
HAVING dist &lt; 5.0
ORDER BY dist;

-- Slow:
SELECT g.postal_code, g.city, g.state, GEODIST_PT(@src, g.pt) AS dist
FROM exp_geo g
WHERE Y(pt) BETWEEN Y(@top_lft) AND Y(@bot_rgt)
AND X(pt) BETWEEN X(@top_lft) AND X(@bot_rgt)
HAVING dist &lt; 5.0
ORDER BY dist;

-- Also slow:
SELECT g.postal_code, g.city, g.state, GEODIST_PT(@src, g.pt) AS dist
FROM exp_geo g
WHERE MBRContains(@bbox, pt) = 1
HAVING dist &lt; 5.0
ORDER BY dist;
</pre>
</blockquote>
<p>Normally, I try to explain the stuff I post, but this time I&#8217;m doing it for somewhat selfish reasons &#8212; so I don&#8217;t lose this work yet again.  I&#8217;m just throwing this up here so Google will index it, so I can find it the next time I need it.</p>
<p>I suppose if you read this and have questions, please ask them in the comments below.  I&#8217;ll do my best to answer, if I can.</p>
<p>Related posts:<ol>
<li><a href='http://dossy.org/2009/03/aolserver-in-googles-summer-of-code-2009/' rel='bookmark' title='AOLserver in Google&#8217;s Summer of Code 2009'>AOLserver in Google&#8217;s Summer of Code 2009</a></li>
<li><a href='http://dossy.org/2010/07/using-mysql-meta-data-effectively-at-odtug-kaleidoscope-2010/' rel='bookmark' title='Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010'>Using MySQL Meta Data Effectively at ODTUG Kaleidoscope 2010</a></li>
</ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/dossy/feed?a=qBkurXmjNuM:kpdCp9qdtvE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/dossy/feed?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/dossy/feed?a=qBkurXmjNuM:kpdCp9qdtvE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/dossy/feed?i=qBkurXmjNuM:kpdCp9qdtvE:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/dossy/feed/~4/qBkurXmjNuM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dossy.org/2011/09/mysql-geo-distance-code-and-samples/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://dossy.org/2011/09/mysql-geo-distance-code-and-samples/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching using apc
Object Caching 2289/2403 objects using apc

Served from: dossy.org @ 2012-05-23 19:10:42 -->

