<?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>Sean McCambridge Design</title>
    <link>http://www.seanmccambridge.com/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>sean@seanmccambridge.com</dc:creator>
    <dc:rights>Copyright 2011</dc:rights>
    <dc:date>2011-11-02T00:22:42-05:00</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
    

    <item>
      <title>I don&#8217;t write much here anymore</title>
      <link>http://www.seanmccambridge.com/articles/page/i-dont-write-much-here-anymore/</link>
      <guid>http://www.seanmccambridge.com/articles/page/i-dont-write-much-here-anymore/#When:00:22:42Z</guid>
      <description>My site is long overdue for a redesign.&amp;nbsp; I&#8217;m thinking I&#8217;ll still have a blog on the new site, but it won&#8217;t be the focus.&amp;nbsp; I mean, why focus on something that you&#8217;re going to let get stale and old?&amp;nbsp; The realities are realities, and this blog isn&#8217;t much more than a spam magnet.&amp;nbsp; So here&#8217;s one last post over here as a reminder to reinvent my site.&amp;nbsp; I have a lot of recent work to share, but I&#8217;m going to save it for a fresh, clean seanmccambridge.com until I post it here.</description>
      <dc:subject></dc:subject>
      <dc:date>2011-11-02T00:22:42-05:00</dc:date>
    </item>

    <item>
      <title>Re&#45;rendering Facebook, Twitter and ShareThis social buttons when adding new content via AJAX</title>
      <link>http://www.seanmccambridge.com/articles/page/re-rendering-facebook-twitter-and-sharethis-social-buttons-when-adding-new-/</link>
      <guid>http://www.seanmccambridge.com/articles/page/re-rendering-facebook-twitter-and-sharethis-social-buttons-when-adding-new-/#When:19:21:44Z</guid>
      <description>I was working on a WordPress site today with social buttons for each post on archive pages.&amp;nbsp; The site also has AJAX pagination that appends posts to the page when you click &#8216;view more&#8217;.&amp;nbsp; The issue I ran into was when new content came in via AJAX, the social buttons in HTML and XFBML weren&#8217;t rendering their iframes or complete content.&amp;nbsp; They were just the placeholders specified in the source.


So here are three snippets to remember for Facebook, Twitter and ShareThis buttons:

Facebook
Facebook is simple.&amp;nbsp; It&#8217;s just a call to its XFBML parser.

FB.XFBML.parse();
ShareThis
Share this is also simple.

stButtons.locateElements();
Twitter
Twitter had a similar method in the past, but in new versions of their code the method was dropped.&amp;nbsp; So now you just have to reload the Twitter JS.&amp;nbsp; Not graceful, but it works.

(function(){

&amp;nbsp;&amp;nbsp;var twitterWidgets = document.createElement(&#8217;script&#8217;);

&amp;nbsp;&amp;nbsp;twitterWidgets.type = &#8216;text/javascript&#8217;;

&amp;nbsp;&amp;nbsp;twitterWidgets.async = true;

&amp;nbsp;&amp;nbsp;twitterWidgets.src = &#8216;http://platform.twitter.com/widgets.js&#8217;;

&amp;nbsp;&amp;nbsp;document.getElementsByTagName(&#8217;head&#8217;)[0].appendChild(twitterWidgets);

})();

I know I&#8217;m going to use these again.&amp;nbsp; So here they are.&amp;nbsp; Hopefully, this cures someone else&#8217;s headache in the future.</description>
      <dc:subject></dc:subject>
      <dc:date>2011-06-22T19:21:44-05:00</dc:date>
    </item>

    <item>
      <title>I just saved up to $120 roundtrip!!</title>
      <link>http://www.seanmccambridge.com/articles/page/i-just-saved-up-to-120-roundtrip/</link>
      <guid>http://www.seanmccambridge.com/articles/page/i-just-saved-up-to-120-roundtrip/#When:03:20:31Z</guid>
      <description>WTF, Southwest?





If I had a Save Me from the Hell of Modern Advertising Bill of Rights, the phrase &#8220;up to&#8221; would be banned.&amp;nbsp; Violators would have &#8220;MY IQ IS AS LITTLE AS 50&#8221; tattooed to their foreheads.


I just bought a plane ticket on Southwest.&amp;nbsp; I already bought it when they shoved this graphic in my face.&amp;nbsp; I didn&#8217;t really get a great deal.&amp;nbsp; I paid a little over $200 for a one&#45;way flight from Chicago, IL to Charleston, SC.&amp;nbsp; It wasn&#8217;t a bad deal, but it was nothing to light fireworks over.


Then, on the post&#45;transaction confirmation page, I get, &#8220;You just saved up to $120 roundtrip.&#8221;


First of all, isn&#8217;t their shopping cart software smart enough to know I bought a one&#45;way ticket?&amp;nbsp; Let&#8217;s say I saved up to $60 one&#45;way, taking the average.&amp;nbsp; So I might have paid $260 total for a one&#45;way ticket instead of $200?


Secondly, if you squint really hard and read the fine print, you&#8217;ll see that this cute graphic is telling me that Southwest doesn&#8217;t charge baggage fees, and if i was high&#45;maintenance enough to check a bunch of bags, then I would have saved $120 r/t.


Big effing deal &#45;&#45;&#45; last time I flew to Europe I paid $500 round trip, and I checked a bag.&amp;nbsp; That would be something to make a graphic about.


Enough hype.&amp;nbsp; Just tell me my credit card was approved.</description>
      <dc:subject></dc:subject>
      <dc:date>2011-04-25T03:20:31-05:00</dc:date>
    </item>

    <item>
      <title>I have no excuse</title>
      <link>http://www.seanmccambridge.com/articles/page/i-have-no-excuse/</link>
      <guid>http://www.seanmccambridge.com/articles/page/i-have-no-excuse/#When:23:59:41Z</guid>
      <description>I am a slacker writer.&amp;nbsp; It can be a challenge keeping up with a blog.&amp;nbsp; Since I started working full&#45;time again, I have been immersed in building websites.&amp;nbsp; I&#8217;m learning a lot but writing little.


But if you want to keep up with my annoying neighbors, you can read my blog about being surrounded by people who skateboard and play soccer on the hardwood floors above and torment me with loud hipster music below.</description>
      <dc:subject></dc:subject>
      <dc:date>2011-04-12T23:59:41-05:00</dc:date>
    </item>

    <item>
      <title>Big Ben in Chicago</title>
      <link>http://www.seanmccambridge.com/articles/page/big-ben-in-chicago/</link>
      <guid>http://www.seanmccambridge.com/articles/page/big-ben-in-chicago/#When:05:41:31Z</guid>
      <description>Just kidding, it&#8217;s the Wrigley Building.</description>
      <dc:subject></dc:subject>
      <dc:date>2011-02-26T05:41:31-05:00</dc:date>
    </item>

    <item>
      <title>Have you started using the HTML5 doctype?</title>
      <link>http://www.seanmccambridge.com/articles/page/have-you-started-using-the-html5-doctype/</link>
      <guid>http://www.seanmccambridge.com/articles/page/have-you-started-using-the-html5-doctype/#When:19:46:13Z</guid>
      <description>On the escalator, are you a walker or a stander?online surveys</description>
      <dc:subject></dc:subject>
      <dc:date>2011-02-17T19:46:13-05:00</dc:date>
    </item>

    <item>
      <title>Idea: JavaScript font preview widget</title>
      <link>http://www.seanmccambridge.com/articles/page/idea-javascript-font-preview-widget/</link>
      <guid>http://www.seanmccambridge.com/articles/page/idea-javascript-font-preview-widget/#When:04:13:56Z</guid>
      <description>Web fonts are all the rage.&amp;nbsp; I&#8217;ve been playing with both Typekit and the Google Fonts API recently, and one of the big drawbacks I&#8217;ve seen so far is the inability to test the fonts without a lot of pain.&amp;nbsp; If you&#8217;re used to making comps, how will you design with a given font if it isn&#8217;t installed on your machine?&amp;nbsp; If you&#8217;re a developer, aren&#8217;t you hungry for something more efficient than configuring options on the font archive&#8217;s site, calling the script in your header and then adding it to your CSS?


So far I haven&#8217;t seen a smooth, simple way to flip through various fonts in the same way you might in a graphic design program.


There should be a way.&amp;nbsp; It wouldn&#8217;t be hard to write some JavaScript that you only have to place once in your page header that would allow you to preview many fonts in your site.&amp;nbsp; Imaging being able to specify a class or tag &amp;mdash; or even just click on an element &amp;mdash; and choose from drop&#45;down boxes full of fonts, sizes and styles.


Normally, I would keep this idea to myself, scheme about it for eons and maybe, just maybe, bring it to light.&amp;nbsp; Instead, I&#8217;m going to discuss it here so somebody builds it &amp;mdash; maybe me, maybe you &amp;mdash; but it seems like a good enough idea that it must be done.&amp;nbsp; Maybe it already is and I don&#8217;t know about it.</description>
      <dc:subject></dc:subject>
      <dc:date>2011-02-17T04:13:56-05:00</dc:date>
    </item>

    <item>
      <title>jQuery tubular, a YouTube JavaScript video background jQuery plugin</title>
      <link>http://www.seanmccambridge.com/articles/page/jquery-tubular-a-youtube-javascript-video-background-jquery-plugin/</link>
      <guid>http://www.seanmccambridge.com/articles/page/jquery-tubular-a-youtube-javascript-video-background-jquery-plugin/#When:22:51:01Z</guid>
      <description>Just released tubular on the jQuery plugins site and on Google Code.&amp;nbsp; The plugin uses a single line of JavaScript to add a YouTube video in the background of your page.  I think it&#8217;s pretty sweet.&amp;nbsp; It&#8217;s my first jQuery plugin.


Check out the demo: http://www.seanmccambridge.com/tubular


on Jquery: http://plugins.jquery.com/project/tubular

on Google Code: http://code.google.com/p/jquery&#45;tubular/</description>
      <dc:subject></dc:subject>
      <dc:date>2010-11-21T22:51:01-05:00</dc:date>
    </item>

    <item>
      <title>YouTube videos as background video using CSS and JavaScript</title>
      <link>http://www.seanmccambridge.com/articles/page/youtube-videos-as-background-video-using-css-and-javascript/</link>
      <guid>http://www.seanmccambridge.com/articles/page/youtube-videos-as-background-video-using-css-and-javascript/#When:02:34:39Z</guid>
      <description>I&#8217;ve been seeing more and more use of video as a background on the web.&amp;nbsp; Sometimes, the results are cheesy; sometimes the results are dramatic.&amp;nbsp; Take a look at Design Kitchen&#8217;s portfolio, which is dominated by video.&amp;nbsp; You can&#8217;t help but watch the show as a human hand reaches in and throws the page around.&amp;nbsp; (Really, you can&#8217;t help it.&amp;nbsp; I&#8217;ve seen the site a few times already and still paused when I ran over to double check their link.)


Meanwhile, all kinds of web services are opening up their APIs for anyone to take advantage of rich content like video, social media, maps, etc.&amp;nbsp; I read a tutorial on working with the YouTube API and had to take a stab.


The result is a microsite for the Lowcountry Roller Hockey Association, a group of roller hockey players I am a part of.&amp;nbsp; I took some video of us playing a pick&#45;up game recently when my skate broke&#8212;my choices were to go home or grab my Zi8.&amp;nbsp; I got behind the goal and filmed the scene.&amp;nbsp; Naturally, I put the video up on YouTube so the guys could see.&amp;nbsp; (Yeah, I like Vimeo, too, but YouTube is way more visible&#8212;it&#8217;s the #2 search engine in the world, after all!)


So with a little jQuery, plain ol&#8217; JavaScript and some calls to the YT API, I was able to build a site that stuck a YouTube video behind some normal HTML content using basic CSS positioning and some rudimentary geometry.


Never forget proportions and cross&#45;multiplication.&amp;nbsp; You know, when x/y = a/b and you know x/y and one of a or b?&amp;nbsp; Let&#8217;s say you&#8217;re solving for b.&amp;nbsp; You multiply y * z and divide by x.&amp;nbsp; Google it if you don&#8217;t follow.&amp;nbsp; It should be a part of every web designer&#8217;s day.


Anyway, here&#8217;s the end result:





Check out the site.  It&#8217;s not live yet but it will be at charlestonrolleryhockey.com one of these days.


I&#8217;m planning on turning this into a jQuery plugin that I&#8217;m quite sure would make a lot of people unhappy, if it became popular.</description>
      <dc:subject></dc:subject>
      <dc:date>2010-11-15T02:34:39-05:00</dc:date>
    </item>

    <item>
      <title>Collection of WordPress tutorials, plugins and widgets</title>
      <link>http://www.seanmccambridge.com/articles/page/collection-of-wordpress-tutorials-plugins-and-widgets/</link>
      <guid>http://www.seanmccambridge.com/articles/page/collection-of-wordpress-tutorials-plugins-and-widgets/#When:04:28:34Z</guid>
      <description>Tutorials


Sidebars

http://automattic.com/code/widgets/api/

http://www.studiograsshopper.ch/code&#45;snippets/how&#45;to&#45;add&#45;a&#45;widgetised&#45;area&#45;in&#45;a&#45;wordpress&#45;theme/


Plugins



Widgets


http://mygayborscom.ipage.com/geeklyspeaking/2010/11/top&#45;15&#45;wordpress&#45;widgets/</description>
      <dc:subject></dc:subject>
      <dc:date>2010-11-09T04:28:34-05:00</dc:date>
    </item>

    
    </channel>
</rss>