<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <channel>
    
    <title>DerekAllard.com</title>
    <link>http://www.derekallard.com/</link>
    <description>CodeIgniter, PHP, and the world of web design</description>
    <dc:language>en</dc:language>
    <dc:creator>derek@derekallard.com</dc:creator>
    <dc:rights>Copyright 2013</dc:rights>
    <dc:date>2013-03-27T20:48:16+00:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.ellislab.com/" />
    

    <item>
      <title>Twitter Bootstrap documentation quote of the day</title>
      <link>http://derekallard.com/blog/post/twitter-bootstrap-documentation-quote-of-the-day</link>
      <guid>http://derekallard.com/blog/post/twitter-bootstrap-documentation-quote-of-the-day</guid>
      <description><![CDATA[<p>From <a href="http://twitter.github.com/bootstrap/base-css.html#buttons">Bootstraps button documentation</a>:</p>

<blockquote><p>IE9 doesn&#8217;t crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.</p>
</blockquote>

<p>It is my educated opinion that everybody should strive to write documentation like this.</p>]]></description>
      <dc:subject>education, html&#45;css,</dc:subject>
      <dc:date>2013-03-27T20:48:16+00:00</dc:date>
    </item>

    <item>
      <title>Handy Alfred workflow &#45; Dev Doctor</title>
      <link>http://derekallard.com/blog/post/handy-alfred-workflow-dev-doctor</link>
      <guid>http://derekallard.com/blog/post/handy-alfred-workflow-dev-doctor</guid>
      <description><![CDATA[<p>My favourite little Mac launcher (and all around handy butler) <a href="http://alfredapp.com">Alfred</a> recently graduated to version 2. I haven&#8217;t played around with it much, but this morning came across <a href="http://wemakeawesomesh.it/">We make awsome sh.it&#8217;s</a> handy developer workflow, <a href="http://wemakeawesomesh.it/alfred-dev-doctor/">Dev Doctor</a>. Its just a smart search tool, but its contextually aware, and allows for quick function lookups.</p>

<p class="middle"><img src="http://www.derekallard.com/img/post_resources/alfred_dev_doctor.png" alt="Alfred Dev Doctor" height="490" width="648"></p>

<p>Since Alfred is already part of my day to day workflow, I find the Dev Doctor much handier then running the manual search.</p>

<p>Know of any other handy Alfred workflows? Please let me know!</p>]]></description>
      <dc:subject>quick&#45;links,</dc:subject>
      <dc:date>2013-03-24T15:36:27+00:00</dc:date>
    </item>

    <item>
      <title>Understand the Favicon</title>
      <link>http://derekallard.com/blog/post/understand-the-favicon</link>
      <guid>http://derekallard.com/blog/post/understand-the-favicon</guid>
      <description><![CDATA[<p><a href="http://www.jonathantneal.com">Jonathan T. Neal</a> has written what is probably the single greatest discussion around the topic of favicons I&#8217;ve ever read with <a href="http://www.jonathantneal.com/blog/understand-the-favicon/">Understand the Favicon</a>.</p>

<p class="middle"><img src="http://www.derekallard.com/img/post_resources/favicon_show.png" alt="The favicon on DerekAllard.com" height="71" width="287"></p>

<p>The level of research is wonderful, including breakdowns of browser weaknesses and quirks (still looking at your Internet Explorer). Of particular note is how different browsers handle pages that offer both png and ico formatted favicons, including this gem:</p>

<blockquote><p>Opera, not wanting to take sides, will choose from any of the available icons at complete random. I love that Opera does this.</p>
</blockquote>

<p>A highly informative read.</p>

<p>While we&#8217;re talking about favicons, I recently used the wonderful &#8220;<a href="http://tommoor.github.com/tinycon/">Tinycon</a>&#8221; library from <a href="https://twitter.com/tommoor">Tom Moor</a>, and was really happy with the results. Check it out if you need a small library for manipulating the favicon.</p>]]></description>
      <dc:subject>browsers, how&#45;to,</dc:subject>
      <dc:date>2013-01-29T19:08:47+00:00</dc:date>
    </item>

    <item>
      <title>How To Survive A Robot Uprising (aka Robopocalypse)</title>
      <link>http://derekallard.com/blog/post/how-to-survive-a-robot-uprising-aka-robopocalypse</link>
      <guid>http://derekallard.com/blog/post/how-to-survive-a-robot-uprising-aka-robopocalypse</guid>
      <description><![CDATA[<p>The folks at <a href="http://www.epipheostudios.com">Epipheo Studios</a> have given us all a wonder gift. Their video <a href="http://www.youtube.com/watch?v=-G3RoBHMu-o">How To Survive A Robot Uprising (aka Robopocalypse)</a> is a clever, fun, and informative look how how to spot, and defend yourself against killer robots (spoiler: look for red glowing eyes!).</p>

<div class="middle"><a href="http://www.youtube.com/watch?v=-G3RoBHMu-o"><img src="http://www.derekallard.com/img/post_resources/Screen_Shot_2012-05-14_at_1.35.02_PM.png" alt="How To Survive A Robot Uprising (aka Robopocalypse) " height="348" width="632"></a></div>

<p>&nbsp;</p>]]></description>
      <dc:subject>quick&#45;links,</dc:subject>
      <dc:date>2012-05-14T17:35:22+00:00</dc:date>
    </item>

    <item>
      <title>New site design &#45; The Robot Invasion Continues!</title>
      <link>http://derekallard.com/blog/post/new-site-design-the-robot-invasion-continues</link>
      <guid>http://derekallard.com/blog/post/new-site-design-the-robot-invasion-continues</guid>
      <description><![CDATA[<p>Over the last few weeks (months) I rebuilt DerekAllard.com with a new look/feel. Still a few rough edges here and there (if you see anything, please <a href="http://derekallard.com/contact">contact me</a>) but I wanted to push it out now :)</p>

<p class="middle"><img src="http://www.derekallard.com/img/post_resources/derekallard_v3_screenshot.jpg" alt="DerekAllard.com version 3" height="553" width="500"></p>]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-06T17:03:04+00:00</dc:date>
    </item>

    <item>
      <title>Member Banning ExpressionEngine snippet</title>
      <link>http://derekallard.com/blog/post/member-banning-expressionengine-snippet</link>
      <guid>http://derekallard.com/blog/post/member-banning-expressionengine-snippet</guid>
      <description><![CDATA[<p>When spammers do sneak comments through my blog, I have a very simple one click<sup>*</sup> snippet to ban them similar to the way the EE forum&#8217;s &#8220;ban member&#8221; option works. Essentially, beside every comment, I have a &#8220;delete &amp; ban&#8221; link. This saves me needing to fire up my control panel, and navigate to the proper place. It just saves a bit of clicking around.</p>

<p>I never thought much of it, but yesterday it co-incidentally came up when I showed another EE dev my site&#8217;s control panel for something totally unrelated. Since I implement the &#8220;one click delete&#8221; in a snippet, I thought I&#8217;d share it here:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;if&nbsp;can_moderate_comment&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#91;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;cp_url&#125;?S=0&amp;D=cp&amp;C=addons_modules&amp;M=show_module_cp&amp;module=comment&amp;method=index&amp;entry_id=&#123;entry_id&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">delete&nbsp;</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">amp</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">ban</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">&#93;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;&nbsp;</span>
</span>
</code></div>

<p>And then in my template</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">comment</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;url_as_author&#125;&nbsp;wrote</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">&#123;ban_member_snippet&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;comment&#125;<br /><br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">comment</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;&nbsp;</span>
</span>
</code></div>

<p>I&#8217;ve used this sucker for so long I forgot all about it. If you have any &#8220;go to&#8221; snippets, code or tricks, please post them in the comments here!</p>

<p><sup>*</sup> Technically its probably 2 or 3 clicks :)</p>]]></description>
      <dc:subject>expressionengine,</dc:subject>
      <dc:date>2011-12-20T12:38:22+00:00</dc:date>
    </item>

    <item>
      <title>&#123;Less&#125; CSS3 mixins and vendor prefixes</title>
      <link>http://derekallard.com/blog/post/less-css3-mixins-and-vendor-prefixes</link>
      <guid>http://derekallard.com/blog/post/less-css3-mixins-and-vendor-prefixes</guid>
      <description><![CDATA[<p>I doubt <a href="http://lesscss.org">{Less}</a> is much of a <del>revenlation</del> <ins>revelation</ins> to anyone nerdy enough to be reading my site, so I&#8217;ll skip the usual platitudes and jump right into why I&#8217;m writing this.</p>

<p>As part of a recent site build, I&#8217;ve been relying heavily on CSS3 features, many of which are only partially implemented across the browsers. Not a big deal for me, it just means a lot of vendor prefixes:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">#someElement&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">webkit</span><span style="color: #007700">-</span><span style="color: #0000BB">transition</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">all&nbsp;.5s</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-</span><span style="color: #0000BB">moz</span><span style="color: #007700">-</span><span style="color: #0000BB">transition</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">all&nbsp;.5s</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-</span><span style="color: #0000BB">o</span><span style="color: #007700">-</span><span style="color: #0000BB">transition</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">all&nbsp;.5s</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">transition</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">all&nbsp;.5s</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>But I have a few problems with this (CSS validation and older Internet Explorer are not among them). Firstly, its a pain to need to add that 4 lines every time, and secondly, one day I&#8217;ll want to remove some or all of the vendor prefixes and I&#8217;ll need to do it a bunch of times.</p>

<p>As a devoted {Less} user, the answer seemed obvious at first, I&#8217;ll just throw in a mixin to reduce it down into one simple line.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">#someElement&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">transition</span><span style="color: #007700">(</span><span style="color: #0000BB">all</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">.5s</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>I&#8217;m hardly the first person to come up with this idea, but looking around for other .less files that handled vendor prefixes the way I wanted, with all the CSS3 items I wanted, was challenging. So I cobbled together my own file.</p>

<p>You can grab it off Github if that&#8217;s your sort of thing <a href="https://github.com/derekallard/LESSCSS-Vendor-Prefixes">LESSCSS mixins file of vendor prefixes for CSS3</a>.</p>]]></description>
      <dc:subject>html&#45;css,</dc:subject>
      <dc:date>2011-12-01T20:25:37+00:00</dc:date>
    </item>

    <item>
      <title>Safari, cookies, and lost time &#45; the remix</title>
      <link>http://derekallard.com/blog/post/safari-cookies-and-lost-time-the-remix</link>
      <guid>http://derekallard.com/blog/post/safari-cookies-and-lost-time-the-remix</guid>
      <description><![CDATA[<p>During a recent ExpressionEngine site build, I found myself stuck for a few days trying to get cookies to work in Safari. Since actually logging in wasn&#8217;t particularly important to the site, I poked away at it a little bit here… a little bit there… but never actually solved it over the course of 3 days. A quick Google for the problem (EE forum search is <a href="http://expressionengine.com/forums/viewthread/201715/">darn</a> <a href="http://expressionengine.com/forums/viewthread/201849/">near</a> <a href="http://expressionengine.com/forums/viewthread/201132/">useless</a> these days) brought me to <a href="http://www.ngenworks.com/blog/safari_cookies_and_lost_time/">Safari, cookies, and lost time</a> from Fred of the fine folks at <a href="http://www.ngenworks.com">ngen works</a>. So I fired out</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'c'</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">//&nbsp;I'll&nbsp;get&nbsp;you&nbsp;kids&nbsp;and&nbsp;your&nbsp;darn&nbsp;dog&nbsp;too!!!&nbsp;</span>
</span>
</code></div>

<p>And lo and behold, the server clock was off! A quick support email later, things are humming along tickity-boo, so I&#8217;m writing this partially as a &#8220;note to self&#8221;, and partially to add my voice to the stream of knowledge that is the web.</p>]]></description>
      <dc:subject>browsers, expressionengine,</dc:subject>
      <dc:date>2011-10-12T19:36:08+00:00</dc:date>
    </item>

    <item>
      <title>Launching your browsers in Private Mode with Alfred</title>
      <link>http://derekallard.com/blog/post/launching-your-browsers-in-private-mode-with-alfred</link>
      <guid>http://derekallard.com/blog/post/launching-your-browsers-in-private-mode-with-alfred</guid>
      <description><![CDATA[<blockquote>
<p><img src="http://www.derekallard.com/img/post_resources/alfred_app_icon.jpg" height="62" width="75" alt="Alfred App" class="post_image" />Preamble: I’m a huge fan of <a href="http://alfredapp.com">Alfred App</a>. This post isn’t about Alfred per se, but if you’re a Mac user, do yourself a favour and grab a copy. There’s a free version, and the “powerpack”. The powerpack is what is needed to follow the rest of this post.</p><div style="clear:left;"></div>
</blockquote>

<p>Recently I’ve been tackling a lot of projects where the state of the app when “logged in” was different then if you were “logged out”. In order to test the app in both phases, I spent a lot of time flipping between staying logged in, and also launching the site in private mode (or in Chrome, “Incognito”). To help speed up the process, I wrote a few extensions for Alfred to automatically launch my browsers in private mode.</p>

<p>The extensions support Firefox, Chrome, Safari and Opera.</p>

<p>Here’s what you’ll see now:</p>

<div class="middle">
<p><img src="http://www.derekallard.com/img/post_resources/alfred_chrome.png" alt="" width="648" height="240" /><img src="http://www.derekallard.com/img/post_resources/alfred_firefox.png" alt="" width="648" height="240" /></p>
</div>

<p>Grab the extensions and play around: <a href="http://www.derekallard.com/img/post_resources/alfred_private_mode_extensions.zip">alfred_private_mode_extensions.zip</a>. Installing them is super easy, open Alfred’s preferences > extensions, and just drop them one at a time onto the  “Drop to Install” box.</p>]]></description>
      <dc:subject>browsers, how&#45;to,</dc:subject>
      <dc:date>2011-08-09T20:38:11+00:00</dc:date>
    </item>

    <item>
      <title>Simple vs Complex conditionals in ExpressionEngine templates</title>
      <link>http://derekallard.com/blog/post/simple-vs-complex-conditionals-in-expressionengine-templates</link>
      <guid>http://derekallard.com/blog/post/simple-vs-complex-conditionals-in-expressionengine-templates</guid>
      <description><![CDATA[<p>I&#8217;ve had a chance to be involved in some some pretty fun and exciting ExpressionEngine projects lately. Often, this means looking through sites that other developers had originally built out. Its always fun seeing how other smart people choose to solve a problem - often in a different way then I&#8217;d do it. Reading other people&#8217;s code is <em>always</em> a great way to learn.</p>

<p>That said, a recurring theme I see are poorly optimized EE templates. Usually, there are minor changes I can have a dramatic impact. The most common minor fix is simply understanding the difference between &#8220;simple&#8221; and &#8220;complex&#8221; conditionals. While digging around for a few good resources I could use to help explain it, I stumbled across a <a href="http://expressionengine.com/forums/viewthread/168268/">wonderful post on the EE forums</a> by John D Wells that explains it masterfully, which I&#8217;m reposting here with his permission for my  convenience. As an aside, John is a pretty prolific guy, and if you aren&#8217;t subscribed to <a href="http://johndwells.com/">his blog</a>, now is a good time to check it out.</p>]]></description>
      <dc:subject>expressionengine,</dc:subject>
      <dc:date>2011-06-03T16:45:08+00:00</dc:date>
    </item>

    
    </channel>
</rss>