<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Adamism</title>
	
	<link>http://adamism.com</link>
	<description>Random thoughts</description>
	<lastBuildDate>Mon, 07 Jun 2010 15:58:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Adamism" /><feedburner:info uri="adamism" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Ideas</title>
		<link>http://adamism.com/2010/06/ideas/</link>
		<comments>http://adamism.com/2010/06/ideas/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 15:58:37 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[ideas]]></category>

		<guid isPermaLink="false">http://adamism.com/?p=67</guid>
		<description><![CDATA[I haven&#8217;t touched this blog in a while.. which is probably due to my love/hate with blogging.
I used to share business/application ideas privately with my business partner Jason through email. We would send emails to one another with a subject line like &#8220;BIG IDEA&#8221; and the body would be a short 1-2 paragraph description of [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t touched this blog in a while.. which is probably due to my love/hate with blogging.</p>
<p>I used to share business/application ideas privately with my business partner Jason through email. We would send emails to one another with a subject line like &#8220;BIG IDEA&#8221; and the body would be a short 1-2 paragraph description of the idea.</p>
<p>It was always bitter sweet when we&#8217;d see something implemented a year or two later that we had the idea for. &#8220;We thought of that!&#8221;</p>
<p>Anyway, I&#8217;m going to start posting some of my wacky ideas publicly on here. Not many read this.. and I rarely try to implement them anyway&#8230; might as well have a place I can point to that says &#8220;See, I thought of that.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://adamism.com/2010/06/ideas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox does it right?</title>
		<link>http://adamism.com/2009/03/firefox-does-it-right/</link>
		<comments>http://adamism.com/2009/03/firefox-does-it-right/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 17:23:58 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[web applications]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://adamism.com/?p=55</guid>
		<description><![CDATA[I received my vehicle registration renewal last week from the Maryland Vehicle Administration. I&#8217;m not here to complain about the absurd price ($180? Seriously!)&#8230; or standing in line for hours only to be told I need to fill out another form&#8230; At the top of my renewal notice it states clearly: &#8220;New Option &#8211; RENEW [...]]]></description>
			<content:encoded><![CDATA[<p>I received my vehicle registration renewal last week from the Maryland Vehicle Administration. I&#8217;m not here to complain about the absurd price ($180? Seriously!)&#8230; or standing in line for hours only to be told I need to fill out another form&#8230; At the top of my renewal notice it states clearly: &#8220;New Option &#8211; RENEW ONLINE at <a href="http://www.marylandmva.com" target="_blank">WWW.MARYLANDMVA.COM</a>&#8221;</p>
<p>First of all, there&#8217;s nothing new about MarylandMVA.com&#8217;s <a href="https://secure.marylandmva.com/eMVAServices/VRR/dept.asp" target="_blank">registration renewal</a>. I&#8217;ve been using it for years. The look and feel is ancient, but it gets the job done. What I came across today really drove me nuts.</p>
<p>The first step of the renewal process asks you to input your 8 digit vehicle registration number. I get 4 digits in and accidentally mistype. I hit the backspace key, nothing happens. I hit another number&#8230; it gets added to my input. Backspace, nothing happens.</p>
<p>Knowing a little about web applications I decided to dig in to see what was going on. The developers of this page wrote a validation function for the registration input:</p>
<p><code>
<pre>
function validateTitle(field, e) {
	var strCheck = '0123456789ABCDEFGHIJKLMNOPQRSTUVWZXYZabcdefghijklmnopqrstuvwxyz';
	var whichCode = (window.Event) ? e.which : e.keyCode;

	if (whichCode == 13) return true;  // Enter
	key = String.fromCharCode(whichCode);  // Get key value from key code
	//alert(strCheck.indexOf(key));
	if (strCheck.indexOf(key) == -1) return false;  // Not a valid key
}
</pre>
<p></code><br />
This function is called each time you press a key on the keyboard while typing in your registration number. It&#8217;s a common approach to form validation. The basics are: you hit a key, if it&#8217;s the Enter Key, a number or a letter, the character is permitted to be added to the form input. Anything else, the keystroke is denied.</p>
<p>To be fair, there was a warning on the main page that recommended using Internet Explorer. I tried this form in Internet Explorer and the backspace key behaves correctly. My immediate thought was &#8220;What about Mac users?&#8221; To my surprise, Safari also allows you to backspace without any problem!</p>
<p>The code above should specifically reject any key other than enter, a number, or A-Z. It appears that Safari&#8217;s engine Webkit <a href="https://lists.webkit.org/pipermail/webkit-dev/2007-December/002992.html" target="_blank">was changed in 2007 to match Internet Explorer</a> &#8212; the Backspace key does not trigger a &#8220;keypress&#8221; event. Firefox does fire a keypress for the backspace key and will therefore prevent you from correcting your mistake on the MVA form.</p>
<p>AFAIK, there&#8217;s nothing in the HTML spec that states whether a backspace (or arrow key, etc) should fire the onkeypress event. Should Firefox also try to &#8220;closely match Internet Explorer&#8221; with this behavior? Or should sites like the MarylandMVA be encouraged to update their sites to support modern/common browsers?</p>
]]></content:encoded>
			<wfw:commentRss>http://adamism.com/2009/03/firefox-does-it-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bugs</title>
		<link>http://adamism.com/2008/08/bugs/</link>
		<comments>http://adamism.com/2008/08/bugs/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 19:17:55 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[Tiger Woods]]></category>
		<category><![CDATA[Wordabble]]></category>

		<guid isPermaLink="false">http://adamism.com/?p=46</guid>
		<description><![CDATA[As a software developer I deal with &#8220;bugs&#8221; a lot. If you&#8217;re not familiar with the term: a bug is really anything that happens in your program that differs from how it was designed. In the worst case this is a crash, corruption or loss of data. More often a bug is just something a [...]]]></description>
			<content:encoded><![CDATA[<p>As a software developer I deal with &#8220;bugs&#8221; a lot. If you&#8217;re not familiar with the term: a bug is really anything that happens in your program that differs from how it was designed. In the worst case this is a crash, corruption or loss of data. More often a bug is just something a user can do with your program that falls outside of the &#8220;rules&#8221; you wrote.</p>
<p>I&#8217;ve been dealing with a lot of bugs in Wordabble as we&#8217;ve been beta testing the next release. Even after I published the release (yesterday) a few minor bugs have been discovered. That can be terribly frustrating&#8230; so when I stumbled across this video today it really put a smile on my face. A user of the new Tiger Woods PGA game had discovered a scenario where you could get Tiger to walk on water.</p>
<p><a href="http://www.youtube.com/watch?v=FZ1st1Vw2kY" alt="Youtube Video">http://www.youtube.com/watch?v=FZ1st1Vw2kY</a></p>
<p>EA put together a brilliant response. It&#8217;s not just the &#8220;BLAH, we had a bug, so what&#8221; response that all developers love to give&#8230; they&#8217;ve turned it into a viral marketing spot. They can&#8217;t release an update to the game to fix this kind of thing, so their bug fix is to actually make Tiger Woods walk on water.</p>
<p>Absolutely brilliant!</p>
]]></content:encoded>
			<wfw:commentRss>http://adamism.com/2008/08/bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Movie Posters</title>
		<link>http://adamism.com/2008/08/movie-posters/</link>
		<comments>http://adamism.com/2008/08/movie-posters/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 19:50:42 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[adam]]></category>
		<category><![CDATA[batman]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[posters]]></category>
		<category><![CDATA[the dark knight]]></category>

		<guid isPermaLink="false">http://adamism.com/?p=42</guid>
		<description><![CDATA[Not many people know&#8230; but I have a small collection of signed movie posters. The reason no one knows this is: They&#8217;re not hanging anywhere. I plan on having a nice display setup in my basement when I complete my &#8220;home theater.&#8221;
I came across a poster today that I&#8217;m considering. I wouldn&#8217;t even try to [...]]]></description>
			<content:encoded><![CDATA[<p>Not many people know&#8230; but I have a small collection of signed movie posters. The reason no one knows this is: They&#8217;re not hanging anywhere. I plan on having a nice display setup in my basement when I complete my &#8220;home theater.&#8221;</p>
<p>I came across a poster today that I&#8217;m considering. I wouldn&#8217;t even try to find this signed by the actor &#8230; there&#8217;s no way it would be affordable.</p>
<p><a href="http://adamism.com/wp-content/uploads/2008/08/darkknightposter.jpg"><img class="aligncenter size-medium wp-image-43" title="darkknightposter" src="http://adamism.com/wp-content/uploads/2008/08/darkknightposter-202x300.jpg" alt="" width="202" height="300" /><br />
</a></p>
<p>Isn&#8217;t it creepy? He really played a good Joker. I wonder how many Jokers we&#8217;ll see this year at Halloween. Probably too many.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamism.com/2008/08/movie-posters/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>“It’ll fit in the GTI”</title>
		<link>http://adamism.com/2008/08/itll-fit-in-the-gti/</link>
		<comments>http://adamism.com/2008/08/itll-fit-in-the-gti/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 03:47:06 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[friends]]></category>
		<category><![CDATA[jason]]></category>

		<guid isPermaLink="false">http://adamism.com/?p=25</guid>
		<description><![CDATA[This picture reminded me of an ongoing joke we have with Jason. He has a firm (and not disproven) belief that just about anything will fit/can be hauled in his V-Dub GTI.

That&#8217;s right &#8212; there appears to be a little cow in that hatchback.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This picture reminded me of an ongoing joke we have with Jason. He has a firm (and not disproven) belief that just about anything will fit/can be hauled in his V-Dub GTI.<br />
<a href="http://adamism.com/wp-content/uploads/2008/08/hatchback.jpg"><img class="size-medium wp-image-26 centered" title="hatchback" src="http://adamism.com/wp-content/uploads/2008/08/hatchback-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>That&#8217;s right &#8212; there appears to be a little cow in that hatchback.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamism.com/2008/08/itll-fit-in-the-gti/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
