<?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/"
		>
<channel>
	<title>Comments for you.arenot.me</title>
	<atom:link href="http://you.arenot.me/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://you.arenot.me</link>
	<description>Pessimistic programmer, optimistic human.</description>
	<lastBuildDate>Sat, 02 Mar 2013 00:12:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Uploadify your large files in .NET by Marie</title>
		<link>http://you.arenot.me/2010/10/01/uploadify-your-large-files-in-net/comment-page-1/#comment-86624</link>
		<dc:creator>Marie</dc:creator>
		<pubDate>Sat, 02 Mar 2013 00:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=366#comment-86624</guid>
		<description><![CDATA[Yes, thanks for this! I changed the httpRuntime maxRequestLength to 2097151 but I wasn&#039;t aware that I also needed to change the maxAllowedContentLength in the requestLimits]]></description>
		<content:encoded><![CDATA[<p>Yes, thanks for this! I changed the httpRuntime maxRequestLength to 2097151 but I wasn&#8217;t aware that I also needed to change the maxAllowedContentLength in the requestLimits</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Interfaces &#8211; The Good and The Ugly by Colin</title>
		<link>http://you.arenot.me/2013/02/28/interfaces-the-good-and-the-ugly/comment-page-1/#comment-86526</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 01 Mar 2013 05:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=544#comment-86526</guid>
		<description><![CDATA[It&#039;s one thing I rarely write is unit tests...tests are only as good as the person writing them, and am shit at writing them!]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s one thing I rarely write is unit tests&#8230;tests are only as good as the person writing them, and am shit at writing them!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Interfaces &#8211; The Good and The Ugly by Kevin Wilson</title>
		<link>http://you.arenot.me/2013/02/28/interfaces-the-good-and-the-ugly/comment-page-1/#comment-86513</link>
		<dc:creator>Kevin Wilson</dc:creator>
		<pubDate>Fri, 01 Mar 2013 01:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=544#comment-86513</guid>
		<description><![CDATA[Constructor overload can be a problem with DI. That example above is nuts. They should be using something like a service factory to resolve required services. Saying that, I wrote something similar a couple of years ago and we&#039;re just refactoring it now.

Like yourself, I&#039;ve never had to change the underlying persistence layer without rewriting other code. But I&#039;d still write every bit of repository/business service to a contract just because it makes writing unit tests so much simpler.

Being able to mock a Save method in IDataContext is a lot less complicated than having to create dummy DataContext classes in your tests (if you&#039;ve ever written tests against EF you&#039;ll know that pain). And it&#039;s infinitely better than writing unit tests that actually start writing to the DB (one of the legacy projects I&#039;ve worked on has tests that span several tiers - nightmarish).

The partial stuff I only find useful if the two parts are the stuff that&#039;s been written by hand and the other auto-generated. I&#039;ve never understood any reason for it to exist outside of that. I&#039;d never heard of partial interfaces before and I don&#039;t think I&#039;ll be rushing to try them out.]]></description>
		<content:encoded><![CDATA[<p>Constructor overload can be a problem with DI. That example above is nuts. They should be using something like a service factory to resolve required services. Saying that, I wrote something similar a couple of years ago and we&#8217;re just refactoring it now.</p>
<p>Like yourself, I&#8217;ve never had to change the underlying persistence layer without rewriting other code. But I&#8217;d still write every bit of repository/business service to a contract just because it makes writing unit tests so much simpler.</p>
<p>Being able to mock a Save method in IDataContext is a lot less complicated than having to create dummy DataContext classes in your tests (if you&#8217;ve ever written tests against EF you&#8217;ll know that pain). And it&#8217;s infinitely better than writing unit tests that actually start writing to the DB (one of the legacy projects I&#8217;ve worked on has tests that span several tiers &#8211; nightmarish).</p>
<p>The partial stuff I only find useful if the two parts are the stuff that&#8217;s been written by hand and the other auto-generated. I&#8217;ve never understood any reason for it to exist outside of that. I&#8217;d never heard of partial interfaces before and I don&#8217;t think I&#8217;ll be rushing to try them out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.NET __doPostBack is not defined by Ranjit Powar</title>
		<link>http://you.arenot.me/2010/11/03/asp-net-__dopostback-is-not-defined/comment-page-1/#comment-86129</link>
		<dc:creator>Ranjit Powar</dc:creator>
		<pubDate>Tue, 26 Feb 2013 08:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=390#comment-86129</guid>
		<description><![CDATA[following is the tag in web.config

xhtmlConformance mode=&quot;Legacy&quot;]]></description>
		<content:encoded><![CDATA[<p>following is the tag in web.config</p>
<p>xhtmlConformance mode=&#8221;Legacy&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.NET __doPostBack is not defined by Ranjit Powar</title>
		<link>http://you.arenot.me/2010/11/03/asp-net-__dopostback-is-not-defined/comment-page-1/#comment-86128</link>
		<dc:creator>Ranjit Powar</dc:creator>
		<pubDate>Tue, 26 Feb 2013 08:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=390#comment-86128</guid>
		<description><![CDATA[This post turned out to be useful for me. I was having same issue and my web.config had following tag which caused this error



Thanks a lot!!!!!!!!!!!!!!!]]></description>
		<content:encoded><![CDATA[<p>This post turned out to be useful for me. I was having same issue and my web.config had following tag which caused this error</p>
<p>Thanks a lot!!!!!!!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Maps API v3 &#8211; Multiple Markers, Multiple Infowindows by Colin</title>
		<link>http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/comment-page-4/#comment-85771</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 23 Feb 2013 10:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=291#comment-85771</guid>
		<description><![CDATA[Do you use FireBug and developer toolbar?  I popped your code in and it told me that myLatlng was not defined.  I changed that to centerMap and bingo.  Map appeared fine.]]></description>
		<content:encoded><![CDATA[<p>Do you use FireBug and developer toolbar?  I popped your code in and it told me that myLatlng was not defined.  I changed that to centerMap and bingo.  Map appeared fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Maps API v3 &#8211; Multiple Markers, Multiple Infowindows by Andy</title>
		<link>http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/comment-page-4/#comment-85770</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 23 Feb 2013 10:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=291#comment-85770</guid>
		<description><![CDATA[and yes, the div id is correct, I checked that a few times just incase!]]></description>
		<content:encoded><![CDATA[<p>and yes, the div id is correct, I checked that a few times just incase!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Maps API v3 &#8211; Multiple Markers, Multiple Infowindows by Andy</title>
		<link>http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/comment-page-4/#comment-85769</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 23 Feb 2013 10:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=291#comment-85769</guid>
		<description><![CDATA[Colin, 

Thanks for the reply. I have got markers (without info windows working already on the site I&#039;m doing) but wanted to add infowindows to them. So i followed your example. 

I&#039;ve made the document ready function change and sorted out the braces as I&#039;d missed it and put an extra one at the end. 

However still no joy.

heres the code: 


var infowindow = null;
    $(document).ready(function () { initialize();  });

    function initialize() {
                                var centerMap = new google.maps.LatLng(52.427, -1.700);
                                var myOptions = {
                                                    zoom: 11,
                                                    center: myLatlng,
                                                    mapTypeId: google.maps.MapTypeId.ROADMAP
                                                }; 
                            
                                var map = new google.maps.Map(document.getElementById(&#039;map_canvas&#039;), myOptions);

                                setMarkers(map, sites);
                                infowindow = new google.maps.InfoWindow({
                                                                            content: &#039;loading...&#039;
                                                                        });
                           }       
  
    var sites = [[&#039;Masons Arms Public House&#039;, 52.4119363, -1.7762272, 1, &#039;Masons Arms Public House&#039;],[&#039;Starbucks&#039;, 52.4133206, -1.7792657, 2, &#039;Starbucks&#039;],[&#039;John Lewis&#039;, 52.413938, -1.780450, 3, &#039;John Lewis&#039;],[&#039;Fallen Angel Bakery&#039;, 52.4131195, -1.7780644, 4, &#039;Fallen Angel Bakery&#039;],[&#039;Lush Cosmetics&#039;, 52.4137078, -1.7760573, 5, &#039;Lush Cosmetics&#039;],[&#039;Berryfield Farm Shop&#039;, 52.4300365, -1.6411231, 6, &#039;Berryfield Farm Shop&#039;],[&#039;Michaels Foodmarkets&#039;, 52.4455737, -1.783855, 7, &#039;Michaels Foodmarkets&#039;],[&#039;Balsall Common Foodcentre&#039;, 52.3907374, -1.6490093, 8, &#039;Balsall Common Foodcentre&#039;],[&#039;Berkswell Village Store&#039;, 52.4093881, -1.6417169, 9, &#039;Berkswell Village Store&#039;],[&#039;La Delicica&#039;, 52.3928246, -1.6464652, 10, &#039;La Delicica&#039;],[&#039;Oldwich Ln W&#039;, 52.360569, -1.6918703, 11, &#039;Oldwich Ln W&#039;],[&#039;New Covent Garden&#039;, 52.3884441, -1.7350296, 12, &#039;New Covent Garden&#039;],[&#039;One Stop Shop&#039;, 52.4037472, -1.8227041, 13, &#039;One Stop Shop&#039;],[&#039;Solihull Cornucopia&#039;, 52.4291942, -1.7978353, 14, &#039;Solihull Cornucopia&#039;],[&#039;Wedges Bakery&#039;, 52.3644425, -1.8055321, 15, &#039;Wedges Bakery&#039;],[&#039;Field Fresh&#039;, 52.4803318, -1.7392491, 16, &#039;Field Fresh&#039;],[&#039;Fleur de Lis&#039;, 52.4137601, -1.7787196, 17, &#039;Fleur de Lis&#039;],[&#039;Vi Stevens Florist&#039;, 52.4062113, -1.8232528, 18, &#039;Vi Stevens Florist&#039;],[&#039;Sheldon Florist&#039;, 52.3885955, -1.7343968, 19, &#039;Sheldon Florist&#039;],[&#039;Flamingo Florists Ltd&#039;, 52.4455737, -1.783855, 20, &#039;Flamingo Florists Ltd&#039;],[&#039;Cotswold Outdoor Co&#039;, 52.4137078, -1.7760573, 21, &#039;Cotswold Outdoor Co&#039;],[&#039;M &amp; Co&#039;, 52.4137605, -1.7780644, 22, &#039;M &amp; Co&#039;],[&#039;Monsoon/Accessorize&#039;, 52.4131195, -1.7780644, 23, &#039;Monsoon/Accessorize&#039;],[&#039;Next&#039;, 52.4109457, -1.7784396, 24, &#039;Next&#039;],[&#039;Top Man&#039;, 52.4124038, -1.7793879, 25, &#039;Top Man&#039;],[&#039;Zara&#039;, 52.4124038, -1.7793879, 26, &#039;Zara&#039;],[&#039;Boots&#039;, 52.4130676, -1.7764163, 27, &#039;Boots&#039;],[&#039;Akamba Garden Centre&#039;, 52.3902978, -1.8483994, 28, &#039;Akamba Garden Centre&#039;],[&#039;Café Azzurro&#039;, 52.397, -1.8042, 29, &#039;Café Azzurro&#039;],[&#039;Café Shirley&#039;, 52.4047535, -1.8222885, 30, &#039;Café Shirley&#039;],[&#039;Clock Hotel&#039;, 52.4438483, -1.7303281, 31, &#039;Clock Hotel&#039;],[&#039;Melbicks Garden And Leisure&#039;, 52.4619907, -1.7041663, 32, &#039;Melbicks Garden And Leisure&#039;],[&#039;Notcutts&#039;, 52.3828902, -1.7897604, 33, &#039;Notcutts&#039;],[&#039;West Cornwall Pasty Co&#039;, 52.4136365, -1.7789121, 34, &#039;West Cornwall Pasty Co&#039;],[&#039;Saracens Head&#039;, 52.4114314, -1.8271866, 35, &#039;Saracens Head&#039;],[&#039;Olton Tavern&#039;, 52.4384362, -1.7827444, 36, &#039;Olton Tavern&#039;],[&#039;The Bakers Oven&#039;, 52.4124038, -1.7793879, 37, &#039;The Bakers Oven&#039;],[&#039;Solihull Manor House&#039;, 52.411723, -1.7774502, 38, &#039;Solihull Manor House&#039;],[&#039;Lyndon Humanities College&#039;, 52.4479357, -1.7896544, 39, &#039;Lyndon Humanities College&#039;]];



        function setMarkers(map, markers) {

        for (var i = 0; i &lt; markers.length; i++) {
            var sites = markers[i];
            var siteLatLng = new google.maps.LatLng(sites[1], sites[2]);
            var marker = new google.maps.Marker({
                position: siteLatLng,
                map: map,
                title: sites[0],
                zIndex: sites[3],
                html: sites[4]
            });

            var contentString = &#039;Some content&#039;;

            google.maps.event.addListener(marker, click, function () {
                infowindow.setContent(this.html);
                infowindow.open(map, this);
            });
        }
    }]]></description>
		<content:encoded><![CDATA[<p>Colin, </p>
<p>Thanks for the reply. I have got markers (without info windows working already on the site I&#8217;m doing) but wanted to add infowindows to them. So i followed your example. </p>
<p>I&#8217;ve made the document ready function change and sorted out the braces as I&#8217;d missed it and put an extra one at the end. </p>
<p>However still no joy.</p>
<p>heres the code: </p>
<p>var infowindow = null;<br />
    $(document).ready(function () { initialize();  });</p>
<p>    function initialize() {<br />
                                var centerMap = new google.maps.LatLng(52.427, -1.700);<br />
                                var myOptions = {<br />
                                                    zoom: 11,<br />
                                                    center: myLatlng,<br />
                                                    mapTypeId: google.maps.MapTypeId.ROADMAP<br />
                                                }; </p>
<p>                                var map = new google.maps.Map(document.getElementById(&#8216;map_canvas&#8217;), myOptions);</p>
<p>                                setMarkers(map, sites);<br />
                                infowindow = new google.maps.InfoWindow({<br />
                                                                            content: &#8216;loading&#8230;&#8217;<br />
                                                                        });<br />
                           }       </p>
<p>    var sites = [['Masons Arms Public House', 52.4119363, -1.7762272, 1, 'Masons Arms Public House'],['Starbucks', 52.4133206, -1.7792657, 2, 'Starbucks'],['John Lewis', 52.413938, -1.780450, 3, 'John Lewis'],['Fallen Angel Bakery', 52.4131195, -1.7780644, 4, 'Fallen Angel Bakery'],['Lush Cosmetics', 52.4137078, -1.7760573, 5, 'Lush Cosmetics'],['Berryfield Farm Shop', 52.4300365, -1.6411231, 6, 'Berryfield Farm Shop'],['Michaels Foodmarkets', 52.4455737, -1.783855, 7, 'Michaels Foodmarkets'],['Balsall Common Foodcentre', 52.3907374, -1.6490093, 8, 'Balsall Common Foodcentre'],['Berkswell Village Store', 52.4093881, -1.6417169, 9, 'Berkswell Village Store'],['La Delicica', 52.3928246, -1.6464652, 10, 'La Delicica'],['Oldwich Ln W', 52.360569, -1.6918703, 11, 'Oldwich Ln W'],['New Covent Garden', 52.3884441, -1.7350296, 12, 'New Covent Garden'],['One Stop Shop', 52.4037472, -1.8227041, 13, 'One Stop Shop'],['Solihull Cornucopia', 52.4291942, -1.7978353, 14, 'Solihull Cornucopia'],['Wedges Bakery', 52.3644425, -1.8055321, 15, 'Wedges Bakery'],['Field Fresh', 52.4803318, -1.7392491, 16, 'Field Fresh'],['Fleur de Lis', 52.4137601, -1.7787196, 17, 'Fleur de Lis'],['Vi Stevens Florist', 52.4062113, -1.8232528, 18, 'Vi Stevens Florist'],['Sheldon Florist', 52.3885955, -1.7343968, 19, 'Sheldon Florist'],['Flamingo Florists Ltd', 52.4455737, -1.783855, 20, 'Flamingo Florists Ltd'],['Cotswold Outdoor Co', 52.4137078, -1.7760573, 21, 'Cotswold Outdoor Co'],['M &amp; Co', 52.4137605, -1.7780644, 22, 'M &amp; Co'],['Monsoon/Accessorize', 52.4131195, -1.7780644, 23, 'Monsoon/Accessorize'],['Next', 52.4109457, -1.7784396, 24, 'Next'],['Top Man', 52.4124038, -1.7793879, 25, 'Top Man'],['Zara', 52.4124038, -1.7793879, 26, 'Zara'],['Boots', 52.4130676, -1.7764163, 27, 'Boots'],['Akamba Garden Centre', 52.3902978, -1.8483994, 28, 'Akamba Garden Centre'],['Café Azzurro', 52.397, -1.8042, 29, 'Café Azzurro'],['Café Shirley', 52.4047535, -1.8222885, 30, 'Café Shirley'],['Clock Hotel', 52.4438483, -1.7303281, 31, 'Clock Hotel'],['Melbicks Garden And Leisure', 52.4619907, -1.7041663, 32, 'Melbicks Garden And Leisure'],['Notcutts', 52.3828902, -1.7897604, 33, 'Notcutts'],['West Cornwall Pasty Co', 52.4136365, -1.7789121, 34, 'West Cornwall Pasty Co'],['Saracens Head', 52.4114314, -1.8271866, 35, 'Saracens Head'],['Olton Tavern', 52.4384362, -1.7827444, 36, 'Olton Tavern'],['The Bakers Oven', 52.4124038, -1.7793879, 37, 'The Bakers Oven'],['Solihull Manor House', 52.411723, -1.7774502, 38, 'Solihull Manor House'],['Lyndon Humanities College', 52.4479357, -1.7896544, 39, 'Lyndon Humanities College']];</p>
<p>        function setMarkers(map, markers) {</p>
<p>        for (var i = 0; i &lt; markers.length; i++) {<br />
            var sites = markers[i];<br />
            var siteLatLng = new google.maps.LatLng(sites[1], sites[2]);<br />
            var marker = new google.maps.Marker({<br />
                position: siteLatLng,<br />
                map: map,<br />
                title: sites[0],<br />
                zIndex: sites[3],<br />
                html: sites[4]<br />
            });</p>
<p>            var contentString = &#039;Some content&#039;;</p>
<p>            google.maps.event.addListener(marker, click, function () {<br />
                infowindow.setContent(this.html);<br />
                infowindow.open(map, this);<br />
            });<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Maps API v3 &#8211; Multiple Markers, Multiple Infowindows by Colin</title>
		<link>http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/comment-page-4/#comment-85765</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 23 Feb 2013 10:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=291#comment-85765</guid>
		<description><![CDATA[Hey Andy,

Looked at your code.  Thanks for posting - took it out of your comment as well.  Have you looked at the source code for my map demo?

http://you.arenot.me/map.html

In your code, it appears that:

1.  You aren&#039;t calling : $(document).ready(function () { initialize();  });
(unless you aren&#039;t using jQuery).  But you still need to call initialize();

2. your setMarkers function is inside your initialize function.  Take that out.

3. is your div in your HTML called map_canvas i.e. &lt;div id=&quot;map_canvas&quot;&gt;&lt;/div&gt;

Let me know if that helps.]]></description>
		<content:encoded><![CDATA[<p>Hey Andy,</p>
<p>Looked at your code.  Thanks for posting &#8211; took it out of your comment as well.  Have you looked at the source code for my map demo?</p>
<p><a href="http://you.arenot.me/map.html" rel="nofollow">http://you.arenot.me/map.html</a></p>
<p>In your code, it appears that:</p>
<p>1.  You aren&#8217;t calling : $(document).ready(function () { initialize();  });<br />
(unless you aren&#8217;t using jQuery).  But you still need to call initialize();</p>
<p>2. your setMarkers function is inside your initialize function.  Take that out.</p>
<p>3. is your div in your HTML called map_canvas i.e.
<div id="map_canvas"></div>
<p>Let me know if that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google Maps API v3 &#8211; Multiple Markers, Multiple Infowindows by Andy</title>
		<link>http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/comment-page-4/#comment-85762</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 23 Feb 2013 10:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://you.arenot.me/?p=291#comment-85762</guid>
		<description><![CDATA[Ive been trying to get this to work for ages now, and would like to know whats preventing the map from rendering? I&#039;m not getting any script errors and tried debugging it but nothing seems to be wrong? Also tried JSLint and that doesnt throw any errors either... ]]></description>
		<content:encoded><![CDATA[<p>Ive been trying to get this to work for ages now, and would like to know whats preventing the map from rendering? I&#8217;m not getting any script errors and tried debugging it but nothing seems to be wrong? Also tried JSLint and that doesnt throw any errors either&#8230; </p>
]]></content:encoded>
	</item>
</channel>
</rss>
