
<?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>allaboutduncan &#187; Code</title>
	<atom:link href="http://www.allaboutduncan.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.allaboutduncan.com</link>
	<description>my ramblings about fatherhood, baseball, the Atlanta Braves, homebrewing, web design and jquery</description>
	<lastBuildDate>Wed, 21 Dec 2011 20:07:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Google Launches Online Fonts</title>
		<link>http://www.allaboutduncan.com/2010/google-launches-online-fonts/</link>
		<comments>http://www.allaboutduncan.com/2010/google-launches-online-fonts/#comments</comments>
		<pubDate>Fri, 21 May 2010 14:48:37 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/2010/google-launches-online-fonts/</guid>
		<description><![CDATA[The Google Font Directory lets you browse all the fonts available via the Google Font API. All fonts in the directory are available for use on your website under an open source license and served by Google servers. View font &#8230; <a href="http://www.allaboutduncan.com/2010/google-launches-online-fonts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='posterous_autopost'>
<div class="posterous_bookmarklet_entry">
<blockquote>
<div>
<p>The Google Font Directory lets you browse all the fonts available via the  <a href="http://code.google.com/apis/webfonts/">Google Font API</a>. All fonts in the directory are available  for use on your website under an open source license and served by Google servers.</p>
<p>View font details to get the code needed to embed the font on your web site. Please also visit our  <a href="http://code.google.com/apis/webfonts/docs/getting_started.html" title="Developer's Guide - Google Font API - Google Code">quick start guide</a>  and <a href="http://code.google.com/apis/webfonts/faq.html" title="Google Font API - Google Code">FAQ page</a>.  For more help and suggestions, use our <a href="http://www.google.com/moderator/#16/e=66ca" title="Google Moderator">moderator page</a></p>
</div>
</blockquote>
<div class="posterous_quote_citation">via <a href="http://code.google.com/webfonts">code.google.com</a></div>
<p>Use web fonts on your site with just a few lines of code &#8211; and Google hosts the font for you. Much easier than SIFR or any other method that&#8217;s previously been available &#8211; and it works on IE6.</p>
</div>
<p style="font-size: 10px;">  <a href="http://posterous.com">Posted via web</a>   from <a href="http://allaboutduncan.posterous.com/google-launches-online-fonts">Phillip Duncan&#8217;s posterous</a>  </p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2010/google-launches-online-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memory Size Bytes Exhausted Error</title>
		<link>http://www.allaboutduncan.com/2007/memory-size-bytes-exhausted-error/</link>
		<comments>http://www.allaboutduncan.com/2007/memory-size-bytes-exhausted-error/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 20:38:33 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/memory-size-bytes-exhausted-error/</guid>
		<description><![CDATA[A big thanks to TechTracer for pointing me in the right direction for a frustrating WordPress error. After upgrading to WordPress 2.3 (fairly painless, despite the major changes due to &#8220;tag&#8221; implementation) I couldn&#8217;t upload images. Any image over 100K &#8230; <a href="http://www.allaboutduncan.com/2007/memory-size-bytes-exhausted-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A big thanks to <a href="http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/" target="_blank">TechTracer</a> for pointing me in the right direction for a frustrating <a href="http://wordpress.org/" target="_blank">WordPress</a> error.</p>
<p>After upgrading to WordPress 2.3 (fairly painless, despite the major changes due to &#8220;tag&#8221; implementation) I couldn&#8217;t upload images. Any image over 100K would produce an error stating:  <em>Allowed memory size of 16388608 bytes exhausted (tried to allocate 6400 bytes)</em>. It also made reference to the<strong> includes\image.php</strong> file.</p>
<p>After reading the TechTracer post, I added one line of code just after the <strong>&lt;? php</strong> tag in the <em>image.php</em> file:</p>
<blockquote><p>
ini_set(&#8216;memory_limit&#8217;,&#8217;32M&#8217;);
</p></blockquote>
<p>The additional functions in WordPress (tags) and the plug-ins that I&#8217;m running must max out the memory. Now, I can upload my images and WordPress will resize and generate thumbnails just like it should (using the <a href="http://blog.japonophile.com/flexible-upload/" target="_blank">excellent Flexible Upload</a> plug-in, that is).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/memory-size-bytes-exhausted-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smashing Magazine&#8217;s 10 Usability Nightmares</title>
		<link>http://www.allaboutduncan.com/2007/smashing-magazines-10-usability-nightmares/</link>
		<comments>http://www.allaboutduncan.com/2007/smashing-magazines-10-usability-nightmares/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 14:16:17 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/smashing-magazines-10-usability-nightmares/</guid>
		<description><![CDATA[Smashing Magazine has posted 10 Usability Nightmares You Should Be Aware of and it&#8217;s a great read. Several things in there that all developers have probably been guilty of at one time or another. Read it and then try to &#8230; <a href="http://www.allaboutduncan.com/2007/smashing-magazines-10-usability-nightmares/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.smashingmagazine.com/2007/09/27/10-usability-nightmares-you-should-be-aware-of/" target="_blank">Smashing Magazine has posted 10 Usability Nightmares You Should Be Aware of</a> and it&#8217;s a great read. Several things in there that all developers have probably been guilty of at one time or another. Read it and then try to remove as much of them from your sites as you can.</p>
<p>Smashing Magazine also provided a list of <strong>8 Usability Checkpoints</strong> as well. Just read the article for more info on each one listed below.</p>
<blockquote><p>1. You don&#8217;t use pop-ups.<br />
2. You don&#8217;t change users&#8217; window size.<br />
3. You don&#8217;t use too small font sizes.<br />
4. You don&#8217;t have unclear link text.<br />
5. You don&#8217;t have dead links.<br />
6. You have at most one animation per page.<br />
7. You make it easy to contact you.<br />
8. Your links open in the same window.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/smashing-magazines-10-usability-nightmares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.3 New Features</title>
		<link>http://www.allaboutduncan.com/2007/wordpress-23-new-features/</link>
		<comments>http://www.allaboutduncan.com/2007/wordpress-23-new-features/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 13:45:34 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/wordpress-23-new-features/</guid>
		<description><![CDATA[WordPress 2.3 is right around the corner. Schedule for release on Sept. 24, it has several nice, new features. To get up to speed, I&#8217;d recommend reading 10 Things You Need to Know About WordPress 2.3. It&#8217;s the first article &#8230; <a href="http://www.allaboutduncan.com/2007/wordpress-23-new-features/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wordpress.org" target="_blank">WordPress</a> 2.3 is right around the corner. Schedule for release on Sept. 24, it has several nice, new features. To get up to speed, I&#8217;d recommend reading <a href="http://technosailor.com/10-things-you-need-to-know-about-wordpress-23/" target="_blank">10 Things You Need to Know About WordPress 2.3</a>. It&#8217;s the first article I&#8217;ve seen that sums up all the work and changes from 2.2 to 2.3 in an easy to understand format.</p>
<p>The most notable change is the support for &#8220;tagging&#8221; posts. Similar to Flickr and other sites, posts will not have categories and can also be tagged with more general relationships. This addition changes the structure of the WP database and could possibly break some of you favorite WP plug-ins.</p>
<p>I&#8217;ve installed Release Candidate 1 on another site and the only casualty was the <a href="http://www.sonsofskadi.net/extended-live-archive/" target="_blank">excellent Extended Live Archive plug-in</a>. I doubt the problem will be fixed, since the plug-in has seen little activity. Maybe someone will come along with something similar for 2.3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/wordpress-23-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Post Like a Pirate</title>
		<link>http://www.allaboutduncan.com/2007/post-like-a-pirate/</link>
		<comments>http://www.allaboutduncan.com/2007/post-like-a-pirate/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 14:13:52 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[pirate]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/post-like-a-pirate/</guid>
		<description><![CDATA[Thanks to Dougal Campbell&#8217;s Text-Filter-Suite, all the posts on the site should be formatted in &#8220;pirate speak&#8221; in honor of International Talk Like A Pirate Day. Everything should resume to normal tomorrow. Now go talk like a pirate.]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://dougal.gunters.org/blog/2004/08/30/text-filter-suite" target="_blank">Dougal Campbell&#8217;s Text-Filter-Suite</a>, all the posts on the site should be formatted in &#8220;pirate speak&#8221; in honor of <a href="http://en.wikipedia.org/wiki/Talk_like_a_pirate" target="_blank">International Talk Like A Pirate Day.</a> Everything should resume to normal tomorrow. Now go talk like a pirate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/post-like-a-pirate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FCK Editor Revisited &#8211; Adding a Custom Link Style</title>
		<link>http://www.allaboutduncan.com/2007/fck-editor-revisited-adding-a-custom-link-style/</link>
		<comments>http://www.allaboutduncan.com/2007/fck-editor-revisited-adding-a-custom-link-style/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 14:06:11 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dnn]]></category>
		<category><![CDATA[dotnetnuke]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/fck-editor-revisited-adding-a-custom-link-style/</guid>
		<description><![CDATA[I&#8217;ve had a few questions/comments on using Custom Styles with FCK Editor, so here&#8217;s a style that I created that will format any link you apply it to as a red button that changes color on mouse over. Add this &#8230; <a href="http://www.allaboutduncan.com/2007/fck-editor-revisited-adding-a-custom-link-style/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a few questions/comments on using Custom Styles with FCK Editor, so here&#8217;s a style that I created that will format any link you apply it to as a red button that changes color on mouse over.</p>
<p>Add this CSS to the <em>fck.css</em> and <em>portal.css</em> files in you PORTALS folder.</p>
<pre class="code">
/* Both variations --a.color-- and --span.color a--
    are needed to handle DNN's span applications
    not being consistent */

.red_button, a.red_button:link, a.red_button:visited,
 span.red_button a, span.red_button a:link,
 span.red_button a:visited {
        font-weight: bold;
	font-size:10px;
	color: #FFF;
	background-color:#C00;
	padding:4px 8px;
	text-decoration: none;
	border-top: 1px solid #DFDFDF;
	border-left: 1px solid #DFDFDF;
	border-bottom: 1px solid #333;
	border-right: 1px solid #333;
	}

a:hover span.red_button,
span.red_button a:hover {
	background-color:#900;
	border-top: 1px #31557f solid;
	border-left: 1px #31557f solid;
	border-bottom: 1px #666666 solid;
	border-right: 1px #666666 solid;
	text-decoration:none
}</pre>
<p>Be sure to add the following to the fck.xml file, to append the style to the menu in the FCK editor.</p>
<pre class="code">
&lt;Style name="red_button" element="span"&gt;
  &lt;Attribute name="class" value="red_button" /&gt;
&lt;/Style&gt;</pre>
<p>Hope this helps, post any questions in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/fck-editor-revisited-adding-a-custom-link-style/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Resizer Technology for Images</title>
		<link>http://www.allaboutduncan.com/2007/resizer-technology-for-images/</link>
		<comments>http://www.allaboutduncan.com/2007/resizer-technology-for-images/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 15:15:37 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/resizer-technology-for-images/</guid>
		<description><![CDATA[This has got to be one of the coolest image editing innovations ever. Evidently, one of the developers of this technology has been hired by Adobe. Let&#8217;s hope this is added to Photoshop, or maybe even better, as a plug-in.]]></description>
			<content:encoded><![CDATA[<p align="center"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/qadw0BRKeMk"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/qadw0BRKeMk" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p>This has got to be one of the coolest image editing innovations ever. Evidently, one of the developers of this technology has been hired by Adobe. Let&#8217;s hope this is added to Photoshop, or maybe even better, as a plug-in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/resizer-technology-for-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Source Chart Extension for Firefox</title>
		<link>http://www.allaboutduncan.com/2007/source-chart-extension-for-firefox/</link>
		<comments>http://www.allaboutduncan.com/2007/source-chart-extension-for-firefox/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 13:27:41 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/source-chart-extension-for-firefox/</guid>
		<description><![CDATA[Just found a new Firefox Extension that&#8217;s quickly become a favorite. The View Source Chart extension works similar to a &#8220;View Source&#8221; command, but formats the page code in easy to read, color-coded blocks. It&#8217;s great for finding tags or &#8230; <a href="http://www.allaboutduncan.com/2007/source-chart-extension-for-firefox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just found a new <a href="https://addons.mozilla.org/en-US/firefox/browse/type:1" target="_blank">Firefox Extension</a> that&#8217;s quickly become a favorite. The <a href="http://jennifermadden.com/scripts/ViewRenderedSource.html" target="_blank">View Source Chart</a> extension works similar to a &#8220;View Source&#8221; command, but formats the page code in easy to read, color-coded blocks. It&#8217;s great for finding tags or code that are causing rendering problems or other issues. When debugging a site, you may not know exactly what you&#8217;re looking for, but with the nice hierarchy Source Chart provides, it&#8217;s easy to spot the item that&#8217;s out of place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/source-chart-extension-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leaflets for Your iPhone</title>
		<link>http://www.allaboutduncan.com/2007/leaflets-for-your-iphone/</link>
		<comments>http://www.allaboutduncan.com/2007/leaflets-for-your-iphone/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 18:51:01 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/leaflets-for-your-iphone/</guid>
		<description><![CDATA[Sure, I&#8217;d like to have an iPhone. However, since I don&#8217;t have $600 to drop on a new phone (and I&#8217;m indentured to Sprint for at least another year &#8211; or more). I&#8217;ll settle for playing with the Leaflets web &#8230; <a href="http://www.allaboutduncan.com/2007/leaflets-for-your-iphone/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sure, I&#8217;d like to have an <a href="http://www.apple.com/iphone/" target="_blank">iPhone</a>. However, since I don&#8217;t have $600 to drop on a new phone (and I&#8217;m indentured to <a href="http://www.sprint.com/" target="_blank">Sprint</a> for at least another year &#8211; or more). I&#8217;ll settle for playing with the <a href="http://www.getleaflets.com/screenshots/#" target="_blank">Leaflets web based demo</a>.</p>
<p>To get the full effect, you&#8217;ll need to be running <a href="http://www.apple.com/safari/download/" target="_blank">Safari 3</a> on a Mac or PC. The idea of <a href="http://www.getleaflets.com/" target="_blank">Leaflets</a> is a great one. Provide a portal that formats a lot of the popular RSS based services for iPhone viewing. The RSS / Feeds view is very efficient and all the demos read very well on the small screen of the iPhone.</p>
<p>Still, the negatives on the iPhone (no MS Exchange, no high-speed data, etc.) make me want to wait for a later version anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/leaflets-for-your-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embiggen Your Soul (and TinyURLs)</title>
		<link>http://www.allaboutduncan.com/2007/embiggen-your-soul-and-tinyurls/</link>
		<comments>http://www.allaboutduncan.com/2007/embiggen-your-soul-and-tinyurls/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 13:42:52 +0000</pubDate>
		<dc:creator>allaboutduncan</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[simpsons]]></category>

		<guid isPermaLink="false">http://www.allaboutduncan.com/index.php/2007/embiggen-your-soul-and-tinyurls/</guid>
		<description><![CDATA[&#8220;Hitch that team up Jebediah Springfield, whip them horses, let them wagons roll. That a people might embiggen America, that a man might embiggen his soul. his soul, his soul, &#8230;, &#8230;&#8221; Jebediah: [on film] A noble spirit embiggens the &#8230; <a href="http://www.allaboutduncan.com/2007/embiggen-your-soul-and-tinyurls/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>    &#8220;Hitch that team up Jebediah Springfield,<br />
    whip them horses, let them wagons roll.<br />
    That a people might embiggen America,<br />
    that a man might embiggen his soul.<br />
    his soul,<br />
    his soul, &#8230;, &#8230;&#8221;</p>
<p><strong> Jebediah:</strong> [on film] A noble spirit embiggens the smallest man.<br />
<strong>Edna:</strong> Embiggens?  I never heard that word before I moved to Springfield<br />
<strong>Ms.Hoover:</strong> I don&#8217;t know why.  It&#8217;s a perfectly cromulent word.</p></blockquote>
<p>Both of those quites are from <a href="http://www.snpp.com/episodes/3F13.html" target="_blank">Episode 3F13: Lisa the Iconoclast</a> from the Simpsons. Is it bad when I see a <a href="http://ghill.customer.netspace.net.au/embiggen/" target="_blank">JavaScript that expands</a> Tiny URLs and I immediately realize it&#8217;s named after a fake word from The Simpsons?</p>
<p>Seems there&#8217;s also a <a href="http://www.embiggen.net/" target="_blank">PHP/MySQL Content Management System called Embiggen</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allaboutduncan.com/2007/embiggen-your-soul-and-tinyurls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

