<?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>sixohthree.com &#187; Web</title>
	<atom:link href="http://sixohthree.com/category/web/feed" rel="self" type="application/rss+xml" />
	<link>http://sixohthree.com</link>
	<description>The Weblog of Adam Backstrom</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:27:51 +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>Conferencing in Boston</title>
		<link>http://sixohthree.com/1869/conferencing-in-boston</link>
		<comments>http://sixohthree.com/1869/conferencing-in-boston#comments</comments>
		<pubDate>Mon, 02 Jan 2012 05:18:24 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jQuery Conference]]></category>
		<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1869</guid>
		<description><![CDATA[I&#8217;ve been fortunate enough to attend three conferences through my employer: jQuery Conference (2010 and 2011), and WordCamp Boston (2011). I&#8217;ve regretted not blogging about these, so in lieu of a full recap, suffice it to say these were awesome, energizing events and I hope to keep participating in the future. The tech scene in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fortunate enough to attend three conferences through <a href="http://www.plymouth.edu/">my employer</a>: jQuery Conference (2010 and 2011), and WordCamp Boston (2011). I&#8217;ve regretted not blogging about these, so in lieu of a full recap, suffice it to say these were awesome, energizing events and I hope to keep participating in the future. The tech scene in Boston is alive and well.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1869/conferencing-in-boston/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsRender: Passing Variables to Nested Templates</title>
		<link>http://sixohthree.com/1799/jsrender-passing-variables-to-nested-templates</link>
		<comments>http://sixohthree.com/1799/jsrender-passing-variables-to-nested-templates#comments</comments>
		<pubDate>Thu, 01 Dec 2011 18:28:49 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jsRender]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1799</guid>
		<description><![CDATA[Is there a cleaner way than $view.parent.parent.data.key?]]></description>
			<content:encoded><![CDATA[<p>jsRender is the in-development successor to jQuery Templates (jquery-tmpl). I&#8217;ve been playing around with it, and have struggled with a clean way to pass additional parameters to nested templates. What I&#8217;ve got so far:</p>
<pre><code>&lt;script id="t-parent" type="text/x-jquery-tmpl"&gt;
    &lt;h1&gt;{{=section}}&lt;/h1&gt;
    &lt;ul&gt;
        {{#each subsections}}
            &lt;li&gt;{{=subsection}} in {{=$view.parent.parent.data.section}} AKA {{section_name}}&lt;/li&gt;
        {{/each}}
    &lt;/ul&gt;
&lt;/script&gt;
</code></pre>
<p>And the relevant JavaScript, including the <code>{{section_name}}</code> template tag:</p>
<pre><code>$.views.registerTags({
    section_name: function() {
        return this._view.parent.parent.data.section;
    }
});

var o = { section: "Sample", subsections: [ { subsection: "Skydiving"}, { subsection: "Skiing"} ] };

$('#container').html($('#t-parent').render(o));
</code></pre>
<p>I&#8217;m questioning <code>$view.parent.parent.data.section</code>. Seems a bit verbose, but I can&#8217;t find a cleaner way to step out of the nested template and access variables from the outer scope.</p>
<p>I&#8217;ve <a href="http://jsfiddle.net/abackstrom/YHvMf/">posted a jsFiddle</a> of the above.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1799/jsrender-passing-variables-to-nested-templates/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Webpages as Screen Savers in Mac OS X</title>
		<link>http://sixohthree.com/1771/webpages-as-screen-savers-in-mac-os-x</link>
		<comments>http://sixohthree.com/1771/webpages-as-screen-savers-in-mac-os-x#comments</comments>
		<pubDate>Thu, 17 Nov 2011 04:27:35 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[screen savers]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1771</guid>
		<description><![CDATA[jQuery can power your screensaver. Your move.]]></description>
			<content:encoded><![CDATA[<p><a href="http://sixohthree.com/files/2011/11/websaver-clocks.png"><img src="http://sixohthree.com/files/2011/11/websaver-clocks-300x263.png" alt="" title="websaver-clocks" width="300" height="263" class="left size-medium wp-image-1772" /></a></p>
<p>For years I&#8217;ve used the <a href="http://9031.com/goodies/#fliqlo">Fliquo</a> screen saver, which displays the current time in the style of an old flip clock. Unfortunately, the graphics have been glitchy of late, and a question has been worming its way into my mind: can I display a web page as my screensaver? After all, I already know how to code for the web, so a web-enabled screensaver has unlimited possibilities.</p>
<p><a href="http://www.brock-family.org/gavin/macosx/websaver.html">WebSaver</a> plus a slapdash <a href="http://code.sixohthree.com/clock/">Local &amp; UTC clock</a> makes it happen. So, nerds: jQuery can power your screensaver. Your move.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1771/webpages-as-screen-savers-in-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated: Amazon S3 for WordPress</title>
		<link>http://sixohthree.com/1729/updated-amazon-s3-for-wordpress</link>
		<comments>http://sixohthree.com/1729/updated-amazon-s3-for-wordpress#comments</comments>
		<pubDate>Fri, 04 Nov 2011 17:18:03 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1729</guid>
		<description><![CDATA[I&#8217;ve updated my &#8220;WordPress Media in Amazon S3&#8221; post with a diff of my Zend library modifications.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated my &#8220;<a title="Saving WordPress Media to Amazon S3 (Teaser)" href="http://sixohthree.com/1575/saving-wordpress-media-to-amazon-s3-teaser">WordPress Media in Amazon S3</a>&#8221; post with a diff of my Zend library modifications.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1729/updated-amazon-s3-for-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use openssl to Issue Raw HTTP Requests</title>
		<link>http://sixohthree.com/1712/use-openssl-to-issue-raw-http-requests</link>
		<comments>http://sixohthree.com/1712/use-openssl-to-issue-raw-http-requests#comments</comments>
		<pubDate>Tue, 01 Nov 2011 13:40:26 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[telnet]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1712</guid>
		<description><![CDATA[telnet is a handy tool for examining a raw HTTP connection, but it fails hard on HTTP over SSL. Turns out openssl can step in.]]></description>
			<content:encoded><![CDATA[<p><tt>telnet</tt> is a handy tool for examining a raw HTTP connection, but it fails hard on HTTP over SSL:</p>
<pre>ambackstrom@fsck:~:0$ <span class="pre-input">telnet www.plymouth.edu 443</span>
Trying 158.136.1.105...
Connected to algol.plymouth.edu.
Escape character is '^]'.
<span class="pre-input">GET / HTTP/1.1</span>
Connection closed by foreign host.</pre>
<p>Turns out <tt>openssl</tt> (which is a toolbox in its own right) <a href="http://advosys.ca/viewpoints/2006/08/testing-ssl-with-command-line-tools/">can step in</a>:</p>
<pre>openssl s_client -connect www.plymouth.edu:443</pre>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1712/use-openssl-to-issue-raw-http-requests/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google+ for Google Apps</title>
		<link>http://sixohthree.com/1708/google-plus-for-google-apps</link>
		<comments>http://sixohthree.com/1708/google-plus-for-google-apps#comments</comments>
		<pubDate>Thu, 27 Oct 2011 19:35:03 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[googleapps]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1708</guid>
		<description><![CDATA[It's finally here.]]></description>
			<content:encoded><![CDATA[<p><a href="http://googleenterprise.blogspot.com/2011/10/google-is-now-available-with-google.html">Finally</a>, + comes to Apps. Thank you, Google. Notable:</p>
<blockquote><p>For those of you who’ve already started using Google+ with a personal Google Account and would prefer to use your Google Apps account, we’re building a migration tool to help you move over. With this tool, you won’t have to rebuild your circles, and people who’ve already added you to their circles will automatically be connected to your new profile. We expect this migration option to be ready in a few weeks, so if you’d like, you can go ahead and get started with your Apps account today and merge your connections once the tool is available.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1708/google-plus-for-google-apps/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Network Plugin Management</title>
		<link>http://sixohthree.com/1702/wordpress-network-plugin-management</link>
		<comments>http://sixohthree.com/1702/wordpress-network-plugin-management#comments</comments>
		<pubDate>Mon, 24 Oct 2011 16:25:33 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[todo]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1702</guid>
		<description><![CDATA[I need to test all of these, at some point.]]></description>
			<content:encoded><![CDATA[<p>I need to test all of these, at some point:</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/exclude-plugins/">Exclude Plugins</a> &#8211; Exclude plugins from appearing in plugins menu for normal user in WordPress multisite.</li>
<li><a href="http://wordpress.org/extend/plugins/restrict-multisite-plugins/">Restrict Multisite Plugins</a> &#8211; Allows network admins to restrict which plugins are available on sites, similar to themes.</li>
<li><a href="http://wordpress.org/extend/plugins/plugins-enabler/">Plugins Enabler</a> &#8211; This plugin adds the ability to only show the plugins you enabled for a blog.</li>
<li><a href="http://wordpress.org/extend/plugins/yd-wpmu-sitewide-options/">YD Network-wide Options</a> &#8211; Automatically replicate any plugin setting network-wide: apply sitewide settings. Spread your settings or options on all your multisite blogs.</li>
</ul>
<p>In other Multisite news, <a href="http://scribu.net/">scribu</a> posted &#8220;<a href="http://scribu.net/wordpress/the-future-of-multisite.html">The Future of Multisite</a>&#8221; with links to a few of his own plugins:</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/user-management-tools/">User Management Tools</a></li>
<li><a href="http://wordpress.org/extend/plugins/proper-network-activation/">Proper Network Activation</a></li>
<li><a href="http://wordpress.org/extend/plugins/my-sites-widget/">My Sites Widget</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1702/wordpress-network-plugin-management/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CPAN Modules without Root</title>
		<link>http://sixohthree.com/1690/installing-cpan-modules-without-root</link>
		<comments>http://sixohthree.com/1690/installing-cpan-modules-without-root#comments</comments>
		<pubDate>Fri, 21 Oct 2011 04:08:51 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1690</guid>
		<description><![CDATA[Today I needed to run mysqlhotcopy, but it was failing "undefined symbol: mysql_init" in DBD::mysql. My Perl is rusty at best, and I finally resorted to reinstalling DBI and DBD::mysql using the local user.]]></description>
			<content:encoded><![CDATA[<p>Today I needed to run mysqlhotcopy, but it was failing &#8220;undefined symbol: mysql_init&#8221; in DBD::mysql. My Perl is rusty at best, and I finally resorted to reinstalling DBI and DBD::mysql using the local user. (I don&#8217;t have root on this box, and I was under some time constraints.)</p>
<p>Mostly for my own future reference:</p>
<ol>
<li>Set your home directory as the default CPAN install prefix in <tt>~/.cpan/CPAN/MyConfig.pm</tt>: <tt>'makepl_arg' =&gt; q[PREFIX=/var/home/mysql]</tt></li>
<li>Export <tt>PERL5LIB</tt> in <tt>~/.bash_profile</tt> (your values may vary): <tt>export PERL5LIB=$HOME/lib/perl5/5.8.8:$HOME/lib64/perl5/site_perl/5.8.8</tt></li>
</ol>
<h2>Resources</h2>
<ul>
<li><a href="http://www.perl.com/pub/2002/04/10/mod_perl.html?page=2">Installing mod_perl without superuser privileges</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1690/installing-cpan-modules-without-root/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better Local Dev Hostnames with Dnsmasq</title>
		<link>http://sixohthree.com/1679/better-local-dev-hostnames-with-dnsmasq</link>
		<comments>http://sixohthree.com/1679/better-local-dev-hostnames-with-dnsmasq#comments</comments>
		<pubDate>Wed, 19 Oct 2011 03:23:27 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1679</guid>
		<description><![CDATA[I use ghost to configure development environment hostnames for all my local test sites. I wondered if there wasn't a more robust solution that supported wildcards.]]></description>
			<content:encoded><![CDATA[<p>I use <a href="https://github.com/bjeanes/ghost">ghost</a> to configure development environment hostnames for all my local test sites. Some <a href="http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/">DTrace tomfoolery</a> showed me how ghost handles this config: each new hostname is saved to its own plist file.</p>
<pre>ambackstrom@fsck:~:1$ sudo cat /var/db/dslocal/nodes/Default/hosts/example.com.plist
Password:
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
	&lt;key&gt;ip_address&lt;/key&gt;
	&lt;array&gt;
		&lt;string&gt;127.0.0.1&lt;/string&gt;
	&lt;/array&gt;
	&lt;key&gt;name&lt;/key&gt;
	&lt;array&gt;
		&lt;string&gt;example.com&lt;/string&gt;
	&lt;/array&gt;
&lt;/dict&gt;
&lt;/plist&gt;</pre>
<p>There's filesystem caching going on behind the scenes and I expect the net impact is negligible, but I wondered if there wasn't a more robust solution that supported wildcards. Having just configured <a href="http://thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</a> on my <a href="http://www.polarcloud.com/tomato">router</a>, I started with a <tt><a href="http://mxcl.github.com/homebrew/">brew</a> install dnsmasq</tt> and was pleasantly surprised to get a progress bar rather than "no available formula." Homebrew recommended a couple post-install actions for setting up a default config file and configuring <tt>launchd</tt> to keep dnsmasq alive, which I dutifully ran. After that, I enabled my fake TLD in <tt>dnsmasq.conf</tt>:</p>
<pre># respond to *.zomg with 127.0.0.1
address=/zomg/127.0.0.1</pre>
<p>By sheer luck I ended up on <a href="http://serverfault.com/questions/22419/set-dns-server-on-os-x-even-when-without-internet-connection">this great serverfault.com post</a> explaining Mac OS X's <tt>resolver(5)</tt> and the <tt>/etc/resolver</tt> directory. Forcing <tt>dnsmasq</tt> lookup on my zomg TLD is as easy as:</p>
<pre>echo 'nameserver 127.0.0.1' &gt;/etc/resolver/zomg</pre>
<p>These settings will work on any network we connect to, no need to modify the DNS servers via System Preferences and put 127.0.0.1 (dnsmasq) in front. Simple, clean, flexible.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1679/better-local-dev-hostnames-with-dnsmasq/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatic Ellipsis with CSS</title>
		<link>http://sixohthree.com/1662/automatic-ellipsis-with-css</link>
		<comments>http://sixohthree.com/1662/automatic-ellipsis-with-css#comments</comments>
		<pubDate>Mon, 17 Oct 2011 01:33:03 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1662</guid>
		<description><![CDATA[How do I keep forgetting about <code>text-overflow: ellipsis</code>? Maybe a blog post will help cement it in my memory.]]></description>
			<content:encoded><![CDATA[<p>How do I keep forgetting about <code>text-overflow: ellipsis</code>? Maybe a blog post will help cement it in my memory.</p>
<p style="border: 1px solid #000; width: 10em; padding: 0.2em; text-overflow: ellipsis; overflow: hidden;"><span style="white-space: nowrap">I am the very model of a modern major general.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1662/automatic-ellipsis-with-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

