<?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>Testing Grounds</title>
	<atom:link href="http://rezio.com/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://rezio.com</link>
	<description>I wonder what would happen if ...</description>
	<lastBuildDate>Sat, 03 Mar 2012 20:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apple woes</title>
		<link>http://rezio.com/?p=118&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apple-woes</link>
		<comments>http://rezio.com/?p=118#comments</comments>
		<pubDate>Wed, 19 Jan 2011 11:48:01 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=118</guid>
		<description><![CDATA[I just bought a Mac Mini. I brought it home and connected it to my beloved 23&#8243; Apple Cinema Display monitor. I then tried viewing an HD movie that I bought on iTunes. I got this message: This movie cannot be played because a display that is not authorized to play protected movies is connected. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-medium wp-image-124 aligncenter" title="Mac Mini (2010)" src="http://rezio.com/wp-content/uploads/2011/01/mac_mini_2010-300x250.jpg" alt="Mac Mini (2010)" width="300" height="250" /></p>
<p style="text-align: left;">I just bought a Mac Mini. I brought it home and connected it to my beloved 23&#8243; Apple Cinema Display monitor. I then tried viewing an HD movie that I bought on iTunes. I got this message:</p>
<blockquote>
<p style="text-align: left;"><em>This movie cannot be played because a display that is not authorized to play protected movies is connected. Try disconnecting any displays that are not HDCP authorized.</em></p>
</blockquote>
<p style="text-align: left;">It turns out that Apple has implemented a security protocol that restricts the type of device upon when commercial video can be displayed. My monitor is six or seven years old, so it doesn&#8217;t support this protocol, so I&#8217;m out of luck. The alternative is to buy a brand new monitor, which I have no desire to do.</p>
<p style="text-align: left;">Worse yet, the message implies that even if I did buy a new monitor, I&#8217;d have to stop using the old one entirely. The video won&#8217;t display as long as there are any non-HDCP devices attached, so I couldn&#8217;t even use my old monitor in a dual monitor configuration.</p>
<p style="text-align: left;">This is bullshit. Especially considering I can play iTunes content on the same monitor just fine using Windows.</p>
<p style="text-align: left;">Luckily for me, I didn&#8217;t buy the Mini to watch HD movies on my computer, but on my TV via HDMI, which works perfectly. But still, I find it frustrating that I actually lost iTunes support by buying a Mac.</p>
<p style="text-align: left;">So, if you&#8217;re planning to use an existing monitor with a Mac Mini, you&#8217;ve been warned.</p>
<p style="text-align: left;">Other than that, the Mini is a sweet little machine. It&#8217;s incredibly quiet, and works great hooked up to an HD TV. Plus you can control iTunes with the Remote iPhone app.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=118</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2.7 million dots</title>
		<link>http://rezio.com/?p=101&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=27-million-dots</link>
		<comments>http://rezio.com/?p=101#comments</comments>
		<pubDate>Sun, 22 Nov 2009 20:23:33 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[DB]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Pov-ray]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=101</guid>
		<description><![CDATA[Find raw data for 2.7 million cities. Import it into MySql. Generate Pov-ray data to render each city as a tiny red sphere on a large black sphere.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://rezio.net/pov/eurasia_hcity.bmp" target="_blank" rel="lightbox[dots]"><img class="aligncenter" src="http://rezio.net/pov/eurasia_hcity_small.bmp" alt="" width="320" height="200" /></a></p>
<ol>
<li>Find <a href="http://www.maxmind.com/app/worldcities">raw data for 2.7 million cities</a>.</li>
<li>Import it into MySql.</li>
<li>Generate <a href="http://www.povray.org/">Pov-ray</a> data to render each city as a tiny red sphere on a large black sphere.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=101</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LEGO past and LEGO present</title>
		<link>http://rezio.com/?p=54&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=lego</link>
		<comments>http://rezio.com/?p=54#comments</comments>
		<pubDate>Sun, 01 Feb 2009 20:22:41 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[toys]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=54</guid>
		<description><![CDATA[I can&#8217;t remember when I first saw a LEGO brick.  There was a LEGO set at my grandmother&#8217;s house, and as far as I knew, it had always been there. It provided countless hours of entertainment. I built things, and then destroyed them, and then did it again. The disassembly was usually aided by a crash into [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://gallery.rezio.net/images/micro/DSC_4305.jpg" alt="LEGO" width="240" height="160" align="center" /></p>
<p>I can&#8217;t remember when I first saw a LEGO brick.  There was a LEGO set at my grandmother&#8217;s house, and as far as I knew, it had always been there. It provided countless hours of entertainment. I built things, and then destroyed them, and then did it again. The disassembly was usually aided by a crash into a wall or a tumble down a set of stairs.</p>
<p>Then, when I was eleven, I got an Expert Builder LEGO set for Christmas (a line that later became the Technic line.) And that was an epiphany. It was the <a href="http://www.peeron.com/inv/sets/858-1">858-1: Auto Engines</a> set, and, despite the fact that it had square pistons, it was both educational and fun. That prompted me to spend my carefully saved allowance on another set, the <a href="http://www.peeron.com/inv/sets/8848-1">8848-1: Power Truck</a>. I loved these two sets. So much so that my dad sat me down and told me that he and my mother were worried about me, and that from then on I could only build one car a day.</p>
<p>When I left for college, I gave my LEGO sets to my youngest brother, imagining him having as much fun with them as I did. He didn&#8217;t, apparently. They&#8217;d been thrown away or given to Salvation Army the next time I inquired about them. I wish I still had them.</p>
<p>I guess I&#8217;m still a kid at heart, because I&#8217;ve bought a number of sets for myself throughout the years, including the fantastic <a href="http://guide.lugnet.com/set/8448">8448: Super Car</a> set, which includes a working transmission and fully independent suspension, and the <a href="http://guide.lugnet.com/set/8458">8458: Silver Champion</a> set. And so it&#8217;s a bit poetic that I&#8217;d wind up living in Denmark, where LEGO was invented.</p>
<p>In September, after the wedding, we went to Legoland, which is only about an hour from where we were staying. We had a really nice day, and I bought a new set (<a href="http://shop.lego.com/Product/?p=8285">8285: Tow Truck</a>), figuring it would be fun to put it together with my brothers and my nephew. I was right &#8211; we had fun &#8211; but I noticed that the pieces didn&#8217;t seem the same. They felt lighter, sharper, and they just seemed brittle.</p>
<p>For many years now, LEGO has been having a hard time. It&#8217;s gone from being a hugely successful international company &#8212; a symbol of education and innovation, to being another struggling toy company, trying to catch the attention of kids that are awash in video games and the Internet. To these kids, a LEGO Technic set must seem pretty boring.</p>
<p>As a result, LEGO has had to cut back on the engineering-heavy, specialized lines like Technic, and focus more on film franchise, fantasty sets like their Star Wars line. They have also out-sourced the building of the pieces, and apparently, sacrificed quality along the way.</p>
<p>We broke a few pieces when we assembled the first plan. I&#8217;d never seen that happen before &#8211; pieces breaking just because of assembly. But I figured it was my brothers or nephew getting impatient and forcing the pieces. But later, on my own, I put together the set&#8217;s secondary plan, and when I took it apart I had a total of seven broken pieces.</p>
<p>To be fair, they were all <a href="http://www.peeron.com/inv/parts/32054">the same part</a>. Perhaps it is an isolated flaw. But, after a lifetime of playing with LEGO, it&#8217;s really disappointing to see broken pieces. When I think back to all of the abuse I subjected LEGO pieces to as a kid, it&#8217;s quite clear that&#8230; well, they don&#8217;t build then like the used to.</p>
<p>Nevertheless, my nephew&#8217;s apparent interest in LEGO encouraged me, so I gave him one of my sets. I hope he gets a fraction of the fun that I got. After all, he&#8217;s twelve, and that&#8217;s right about the age I was when I was the most focused on LEGO.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VAIO: A Love Letter</title>
		<link>http://rezio.com/?p=26&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vaio-a-love-letter</link>
		<comments>http://rezio.com/?p=26#comments</comments>
		<pubDate>Thu, 08 Jan 2009 03:37:05 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=26</guid>
		<description><![CDATA[During my Christmas trip to the US, I bought a new Sony VAIO. This is my second VAIO. The first was a fantastic little z505 that I used for almost ten years. It was a 386 with 256mb of RAM, so it way very much showing its age, but it was a fine machine to [...]]]></description>
			<content:encoded><![CDATA[<p>During my Christmas trip to the US, I bought a new Sony VAIO. This is my second VAIO. The first was a fantastic little z505 that I used for almost ten years. It was a 386 with 256mb of RAM, so it way very much showing its age, but it was a fine machine to keep by the couch for e-mail and surfing.</p>
<p style="text-align: center;"><a title="A thing of beauty" rel="lightbox[vaio]" href="http://rezio.com/wp-content/uploads/2009/01/vaio_11.jpg"><img class="aligncenter" title="A thing of beauty" src="http://rezio.com/wp-content/uploads/2009/01/vaio_11-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>The two machines are comparable in terms of size and design, but that&#8217;s about where the similarities end. This one runs Vista with a performance index of 4.7. It has a 3.2GHz dual core CPU, 3GB of RAM, and 320GB of HD space. It feels just as fast as the two killer desktops in my life. I can compress video and don&#8217;t even hear the cooling fan speed up. It has a real-world battery life of four or five hours, whereas the old one could do an hour even when it was brand-new, and for most of it&#8217;s life the battery life was literally about twenty seconds. Plus this one was half the price of the old one. Can&#8217;t argue with that.</p>
<p style="text-align: center;"><a title="And it was Apple that copied this keyboard from Sony!" rel="lightbox[vaio]" href="http://rezio.com/wp-content/uploads/2009/01/vaio_22.jpg"><img class="size-thumbnail wp-image-33 aligncenter" title="Even the power button is pretty" src="http://rezio.com/wp-content/uploads/2009/01/vaio_22-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>The old VAIO was by far the most stable PC I&#8217;ve ever owned. Even after ten years it was more reliable and predicable than any desktop I&#8217;ve ever used. It&#8217;s too soon to say if this one will be just as stable, but so far so good.</p>
<p>I don&#8217;t know if I&#8217;ll still be using this one ten years from now, but I&#8217;m certainly going to try.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=26</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google gets it</title>
		<link>http://rezio.com/?p=23&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-gets-it</link>
		<comments>http://rezio.com/?p=23#comments</comments>
		<pubDate>Fri, 05 Sep 2008 09:46:03 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[biz]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=23</guid>
		<description><![CDATA[It&#8217;s becoming more and more clear that Google understands the importance of innovation and optimization much better than other companies, and much better than Microsoft in particular. Innovation is a term that is overused, but it does not and should not be used to mean clobbering a truly innovative idea with a copy of it [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s becoming more and more clear that Google understands the importance of innovation and optimization much better than other companies, and much better than Microsoft in particular.</p>
<p>Innovation is a term that is overused, but it does not and should not be used to mean clobbering a truly innovative idea with a copy of it using sheer marketing muscle. Google is innovating in a lot of areas, to say nothing about their core business, web searches.</p>
<p>Optimization is something that sounds silly if you put in on a feature list, but the cumulative effect of a snappy application vs. one that slogs along must not be underestimated. Microsoft won the browser war with Netscape by producing a faster browser, but in other areas thay don&#8217;t seem to have learned that lesson.</p>
<p>Innovation and optimization are apparently very high priorities for Google. So much so that their web sites don&#8217;t feel the same as other web sites. Sometimes their pages load up so fast that they seem to be cached locally.</p>
<p>Same with <a href="http://picasa.google.com/download/thanks.html">Picassa</a>, the fantastic image management system that Google acquired. (If you don&#8217;t know it, you absolutely must change that &#8212; it&#8217;s free so there&#8217;s nothing to lose.) Picassa&#8217;s interface makes is both innovative and startlingly snappy. You start pushing images around and trying things just for the pleasure of using the application. That&#8217;s something Microsoft simply doesn&#8217;t inspire.</p>
<p>Google is also generating a lot of good will by giving development tools away. I&#8217;ve long felt that Microsoft would be wise to give Visual Studio away &#8212; they only stand to profit by making it easy for developers to make Microsoft platforms more attractive. But instead they gouge developers for the opportunity to develop for their platforms. (<a href="http://msdn.microsoft.com/en-us/subscriptions/bb841434.aspx">You&#8217;ll pay</a> $2,500 for Visual Studio Professional with MSDN Premium, and over $10,000 for Team System Suite.)</p>
<p><a href="http://code.google.com/apis/chart/">Google Charts</a> is a developer tool that is both innovative and fast. It&#8217;s innovative because it&#8217;s not implemented as a class library or even a web service. It&#8217;s implemented as a HTTP server. You just pass the chart data as an HTTP request, and Google returns a chart in image form. It&#8217;s free, it&#8217;s innovative, and it&#8217;s fast. So fast that it often leaves the impression that Google somehow knew what chart you were going to request and had one waiting for you. </p>
<p><a href="http://gallery.rezio.net/Status.aspx">Here</a> is my first usage of Google Charts.</p>
<p>As nifty as it is to send chart data as HTTP arguments, it&#8217;s cumbersome in practice, but that&#8217;s ok because someone (A guy named Lewis Vance in this case) wrote a nice set of C# classes to do that. You can get his library at <a href="http://code.google.com/p/googlechartsharp/">Google Code</a>, where Google shares such contributions. Another smart move.</p>
<p>And by the way, if you&#8217;ve been in a cave and haven&#8217;t tried <a href="http://www.google.com/chrome">Google Chrome</a>, do so now. It&#8217;s&#8230; that&#8217;s right &#8212; innovative and optimized.</p>
<p>I&#8217;m not saying that Google is perfect, but they are a refreshing example of how it is possible to do great business without antagonizing customers and developers. I really like .NET and C#, and, and I worked at Microsoft for five years (plus two years before that as a contractor), so I&#8217;m not exactly anti-Microsoft. But Google is making them look very bad, and much of it is their fault.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=23</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosting woes and glories</title>
		<link>http://rezio.com/?p=21&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hosting-woes-and-glories</link>
		<comments>http://rezio.com/?p=21#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:30:40 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[hosts]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=21</guid>
		<description><![CDATA[So I moved from the doomed UplinkEarth to ReliableSite.net, which is cheap and impressive. And then, almost immediately, they had the biggest set of downtimes in their history (that&#8217;s what they say, but others tend to verify that). We&#8217;re talking days here. My sites were down for 48 hours, then they came up for maybe 8 [...]]]></description>
			<content:encoded><![CDATA[<p>So I moved from the doomed UplinkEarth to <a href="http://ReliableSite.net">ReliableSite.net</a>, which is cheap and impressive. And then, almost immediately, they had the biggest set of downtimes in their history (that&#8217;s what they say, but others tend to verify that). We&#8217;re talking days here. My sites were down for 48 hours, then they came up for maybe 8 hours, and then went down for another 24.</p>
<p>And it seems like hosting companies have some sort of customer relation retardation, because they didn&#8217;t post anything, or sent out e-mail (to domains they don&#8217;t host) saying, &#8220;Hey, wow, things are really screwed up here &#8212; we&#8217;re working as hard as we can.&#8221; That would, as many customers pointed out, make a big difference. Instead you&#8217;re just left with a dead site, wondering if they is happening just to your site or to everyones.</p>
<p>At any rate, that was a month ago and they seem fine since then.</p>
<p>But in the meanwhile I acquired two Danish domains (.dk). On that my wife-to-be has for her family, and one as the Danish counterpart to my regular sites. So now I have rezio.com, <a href="http://rezio.net">rezio.net</a>, and <a href="http://rezio.dk">rezio.dk</a>.</p>
<p>But Danish domains can only be hosted on approved servers. This is a good example of socialist thinking. Instead of allowing anyone, anywhere, with any kind of intention, rent space with a Danish domain, the hosting outfits have to get approval. Right or wrong, I can&#8217;t host my Danish domains with ReliableSite.</p>
<p>So I found a reasonable Danish hosting service (or &#8220;web hotel&#8221; as they call it.) And so far I&#8217;m quite pleased. The first thing I did was set up something that points to my main site. I used the ASP.NET AdRotator control to randomly display some of my pictures, and clicking always takes you to <a href="http://rezio.net">rezio.net</a>.</p>
<p>That was fine, but for reasons that I don&#8217;t understand my gallery stopped working after ReliableSite had their blackout. So the next thing I did was set up a sub-domain for the gallery. That&#8217;s at <a href="http://gallery.rezio.dk">gallery.rezio.dk</a>.</p>
<p>So for now I guess I&#8217;ll just keep both hosts. It&#8217;s more than I need, but they&#8217;re both cheap &#8212; both less than $100 a year. It&#8217;s worth it to have a comparison anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=21</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;I made it happen when nobody said I could&#8221;</title>
		<link>http://rezio.com/?p=20&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=i-made-it-happen-when-nobody-said-i-could</link>
		<comments>http://rezio.com/?p=20#comments</comments>
		<pubDate>Mon, 19 May 2008 08:41:33 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[biz]]></category>
		<category><![CDATA[hosts]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=20</guid>
		<description><![CDATA[Michael Yablonowitz is the CEO of UplinkEarth, the company that, until recently, I happily used to host this site. Until about six months ago, when service and up-time took a dive. But, in his own words, &#8220;I took ingenuity and penny-pinching to a new level.&#8221; It shouldn&#8217;t surprise anyone then, that support was out-sourced to [...]]]></description>
			<content:encoded><![CDATA[<p>Michael Yablonowitz is the CEO of UplinkEarth, the company that, until recently, I happily used to host this site. Until about six months ago, when service and up-time took a dive. But, <a href="http://www.inc.com/entrepreneur/2006/profile/index.php?yablonowitz161">in his own words</a>, &#8220;I took ingenuity and penny-pinching to a new level.&#8221; It shouldn&#8217;t surprise anyone then, that support was out-sourced to people that don&#8217;t know the system, and eventually the customer base is sold.</p>
<p>Two weeks ago, Mr. Yablonowitz started sending customers e-mail talking about &#8220;platform upgrades&#8221; and &#8220;new features&#8221;. What he was really talking about is selling the customers to another company. The &#8220;upgrade&#8221; was shoddy migration to a new data center with an entirely different (and from what I could tell, quite inferior) platform. They didn&#8217;t even bother to copy e-mail messages over.</p>
<p>This company has given me a lot of trouble over the last five months, and I&#8217;m <a href="http://www.webhostingtalk.com/showthread.php?t=693657">not the only one</a> that&#8217;s unhappy. And that&#8217;s not to mention the happy employees he bragged about. They&#8217;re unemployed now. But after all, firing everyone is the ultimate act of penny-pinching.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=20</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resharper</title>
		<link>http://rezio.com/?p=19&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=resharper</link>
		<comments>http://rezio.com/?p=19#comments</comments>
		<pubDate>Wed, 30 Apr 2008 08:22:49 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VS]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=19</guid>
		<description><![CDATA[I&#8217;ve been using Jetbrains Resharper for seven months now, and continue to find fantastic shortcuts. I can&#8217;t imagine going back to programming without it. It doesn&#8217;t just make things easier, it dramatically increases the likelihood that you&#8217;ll tackle important changes to your code base. Press ALT-INSERT and a window pops up that let&#8217;s you add constructors, properties, or overrides, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.jetbrains.com/resharper/">Jetbrains Resharper</a> for seven months now, and continue to find fantastic shortcuts. I can&#8217;t imagine going back to programming without it. It doesn&#8217;t just make things easier, it dramatically increases the likelihood that you&#8217;ll tackle important changes to your code base. Press ALT-INSERT and a window pops up that let&#8217;s you add constructors, properties, or overrides, each of which gets inserted with the proper signature and access level. That saves a lot of time. Better yet, you can write code that calls methods that don&#8217;t exist and Resharper will put an icon next to the call. Click in it and it offers to implement the method for you &#8212; in the right class, in the right module, and (to the best of it&#8217;s abilities) with the right arguments.</p>
<p>It also lets you jump through the code intuitively. If you&#8217;re looking at a function call, and you wonder, what does that function look like? Press CTRL-B and up comes that function. If you then wonder which other functions, if any, call the function you&#8217;re looking at, press ALT-F7 and a window pops up with every usage in the project.</p>
<p>There&#8217;s a complete list of Resharper shortcuts <a href="http://www.jetbrains.com/resharper/documentation/ReSharper25DefaultKeymap.pdf">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=19</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The virus</title>
		<link>http://rezio.com/?p=18&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-virus</link>
		<comments>http://rezio.com/?p=18#comments</comments>
		<pubDate>Mon, 21 Apr 2008 08:35:25 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=18</guid>
		<description><![CDATA[I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We&#8217;ve created life in our own image.   &#8211; Stephen Hawking]]></description>
			<content:encoded><![CDATA[<p><em>I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We&#8217;ve created life in our own image.<br />
</em>  &#8211; <a href="http://www.quotationspage.com/quote/29857.html"><span style="color: #666666;">Stephen Hawking</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=18</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just for fun, some Javascript</title>
		<link>http://rezio.com/?p=17&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=just-for-fun-some-javascript</link>
		<comments>http://rezio.com/?p=17#comments</comments>
		<pubDate>Wed, 02 Apr 2008 13:12:56 +0000</pubDate>
		<dc:creator>stan</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[JS]]></category>

		<guid isPermaLink="false">http://rezio.com/?p=17</guid>
		<description><![CDATA[I&#8217;ve learned a lot about web programming since taking this job. I knew C# already, but ASP.NET, XML, AJAX, and all that was new. I didn&#8217;t know any Javascript either, nor did I understand what an important role it plays on the web. But that changed this week, when I was given the assignment to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve learned a lot about web programming since taking this job. I knew C# already, but ASP.NET, XML, AJAX, and all that was new. I didn&#8217;t know any Javascript either, nor did I understand what an important role it plays on the web. But that changed this week, when I was given the assignment to use Javascript to make the header cells in a column change color in order to improve the user interface of a large table.</p>
<p>Once I got that working, I threw <a href="http://rezio.net/jsgrid/Grid.aspx" target="_blank">this sample</a> together.</p>
<p>The most important thing I learned is that ASP.NET often auto-generates element IDs, which means that refering to elements by the ID used in the code will fail. The solution is to use the <a href="http://msdn2.microsoft.com/en-us/library/system.web.ui.control.clientid(VS.71).aspx">ClientID</a> property of the element to obtain the &#8220;real&#8221; ID that will be produced in the HTML.</p>
<p>Attaching the script is a two-part process. First, the script to be associated with each table cell is attached using the <a href="http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol.attributes(VS.71).aspx">Attributes</a> property.</p>
<blockquote><p>for (int r = 1; r &lt; table.Rows.Count; r++)<br />
{<br />
    string rowID = table.Rows[r].Cells[0].ClientID;<br />
    for (int c = 1; c &lt; table.Rows[r].Cells.Count; c++)<br />
    {<br />
        string colID = table.Rows[0].Cells[c].ClientID;<br />
        TableCell cell = table.Rows[r].Cells[c];<br />
        string colScript = string.Format(&#8220;handleOver(this,&#8217;{0}&#8217;,'{1}&#8217;);return true;&#8221;, colID, rowID);<br />
        string rowScript = string.Format(&#8220;handleOut(this,&#8217;{0}&#8217;,'{1}&#8217;);return true;&#8221;, colID, rowID);<br />
        cell.Attributes.Add(&#8220;onmouseover&#8221;, colScript);<br />
        cell.Attributes.Add(&#8220;onmouseout&#8221;, rowScript);<br />
    }<br />
}</p></blockquote>
<p>The <strong>onmouseover</strong> and <strong>onmouseout</strong> Javascript events are mapped to script that calls Javascript functions called <strong>handleOver</strong> and <strong>handleOut</strong>. These functions both take a reference to the cell itself (this), and the client ID of both the column and row header cells.</p>
<p>The <strong>handleOver</strong> and <strong>handOut</strong> functions are pretty simple. They just use the IDs to change the header cell background color, and then change the cell background. </p>
<blockquote><p>var origColor;</p>
<p>function handleOver(elem, col, row)<br />
{<br />
    var c = document.getElementById(col);<br />
    origColor = c.bgColor;<br />
    c.bgColor = &#8220;#aaaaaa&#8221;;<br />
    var r = document.getElementById(row);<br />
    r.bgColor = &#8220;#aaaaaa&#8221;;<br />
    elem.bgColor = &#8220;#aaaaaa&#8221;;<br />
}<br />
function handleOut(elem, col, row)<br />
{<br />
    var c = document.getElementById(col);<br />
    c.bgColor = origColor;<br />
    var r = document.getElementById(row);<br />
    r.bgColor = origColor;<br />
    elem.bgColor = origColor;<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://rezio.com/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

