<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Random Code</title>
	<atom:link href="http://randomcode.net.nz/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://randomcode.net.nz</link>
	<description>Random code and concepts from yet another .NET developer</description>
	<lastBuildDate>Mon, 20 Sep 2010 02:21:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Why software development metaphors always fail by My week (09/18/2010) &#171; While I Compile</title>
		<link>http://randomcode.net.nz/2009/12/10/why-software-development-metaphors-always-fail/#comment-300</link>
		<dc:creator><![CDATA[My week (09/18/2010) &#171; While I Compile]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 02:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=119#comment-300</guid>
		<description><![CDATA[[...] Why software development metaphors always fail [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Why software development metaphors always fail [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MonoRail, Prototype validation and multiple submit buttons by Tom</title>
		<link>http://randomcode.net.nz/2008/05/02/monorail-prototype-validation-and-multiple-submit-buttons/#comment-296</link>
		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Wed, 09 Jun 2010 08:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://nealblomfield.wordpress.com/?p=24#comment-296</guid>
		<description><![CDATA[Hm, works in ff and ie only, merde...
The only way to add the button to the request appears to be to add a click handler for every button. Not nice, but working.]]></description>
		<content:encoded><![CDATA[<p>Hm, works in ff and ie only, merde&#8230;<br />
The only way to add the button to the request appears to be to add a click handler for every button. Not nice, but working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MonoRail, Prototype validation and multiple submit buttons by Tom</title>
		<link>http://randomcode.net.nz/2008/05/02/monorail-prototype-validation-and-multiple-submit-buttons/#comment-295</link>
		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Tue, 08 Jun 2010 14:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://nealblomfield.wordpress.com/?p=24#comment-295</guid>
		<description><![CDATA[Hey there,

had a similar problem with a form sent via an ajax request.
var buttonClicked = document.activeElement &#124;&#124; event.explicitOriginalTarget; really did the trick, didn&#039;t know that before but like it.

Thanx a lot,
Tom]]></description>
		<content:encoded><![CDATA[<p>Hey there,</p>
<p>had a similar problem with a form sent via an ajax request.<br />
var buttonClicked = document.activeElement || event.explicitOriginalTarget; really did the trick, didn&#8217;t know that before but like it.</p>
<p>Thanx a lot,<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NHibernate many-to-many mappings and order-by by Federico Tolomei</title>
		<link>http://randomcode.net.nz/2009/02/03/nhibernate-many-to-many-mappings-and-order-by/#comment-294</link>
		<dc:creator><![CDATA[Federico Tolomei]]></dc:creator>
		<pubDate>Sat, 05 Jun 2010 13:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=44#comment-294</guid>
		<description><![CDATA[Is it possible to use the order-by clause in a many-to-many mapping: put it inside the  tag. NHibernate (2.1.2.400) will put the ORDER BY clause in right place in generated SQL.]]></description>
		<content:encoded><![CDATA[<p>Is it possible to use the order-by clause in a many-to-many mapping: put it inside the  tag. NHibernate (2.1.2.400) will put the ORDER BY clause in right place in generated SQL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Showing commits not yet on master by My Git &#8211; Svn Workflow &#171; Random Code</title>
		<link>http://randomcode.net.nz/2009/08/27/showing-commits-not-yet-on-master/#comment-291</link>
		<dc:creator><![CDATA[My Git &#8211; Svn Workflow &#171; Random Code]]></dc:creator>
		<pubDate>Mon, 26 Apr 2010 04:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=99#comment-291</guid>
		<description><![CDATA[[...] Leave a comment Go to comments    Since updating msysgit to 1.6.5.1, I have been able to drop the custom cherrypick script I was using to commit back to my subversion repository and finally use the &#8220;proper&#8221; git [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Leave a comment Go to comments    Since updating msysgit to 1.6.5.1, I have been able to drop the custom cherrypick script I was using to commit back to my subversion repository and finally use the &#8220;proper&#8221; git [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simplify IUserType Testing by Neal</title>
		<link>http://randomcode.net.nz/2009/10/16/simplify-iusertype-testing/#comment-282</link>
		<dc:creator><![CDATA[Neal]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 05:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=110#comment-282</guid>
		<description><![CDATA[Mark,
 
You can create a timezone using only an offset via the static CreateCustomTimezone method on the TimeZoneInfoClass.  the code for the factory I use is shown below.
 
&lt;code&gt;    
public static class TimeZoneInfoFactory
    {
        public static TimeZoneInfo Create( double gmtOffset )
        {
            var name = String.Format( &quot;GMT{0:+0.#;-0.#;#}&quot;, gmtOffset );
            var offsetMinutes = Convert.ToInt32( gmtOffset * 60 );
            var offset = new TimeSpan( 0, offsetMinutes, 0 );
            return TimeZoneInfo.CreateCustomTimeZone( name, offset, name, name, null, null, true );
        }
    }
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>You can create a timezone using only an offset via the static CreateCustomTimezone method on the TimeZoneInfoClass.  the code for the factory I use is shown below.</p>
<p><code><br />
public static class TimeZoneInfoFactory<br />
    {<br />
        public static TimeZoneInfo Create( double gmtOffset )<br />
        {<br />
            var name = String.Format( "GMT{0:+0.#;-0.#;#}", gmtOffset );<br />
            var offsetMinutes = Convert.ToInt32( gmtOffset * 60 );<br />
            var offset = new TimeSpan( 0, offsetMinutes, 0 );<br />
            return TimeZoneInfo.CreateCustomTimeZone( name, offset, name, name, null, null, true );<br />
        }<br />
    }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simplify IUserType Testing by Mark</title>
		<link>http://randomcode.net.nz/2009/10/16/simplify-iusertype-testing/#comment-281</link>
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Thu, 04 Mar 2010 19:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=110#comment-281</guid>
		<description><![CDATA[Nice article. I especially appreciate the tests. How does TimeZoneInfoFactory work? Do you loop over TimezoneInfo.GetSystemTimeZones looking for one that matches the offset and return it? I&#039;m not sure how to initialize a TimeZoneInfo instance using only an offset. Cheers, Mark.]]></description>
		<content:encoded><![CDATA[<p>Nice article. I especially appreciate the tests. How does TimeZoneInfoFactory work? Do you loop over TimezoneInfo.GetSystemTimeZones looking for one that matches the offset and return it? I&#8217;m not sure how to initialize a TimeZoneInfo instance using only an offset. Cheers, Mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simplify IUserType Testing by Neal</title>
		<link>http://randomcode.net.nz/2009/10/16/simplify-iusertype-testing/#comment-211</link>
		<dc:creator><![CDATA[Neal]]></dc:creator>
		<pubDate>Mon, 02 Nov 2009 06:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=110#comment-211</guid>
		<description><![CDATA[The reason that I only capture the offset is that this is all that is required to allow me to display the date and time to the user in their local time.  Using an NHibernate interceptor I can ensure that all times are saved to the database using UTC time and when I need to display a time in the UI, I can grab the current users timezone and, using methods provided by the TimezoneInfo class, convert UTC time to the users local time.]]></description>
		<content:encoded><![CDATA[<p>The reason that I only capture the offset is that this is all that is required to allow me to display the date and time to the user in their local time.  Using an NHibernate interceptor I can ensure that all times are saved to the database using UTC time and when I need to display a time in the UI, I can grab the current users timezone and, using methods provided by the TimezoneInfo class, convert UTC time to the users local time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simplify IUserType Testing by Joe</title>
		<link>http://randomcode.net.nz/2009/10/16/simplify-iusertype-testing/#comment-210</link>
		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Fri, 30 Oct 2009 18:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://randomcode.net.nz/?p=110#comment-210</guid>
		<description><![CDATA[Great article. I&#039;m developing an events site where timezone handling is central.

One question i have about your code is whether the offset alone is sufficient to determine a specific timezone (especially considering DST)? based on your code it seems that the name is not important, so that partially answers the question.]]></description>
		<content:encoded><![CDATA[<p>Great article. I&#8217;m developing an events site where timezone handling is central.</p>
<p>One question i have about your code is whether the offset alone is sufficient to determine a specific timezone (especially considering DST)? based on your code it seems that the name is not important, so that partially answers the question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on TDD and NCover by Gustavo</title>
		<link>http://randomcode.net.nz/2008/03/12/tdd-and-ncover/#comment-208</link>
		<dc:creator><![CDATA[Gustavo]]></dc:creator>
		<pubDate>Wed, 28 Oct 2009 14:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://nealblomfield.wordpress.com/?p=11#comment-208</guid>
		<description><![CDATA[Nice post, I didn&#039;t know the NCover Explorer, I&#039;ll give it a try ASAP.

I just blogged about running both NUnit and NCover from the console in case anybody needs it:
http://thegsharp.wordpress.com/2009/10/28/calculating-coverage-with-ncover/
and
http://thegsharp.wordpress.com/2009/10/27/running-nunit-from-the-console/

Cheers!]]></description>
		<content:encoded><![CDATA[<p>Nice post, I didn&#8217;t know the NCover Explorer, I&#8217;ll give it a try ASAP.</p>
<p>I just blogged about running both NUnit and NCover from the console in case anybody needs it:<br />
<a href="http://thegsharp.wordpress.com/2009/10/28/calculating-coverage-with-ncover/" rel="nofollow">http://thegsharp.wordpress.com/2009/10/28/calculating-coverage-with-ncover/</a><br />
and<br />
<a href="http://thegsharp.wordpress.com/2009/10/27/running-nunit-from-the-console/" rel="nofollow">http://thegsharp.wordpress.com/2009/10/27/running-nunit-from-the-console/</a></p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

