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

<channel>
	<title>Code from James</title>
	<atom:link href="http://www.codefromjames.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.codefromjames.com/wordpress</link>
	<description>Code from me, Fun for you</description>
	<pubDate>Fri, 06 Aug 2010 04:07:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>ToDo Teams now available for use</title>
		<link>http://www.codefromjames.com/wordpress/?p=58</link>
		<comments>http://www.codefromjames.com/wordpress/?p=58#comments</comments>
		<pubDate>Fri, 06 Aug 2010 03:42:19 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Web Programming]]></category>

		<category><![CDATA[productivity]]></category>

		<category><![CDATA[project management]]></category>

		<category><![CDATA[synced todo list]]></category>

		<category><![CDATA[syncronized todo list]]></category>

		<category><![CDATA[task list]]></category>

		<category><![CDATA[task management]]></category>

		<category><![CDATA[team todo list]]></category>

		<category><![CDATA[todo]]></category>

		<category><![CDATA[todo teams]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=58</guid>
		<description><![CDATA[Divide, conquer, and get stuff done. ToDo Teams is a little project I whipped up for a few reasons.

I found that while splitting tasks up with student developers at work, that we were often stepping on each others toes. We needed a quick and easy way to indicate what we were working on so no [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Divide, conquer, and get stuff done</strong>. <a title="ToDo Teams" href="http://www.todoteams.com">ToDo Teams</a> is a little project I whipped up for a few reasons.</p>
<ol>
<li>I found that while splitting tasks up with student developers at work, that we were often stepping on each others toes. We needed a quick and easy way to indicate what we were working on so no one else would be trying to do the same thing.</li>
<li>We needed a centralized place to manage tasks and track things to work on for specific projects.</li>
<li>I wanted to learn CakePHP.</li>
</ol>
<p>ToDo teams is essentially a productivity free-for-all. There&#8217;s no assigning tasks to people or forcing people to work on certain things. There&#8217;s simply a list of things that have to get done, and everyone is given the ability to work towards that goal.</p>
<p>&#8230;at least that&#8217;s how it is now. In the future it could change.</p>
<p>When something on a project changes, other users viewing that project will quickly receive notifications about projects changes through AJAX alerts. This helps to keep everyone up-to-date on the latest project information, and helps keep stale information or concurrency issues from happening.</p>
<div id="attachment_61" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2010/08/todo_screenshot.png"><img class="size-medium wp-image-61" title="ToDo Teams Screenshot" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2010/08/todo_screenshot-300x217.png" alt="ToDo Teams Screenshot" width="300" height="217" /></a><p class="wp-caption-text">ToDo Teams Screenshot</p></div>
<p>ToDo Teams uses OpenID (currently through Google or Yahoo) so that there&#8217;s no extra usernames or passwords to remember. You can be logged in and working in seconds, and there&#8217;s no extra headaches keeping team members from joining your project.</p>
<p>ToDo Teams aims to be as simple as possible with the focus on getting stuff done, not fooling around with complicated project management software. If you think ToDo Teams may be a good fit for you and your team, check it out now.</p>
<p style="text-align: center; font-size:200%;"><a href="http://www.todoteams.com"><strong>Go to ToDo Teams</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=58</wfw:commentRss>
		</item>
		<item>
		<title>Free Contact Management / Roledex Software for Windows</title>
		<link>http://www.codefromjames.com/wordpress/?p=43</link>
		<comments>http://www.codefromjames.com/wordpress/?p=43#comments</comments>
		<pubDate>Wed, 30 Dec 2009 08:51:20 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[contact management]]></category>

		<category><![CDATA[free software]]></category>

		<category><![CDATA[phone book]]></category>

		<category><![CDATA[rolodex software]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=43</guid>
		<description><![CDATA[A few years ago I wrote some contact management / Rolodex software for a friend. I went back to it today and created an installer for it and wanted to release it to the world. Download it now! Interested in the source code? It&#8217;s available on GitHub! http://github.com/jocull/ContactManagement
]]></description>
			<content:encoded><![CDATA[<p>A few years ago I wrote some contact management / Rolodex software for a friend. I went back to it today and created an installer for it and wanted to release it to the world. <a title="Download Contact Management now!" href="http://codefromjames.com/apps/ContactManagement.zip" target="_blank">Download it now!</a> Interested in the source code? It&#8217;s available on GitHub! <a title="Get the source on GitHub!" href="http://github.com/jocull/ContactManagement">http://github.com/jocull/ContactManagement</a></p>
<div id="attachment_45" class="wp-caption aligncenter" style="width: 294px"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_new.png"><img class="size-medium wp-image-45" title="New Contact" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_new-284x300.png" alt="New Contact" width="284" height="300" /></a><p class="wp-caption-text">New Contact</p></div>
<div id="attachment_46" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_main.png"><img class="size-medium wp-image-46" title="Main Interface" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_main-300x154.png" alt="Main Interface" width="300" height="154" /></a><p class="wp-caption-text">Main Interface</p></div>
<div id="attachment_47" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_details.png"><img class="size-medium wp-image-47" title="Detail Sheet" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_details-300x231.png" alt="Detail Sheet" width="300" height="231" /></a><p class="wp-caption-text">Detail Sheet</p></div>
<div id="attachment_48" class="wp-caption aligncenter" style="width: 276px"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_options.png"><img class="size-medium wp-image-48" title="Program Options" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_options.png" alt="Program Options" width="266" height="197" /></a><p class="wp-caption-text">Program Options</p></div>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_alerts.png"><img class="size-medium wp-image-49" title="Birthday and Anniversary Alerts" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/12/ctm_alerts-300x154.png" alt="Birthday and Anniversary Alerts" width="300" height="154" /></a><p class="wp-caption-text">Birthday and Anniversary Alerts</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
		<item>
		<title>Zen Garden Farmer for Plants vs. Zombies</title>
		<link>http://www.codefromjames.com/wordpress/?p=35</link>
		<comments>http://www.codefromjames.com/wordpress/?p=35#comments</comments>
		<pubDate>Wed, 13 May 2009 23:32:39 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[PC Games]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[farm]]></category>

		<category><![CDATA[farmer]]></category>

		<category><![CDATA[plants vs zombies]]></category>

		<category><![CDATA[pvz]]></category>

		<category><![CDATA[zen garden]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=35</guid>
		<description><![CDATA[Plants vs. Zombies is a great game. There&#8217;s lots to do, even after you beat the main game. There&#8217;s new games and puzzles to play, and things to buy. Money actually becomes a large part of the game later on, so having a good way to get money is important.
In my opinion, the Zen Garden [...]]]></description>
			<content:encoded><![CDATA[<p>Plants vs. Zombies is a great game. There&#8217;s lots to do, even after you beat the main game. There&#8217;s new games and puzzles to play, and things to buy. Money actually becomes a large part of the game later on, so having a good way to get money is important.</p>
<p>In my opinion, the Zen Garden is the easiest and most consistent way to get money if you have a decent sized garden. Purchasing Stinky the Snail makes collecting the coins and diamonds easier, but there is one critical problem: he&#8217;s narcoleptic. He&#8217;ll often take a snooze after just a couple minutes of collecting coins, meaning that you have to sit there and wake him up.</p>
<p>&#8220;Not fair!&#8221; I say. What if I wanted to take a nap? Can&#8217;t we take shifts? Apparently not, according to PopCap. So, I decided I needed something that would wake Stinky up, and along the way a few other features snuck in. Ladies and gentlemen, I give you&#8230; Zen Garden Farmer.</p>
<p style="text-align: center;"><img class="aligncenter" title="Zen Garden Farmer" src="http://www.codefromjames.com/files/images/pvz_zen_madness.jpg" alt="" width="484" height="379" /></p>
<p style="text-align: left;">Garden Farmer works for you by taking control of the mouse and doing some of the more tedious tasks of taking care of your Zen Garden. Hopefully this video will help explain things.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/OmOy4vJ7A5A&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/OmOy4vJ7A5A&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: left;">So, feel like trying it out for yourself? Go ahead and grab it then! Interested in the source code? It&#8217;s shared on GitHub! <a title="Get the source on GitHub!" href="http://github.com/jocull/ZenGardenFarmer">http://github.com/jocull/ZenGardenFarmer</a></p>
<p style="text-align: center; font-size:16pt"><a href="http://www.codefromjames.com/apps/GardenFarmer.zip">Download Garden Farmer now</a></p>
<p style="text-align: center;">and/or&#8230;</p>
<p style="text-align: center; font-size:16pt"><a href="http://forums.steampowered.com/forums/showthread.php?t=859435">Join the discussion on the Steam forums</a></p>
<p><strong>Update:</strong> I got bored and decided to add in a Whack-a-Zombie mode. It works for Beghouled Twist too as long as you have matches available. If you run out of matches you can just take over for a second to hit the &#8220;shuffle&#8221; button, then put it back on cruise control. Video here:</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Qq7bHTaK5Gc&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/Qq7bHTaK5Gc&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=35</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;tv2night&#8221; Goes Live</title>
		<link>http://www.codefromjames.com/wordpress/?p=30</link>
		<comments>http://www.codefromjames.com/wordpress/?p=30#comments</comments>
		<pubDate>Sun, 08 Feb 2009 10:08:58 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Programming]]></category>

		<category><![CDATA[tv tonight]]></category>

		<category><![CDATA[tv2night]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=30</guid>
		<description><![CDATA[I applied for another Twitter account and created a small CRON job for it on my own server. Now you can follow Television Tonight and get tweets about one hour before your favorite shows come on the air.
Tweets (updates) are limited to 140 characters. In the space we have most of the important information. The [...]]]></description>
			<content:encoded><![CDATA[<p>I applied for another Twitter account and created a small CRON job for it on my own server. Now you can follow Television Tonight and get tweets about one hour before your favorite shows come on the air.</p>
<p>Tweets (updates) are limited to 140 characters. In the space we have most of the important information. The format is concise, but useful:</p>
<p>[Show Name] s[Season #]e[Episode #] is starting on [Show's Network] in [minutes 'til air time] min! ([Time show starts] EST) Summary: [TinyURL to Episode Summary]</p>
<p>The tweet is measured before and after adding the summary. If the tweet is too long, the word &#8220;Summary: &#8221; will be cut. If the entire link won&#8217;t fit it isn&#8217;t included at all, because having half of a URL doesn&#8217;t make much sense.</p>
<p>Interested in following? Check it out now: <a href="http://twitter.com/tv2night" target="_blank">http://twitter.com/tv2night</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=30</wfw:commentRss>
		</item>
		<item>
		<title>Dawn of War 2 Multiplayer Beta Thoughts</title>
		<link>http://www.codefromjames.com/wordpress/?p=23</link>
		<comments>http://www.codefromjames.com/wordpress/?p=23#comments</comments>
		<pubDate>Wed, 04 Feb 2009 11:54:55 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[PC Games]]></category>

		<category><![CDATA[dawn of war 2]]></category>

		<category><![CDATA[dow 2]]></category>

		<category><![CDATA[dow2]]></category>

		<category><![CDATA[eldar]]></category>

		<category><![CDATA[multiplayer beta]]></category>

		<category><![CDATA[orcs]]></category>

		<category><![CDATA[requisition]]></category>

		<category><![CDATA[space marines]]></category>

		<category><![CDATA[tyranids]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=23</guid>
		<description><![CDATA[
The Requisition is broken.
The Requisition is really broken.
Seriously, please fix the requisition. The game is great, and deserves it.

This game reflects Company of Heroes pretty closely. Much of the game is based on taking cover, positioning, suppressing, and flanking the enemy. Especially suppression is a huge issue to deal with. Suppressed squads move slowly, take [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>The Requisition is broken.</li>
<li>The Requisition is really broken.</li>
<li>Seriously, please fix the requisition. The game is great, and deserves it.</li>
</ol>
<p>This game reflects Company of Heroes pretty closely. Much of the game is based on taking cover, positioning, suppressing, and flanking the enemy. Especially suppression is a huge issue to deal with. Suppressed squads move slowly, take more damage, and are basically just dead. The only way to get out of these suppression effects is to get out of fire, die, or run like hell. The game has a &#8220;Flee&#8221; ability on most units that make them run away to the nearest reinforcement point. It breaks suppression effects and gives a little defensive bonus, I think. Your units are likely to live while fleeing, but they can get blocked off or pulled back by certain abilities.</p>
<p>Unfortunately, right now a big part of the game is also running the hell away from anything that could possibly kill your units. Because the requisition is so broken, any loss of units means minutes waiting to rebuild. In this game every second counts, and a minute feels like an eternity. I never see my requisition-per-minute counter passing 350, and it usually sits at about 200. One squad of Tactical Space marines costs 500. Are you seeing the issue here? If your marines die, you&#8217;re probably going to have to wait two and a half minutes for the requisition to accumulate. It&#8217;s rare that you&#8217;ll have any left over or stockpiled, because really you should be spending it all on more units, upgrades, an enhancements.</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/02/wtf_req.jpg"><img class="alignnone size-medium wp-image-25" title="wtf_req" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/02/wtf_req-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>That little math problem aside, all of the Space Marines units are just plain too expensive. I often find myself stuck with two scout marine squads wondering how on earth I&#8217;m going to afford any other units, let alone upgrade my base or buy higher tier units. All of the other races have much cheaper base units. Granted, they are weaker, but at least you can afford them. Basic infantry (ranged and melee) squads in the other races run at about 270 requisition</p>
<p>The Eldar even get a 4-man suppression turret for 270 requisition. Based on this, I hereby declare the Eldar over-powered. No infantry squad can afford to be suppressed, and if you can cover lots of angles with the suppression effects, the other team is pretty much screwed. Punching through a line of fire is nearly impossible. You&#8217;ll either have to jump over the suppressing squad, tunnel under them, flank them, or somehow just avoid the fire. It almost never works, and you&#8217;re pretty much dead.</p>
<p>Similar suppression effects for the space marines cost 340 requisition for a devestator squad that, in my opinion, isn&#8217;t even as good as the Eldar&#8217;s. Tyranids must pay 400 requisition for a warrior squad, and then upgrade them for another 50 or so to get suppression. Orcs can&#8217;t even buy a suppression squad until they hit the 2nd Tech Tier. The best they can do is buy a shoota-boyz squad, and upgrade them with bigga-gunz. In my opinion, this doesn&#8217;t count. It&#8217;s an ability with a cooldown, and often the suppression doesn&#8217;t work or wears off too quickly. The cost to get that would be about 270 requisition plus another 50 or so for bigga-gunz.</p>
<p>The game seems to have a few parallels to Blizzard&#8217;s Warcraft III, though they play them down so it doesn&#8217;t seem that way. First off, you select a &#8220;Commander&#8221; to lead your army. Each Commander sort of plays a different role. Offense, Defense, Support, Tunneler, Assassin, etc. The Commander (and all other squads) level up, and get stronger (yes, stronger) as they kill units. To me, this almost doesn&#8217;t make sense. If you are on the wrong end of the stick getting your ass handed to you, do you really want the other guy just gaining an even bigger upper hand? While he&#8217;s stockpiling requisition and you are getting little to none?</p>
<p>Also, a large part of Warcraft III was the &#8220;Upkeep&#8221;. What happened with upkeep was that when your army got large, you only got a portion of any resources you harvested. It isn&#8217;t ever mentioned in this game, but if you pay attention you will notice that you get a lot less requisition-per-minute when you have a standing army than when you have next to nothing. Compare the screenshot below with the screenshot above:</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/02/wtf_req2.jpg"><img class="alignnone size-medium wp-image-26" title="wtf_req2" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/02/wtf_req2-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p style="text-align: left;">As a final thought, it also doesn&#8217;t seem to matter how hard you work to take requisition points. In the end it hardly even matters. I laid the smack down on the highest level computer player and took every point possible as quickly as I could. This actually HURT me, and I acquired less requisition than he did in the course of the game. Now how the hell did that happen?</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/02/wtf_req3.jpg"><img class="alignnone size-medium wp-image-27" title="wtf_req3" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2009/02/wtf_req3-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p style="text-align: center;"><strong>This is warfare, not welfare!<br />
</strong></p>
<p style="text-align: left;">It seems like the only strategy that matters is stealing people&#8217;s power. This keeps them from upgrading their headquarters, getting higher tier units, and getting upgrades.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=23</wfw:commentRss>
		</item>
		<item>
		<title>Spore DRM Causes Creature Backlash</title>
		<link>http://www.codefromjames.com/wordpress/?p=16</link>
		<comments>http://www.codefromjames.com/wordpress/?p=16#comments</comments>
		<pubDate>Wed, 17 Sep 2008 03:31:27 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Bad DRM]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[backlash]]></category>

		<category><![CDATA[creature]]></category>

		<category><![CDATA[drm]]></category>

		<category><![CDATA[DRM creatures]]></category>

		<category><![CDATA[spore]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=16</guid>
		<description><![CDATA[The creators of Spore tangled with the internet and got more than they asked for. Users around the world, ticked off about Spore&#8217;s DRM have began creating anti-DRM creatures to voice their opinions.



Read more from the original article.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">The creators of Spore tangled with the internet and got more than they asked for. Users around the world, ticked off about Spore&#8217;s DRM have began creating anti-DRM creatures to voice their opinions.</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/09/sporedrm2_0.gif"><img class="alignnone size-medium wp-image-17" title="Spore DRM" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/09/sporedrm2_0-300x228.gif" alt="" width="300" height="228" /></a></p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/09/sporedrm3.gif"><img src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/09/sporedrm3-300x228.gif" alt="" title="Spore DRM" width="300" height="228" class="alignnone size-medium wp-image-18" /></a></p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/09/sporedrm1.gif"><img src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/09/sporedrm1-300x215.gif" alt="" title="Spore DRM" width="300" height="215" class="alignnone size-medium wp-image-19" /></a></p>
<p style="text-align: left;"><strong>Read more</strong> from the <a href="http://www.gameculture.com/node/759" target="_blank">original article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=16</wfw:commentRss>
		</item>
		<item>
		<title>Easy Text Area Character Counter with Javascript</title>
		<link>http://www.codefromjames.com/wordpress/?p=15</link>
		<comments>http://www.codefromjames.com/wordpress/?p=15#comments</comments>
		<pubDate>Sat, 16 Aug 2008 21:53:24 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Web Programming]]></category>

		<category><![CDATA[character counter]]></category>

		<category><![CDATA[character counting]]></category>

		<category><![CDATA[easy to use]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[limit characters]]></category>

		<category><![CDATA[maxlength]]></category>

		<category><![CDATA[no code required]]></category>

		<category><![CDATA[text area]]></category>

		<category><![CDATA[text box]]></category>

		<category><![CDATA[textarea]]></category>

		<category><![CDATA[web form]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=15</guid>
		<description><![CDATA[Have you ever wanted to add a character counter to a box of text on a web form, but didn&#8217;t want to get your hands dirty with all of the Javascript and programming that&#8217;s necessary to make it work? If you said yes, then start getting excited right now.
Recently, I had the need to create [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to add a character counter to a box of text on a web form, but didn&#8217;t want to get your hands dirty with all of the Javascript and programming that&#8217;s necessary to make it work? If you said yes, then start getting excited right now.</p>
<p>Recently, I had the need to create a character counter for some text areas on a web form. As many people have come to realize, most browsers don&#8217;t enforce a maxlength on text areas. To help handle this, I wrote a little script that finds maxlength attributes on textarea elements. Once they are found it ties the element to a function that will count the characters, and force cut offs if you require it.</p>
<p>Remember, you should <strong>always double check your lengths</strong> on the server side before you send the values off to wherever they may be going. People can disable Javascript on their browsers to get around the limits you set.</p>
<p>Check out the demo below:</p>
<p><fieldset><br />
<legend>Demonstration Form</legend></p>
<form style="text-align:left;" method="post">
<textarea id="getlength" maxlength="300" cols="45" rows="5">Demo Text. This field has a maxlength</textarea> <textarea id="fixlength"  maxlength="300" lengthcut="true" cols="45" rows="5">Demo Text. This field has a maxlength, and the length is enforced.</textarea> <label></label> <textarea id="nolength" cols="45" rows="5">This field has no maxlength</textarea></p>
<input type="submit" value="Submit" />
</form>
<p></fieldset></p>
<p>Using the code is very simple. All you have to do is include the script into your document&#8217;s source, and then attach attributes to your textarea elements like this:</p>
<p><fieldset><br />
<legend>Example Code</legend><br />
<code style="text-align:left;">&lt;textarea name=&quot;fixlength&quot; maxlength=&quot;300&quot; lengthcut=&quot;true&quot;&gt;your text here...&lt;/textarea&gt;</code><br />
</fieldset></p>
<p>You&#8217;ll notice two new attributes not usually placed on textarea elements: <strong>maxlength</strong> and <strong>lengthcut</strong>. The maxlength attribute makes the code display the character counter. If you add lengthcut=&quot;true&quot; the maxlength will be enforced and will not allow users to type past the limit. Check out the full code example below&#8230;</p>
<p><fieldset><br />
<legend>Example Code</legend><br />
<code style="text-align:left;">&lt;form method=&quot;post&quot; action=&quot;YourScriptHere.php&quot;&gt;<br />
&lt;textarea name=&quot;getlength&quot; maxlength=&quot;300&quot; rows=&quot;5&quot; cols=&quot;45&quot;&gt;Demo Text. This field has a maxlength&lt;/textarea&gt;<br />
&lt;textarea name=&quot;fixlength&quot; maxlength=&quot;300&quot; lengthcut=&quot;true&quot; rows=&quot;5&quot; cols=&quot;45&quot;&gt;Demo Text. This field has a maxlength, and the length is enforced.&lt;/textarea&gt;<br />
&lt;label&gt;&lt;/label&gt;<br />
&lt;textarea name=&quot;nolength&quot; rows=&quot;5&quot; cols=&quot;45&quot;&gt;This field has no maxlength.&lt;/textarea&gt;<br />
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;<br />
&lt;/form&gt; &lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;/scripts/charcount.js&quot;&gt;&lt;/script&gt;</code><br />
</fieldset></p>
<p>Adding extra elements with Javascript on the fly after the page loads? No problem! Simply call the <strong>parseCharCounts();</strong> method after your new textarea has been appended to the document. The script to make find then new textarea elements and handle them accordingly.</p>
<p>Ready to use it on your own pages? <strong>Download or copy the source now</strong> for free!</p>
<ul>
<li>
Right click and select to save, or click the link to view or copy the source
</li>
<li>
<strong>DOWNLOAD NOW:</strong> <a href="/scripts/charcount.js" target="_blank">charcount.js</a>
</li>
</ul>
<p><script src="/scripts/charcount.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=15</wfw:commentRss>
		</item>
		<item>
		<title>Arby&#8217;s &#8220;Borrows&#8221; Pick 5 for $5.95 Generator?</title>
		<link>http://www.codefromjames.com/wordpress/?p=10</link>
		<comments>http://www.codefromjames.com/wordpress/?p=10#comments</comments>
		<pubDate>Sat, 09 Aug 2008 00:51:26 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Marketing]]></category>

		<category><![CDATA[Web Programming]]></category>

		<category><![CDATA[arby's]]></category>

		<category><![CDATA[arby's pick 5 menu]]></category>

		<category><![CDATA[borrow]]></category>

		<category><![CDATA[borrowed]]></category>

		<category><![CDATA[combinations]]></category>

		<category><![CDATA[fast food]]></category>

		<category><![CDATA[food]]></category>

		<category><![CDATA[menu]]></category>

		<category><![CDATA[pick 5]]></category>

		<category><![CDATA[pick 5 for 5.95]]></category>

		<category><![CDATA[pick 5 for 5.95 generator]]></category>

		<category><![CDATA[slot machine]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=10</guid>
		<description><![CDATA[A little over a year ago, taking a break from classes and working as a full time intern for my University I didn&#8217;t have a whole lot to do. One day during my lunch at Arby&#8217;s and noticed the paper tray. &#8220;Pick 5 for $5.95! Over 790 possible combinations!&#8221;, it said. Thinking to myself about [...]]]></description>
			<content:encoded><![CDATA[<p>A little over a year ago, taking a break from classes and working as a full time intern for my University I didn&#8217;t have a whole lot to do. One day during my lunch at Arby&#8217;s and noticed the paper tray. &#8220;Pick 5 for $5.95! Over 790 possible combinations!&#8221;, it said. Thinking to myself about the number of combinations, I decided to take up the challenge of randomly generated lunches and developed my own Arby&#8217;s Pick 5 for $5.95 Generator.</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/original_arbys.png"><img class="alignnone size-full wp-image-11" title="The Original Arby\'s Pick 5 for $5.95 Generator" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/original_arbys.png" alt="The Original Arby\'s Pick 5 for $5.95 Generator" width="500" height="139" /></a></p>
<p style="text-align: center; font-size:8pt;">The Original Arby&#8217;s <a href="/arbys/">Pick 5 for $5.95 Generator</a></p>
<p style="text-align: left;">It&#8217;s been sitting happily, hosted around my various sites over the past year. It was even mentioned in a <a href="http://consumerist.com/5021450/grocery-shrink-ray-hits-arbys-in-ok+ks+mo+ar" target="_blank">Consumerist article</a> about Arby&#8217;s recently. It doesn&#8217;t generally get too much traffic, but the usual traffic is about 7 or so people daily. Based on the keywords people use to find the site, many of them are realizing that Arby&#8217;s has clearly failed to post their 5 for $5.95 menu online. Because of this, the generator sits near the top of the results for a variety of &#8220;arby&#8217;s pick 5 menu&#8221; keyword searches. Recently it&#8217;s jumped a little and I just couldn&#8217;t figure out why&#8230; until today. I was browsing the news to see if something had been in there to make it jump, and then I checked the <a href="http://www.arbys.com" target="_blank">Arby&#8217;s website</a> to see what was up. Much to my surprise, I discovered this fancy version of what looks a whole lot like the generator created a year ago!</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/arbys_rip1.png"><img class="alignnone size-full wp-image-12" title="Change the skin..." src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/arbys_rip1.png" alt="Change the skin..." width="500" height="255" /></a></p>
<p style="text-align: center; font-size:8pt;">Change the skin&#8230;</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/arbys_rip2.png"><img class="alignnone size-full wp-image-13" title="...add a little pizzazz..." src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/arbys_rip2.png" alt="...add a little pizzazz..." width="499" height="255" /></a></p>
<p style="text-align: center; font-size:8pt;">&#8230;add a little pizzazz&#8230;</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/arbys_rip3.png"><img class="alignnone size-full wp-image-14" title="...and we get the same result!" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/08/arbys_rip3.png" alt="...and we get the same result!" width="499" height="249" /></a></p>
<p style="text-align: center; font-size:8pt;">&#8230;and we get the same result!</p>
<p>Looks pretty similar, right? In my opinion, the best part is that their generator displays menu items which no longer are available on the pick 5 (can&#8217;t get Mozzarella sticks in my area) and show the price as $5.95 (when it&#8217;s $6.95 most places now). Their generator also has a few of the same quirks as my own, such as giving you multiple drinks or shakes. It also has the same sort of &#8220;slot machine&#8221; feel to it. To me it looks like Arby&#8217;s found an idea they liked and just sort of took it. Seems silly to me that this didn&#8217;t occur to them earlier. What else would you possibly do with a menu combination deal besides make a random generator out of it? Especially one that is entertaining and generally makes people hungry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=10</wfw:commentRss>
		</item>
		<item>
		<title>Because Oil Affects Everyone&#8230;</title>
		<link>http://www.codefromjames.com/wordpress/?p=8</link>
		<comments>http://www.codefromjames.com/wordpress/?p=8#comments</comments>
		<pubDate>Thu, 31 Jul 2008 05:55:19 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Our World]]></category>

		<category><![CDATA[bush]]></category>

		<category><![CDATA[clinton]]></category>

		<category><![CDATA[gas]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[oil]]></category>

		<category><![CDATA[prices]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=8</guid>
		<description><![CDATA[I came across this today and decided to post it. It doesn&#8217;t have anything to do with technology directly, but oil prices affect everyone and this was a painful flashback to how things used to be. I&#8217;m not trying to make any political statements here, I just found it interesting to look back.

]]></description>
			<content:encoded><![CDATA[<p>I came across this today and decided to post it. It doesn&#8217;t have anything to do with technology directly, but oil prices affect everyone and this was a painful flashback to how things used to be. I&#8217;m not trying to make any political statements here, I just found it interesting to look back.</p>
<p style="text-align: center;"><a href="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/07/gaspriceseb1.jpg"><img class="alignnone size-full wp-image-9" title="Gas Prices: Clinton vs Bush" src="http://www.codefromjames.com/wordpress/wp-content/uploads/2008/07/gaspriceseb1.jpg" alt="" width="459" height="587" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
		<item>
		<title>Arby&#8217;s Pick 5 Generator Featured in Consumerist!</title>
		<link>http://www.codefromjames.com/wordpress/?p=7</link>
		<comments>http://www.codefromjames.com/wordpress/?p=7#comments</comments>
		<pubDate>Sat, 19 Jul 2008 05:13:06 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Marketing]]></category>

		<category><![CDATA[arby's]]></category>

		<category><![CDATA[consumerist]]></category>

		<category><![CDATA[generator]]></category>

		<category><![CDATA[pick 5]]></category>

		<guid isPermaLink="false">http://www.codefromjames.com/wordpress/?p=7</guid>
		<description><![CDATA[I was reviewing my site data today, and it turns out that my old Arby&#8217;s Pick 5 for $5.95 Generator on my Purdue web space was hit 65 times on July 2nd, 2008. I thought this was really strange and probably a fluke or hits from robots or something. Much to my surprise, I found [...]]]></description>
			<content:encoded><![CDATA[<p>I was reviewing my site data today, and it turns out that my old <a title="Arby's Pick 5 Generator" href="/arbys/" target="_self">Arby&#8217;s Pick 5 for $5.95 Generator</a> on my Purdue web space was hit 65 times on July 2nd, 2008. I thought this was really strange and probably a fluke or hits from robots or something. Much to my surprise, I found that I was linked a <a title="Grocery Shrink Ray Hits Arby's In OK-KS-MO-AR" href="http://consumerist.com/5021450/grocery-shrink-ray-hits-arbys-in-ok+ks+mo+ar" target="_self">Consumerist article</a> talking about rising prices in some Arby&#8217;s chains! Very cool, since Consumerist is a huge site. Thanks for the link!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codefromjames.com/wordpress/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
	</channel>
</rss>
