<?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"
	>

<channel>
	<title>SubWolf's Haunt</title>
	<atom:link href="http://www.lockergnome.com/subwolf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lockergnome.com/subwolf</link>
	<description>Somewhere else for him to write, and hopefully you will read...</description>
	<pubDate>Wed, 21 Mar 2007 15:56:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Lockergnome On The Up</title>
		<link>http://www.lockergnome.com/subwolf/2007/03/21/lockergnome-on-the-up/</link>
		<comments>http://www.lockergnome.com/subwolf/2007/03/21/lockergnome-on-the-up/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 15:54:03 +0000</pubDate>
		<dc:creator>subwolf</dc:creator>
		
		<category><![CDATA[Lockergnome Admin]]></category>

		<guid isPermaLink="false">http://www.lockergnome.com/subwolf/2007/03/21/lockergnome-on-the-up/</guid>
		<description><![CDATA[It&#8217;s been a rocky road here at Lockergnome, you&#8217;ve undoubtedly noticed some occasional problems with the system. The good news is, that is all changing. I can&#8217;t get too specific, but I can at least say:

Those pesky post &#38; comment disappearance problems are now banished.
In the next 5 days we&#8217;ll be moving to some brand [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a rocky road here at Lockergnome, you&#8217;ve undoubtedly noticed some occasional problems with the system. The good news is, that is all changing. I can&#8217;t get too specific, but I can at least say:</p>
<ul>
<li>Those pesky post &amp; comment disappearance problems are now banished.</li>
<li>In the next 5 days we&#8217;ll be moving to some brand new servers.</li>
<li>In the next month we&#8217;ll be moving to a new platform!</li>
<li>In five months we can all have a laugh at <a href="http://gnomedex.com/">Gnomedex!</a></li>
</ul>
<p>More info as it comes in. Stick with us, it&#8217;s gonna be great.</p>
<p>[tags]servers, administration[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lockergnome.com/subwolf/2007/03/21/lockergnome-on-the-up/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Global Warming? Global Dimming!</title>
		<link>http://www.lockergnome.com/subwolf/2007/02/18/global-warming-global-dimming/</link>
		<comments>http://www.lockergnome.com/subwolf/2007/02/18/global-warming-global-dimming/#comments</comments>
		<pubDate>Sun, 18 Feb 2007 19:15:22 +0000</pubDate>
		<dc:creator>subwolf</dc:creator>
		
		<category><![CDATA[Concerns]]></category>

		<guid isPermaLink="false">http://www.lockergnome.com/subwolf/2007/02/18/global-warming-global-dimming/</guid>
		<description><![CDATA[The weather systems of the Earth are a complex thing, enough that we have a hard time predicting it - check out the supercomputers used by the Met Office in the UK! While Al Gore is on his mission to warn the world about Global Warming, late last year the BBC show Horizon brought another [...]]]></description>
			<content:encoded><![CDATA[<p>The weather systems of the Earth are a complex thing, enough that we have a hard time predicting it - check out the supercomputers used by the Met Office in the UK! While Al Gore is on his mission to warn the world about Global Warming, late last year the BBC show Horizon brought another issue to light, <a href="http://video.google.com/videoplay?docid=1027879546389218797" title="Google Video Link" target="_blank">Global Dimming</a>. At first it sounds like a bit of a contradiction, things are cooling down when they&#8217;re warming up? You have to dig a little deeper though, which the show does.</p>
<p>Global Dimming is a situation created by pollution - not greenhouse gases. The water molecules in clouds tend to build around elements in the air such as pollen, but when polluted air is involved, there are 10x as many particles for those water molecules to build around, making the clouds much denser. As a result, they reflect more sunlight back into space. Studies found that sunlight hitting various countries around the world had dropped from 5 - 30% between the 1950&#8217;s and the 90&#8217;s. As you can imagine, these findings were mostly dismissed, but then further corroborative evidence was found, water evaporation rates in Australia had dropped a significant amount during the same period.</p>
<p>We are now starting to feel the effects of <b>lower</b> Global Dimming, as pollutant levels decrease from our own efforts to &#8216;clean up&#8217;, but without removing the real source of the danger, carbon dioxide. As a result, temperatures rise faster, and now some scientists claim we may see temperatures rise 10 degrees in the next 100 years, a major difference from previous models which didn&#8217;t factor in the effects of Global Dimming.</p>
<p>Of course, I&#8217;m not a scientist, but this still concerns me, and I hope it concerns you. Is it all a load of codswallop? I only have to look at recent extreme weather events to know things are changing fast: Hurricane Katrina, <a href="http://en.wikipedia.org/wiki/February_2007_North_America_winter_storm" target="_blank">massive snowfall</a> in NY State, <a href="http://en.wikipedia.org/wiki/2003_European_heat_wave" title="Wikipedia Link" target="_blank">record-breaking temperatures</a> in Europe in 2003. The list goes on.</p>
<p>I&#8217;m now laughingly waiting for comments claiming left or right wing tactics - the climate does not give a damn if you&#8217;re democrat or republican, change is afoot and we must sort something out, not banter politically.</p>
<p>[tags]global warming, global dimming, weather, climate[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lockergnome.com/subwolf/2007/02/18/global-warming-global-dimming/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mastery of Programming-Fu</title>
		<link>http://www.lockergnome.com/subwolf/2007/01/23/mastery-of-programming-fu/</link>
		<comments>http://www.lockergnome.com/subwolf/2007/01/23/mastery-of-programming-fu/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 10:16:09 +0000</pubDate>
		<dc:creator>subwolf</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.lockergnome.com/subwolf/2007/01/23/mastery-of-programming-fu/</guid>
		<description><![CDATA[I recently came across a post on Gianni Milanesi&#8217;s blog regarding Javascript-Fu, it&#8217;s a mixture of good points and pseudo-tales. The heart of the matter is that if you follow some simple guidelines when you write code (JS or any type), you can make life much easier for yourself and others.
I&#8217;ll give you an example [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across a post on <a href="http://www.giannim.com/blog/">Gianni Milanesi&#8217;s blog</a> regarding <a href="http://www.giannim.com/blog/?p=25">Javascript-Fu</a>, it&#8217;s a mixture of good points and pseudo-tales. The heart of the matter is that if you follow some simple guidelines when you write code (JS or any type), you can make life much easier for yourself and others.</p>
<p><span id="more-3"></span>I&#8217;ll give you an example of what can happen without some *-Fu: here&#8217;s some PHP code I wrote in January of 2005. It&#8217;s purpose is to keep a timing log of events, simply call DebugLog(&#8221;Some action occured&#8221;) and it&#8217;ll add your event to the list, plus the time since the last event, and the total time up to that point. There are other functions to handle output of the log, but this is the meat of it:</p>
<pre>function DebugLog($t = "Unknown Marker Point") /* $t = Marker Text */
{
   global $dg, $DEBUG_MODE, $DEBUG_PFX; /* $dg['p'] = Log Iteration */
   if (!$DEBUG_MODE) return; /* Clause to exit early */
   list($a, $b) = explode(" ", (($n = microtime()) ? $n : "0 0")); /* $n = Now */
   list($c, $d) = explode(" ", (($l = $dg['l'][(isset($dg['p']) ? $dg['p']++ : ($dg['p'] = 0))]) ? $l : $n)); /* $l = Last Time */
   list($e, $f) = explode(" ", (($s = $dg['l'][0]) ? $s : $n)); /* $s = First Time */
   $dg['o'][(($dg['l'][$dg['p']] = $n) ? $n : 0)] = (!empty($DEBUG_PFX) ? "{$DEBUG_PFX}: " : "") . ($t != FALSE ? ("{$t} (&lt;b&gt;" . (($q = sprintf("%0.
4f",($b-$d+$a-$c))) ? $q : 0). "s&lt;/b&gt; / " . ((($r = sprintf("%0.4f",($b-$f+$a-$e))) ? $r : 0) != $q ? "{$r}s" : "Init") . ")") : "");
}</pre>
<p>&#8230; yuck, so compressed I have trouble breaking it down to it&#8217;s component parts - and I wrote it. It&#8217;s handy to show off for a &#8216;l00k at my skillz&#8217; angle (if you love ternary conditional operators), but from a maintenance standpoint it&#8217;s nasty. Imagine if you wrote 1,000 lines of code for a client in this way, then got &#8220;hit by a bus&#8221; (as my boss terms it), where would your successor begin?</p>
<p>So, heres what you can do:</p>
<ul>
<li>Follow a simple set of coding guidelines. When I began writing <a href="http://drupal.org">Drupal</a> modules, I noticed both the core and third-party code followed <a href="http://drupal.org/node/318">particular standards</a>. I still follow them now.</li>
<li>Comment, comment, comment. It doesn&#8217;t slow parsers down, they ignore them. Your intentions in code are not always clear, by adding a few words it becomes much more obvious to others, and to yourself; if you leave and return to it months later.</li>
<li>Optimize your code, but not to the point of obfuscation. Again, parsers don&#8217;t really care if you name your variable $a or $inventoryContents.</li>
<li>Encourage peer review of your code when possible, theres always the chance that they&#8217;ll see a better way to do something, or learn a new method in the process (and vice versa). In these modern times web scripting languages can change significantly in a short time span, keeping up to date through RTFM&#8217;ing and talking to fellow coders is a good combo.</li>
</ul>
<p>May your code be good and your returns high. :)</p>
<p>[tags]programming,code,guidelines,fu[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lockergnome.com/subwolf/2007/01/23/mastery-of-programming-fu/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
