<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>simpledream &#187; Programming</title>
	<atom:link href="http://simpledream.net/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://simpledream.net</link>
	<description>Lance Willett, Web Craftsman</description>
	<lastBuildDate>Tue, 14 Feb 2012 07:53:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='simpledream.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/d3e74b12277e3aae3fd6ba04776d4bdf?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>simpledream &#187; Programming</title>
		<link>http://simpledream.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://simpledream.net/osd.xml" title="simpledream" />
	<atom:link rel='hub' href='http://simpledream.net/?pushpress=hub'/>
		<item>
		<title>Change GNU Screen Keyboard Command</title>
		<link>http://simpledream.net/2011/10/07/change-gnu-screen-keyboard-command/</link>
		<comments>http://simpledream.net/2011/10/07/change-gnu-screen-keyboard-command/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 15:46:33 +0000</pubDate>
		<dc:creator>Lance Willett</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://simpledream.net/?p=842</guid>
		<description><![CDATA[I changed the command character for screen from Control-a to Control-b recently, after switching to a wireless Mac keyboard. On this small, portable keyboard—which is the same layout as most Mac laptops—there&#8217;s only one Control key, and it&#8217;s on the &#8230; <a href="http://simpledream.net/2011/10/07/change-gnu-screen-keyboard-command/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=842&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I changed the command character for <a href="http://www.gnu.org/s/screen/">screen</a> from Control-a to Control-b recently, after switching to a <a href="http://www.apple.com/keyboard/">wireless Mac keyboard</a>. On this small, portable keyboard—which is the same layout as most Mac laptops—there&#8217;s only one Control key, and it&#8217;s on the left side of the keyboard.</p>
<p>The weird angle to hit Control-a was hurting my hand. Gone now is the left-side contortion I was forced to make to strike with my pinky and ring finger.</p>
<p>It&#8217;s pretty easy to change the command key mapping, just add <code>escape ^Bb</code> to your screen config file (usually located in your home directory). Here&#8217;s what my <code>.shellrc</code> looks like:</p>
<p><pre class="brush: bash;">
# Make the shell in every window as your login shell
shell -$SHELL

# Instead of Control-a, make the escape/command character be Control-b
escape ^Bb

# Autodetach session on hangup instead of terminating screen completely
autodetach on

# Turn off the splash screen
startup_message off

# Use a 100000-line scrollback buffer
defscrollback 100000
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simpledream.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simpledream.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/simpledream.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/simpledream.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simpledream.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simpledream.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simpledream.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simpledream.wordpress.com/842/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=842&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://simpledream.net/2011/10/07/change-gnu-screen-keyboard-command/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47976847383b324bd35e228a91eb1a0f?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">lance</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatic WordPress Updates with SVN</title>
		<link>http://simpledream.net/2010/10/19/wordpress-auto-updates-svn/</link>
		<comments>http://simpledream.net/2010/10/19/wordpress-auto-updates-svn/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 02:28:11 +0000</pubDate>
		<dc:creator>Lance Willett</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://simpledream.net/?p=323</guid>
		<description><![CDATA[Want to keep your WordPress install up to date automatically? Follow these steps to add a cron job to update your WordPress install every 6 hours. Set up the install The WordPress install must be a Subversion checkout. You can &#8230; <a href="http://simpledream.net/2010/10/19/wordpress-auto-updates-svn/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=323&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="introduction">Want to keep your WordPress install up to date automatically? Follow these steps to add a cron job to update your WordPress install every 6 hours.</p>
<h3>Set up the install</h3>
<p>The WordPress install must be a Subversion checkout. You can grab the bleeding edge source with a command like this:</p>
<pre class="code"><code>svn co http://core.svn.wordpress.org/trunk/ .</code></pre>
<p>If you aren&#8217;t familiar with Subversion, start here:</p>
<ul>
<li><a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">Working with Subversion (Codex)</a></li>
<li><a href="http://codex.wordpress.org/Using_Subversion">Using Subversion (Codex)</a></li>
</ul>
<h3>Schedule the updates</h3>
<p>Add the cron job from the command line.</p>
<ol>
<li>Edit the cron job list.
<pre class="code"><code>crontab -e</code></pre>
</li>
<li>Add the cron job (edit the path to your WordPress install).
<pre class="code"><code>MAILTO=&quot;&quot;
# Update WordPress install every six hours
* */6 * * * svn up -q ~/path/to/your/wp-install</code></pre>
</li>
<li>Save and close.</li>
</ol>
<p>To learn more about editing cron jobs from the command line search Google for <em>man cron</em> and <em>man crontab</em>.</p>
<p>You can also use a <span class="caps">GUI</span> tool like <a href="http://code.google.com/p/cronnix/">CronniX</a> on Mac OS X to manage the cron jobs.</p>
<h3>Notes</h3>
<ul>
<li>The <code>-q</code> parameter tells the <code>svn update</code> command to run silently so that you don&#8217;t have to worry about any output from the cron job. But, you should add the <code>MAILTO</code> definition if you want to completely silence output.</li>
<li>Some systems don&#8217;t recognize the <code>*/6</code> syntax for hourly notation. If you get an error when trying to save the cron job you might have to change it to comma-separated values instead: <code>0,6,12</code> or similar.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simpledream.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simpledream.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/simpledream.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/simpledream.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simpledream.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simpledream.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simpledream.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simpledream.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=323&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://simpledream.net/2010/10/19/wordpress-auto-updates-svn/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47976847383b324bd35e228a91eb1a0f?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">lance</media:title>
		</media:content>
	</item>
		<item>
		<title>Craftsmanship and Coding Standards</title>
		<link>http://simpledream.net/2010/06/30/craftsmanship-and-coding-standards/</link>
		<comments>http://simpledream.net/2010/06/30/craftsmanship-and-coding-standards/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 16:21:27 +0000</pubDate>
		<dc:creator>Lance Willett</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Craftsmanship]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://simpledream.net/?p=314</guid>
		<description><![CDATA[Inconsistencies [in your coding style] are jarring and require more time to read and comprehend. Consistency is such a valued quality that developers often abide by a coding standard even if they dislike the coding standard itself. —Chris Shiflett and &#8230; <a href="http://simpledream.net/2010/06/30/craftsmanship-and-coding-standards/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=314&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote>
<p>Inconsistencies [in your coding style] are jarring and require more time to read and comprehend. Consistency is such a valued quality that developers often abide by a coding standard even if they dislike the coding standard itself. —<a href="http://www.smashingmagazine.com/2009/03/24/10-useful-php-tips-revisited/">Chris Shiflett and Sean Coates</a></p>
</blockquote>
<p class="introduction">I consider following a coding standard a sure sign of a craftmanship. A craftsman knows his tools and languages well, and is consistent in his coding style. Ego and personal preference give way to consistency and best practices.</p>
<p>If you develop on your own, create a coding style and stick with it. There are many practical reasons to abide by code standards when developing on your own. It enforces good habits and helps avoid simple syntax bugs. It speeds up your development process by giving you structure and taking the guesswork out of naming and spacing tasks. And, possibly most importantly, it ensures your code is readable to your future self.</p>
<p>This is all fine and dandy when you&#8217;re the only one touching the code. When you share and collaborate with other developers, however, following a coding standard is not a choice—it is mandatory. If you develop for a platform, use the coding standards of the platform. Even if you don&#8217;t agree with  the standard, you should follow it anyway so that your code is understandable and usable for other developers. Chances are the standards were put in place for very good reasons, both practical and philosophical.</p>
<p>To learn the coding standards for a project you work with, start by looking at other people&#8217;s code. Put the standards into practice in your own code and don&#8217;t be afraid to ask for a review from someone else. Check your code against similar structures in your software&#8217;s codebase, or popular modules, themes, and plugins for the software.</p>
<p>A big part of my job as Theme Wrangler at Automattic is reviewing themes. Lots of themes from lots of designers and developers. Everyone seems to have their own coding style, which makes it difficult to review code and find errors quickly. As a result I spend a lot of time cleaning up themes to match WordPress coding standards before I can even begin the actual work of reviewing and updating the theme.</p>
<p>For that reason code style consistency is especially important to me. It enforces best practices, produces consistent code, and speeds up development between collaborators.</p>
<h3>Examples</h3>
<p>For the languages I code in often (<span class="caps">PHP</span>, <span class="caps">HTML</span>, <span class="caps">CSS</span>, JavaScript), I use the same general set of standards.</p>
<ul>
<li>Use standard syntax.</li>
<li>Remove extra whitespace and line endings.</li>
<li>Use consistent spacing and indentation.</li>
<li>Use human-readable labels and names.</li>
</ul>
<p>Following are examples of specific coding standards that I follow in my everyday development.</p>
<ul>
<li><a href="https://trac.cakephp.org/wiki/Developement/CodingStandards">CakePHP coding standards</a></li>
<li><a href="http://codex.wordpress.org/WordPress_Coding_Standards">WordPress coding standards</a></li>
<li><a href="http://javascript.crockford.com/code.html">Code Conventions for the JavaScript Programming Language</a></li>
</ul>
<p>For a top-notch example of coding standards within a company, see the <a href="http://developer.fellowshipone.com/patterns/code.php">Fellowship Technologies Code Standards</a>. That, friends, is a well-crafted coding standard that we can all learn from.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simpledream.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simpledream.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/simpledream.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/simpledream.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simpledream.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simpledream.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simpledream.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simpledream.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=314&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://simpledream.net/2010/06/30/craftsmanship-and-coding-standards/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47976847383b324bd35e228a91eb1a0f?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">lance</media:title>
		</media:content>
	</item>
		<item>
		<title>Discouraging Image Theft</title>
		<link>http://simpledream.net/2009/02/26/discouraging-image-theft/</link>
		<comments>http://simpledream.net/2009/02/26/discouraging-image-theft/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 16:00:01 +0000</pubDate>
		<dc:creator>Lance Willett</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[right-click]]></category>
		<category><![CDATA[theft]]></category>

		<guid isPermaLink="false">http://simpledream.net/?p=282</guid>
		<description><![CDATA[Recently I received a question from a colleague regarding image theft and how to prevent it. The sad truth is that you can&#8217;t. There are techniques to discourage downloading and reuse of your preciously-crafted images, but they generally aren&#8217;t 100% &#8230; <a href="http://simpledream.net/2009/02/26/discouraging-image-theft/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=282&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="introduction">Recently I received a question from a colleague regarding image theft and how to prevent it. The sad truth is that you can&#8217;t. There are techniques to discourage downloading and reuse of your preciously-crafted images, but they generally aren&#8217;t 100% effective or user-friendly for your normal site visitors.</p>
<p>The reality of unwanted image downloads is a bit depressing: there is no guaranteed way to protect your images from being taken&#8212;the most you can do is discourage it.</p>
<p>First, make sure your copyright notice is clearly posted on each page indicating that downloading or using images without permission is not allowed. In doing so you are legally holding your site visitors accountable if they steal and reuse your content.</p>
<p>If you suspect that image search engines or IE-only users are the culprits, using client- and server-side techniques might help alleviate the problem. But if you are looking for a universal solution, editing the images is your best bet since all these techniques can be circumvented by taking screenshots, using screen scraping tools, or simply viewing the locally cached images.</p>
<h3>Client-side techniques</h3>
<ul>
<li>Disable the right-click menu</li>
<li>Disable the shortcut menu in Internet Explorer</li>
<li>Use a transparent image overlay</li>
</ul>
<p>There are JavaScript solutions for disabling the right-click contextual menu; unfortunately, it will only deter a few people. Anyone that is intent on stealing images can still do so. In older versions of Internet Explorer you can disable the image shortcuts that appear when you hover over an image; again, if that is your target browser (or if you suspect that&#8217;s where it&#8217;s coming from) then implementing IE-specific techniques might work.</p>
<p>Most right-click disabling scripts rely on browser-specific functionality or JavaScript, making them unreliable in other browsers. The downside is that you risk annoying your real customers by removing expected menus and links.</p>
<p>Another technique—which <a href="http://www.flickr.com/">Flickr</a> employs—is the transparent image overlay. This involves layering a transparent <span class="caps">GIF</span> over the top of the image you wish to protect. When the image is right-clicked and saved, the person assumes they are downloading a <span class="caps">JPG</span> but instead get the transparent <span class="caps">GIF</span>.</p>
<p>From Flickr&#8217;s download prevention help text:</p>
<blockquote>
<p>Preventing people from downloading something also means that a transparent image will be positioned over the image on the main photo page, which is intended to discourage people from right-clicking to save, or dragging the image on to their desktop. By &#8220;discourage&#8221; we do mean simply &#8220;discourage&#8221;. Please understand that if a photo can be viewed in a web browser, it can be downloaded. The transparent image overlaid on the photo will not keep your images safe from theft, and is intended only as a slight hindrance to downloading.</p>
</blockquote>
<p>Using Flash to display images is another method to discourage image theft (since Flash right-click menus can be customized), but it isn&#8217;t foolproof. Just like these other techniques, people can simply take a screenshot to capture the image.</p>
<h3>Server-side techniques</h3>
<ul>
<li>Block image search engines</li>
<li>Disable image hotlinking</li>
</ul>
<p>Image search a popular way to access images. If you notice a lot of traffic from image search engines, try blocking them with a rule in your <code>robots.txt</code> file. See <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=35308">Remove an image from Google Image Search</a> for more details.</p>
<p>I also recommend disabling hotlinking by adding rules to your site&#8217;s <code>.htaccess</code> file. Doing so will not only potentially save you bandwidth costs by stopping other sites from reusing your images and content, it will prevent directly linking to your images without your permission.</p>
<h3>Image content editing</h3>
<ul>
<li>Add watermarks</li>
<li>Use very low quality images</li>
</ul>
<p>Although altering the image affects how it looks and works on your site, it is quite a bit more effective than simply trying to disable downloading or saving. Again, this is only a means to discourage theft &#8212; skilled graphic artists can remove a watermark and still have a usable image.</p>
<p>Using low quality images could also help, but finding a good balance between impressing your customers and deterring theft can be difficult.</p>
<h3>Bottom line</h3>
<p>If someone really wants the image, they will get it. Using the techniques described above will discourage most people from downloading your images, but remember that posting your images online means you run the risk of anyone downloading and reusing them.</p>
<h3>Further reading</h3>
<ul>
<li><a href="http://www.sitepoint.com/print/dont-disable-right-click/">Don&#8217;t Disable Right Click!</a></li>
<li><a href="http://www.ofzenandcomputing.com/zanswers/598">How to Protect Your Pictures and Photos on the Internet</a></li>
<li><a href="http://www.naturefocused.com/articles/image-protection.html">Tips and Techniques to Protect Images on the Internet</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simpledream.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simpledream.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/simpledream.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/simpledream.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simpledream.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simpledream.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simpledream.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simpledream.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=282&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://simpledream.net/2009/02/26/discouraging-image-theft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47976847383b324bd35e228a91eb1a0f?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">lance</media:title>
		</media:content>
	</item>
		<item>
		<title>Self-Updating Copyright Dates</title>
		<link>http://simpledream.net/2008/03/25/self-updating-copyright-dates/</link>
		<comments>http://simpledream.net/2008/03/25/self-updating-copyright-dates/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 17:00:33 +0000</pubDate>
		<dc:creator>Lance Willett</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web business]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://simpledream.net/2008/03/25/self-updating-copyright-dates/</guid>
		<description><![CDATA[In &#8220;10 complaints the customers have about the design of corporate web sites&#8220;, Luke Manion mentions having current date information on your website. His tenth pet peeve is &#8220;Out of Date Information.&#8221; An outdated copyright date or an expired offering &#8230; <a href="http://simpledream.net/2008/03/25/self-updating-copyright-dates/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=145&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In &#8220;<a href="http://www.wiliam.com.au/wiliam-blog/complaints-the-customers-have-about-the-design-of-corporate-web-sites">10 complaints the customers have about the design of corporate web sites</a>&#8220;, Luke Manion mentions having current date information on your website. His tenth pet peeve is &#8220;Out of Date Information.&#8221;</p>
<blockquote>
<p>An outdated copyright date or an expired offering calls all the information on a website into question as to its correctness.</p>
</blockquote>
<p>I agree with Manion&#8212;I find it to be a big turn-off when a website doesn&#8217;t have a current date listed. It tells me that the site owner or maintainer doesn&#8217;t care about keeping the site up, or doesn&#8217;t know how to set it automatically.</p>
<p>While this concept may be a no-brainer for many webmasters and website owners, other owners and maintainers seem to ignore the easy fix &#8212; <strong>let the copyright date update itself</strong>.</p>
<p>At the very least, the outdated copyright date screams, &#8220;We don&#8217;t update our site. You can&#8217;t trust any of the content here.&#8221;</p>
<p>Of course, there are some exceptions like the homespun websites that are just flat <span class="caps">HTML</span> files with no scripting support. But come on&#8212;if you use any of the popular hosting services out there, whether it is a Windows, Linux, or Apple server environment, you probably have access to at least one of the common scripting languages such as <span class="caps">PHP</span>, <span class="caps">ASP</span>, or Coldfusion.</p>
<p>If you have an out-of-date copyright in your website footer, go fix it today. It will add credibility to your website and give the impression that you care about what your visitors see and read. Your visitors will be impressed at the turn of the year when your site date automatically changes. As a plus on the technical side, you will have one less thing to worry about when January 1st rolls around.</p>
<p class="pre">Here are some code samples for adding a dynamic date to your website page or blog template<a href="#n1" id="r1"><sup>1</sup></a> (line wraps marked &raquo;). The output desired is:</p>
<pre class="html code"><code>Copyright 2008 My Company.</code></pre>
<p class="pre"><strong><span class="caps">PHP</span></strong></p>
<pre class="html code"><code>Copyright  My Company.</code></pre>
<p class="pre"><strong><span class="caps">VBS</span>cript (<span class="caps">ASP</span>)</strong></p>
<pre class="html code"><code>Copyright  My Company.</code></pre>
<p class="pre"><strong><span class="caps">CFML</span> (Coldfusion)</strong></p>
<pre class="html code"><code>Copyright #DateFormat(now(), &quot;yyyy&quot;)# My Company.</code></pre>
<p class="pre"><strong><span class="caps">JSP</span> (Java)</strong></p>
<pre class="html code"><code>Copyright  My Company.</code></pre>
<p class="pre"><strong><span class="caps">RHTML</span> (Ruby)</strong></p>
<pre class="html code"><code>Copyright  My Company.</code></pre>
<p><strong>Note: </strong> I do not guarantee that these code samples will work with your server and website setup. These snippets are here to show you how easy it can be to output a dynamic date in the most common scripting languages. Please use with caution and test thoroughly before using on a production website. <a href="#r1" title="Back to text">&#8617;</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/simpledream.wordpress.com/145/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/simpledream.wordpress.com/145/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simpledream.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simpledream.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/simpledream.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/simpledream.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simpledream.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simpledream.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simpledream.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simpledream.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simpledream.net&amp;blog=281665&amp;post=145&amp;subd=simpledream&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://simpledream.net/2008/03/25/self-updating-copyright-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47976847383b324bd35e228a91eb1a0f?s=96&#38;d=retro&#38;r=G" medium="image">
			<media:title type="html">lance</media:title>
		</media:content>
	</item>
	</channel>
</rss>
