<?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>this.rand() &#187; programming</title>
	<atom:link href="http://www.thisrand.com/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thisrand.com</link>
	<description>the life of Ryan Meinzer and Jessica Meinzer</description>
	<lastBuildDate>Mon, 19 Sep 2011 01:41:44 +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>Tweaking Jquery AutoSuggest</title>
		<link>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest</link>
		<comments>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest#comments</comments>
		<pubDate>Mon, 31 Jan 2011 17:19:52 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=1521</guid>
		<description><![CDATA[Tweaking the Drew Wilson Jquery autosuggest script to display a full list on double click without typing any input.]]></description>
			<content:encoded><![CDATA[<p>I have been using the <a target="_blank" class="zem_slink" title="JQuery" rel="homepage" href="http://jquery.com/">JQuery library</a> for a long time now, and am still amazed at what people get it to do.  One feature that the base libaray was really lacking was a good <a target="_blank" class="zem_slink" title="Incremental search" rel="wikipedia" href="http://en.wikipedia.org/wiki/Incremental_search">Autosuggest</a> for a text input.  It needed to be <a target="_blank" class="zem_slink" title="Ajax (programming)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> driven, and understand having multiple values.</p>
<p>I found a great example of what I wanted at <a target="_blank" href="http://code.drewwilson.com/entry/autosuggest-jquery-plugin" target="_blank">Drew Wilson&#8217;s blog</a>, complete with almost all the features I needed.</p>
<p>One thing his script is really lacking is a good way to show ALL the results.  We have a huge category list, and want to let someone browse them all.  In the base script, this isn&#8217;t going to work, since there isnt a way to make the look up fire off without input.  I didnt want my users to have to enter in, one by one, each letter of the alphabet looking for what they wanted, so I settled on using a double click event to force the display of the entire list.</p>
<p>And here is how to make that happen:</p>
<p>In the js file (jquery.autoSuggest.js) you will need to make some changes.</p>
<p>~line 149 add:</p>
<pre> }).dblclick(<a target="_blank" class="zem_slink" title="Function (mathematics)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Function_%28mathematics%29">function</a>(){</pre>
<pre> if (timeout){ clearTimeout(timeout); }</pre>
<pre> timeout = setTimeout(function(){ keyChange(); }, opts.keyDelay);</pre>
<p>so it will look like:</p>
<pre> }).blur(function(){</pre>
<pre> if($(this).val() == "" &amp;&amp; values_input.val() == "" &amp;&amp; prefill_value == ""){</pre>
<pre> $(this).val(opts.startText);</pre>
<pre> } else if(input_focus){</pre>
<pre> $("li.as-selection-item", selections_holder).addClass("blur").removeClass("selected");</pre>
<pre> results_holder.hide();</pre>
<pre> }</pre>
<pre> }).dblclick(function(){</pre>
<pre> if (timeout){ clearTimeout(timeout); }</pre>
<pre> timeout = setTimeout(function(){ keyChange(); }, opts.keyDelay);</pre>
<pre> }).keydown(function(e) {</pre>
<p>This will pull up a list on <a target="_blank" class="zem_slink" title="Double-click" rel="wikipedia" href="http://en.wikipedia.org/wiki/Double-click">double click</a>.  You can change dlbclick to just click for a <a target="_blank" class="zem_slink" title="Point-and-click" rel="wikipedia" href="http://en.wikipedia.org/wiki/Point-and-click">single click</a> response instead.</p>
<p>~line 226 comment out the lines:</p>
<pre>if( lastKeyPressCode == 46 || (lastKeyPressCode &gt; 8 &amp;&amp; lastKeyPressCode &lt; 32) ){ return results_holder.hide(); }</pre>
<p>and</p>
<pre>if (string == prev) return;</pre>
<p>and</p>
<pre>if (string.length &gt;= opts.minChars) {</pre>
<p>and then on ~line 252 comment out</p>
<pre> } else {</pre>
<pre> selections_holder.removeClass("loading");</pre>
<pre> results_holder.hide();</pre>
<pre> }</pre>
<p>You will also want to turn the option &#8220;resultsHighlight&#8221; false, when you create the instance.</p>
<p>Now, on double click it will present a full list of options.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://designshack.co.uk/articles/javascript/weekly-freebies-10-brilliant-jquery-plugins">Weekly Freebies: 10 Brilliant jQuery Plugins</a> (designshack.co.uk)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.devcurry.com/2010/11/jquery-144-fadetoggle-function.html">jQuery 1.4.4 fadeToggle() function</a> (devcurry.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://addyosmani.com/blog/jquery-roundrr/">jQuery Roundrr &#8211; How To Create Awesome Circular Image Galleries With jQuery &amp; CSS</a> (addyosmani.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.devcurry.com/2010/10/use-jquery-to-scroll-to-bottom-or-top.html">Use jQuery to Scroll to Bottom or Top of a Page</a> (devcurry.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://renesd.blogspot.com/2011/01/jquery-15-promises-better-future.html">JQuery 1.5 promises a better future.</a> (renesd.blogspot.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=4e0fe6cc-4494-4d0c-a7ab-aa75277a202e" alt="Enhanced by Zemanta" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Validation is (still) pointless!</title>
		<link>http://www.thisrand.com/2010/11/html-validation-is-still-pointless</link>
		<comments>http://www.thisrand.com/2010/11/html-validation-is-still-pointless#comments</comments>
		<pubDate>Tue, 23 Nov 2010 20:43:03 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[cute]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[legal]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[zoo]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=542</guid>
		<description><![CDATA[Ok, so we all know that we should write &#8220;valid&#8221;* HTML, and yet, less than 5% of websites validate for one reason or another.  Now this statistic can be a...]]></description>
			<content:encoded><![CDATA[<p>Ok, so we all know that we <em>should</em> write &#8220;valid&#8221;* <a target="_blank" class="zem_slink" title="HTML" rel="wikipedia" href="http://en.wikipedia.org/wiki/HTML">HTML</a>, and yet, <a target="_blank" href="http://www.netmag.co.uk/zine/latest-issue/issue-183" target="_blank">less than 5% of websites validate</a> for one reason or another.  Now this statistic can be a bit misleading as a comment from a user that didn&#8217;t use valid markup could invalidate the <a target="_blank" class="zem_slink" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website</a>, so granted, there is some play with the stats (per the usual), but let&#8217;s again assume that number is close.</p>
<p>Why?  Why do we not write perfect HTML?  Surely with the free <a target="_blank" href="http://validator.w3.org/" target="_blank">validator</a> on the authority&#8217;s website there is no excuse to write code that wont validate against the standard.</p>
<p>The answer there is simple, <strong>if and when </strong>all the major browsers (<a target="_blank" class="zem_slink" title="Mozilla Firefox" rel="geolocation" href="http://maps.google.com/maps?ll=45.1238,-123.1138&amp;spn=1.0,1.0&amp;q=45.1238,-123.1138%20%28Mozilla%20Firefox%29&amp;t=h">Firefox</a>, <a target="_blank" class="zem_slink" title="Safari (web browser)" rel="homepage" href="http://www.apple.com/safari/">Safari</a>, IE, <a target="_blank" class="zem_slink" title="Opera Software" rel="homepage" href="http://www.opera.com">Opera</a>, Chrome) all render a page according to the standard, then I will finally start caring about the validation of my websites.  Until then, I will continue to write code that works across the board, and just not care if it is &#8220;valid&#8221;.</p>
<p>To be real though, most of the browsers work pretty well, however the <a target="_blank" href="http://www.w3schools.com/browsers/browsers_stats.asp" target="_blank">800lb gorilla</a> in the room, IE, does not.  <a target="_blank" class="zem_slink" title="Microsoft" rel="homepage" href="http://www.microsoft.com">Microsoft</a> continually changes the standards by which they will render a page, like promising <a target="_blank" href="http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx" target="_blank">CSS 2 support in IE7</a> then bailing on that promise 6 months before release.  And let us not forget the horribly pathetic Javascript <a target="_blank" class="zem_slink" title="Layout engine" rel="wikipedia" href="http://en.wikipedia.org/wiki/Layout_engine">rendering engine</a>, <a target="_blank" class="zem_slink" title="JScript" rel="homepage" href="http://msdn.microsoft.com/en-us/library/hbxc2t98%28VS.85%29.aspx">JScript</a>, that the rest of us just ignore because it can&#8217;t be trusted to behave reliably.</p>
<p>So, like even on this website, we find ourselves writing &#8220;valid&#8221; code, and at the same time having to redefine valid to mean &#8220;Code that works in all the browsers&#8221;, not &#8220;Code that the W3C says is valid even though it looks like crap in IE6&#8243;.  Just to maintain a semblance of order and sanity, we use the handy IE CSS hacks where IE on <a target="_blank" class="zem_slink" title="Windows" rel="homepage" href="http://www.microsoft.com/WINDOWS">Windows</a> will actually arbitrarly execute code depending on the version of the IE browser being used.  Does that sound like an admission of guilt on the part of MS to anyone else?  OK Bill, repeat after me, &#8220;I know my browser sucks, so, instead of fixing it which would severely hamper my marketing and legal budgets, I will just allow hacks in order to ensure you nerdy web guys can still make pretty pages&#8221;.  There, was that so hard!?</p>
<p>So, someone feel free to run the validate against any of my websites.  Don&#8217;t bother sending me the results because I don&#8217;t care.  The sites work, the code looks good, documented, and is maintainable, so, what exactly was the complaint?</p>
<h5>*valid code is extremely subjective, but let&#8217;s assume here I mean W3C &#8220;valid&#8221; code.</h5>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://blogs.msdn.com/ie/archive/2009/02/19/the-css-corner-using-filters-in-ie8.aspx">The CSS Corner: Using Filters In IE8</a> (blogs.msdn.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.inquisitr.com/17897/mozilla-should-be-thanking-microsoft-for-bundling-ie-not-kissing-eus-butt/">Mozilla should be thanking Microsoft for bundling IE not kissing EU&#8217;s butt</a> (inquisitr.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/article/09/01/16/browser-wars-deemed-hot-again_1.html&amp;a=2664880&amp;rid=688f04e7-7910-4d78-8153-78194999c6b9&amp;e=62bf56fb0808fa686789d7d6995fdf45">Browser wars deemed hot again</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.ghacks.net/2009/02/23/how-to-zoom-in-firefox/">How To Zoom In Firefox</a> (ghacks.net)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/article/09/01/23/Microsoft_to_deliver_first_IE8_release_candidate_Monday_1.html&amp;a=2800890&amp;rid=688f04e7-7910-4d78-8153-78194999c6b9&amp;e=32f3ce5da320127c5a388473cabdd420">Microsoft to deliver first IE8 release candidate Monday</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/article/08/12/19/Google_issues_first_postbeta_Chrome_update_1.html&amp;a=2330376&amp;rid=688f04e7-7910-4d78-8153-78194999c6b9&amp;e=0d13e5560c2070cb64992b4e6fce5c55">Google issues first post-beta Chrome update</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://thenextweb.com/2009/01/27/eu-force-microsoft-include-firefox-future-versions-windows/">The EU Could Force Microsoft to Include Firefox in Future of Versions of Windows</a> (thenextweb.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/688f04e7-7910-4d78-8153-78194999c6b9/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=688f04e7-7910-4d78-8153-78194999c6b9" alt="Reblog this post [with Zemanta]" /></a></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F11%2Fhtml-validation-is-still-pointless&amp;title=HTML%20Validation%20is%20%28still%29%20pointless%21" id="wpa2a_2"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/11/html-validation-is-still-pointless/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Why Drupal Views make so little sense</title>
		<link>http://www.thisrand.com/2010/10/why-drupal-views-make-so-little-sense</link>
		<comments>http://www.thisrand.com/2010/10/why-drupal-views-make-so-little-sense#comments</comments>
		<pubDate>Thu, 14 Oct 2010 19:10:15 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=661</guid>
		<description><![CDATA[I recently had a very short contract gig working for a company that creates websites using Drupal.  While that doesn't sound very interesting or even hard, to make it more so of both, these guys used Views for every]]></description>
			<content:encoded><![CDATA[<p>I recently had a very short contract gig working for a company that creates websites using <a target="_blank" class="zem_slink" title="Drupal" rel="homepage" href="http://drupal.org">Drupal</a>.  While that doesn&#8217;t sound very interesting or even hard, to make it more so of both, these guys used Views for every</p>
<div class="zemanta-img zemanta-action-dragged" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 212px;">
<dt class="wp-caption-dt"><a target="_blank" href="http://commons.wikipedia.org/wiki/Image:Druplicon.vector.svg"><img title="Drupal" src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Druplicon.vector.svg/202px-Druplicon.vector.svg.png" alt="Drupal" width="202" height="231" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a target="_blank" href="http://commons.wikipedia.org/wiki/Image:Druplicon.vector.svg">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>thing.  Which I just don&#8217;t get.</p>
<p>If you are a programming, why would you use views?  It is adding a layer of abstraction between the logic and database in an interpreted language with a framework that is already bloated beyond all recognition.  I know when I write plugins for <a target="_blank" class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress</a>, I want the plugin to be quick, precise, and add the least amount of overhead possible.  Views just seem to be a way to do all the opposites of those, just for the hell of it.</p>
<p>If you are not very technically inclined, I understand.  Using views is a lot like using <a target="_blank" class="zem_slink" title="Microsoft Access" rel="homepage" href="http://office.microsoft.com/access">MS Access</a>.  You can create fairly complex queries yourself, without having to get someone that actually understands it involved.  And that is the trade off.  You can do it yourself, and eat the extra overhead, or pay/hire/bribe/cajole someone else into doing it for you, specialized, and thus, in theory at least, more efficiently.</p>
<p>These folks claimed to be programmers though, so I just don&#8217;t get it.  Why are you depending on someone else&#8217;s plugin, that extends functionality that is inefficient and clumsy, can&#8217;t do everything, and still requires custom code to be written or even more plugins to be added.  Where exactly does that circular line stop?</p>
<p>The Drupal &#8220;framework&#8221; and I use that term loosely since it is really a CMS that can just be extended, has enough problems and bloat in it, why exactly are views worth adding more?  Again, assuming you know SQL and PHP on even a basic level.</p>
<p>It just doesnt make any sense.  Query writers and views are one thing if you are working directly with the database, (e.g. <a target="_blank" class="zem_slink" title="PhpMyAdmin" rel="homepage" href="http://www.phpmyadmin.net">phpMyAdmin</a> or <a target="_blank" class="zem_slink" title="TOAD (software)" rel="homepage" href="http://www.quest.com/toad">TOAD</a>), but adding it as a layer to a &#8220;custom&#8221; application that you will be supporting when you claim to be capable of actual programming!!??  Please explain that one to me.</p>
<p>To be fair, I dont use Drupal much, I like WP much better.  The OO approach is much more appealing than the very <a target="_blank" class="zem_slink" title="Perl" rel="homepage" href="http://www.perl.org/">Perl</a>-esque (read: old) way of doing things Drupal does with its modules. But I still don&#8217;t get what the big deal is about Views.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://wpthoughts.com/2009/01/before-customizing-wordpress/">Before You Customize Any Part of Your WordPress</a> (wpthoughts.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://ostatic.com/blog/choosing-an-open-source-cms-planning-playing-and-page-views">Choosing an Open Source CMS &#8212; Planning, Playing, and Page Views</a> (ostatic.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.trellon.com/content/blog/7-suggestions-for-new-drupal-users-in-higher-education">7 Suggestions for New Drupal Users in Higher Education</a> (trellon.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=45e2e995-6a2f-4a87-9395-4acbe9e81256" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/10/why-drupal-views-make-so-little-sense/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>For the Love of God, Optimize those Images!</title>
		<link>http://www.thisrand.com/2010/10/for-the-love-of-god-optimize-those-images</link>
		<comments>http://www.thisrand.com/2010/10/for-the-love-of-god-optimize-those-images#comments</comments>
		<pubDate>Thu, 07 Oct 2010 16:29:46 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=582</guid>
		<description><![CDATA[Time for another lesson in web design: Image Optimization!  Yes, as we all know it is really pretty to have a huge header on your website.  Hey, look at this...]]></description>
			<content:encoded><![CDATA[<p>Time for another lesson in <a target="_blank" class="zem_slink" title="Web design" rel="wikipedia" href="http://en.wikipedia.org/wiki/Web_design">web design</a>: Image Optimization!  Yes, as we all know it is really pretty to have a huge <a target="_blank" class="zem_slink" title="Header (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Header_%28computing%29">header</a> on your <a target="_blank" class="zem_slink" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website</a>.  Hey, look at this website, I have large images on my front page.  But, you don&#8217;t have to make that experience painful for your users, especially those on *gasp* <a target="_blank" class="zem_slink" title="Dial-up internet access" rel="wikipedia" href="http://en.wikipedia.org/wiki/Dial-up_internet_access">dial-up</a>!</p>
<p>The solution is simple: optimize your images.  I use <a target="_blank" href="http://www.adobe.com/products/fireworks/" target="_blank">Fireworks</a>, but <a target="_blank" href="http://www.adobe.com/products/photoshop/photoshop/" target="_blank">Photoshop</a> has it built in these days as well.  It is basically a way of taking the image you want to use, and removes unwanted data, making the image size smaller, and hence, faster to load.  <a target="_blank" class="zem_slink" title="World Wide Web" rel="wikipedia" href="http://en.wikipedia.org/wiki/World_Wide_Web">The web</a> is a horrible medium for images, the 72dpi resolution of most monitors is just not that great.  But, it is all we have right now, and that is probably a good thing since anything more and the image just gets bigger and bigger.</p>
<p>By optimizing, your look stays intact, and everyone can enjoy it faster.  And it is cheaper on your wallet since it requires less <a target="_blank" class="zem_slink" title="Bandwidth (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Bandwidth_%28computing%29">bandwidth</a> and less <a target="_blank" class="zem_slink" title="Central processing unit" rel="wikipedia" href="http://en.wikipedia.org/wiki/Central_processing_unit">CPU</a> to serve a smaller file.  Speaking of cheap, for those of you that do not have the <a target="_blank" class="zem_slink" title="Adobe" rel="wikipedia" href="http://en.wikipedia.org/wiki/Adobe">Adobe</a> suite, there is a pretty spiffy free online optimizer <a target="_blank" href="http://tools.dynamicdrive.com/imageoptimizer/" target="_blank">here</a>.  Enjoy, and for the love of all things holy, optimize!</p>
<p>If you want to read more on the topic: <a target="_blank" href="http://www.yourhtmlsource.com/optimisation/imageoptimisation.html" target="_blank">HTMLSource</a>.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://blogs.adobe.com/jnack/2009/02/gridmaker_panel.html">GridMaker panel released for Photoshop CS4</a> (blogs.adobe.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://chris.pirillo.com/2008/12/05/how-to-make-money-with-web-design/">How to Make Money With Web Design</a> (chris.pirillo.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.noupe.com/best-of/2008-most-popular-design-posts-tutorials-and-resources.html">2008 Most Popular Design posts, Tutorials and Resources</a> (noupe.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.code4dotnet.com/?p=1994">Photoshop.com: Store &amp; Share Your Pics Online</a> (code4dotnet.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://blogs.adobe.com/sarthaksinghal/2008/12/adobe_launches_community_help_1.html">Get to know the all new Adobe CS4 Help</a> (blogs.adobe.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://blogs.adobe.com/jnack/2009/02/julieanne_blogs.html">Julieanne blogs, right inside Photoshop</a> (blogs.adobe.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.masternewmedia.org/free-picture-editing-software-best-downloadable-image-editors-mini-guide/">Free Picture Editing Software: Best Downloadable Image Editors &#8211; Mini-Guide</a> (masternewmedia.org)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.noupe.com/photoshop/60-most-wanted-photoshop-tutorials-brushes-psds-and-resources.html">60 Most Wanted Photoshop Tutorials, Brushes, .PSDs and Resources</a> (noupe.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=2036d642-2b4d-438a-a0c4-bd3d42cefa6f" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F10%2Ffor-the-love-of-god-optimize-those-images&amp;title=For%20the%20Love%20of%20God%2C%20Optimize%20those%20Images%21" id="wpa2a_4"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/10/for-the-love-of-god-optimize-those-images/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Programmers, do you have Insurance?</title>
		<link>http://www.thisrand.com/2010/09/programmers-do-you-have-insurance-2</link>
		<comments>http://www.thisrand.com/2010/09/programmers-do-you-have-insurance-2#comments</comments>
		<pubDate>Sun, 26 Sep 2010 01:28:36 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[legal]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.xmtek.net/?p=1348</guid>
		<description><![CDATA[Calling all programmers, those of you that do it professionally at least.  Do you have your own personal errors and omissions insurance?  Should you?  Probably. I have been in development...]]></description>
			<content:encoded><![CDATA[<p>Calling all programmers, those of you that do it professionally at  least.  Do you have your own personal errors and omissions insurance?   Should you?  Probably.</p>
<p>I have been in development for a long time time, about 12 years, and for the <a target="_blank" title="Web development" rel="wikipedia" href="http://en.wikipedia.org/wiki/Web_development">web development</a> world I live in, that makes me ancient.  I carry my own errors and omission insurance for personal projects, just in case the <a target="_blank" title="GNU General Public License" rel="wikipedia" href="http://en.wikipedia.org/wiki/GNU_General_Public_License">GPL</a> can&#8217;t protect me well enough.  What is this insurance you ask?</p>
<p>There is a good article over at <a target="_blank" href="http://www.insurancejournal.com/magazines/west/2004/07/19/features/44745.htm" target="_blank">Insurance Journal</a> that goes over exactly what it is and why you might need it.  My  question is a bit more complex though.  If you are a professional <a target="_blank" title="Computer programming" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_programming">programming</a>, working on someone else&#8217;s payroll, do you need this insurance?  If you are fired for incompetence, or laid off, and the <a target="_blank" title="Company" rel="wikipedia" href="http://en.wikipedia.org/wiki/Company">company</a> you used to work for finds a bug that has cost them $1M a week since it  was implemented 2 quarters ago, do they have the right, or abililtty,  to sue you for that loss?  Perhaps.  It all depends on where you live,  what company, and the situation.</p>
<p>Being <a target="_blank" title="Lawsuit" rel="wikipedia" href="http://en.wikipedia.org/wiki/Lawsuit">sued</a> for something you did on the job, in the best interest of the company,  under the leadership of someone else, is extremely rare.  Most likely  because it requires the company to admit they were less than diligent,  didn&#8217;t do a very good job managing, and then makes them liable to their  stakeholders since they are basically admitting an agent of their  company screwed up.  Companies don&#8217;t like to do that.</p>
<p>However, if you are working on a 1099 or a third party W2, you need  to make sure you are covered.  If you are on 1099 or doing corp-to-corp,  you had better have insurance.  You are liable in that case, in the  absence of another contract, for everything you do and write.  While you  probably wouldn&#8217;t be found guilty of anything (I hope), it would be  expensive to fight it, and better let the <a target="_blank" title="Insurance" rel="wikipedia" href="http://en.wikipedia.org/wiki/Insurance">insurance company</a> do it.</p>
<p>If you are on a third party W2, make sure the folks you are actually  workign for have E&amp;O insurance as an add on or rider to their  general liablity.  You could need them to protect you for something you  did in their employ on behalf of one of their clients.</p>
<p>So, do you have insurance?  Do you need it?  I am not a <a target="_blank" title="Lawyer" rel="wikipedia" href="http://en.wikipedia.org/wiki/Lawyer">lawyer</a>,  so none of this should be taken and blindly run with, but, ask yourself  if you are covered, and if you have questions or doubts, find someone  that knows and ask.  It never hurts and could save you a lot of trouble  later.</p>
<h6>Related articles by Zemanta</h6>
<ul>
<li><a target="_blank" href="http://www.americablog.com/2009/02/mcdonalds-denies-workers-comp-for-shot.html">McDonald&#8217;s denies workers comp for shot employee</a> (americablog.com)</li>
<li><a target="_blank" href="http://arstechnica.com/news.ars/post/20081211-free-software-foundation-lawsuit-against-cisco-a-first.html">Free Software Foundation lawsuit against Cisco a first</a> (arstechnica.com)</li>
</ul>
<div><a target="_blank" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img src="http://img.zemanta.com/zemified_e.png?x-id=96e69717-418d-460d-85c3-d173ad15c5f2" alt="Enhanced by Zemanta" /></a></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F09%2Fprogrammers-do-you-have-insurance-2&amp;title=Programmers%2C%20do%20you%20have%20Insurance%3F" id="wpa2a_6"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/09/programmers-do-you-have-insurance-2/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Types of Programming Bugs</title>
		<link>http://www.thisrand.com/2010/09/types-of-programming-bugs</link>
		<comments>http://www.thisrand.com/2010/09/types-of-programming-bugs#comments</comments>
		<pubDate>Thu, 23 Sep 2010 17:15:09 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=1041</guid>
		<description><![CDATA[In a recent project I have been working on, I took over another&#8217;s code base, based in Drupal, and have been working to both fix issues and add functionality.  It...]]></description>
			<content:encoded><![CDATA[<p>In a recent project I have been working on, I took over another&#8217;s code base, based in <a target="_blank" class="zem_slink" title="Drupal" rel="homepage" href="http://www.drupal.org">Drupal</a>, and have been working to both fix issues and add functionality.  It has been a lot of fun learning Drupal, and working with this interesting application.  And finding different types of bugs.  If you are a programmer, you know there are bugs that are different and behave oddly.   Here are some types of <a target="_blank" class="zem_slink" title="Software bug" rel="wikipedia" href="http://en.wikipedia.org/wiki/Software_bug">programming bugs</a> I have come across recently.</p>
<p><strong><span class="zem_slink">Heisenbug</span></strong><br />
Named for the <a target="_blank" href="http://en.wikipedia.org/wiki/Uncertainty_principle" target="_blank"><em>Heisenberg uncertainty principle</em></a>, this type of bug is only appears when you aren&#8217;t looking.  You know the kind, the kind you swear you can&#8217;t replicate, but yet, the users day after day report them happening.  If you try to measure this type of bug, you will inevitably alter your results.  They are the worst to track down, because a lot of the time you end up making changes just to hope they go away, even though you still aren&#8217;t sure exactly what caused them.</p>
<p><strong>Keyser Söze Bug</strong><br />
These actually arent even bugs, but they make you think they are, and are a complete pain in the neck.  Basically, it is a &#8220;bug&#8221; that is causing a huge problem for you, but as you learn, and dig and dig, you figure out it isnt a bug, just a &#8220;feature&#8221;.  It may be stupid, illogical, or incorrect, but the code itself is working just as design and written.  So, in essence, it isnt a bug, only made you think it was.</p>
<p><strong>WTF Bug</strong><br />
This is one of those that you swear up and down you have fixed, several times, yet is still there.  The most common one of these is when a customer&#8217;s ISP or internal firewall have cached old versions, so the damn thing is still cropping up on you, but you know it isn&#8217;t there anymore.  Another time these happen is when you change one part of the code, only to figure out that those methods were depreciated 8 versions ago, and now all that logic is somewhere else.  Yes you changed it, yes you committed it, but the bug is still there.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://drupal.org/drupal-6.19">Drupal 6.18, 6.19 and 5.23 released</a> (drupal.org)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.omgubuntu.co.uk/2010/09/how-scalable-is-open-source/">How scalable is open source?</a> (omgubuntu.co.uk)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://programmers.stackexchange.com/q/1785/30">What should every programmer know about programming?</a> (programmers.stackexchange.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=0f72625f-9c36-446e-988d-3e6ae175f2ed" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F09%2Ftypes-of-programming-bugs&amp;title=Types%20of%20Programming%20Bugs" id="wpa2a_8"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/09/types-of-programming-bugs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Standards are NOT pointless</title>
		<link>http://www.thisrand.com/2010/09/programming-standards-are-not-pointless</link>
		<comments>http://www.thisrand.com/2010/09/programming-standards-are-not-pointless#comments</comments>
		<pubDate>Sun, 19 Sep 2010 22:27:49 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=558</guid>
		<description><![CDATA[It seems some people took my other article a bit too seriously.  While I was very serious and feel strongly about my convictions when it comes to HTML &#8220;validation&#8221;, the...]]></description>
			<content:encoded><![CDATA[<p>It seems some people took my <a target="_blank" href="http://www.thisrand.com/2008/12/html-validation-is-still-pointless">other article</a> a bit too seriously.  While I was very serious and feel strongly about my convictions when it comes to <a class="zem_slink" title="HTML" rel="wikipedia" href="http://en.wikipedia.org/wiki/HTML">HTML</a> &#8220;validation&#8221;, the same cannot be said of <a target="_blank" class="zem_slink" title="Computer programming" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_programming">programming</a> standards.</p>
<p>For those of you that have never programming professionally, this stuff may be very new to you.  However, trust me, it is extremely important.  Programming standards are not stupid, are not corners to be cut, and must be strict, otherwise they ARE pointless.</p>
<p>There are standards when it comes to documenting your code, and I wont get into them.  But if you are interested there are programs out there which more or less set the standard if you want to use them.  <a target="_blank" href="http://java.sun.com/j2se/javadoc/" target="_blank">JavaDoc</a>, <a target="_blank" href="http://www.phpdoc.org" target="_blank">PHPDoc</a>, and for those <a target="_blank" href="http://ndoc.sourceforge.net/" target="_blank">MS folks</a>&#8230;.. .  Go check out their websites for good advice on how to format your comments in your code.</p>
<p>Now, for actually coding, I have my own set of standards, developed over the years, to make the code both readable, but also hopefully logical.  Most people I run into think my code is pretty readable, some languages more than others.  Let&#8217;s face it, <a target="_blank" class="zem_slink" title="Perl" rel="homepage" href="http://www.perl.org/">Perl</a> code will never, ever, be as readable or &#8220;pretty&#8221; as <a target="_blank" class="zem_slink" title="Python (programming language)" rel="homepage" href="http://www.python.org/">Python</a>.  It just isn&#8217;t going to happen.  Sorry you old <a target="_blank" class="zem_slink" title="Unix" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unix">UNIX</a> guys, but <a target="_blank" href="http://blog.dedrop.org/2008/07/perl-handy-but-ugly.html" target="_blank">Perl just isn&#8217;t very pretty</a>.  The <a target="_blank" class="zem_slink" title="Oo (digraph)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Oo_%28digraph%29">OO</a> languages are much easier on the eyes.</p>
<p>So, other than for documentation reasons, <a target="_blank" class="zem_slink" title="Readability" rel="wikipedia" href="http://en.wikipedia.org/wiki/Readability">readability</a> (which leads to maintainability), are there actually other reasons to program to a standard?  Only if you want to use your code in some sort of portfolio.  But those first two reasons are EXTREMELY important.  Everyone out there that has programmed professionally will know exactly what I mean.</p>
<p>Tabs or spaces?  Braces at the end of a line or on their own line?  Spaces between concatenation or operators?  Double quotes or single quotes?  Print to buffer or hold in variables?  Globals or object variables?  Arguments or variables?</p>
<p>There are a ton of questions, and I cant answer them all.  But think about why you do something, and if you cant come up with a good reason, probably time to stop doing it.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.codinghorror.com/blog/archives/001218.html">The Sad Tragedy of Micro-Optimization Theater</a> (codinghorror.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://api-madness.com/post/printf-22-printf-documentation/">PRINTF #22 Printf Documentation</a> (api-madness.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://agentultra.com/?p=178">My Road to Lisp</a> (agentultra.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://ejohn.org/blog/javascript-language-abstractions/">JavaScript Language Abstractions</a> (ejohn.org)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://punetech.com/why-you-need-to-learn-ruby-and-rails/">Why you need to learn Ruby and Rails</a> (punetech.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=c6f98bbb-e7e2-4366-ba0b-23528a2ca759" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F09%2Fprogramming-standards-are-not-pointless&amp;title=Programming%20Standards%20are%20NOT%20pointless" id="wpa2a_10"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/09/programming-standards-are-not-pointless/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix WP ECommerce</title>
		<link>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce</link>
		<comments>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce#comments</comments>
		<pubDate>Mon, 30 Aug 2010 22:57:50 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[writings]]></category>
		<category><![CDATA[cute]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[Royalty Interest]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=830</guid>
		<description><![CDATA[On front end pages with no ecommerce functionality, this plugin adds over 220+ database queries.  The more I messed with the code trying to make it behave, the more I...]]></description>
			<content:encoded><![CDATA[<p>On front end pages with no ecommerce functionality, this plugin adds over 220+ database queries.  The more I messed with the code trying to make it behave, the more I understood just how horribly written this plugin is.</p>
<p>Now, as someone that has been doing development long enough to know, there are times that code just gets away from the development team and becomes a mess unto itself.  It happens, especially in the OSS world where code reviews are few if ever.  But, as I read the forums for this thing, the developers are just fooling themselves thinking the code is in good shape.</p>
<p>Here are a few basic suggestions:<br />
1) Check to see if the page needs to execute the plugin.  If it doesnt, dont do it.  There is no reason to increase the number of queries by an order of magantuide when I am on a page that has no WP Ecommerce functionality.<br />
2) Clean up the queries.  For example:<br />
SELECT `id` FROM `wp_product_list` WHERE `active` IN(&#8217;1&#8242;)<br />
should be<br />
SELECT `id` FROM `wp_product_list` WHERE `active` = 1<br />
It is more effiecent.</p>
<p>3) Index the tables!  The query above doesnt use an index.  That is right folks, the field &#8220;active&#8221; in product_list is not indexed.  This is easy and simple.</p>
<p>4) Use arrays or some other data structure for complex data.  Dont use the same basic query over and over again.  Example:</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F08%2Fhow-to-fix-wp-ecommerce&amp;title=How%20to%20fix%20WP%20ECommerce" id="wpa2a_12"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Look for this.rand()</title>
		<link>http://www.thisrand.com/2010/01/new-look-for-this-rand</link>
		<comments>http://www.thisrand.com/2010/01/new-look-for-this-rand#comments</comments>
		<pubDate>Wed, 20 Jan 2010 00:20:42 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=898</guid>
		<description><![CDATA[Well, it has been a while since I did a new look for our homepage, so here it is.  What do ya think?  This is a theme instead of the...]]></description>
			<content:encoded><![CDATA[<p>Well, it has been a while since I did a new look for our homepage, so here it is.  What do ya think?  This is a theme instead of the usual totally custom method I do, but I like it.  It is a very magazine type of look, but it gets a lot more content on the front page, and uses the sidebars better.  So it should drive a little more traffic, and be easier to use for those that do show up.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F01%2Fnew-look-for-this-rand&amp;title=New%20Look%20for%20this.rand%28%29" id="wpa2a_14"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/01/new-look-for-this-rand/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin over SSL</title>
		<link>http://www.thisrand.com/2009/10/phpmyadmin-over-ssl-2</link>
		<comments>http://www.thisrand.com/2009/10/phpmyadmin-over-ssl-2#comments</comments>
		<pubDate>Sun, 04 Oct 2009 18:53:06 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://206</guid>
		<description><![CDATA[I get asked this question a lot: &#8220;How can I force phpMyAdmin to run over https &#8216;SSL&#8217;?&#8221; It is basically an issue to deal with security. Since phpMyAdmin deals with...]]></description>
			<content:encoded><![CDATA[<p>I get asked this question a lot: &#8220;How can I force phpMyAdmin to run over https &#8216;SSL&#8217;?&#8221;  It is basically an issue to deal with security.  Since <a target="_blank" href="http://www.phpmyadmin.net" target="_blank">phpMyAdmin</a> deals with directly accessing your database, it only makes sense you want to make it as secure as you can.  While running over SSL &#8216;HTTPS&#8217; is not the total solution, it does help.  So, here is how to make it run over SSL.</p>
<p><span id="more-876"></span></p>
<p>Assuming you already have SSL installed and configured correctly in your webserver for whatever directory phpMyAdmin is in, open up the index.php file, and at the very top, just after the comments end, but before the includes&#8221;, add these few lines:</p>
<pre>if '$_SERVER["SERVER_PORT"] != 443'{
$head = "Location: https://" . $_SERVER["HTTP_HOST"] .  $_SERVER["REQUEST_URI"];
header'$head';
exit;
}</pre>
<p>That&#8217;s it.  It will force your page loads to go through HTTPS.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2009%2F10%2Fphpmyadmin-over-ssl-2&amp;title=phpMyAdmin%20over%20SSL" id="wpa2a_16"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2009/10/phpmyadmin-over-ssl-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

