<?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>AaronTerry.com</title>
	<atom:link href="http://www.aaronterry.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aaronterry.com</link>
	<description>Aaron Terry, Web Developer - Austin, TX</description>
	<lastBuildDate>Sat, 19 May 2012 15:52:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Does the Four Hour Body Slow Carb diet work? I lost 65lbs in 7 months</title>
		<link>http://www.aaronterry.com/2012/03/does-the-four-hour-body-slow-carb-diet-work-i-lost-65lbs-in-7-months/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2012/03/does-the-four-hour-body-slow-carb-diet-work-i-lost-65lbs-in-7-months/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 20:50:17 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=88</guid>
		<description><![CDATA[I lost 65lbs from August to the end of February doing the Slow Carb diet from the Four Hour Body. Even lost weight during the weeks of Thanksgiving and Christmas despite eating anything I wanted on those two days. About a year before starting this diet, I started Aktins and lost about 45lbs over 5-6 [...]]]></description>
			<content:encoded><![CDATA[<div>I lost 65lbs from August to the end of February doing the Slow Carb diet from the Four Hour Body. Even lost weight during the weeks of Thanksgiving and Christmas despite eating anything I wanted on those two days. About a year before starting this diet, I started Aktins and lost about 45lbs over 5-6 months. Then over the next 4-5 months, I picked up 10 of those back. Going SO long without carbs on Atkins made it difficult for me to make it a sustainable lifestyle change. The Slow Carb diet, however, IS one that I can see as a sustainable change.</div>
<div></div>
<div>I&#8217;m not interested on debating the validity of this dietary approach.  I&#8217;m just passing along what I did. Hopefully someone finds this information useful. If you have any questions, just post a comment.</div>
<div></div>
<div>Don&#8217;t try to mix this with other diets you&#8217;ve heard/read about. There are 100&#8242;s of opinions out there on the best way to lose weight. Pick one and do it. Don&#8217;t create your own combination of 5-6 approaches. This is not a diet where you count points or calories. You also don&#8217;t do a lot measuring portion sizes. Don&#8217;t make it more complicated than it is. It really is THAT simple.</div>
<p><span id="more-88"></span></p>
<h3><strong>Step 1: Read the first chapter of the book for free</strong></h3>
<p>&nbsp;</p>
<div>Read the first chapter free online to get a feel for the writing style and the basic beliefs of the author. You should find it to be a quick, easy read.</div>
<div><a href="http://www.fourhourbody.com/" target="_blank">http://www.fourhourbody.com</a></div>
<p>&nbsp;</p>
<h3><strong>Step 2: Read these blog posts that summarizes the diet, and decide if you are on board.</strong></h3>
<p>&nbsp;</p>
<div>This article covers the basics of the diet. Read it and make sure you want to do it before spending money on the book : <a href="http://gizmodo.com/5709913/4+hour-body-+-the-slow+carb-diet" target="_blank">http://gizmodo.com/5709913/4+hour-body-+-the-slow+carb-<wbr>diet</wbr></a></div>
<p>List of foods allowed/disallowed (excluding cheat day):  <a href="http://4hourpeople.com/question/369/slow-carb-foods-allowed-not-allowed" target="_blank">http://4hourpeople.com/<wbr>question/369/slow-carb-foods-<wbr>allowed-not-allowed</wbr></wbr></a></p>
<h3><strong><strong>Step 3: Now that you&#8217;re IN, Buy the book and Read these chapters on Subtracting Fat:</strong></strong></h3>
<p>&nbsp;</p>
<div>
<div>Obviously, I&#8217;m encouraging you to buy the book. It&#8217;s less than $20 and there&#8217;s a ton of information in it. It helped me out, so I&#8217;m asking you to support the author now that you&#8217;ve read a little.</div>
<p><strong>Book:</strong> The Four Hour Body (<a href="http://www.amazon.com/gp/product/030746363X?ie=UTF8&amp;tag=offsitoftimfe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=030746363Xerehttp://www.amazon.com/gp/product/030746363X?ie=UTF8&amp;tag=offsitoftimfe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=030746363X" target="_blank">Book on Amazon</a> | <a href="http://www.amazon.com/The-4-Hour-Body-ebook/dp/B003EI2EH2/ref=tmm_kin_title_0?ie=UTF8&amp;m=AG56TWVU5XWC2" target="_blank">Amazon Kindle Edition</a>). I bought the Kindle version and it&#8217;s come in handy that I&#8217;ve had it on my phone whenever I was at the store trying to buy something and needed to review the rules. The printed book is a BEAST &#8230;. but keep in mind that this is NOT a read cover to cover type of book. You just read the intro chapters and then read whatever topics interest you.</p>
<p>The chapters are short and the writing style is engaging which makes it a quick read. If you want a physical book, just about any book store should carry it.</p>
<div><strong>Chapters to read to get started on Slow Carb Diet</strong></div>
<div>
<ul>
<li>The Slow- Carb Diet I: How to Lose 20 Pounds in 30 Days Without Exercise</li>
<li>The Slow-Carb Diet II: The Finer Points and Common Questions</li>
<li>Damage Control: Preventing Fat Gain When You Binge</li>
<li>The Four Horsemen of Fat-Loss</li>
</ul>
</div>
<p>It would be best is you also read the introductory chapters that precede the Subtracting fat section. I also read the chapter on Building the Perfect Posterior (or Losing 100+ Pounds) &#8212; which is where my kettlebell workout came from. I haven&#8217;t done anything with the cold bath stuff or any of the other advanced topics. I also only eat 3 times a day.</p>
<h3><strong>Step 4: Choose a cheat day &#8230; and pick a day to start (should be at least 5 days before your 1st cheat day)</strong></h3>
<p>&nbsp;</p>
<div><strong></strong>Saturday is my standard cheat day. I make adjustments when necessary though (Thanksgiving and Christmas day were my cheat days on those weeks, for example). Remember that it IS important that you eat a lot of calories on this day. The main purpose of this day is to prevent your body metabolism from switching to a low-calorie burn mode. Cheat day is a good mind trick too though. A couple of weeks ago, I fantasized about an Italian Feast that I planned to eat on Saturday night ALL WEEK.</div>
<p>Cheat days are no hold barred, but the author does have some cheat day strategies in the Damage Control chapter. I usually end up drinking a couple of small cans of grapefruit juice before high-carb meals on cheat days. REAL grapefruit juice was hard to find in cans, so I ordered this pack of 24 from Amazon: <a href="http://www.amazon.com/gp/product/B003ZI7I36/ref=oh_o02_s00_i00_details" target="_blank">http://www.amazon.com/<wbr>gp/product/B003ZI7I36/ref=oh_<wbr>o02_s00_i00_details</wbr></wbr></a>. I&#8217;ve even brought a couple of cans with me on trips.</p>
<h3><strong>Step 5: Measure Yourself before you start</strong></h3>
<p>&nbsp;</p>
<div><strong></strong>Now I didn&#8217;t do this, but I wish I had. My first month, I only lost 7-8 lbs &#8230; but my body shape changed a lot. Net effect I was packing on a lot of muscle at the same time as I was losing fat. I could see big differences in how my clothes fit, but I couldn&#8217;t quantify the results because the only thing I was tracking was weight. Now the 2nd month, I lost like 25 or so &#8230;. despite still adding muscle.</div>
<div>Get a measuring tape (the kind that tailors use) and measure before you start and at least every couple of weeks. This article tells you how to measure: <a href="http://www.4hourlife.com/2011/04/09/4-hour-body-composition-body-fat-calculator-how-do-you-measure-up/" target="_blank">http://www.4hourlife.<wbr>com/2011/04/09/4-hour-body-<wbr>composition-body-fat-<wbr>calculator-how-do-you-measure-<wbr>up/</wbr></wbr></wbr></wbr></a></div>
<p>&nbsp;</p>
<h3><strong>Step 6: Get started</strong></h3>
<p><strong></strong>Now you don&#8217;t HAVE to go through all of the previous steps before starting. But, at least read the first two chapters of the subtracting fat section of the book.</p>
<h3><strong>Step 7: Get your PAGG Stack supplements (optional)</strong></h3>
<p>&nbsp;</p>
<div><strong></strong>This article covers the PAGG stack that the book discusses in the &#8220;Four Horsemen of Fat Loss&#8221; chapter. This is optional, but recommened &#8212; especially if you won&#8217;t be working-out much: <a href="http://www.fourhourbodycouple.com/2011/02/02/what-is-the-pagg-stack/" target="_blank">http://www.<wbr>fourhourbodycouple.com/2011/<wbr>02/02/what-is-the-pagg-stack/</wbr></wbr></a></div>
<div>Don&#8217;t let not having these hold up starting the diet. They do sell All-In-One pills, but those run about $50/month.Here&#8217;s what I use:</div>
<div>
<div id="attachment_89" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aaronterry.com/wp-content/uploads/2012/03/paggstack.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-medium wp-image-89" title="PAGG Stack" src="http://www.aaronterry.com/wp-content/uploads/2012/03/paggstack-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Here is my PAGG Stack</p></div>
<p>&nbsp;</p>
<ul>
<li><strong>P</strong>olicosanol &#8211; I couldn&#8217;t find locally, so I order from Amazon &#8211; <a href="http://www.amazon.com/Foods-Policosanol-20mg-Plus-Vcaps/dp/B0013OXGBC/ref=sr_1_1?ie=UTF8&amp;qid=1330788661&amp;sr=8-1" target="_blank">click to see product</a> (90 caps, so 1 bottle lasts 3 months)</li>
<li><strong>A</strong>lpha Lipoic Acid &#8211; HEB &#8211; they also sell these at walmart, but the mg per pill are lower and the price is higher</li>
<li><strong>G</strong>arlic comes from Walmart &#8212; I think I got these because it&#8217;s a good product at low price. $5, I think.</li>
<li><strong>G</strong>reen Tea Extract &#8212; can&#8217;t remember why I go with the HEB one.</li>
</ul>
</div>
<p><strong>More tips</strong></p>
<div>
<ul>
<li>Alcohol is limited to up to 2 glass of dry wine (low sugar) a day. No other alcohol allowed, except for your cheat day &#8212; on which there are no rules or restrictions.</li>
<li>Do like the author says and keep your meals simple. Establish a rotation of 4-5 meals and stick with those. If you&#8217;re someone who doesn&#8217;t cook often, don&#8217;t run out to the store, buy up a ton of groceries, and tell yourself you&#8217;re going to start cooking everyday.</li>
<li>For breakfast, the most important thing is to eat with 1 hour (preferably 30 mins) of waking up. I tried to keep it simple and have something that didn&#8217;t need cooking or prep time. So, I drink one of these just about every day: <a href="http://www.amazon.com/AdvantEDGE-Control-Strawberry-Cream-Carton/dp/B000UVCIHW/ref=sr_1_1?ie=UTF8&amp;qid=1331002714&amp;sr=8-1" target="_blank">http://www.amazon.com/<wbr>AdvantEDGE-Control-Strawberry-<wbr>Cream-Carton/dp/B000UVCIHW/<wbr>ref=sr_1_1?ie=UTF8&amp;qid=<wbr>1331002714&amp;sr=8-1</wbr></wbr></wbr></wbr></a></li>
<li>I often will also grab a few slices of sandwich meat (usually turkey or ham) to push the grams of protein up to 25-30.</li>
</ul>
</div>
<p><strong>Here are some common things that I would eat from restaurants:</strong></p>
<div>
<ul>
<li>Chipotle &#8211; Salad with no dressing (lettuce, black beans, sautéed onions and peppers, chicken or carnitas, pico, hot sauce, corn, and either Guacamole or double meat)</li>
<li>Salad from a sandwich shop with either balsamic vinaigrette or just oil and vinegar.</li>
<li>A BBQ spot &#8230; brisket or ribs with little to no sauce. Side of beans.</li>
<li>Mexican restaurant &#8212; Taco Salad (no shell) with double ground beef, beans, pico, jalapeños, and a little salsa for dressing</li>
<li>American restaurants &#8211; Grilled pork chops (with no glaze) or steak, beans and veggies</li>
</ul>
<p><strong>Common things that I cooked (usually with salad, steamed broccoli, green beans) :</strong></p>
<ul>
<li>Pot roast with no potatoes</li>
<li>Chili</li>
<li>Ribeye steak on grill or broiled on stove/oven</li>
</ul>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2012/03/does-the-four-hour-body-slow-carb-diet-work-i-lost-65lbs-in-7-months/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just found the WP theme to use for my church&#8217;s website</title>
		<link>http://www.aaronterry.com/2010/05/just-found-the-wp-theme-to-use-for-my-churchs-website/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2010/05/just-found-the-wp-theme-to-use-for-my-churchs-website/#comments</comments>
		<pubDate>Wed, 05 May 2010 23:13:26 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=64</guid>
		<description><![CDATA[I've been working on bringing the website for the church I attend into the modern era and I think I just found the perfect theme.

It's called Outreach, and it's awesome.  Make sure you click on the "Test Drive" link to get the full effect.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a StudioPress member for several months now and I&#8217;ve done a few sites for a couple of organizations I&#8217;m involved in using their templates.   I use WP and Premium Themes on these projects because I need something that&#8217;s fast, flexible, and extensible with low technical requirements for hosting.</p>
<p><span id="more-64"></span></p>
<p>I&#8217;ve been working on bringing the website for the church I attend into the modern era and I think I just found the perfect theme.</p>
<p>It&#8217;s called Outreach, and it&#8217;s awesome.  Make sure you click on the &#8220;Test Drive&#8221; link to get the full effect.</p>
<p>Here it is: <a href="http://www.studiopress.com/releases/outreach-1-0-child-theme-released.htm">http://www.studiopress.com/releases/outreach-1-0-child-theme-released.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2010/05/just-found-the-wp-theme-to-use-for-my-churchs-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebOS 1.3.1 Update Fixes Google &#8220;My Contacts&#8221; syncing issue</title>
		<link>http://www.aaronterry.com/2009/11/webos-1-3-1-update-fixes-google-my-contacts-syncing-issue/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2009/11/webos-1-3-1-update-fixes-google-my-contacts-syncing-issue/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 06:29:46 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[Palm Pre]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=58</guid>
		<description><![CDATA[Well folks, my NuevaSync Google Contacts syncing workaround has served me well since the Pre launched on June 6th.  I checked PreCentral.net before I went to bed and found this article Tonight, Palm released WebOS 1.3.1 to Sprint customers here in the U.S.  Among it&#8217;s many fixes read this line: If you set up Contacts [...]]]></description>
			<content:encoded><![CDATA[<p>Well folks, my <a href="http://www.aaronterry.com/2009/06/palm-pre-clean-contacts-workaround/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">NuevaSync Google Contacts syncing workaround</a> has served me well since the Pre launched on June 6th.  I checked PreCentral.net before I went to bed and <a href="http://www.precentral.net/webos-131-update-available-download" target="_blank">found this article</a></p>
<p>Tonight, Palm released WebOS 1.3.1 to Sprint customers here in the U.S.  Among it&#8217;s <a href="http://kb.palm.com/wps/portal/kb/na/pre/p100eww/sprint/solutions/article/50607_en.html#131" target="_blank">many fixes</a> read this line:</p>
<ul>
<li><span style="background-color: #ffffff;">If you set up Contacts to synchronize with a Google account, the account synchronizes only entries in Google&#8217;s My Contacts, not all contacts.</span></li>
</ul>
<p>My Pre is validating the download as we speak.  I&#8217;ll report back if there are any problems.</p>
<p>Hopefully the NuevaSync workaround served many of you well (I was getting a few dozen hits a day on that tutorial).  Of course, you can continue to use it if you want and I&#8217;ll leave the article up &#8230;. but I&#8217;ll be removing it from my phone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2009/11/webos-1-3-1-update-fixes-google-my-contacts-syncing-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Palm Pre: Troubleshooting NuevaSync / Google Contacts</title>
		<link>http://www.aaronterry.com/2009/07/palm-pre-troubleshooting-nuevasync-google-contacts/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2009/07/palm-pre-troubleshooting-nuevasync-google-contacts/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 01:57:02 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[Palm Pre]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=50</guid>
		<description><![CDATA[Judging my my blog stats, my post on setting up your Palm Pre to Sync only the Google "My Contacts" group via Nuevasync is pretty popular.  I hope there are some people out there who have it setup and working for them.

In the comments, I've tried to help a couple of people who were having problems.  I decided that a follow up blog entry on troubleshooting would be a worthwile endevor.

As people report new problems, I'll try to keep this entry updated.]]></description>
			<content:encoded><![CDATA[<p>Judging my my blog stats, my post on <a href="http://www.aaronterry.com/2009/06/palm-pre-clean-contacts-workaround/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">setting up your Palm Pre to Sync only the Google &#8220;My Contacts&#8221; group via Nuevasync</a> is pretty popular.  I hope there are some people out there who have it setup and working for them.</p>
<p>In the comments, I&#8217;ve tried to help a couple of people who were having problems.  I decided that a follow up blog entry on troubleshooting would be a worthwile endevor.</p>
<p>As people report new problems, I&#8217;ll try to keep this entry updated.<br />
<span id="more-50"></span><br />
<strong>Basic Troubleshooting</strong></p>
<p><strong>Give it some time:</strong> After you&#8217;ve finished the setup, you&#8217;re anxious to instantly see all of your contacts sync.  However, it may take a few minutes before your phone starts to download contacts.   Once it does start syncing, it may take several minutes for it to complete the process &#8230; depending on how many contacts you have.  So, before you assuming that the sky is falling, just wait 5-10 minutes to see what&#8217;s happening.</p>
<p><strong>Check out the NuevaSync Detailed Status Page (screenshot below)<br />
</strong> (<a href="https://www.nuevasync.com/PublicSite/user/detail-status.htm" target="_blank">https://www.nuevasync.com/PublicSite/user/detail-status.htm</a>)<br />
This page will show you which calendars and how many contacts are setup to sync.  If the numbers look right to you, then you know that NuevaSync is successfully accessing your Google Account.  If they don&#8217;t, go into the NuevaSync settings screen and double check your Google Account settings for both contacts and calendar.</p>
<p><img style="border: 0px initial initial;" title="NuevaSync Detailed Status Screenshot" src="http://www.aaronterry.com/wp-content/uploads/2009/07/nuevasync-detailedStatus.gif" alt="NuevaSync Detailed Status Screenshot" width="450" height="578" /></p>
<p><strong>Check out the NuevaSync Sync Status Page (screenshot below)<br />
</strong>(<a style="color: #000000; text-decoration: none;" onclick="javascript:pageTracker._trackPageview('/outbound/comment/https://www.nuevasync.com/PublicSite/user/sync-status.htm');" rel="nofollow" href="https://www.nuevasync.com/PublicSite/user/sync-status.htm" target="_blank">https://www.nuevasync.com/PublicSite/user/sync-status.htm</a>)<br />
This page will show you whether or not your Pre is successfully syncing.  If there is no information there, then your Pre is not successfully connecting to NuevaSync.  Double check the sync settings in the Pre Contacts app for the NuevaSync Exchange server account.  If you see some weird error message that you can&#8217;t figure out, let me know and I&#8217;ll try to shed some light (read: guess what it means )</p>
<p><img class="alignnone size-full wp-image-52" title="nuevasync-syncstatus" src="http://www.aaronterry.com/wp-content/uploads/2009/07/nuevasync-syncstatus.gif" alt="nuevasync-syncstatus" width="484" height="148" /></p>
<p>That&#8217;s all for now.  Let me know what problems you are having and I&#8217;ll see what I can come up with.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2009/07/palm-pre-troubleshooting-nuevasync-google-contacts/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Palm Pre App Writing Looks Straightforward</title>
		<link>http://www.aaronterry.com/2009/06/palm-pre-app-writing-looks-approachable/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2009/06/palm-pre-app-writing-looks-approachable/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 04:31:42 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[Palm Pre]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=37</guid>
		<description><![CDATA[I'm excited to see all of the work being done on precentral.net and predev.wikidot.com on Palm Pre hacking/development.  One of my main reasons for Palm Pre excitement was the notion that I'd be able to build apps without learning Objective-C or some other language. ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Update: </strong></span>Anyone wanting to know the nitty-gritty on WebOS App development needs to head over to <a href="http://www.weboshelp.net/webos-mojo-development-resources">WebOSHelp.net</a></p>
<p>I&#8217;m excited to see all of the work being done on <a href="http://www.precentral.net">precentral.net</a> and <a href="http://predev.wikidot.com/">predev.wikidot.com</a> on Palm Pre hacking/development.  One of my main reasons for Palm Pre excitement was the notion that I&#8217;d be able to build apps without learning Objective-C or some other language.</p>
<p>I&#8217;m just not THAT into doing web development all day at work and then coming home to learn a new language.  Actually, I prefer not to look at my home computer much at all.</p>
<p>I guess the first &#8220;real&#8221; homebrew app was released today &#8230; a Tip Calculator.  Check it out here: <a href="http://www.jwz.org/tipcalculator/">http://www.jwz.org/tipcalculator/</a>.  I downloaded the source code and looked around a little bit.  Looks pretty approachable.  I will probably put my Pre in to Programmer&#8217;s mode (or just download the image) and see what other application source code I can look through.</p>
<p>I guess it&#8217;s time for me to pick up a Javascript framework  (prototype, mootools, etc) and start messing around with it.  I&#8217;ve never done any MVC Javascript programming, but I suppose my Adobe Flex experience will pay off from an architecture standpoint.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2009/06/palm-pre-app-writing-looks-approachable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-SQL: Calculating number of weekdays between two dates</title>
		<link>http://www.aaronterry.com/2009/06/calculating-number-of-weekdays-between-two-dates/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2009/06/calculating-number-of-weekdays-between-two-dates/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 05:20:08 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=13</guid>
		<description><![CDATA[Tonight someone tweeted trying to find a ColdFusion or SQL solution to counting the number of weekdays (excluding Saturdays and Sundays) between two dates.  Most of the solutions online involving looping over the date range and adding to a counter if that iteration of the loop is a weekday.

That's fine for small ranges, but not if you need to test dates that span many years.  Anyway, here's a SQL solution.  It's late, so hopefully the comments in the code suffice.  It should be straightforward to rewrite this in ColdFusion.
]]></description>
			<content:encoded><![CDATA[<p>Tonight someone tweeted trying to find a ColdFusion or SQL solution to counting the number of weekdays (excluding Saturdays and Sundays) between two dates.  Most of the solutions online involving looping over the date range and adding to a counter if that iteration of the loop is a weekday.</p>
<p>That&#8217;s fine for limited, but probably not if you need to test dates that span many years or need to run the function 1,000s of times.  Anyway, here&#8217;s a SQL Server UDF solution.  It&#8217;s late, so hopefully the comments in the code suffice.  It should be straightforward to rewrite this in ColdFusion.</p>
<p><span id="more-13"></span></p>
<p>This is an improved version of the solution presented <a href="http://chrismay.org/2008/03/30/Excluding+Weekends+From+A+SQL+Date+Range.aspx" target="_blank">here</a>.  That solution fails when the timespan is less than 7 days long and contains at least one weekend day.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">FUNCTION</span> <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>dateDiffWeekdays<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#40;</span>
@startdaytime DATETIME;
@enddaytime DATETIME;
<span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">RETURNS</span> <span style="color: #993333; font-weight: bold;">INT</span>
<span style="color: #993333; font-weight: bold;">AS</span>
<span style="color: #993333; font-weight: bold;">BEGIN</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">DECLARE</span> @answer <span style="color: #993333; font-weight: bold;">INT</span>;
<span style="color: #993333; font-weight: bold;">SET</span> @answer <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- Strip Times</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> @<span style="color: #993333; font-weight: bold;">START</span> <span style="color: #66cc66;">=</span> dateadd<span style="color: #66cc66;">&#40;</span>dd<span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> datediff<span style="color: #66cc66;">&#40;</span>dd<span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span>@startdaytime<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> @<span style="color: #993333; font-weight: bold;">END</span> <span style="color: #66cc66;">=</span> dateadd<span style="color: #66cc66;">&#40;</span>dd<span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> datediff<span style="color: #66cc66;">&#40;</span>dd<span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span>@enddaytime<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- handle end conditions</span>
<span style="color: #993333; font-weight: bold;">DECLARE</span> @firstWeekDayInRange datetime<span style="color: #66cc66;">,</span> @lastWeekDayInRange datetime;
<span style="color: #993333; font-weight: bold;">SELECT</span> @firstWeekDayInRange <span style="color: #66cc66;">=</span>
<span style="color: #993333; font-weight: bold;">CASE</span>
<span style="color: #808080; font-style: italic;">-- If Saturday, add two days</span>
<span style="color: #993333; font-weight: bold;">WHEN</span> datepart<span style="color: #66cc66;">&#40;</span>dw<span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">START</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">7</span> <span style="color: #993333; font-weight: bold;">THEN</span> dateadd<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DAY</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">START</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">-- If Sunday, add one day</span>
<span style="color: #993333; font-weight: bold;">WHEN</span> datepart<span style="color: #66cc66;">&#40;</span>dw<span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">START</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">THEN</span> dateadd<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DAY</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">START</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">ELSE</span> @<span style="color: #993333; font-weight: bold;">START</span>
<span style="color: #993333; font-weight: bold;">END</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">SELECT</span> @lastWeekDayInRange <span style="color: #66cc66;">=</span>
<span style="color: #993333; font-weight: bold;">CASE</span>
<span style="color: #808080; font-style: italic;">-- If Saturday, substract one day</span>
<span style="color: #993333; font-weight: bold;">WHEN</span> datepart<span style="color: #66cc66;">&#40;</span>dw<span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">END</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">7</span> <span style="color: #993333; font-weight: bold;">THEN</span> dateadd<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DAY</span><span style="color: #66cc66;">,-</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">END</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">-- If Sunday, substract two days</span>
<span style="color: #993333; font-weight: bold;">WHEN</span> datepart<span style="color: #66cc66;">&#40;</span>dw<span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">END</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">THEN</span> dateadd<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DAY</span><span style="color: #66cc66;">,-</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">,</span>@<span style="color: #993333; font-weight: bold;">END</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">ELSE</span> @<span style="color: #993333; font-weight: bold;">END</span>
<span style="color: #993333; font-weight: bold;">END</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- add one day to answer (to count Friday) if enddate was on a weekend</span>
<span style="color: #993333; font-weight: bold;">IF</span> @<span style="color: #993333; font-weight: bold;">END</span> !<span style="color: #66cc66;">=</span> @lastWeekDayInRange
<span style="color: #993333; font-weight: bold;">SET</span> @answer <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">SELECT</span> @answer <span style="color: #66cc66;">=</span> @answer <span style="color: #66cc66;">+</span>
<span style="color: #993333; font-weight: bold;">CASE</span>
<span style="color: #808080; font-style: italic;">-- triggered if start and end date are on same weekend</span>
<span style="color: #993333; font-weight: bold;">WHEN</span> dateDiff<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DAY</span><span style="color: #66cc66;">,</span>@firstWeekDayInRange<span style="color: #66cc66;">,</span>@lastWeekDayInRange<span style="color: #66cc66;">&#41;</span> &amp;lt; <span style="color: #cc66cc;">0</span> <span style="color: #993333; font-weight: bold;">THEN</span> <span style="color: #66cc66;">&#40;</span>@answer <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">-- otherwise count the days and substract 2 days per weekend in between dates</span>
<span style="color: #993333; font-weight: bold;">ELSE</span> <span style="color: #66cc66;">&#40;</span>DateDiff<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">DAY</span><span style="color: #66cc66;">,</span> @firstWeekDayInRange<span style="color: #66cc66;">,</span> @lastWeekDayInRange<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> DateDiff<span style="color: #66cc66;">&#40;</span>week<span style="color: #66cc66;">,</span> @firstWeekDayInRange<span style="color: #66cc66;">,</span> @lastWeekDayInRange<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">*</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">END</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">RETURN</span> @answer
<span style="color: #993333; font-weight: bold;">END</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- Call created function</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> dbo<span style="color: #66cc66;">.</span>dateDiffWeekdays<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'6/1/2009'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'6/13/2009'</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2009/06/calculating-number-of-weekdays-between-two-dates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Palm Pre: Only Sync Google &#8220;My Contacts&#8221;</title>
		<link>http://www.aaronterry.com/2009/06/palm-pre-clean-contacts-workaround/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.aaronterry.com/2009/06/palm-pre-clean-contacts-workaround/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 23:03:24 +0000</pubDate>
		<dc:creator>acterry</dc:creator>
				<category><![CDATA[Palm Pre]]></category>

		<guid isPermaLink="false">http://www.aaronterry.com/?p=3</guid>
		<description><![CDATA[Palm Pre Syncing with GMail pulls in records from "All Contacts" instead of "My Contacts." The result for heavy GMail users is a contact record for virtually everyone you have ever emailed.]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Notice:  This is no longer necessary</span></strong></p>
<p><span style="background-color: #00ffff;">This process described below is no longer necessary. </span><a href="http://www.aaronterry.com/2009/11/webos-1-3-1-update-fixes-google-my-contacts-syncing-issue/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><span style="background-color: #00ffff;">As of Web OS 1.3.1 (released mid-November 2009), WebOS devices automatically limit Google contact syncing to records in  &#8221;My Contacts&#8221;.</span></a><span style="background-color: #00ffff;"> I have stopped using the method below, but I will leave this blog entry online for historical purposes.</span></p>
<p><strong><span style="text-decoration: underline;">Original Post:</span></strong></p>
<p>As most early adopters of the Palm Pre know, Synergy with GMail pulls in records from &#8220;All Contacts&#8221; instead of &#8220;My Contacts.&#8221; The result for heavy GMail users is a contact record for virtually everyone you have ever emailed.</p>
<p>After about an hour of messing around, I was finally able to figure out how to get email and clean contacts from my GMail account.</p>
<p><span style="color: red;">If anyone is interested in setting this up on their phone, please follow the directions closely. There is a reason for every step. There are a few places that you can get tripped up.</span></p>
<p><strong>Theory:</strong> Use Synergy with Nuevasync&#8217;s Exchange server emulation to sync Contacts and Synergy with setup GMail in the Pre for email and calendar.</p>
<p><strong>End Results:</strong> Exchange Server Profile on Pre syncing via Nuevasync Google for Contacts and Calendar. Pre getting email directly from GMail and a useless Exchange email account that can&#8217;t be deleted. (I suppose everything can&#8217;t be perfect.)</p>
<p><span id="more-3"></span><br />
<strong><span style="color: red;">References:</span></strong></p>
<p>Palm Pre Manual: <a style="color: #324a1a; text-decoration: underline;" href="http://www.scribd.com/doc/15851822/SG-Pre-UserGuide" target="_blank">Pre User Guide</a><br />
page 144 &#8211; Stop Sync of Contacts with an Online Account<br />
page 144 &#8211; Connect to an online calendar through the Palm Synergy feature<br />
page 155 &#8211; Stop Sync of Calendar With an Online Account</p>
<p><strong>Requirements:</strong></p>
<ul>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">Pre updated to 1.0.2 (may not be required &#8212; but it made the error messages in my trial and error process informative)</li>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">GMail account (of course)</li>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">Free nuevasync.com account (let&#8217;s you use Active Sync to sync phone with GMail, Google Calendar, and Plaxo) Go set one up after reading the note below.</li>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">Verify that you preferences on nuevasync.com are setup to give it access to your GMail and Google Calendar account. Pretty straightforward setup.</li>
</ul>
<p><span style="color: red;">Important Notes:</span></p>
<ul>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">In order to get around a Pre Limitation/Safeguard, the email address on your NuevaSync account<span style="color: red;">MUST</span> not match your GMail address. Since you cannot change your email address, I had to setup a new NuevaSync account.</li>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;"><span style="color: red;">Workaround Tip:</span> Most people don&#8217;t know that GMail disregards periods in your GMail email address. If you email address is <a style="color: #324a1a; text-decoration: underline;" href="mailto:username@gmail.com#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">username@gmail.com</a>, then mail sent to <a style="color: #324a1a; text-decoration: underline;" href="mailto:user.name@gmail.com#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">user.name@gmail.com</a> also gets delivered to your account. Give it a try with your own address if you like. Knowing this, I created my new Nuevasync account and just put a period in my normal Gmail email address. Before doing that I tried, <a style="color: #324a1a; text-decoration: underline;" href="mailto:myusername@googlemail.com#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">myusername@googlemail.com</a> &#8230; but the Pre knows that gmail.com and googlemail.com are the same thing.</li>
<li style="font: normal normal normal 10pt/normal verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">I&#8217;m not sure if the tip above works with Google Apps accounts.</li>
</ul>
<p>Steps: I don&#8217;t think that the order really matters. But I&#8217;m going to assume that most of you have your GMail account already setup. So I&#8217;ll make that step one.</p>
<p><span style="color: red;"><strong>Step 1:</strong></span> If not already done, setup your Google account on your Pre. Doesn&#8217;t matter if you add it from the email, contacts, or calendar app.</p>
<p><strong><span style="color: red;">Step 2:</span></strong> Go to preferences under the contacts app. Open the Google account and press &#8220;Remove Account&#8221; &#8230;. don&#8217;t be scared &#8230; it only removes it from the contacts app. It will not affect your mail settings for Google. Refer to page 144 of the User&#8217;s Guide for verification. Once you hit &#8220;Remove&#8221; you&#8217;ll be taken back to the preference screen. The Google account will continue to be shown for a couple of minutes while the Pre removes those contacts from your phone.</p>
<p><strong><span style="color: red;">Step 3:</span></strong> From the preferences panel of the Contacts App, choose &#8220;Add an account.&#8221; Choose Exchange Server as the type. When you are prompted for your email address and password, choose &#8220;Manual Setup&#8221; from the menu in the upper left-hand corner.</p>
<p>Use these settings:</p>
<p><strong>Email Address:</strong> The email address on your NuevaSync account. <em>Remember, this must not exactly match your GMail account. If it does, you will get an error saying there is already an account for that email address on the phone.</em></p>
<p><strong>Incoming Mail Server:</strong> <a style="color: #324a1a; text-decoration: underline;" href="https://www.nuevasync.com/" target="_blank">https://www.nuevasync.com</a><br />
Domain: LEAVE BLANK <em>(this differs from the nuevasync instructions for Windows Mobile)</em></p>
<p><strong>Username:</strong> Your Nuevasync Username<br />
<strong>Password:</strong> Your Nuevasync Password</p>
<p>Once that is all entered &#8230;. press Sign in and cross your fingers. If it says that your username/password do not match &#8230; make sure that you left the domain box empty and verify your username/password.</p>
<p>If you get some other kind of syncing problem. Click the troubleshooting link from within your account on nuevasync.com. There is a link within it that will show you the syncing errors with your account. Make sure that you have authorized Nuevasync to access your Google account.</p>
<p><span style="color: red;"><strong>Step 5:</strong></span> Go to preferences from within the CALENDAR app and remove the Google Calendar account.</p>
<p>Unfortunately, you cannot remove the Exchange account. Unlike other account types, removing an Exchange Account removes it from Calendar, Contacts, and Mail.</p>
<p>For this same reason, you can&#8217;t delete the Exchange account from within the mail app. I just removed it&#8217;s Inbox as a favorite and sorted my accounts so that mail profile was at the bottom.</p>
<p>IMO, small price to pay to not have an extra 1000 trash contacts from GMail. Maybe a future update will allow us to define what the Exchange account should since with.</p>
<h3><strong>Update on 7/20/2008: Does this work for you?</strong></h3>
<ul>
<li>If so, leave a comment and let me know.  I&#8217;d like to think that people find this useful, but I&#8217;m not sure.</li>
<li>If not, check out my troubleshooting post &#8211; <a href="http://www.aaronterry.com/2009/07/palm-pre-troubleshooting-nuevasync-google-contacts/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">http://www.aaronterry.com/2009/07/palm-pre-troubleshooting-nuevasync-google-contacts/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronterry.com/2009/06/palm-pre-clean-contacts-workaround/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

