<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Blog</title>
    <subtitle type="text">Blog:</subtitle>
    <link rel="alternate" type="text/html" href="http://johndwells.com/index.php/blog/index/" />
    <link rel="self" type="application/atom+xml" href="http://johndwells.com/site/atom/" />
    <updated>2010-02-07T18:02:14Z</updated>
    <rights>Copyright (c) 2010, JohnDWells</rights>
    <generator uri="http://expressionengine.com/" version="1.6.8">ExpressionEngine</generator>
    <id>tag:johndwells.com,2010:02:07</id>


    <entry>
      <title>Pedantic As Fuck: Coding Guidelines</title>
      <link rel="alternate" type="text/html" href="http://johndwells.com/site/pedantic-as-fuck-coding-guidelines/" />
      <id>tag:johndwells.com,2010:index.php/blog/index/3.29</id>
      <published>2010-02-07T17:51:13Z</published>
      <updated>2010-02-07T18:02:14Z</updated>
      <author>
            <name>JohnDWells</name>
            <email>webmaster@johndwells.com</email>
                  </author>

      <content type="html"><![CDATA[
        <h2>
	Folder Structure:</h2>
<p>
	To support EE integration, all template assets (css, images, scripts etc) should be nested within an encompassing &ldquo;style&rdquo; folder; then subfolders are used to separate asset type:</p>
<pre>
/style/
        /css
        /images
        /scripts
        /flash
</pre>
<h2>
	Image Filename Prefixes:</h2>
<p>
	To help organize a cluttered image directory, I use 6 different prefixes to group files into their usage. These should cover 99% of any possible scenario. The only trick is to know when one prefix should be chosen in lieu of another. These are therefore arranged in a &ldquo;cascade&rdquo;:</p>
<ol>
	<li>
		sprite_* - any sprite graphics</li>
	<li>
		btn_* - any button graphics (e.g. submit buttons, etc)</li>
	<li>
		icon_* - any icon graphics (e.g. arrows, bullets, etc)</li>
	<li>
		logo_* - any logos</li>
	<li>
		bg_* - a graphic that is used as a background image via CSS</li>
	<li>
		img_* - any images included via the <pre>&lt;img /&gt;</pre> tag</li>
</ol>
<p>
	The cascade works by starting at the top, see if the image qualifies for that prefix; if so, use it, if not, continue to next prefix.</p>
<p>
	If multiple prefixes match, use them in sequence of the cascade. The exception is &ldquo;bg_*&rdquo;, which is implied if any higher prefix is used.</p>
<p>
	Example:<br />
	<br />
	A submit button &ldquo;<pre>&lt;button&gt;Submit Me!&lt;/button&gt;</pre>&rdquo; uses a background image to override the browser&rsquo;s default look. The design calls for 3 states: off, on, and active. The image should be created as a sprite to reduce server requests. Following the cascade, it qualifies as a sprite and button. Therefore it&rsquo;s name might be: <em>sprite_btn_submit.gif</em></p>
<h2>
	Miscellaneous</h2>
<p>
	Main/global stylesheet should be named &ldquo;screen.css&rdquo;</p>
<p>
	Filenames are all lowercase, words separated by underscores only (e.g. logo_google.png).</p>
<p>
	Filenames should be verbose for clarity</p>
<p>
	You are encouraged to separate CSS as much as is necessary to keep things organised</p>
<p>
	You are encouraged to go comment-crazy in CSS &amp; JS</p>
<p>
	Use HTML comments to indicate the closing of any structural divs (or spans were helpful):<br />
	- If the div has an ID value, use &ldquo;<!-- /#id_value_here -->&rdquo;<br />
	Example:</p>
<pre>
</pre>
<div id="wrapper">
	<pre>
	.......
</pre>
</div>
<!-- /#wrapper --><p>
	- If the div has a CLASS value, use &ldquo;<!-- /.class_value_here -->&rdquo; Example:</p>
<pre>
</pre>
<div class="widget">
	<pre>
	.......
</pre>
</div>
<!-- /.widget --><p>
	Use Google&rsquo;s CDN for js libraries (e.g. jquery)</p>
<p>
	Use most current jquery (1.4.1 as of this writing: http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js)</p>
<p>
	When referencing asset files from within the HTML source, use absolute linking (e.g. &ldquo;/style/css/screen.css&rdquo;). Assets linked from within CSS can be relative (e.g. &ldquo;../images/sprite_navigation.gif&rdquo;).</p>
<p>
	Preferred doctype: xhtml 1.0 transitional</p>
<p>
	IE6/7, PNG support: Up to you!</p>
 
      ]]></content>
    </entry>

    <entry>
      <title>Should I pay for that beta?</title>
      <link rel="alternate" type="text/html" href="http://johndwells.com/site/should-i-pay-for-that-beta/" />
      <id>tag:johndwells.com,2010:index.php/blog/index/3.28</id>
      <published>2010-01-07T02:53:58Z</published>
      <updated>2010-01-07T02:54:59Z</updated>
      <author>
            <name>JohnDWells</name>
            <email>webmaster@johndwells.com</email>
                  </author>

      <category term="Business"
        scheme="http://johndwells.com/site/C10/"
        label="Business" />
      <category term="ExpressionEngine"
        scheme="http://johndwells.com/site/C1/"
        label="ExpressionEngine" />
      <content type="html"><![CDATA[
        <p>Last week I fired off a tweet about Solspace, a web development company that contributes heavily to the space of ExpressionEngine add-ons.&nbsp; I challenged their business model of charging a fee for their &#8220;beta&#8221; modules, which quickly drew a response from their lead developer.&nbsp; We exchanged a few tweets, but it left me frustrated; Twitter isn&#8217;t always the best medium for a debate, especially between two strangers. Or perhaps I&#8217;m simply not articulate enough to say everything in 140 characters.</p>

<p>Let&#8217;s see what kicked this off.&nbsp; On Nov 24th I twittered:</p>

<blockquote><p>@johndwells EE was released this way. EE 2.0&#8217;s release is effectively a public beta. And any non-beta update is free, so I see no problem.</p></blockquote>

<p>My first reply was from another EE community member, who said she&#8217;s known the two behind Solspace for years, has used one of their stable pay-for modules for years, and contended it was still a good deal.</p>

<p>Then Solspace&#8217;s lead developer Paul Burdick got back to me, aligning their business model directly with ExpressionEngine&#8217;s, by saying that EE&#8217;s 2.0 release, which is pay-for (and includes a price increase) is effectively a beta release.&nbsp; Two days later, serendipitously for Paul&#8217;s arguement, EllisLab announced they were renaming the December 1 release of EE 2.0, from &#8220;release candidate&#8221; to &#8220;public beta&#8221;. Ah.</p>

<p>But let me just clarify my case: for first-time customers, paying for a beta release is off-putting.&nbsp; I will be purchasing 1 freelancer&#8217;s license of EE 2.0 for myself, because I know and trust EE and I also want to be a part of the community that makes EE 2.0 great; but I won&#8217;t be purchasing it for my clients.&nbsp; I&#8217;m willing to invest $99 in EE 2.0 because I know and trust EE 1.6.8.</p>

<p>With Solspace, let&#8217;s consider their recently released Super Search 1.0.0 Beta module.&nbsp; EE has long needed a better solution to search.&nbsp; Right now I&#8217;m quoting for a job that heavily relies on an intelligent search engine
</p> <p>
	&nbsp;</p>
<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
	<p>
		<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; ">@reedmaniac Thanks for feeding back. I understand what you&#39;re saying. And I don&#39;t mean to slight you guys! Hell, freeform alone is worth ... @reedmaniac Thanks for humoring me on this. Interesting debate - I see your point. Perhaps I can dig up $$ to play in the beta sandbox. <img src="http://johndwells.com/images/smileys/wink.gif" width="19" height="19" alt="wink" style="border:0;" /></span></p>
</div>

      ]]></content>
    </entry>

    <entry>
      <title>Tips to improve your clients&#8217; experience using ExpressionEngine</title>
      <link rel="alternate" type="text/html" href="http://johndwells.com/site/tips-to-improve-your-clients-experience-using-expressionengine/" />
      <id>tag:johndwells.com,2009:index.php/blog/index/3.27</id>
      <published>2009-12-28T15:26:14Z</published>
      <updated>2010-01-02T14:44:16Z</updated>
      <author>
            <name>JohnDWells</name>
            <email>webmaster@johndwells.com</email>
                  </author>

      <category term="ExpressionEngine"
        scheme="http://johndwells.com/site/C1/"
        label="ExpressionEngine" />
      <content type="html"><![CDATA[
        <p>When I switched from Wordpress to ExpressionEngine, there were a many reasons behind the move.&nbsp; Custom fields, absurdly simple templating system, .
</p> 
      ]]></content>
    </entry>

    <entry>
      <title>Code Every Day: Day 1</title>
      <link rel="alternate" type="text/html" href="http://johndwells.com/site/code-every-day-day-1/" />
      <id>tag:johndwells.com,2009:index.php/blog/index/3.26</id>
      <published>2009-12-28T15:24:28Z</published>
      <updated>2009-12-29T15:50:29Z</updated>
      <author>
            <name>JohnDWells</name>
            <email>webmaster@johndwells.com</email>
                  </author>

      <category term="Programming"
        scheme="http://johndwells.com/site/C9/"
        label="Programming" />
      <content type="html"><![CDATA[
        <pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> activate_extension<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$DB</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000088;">$hooks</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #0000ff;">'lg_addon_update_register_source'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'lg_addon_update_register_source'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #339933;">,</span><span style="color: #0000ff;">'lg_addon_update_register_addon'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'lg_addon_update_register_addon'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #339933;">,</span><span style="color: #0000ff;">'edit_entries_additional_tableheader'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'edit_entries_additional_tableheader'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #339933;">,</span><span style="color: #0000ff;">'edit_entries_modify_tableheader'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'edit_entries_modify_tableheader'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #339933;">,</span><span style="color: #0000ff;">'edit_entries_additional_celldata'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'edit_entries_additional_celldata'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #339933;">,</span><span style="color: #0000ff;">'edit_entries_modify_tablerow'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'edit_entries_modify_tablerow'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$hooks</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$hook</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$method</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #000088;">$sql</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$DB</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">insert_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db_prefix</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'_extensions'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">					<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'extension_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'class'</span>   <span style="color: #339933;">=&gt;</span> Seesaw_extension_class<span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'method'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$method</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'hook'</span>     <span style="color: #339933;">=&gt;</span><span style="color: #000088;">$hook</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'settings'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'priority'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'version'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">version</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #0000ff;">'enabled'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;y&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #666666; font-style: italic;">// run all sql queries</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #000088;">$DB</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #666666; font-style: italic;">// Set up &amp; save default settings</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000088;">$default_settings</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_merge_settings<span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_save_settings<span style="color: #009900;">&#40;</span><span style="color: #000088;">$default_settings</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li></ol></pre>

This is the code example. 
      ]]></content>
    </entry>

    <entry>
      <title>Preload Images with jQuery</title>
      <link rel="alternate" type="text/html" href="http://johndwells.com/site/preload-images-with-jquery/" />
      <id>tag:johndwells.com,2009:index.php/blog/index/3.19</id>
      <published>2009-11-04T16:07:57Z</published>
      <updated>2009-11-06T23:25:58Z</updated>
      <author>
            <name>JohnDWells</name>
            <email>webmaster@johndwells.com</email>
                  </author>

      <content type="html"><![CDATA[
        <p>There are obviously a gazillion ways to skin this cat, so let's keep it simple and define a basuc scenario:</p>

<blockquote>I have a very large image (400kb) set as the background of my site. I'd like to show a "loading" animated graphic that displays until the large image is available, and then show the large graphic instead.</blockquote>

<h2>What We Need</h2>

<ol>
<li>The latest and greatest jQuery (I like to link to a <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery" title="jQuery hosted by Google">Google-hosted</a> copy)</li>
<li>An animated gif (either create your own or generate one with <a href="http://www.ajaxload.info/" title="Ajaxload">Ajaxload</a></li>
<li>A big ol' image </li>
</ol>

<pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #003366; font-weight: bold;">var</span> imgSrc <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;{image}&quot;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #003366; font-weight: bold;">var</span> img <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	$<span style="color: #009900;">&#40;</span>img<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #006600; font-style: italic;">// once the image has loaded, execute this code</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;background-image&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;url(&quot;</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;background-position&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;top left&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #006600; font-style: italic;">// if there was an error loading the image, react accordingly</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.<span style="color: #660066;">error</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'error'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #006600; font-style: italic;">// *finally*, set the src attribute of the new image to our image</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #339933;">,</span> imgSrc<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre> 
      ]]></content>
    </entry>

    <entry>
      <title>120,000 New Blogs Created Worldwide Each Day *</title>
      <link rel="alternate" type="text/html" href="http://johndwells.com/site/120000-new-blogs-created-worldwide-each-day/" />
      <id>tag:johndwells.com,2009:index.php/blog/index/3.7</id>
      <published>2009-10-15T19:17:54Z</published>
      <updated>2009-10-15T20:42:56Z</updated>
      <author>
            <name>JohnDWells</name>
            <email>webmaster@johndwells.com</email>
                  </author>

      <content type="html"><![CDATA[
        <p>
	The past 48 hours have been a flurry of creative activity.&nbsp; For months, possibly even years, I&#39;ve been pining and aching to revive my personal/professional website.&nbsp; I&#39;ve enlisted friends to help.&nbsp; I&#39;ve created a brief.&nbsp; I&#39;ve launched a number of holding pages in between. And then two nights ago, struck violently with inspiration, I toiled from <em>sundown to sunup</em>, playing and tweaking refreshing, until I had myself a new site.</p>
<p>
	On the surface, it may actually appear that little&#39;s changed; the homepage still amounts to a holding page.&nbsp; And it is by no means finished, and that&#39;s the point; it should be a platform for experimentation, playful attempts, and some technical leaps of faith.</p>
<p>
	I&#39;m excited to be on the web again.</p>
 <h2>
	Highlights Include:</h2>
<h3>
	Money Talks</h3>
<p>
	I&#39;ve spent months getting to this moment. Talk about money has always been a funny one; people are invariably reluctant to show their cards, but desperately curious to see others&#39;.&nbsp; I don&#39;t think money can be handled with kid gloves, because hey, this is business, and business is about money.</p>
<p>
	So, taking inspiration from the open source community, where all code is free to use, abuse and reuse, <a href="http://johndwells.com/services">I&#39;ve put my prices online</a>.&nbsp; It will be an interesting to see how this experiment goes down.</p>
<h3>
	Fancy Sliding Drawer</h3>
<p>
	I&#39;m very pleased with the sublteties going on with the sliding drawer up top.&nbsp; Too many things to go into, but I think the many many hours of tinkering with just precisely how it behaves have paid off. I encourage you to show it, hide it, show it again, scroll down the page and then show it some more. Here, you can even <a class="toggle" href="/#aboutbox">click this link to get started having fun</a>.</p>
<h3>
	Avatar Archives</h3>
<p>
	When I first launched the site (yesterday), the &quot;avatar&quot; image in the top drawer was the same on every page.&nbsp; I&#39;d laboured to choose between 4 that I&#39;d created as options, and finally went with the &quot;safest&quot; one.</p>
<p>
	But I still wanted to use some of the more playful ones, and so last night I realised it could be a fun little feature of my site if they changed regularly. Like every day. So that&#39;s what I plan to do.</p>
<p>
	This might be my favourite feature of the site, because it answered one of the most difficult parts of my self-inflicted brief: to subtly let my personality shine through.</p>
<h3>
	CSS3, HTML5</h3>
<p>
	This is my first foray into the HTML5 world, and I&#39;m treading very carefully.&nbsp; But the point of this move is simply to try, and to learn.</p>
<p>
	The CSS3 effects are real fun, but disappointing that not every browser will be able to show them, which means a lot of potential visitors won&#39;t see them.&nbsp; It&#39;s too bad, because when they&#39;re all put together, the details really are nice. But, that is the point of this wild wild west business.</p>
<h3>
	ExpressionEngine</h3>
<p>
	This site is running on ExpressionEngine, which I can&#39;t even begin to explain my affection for.&nbsp; Between EE and jQuery, sometimes I feel really, really clever.</p>
<h2>
	What&#39;s Next?</h2>
<p>
	A lot, there is no doubt. In fact as I write this, there is still no &quot;blog&quot; front-end, just an RSS feed that sorta works.&nbsp; But I&#39;ve started, and that&#39;s the important part.</p>
<p>
	* <em>Based on 2007 numbers found at <a href="http://www.sifry.com/alerts/archives/000493.html">http://www.sifry.com/alerts/archives/000493.html</a></em></p>

      ]]></content>
    </entry>


</feed>