<?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>spiroville.com &#187; IT</title>
	<atom:link href="http://spiroville.com/blog/category/it/feed/" rel="self" type="application/rss+xml" />
	<link>http://spiroville.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 07 Dec 2009 18:16:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sign of the Dollar</title>
		<link>http://spiroville.com/blog/2007/09/13/sign-of-the-dollar/</link>
		<comments>http://spiroville.com/blog/2007/09/13/sign-of-the-dollar/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 05:02:13 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://spiroville.com/blog/?p=28</guid>
		<description><![CDATA[I was perusing some JavaScript the other day and saw a strange notation that I had never seen before:
$("report")
"What is this?", I thought.  It looks like Perl or PHP -- have I missed some big piece of JavaScript or is this some new feature?  In a word: No.
It turns out that this is [...]]]></description>
			<content:encoded><![CDATA[<p>I was perusing some JavaScript the other day and saw a strange notation that I had never seen before:</p>
<p>$("report")</p>
<p>"What is this?", I thought.  It looks like Perl or PHP -- have I missed some big piece of JavaScript or is this some new feature?  In a word: No.</p>
<p>It turns out that this is actually a function contained in the <a href="http://www.prototypejs.org/" _target="blank">Prototype JavaScript Framework</a>.  The definition of the function is along the lines of:</p>
<div class="igBar"><span id="ljavascript-3"><a href="#" onclick="javascript:showPlainTxt('javascript-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-3">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> elements = <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i = <span style="color: #CC0000;color:#800000;">0</span>; i &lt;arguments.<span style="color: #006600;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> element = arguments<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> element == <span style="color: #3366CC;">'string'</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; element = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span>element<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>arguments.<span style="color: #006600;">length</span> == <span style="color: #CC0000;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> element;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; elements.<span style="color: #006600;">push</span><span style="color: #66cc66;">&#40;</span>element<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> elements;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Functionally, this is nothing special: pass in a name and get back the object.  Or pass in an array and get back an array of objects.  The really cool thing is the simple elegance of this method and how it cleans up your code.</p>
<div class="igBar"><span id="ljavascript-4"><a href="#" onclick="javascript:showPlainTxt('javascript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-4">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// 'Classic' way</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'userName'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = <span style="color: #3366CC;">'admin'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Dollar way</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'userName'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">value</span> = <span style="color: #3366CC;">'admin'</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is so simple, that it seems obvious!  This saves on programmer typing, saves on page size and makes the code more readable.</p>
<p>In a word: beautiful.</p>
]]></content:encoded>
			<wfw:commentRss>http://spiroville.com/blog/2007/09/13/sign-of-the-dollar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Boxing Day Sale Knocks Out Future Shop</title>
		<link>http://spiroville.com/blog/2006/12/25/boxing-day-sale-knocks-out-future-shop/</link>
		<comments>http://spiroville.com/blog/2006/12/25/boxing-day-sale-knocks-out-future-shop/#comments</comments>
		<pubDate>Mon, 25 Dec 2006 06:10:52 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://spiroville.com/blog/?p=18</guid>
		<description><![CDATA[Future Shop (and Best Buy Canada) started Boxing Day early at 8pm EST on December 24th.  http://marketnews.ca/news_detail.asp?nid=2424
It seems that they were totally overwhelmed by the response.  The servers were getting hammered resulting in many errors.  Service Unavailable was a frequent message along with HTTP Server Too Busy as well as random vbscript [...]]]></description>
			<content:encoded><![CDATA[<p align="left">Future Shop (and Best Buy Canada) started Boxing Day early at 8pm EST on December 24th.  <a title="http://marketnews.ca/news_detail.asp?nid=2424" href="http://marketnews.ca/news_detail.asp?nid=2424">http://marketnews.ca/news_detail.asp?nid=2424</a></p>
<p align="left">It seems that they were totally overwhelmed by the response.  The servers were getting hammered resulting in many errors.  Service Unavailable was a frequent message along with HTTP Server Too Busy as well as random vbscript errors (a common message was dictContext.Value is null or not an object).  I also saw some HTTP 403 errors saying that there was a permission problem running a CGI script.  After limping along for a couple of hours where it was almost impossible to pull a page up they tried to free up some processing by turning off some images and turning off the inventory information on the product pages.  Also, they put a limit in so that you would be blocked from using the site; a page with no images would appear instead of the page you want with an invitation to browse the flyer with a message they no new users were allowed on the site at the current time (or words to that effect).  As of 12:45am the site seems to be functioning much better.</p>
<p align="left">BestBuy.ca was also affected but not to the same extent.  I was able to place an order on BestBuy.ca within half and hour whereas futureshop.ca took me almost 3 hours to place an order.  I think they share the same infrastructure and code base so I don't attribute it to any technical differences between the sites.  I think it just shows how much more popular Future Shop is than Best Buy (Future Shop also had better deals <img src='http://spiroville.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p align="left">It will be interesting to see if they do this same promotion this year.  Customers may be put off by the technology problems but the real people that I feel sorry for are the technical staff who must have been fighting fires like crazy trying to get (and keep) the site up and running.  Not how I would want to spend my Christmas Eve.</p>
<p align="left">I'm surprised that Futureshop/Best Buy haven't moved to a .NET implementation yet -- it's been at least 4 years of being in the mainstream.</p>
]]></content:encoded>
			<wfw:commentRss>http://spiroville.com/blog/2006/12/25/boxing-day-sale-knocks-out-future-shop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft &#8220;Office&#8221;</title>
		<link>http://spiroville.com/blog/2006/11/23/microsoft-office/</link>
		<comments>http://spiroville.com/blog/2006/11/23/microsoft-office/#comments</comments>
		<pubDate>Thu, 23 Nov 2006 21:04:23 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Humour]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://spiroville.com/blog/?p=17</guid>
		<description><![CDATA[Ricky Gervais and Stephen Merchant have done two amazingly funny videos for Microsoft where he plays his character from the BBC version of "The Office". These are internal Microsoft training videos about values where he insults virtually everyone. Totally Hilarious!
Part 1: http://video.google.ca/videoplay?docid=9076288729387457440
Part 2: http://video.google.ca/videoplay?docid=959125392868390030
Here is more information on the videos.
http://www.timesonline.co.uk/article/0,,2-2326336,00.html
]]></description>
			<content:encoded><![CDATA[<p>Ricky Gervais and Stephen Merchant have done two amazingly funny videos for Microsoft where he plays his character from the BBC version of "The Office". These are internal Microsoft training videos about values where he insults virtually everyone. Totally Hilarious!</p>
<p align="left">Part 1: <a target="_blank" onclick="return top.js.OpenExtLink(window,event,this)" href="http://video.google.ca/videoplay?docid=9076288729387457440">http://video.google.ca/videoplay?docid=9076288729387457440</a></p>
<p>Part 2: <a target="_blank" onclick="return top.js.OpenExtLink(window,event,this)" href="http://video.google.ca/videoplay?docid=959125392868390030">http://video.google.ca/videoplay?docid=959125392868390030</a></p>
<p>Here is more information on the videos.</p>
<p><a href="http://www.timesonline.co.uk/article/0,,2-2326336,00.html">http://www.timesonline.co.uk/article/0,,2-2326336,00.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spiroville.com/blog/2006/11/23/microsoft-office/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
