<?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>Brian Cribb</title>
	<atom:link href="http://www.briancribb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.briancribb.com</link>
	<description>Front-end Web Developer</description>
	<lastBuildDate>Tue, 07 Feb 2012 02:16:07 +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>Kind Words Can Lead to Swag</title>
		<link>http://www.briancribb.com/2012/02/kind-words-can-lead-to-swag/</link>
		<comments>http://www.briancribb.com/2012/02/kind-words-can-lead-to-swag/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 02:16:07 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[swag]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=417</guid>
		<description><![CDATA[There was a package on my desk today. It was a bit of a surprise since I&#8217;ve been on the job for less than a month and I don&#8217;t deal with vendors or customers. But things cleared up when I &#8230; <a href="http://www.briancribb.com/2012/02/kind-words-can-lead-to-swag/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There was a package on my desk today. It was a bit of a surprise since I&#8217;ve been on the job for less than a month and I don&#8217;t deal with vendors or customers. But things cleared up when I opened it. Inside was a t-shirt and a card from the folks at <a href="www.lynda.com">Lynda.com</a>. Seriously, they sent me a shirt. The card read:</p>
<blockquote><p>Thanks for your blog post, Brian!</p>
<p>Happy Learning,</p>
<p>Michael</p>
</blockquote>
<p>That&#8217;s right. I posted a link to <a title="A Little Help from Lynda Weinman" href="http://www.briancribb.com/2012/01/a-little-help-from-lynda-weinman/">this blog post</a> on my Facebook, Twitter and Google+ accounts, and they found it. Do you know what this means? Someone besides me is actually reading this blog! According to the business card enclosed, my one confirmed reader is <a href="http://www.lynda.com/Michael-Ninness/45-1.html">Michael Ninness</a>, Vice President of Content at Lynda.com. </p>
<p><div id="attachment_419" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.briancribb.com/wp-content/uploads/2012/02/IMG_2319.jpg"><img class="size-medium wp-image-419" title="My spiffy new t-shirt" src="http://www.briancribb.com/wp-content/uploads/2012/02/IMG_2319-300x300.jpg" alt="My spiffy new t-shirt" width="300" height="300" /></a><p class="wp-caption-text">It says &quot;Trust me. I&#39;m a trained professional.&quot; And of course, Lynda&#39;s logo is on the back.</p></div>
<p>It also means that the internet is more of a small town than I had realized. Not only did they notice me, but they looked around a bit to see where I work. There are several levels of awesome here. Merely being found was kind of neat, so I would have been more than pleased with an email. But Michael decided to kick it up a notch and send me a physical gift. That&#8217;s the power of social media, folks. Kind words going back and forth, a free t-shirt, and oh yeah&#8230; thanks to the videos I&#8217;ve been watching, I&#8217;ll be able to make that WordPress plugin I was thinking about. Nice and shiny, with bells, whistles and everything.</p>
<p>So thanks, Michael. I&#8217;ll wear this shirt proudly. <img src='http://www.briancribb.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2012/02/kind-words-can-lead-to-swag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Little Help from Lynda Weinman</title>
		<link>http://www.briancribb.com/2012/01/a-little-help-from-lynda-weinman/</link>
		<comments>http://www.briancribb.com/2012/01/a-little-help-from-lynda-weinman/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 14:31:50 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[lynda.com]]></category>
		<category><![CDATA[subscription]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=410</guid>
		<description><![CDATA[Lately I&#8217;ve been kicking around the idea of developing my own WordPress plugins, and posting the useful ones to the internet. I had intended to browse through the codex to figure out the details on how to make them and &#8230; <a href="http://www.briancribb.com/2012/01/a-little-help-from-lynda-weinman/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lynda.com/"><img class="alignleft size-full wp-image-411" title="Lynda.com" src="http://www.briancribb.com/wp-content/uploads/2012/01/lynda-logo-square-200.gif" alt="Lynda.com" width="200" height="200" /></a>Lately I&#8217;ve been kicking around the idea of developing my own WordPress plugins, and posting the useful ones to the internet. I had intended to browse through the codex to figure out the details on how to make them and add the admin pages, but I never seemed to get around to it. Then my new job gave me a leg up. They have a big, fancy account at <a href="http://www.lynda.com/" target="_blank">Lynda.com</a> for us web peeps. After checking out the content, I&#8217;ve decided that <a href="http://www.lynda.com/aboutus/LyndaWeinman.aspx" target="_blank">Lynda Weinman</a> is my new best friend.</p>
<p>That logo has been around for a <em>long time</em>, and I&#8217;ve always been impressed by her brand power. I mean, look at that thing. With glasses and a haircut, she made a distinctive logo that I&#8217;ll recognize <strong>forever</strong>. When I see her on the videos, I know instantly who I&#8217;m looking at. If I made an icon of myself reading a book, it would just look like some dude. No way it would work as well as Lynda&#8217;s.</p>
<p>But I digress. I&#8217;m not just writing this to give her some free <em>(and well-deserved)</em> advertisement. I&#8217;m writing this to tell you about the member&#8217;s area of her site, and how useful it is.</p>
<p>I&#8217;m a firm believer in books. You could search the internet to develop your web skills, but the web is vast and you only need a small fraction of it to achieve a particular goal. It&#8217;s really worth it to let an expert sift through the ocean of information and gather the best and most useful practices for you. Again and again I&#8217;ve been glad to pay the money for a book which leads me directly to the useful information I need, without digressing and without the assumption that I already know most of it. Seriously, some people should not write tutorials.</p>
<p>Lynda Weinman, and others like her, have helped us out with many a physical volume. But she also has lots of helpful and current web content. The only snag is that you have to pay for it, just as you would pay for a book. What you lose in the benefit of beloved paper and highlighters, you gain in plain English explanations of important concepts. It&#8217;s a win.</p>
<p>To be fair, this is the first site of this type that I&#8217;ve seen. I&#8217;m normally an <a href="http://oreilly.com/" target="_blank">O&#8217;Reilly Media</a> man, and I know that they have <a href="http://my.safaribooksonline.com/?cid=orm-nav-global&amp;portal=oreilly" target="_blank">similar web content which parallels their books</a>. I&#8217;ve been told that it&#8217;s excellent, but I haven&#8217;t jumped in yet because I&#8217;m still sort of attached to the feel and solid comfort of paper. I&#8217;m not sure how it compares to Lynda&#8217;s site, but if I ever check it out I&#8217;ll be sure to write a post on the subject.</p>
<p>All I can say for now is that you have two winning options available to you which I have personally taken advantage of: O&#8217;Reilly books from the local bookstore, and tutorial videos from Lynda.com. <em>(Did I mention that she has an iOS app? Because she does.)</em> You&#8217;ll be happy with either option.</p>
<p>However&#8230; the web moves forward so fast that physical books might not be the best idea in all cases. You can get O&#8217;Reilly books for your iPad or iPhone for a fraction of the price you&#8217;d pay for a physical book, and subscriptions to online content will always be current if you pick a good site like <a href="http://www.lynda.com/" target="_blank">Lynda.com</a> or <a href="http://my.safaribooksonline.com/?cid=orm-nav-global&amp;portal=oreilly" target="_blank">Safari Online</a> from O&#8217;Reilly Media. I suppose the best way forward would be to take a look at your spending. If you&#8217;re buying lots of books from O&#8217;Reilly, then maybe the subscription to their online versions could save you some money. If you just need some tutorial videos, then maybe a subscription to Lynda.com could prevent the need for a book in the first place.</p>
<p>It all depends upon what you need, and how much you&#8217;re already spending. It&#8217;s certainly not the kind of thing a casual reader would want to pay for every month. If you just need help on rare occasions, then you&#8217;d save more money by sifting through the web&#8217;s free content on your own.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2012/01/a-little-help-from-lynda-weinman/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Animating Space Stuff with the HTML5 Canvas</title>
		<link>http://www.briancribb.com/2011/12/animating-space-stuff-with-the-html5-canvas/</link>
		<comments>http://www.briancribb.com/2011/12/animating-space-stuff-with-the-html5-canvas/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 05:40:43 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=400</guid>
		<description><![CDATA[I finally got a chance to see the real differences between canvas and Flash. I built a neat little solar system animation with the canvas, which you can see here. It&#8217;s similar in many ways to something I did in &#8230; <a href="http://www.briancribb.com/2011/12/animating-space-stuff-with-the-html5-canvas/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I finally got a chance to see the real differences between canvas and Flash. I built a neat little solar system animation with the canvas, which you can see <a title="Solar System Animation" href="http://www.briancribb.com/samples/solar-system-animation/">here</a>. It&#8217;s similar in many ways to something I did in Flash a couple of years ago, so I had some basis for comparing the two. This isn&#8217;t a tutorial post, so I won&#8217;t go into too much detail about the code.</p>
<p>First of all, the canvas is fun. I built a star field animation at work last week that had several of us gathered around one machine, tweaking variables and trying out the API. It&#8217;s the kind of stuff that you could only do in Flash before, except that we&#8217;re just using Javascript. It was so nice to know that we could pursue this without paying a ton of money to Adobe. Eventually, I had to put a stop to the tweaking. After all, we were just building a 404 page. If we keep adding new features to the canvas, we&#8217;ll never be finished with it.</p>
<p>But I digress. Here are some ways in which the two differ. It&#8217;s not a complete list, of course.</p>
<h2>Good Stuff</h2>
<p>The canvas can draw programmatically, and can perform many of the tasks that we use Flash for. Circles, arcs, lines&#8230; you can do all that stuff with no trouble. Plus, it&#8217;s not restricted to the box it sits in. You can use JavaScript to pass information back and forth from the canvas to other parts of the page, (such as a form) and you don&#8217;t have to have a special program to debug things. This is especially important for a corporate environment. After all, you can&#8217;t debug somebody&#8217;s Flash code if your company machine doesn&#8217;t have Flash. Canvas promises to bring real animation to the web, and we&#8217;ll all be able to use it.</p>
<p>Also, much of the code is reusable, just like AS3 code. Once you learn something, you can easily adapt it for new situations. The star field you see in the solar system is the same one I built at work, with only minor adjustments.</p>
<h2>The Bad Stuff</h2>
<p>Two words. Browser Compatibility. Or more to the point, <em>Internet Explorer</em>. With Flash, you&#8217;re free to use fonts, images, and whatever else you like. If it works on your machine at home, it will work for the user&#8217;s desktop. But with canvas, you still have to worry about which browser is ahead, which is behind, and which features are common to both of them. You have to find a balance between moving forward and not leaving folks behind.</p>
<p>I tried my solar system animation in several browsers on my Mac, and the same several on my PC. The general results were surprising in a couple of places. As expected, my Macbook ran everything really well in every browser. On the PC, I got nice results from Chrome, Safari and Internet Explorer 9, but Firefox was rather choppy. (WTF, Mozilla? How did Microsoft get past you?)</p>
<h2>Adjustments and Conditionals</h2>
<p>In an effort to reduce the lag, I thought I would try to limit the number of canvases being used. At the time of this writing, there is a snowfall animation in my header. Could this be using too much processor power? I doubt it, but why not conserve anyway?</p>
<p>My WordPress theme is already set to pull in the extra JavaScript only if there&#8217;s a canvas on the page. <em>(I put the id and the script&#8217;s filename into Custom Fields, and build the url from that. No custom field, no JavaScript link.)</em> Just to save a little more, I set it up to only use the header animation if there&#8217;s no custom field for the page. If you go to the solar system page, you&#8217;ll get a lovely sunset photo of Lake Champlain. I&#8217;m not sure how much power I&#8217;m saving, but at least I got to play with some PHP while I was doing this. I&#8217;ll check the page from work, just to see if there was a problem with my PC at home.</p>
<h2>My Conclusion</h2>
<p>Although the HTML5 Canvas isn&#8217;t a complete Flash-killer, it&#8217;s getting there and it will only gain support as time goes by. Now is an excellent time to start using it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/12/animating-space-stuff-with-the-html5-canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Will Never Be Finished with My Running Site</title>
		<link>http://www.briancribb.com/2011/11/i-will-never-be-finished-with-my-running-site/</link>
		<comments>http://www.briancribb.com/2011/11/i-will-never-be-finished-with-my-running-site/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 01:14:42 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[legacy]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=357</guid>
		<description><![CDATA[I&#8217;m using a slightly altered version of the WordPress default theme for three basic reasons. First of all, it&#8217;s a good way to get to know the back-end as a user, and to take advantage of the out-of-the-box features of &#8230; <a href="http://www.briancribb.com/2011/11/i-will-never-be-finished-with-my-running-site/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using a slightly altered version of the WordPress default theme for three basic reasons. First of all, it&#8217;s a good way to get to know the back-end as a user, and to take advantage of the out-of-the-box features of WordPress. Second, it allows me to spend less time tweaking my resume site and more time working on stuff for clients and my day job. And lastly, I tend to save my tinkering for my running site.</p>
<p>I&#8217;ve had that site for&#8230; well, forever. It started as a Flash site, back when I was first learning the program. If you&#8217;re cringing with the idea of what that was like, then you&#8217;re not alone. It had too much art and way too much load time. By the time I learned how to maximize Flash for the web, I was smart enough not to build Flash sites.</p>
<p>Next. It turned into a horrifying pile of legacy HTML code. Each page was created manually, with no CMS involved. I used Dreamweaver templates to keep the common elements straight, and God help me, I used the WYSIWYG editor. (Seriously. I really did use that thing.) Even worse, I used tables for layout and my header was an image map. It sounds terrible these days, but those used to be standard practices for designers. If you took a class, they would teach you layout tables. Looking back, it gives me chills.</p>
<p>The content also changed as I went along. It started out as a blog of sorts, although people weren&#8217;t really using that word in those days. I would write articles and rants, and post photos. Eventually, I stopped blogging about whatever and started focusing on running events. It was a good way to avoid writer&#8217;s block, and frankly it&#8217;s kind of difficult to write a daily rant. Maybe it&#8217;s easy for some folks, but I can&#8217;t rely upon the world to tick me off every single day.</p>
<p>So eventually, I found my way to WordPress. My first theme was pretty rough. Looked horrible, had little flaws everywhere&#8230;it was a mess. Then I redesigned it, and I did a little better. Then I redesigned it again, and tinkered, and then redesigned. From that first painful Flash site to the one you&#8217;ll find today, there have been 10 versions of that thing. If you count major changes to the WordPress themes, I&#8217;m at 15. Holy crap, that&#8217;s more than the Doctor&#8217;s regenerations!</p>
<p>Recently I went through the whole thing, post by post, for some major changes. I wanted to get rid of a photo gallery plugin, make use of featured images, and just generally clean things up. I wanted to truly separate the content from the presentation. Since many posts from the older incarnations had been left behind like a well-loved scarf on a British actor, I was left with 97 posts to work on. I pulled out shortcodes, removed embeds, and did whatever I could to minimize the markup. The only embeds I decided to keep were from Flickr and YouTube. <em>(I updated the YouTube embeds, but I noticed that the old ones still worked. Good job, YouTube.)</em></p>
<p>And then, I went through the theme and <a title="Another Mighty Theme" href="http://www.briancribb.com/2011/11/another-mighty-theme/">started over</a>. Nothing fancy. I got rid of WP-Less, converting the styles to plain old CSS before pulling the important ones over. Most were dumped since I was trying to be cleaner. Then I took the <a href="http://wordpress.org/extend/themes/boilerplate">HTML5 Boilerplate Theme</a> and added the <a href="http://960.gs/">960 Grid System</a> to it, building a basic blog with a sidebar. Then I added some PHP snippets to single.php to pop my Garmin maps and Flickr galleries down at the end of the post, based upon a custom field. It seemed easy enough, and I thought I was done.</p>
<p>Sigh.</p>
<p>Nope. Not done. I keep finding little things. I never styled the H3 tags within the articles, and I had some trouble with floated elements and the stuff below them not respecting top margins. There&#8217;s other stuff in the posts, too. And yeah, I&#8217;ll go through them&#8230; but not tonight. Tonight, I think I&#8217;ll watch some Doctor Who. You know, the old stuff. With William Hartnell. And maybe I&#8217;ll Netflix some Tom Baker tomorrow.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/11/i-will-never-be-finished-with-my-running-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speech Bubbles with CSS Alone</title>
		<link>http://www.briancribb.com/2011/11/speech-bubbles-with-css-alone/</link>
		<comments>http://www.briancribb.com/2011/11/speech-bubbles-with-css-alone/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 03:09:20 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[borders]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=337</guid>
		<description><![CDATA[First of all, the styles: .comment-pointer { border-top: 25px solid #fff; border-left:25px solid transparent; } You can add more, but that&#8217;s basically the key to things. It&#8217;s all in the borders, and unlike the many tutorials and blog posts I&#8217;ve &#8230; <a href="http://www.briancribb.com/2011/11/speech-bubbles-with-css-alone/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First of all, the styles:</p>
<pre>.comment-pointer {
 border-top: 25px solid #fff;
 border-left:25px solid transparent;
 }</pre>
<p>You can add more, but that&#8217;s basically the key to things. It&#8217;s all in the borders, and unlike the many tutorials and blog posts I&#8217;ve read recently, I&#8217;m actually going to tell you how it works.</p>
<p><div id="attachment_352" class="wp-caption alignleft" style="width: 260px"><img class="size-full wp-image-352" title="Comment Pointer Example" src="http://www.briancribb.com/wp-content/uploads/2011/11/comment-pointer-example.jpg" alt="" width="250" height="150" /><p class="wp-caption-text">It looks like a triangle, but it&#39;s really a box with a weird diagonal border effect.</p></div>
<p>I just finished a basic redesign of my running blog. For the comments, I became attached to the idea of having dialogue bubbles&#8230; because yeah, I love comic books. After consulting Google and a steaming pile of not-very-helpful blog posts and so-called &#8220;tutorials&#8221;, I finally found a way to get the active code without all the extra stuff. I didn&#8217;t want to make it orange just like that other guys, I wanted to know <strong>why</strong> the triangle was being formed.</p>
<p>Finally, I found <a href="http://www.youtube.com/watch?v=LTxmMSJERUQ">this YouTube page</a>. If you decide to watch it, be ready to skip forward. I mean, a <strong>lot</strong>. Most of the video is eaten up by the guy slowly typing out lines of code, and he speaks as though he could fall asleep at any moment. However, he was very helpful. After skipping forward through the entire vid, he finally said the magic words: &#8220;It&#8217;s just a box.&#8221;</p>
<p><div id="attachment_341" class="wp-caption alignleft" style="width: 210px"><a href="http://www.briancribb.com/wp-content/uploads/2011/11/bamboo-picture-frame.jpg"><img class="size-full wp-image-341" title="Bamboo Picture Frame" src="http://www.briancribb.com/wp-content/uploads/2011/11/bamboo-picture-frame.jpg" alt="Bamboo Picture Frame" width="200" height="240" /></a><p class="wp-caption-text">Kind of not-very-similar to this bamboo picture frame. Sort of.</p></div>
<p>The Trick of the Triangle is in the way borders work. They aren&#8217;t just lines on the sides. Their origin points are on diagonal corners. I know that sounds weird, but think of it as a picture frame. the imaginary center line of the border goes from one diagonal corner to another, so it seems to lean over if you give it an insane thickness.</p>
<p>The best way to test this is to just open up a page that&#8217;s using the technique and play around with things in Firebug. If you hold down the arrow key with the border thickness selected, you can see the triangles form.</p>
<h2>Colors are Important</h2>
<p>The end result of this effect is to create a box with two colors in it, separated on a diagonal line. To get the triangle effect, you have to nix the color on one side of it. Don&#8217;t just set it to the same color as the background. One of these days you might change that, and you would have all these crazy little triangles floating around. Set it to transparent, as I have above.</p>
<p>So there you are. CSS Speech Bubbles. If you&#8217;d like to see an example, you can find it in <a href="http://www.themightycribb.com/2011/05/crawdaddy-dash-2011/">one of my race reviews</a>. Happy Firebugging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/11/speech-bubbles-with-css-alone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Shortcodes Outside the Loop.</title>
		<link>http://www.briancribb.com/2011/11/wordpress-shortcodes-outside-the-loop/</link>
		<comments>http://www.briancribb.com/2011/11/wordpress-shortcodes-outside-the-loop/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 05:27:43 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[shortcodes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=325</guid>
		<description><![CDATA[There. Hopefully that showed up in the Google excerpt. (I hate when the useful stuff is buried deep down on the page.) What you're looking at is a handy solution to a particular kind of problem. As I've written before, shortcodes can be a mixed blessing. On the one hand, they allow you to access some pretty cool features from a wealth of Wordpress plugins. On the other hand, you'll have those shortcodes in your content pretty much forever, even if you later decide to ditch the plugin. They're harmless, of course, but if you're like me then you just don't want the litter. <a href="http://www.briancribb.com/2011/11/wordpress-shortcodes-outside-the-loop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First of all, here&#8217;s the code:</p>
<pre><code>&lt;?php echo do_shortcode('[my shortcode here]'); ?&gt;</code></pre>
<p>There. Hopefully that showed up in the Google excerpt. <em>(I hate when the useful stuff is buried deep down on the page.)</em> What you&#8217;re looking at is a handy solution to a particular kind of problem. <a title="The Yin and Yang of Embeds and Shortcodes" href="http://www.briancribb.com/2011/10/the-yin-and-yang-of-embeds-and-shortcodes/">As I&#8217;ve written before</a>, shortcodes can be a mixed blessing. On the one hand, they allow you to access some pretty cool features from a wealth of WordPress plugins. On the other hand, you&#8217;ll have those shortcodes in your content pretty much forever, even if you later decide to ditch the plugin. They&#8217;re harmless, of course, but if you&#8217;re like me then you just don&#8217;t want the litter.</p>
<p>I use one shortcode in my running site, for a Flickr gallery plugin. Since I tend to put it at the end of my articles, I started fishing around for a way to put the code in from outside the loop. Just a few minutes on Google resulted in the example above. This way, I have the shortcode call in just one place. If I ever change Flickr plugins, it won&#8217;t be an act of congress to clean them up.</p>
<p>However, I feel I should mention that there are times when you&#8217;ll want to use them as intended. If your design calls for shortcodes withing posts, then of course you should do just that. It&#8217;s nice to have an option, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/11/wordpress-shortcodes-outside-the-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Mighty Theme</title>
		<link>http://www.briancribb.com/2011/11/another-mighty-theme/</link>
		<comments>http://www.briancribb.com/2011/11/another-mighty-theme/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 01:45:51 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[960]]></category>
		<category><![CDATA[Boilerplate]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=313</guid>
		<description><![CDATA[Okay, so I&#8217;m working on my running blog again. The last version was my first venture with the HTML5 Boilerplate theme from Aaron T. Grogg. It&#8217;s a great idea based upon another great idea: Starkers. Starkers is a stripped down &#8230; <a href="http://www.briancribb.com/2011/11/another-mighty-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Okay, so I&#8217;m working on my running blog again. The last version was my first venture with the <a href="http://wordpress.org/extend/themes/boilerplate">HTML5 Boilerplate theme</a> from Aaron T. Grogg. It&#8217;s a great idea based upon another great idea: <a href="http://starkerstheme.com/">Starkers</a>.</p>
<p>Starkers is a stripped down theme with the bare minimum of markup and styles. It&#8217;s a working engine with no fancy stuff, and a pretty good starting point. The Boilerplate theme starts with Starkers and adds some cool bells and whistles on the back end. You can check boxes for things like Modernizr, Selectivizr, and a bunch of other handy tools. Even better, it will set up a site-specific JavaScript file for you. It&#8217;s a handy theme.</p>
<p>This evening I decided to start again, this time using the <a href="http://960.gs/">960 Grid System</a>. I was impressed by how easy it was to get started. Last time I tinkered with every little piece of the theme, but this time I wanted to keep it simple. At first I wanted to make no changes to the theme besides CSS, but I really wanted to put the grid in there. So I just started placing container div tags into the pages and started adding my styles to the theme.</p>
<p>It really didn&#8217;t take much to shape the content. If you just let the tools do what they do best, you can move pretty quick. It&#8217;s a little easier considering that I already have a color scheme and general design, but it&#8217;s still progressing nicely. When I&#8217;m done with the basic structure, I&#8217;ll be adding support for featured images, and maybe add a few canvases to the mix. I&#8217;ll bet the canvas could make some neat graphs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/11/another-mighty-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Yin and Yang of Embeds and Shortcodes</title>
		<link>http://www.briancribb.com/2011/10/the-yin-and-yang-of-embeds-and-shortcodes/</link>
		<comments>http://www.briancribb.com/2011/10/the-yin-and-yang-of-embeds-and-shortcodes/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 11:34:10 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[shortcodes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=299</guid>
		<description><![CDATA[I&#8217;ve been blogging since before it was called blogging, but I always ran into the same problem. Before I discovered the wonders of a CMS, I kept reaching a sort of critical mass where maintaining the site became a progressively &#8230; <a href="http://www.briancribb.com/2011/10/the-yin-and-yang-of-embeds-and-shortcodes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been blogging since before it was called blogging, but I always ran into the same problem. Before I discovered the wonders of a CMS, I kept reaching a sort of critical mass where maintaining the site became a progressively difficult problem. Each time I would go back and redesign everything, and some of the old articles would get tossed out in the process. (This is why I don&#8217;t have posts from the 90&#8242;s in my blog.) After I discovered WordPress, I thought that kind of thing was over, but apparently I had one more mess to clean up. Bunches of embeds and shortcodes.</p>
<p>Both of these are excellent tools, but if you&#8217;re not careful you could find yourself married to an old WordPress plugin, and you might even wind up with some holes in your content. Let me explain.</p>
<h2>The Good News</h2>
<p>Embeds are a useful tool. Video can get complicated on your own site, but it&#8217;s not a problem if you post something to YouTube. Just go to your YouTube page and copy/paste the embed code they provide into your blog post. Simple. I do this with my Garmin maps too, and it&#8217;s a really cool resource.</p>
<p>Shortcodes are also a handy tool in WordPress. It allows people to use some pretty complex code without actually writing it themselves. This is good for bloggers who don&#8217;t know how to code, and for developers who don&#8217;t want to invent something that already exists. For example, the galleries on my <a href="http://www.themightycribb.com">running blog</a> all come from Flickr. I just put <em>[a bit of text inside a couple of brackets]</em> and the gallery auto-magically shows up on my site.</p>
<h2>The Bad News</h2>
<p>Although YouTube remained stable, Garmin Connect recently changed the size of their embed content just ever-so-slightly. I know this because scroll bars appeared on each and every map I had ever posted. This puts me in a painful spot, because I&#8217;ve dropped that old embed code into a number of posts on my running site. I was going to have to go into all of them and correct it. Yikes!</p>
<p>And then there are the shortcodes. Until recently I used a photo gallery plugin to show my race photos. Eventually I moved that stuff to Flickr, but the shortcodes still existed in all those previous posts. I couldn&#8217;t delete that plugin without losing a ton of content. Once I got the photos uploaded to Flickr with all the proper descriptions and tags, I had to go back through each and every post to clean out references to the old gallery system. <em>(The shortcodes themselves would just sit there harmlessly, but the posts were designed around those references.)</em></p>
<p>Even worse, I used to post lots of videos from 12seconds.tv, which has gone out of business. All of the 12seconds embeds basically died on my site. That&#8217;s another bunch of posts that I had to clean up. It was a terrible mess, and it effectively killed my desire to post more content.</p>
<h2>The Solution</h2>
<p>My first impression is to keep shortcodes out of your posts entirely, but this wouldn&#8217;t be practical for every situation. If you need to use plugin shortcodes or embeds inside a post, then choose very carefully. Make sure you really want that stuff in there for the long haul. As with any new site design, don&#8217;t just think of today. Think of the next few years. My desire to tinker with every single thing eventually swung around and bit me. With a little more care, I could have avoided all the mess.</p>
<p>For my blog, I tended to put these things at the end of my posts, so I just altered my template a bit. My single.php file checks for the presence of certain custom fields. If I&#8217;ve put the number of a Flickr set or a Garmin activity into their respective fields, then the template will write the embed or shortcode for me after the post. This means that the code in question exists only in one place, and I can make global changes without fear. If I change themes, I just move that little bit of code into the new template file and I&#8217;m all set. <em>(Flickr and YouTube are the exeptions, of course. They&#8217;re both pretty stable, so I don&#8217;t mind embeding their content in my posts.)</em></p>
<p>So remember&#8230; don&#8217;t be like me. Don&#8217;t make a big mess for yourself that you&#8217;ll eventually have to spend bunches of time cleaning up. Shortcodes and embeds can be a problem, but they can also be your best friends if you plan carefully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/10/the-yin-and-yang-of-embeds-and-shortcodes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>From Flash to Canvas</title>
		<link>http://www.briancribb.com/2011/10/from-flash-to-canvas/</link>
		<comments>http://www.briancribb.com/2011/10/from-flash-to-canvas/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 03:02:33 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.briancribb.com/?p=278</guid>
		<description><![CDATA[For a very long time, I tinkered with Flash. I started like most people, with simple animations that were tweened on the timeline. Over time, I moved away from the timeline and started writing class files and making full use &#8230; <a href="http://www.briancribb.com/2011/10/from-flash-to-canvas/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For a very long time, I tinkered with Flash. I started like most people, with simple animations that were tweened on the timeline. Over time, I moved away from the timeline and started writing class files and making full use of the display list.</p>
<p>But these days, Flash has fallen out of fashion. It&#8217;s not tough to understand why. Flash is expensive, and it&#8217;s the kind of thing that can be abused rather easily. I&#8217;m not talking about security, either. I&#8217;m talking about hefty files will all sorts of animation on the timeline and an aggravating animation to watch while you wait for it to download. Even worse, some sites have Flash intros just for the sake of having one. (Rule of thumb: if you think you need a &#8220;skip intro&#8221; button, then you shouldn&#8217;t have an intro at all. Seriously.)</p>
<p>But for all that, Flash was a king. There was no way to duplicate what Flash can offer. Vector graphics, animation&#8230; Flash had a monopoly on the good stuff. Well, until now.</p>
<p>Now we have HTML 5. With the video element, we can show content without a proprietary plugin. And with the canvas element, we can even do animation.</p>
<p><a href="http://shop.oreilly.com/product/0636920013327.do#"><img class="alignleft size-medium wp-image-279" title="HTML5 Canvas" src="http://www.briancribb.com/wp-content/uploads/2011/10/html5-canvas-book-228x300.jpg" alt="HTML5 Canvas" width="228" height="300" /></a>I figured it was time to get started on the transition, so I picked up a book on the subject. It&#8217;s an O&#8217;Reilly book, of course.</p>
<p>So far, it looks promising. The bad news is that the canvas element doesn&#8217;t have a display list like Flash does. Everything gets wiped out and redrawn every time you update it. The good news is that you can manipulate it with regular old JavaScript, and you can easily interact with other elements on a page. For instance, if you want a button to affect the canvas, it doesn&#8217;t have to be inside the canvas.</p>
<p>Over all, it looks very promising. It&#8217;s an open web standard, so there are bits that aren&#8217;t fully supported everywhere, but there&#8217;s quite a bit you can do right now. In fact, right now is the best time to learn it. Don&#8217;t worry if you&#8217;re currently a Flash person. Many of the concepts are similar, even if the language is a little different.</p>
<p>Over the next few months, I&#8217;m going to be tinkering with the HTML 5 canvas, just like I used to do with Flash. I&#8217;ll be pulling the Flash examples from this site and replacing them with something a little more modern. We&#8217;ll see what I can come up with.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briancribb.com/2011/10/from-flash-to-canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

