<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>The tumblelog ofScott Dowding. 

I’m a software developerin Edmonton, Alberta.

Questions? Email me


var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-5254005-2");
pageTracker._trackPageview();
} catch(err) {}</description><title>Scott's Notes</title><generator>Tumblr (3.0; @dowding)</generator><link>http://scott.dowding.ca/</link><item><title>Extract Address Book Address Values on iPhone OS</title><description>&lt;a href="http://blog.slaunchaman.com/2009/01/21/cocoa-touch-tutorial-extract-address-book-address-values-on-iphone-os/"&gt;Extract Address Book Address Values on iPhone OS&lt;/a&gt;</description><link>http://scott.dowding.ca/post/17871138498</link><guid>http://scott.dowding.ca/post/17871138498</guid><pubDate>Sat, 18 Feb 2012 23:37:22 -0700</pubDate><category>iOS</category><category>dev</category><category>objective-c</category></item><item><title>Comparing Dates in Objective-C</title><description>&lt;p&gt;&lt;pre class="code"&gt;&lt;code class="objective-c"&gt;NSDate * dateOne = [NSDate date];
NSDate * dateTwo = [NSDate date];

if([dateOne compare:dateTwo] == NSOrderedAscending) {
    // dateOne is before dateTwo
}&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;</description><link>http://scott.dowding.ca/post/17508713541</link><guid>http://scott.dowding.ca/post/17508713541</guid><pubDate>Sun, 12 Feb 2012 14:02:40 -0700</pubDate><category>ios</category><category>dev</category><category>objective-c</category></item><item><title>iOS Polygon Hit Test with CGMutablePathRef, CGPoint, and CGPathContainsPoint</title><description>&lt;a href="http://www.cocos2d-iphone.org/forum/topic/20334"&gt;iOS Polygon Hit Test with CGMutablePathRef, CGPoint, and CGPathContainsPoint&lt;/a&gt;: &lt;p&gt;&lt;pre class="code"&gt;&lt;code class="objectivec"&gt;- (BOOL) containsPoint: (CGPoint) aPoint
{
	// Prepare corner of isometric map (rhombus).
	CGPoint points[4];
	points[3] = ccp(0.5f * self.tmxMap.contentSize.width, 0);
	points[2] = ccp(self.tmxMap.contentSize.width, 0.5f  * self.tmxMap.contentSize.height);
	points[1] = ccp(0.5f * self.tmxMap.contentSize.width, self.tmxMap.contentSize.height);
	points[0] = ccp(0, 0.5f * self.tmxMap.contentSize.height);

	// Use CGPath methods to determine if rhombus contains a point.
	CGMutablePathRef path=CGPathCreateMutable();
	CGPathMoveToPoint(path, NULL, points[0].x, points[0].y);
	CGPathAddLineToPoint(path, NULL, points[1].x, points[1].y);
	CGPathAddLineToPoint(path, NULL, points[2].x, points[2].y);
	CGPathAddLineToPoint(path, NULL, points[3].x, points[3].y);
	CGPathCloseSubpath(path);
	return CGPathContainsPoint(path, NULL, aPoint, YES);
}&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;</description><link>http://scott.dowding.ca/post/17499224775</link><guid>http://scott.dowding.ca/post/17499224775</guid><pubDate>Sun, 12 Feb 2012 11:32:16 -0700</pubDate><category>ios</category><category>dev</category></item><item><title>The Stack Exchange Architecture – 2011 Edition, Episode 1</title><description>&lt;a href="http://blog.serverfault.com/post/the-stack-exchange-architecture-2011-edition-episode-1/"&gt;The Stack Exchange Architecture – 2011 Edition, Episode 1&lt;/a&gt;</description><link>http://scott.dowding.ca/post/11027007709</link><guid>http://scott.dowding.ca/post/11027007709</guid><pubDate>Tue, 04 Oct 2011 12:27:05 -0600</pubDate></item><item><title>Markdown in JavaScript</title><description>&lt;a href="http://softwaremaniacs.org/playground/showdown-highlight/"&gt;Markdown in JavaScript&lt;/a&gt;</description><link>http://scott.dowding.ca/post/10988164481</link><guid>http://scott.dowding.ca/post/10988164481</guid><pubDate>Mon, 03 Oct 2011 13:42:06 -0600</pubDate><category>javascript</category><category>web-dev</category><category>markdown</category></item><item><title>Text Editors for Programmers on the Mac</title><description>&lt;a href="http://smyck.net/2011/10/02/text-editors-for-programmers-on-the-mac/"&gt;Text Editors for Programmers on the Mac&lt;/a&gt;: &lt;p&gt;I’ve mostly been using Kod but I might give Sublime Text a try.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/10978285796</link><guid>http://scott.dowding.ca/post/10978285796</guid><pubDate>Mon, 03 Oct 2011 06:51:10 -0600</pubDate><category>programming</category><category>text editors</category></item><item><title>ASP.NET MVC Authorize Attribute with Access Denied Page</title><description>&lt;a href="http://stackoverflow.com/questions/1279643/asp-net-mvc-redirect-to-an-access-denied-page-using-a-custom-role-provider"&gt;ASP.NET MVC Authorize Attribute with Access Denied Page&lt;/a&gt;: &lt;p&gt;I struggled to get the ASP.NET MVC Authorize attribute to redirect to an “Access Denied” page when the user was not in the specified role. I was using windows authentication and no matter what I set in the web config customErrors section  (which was recommended) the user would always be prompted to enter a username and password instead. I found this &lt;a href="http://stackoverflow.com/questions/1279643/asp-net-mvc-redirect-to-an-access-denied-page-using-a-custom-role-provider" target="_blank"&gt;stack overflow answer&lt;/a&gt; that suggests using a custom attribute. It’s the only thing I’ve found that works.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/5045641762</link><guid>http://scott.dowding.ca/post/5045641762</guid><pubDate>Fri, 29 Apr 2011 12:00:05 -0600</pubDate><category>.net</category><category>asp.net</category><category>mvc</category></item><item><title>Windsor Logging Facility for log4net</title><description>&lt;a href="http://mikehadlow.blogspot.com/2008/06/more-windsor-love-using-log4net.html"&gt;Windsor Logging Facility for log4net&lt;/a&gt;: &lt;p&gt;Can’t wait to try it out. No more coding static logger instances!&lt;/p&gt;</description><link>http://scott.dowding.ca/post/5016321219</link><guid>http://scott.dowding.ca/post/5016321219</guid><pubDate>Thu, 28 Apr 2011 12:00:06 -0600</pubDate><category>.net</category><category>development</category><category>windsor</category><category>log4net</category></item><item><title>NHibernate 3.2: Better Batching Support for Cascades</title><description>&lt;a href="http://fabiomaulo.blogspot.com/2011/03/nhibernate-32-batching-improvement.html"&gt;NHibernate 3.2: Better Batching Support for Cascades&lt;/a&gt;: &lt;p&gt;NHibernate now supports batch sets when performing cascade operations.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/4988429591</link><guid>http://scott.dowding.ca/post/4988429591</guid><pubDate>Wed, 27 Apr 2011 12:00:06 -0600</pubDate><category>nhibernate</category><category>development</category><category>.net</category></item><item><title>Using Query Classes With NHibernate</title><description>&lt;a href="http://geekswithblogs.net/liammclennan/archive/2011/03/11/144321.aspx"&gt;Using Query Classes With NHibernate&lt;/a&gt;: &lt;p&gt;While query objects may not always be advisable, Liam has an interesting approach using a base class and an extension method for ISession.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/4976209688</link><guid>http://scott.dowding.ca/post/4976209688</guid><pubDate>Tue, 26 Apr 2011 21:50:55 -0600</pubDate><category>nhibernate</category><category>development</category><category>.net</category></item><item><title>css3watch:

A great tool for generating css3</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lhvmcktFfh1qc6s4so1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://css3watch.com/post/4361725332" class="tumblr_blog" target="_blank"&gt;css3watch&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;A great tool for generating css3&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://scott.dowding.ca/post/4380415699</link><guid>http://scott.dowding.ca/post/4380415699</guid><pubDate>Tue, 05 Apr 2011 20:02:28 -0600</pubDate></item><item><title>jQuery Waypoints</title><description>&lt;a href="http://imakewebthings.github.com/jquery-waypoints/"&gt;jQuery Waypoints&lt;/a&gt;: &lt;p&gt;&lt;a href="http://decodering.com/post/3484660277/jquery-waypoints" target="_blank"&gt;decodering&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Waypoints is a small jQuery plugin that makes it easy to execute a function whenever you scroll to an element.&lt;/p&gt;
&lt;p&gt;(demos: &lt;a href="http://imakewebthings.github.com/jquery-waypoints/infinite-scroll/" target="_blank"&gt;infinite scrolling&lt;/a&gt; | &lt;a href="http://imakewebthings.github.com/jquery-waypoints/sticky-elements/" target="_blank"&gt;sticky elements&lt;/a&gt; | &lt;a href="http://imakewebthings.github.com/jquery-waypoints/scroll-analytics/" target="_blank"&gt;scroll analytics&lt;/a&gt;)&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://scott.dowding.ca/post/3494200096</link><guid>http://scott.dowding.ca/post/3494200096</guid><pubDate>Thu, 24 Feb 2011 19:10:35 -0700</pubDate></item><item><title>ILSpy: An open-source alternative to Reflector</title><description>&lt;a href="http://http//wiki.sharpdevelop.net/ilspy.ashx"&gt;ILSpy: An open-source alternative to Reflector&lt;/a&gt;: &lt;p&gt;Goodbye Reflector, Hello ILSpy!&lt;/p&gt;</description><link>http://scott.dowding.ca/post/3432373297</link><guid>http://scott.dowding.ca/post/3432373297</guid><pubDate>Mon, 21 Feb 2011 15:53:05 -0700</pubDate><category>.net</category><category>open-source</category></item><item><title>Well-Known Lookup Data &amp; NHibernate</title><description>&lt;a href="http://fabiomaulo.blogspot.com/2009/08/from-db-to-ram-wellknowinstancetype.html"&gt;Well-Known Lookup Data &amp; NHibernate&lt;/a&gt;: &lt;p&gt;Save some queries by moving your well-know lookup data out of the database and into memory.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/3174995788</link><guid>http://scott.dowding.ca/post/3174995788</guid><pubDate>Mon, 07 Feb 2011 20:23:39 -0700</pubDate><category>.net</category><category>programming</category><category>nhibernate</category></item><item><title>The only valid measurement of code quality: WTFs/minute</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lg0w0q78aJ1qbwatmo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The only valid measurement of code quality: WTFs/minute&lt;/p&gt;</description><link>http://scott.dowding.ca/post/3080860281</link><guid>http://scott.dowding.ca/post/3080860281</guid><pubDate>Wed, 02 Feb 2011 20:50:50 -0700</pubDate><category>funny</category><category>programming</category></item><item><title>Photo</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lfjs4ockoI1qzj4joo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;</description><link>http://scott.dowding.ca/post/2935057709</link><guid>http://scott.dowding.ca/post/2935057709</guid><pubDate>Tue, 25 Jan 2011 20:08:07 -0700</pubDate><category>funny</category><category>programming</category></item><item><title>Realistic CSS3 Box Shadows</title><description>&lt;a href="http://www.ballyhooblog.com/realistic-css3-box-shadows/"&gt;Realistic CSS3 Box Shadows&lt;/a&gt;</description><link>http://scott.dowding.ca/post/2555998065</link><guid>http://scott.dowding.ca/post/2555998065</guid><pubDate>Sat, 01 Jan 2011 12:02:07 -0700</pubDate><category>css3</category><category>css</category><category>web-dev</category></item><item><title>Pure CSS3 Box-Shadow Page Curl Effect</title><description>&lt;a href="http://www.matthamm.com/notebook/?p=7"&gt;Pure CSS3 Box-Shadow Page Curl Effect&lt;/a&gt;</description><link>http://scott.dowding.ca/post/2544581863</link><guid>http://scott.dowding.ca/post/2544581863</guid><pubDate>Fri, 31 Dec 2010 12:00:06 -0700</pubDate><category>css3</category><category>css</category><category>web-dev</category></item><item><title>Daylight Savings Time (DST) Ambiguities in .NET</title><description>&lt;a href="http://blogs.msdn.com/b/bclteam/archive/2010/11/28/time-travel-with-net-or-datetime-datetimeoffset-and-the-lost-dst-hour-greg.aspx"&gt;Daylight Savings Time (DST) Ambiguities in .NET&lt;/a&gt;: &lt;p&gt;How to use the DateTime and DateTimeOffset objects when dealing with those pesky ambiguous time periods that occur when we switch back to standard time.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/2093401477</link><guid>http://scott.dowding.ca/post/2093401477</guid><pubDate>Sat, 04 Dec 2010 12:04:06 -0700</pubDate><category>.net</category><category>c-sharp</category></item><item><title>Add a Favicon to External Links</title><description>&lt;a href="http://semplicewebsites.com/external-link-favicons"&gt;Add a Favicon to External Links&lt;/a&gt;: &lt;p&gt;Using JavaScript, CSS, and Google’s favicon cache.&lt;/p&gt;</description><link>http://scott.dowding.ca/post/2088739011</link><guid>http://scott.dowding.ca/post/2088739011</guid><pubDate>Fri, 03 Dec 2010 20:35:56 -0700</pubDate><category>css</category><category>web-dev</category><category>javascript</category></item></channel></rss>

