<?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>brandon martinez &#187; Programming</title> <atom:link href="http://www.brandonmartinez.com/tag/programming/feed/" rel="self" type="application/rss+xml" /><link>http://www.brandonmartinez.com</link> <description>a blog, a portfolio, and more</description> <lastBuildDate>Sun, 05 Feb 2012 21:31:46 +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>Call for Help: Inferring Types When Using Generic Interfaces in a Factory</title><link>http://www.brandonmartinez.com/2011/11/12/call-for-help-inferring-types-when-using-generic-interfaces-in-a-factory/</link> <comments>http://www.brandonmartinez.com/2011/11/12/call-for-help-inferring-types-when-using-generic-interfaces-in-a-factory/#comments</comments> <pubDate>Sun, 13 Nov 2011 03:13:55 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Design Patterns]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=3545</guid> <description><![CDATA[To all those .NET and C# developers that follow me, I’d greatly appreciate your help answering this question: C# — Inferring Types When Using Generic Interfaces in a Factory — Stack Overflow. Call for Help: Inferring Types When Using Generic Interfaces in a Factory is a post from brandon martinez.<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2011/11/12/call-for-help-inferring-types-when-using-generic-interfaces-in-a-factory/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Call for Help: Inferring Types When Using Generic Interfaces in a Factory</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>To all those .NET and C# developers that follow me, I’d greatly appreciate your help answering this question: <a title="Inferring Types When Using Generic Interfaces in a Factory" href="http://stackoverflow.com/questions/8109321/inferring-types-when-using-generic-interfaces-in-a-factory" target="_blank">C# — Inferring Types When Using Generic Interfaces in a Factory — Stack Overflow</a>.</p><div class="update"><p><strong class="notice">Update:</strong> An answer has been accepted. Checkout <a title="Inferring Types When Using Generic Interfaces in a Factory" href="http://stackoverflow.com/questions/8109321/inferring-types-when-using-generic-interfaces-in-a-factory" target="_blank">stackoverflow</a> for more.</p></div><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2011/11/12/call-for-help-inferring-types-when-using-generic-interfaces-in-a-factory/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Call for Help: Inferring Types When Using Generic Interfaces in a Factory</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2011/11/12/call-for-help-inferring-types-when-using-generic-interfaces-in-a-factory/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Version Control Best Practices</title><link>http://www.brandonmartinez.com/2011/06/25/version-control-best-practices/</link> <comments>http://www.brandonmartinez.com/2011/06/25/version-control-best-practices/#comments</comments> <pubDate>Sat, 25 Jun 2011 04:01:17 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[Git]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[SCM]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=3239</guid> <description><![CDATA[This is an excellent article from the makers of Tower[ref]Tower is an excellent app for managing git repositories; a bit pricey, but there is a 30-day free trial. Check it out.[/ref]. It’s written assuming you’re using git, but there are a lot of great points if you’re using any source code management solution: Commit Related [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2011/06/25/version-control-best-practices/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Version Control Best Practices</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>This is an excellent article from the makers of <a href="http://www.git-tower.com/" title="Tower" target="_blank">Tower</a>[ref]Tower is an excellent app for managing git repositories; a bit pricey, but there is a 30-day free trial. <a href="http://www.git-tower.com/" title="Tower" target="_blank">Check it out</a>.[/ref]. It’s written assuming you’re using <a href="http://git-scm.com/" title="git" target="_blank">git</a>, but there are a lot of great points if you’re using <strong>any</strong> source code management solution:</p><ol><li>Commit Related Changes</li><li>Commit Often</li><li>Don’t Commit Half-Done Work</li><li>Test Before You Commit</li><li>Write Good Commit Messages</li><li>Version Control is not a Backup System</li><li>Use Branches</li><li>Agree on a Workflow</li></ol><p>Be sure to <a href="http://blog.fournova.com/2011/06/version-control-best-practices/" target="_blank" title="Version Control Best Practices | fournova blog">read the original article</a> to see an explanation of each point.</p><p>[references/]</p><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2011/06/25/version-control-best-practices/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Version Control Best Practices</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2011/06/25/version-control-best-practices/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Public, Private, and Protected</title><link>http://www.brandonmartinez.com/2011/03/01/public-private-and-protected/</link> <comments>http://www.brandonmartinez.com/2011/03/01/public-private-and-protected/#comments</comments> <pubDate>Tue, 01 Mar 2011 15:32:25 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[.NET]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=2915</guid> <description><![CDATA[I was asked a really good question today (and I had to Google for the answer): what are public, private, and protected keywords called in C# (or other programming language)Continue reading Public, Private, and ProtectedPublic, Private, and Protected is a post from brandon martinez.<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2011/03/01/public-private-and-protected/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Public, Private, and Protected</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>I was asked a really good question today (and I had to Google for the answer): what are public, private, and protected keywords called in C# (or other programming language)<em><p><a href="http://www.brandonmartinez.com/2011/03/01/public-private-and-protected/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading Public, Private, and Protected</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2011/03/01/public-private-and-protected/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Public, Private, and Protected</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2011/03/01/public-private-and-protected/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>No Error</title><link>http://www.brandonmartinez.com/2010/12/07/no-error/</link> <comments>http://www.brandonmartinez.com/2010/12/07/no-error/#comments</comments> <pubDate>Tue, 07 Dec 2010 19:30:06 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Funny]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=2639</guid> <description><![CDATA[So is the life of a programmer: How am I supposed to handle that? No Error is a post from brandon martinez.<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2010/12/07/no-error/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">No Error</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>So is the life of a programmer:</p><p><a href="http://www.brandonmartinez.com/wp-content/uploads/2010/12/WTF.png" rel="lightbox[2639]"><img src="http://www.brandonmartinez.com/wp-content/uploads/2010/12/WTF-575x187.png" alt="" title="How am I supposed to fix this?" width="575" height="187" class="aligncenter size-medium wp-image-2640" /></a></p><p>How am I supposed to handle that?</p><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2010/12/07/no-error/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">No Error</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2010/12/07/no-error/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Git, Capistrano, SSH, and WordPress: Revisited</title><link>http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/</link> <comments>http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/#comments</comments> <pubDate>Sun, 28 Mar 2010 14:31:15 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[Capistrano]]></category> <category><![CDATA[Deployment]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[ssh]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=1494</guid> <description><![CDATA[In my last Git, Capistrano, SSH, and WordPress tutorial, I showed you how to setup your WordPress theme to be easily deployable. Now, I’ve simplified the process even more by eliminating a large amount of duplicate codeContinue reading Git, Capistrano, SSH, and WordPress: RevisitedGit, Capistrano, SSH, and WordPress: Revisited is a post from brandon martinez.<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Git, Capistrano, SSH, and WordPress: Revisited</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>In my last <a href="http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/">Git, Capistrano, SSH, and WordPress tutorial</a>, I showed you how to setup your WordPress theme to be easily deployable. Now, I’ve simplified the process even more by eliminating a large amount of duplicate code<em><p><a href="http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading Git, Capistrano, SSH, and WordPress: Revisited</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Git, Capistrano, SSH, and WordPress: Revisited</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Spree Tip: Adjust Permissions for Extended Controllers</title><link>http://www.brandonmartinez.com/2010/03/24/spree-tip-adjust-permissions-for-extended-controllers/</link> <comments>http://www.brandonmartinez.com/2010/03/24/spree-tip-adjust-permissions-for-extended-controllers/#comments</comments> <pubDate>Wed, 24 Mar 2010 04:00:07 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[e-commerce]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby on Rails]]></category> <category><![CDATA[Spree]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=1456</guid> <description><![CDATA[I’ve been working with Spree over the past few weeks for my senior project. So far, I’ve really enjoyed working with it. For being a below-1.0 software, it is very stable, and very full-featured. Even better, it’s very easy to create extensions and integrate them into the e-commerce framework. However, I was running into a [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2010/03/24/spree-tip-adjust-permissions-for-extended-controllers/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Spree Tip: Adjust Permissions for Extended Controllers</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>I’ve been working with <a href="http://spreecommerce.com/" target="_blank">Spree</a> over the past few weeks for my senior project. So far, I’ve really enjoyed working with it. For being a below-1.0 software, it is very stable, and very full-featured. Even better, it’s very easy to create extensions and integrate them into the e-commerce framework. However, I was running into a permissions issue with an extended controller method<em><p><a href="http://www.brandonmartinez.com/2010/03/24/spree-tip-adjust-permissions-for-extended-controllers/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading Spree Tip: Adjust Permissions for Extended Controllers</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2010/03/24/spree-tip-adjust-permissions-for-extended-controllers/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Spree Tip: Adjust Permissions for Extended Controllers</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2010/03/24/spree-tip-adjust-permissions-for-extended-controllers/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Clearing Floats With WordPress</title><link>http://www.brandonmartinez.com/2009/11/03/clearing-floats-wit-wordpress/</link> <comments>http://www.brandonmartinez.com/2009/11/03/clearing-floats-wit-wordpress/#comments</comments> <pubDate>Tue, 03 Nov 2009 13:34:11 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Functions]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=554</guid> <description><![CDATA[Using a “float” in a web design is fairly common these days; it is used to float images for wrapping text, as well as being one of the easier, standard-compliant methods to achieve columns. For example, if you want to have a content column, with a sidebar column floating to the right, you would probably [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/11/03/clearing-floats-wit-wordpress/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Clearing Floats With WordPress</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>Using a “float” in a web design is fairly common these days; it is used to float images for wrapping text, as well as being one of the easier, standard-compliant methods to achieve columns. For example, if you want to have a <em>content</em> column, with a <em>sidebar</em> column floating to the right, you would probably have something similar to this (example after the jump):</p><em><p><a href="http://www.brandonmartinez.com/2009/11/03/clearing-floats-wit-wordpress/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading Clearing Floats With WordPress</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/11/03/clearing-floats-wit-wordpress/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Clearing Floats With WordPress</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/11/03/clearing-floats-wit-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Cisco Clean Access + Mac OS X = Headache</title><link>http://www.brandonmartinez.com/2009/09/23/cisco-clean-access-mac-os-x-headache/</link> <comments>http://www.brandonmartinez.com/2009/09/23/cisco-clean-access-mac-os-x-headache/#comments</comments> <pubDate>Wed, 23 Sep 2009 05:48:36 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[Bash]]></category> <category><![CDATA[Cisco]]></category> <category><![CDATA[Clean Access]]></category> <category><![CDATA[Ferris State University]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Proxy]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=455</guid> <description><![CDATA[At Ferris State University, the network implements a system called Cisco Clean Access (CCA). This is a system designed to keep all Windows-based computers up-to-date, secure, and authorized to use the network. On the Windows-side of things, it works decently. All that is truly required is the installation of Clean Access Manager, Norton Antivirus, and [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/09/23/cisco-clean-access-mac-os-x-headache/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Cisco Clean Access + Mac OS X = Headache</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>At Ferris State University, the network implements a system called <a href="http://en.wikipedia.org/wiki/Cisco_NAC_Appliance" target="_blank">Cisco Clean Access (CCA)</a>. This is a system designed to keep all Windows-based computers up-to-date, secure, and authorized to use the network. On the Windows-side of things, it works decently. All that is truly required is the installation of Clean Access Manager, Norton Antivirus, and setting up your Windows Update settings to point to FSU’s Windows Update Server.</p><p>This is totally different if you use a Mac (or Linux, or any other OS). While there is technically a Mac client for CCA, it does not work as well as the Windows-based client. Luckily, there is still a backup plan for other operating systems: CCA will redirect you to a web-based login page, you fill in your user credentials, and bam! you’re on the network. Only a few caveats:</p><ul><li>If you disconnect from the network for any reason (i.e. you’re using a laptop and you close the lid) for more than 5 minutes, you will have to re-login</li><li>Occasionally there are issues with computer identification and DHCP: I have run into issues where I was logged in, closed my laptop for 15 minutes, and was given an “IP in use” error. This has happened on more than one occasion, and not only to me, but a few of my classmates.</li><li>It’s just a hassle to have your web session interrupted by a Java app (and on that point, why is it a Java app? I’m pretty sure a <strong>standards-compliant</strong> web form would suffice) asking you to login</li></ul><p>To get around most of these issues, I came up with a script to automatically login with my iMac. Essentially, it’s just a shell/bash script that is executed by launchd (you could use Cron on *NIX) every 5 minutes.</p><em><p><a href="http://www.brandonmartinez.com/2009/09/23/cisco-clean-access-mac-os-x-headache/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading Cisco Clean Access + Mac OS X = Headache</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/09/23/cisco-clean-access-mac-os-x-headache/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Cisco Clean Access + Mac OS X = Headache</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/09/23/cisco-clean-access-mac-os-x-headache/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Git, Capistrano, SSH, and WordPress</title><link>http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/</link> <comments>http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/#comments</comments> <pubDate>Tue, 18 Aug 2009 01:00:36 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Capistrano]]></category> <category><![CDATA[Deployment]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=414</guid> <description><![CDATA[I’m not going to lie: lately I’ve been on quite the WordPress-kick. I love being able to create a design, cut it up into HTML-ready chunks, and then use a standard WordPress template to get it into production and on the web ASAP! Generally, my workflow looks like this: Create the design Cut it up [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Git, Capistrano, SSH, and WordPress</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<div class="update"><p><strong class="notice">Update:</strong> This tutorial has been updated! Several bugs have been fixed, please be sure to read all of the updates (especially if you’ve referenced this tutorial before).</p><p>Also, there is now a gem to help with the deployment script. Please visit the <a href="http://www.brandonmartinez.com/2010/03/28/git-capistrano-ssh-and-wordpress-revisited/">new tutorial</a> after reading this one for more information.</p></div><p>I’m not going to lie: lately I’ve been on quite the WordPress-kick. I love being able to create a design, cut it up into HTML-ready chunks, and then use a standard WordPress template to get it into production and on the web ASAP! Generally, my workflow looks like this:</p><ol><li>Create the design</li><li>Cut it up for a web layout</li><li>Create a sample web layout and test across browsers</li><li>Cut the HTML up into a standard WordPress template</li><li>FTP the design to a WordPress install (into the <em>wp-content/themes</em> directory)</li></ol><em><p><a href="http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading Git, Capistrano, SSH, and WordPress</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Git, Capistrano, SSH, and WordPress</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/08/17/git-capistrano-ssh-and-wordpress-an-awesome-combination/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Sanitizing Phone Numbers With C#</title><link>http://www.brandonmartinez.com/2009/08/03/sanitizing-phone-numbers-with-c/</link> <comments>http://www.brandonmartinez.com/2009/08/03/sanitizing-phone-numbers-with-c/#comments</comments> <pubDate>Mon, 03 Aug 2009 18:47:51 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[.NET]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Sanitizing Input]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=432</guid> <description><![CDATA[An extension method to remove all but digits from a phone number. This should be useful for sanitizing input to put into your database. Obviously this can be used for more than just phone numbers. Sanitizing Phone Numbers With C# is a post from brandon martinez.<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/08/03/sanitizing-phone-numbers-with-c/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Sanitizing Phone Numbers With C#</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>An extension method to remove all but digits from a phone number. This should be useful for sanitizing input to put into your database.</p><pre class="brush: csharp; title: ; notranslate">using System.Text.RegularExpressions;

namespace CustomStringMethods
{
	public static class PhoneNumber
	{
		#region Class Methods

		public static string StripAllButDigits(this string s)
		{
			return (s == null) ? string.Empty : Regex.Replace(s, @&quot;\D&quot;, string.Empty);
		}

		#endregion
	}
}</pre><p>Obviously this can be used for more than just phone numbers.</p><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/08/03/sanitizing-phone-numbers-with-c/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Sanitizing Phone Numbers With C#</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/08/03/sanitizing-phone-numbers-with-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>C# Interfaces: Under (No) Construction?</title><link>http://www.brandonmartinez.com/2009/07/10/351/</link> <comments>http://www.brandonmartinez.com/2009/07/10/351/#comments</comments> <pubDate>Fri, 10 Jul 2009 17:29:25 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Interfaces]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=351</guid> <description><![CDATA[Why can’t C# allow for a constructor definition in an Interface? For example, say you have this interface:Continue reading C# Interfaces: Under (No) Construction?C# Interfaces: Under (No) Construction? is a post from brandon martinez.<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/07/10/351/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">C# Interfaces: Under (No) Construction?</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>Why can’t C# allow for a constructor definition in an Interface? For example, say you have this interface:</p><pre class="brush: csharp; title: ; notranslate">namespace ValidationServices.Customers
{
  public interface ICustomer
  {
    // Properties
    ValidationRequest Request{ get; set;}

    // Methods
    ValidationResponse ValidateOrder();
    //....
    // and so on
    //....
  }
}</pre><em><p><a href="http://www.brandonmartinez.com/2009/07/10/351/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading C# Interfaces: Under (No) Construction?</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/07/10/351/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">C# Interfaces: Under (No) Construction?</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/07/10/351/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>XMLUrlResolver: Using Embedded XSLT Resources in C#</title><link>http://www.brandonmartinez.com/2009/07/06/xmlurlresolver-using-embedded-xslt-resources-in-c/</link> <comments>http://www.brandonmartinez.com/2009/07/06/xmlurlresolver-using-embedded-xslt-resources-in-c/#comments</comments> <pubDate>Tue, 07 Jul 2009 03:05:56 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[C#]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[XML]]></category> <category><![CDATA[XSL]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=326</guid> <description><![CDATA[Over the last week or so, I have been searching for a method to properly include XSL files via xsl:include within a .NET embedded resource. Apparently, using GetManifestResourceStream() (via an Assembly) wasn’t good enough (it wouldn’t follow the xsl:includes, simply ignoring them). Luckily, I came across a (semi-)working solution over at Signs on the Sand. [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/07/06/xmlurlresolver-using-embedded-xslt-resources-in-c/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">XMLUrlResolver: Using Embedded XSLT Resources in C#</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>Over the last week or so, I have been searching for a method to properly include XSL files via <em>xsl:include</em> within a .NET embedded resource. Apparently, using<em> GetManifestResourceStream() (via an Assembly) </em>wasn’t good enough (it wouldn’t follow the <em>xsl:includes</em>, simply ignoring them). Luckily, I came across a (semi-)working solution over at <a title="Signs on the Sand: Loading XSLT stylesheets embedded into an assembly - the right way" href="http://www.tkachenko.com/blog/archives/000653.html" target="_blank">Signs on the Sand</a>. Now, the concepts behind this were right, it just wasn’t working for my particular situation. Here’s the scoop:</p><em><p><a href="http://www.brandonmartinez.com/2009/07/06/xmlurlresolver-using-embedded-xslt-resources-in-c/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading XMLUrlResolver: Using Embedded XSLT Resources in C#</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/07/06/xmlurlresolver-using-embedded-xslt-resources-in-c/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">XMLUrlResolver: Using Embedded XSLT Resources in C#</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/07/06/xmlurlresolver-using-embedded-xslt-resources-in-c/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>What I’ve Learned So Far</title><link>http://www.brandonmartinez.com/2009/07/06/what-ive-learned-so-far/</link> <comments>http://www.brandonmartinez.com/2009/07/06/what-ive-learned-so-far/#comments</comments> <pubDate>Mon, 06 Jul 2009 21:20:34 +0000</pubDate> <dc:creator>Brandon Martinez</dc:creator> <category><![CDATA[C#]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[XML]]></category> <category><![CDATA[XSL]]></category><guid isPermaLink="false">http://www.brandonmartinez.com/?p=107</guid> <description><![CDATA[So far, my internship has been going great! I’ve had many opportunities to work in a new environment, and I’ve been able to tap into one of my more underused skills: programming. Since I’ve been working for Independent, I’ve been able to learn a lot of new concepts; not only in programming, but in some [...]<hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/07/06/what-ive-learned-so-far/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">What I’ve Learned So Far</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></description> <content:encoded><![CDATA[<p>So far, my internship has been going great! I’ve had many opportunities to work in a new environment, and I’ve been able to tap into one of my more underused skills: programming. Since I’ve been working for Independent, I’ve been able to learn a lot of new concepts; not only in programming, but in some of the operations of a business. Here is a brief overview of some of the things I have learned, or am learning.</p><em><p><a href="http://www.brandonmartinez.com/2009/07/06/what-ive-learned-so-far/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">Continue reading What I’ve Learned So Far</a></p></em><hr /><p style="margin-top: 10px; border-top: solid 1px #ddd; padding-top:10px;"><a href="http://www.brandonmartinez.com/2009/07/06/what-ive-learned-so-far/?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">What I’ve Learned So Far</a> is a post from <a href="http://www.brandonmartinez.com?utm_source=feed&utm_campaign=rss-mo-more&utm_medium=rss">brandon martinez</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.brandonmartinez.com/2009/07/06/what-ive-learned-so-far/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 10/17 queries in 0.418 seconds using disk: basic

Served from: www.brandonmartinez.com @ 2012-02-06 05:20:45 -->
