<?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>Hi my name is Alan Feekery. I am a web designer &amp; web developer. I program in C# using ASP.NET. I design using Adobe Fireworks and all my coding is done in Visual Studio. I currently work in house at O’Callaghan Insurances.

This is my website, I blog about technical stuff and post up any major work I complete.</description><title>web developer, web designer</title><generator>Tumblr (3.0; @alanfeekery)</generator><link>http://alanfeekery.com/</link><item><title>Github for Windows</title><description>&lt;a href="https://github.com/blog/1127-github-for-windows"&gt;Github for Windows&lt;/a&gt;: &lt;p&gt;Get this, get this now. An awesome metro based git client for Windows. Awesomesauce!&lt;/p&gt;</description><link>http://alanfeekery.com/post/23539288776</link><guid>http://alanfeekery.com/post/23539288776</guid><pubDate>Tue, 22 May 2012 12:16:31 +0100</pubDate><category>Github</category></item><item><title>Insert, Update, and Delete Operations (LINQ to SQL)</title><description>&lt;a href="http://msdn.microsoft.com/en-us/library/bb386931.aspx"&gt;Insert, Update, and Delete Operations (LINQ to SQL)&lt;/a&gt;: &lt;p&gt;Why ow why would you bother writing SQL in your code anymore with stuff like LINQ to SQL. If you want to know how it works read up on the &lt;strong&gt;Unit Of Work&lt;/strong&gt; pattern. I highly recommend &lt;a href="http://tekpub.com/productions/linq" target="_blank"&gt;Tekpub’s series on LINQ&lt;/a&gt;.&lt;/p&gt;</description><link>http://alanfeekery.com/post/22120065293</link><guid>http://alanfeekery.com/post/22120065293</guid><pubDate>Mon, 30 Apr 2012 14:03:32 +0100</pubDate><category>CSharp</category><category>LINQ to SQL</category></item><item><title>Back to Basics: Moving beyond for, if and switch</title><description>&lt;a href="http://www.hanselman.com/blog/BackToBasicsMovingBeyondForIfAndSwitch.aspx"&gt;Back to Basics: Moving beyond for, if and switch&lt;/a&gt;: &lt;p&gt;Well worth reading Scott Hanselman questions the abuse of &lt;strong&gt;for&lt;/strong&gt;, &lt;strong&gt;if&lt;/strong&gt; &amp; &lt;strong&gt;switch&lt;/strong&gt; statements when programming to perform simple parsing tasks before offering examples and solutions to clean up your code. Very interesting!&lt;/p&gt;</description><link>http://alanfeekery.com/post/22045021267</link><guid>http://alanfeekery.com/post/22045021267</guid><pubDate>Sun, 29 Apr 2012 14:05:38 +0100</pubDate><category>CSharp</category><category>Programming</category></item><item><title>Format a String as Currency in C#</title><description>&lt;a href="http://www.howtogeek.com/howto/programming/format-a-string-as-currency-in-c/"&gt;Format a String as Currency in C#&lt;/a&gt;: &lt;p&gt;Handy when working with ASP.NET and C#.&lt;/p&gt;</description><link>http://alanfeekery.com/post/21710900733</link><guid>http://alanfeekery.com/post/21710900733</guid><pubDate>Tue, 24 Apr 2012 13:05:01 +0100</pubDate><category>CSharp</category></item><item><title>How to limit the looping of a foreach loop</title><description>&lt;p&gt;I had this very question, was about to write a traditional for loop to achieve it but then a quick search on stackoverflow turned up a super simple code solution shown below:&lt;/p&gt;
&lt;p&gt;
&lt;script src="https://gist.github.com/2478938.js" type="text/javascript"&gt;&lt;![CDATA[// &lt;![CDATA[

// ]]]]&gt;&lt;![CDATA[&gt;]]&gt;&lt;/script&gt;&lt;/p&gt;
&lt;p&gt;Resource: &lt;a href="http://stackoverflow.com/questions/7716406/how-do-i-limit-a-foreach-loop-n-runs" target="_blank"&gt;stackoverflow&lt;/a&gt;&lt;/p&gt;</description><link>http://alanfeekery.com/post/21710444841</link><guid>http://alanfeekery.com/post/21710444841</guid><pubDate>Tue, 24 Apr 2012 12:45:45 +0100</pubDate><category>CSharp</category></item><item><title>SQL SERVER – Reset sa Password</title><description>&lt;a href="http://worthposting.wordpress.com/2008/11/01/sql-server-reset-sa-password/"&gt;SQL SERVER – Reset sa Password&lt;/a&gt;: &lt;p&gt;I’m working from home today and I normally don’t do much database work from home but unsurprisingly I had picked a password for the sa account I couldn’t remember! This handy post tells you what to do to change it.&lt;/p&gt;</description><link>http://alanfeekery.com/post/20898865521</link><guid>http://alanfeekery.com/post/20898865521</guid><pubDate>Wed, 11 Apr 2012 12:22:18 +0100</pubDate><category>MSSQL</category></item><item><title>Move a database from one server to another server in SQL Server 2008</title><description>&lt;a href="http://blogs.msdn.com/b/sreekarm/archive/2009/09/11/move-a-database-from-one-server-to-another-server-in-sql-server-2008.aspx"&gt;Move a database from one server to another server in SQL Server 2008&lt;/a&gt;: &lt;p&gt;Detailed post on the 4 different ways to move your database information from one SQL Server to another. My preference being number 4, &lt;strong&gt;script generation&lt;/strong&gt;. This is a handy resource as it’s not a very common task for small to medium sized websites &amp; web applications and it can be hard to remember the best way to carry out such a job.&lt;/p&gt;</description><link>http://alanfeekery.com/post/20898204991</link><guid>http://alanfeekery.com/post/20898204991</guid><pubDate>Wed, 11 Apr 2012 11:50:04 +0100</pubDate><category>MSSQL</category></item><item><title>Temporary Tables – MS SQL Server</title><description>&lt;a href="http://decipherinfosys.wordpress.com/2007/05/04/temporary-tables-ms-sql-server/"&gt;Temporary Tables – MS SQL Server&lt;/a&gt;: &lt;p&gt;Handy reference article when it comes to temp databases with MSSQL. Explains the difference between global &amp; local databases well.&lt;/p&gt;</description><link>http://alanfeekery.com/post/20836120242</link><guid>http://alanfeekery.com/post/20836120242</guid><pubDate>Tue, 10 Apr 2012 11:25:04 +0100</pubDate><category>MSSQL</category></item><item><title>The new quoteme.ie was carefully designed from adobe fireworks...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m1wheqVZXA1qb9ib4o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The new quoteme.ie was carefully designed from adobe fireworks to markup and then integrated into the Umbraco cms for data management.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.quoteme.ie" target="_blank"&gt;View The Site&lt;/a&gt;&lt;/p&gt;</description><link>http://alanfeekery.com/post/20403233691</link><guid>http://alanfeekery.com/post/20403233691</guid><pubDate>Tue, 03 Apr 2012 12:04:00 +0100</pubDate><category>Web Design Work</category></item><item><title>Design Patterns</title><description>&lt;p&gt;There are a lot of resources online if you want to brush up on design patters but I can&amp;#8217;t recommend &lt;a href="http://www.pluralsight-training.net/microsoft/Courses/TableOfContents?courseName=patterns-library" target="_blank"&gt;pluralsights on demand videos on design patterns&lt;/a&gt; enough.&lt;/p&gt;
&lt;p&gt;They cover:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Adapter Pattern&lt;/li&gt;
&lt;li&gt;Bridge Pattern&lt;/li&gt;
&lt;li&gt;The Builder Pattern&lt;/li&gt;
&lt;li&gt;Chain of Responsibility&lt;/li&gt;
&lt;li&gt;The Command Pattern&lt;/li&gt;
&lt;li&gt;Decorator Design Pattern&lt;/li&gt;
&lt;li&gt;Event Aggregator&lt;/li&gt;
&lt;li&gt;Facade Pattern&lt;/li&gt;
&lt;li&gt;Factory Patterns&lt;/li&gt;
&lt;li&gt;Flyweight&lt;/li&gt;
&lt;li&gt;Iterator Pattern&lt;/li&gt;
&lt;li&gt;Lazy Load Pattern&lt;/li&gt;
&lt;li&gt;Mediator Pattern&lt;/li&gt;
&lt;li&gt;Memento&lt;/li&gt;
&lt;li&gt;Model View Presenter (MVP) Pattern&lt;/li&gt;
&lt;li&gt;Model View ViewModel (MVVM) Pattern&lt;/li&gt;
&lt;li&gt;Null Object Pattern&lt;/li&gt;
&lt;li&gt;Observer Pattern&lt;/li&gt;
&lt;li&gt;The Prototype Pattern&lt;/li&gt;
&lt;li&gt;Proxy Pattern&lt;/li&gt;
&lt;li&gt;Repository&lt;/li&gt;
&lt;li&gt;Singleton&lt;/li&gt;
&lt;li&gt;Service Locator Pattern&lt;/li&gt;
&lt;li&gt;State Pattern&lt;/li&gt;
&lt;li&gt;Strategy Pattern&lt;/li&gt;
&lt;li&gt;Template Method&lt;/li&gt;
&lt;li&gt;Unit of Work&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;I&amp;#8217;ve personally gone over the mediator &amp;amp; singleton pattern videos available from Pluralsight and in 20-30mins you get a great explanation, you look at a simple application from visual studio in which a pattern could be used to make life easier for the programmer, you then implement the pattern and see the benifit of using it.&lt;/p&gt;
&lt;p&gt;For example, the mediator pattern program was a program that was used for tracking flights. In the code each flight had to communicate to the other flight it&amp;#8217;s position so that they all knew where they were so that they would not fly into each others air space.&lt;/p&gt;
&lt;p&gt;The more planes you add to this program that more complex and larger each class of plane has to get so it can check up on each type of plane and it&amp;#8217;s location.&lt;/p&gt;
&lt;p&gt;The solution was to create a mediator class so planes did not have to check up on each other, the mediator will do that for them and only relay back data to each plane if it needed to warned about air space intrusions.&lt;/p&gt;
&lt;p&gt;Sound familiar? Yup, the mediator class was called TrafficController. It&amp;#8217;s a real world example and it makes total sense. &lt;/p&gt;
&lt;p&gt;Check out the other patterns I&amp;#8217;ve mentioned, they are all explained this way with real world examples and code to back up the technical implementation of the pattern.&lt;/p&gt;
&lt;p&gt;The code is based on the .NET framework and in C#.&lt;/p&gt;</description><link>http://alanfeekery.com/post/18551138316</link><guid>http://alanfeekery.com/post/18551138316</guid><pubDate>Thu, 01 Mar 2012 14:34:00 +0000</pubDate><category>Design Patterns</category><category>Pluralsight</category><category>CSharp</category></item><item><title>Calculate a leap year in C#</title><description>&lt;p&gt;Handy bit of code this if you have an application that plays around with DateTime a bit too much and you start seeing errors February 29th ;)&lt;/p&gt;
&lt;script src="http://snipt.net/embed/1567e6fb5665cb78abf7c90ca01377f5" type="text/javascript"&gt;&lt;/script&gt;</description><link>http://alanfeekery.com/post/18494057767</link><guid>http://alanfeekery.com/post/18494057767</guid><pubDate>Wed, 29 Feb 2012 14:23:50 +0000</pubDate><category>CSharp</category></item><item><title>Column to Column SQL copy</title><description>&lt;p&gt;Funny enough, I couldn&amp;#8217;t find this snippet of sql code online. I needed to copy a column within the same table to another.&lt;/p&gt;
&lt;script src="http://snipt.net/embed/122a0d28c4dff327bf12f6d42365114b" type="text/javascript"&gt;&lt;/script&gt;</description><link>http://alanfeekery.com/post/16918568607</link><guid>http://alanfeekery.com/post/16918568607</guid><pubDate>Thu, 02 Feb 2012 13:27:00 +0000</pubDate><category>SQL</category></item><item><title>Get IP Address in C#</title><description>&lt;p&gt;Here is a little snippet of code I use in ASP.NET to get a client&amp;#8217;s IP Address, handy to have this info if you web application is designed for certain countries or regions.&lt;/p&gt;
&lt;p&gt;
&lt;script src="http://snipt.net/embed/49df9c4eafe7ca2535e13d2fb38cbb25" type="text/javascript"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://alanfeekery.com/post/16819821051</link><guid>http://alanfeekery.com/post/16819821051</guid><pubDate>Tue, 31 Jan 2012 15:18:44 +0000</pubDate><category>CSharp</category></item><item><title>Remote Desktop not allowed to use saved credentials</title><description>&lt;a href="http://itowns.blogspot.com/2009/01/remote-desktop-not-allowed-to-use-saved.html"&gt;Remote Desktop not allowed to use saved credentials&lt;/a&gt;: &lt;p&gt;I was having this annoying error with remote desktop credentials not being saved at work. This little tutorial fixed the issue, worth a read if your having this problem.&lt;/p&gt;</description><link>http://alanfeekery.com/post/16516381663</link><guid>http://alanfeekery.com/post/16516381663</guid><pubDate>Thu, 26 Jan 2012 10:45:10 +0000</pubDate><category>Remote Desktop</category></item><item><title>SQL &amp; Distinct Results</title><description>&lt;p&gt;If you are working through a large list of potentially similar entries for maybe a cascading dropdown for manual location entry then you might find the DISTINCT sql command quite valuable.&lt;/p&gt;
&lt;p&gt;This query returned 3800+ counties with tons of double entries:&lt;/p&gt;
&lt;script src="http://snipt.net/embed/f37edce31018d7ab8a9ce1fc004807c9" type="text/javascript"&gt;&lt;/script&gt;&lt;p&gt;Add in our special DISTINCT keyword and we get just 91 unique counties:&lt;/p&gt;
&lt;script src="http://snipt.net/embed/45c3d111c8e25a7c78851c8428cbd54d" type="text/javascript"&gt;&lt;/script&gt;</description><link>http://alanfeekery.com/post/15668440287</link><guid>http://alanfeekery.com/post/15668440287</guid><pubDate>Wed, 11 Jan 2012 12:51:00 +0000</pubDate><category>SQL</category></item><item><title>How to Increase Message Size Quota</title><description>&lt;p&gt;Sometimes when dealing with web services that return large amounts of data you get the follow error message.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This can be fixed by increasing the maxReceivedMessageSize, maxBufferSize, maxBufferPoolSize, maxArrayLength &amp;amp; maxStringContentLength variables in your web.config to their max size.&lt;/p&gt;
&lt;p&gt;The follow code shows you what the web.config basicHttpBinding section variables should be set to:&lt;/p&gt;

&lt;script src="http://snipt.net/embed/c022b6a6f9bb117cb183b55ad356a67c" type="text/javascript"&gt;&lt;/script&gt;</description><link>http://alanfeekery.com/post/15613713166</link><guid>http://alanfeekery.com/post/15613713166</guid><pubDate>Tue, 10 Jan 2012 09:28:19 +0000</pubDate><category>ASP.NET</category><category>Web Services</category></item><item><title>Tumblr Custom Theme Recovery</title><description>&lt;a href="http://staff.tumblr.com/post/380346543/theme-recovery"&gt;Tumblr Custom Theme Recovery&lt;/a&gt;: &lt;p&gt;For a second there I thought I had just undone all my custom theme work on my blog by previewing a theme that really did wipe out my html code. Thankfully Tumblr have a theme history set up. Use the link supplied and you can view the last 20 code changes you have made to your theme and revert back to the state of any of them. Phew!&lt;/p&gt;</description><link>http://alanfeekery.com/post/15253612964</link><guid>http://alanfeekery.com/post/15253612964</guid><pubDate>Tue, 03 Jan 2012 20:36:00 +0000</pubDate><category>Tumblr Themes</category></item><item><title>Bundling and Minification in ASP.NET 4.5</title><description>&lt;a href="http://abhijitjana.net/2011/10/06/bundling-and-minification-in-asp-net-4-5/"&gt;Bundling and Minification in ASP.NET 4.5&lt;/a&gt;: &lt;p&gt;Great overview of the new bundling &amp; minification options in ASP.NET 4.5&lt;/p&gt;</description><link>http://alanfeekery.com/post/13501077269</link><guid>http://alanfeekery.com/post/13501077269</guid><pubDate>Tue, 29 Nov 2011 15:10:25 +0000</pubDate><category>Minification</category><category>ASP.NET</category></item><item><title>If you are ever trying to track down unsecure content on an...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lvfaeoWMsQ1qb9ib4o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;If you are ever trying to track down unsecure content on an https connection Google Chrome will identify any content being accessed on a non https protocol by inspecting the page and switching over to the console tab, handy.&lt;/p&gt;</description><link>http://alanfeekery.com/post/13498207885</link><guid>http://alanfeekery.com/post/13498207885</guid><pubDate>Tue, 29 Nov 2011 12:52:00 +0000</pubDate><category>Google Chrome</category></item><item><title>ASP.NET Response.Redirect to new window</title><description>&lt;a href="http://stackoverflow.com/questions/104601/asp-net-response-redirect-to-new-window"&gt;ASP.NET Response.Redirect to new window&lt;/a&gt;: &lt;p&gt;Bit a life saver, works great for iFrame apps on Facebook if you need the user to engage with a full screen web app outside of Facebook’s width limitations.&lt;/p&gt;</description><link>http://alanfeekery.com/post/13255891457</link><guid>http://alanfeekery.com/post/13255891457</guid><pubDate>Thu, 24 Nov 2011 16:14:45 +0000</pubDate><category>ASP.NET</category><category>Facebook</category></item></channel></rss>

