<?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>William Astle&#039;s General Clutter</title>
	<atom:link href="http://lost.l-w.ca/0x05/feed/" rel="self" type="application/rss+xml" />
	<link>http://lost.l-w.ca/0x05</link>
	<description></description>
	<lastBuildDate>Wed, 22 Feb 2012 23:26:55 +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>Cineplex Fail!</title>
		<link>http://lost.l-w.ca/0x05/cineplex-fail/</link>
		<comments>http://lost.l-w.ca/0x05/cineplex-fail/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 23:26:55 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Passing Scene]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x05/?p=936</guid>
		<description><![CDATA[So I decided to go to a movie at one of the local Cineplex multiplexes. That&#8217;s not particularly unusual nor is it noteworthy. Since I don&#8217;t particularly like dealing with the box office and I wanted to be sure of &#8230; <a href="http://lost.l-w.ca/0x05/cineplex-fail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I decided to go to a movie at one of the local <a href="http://www.cineplex.com/" target="_blank">Cineplex</a> multiplexes. That&#8217;s not particularly unusual nor is it noteworthy. Since I don&#8217;t particularly like dealing with the box office and I wanted to be sure of a seat, I did the online purchase thing. Historically that has worked well, and without any particular trouble. However, this time that was not the case.<span id="more-936"></span></p>
<p>First, their web site was down for a couple of hours. Okay, I figured there was something going on with their host or something. Sure enough, it was back up later. Again, I&#8217;m not complaining about that since nothing can be perfectly reliable. I only mention it because it contributes to my overall annoyance today.</p>
<p>When I finally got to the site and got the correct showtime at the correct theatre selected (my own ineptitude with a mouse at work there), I got on with the checkout process. It went perfectly smoothly until the step where you fill in your payment information. At that point, the site insisted I did not have cookies enabled and helpfully provided instructions on how to enable them. (The instructions were wrong but that&#8217;s not the annoying part.) When that message came up, I had a major WTF moment. I never turned cookies off in the first place!</p>
<p>I poked and prodded at things for a bit and finally discovered that I had to allow <em>third party</em> cookies. I enabled that and sure enough suddenly things worked. Now why did I need third party cookies to check out, I wonder? Especially since it has never been required previously. If I wasn&#8217;t as technically savvy as I am, I would have just said &#8220;Fuck it&#8221; and not bothered with a movie.</p>
<p>The moral of this, if either one of my readers is involved with ecommerce in any way, is as follows. Make sure you test everything carefully before you deploy a change to the a site. And don&#8217;t, for the love of all that is good and decent, do not require third party cookies! They are disabled by default in any reasonable browser! And if you do require third party cookies, fess up about it on your error pages!</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/cineplex-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning Up an IT Mess</title>
		<link>http://lost.l-w.ca/0x05/cleaning-up-an-it-mess/</link>
		<comments>http://lost.l-w.ca/0x05/cleaning-up-an-it-mess/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 17:23:30 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Opinion Pieces]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=894</guid>
		<description><![CDATA[So you have a shiny new job managing the IT infrastructure for Acme Widgets Inc, a company that has been in business for decades. You have barely sat down at your desk when the telephone rings. You pick it up &#8230; <a href="http://lost.l-w.ca/0x05/cleaning-up-an-it-mess/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you have a shiny new job managing the IT infrastructure for Acme Widgets Inc, a company that has been in business for decades. You have barely sat down at your desk when the telephone rings. You pick it up but before you can utter a canned greeting, you find yourself being berated for some random failure of something you haven&#8217;t had time to even learn about. You shrug and dive in and eventually manufacture a solution to the problem. No sooner have you done that than the telephone rings again with another irate user. And so passes your first day. And your second. And your third. And your thirtieth. And your enthusiasm.<span id="more-894"></span></p>
<p>Eventually, you pitch management on hiring an assistant. They grudgingly accept that an assistant is needed simply to handle things when you take your annual legally required vacation, but instead of giving you a full time assistant, they tell you to train one of the in house software development grunts. You choose which one. You leave the board room dejected. How are you supposed to get anything beyond firefighting done without a properly trained assistant?</p>
<p>Sullenly, you set about documenting every problem that occurs along with the solution you employ. You make notes about causes, underlying problems with the systems in use, and so on. It takes more time than you have but you know the only way your part time assistant has any hope of handling anything during your vacation (which you are not eligible for until next year some time) is if he can refer to a tome containing everything he will ever need to know. You also know that such a tome is impossible to create, but you reason that even incomplete information is better than none at all.</p>
<p>As the weeks pass, you start to see patterns to the failures you encounter. A certain brand of ethernet switch fails in a certain way under specific conditions. A particular activity report causes the entire intranet server to freeze solid for three hours once every month. The computers on the eighteenth floor keep losing the network but no others do. And so on. You also realize that it is taking you less time to handle each fire as you become more and more familiar with the infrastructure. You have reached the break over point where you now know intuitively how much of the system operates. You start finding it easier and easier to slot new information into your growing understanding of the mess you have inherited. And it is, for certain, a mess, having evolved organically over the decades of Acme Widgets Inc&#8217;s history. You even begin to understand management&#8217;s reluctance to provide a full time assistant, though you still believe such a person is important.</p>
<p>Now, several months into your stint at Acme Widgets, you face a problem. You desire to improve the infrastructure. The motivation is purely selfish, of course. You are sick of having to put out fires continually and you know that improved infrastructure will reduce the time you spend doing so. But how do you proceed? You know that management will not accept a large expenditure all at once to forklift upgrade the entire infrastructure. You also realize that doing so is a bad idea since it will likely all fail at the same time in that case. Instead, you need a different plan, one that fits within your departmental pittance of a budget.</p>
<p>You start by referring to your painstakingly created documentation, looking for gaps and patterns. You spend every free moment crawling all over the company offices, tracing wires and taking inventory of components ranging from 10Base2 tees and GigE switches to telephones and cable runs. It takes months to make sense of it all, during which time company employees have come to refer to you as The Inspector. Finally, you feel you understand the mess sufficiently and begin to form a plan.</p>
<p>You start with the ever problematic eighteenth floor which, you have learned, still has a great deal of 10Base2 wiring linking switches of various vendors using media converters of various quality all over the floor. You blow two months capital budget on a shiny new GigE switch and install it in the wiring closet. You wire it into the overall network and marvel at the fact that nothing crashes or fails when you do so. Then you painstakingly replace every network connection on the floor with a new cat6 cable run back to the wiring closet and, to avoid confusion later, carefully pull out every old wire that is decommissioned. The denizens of the floor snigger about the Inspector crawling all over the floor and spending hours climbing up and down ladders. But slowly, you complete your task and the regular calls to the eighteenth floor stop. One day you receive a call from one of the denizens of the floor wondering where you have been for they have missed the entertainment of watching you at your task. None of them notice that their work has been more efficient with fewer interruptions waiting on IT since you started your project.</p>
<p>With the first upgrade project complete, you realize just how much of your time had been taken up by the eighteenth floor. Now you have time to examine other problems so you tackle the next most obvious problem using the same methodical approach. Again, you are amazed at the time saving once that problem is sorted out. Re-energized, you continue incrementally replacing or otherwise updating problematic infrastructure, each time tackling the item that causes the highest call volume.</p>
<p>Suddenly, after several years of diligent work upgrading, replacing, and otherwise fixing the creaking IT mess you inherited, you find yourself spending the better part of every day sitting at your desk idly clicking around your fancy new infrastructure monitoring system while you wait for new workstation installations to complete. You no longer spend every minute of the day fighting fires. Sure, the occasional problem pops up and you handle it efficiently. The old nickname from your early days has stuck around but nobody remembers why. Management begins to question even your part time assistant. In your quest for laziness, you have demonstrated that the company only needs one person to manage the whole IT infrastructure. Oops.</p>
<p>With management rumbling about downsizing your department to just you, you wonder what you can do to make them see the light. Suddenly, you remember you have not taken a vacation in far too long. You schedule your vacation time and the bean counters are ecstatic to have that liability off the books. You leave all technology behind and set off for the back country where you will be unreachable for three weeks. During that time, your part time assistant will have to hold the fort.</p>
<p>Upon your return, you step into a hornet&#8217;s nest of activity but it cannot touch the serenity acquired through weeks away from it all. Your assistant strolls up to you and casually notes that the primary server is down, the failover didn&#8217;t, and the vendors are pointing fingers at each other. You casually ask why the failover failed and your assistant shrugs. Cleaning staff pulled the power cord out of the power socket and promptly fried the UPS. Why were the cleaning staff in the server room? Management. What is the ETR? Your assistant glances at his watch and smiles. Everything is sorted out now. You raise your eyebrow. It is all a prank, it seems.</p>
<p>In the calm of your office, your assistant briefs you on your absence. It seems an unusually high number of problems materialized while you were away but your assistant has everything well in hand. You check over his work and are mostly pleased &#8211; he has not messed up any more than expected, or, indeed, any more than you would have. And he has kept a detailed log, bless him. Armed with that information, you confront management and they happily agree that your assistant should be full time. You smile and set to work planning for the expansion you know management will spring on you without notice eventually.</p>
<hr />
<p>In case it was not obvious, the preceding is a fairy tale. Very seldom will an IT job progress in that manner. Still, the goal of the unnamed IT person in the tale should be the goal of any IT manager, and the path taken to achieve that goal is sensible. Rather than try to sell a wholesale replacement of everything all at once, which is usually expensive and causes sticker shock for bean counters and management alike, incremental updates often disappear into the noise. And by strategically picking what to upgrade, a substantial impact may be seen for a relatively minor investment. Rather than develop a rube goldberg plan of action and then slavishly sticking to it, our hero tackled one existing source of annoyance and corrected it before moving on to the next. Instead of treating the mess as a single problem, it was broken into smaller pieces that were more easily identifiable and fixable.</p>
<p>In case you are wondering how practical such a plan of attack much be, consider that, though the details were substantially different and the scale smaller, my own day job progressed in much the same manner. Over the space of years, I slowly moved a production network through dozens of minor steps from a disaster waiting to happen if anyone merely tripped on a network cable to the fairly resilient network that is in place today, and I did it on what would be considered a shoestring budget.</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/cleaning-up-an-it-mess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shakycam</title>
		<link>http://lost.l-w.ca/0x05/shakycam/</link>
		<comments>http://lost.l-w.ca/0x05/shakycam/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 20:12:51 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=891</guid>
		<description><![CDATA[I know I&#8217;m not the only person to have noticed the preponderance of the shaky camera technique in modern cinematography. Like any techniques, it can be used to good effect. Let&#8217;s examine shaky camera in detail. First of all, let &#8230; <a href="http://lost.l-w.ca/0x05/shakycam/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I know I&#8217;m not the only person to have noticed the preponderance of the shaky camera technique in modern cinematography. Like any techniques, it can be used to good effect. Let&#8217;s examine shaky camera in detail.<span id="more-891"></span></p>
<p>First of all, let me define what I mean by &#8220;shakycam&#8221;. That is the technique of shaking a camera as though it is hand held. That is, the image shakes side to side as though the cameraman is walking or it jitters rapidly as though the cameraman cannot hold it steady as he alternates between focus points. Like anything, there are degrees varying between mild swaying and violent shaking.</p>
<p>Now, let&#8217;s examine cases where such a technique might be used. The most obvious is when the image is supposed to be one shot by an amateur. For instance, when an investigator is viewing &#8220;witness video&#8221;. In this case, the footage is supposed to have been shot by an amateur with a hand held camera. The degree of shakiness will, of course, depend on the shooter&#8217;s circumstances. If he is running toward the action, the image will probably move around violently. If he is walking, it will probably be a gentle sway. If he is standing still, it might even approach tripod stability.</p>
<p>Sometimes, the shakycam effect is used to make a shot feel more dynamic. In this case, the camera motion is meant to suggest that we are physically there, following the subjects around, even when such a situation would be patently absurd. However, used judiciously, this trick can engage audience members in a scene more than a series of static steady shots can. Used to excess, it can cause the audience to reach for anti-nausea medication (or simply close their eyes).</p>
<p>Neither of the preceding uses of shakycam are particularly annoying unless used to excess. However, there is another use which is particularly notable. Fights or other high action scenes. By using a rapidly shaking, swaying, panning, etc., camera angle, one leaves the viewer in significant doubt about exactly what is or was going on during the scene. This is because we can only compensate so rapidly for changing camera angles and, thus, we are rapidly confused by the motion overload. In case you&#8217;re wondering why such motion is so much more confusing on the screen than when you are dashing toward a fight on the street, it is because we have other physical cues to our own motion while running and those cues allow our brains to filter that motion out more effectively. We do not have those cues when watching a movie.</p>
<p>So why are film makers moving toward shakycam fights and high action scenes? It&#8217;s partly because it adds more dynamicity to the scene, but mostly it disguises errors and even allows prolonging a fight scene by editing together various angles of the same three punches/kicks in sequence. With the unstable view, no viewer is going to be able to pick that out, or at least is going to have some level of doubt. This is particularly effective when combined with the rapid cut technique where you do not stay with any particular shot for more than a second or so.</p>
<p>Another reason for shakycam techniques is to disguise poor backgrounds, poor effects shots, and even disguise the use of stunt doubles. While the last can be excused to some extent, the others are inexcusable. If your backgrounds or effects are bad enough that you feel you must disguise them, use some other technique that does not leave the audience motion sick, including blurring the background, using similar stylistic techniques to those of animé (minimal or no backgrounds during high action sequences), etc.</p>
<p>All of the above is bad enough in a 2D film. But it gets particularly problematic when combined with the assaultive 3D so common in modern cinema. Not only do you have the 3D effects causing eye strain and potential nausea, you have the vomit-inducing rapid cut shakycam scenes doing the same. Come on, people, I go to movies to be entertained, not to feel ill for an hour afterward!</p>
<p>I have not touched on digital effects combined with shakycam. I assume exactly how a shot is acquired is not relevant to the use of any particular camera technique.</p>
<p>Now, what is the solution to all this annoying shakycam fight scene stuff? It&#8217;s simple. Go back to choreographing fight sequences longer than three punches. Film them with steady cameras. Resist the temptation to cut to different angles continually during editing &#8211; stick with an angle for a while. Allow the audience to marvel at the execution of the fight sequence rather than leaving them baffled about just what happened. If you must show different angles, only do so when it adds something to the action, like showing a particularly nice facial expression on one of the combatants.</p>
<p>If, instead of trying to hide lack of choreography during fight scenes, you are disguising poor sets, backgrounds, etc., instead try to make the action compelling enough that the set fades into the background where it should be anyway. Use the &#8220;blurred background sharp focus&#8221; technique. Do anything that does not make the audience nauseated by the process. Or better yet, get better sets, or use strategic camera angles (which works for disguising stunt doubles, too).</p>
<p>In all, I long to see skilled cinematography replace low-brow trickery in the motion picture business (and that includes television).</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/shakycam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canada Ditches Kyoto</title>
		<link>http://lost.l-w.ca/0x05/canada-ditches-kyoto/</link>
		<comments>http://lost.l-w.ca/0x05/canada-ditches-kyoto/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 16:21:07 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=888</guid>
		<description><![CDATA[It hit the news today that Canada is pulling out of the Kyoto Protocol. Of course, the pundits, environmentalists, and activists are all going to shout about how we&#8217;re all doomed because we&#8217;re doing nothing about climate change. But, really, &#8230; <a href="http://lost.l-w.ca/0x05/canada-ditches-kyoto/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It hit the news today that Canada is pulling out of the Kyoto Protocol. Of course, the pundits, environmentalists, and activists are all going to shout about how we&#8217;re all doomed because we&#8217;re doing nothing about climate change. But, really, the Kyoto Protocol was not doing anything anyway and is, in fact, fundamentally flawed.<span id="more-888"></span></p>
<p>I will leave aside the question of whether human activity has or can have any appreciable impact on the global climate. For the sake of this discussion, I will assume that through action or inaction we can, in fact, effect real change in the global climate.</p>
<p>Now, let&#8217;s examine what the Kyoto Protocol really does. Signatories commit to targets for total emissions of certain chemicals into the atmosphere. It is not entirely about carbon dioxide though that is a major component. Some signatories commit to reductions in emissions while others are granted room for growth.</p>
<p>Aside from the fact that measuring emissions is something that cannot be done accurately, there is also the problem of enforcement. How do you enforce something on a sovereign nation? Well, clearly you cannot unless you have sufficient support from other sovereign nations. Even then, if pressure does not work, you have to be willing to take punitive measures. The problem with such measures is that the ultimate end result of such measures is war. If the nation in question chooses to call the bluff, then the others must be willing to follow through. The problem with the follow-through is that it often hurts the enforcers as much or even more than the one being punished.</p>
<p>Even if enforcement is not an issue, the issue under Kyoto is how these targets can be met. Kyoto allows for trading &#8220;carbon credits&#8221;. Under this scheme, a nation who is not using all its emissions space can sell that unused space to a nation which needs headroom. While this seems like a good idea on paper, a few seconds thought should reveal the problems with it. In particular, it does nothing to actually reduce emissions! All it does is transfer wealth from one nation to another. The nation buying the credits has no incentive to put resources into reducing emissions and the nation selling the credits has no incentive to industrialize since doing so means that nation cannot sell as many credits.</p>
<p>Furthermore, under Kyoto, &#8220;developing&#8221; nations are largely exempted from emissions targets on the theory that they need to develop in order to reduce emissions or that the cost of emission reduction would be ruinous to their economic advancement. This is, of course, absurd. The same costs apply to the so-called developed nations and the developing nations are under no obligation to use the same high polluting technologies that the developed nations have deployed en masse. Indeed, it should be easier for the developing nations to move forward with cleaner technologies than it is for the developed nations because they have so much less infrastructure already in place.</p>
<p>Leaving aside the fairness of the developing/developed nation divide under the protocol (there are conflicting yet valid arguments), let us consider the inherent problem with the scheme. The whole point of the Kyoto Protocol is, ostensibly, to reduce emissions and it is supposedly needed because we are facing imminent ecological collapse. Yet allowing developing nations to continue increasing emissions can only hasten said collapse. Ecological realities do not care about fairness. Either emissions must be reduced or they need not be. One cannot have it both ways. The global climate affects everybody, after all. So if emission reduction is necessary but only some actors are required to take action while others are not, this will hardly accomplish the goal.</p>
<p>Let us consider one final point. The current state of various nation economies makes adherence to any expensive measure dangerous. Leaving aside issues arising from greed, consider what happens if the economy in a region collapses. Under such a situation, the population is struggling to simply survive. There are no spare resources to dedicate to even the most desirable moral obligations. Indeed, resources are likely insufficient to even subsist! Now, consider an economy teetering on the edge of collapse. Add an additional burden that has no payoff for a very long time. Even if the net long term result is immensely positive, the teetering economy cannot absorb the cost and then collapses. Once it collapses, the desirable actions can no longer be sustained and will be abandoned. Put another way, when faced with starvation and exposure, a population will abandon every activity that does not provide an immediate payoff in terms of survival.</p>
<p>Anyone who has bothered to read this far will have divined that I consider Canada pulling out of Kyoto to be a good thing. I believe the Kyoto Protocol is fundamentally flawed and at odds with reality. In fact, I believe that it is unlikely that any international accord will not be fundamentally flawed in similar ways. This is an indictment of human nature as much as anything.</p>
<p>Of course, nothing prevents Canada (or any nation) from pursuing emissions reduction in the absence of an international agreement. In fact, it is likely that Canada will do so. After all, there are long term benefits to doing so, ranging from cleaner air in cities to reducing the likelihood of catastrophic climate change. But in the absence of Kyoto, Canada will be free to choose achievable goals using methods that do not bankrupt its economy.</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/canada-ditches-kyoto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is the Earth Really Doomed?</title>
		<link>http://lost.l-w.ca/0x05/is-the-earth-really-doomed/</link>
		<comments>http://lost.l-w.ca/0x05/is-the-earth-really-doomed/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 17:03:50 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Opinion Pieces]]></category>
		<category><![CDATA[Passing Scene]]></category>
		<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=882</guid>
		<description><![CDATA[If one listens to the currently fashionable hype, the entire planet is doomed simply because some primate creatures are muddling about on and near its surface. The hype can be succinctly summed up with the following statement: &#8220;ZOMG! The Earth &#8230; <a href="http://lost.l-w.ca/0x05/is-the-earth-really-doomed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If one listens to the currently fashionable hype, the entire planet is doomed simply because some primate creatures are muddling about on and near its surface. The hype can be succinctly summed up with the following statement: &#8220;ZOMG! The Earth is Doomed!&#8221; But is it really? Sure, if you take a sufficiently long term view. Eventually, the Earth really will be doomed as a result of proton decay if it somehow survives the death of the Sun. But let&#8217;s consider things on a smaller time scale than cosmic or even geological time.<span id="more-882"></span></p>
<p>First, what does &#8220;doom&#8221; really mean? At least <a href="http://dictionary.reference.com/browse/doom" target="_blank">one dictionary</a> defines &#8220;doom&#8221; as &#8220;fate or destiny, especially adverse fate; unavoidable ill fortune&#8221;. Common usage exclusively refers to ill fortune, the cool quote from the council of Elrond notwithstanding. It can also be used as a verb with a like meaning. But how does this apply to a planet?</p>
<p>The obvious definition of planetary doom is the destruction of the planet. This would include such events as the planet exploding or otherwise disintegrating, being split apart by an impact with another object in space, being ripped apart by tidal forces, or falling into a black hole. However, as long as the planet itself exists, it cannot really be said to have attained doom. Any event leading to such devastation is unpredictable or in the far distant future as measured geologically.</p>
<p>Clearly, then, this is not what is meant by those proclaiming the Earth&#8217;s imminent doom. Instead, a much more selfish view is implied. This selfishness is not unjustified, however. If the near term fate of the Earth renders it unsuitable for human habitation, then what does it matter to the silly humans currently inhabiting it if the planet itself continues basically unharmed? Perhaps the doomsayers really mean &#8220;The Earth as we know it is doomed!&#8221; But even that is too generic for all it takes is a major meteorological shift and the Earth as we know it is no more though said shift need not be inimical to our continued existence.</p>
<p>At last, we are zeroing in on the precise meaning of the statement. Let us substitute &#8220;Human life&#8221; for &#8220;The Earth&#8221;. Or, for a more friendly statement, use &#8220;We&#8221;. That means the statement really is, &#8220;ZOMG! We are doomed!&#8221;. Aha! Now that makes sense.</p>
<p>There are so many possible ways that humans can be doomed. We could be wiped out by a particularly virulent disease. Or perhaps a massive asteroid impact. Or maybe we will manage it ourselves with war. Perhaps we will exceed the <a href="http://dictionary.reference.com/browse/carrying+capacity" target="_blank">carrying capacity</a> of the planet. Or maybe an unfortunate genetic shift will doom us. Perhaps we will poison our own environment? None of these options are particularly far fetched. War is ever present and genocide is not unheard of. Some diseases are nearly perfectly fatal. Sterile or otherwise non-viable mutations occur all the time. Pollution is just a fancy term for poison and famine is a natural outgrowth of exceeding carrying capacity.</p>
<p>So are humans doomed to destruction in the near term? Perhaps. As human actions and natural variation cause changes in Earth&#8217;s ecosystem, the carrying capacity of various regions changes, and even the overall carrying capacity of the whole planet changes. As human technological capability changes, so, too, do our needs from the surrounding environment. And we also have the capability to analyze the ongoing changes and take actions to directly affect the ecosystem in both positive and negative ways. Thus, humans as a species will probably survive the apparently looming ecological crisis, but possibly with a vastly reduced population. Massive population collapse would be considered &#8220;doom&#8221; by those that do not survive, of course, but in general, this might actually be the anti-doom (or salvation if you prefer) of the human species!</p>
<p>Even if humans do not survive such an ecological apocalypse, it is unlikely that life on Earth will cease to exist. Indeed, it is unlikely that humans will manage to damage the entire ecosystem to the point that it cannot recover in some form. I will grant that it is, at least, possible, however. There is a precedent for life surviving such a calamity: consider the bad day that the dinosaurs had some tens of millions of years ago. Had that bad day not occurred, it is unlikely humans would have evolved to be apex predators in the first place (though it is conceivable that we would have, and even conceivable that we could have out-competed the dinosaurs for resources).</p>
<p>So, back to the original question. Is the Earth really doomed? On geological times scales, yes. On time scales that matter to us, probably not. On the other hand, <em>we</em> might be doomed. Through our economic and environmental practices may well cause our own doom. Still, even if we do not straighten out our act, it does not mean we, as a species, are actually doomed, even if we do cause the doom of countless others or even drastically change the ecology of the planet through our actions or lack thereof. So it&#8217;s not certain that we are doomed, but it&#8217;s also not certain that we are not doomed.</p>
<p>In summary, neither the Earth nor terrestrial life nor humans themselves are facing certain doom, but neither is the future necessarily bright. Doom, prosperity, or mediocrity, none are certain.</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/is-the-earth-really-doomed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On switching to KDE4</title>
		<link>http://lost.l-w.ca/0x05/on-switching-to-kde4/</link>
		<comments>http://lost.l-w.ca/0x05/on-switching-to-kde4/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 20:49:04 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=879</guid>
		<description><![CDATA[With the recent furore related to Ubuntu and Unity, and then with Gnome and its update, I have taken some time recently to try out different desktop environments. I ultimately decided to give KDE another solid chance. Let me start &#8230; <a href="http://lost.l-w.ca/0x05/on-switching-to-kde4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With the recent furore related to Ubuntu and Unity, and then with Gnome and its update, I have taken some time recently to try out different desktop environments. I ultimately decided to give KDE another solid chance.<span id="more-879"></span></p>
<p>Let me start by saying that I do not change desktop environments for no reason. First, when Ubuntu started shipping with Unity by default, I was annoyed but I gave it a shot for a few hours before I got thoroughly pissed off with it. I mean, really, taking the menu bar out of the application is great and all, but what if I have a dozen windows open. How do I know which one has the focus? And how to I get to that menu bar all the way up there if there are other windows between and the focus is following the mouse? And there were other problems, too, such as a total lack of compatibility with applications that expect a system tray.</p>
<p>I didn&#8217;t try the Gnome shell scheme because it is decidedly similar to the Unity scheme. Both of them are designed for <em>small screens</em>. Whichever genius decided that an interface designed for small screens must also be the ultimate interface for my 24 inch wide screen 1920&#215;1200 monitor must have been smoking something really good (where can I get some?). Also, the interface assumes single tasking using a single application. That may, indeed, be what most people do. But anyone doing serious work on a computer will tend to have several windows open all at once and have them overlapped so that the important parts of each are visible. For those people, the classic desktop metaphor works very well (and for a reason: that metaphor was designed by such people for such people). Some of us even enjoy knowing exactly what programs are open and what programs are merely available to open.</p>
<p>It was clear I needed to try one of the competing environments so some half year past, I set upon a quest.</p>
<p>First, I tried out Xfce as present in Xubuntu. It worked well enough and was similar enough to an old school desktop for an old codger like me. However, over time I ran into a great many minor niggles and missing features. It was a death by a thousand paper cuts. Eventually, I decided I couldn&#8217;t stand those little bugs and missing features. If there was another environment that did not suffer from such problems and was readily available, and which did not annoy me, these problems with Xfce would be sufficient reason to switch. So, even though I gave Xfce half a year and was able to mostly get along with it, I decided my quest had to continue.</p>
<p>With the advent of Oneiric Ocelot, otherwise known as Ubuntu 11.10, I decided it was a prime time to try KDE again. Folks who know me have heard me complain about KDE at length. And, with KDE 3, my complaints were valid. The default environment provided far too many cryptic choices in any install I saw. And when I say cryptic, I don&#8217;t just mean newbie level cryptic. I&#8217;m not a neophyte with computers by any stretch. I&#8217;ve been around the block a few hundred times. But I just couldn&#8217;t get along with KDE 3. Still, since then, KDE 4 has been released so I thought I might take a swipe at it.</p>
<p>At first, I was annoyed by a few things, but I expected that and persevered. I was able to discover the settings I needed to make the KDE system work with me instead of against me, such gems as &#8220;focus follows mouse&#8221;, &#8220;double-click to activate icons&#8221;, &#8220;turn off useless pretty effects&#8221; and so on. Now, after a week or so, I find it is actually usable. I still have a few issues finding some of my preferred applications but that is probably partly due to Kubuntu&#8217;s packaging rather than KDE.</p>
<p>Now, don&#8217;t get me wrong. I haven&#8217;t adopted the entire KDE koolaid scheme. I still use Firefox and Thunderbird for now. There&#8217;s no reason I can&#8217;t switch email clients since all my email is on an IMAP server but I only want to deal with so much change at a time. And Firefox has been an old friend for so long, it&#8217;s just comforting to see that dragon logo. And I&#8217;m using a raft of other applications that have nothing to do with KDE. But then, I used a raft of applications that had nothing to do with Gnome when I was using that environment, and the same under Xfce. I am pleased to note that these applications behave well regardless of whether their &#8220;preferred&#8221; environment is present.</p>
<p>One thing that I find somewhat weird with KDE 4 is the lack of desktop icons. More precisely, I can&#8217;t just dump files in the classic &#8220;Desktop&#8221; folder and have them appear all over the desktop. I am actually reminded of the old Windows 3.1 days when desktop icons were merely minimized programs, except now minimized programs go on the task bar (which is better). Still, this is not a major handicap even though I&#8217;ve become accustomed to cluttering up the desktop with files over the years (a close analogue to how I work in meat space, incidentally). Now, I just have a special widget open to the desktop folder and have that occupy a portion of the desktop. It works just as well, which is to say it is precisely as inconvenient as the cluttered full screen desktop is.</p>
<p>Are there things I don&#8217;t like about KDE4? Sure. But there are many more things I don&#8217;t like about Xfce and a boatload more that I don&#8217;t like about the current Gnome and Unity nonsense. For now, I&#8217;ll stick with KDE and see how that goes. Probably as long as it doesn&#8217;t get in my way too much, I&#8217;ll continue with it. That is, after all, my most important criterion for choosing a desktop environment. It must not get in my way when I&#8217;m trying to do stuff. Unity and the Gnome shell both fail that criterion by doing <em>surprising</em> things or obfuscating what&#8217;s really going on. Xfce fails simply by being just a bit too unpolished (for example, the desktop rendering program crashing randomly and icons rearranging on the desktop randomly).</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/on-switching-to-kde4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Hosting</title>
		<link>http://lost.l-w.ca/0x05/web-hosting/</link>
		<comments>http://lost.l-w.ca/0x05/web-hosting/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 17:25:10 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Metababbling]]></category>
		<category><![CDATA[Opinion Pieces]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=875</guid>
		<description><![CDATA[These days, it seems to be cool to select the lowest price option for anything, regardless of the merits of the service selected. In some cases, that is fine. However, one common case where this may not be the best &#8230; <a href="http://lost.l-w.ca/0x05/web-hosting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These days, it seems to be cool to select the lowest price option for anything, regardless of the merits of the service selected. In some cases, that is fine. However, one common case where this may not be the best option is with your web site.<span id="more-875"></span></p>
<p>Assuming you have a domain name for your web site, you have some sort of hosting service for it. For many people, it makes little difference who hosts the site. However, if you have any technical inclination, you are likely to want to tinker with it. In that particular case, you really want to have a hosting provider who is willing to talk to you, and possibly help you out with server configuration issues. This is where the cheapest solution from a gigantic company does not truly serve. Try talking to a knowledgeable technical support person at any large company and you&#8217;ll immediately realize what I mean.</p>
<p>The solution for that problem is to find a fairly small hosting operation who will be willing to talk to you if you have questions or problems. The company I use is <a href="http://www.lexicom.ca/" target="_blank">Lexicom</a> who also handle my domain registrations. Over the years, I have had excellent service from them.</p>
<p>There are a few things you should think carefully about when selecting a hosting company, especially related to your criteria for selecting a company.</p>
<p>The biggest thing a lot of people worry about when they select a hosting provider is support. Many people think they need 24/7 support. In actual fact, you don&#8217;t need it. Response during a business day is enough for your web site. Nothing about your blog is critical to your life. If it happens to be down for a few hours, or even a few days in a rare circumstance, it is not going to destroy your life. Neither will it destroy your business. Consider that even the likes of Google or Amazon have downtime. How about the recent multi-day outage for Blackberry? And face it, your site is not even remotely in the same league as them. Instead of a 24/7 support phone line, what you should be looking for is knowledgeable and competent support staff. After all, waiting through the weekend until Monday morning and then having the problem actually fixed is better than playing the telephone referral dance for several days and still having no resolution.</p>
<p>Another thing to consider is what you are going to do with your site. If you are just going to put up a wordpress blog, you do not need a &#8220;hosting control panel&#8221;, DNS management, five MySQL databases, extensive web site statistics, SSL certificates, mod_perl, the cloud, or any other buzzword the hosting providers like to throw around. You just need a basic hosting package that provides the minimal requirements for your site. Almost all support PHP and a MySQL database, which is probably all you need.</p>
<p>Also, when considering the included storage and traffic in each package, think about it realistically. Most web sites have hardly any real traffic. Very few exceed 1GB of traffic in a month on a regular basis. Even fewer exceed 5GB. Additionally, very few need more than a few dozen MB of actual storage space. There is no benefit to selecting a hosting provider that allows 50GB of traffic monthly over one that allows 5GB monthly if your web site is only ever going to do 1GB monthly. A similar consideration applies for storage.</p>
<p>Finally, does it really make sense to choose the hosting provider that is $1/month cheaper simply to save $12/year? That&#8217;s less than 2 designer coffees. Is your time to switch providers to save $12/year worth less than that $12? I know mine isn&#8217;t. (The same goes for domain registration fees, by the way.)</p>
<p>My hosting provider, <a href="http://www.lexicom.ca/" target="_blank">Lexicom</a>, charges $60/year for a basic hosting package that includes everything needed to run wordpress, or most any other reasonable content management system. Add that to my domain registration fee of about $20/year, I pay about $80/year for my web site. The domain itself would be cheaper if I renewed for more than one year at a time. Sure, I might be able to get the same thing for $30/year from one of the huge companies out there, but I value the time it would take to switch (more than an hour probably) considerably higher than $50. Also, I have the satisfaction of knowing that the company I deal with is Canadian and is not subject to foreign legal systems. I know my data is in Canada and not sitting on some random virtual server in, say, the United States.</p>
<p>So if you&#8217;re looking for a hosting arrangement for a domain, or even to transfer an existing one to a nicer provider, go ahead an give <a href="http://www.lexicom.ca/" target="_blank">Lexicom</a> a call. They&#8217;ll be happy to talk to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/web-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When does summer start anyway?</title>
		<link>http://lost.l-w.ca/0x05/when-does-summer-start-anyway/</link>
		<comments>http://lost.l-w.ca/0x05/when-does-summer-start-anyway/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 20:47:01 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=868</guid>
		<description><![CDATA[There is much debate over exactly when summer starts and ends. This is because in North America, summer runs from the solstice to the equinox while in other parts of the world, it runs from the cross-quarter day before the &#8230; <a href="http://lost.l-w.ca/0x05/when-does-summer-start-anyway/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is much debate over exactly when summer starts and ends. This is because in North America, summer runs from the solstice to the equinox while in other parts of the world, it runs from the cross-quarter day before the solstice to the cross-quarter day after it. To further muddy the waters, yet other places split the difference between the two. I am going to examine why the debate is stupid and the calendar definitions even stupider.</p>
<p>First, what is summer anyway? Generally, it is the warmest time of year with, on average, the longest days. In areas with cold winters, it is usually the bulk of the growing season. In other areas, summer might actually be the time with the least growth, sometimes being the dry season. In short, the specific definition of what summer is depends on where one is located on the Earth. It has historically been a fairly informal distinction.</p>
<p>Things might be clearer in the context of the other seasons. Winter is obviously the coldest time of year, usually associated with the shortest days and, in many parts of the world, snow or storms. In colder climates, little or no plant growth occurs either due to lack of light or the fact that the ground is too cold. Summer is the opposite time of year. Spring is merely the transition from winter to summer and autumn is merely the transition from summer to winter.</p>
<p>Depending where one is located, the relative lengths of the various seasons vary. Further from the equator tends to experience longer winters while closer to the equator experiences longer summers. At the equator, the weather tends to stay fairly consistent year round and one can consider the equator to be essentially seasonless. (That is not truly the case, but the important distinctions have little to do with summer or winter.)</p>
<p>Again, depending on latitude, spring and autumn may be longer or shorter. In more extreme latitudes, the sun moves more significantly between equinox and solstice than at lower latitudes. This means that the increase in daylight intensity and length is more marked. This tends to lead to more marked season shifts.</p>
<p>So what does this all mean? Well, where I am in southern Alberta, winter can arrive as early as October and last as late as May. Yes, that is nearly nine months. That is the extreme case, however. Usually, it is closer to late November through early April. Spring starts as soon as the weather breaks, the temperature increases above freezing most nights, and it usually comes with rain or wet snow (snow earlier with rain later). Summer arrives usually around mid to late May and lasts until some time in September at which point autumn begins. Autumn is usually fairly dry and comes with trees going dormant. Depending on the tree, it may start to show its &#8220;fall colours&#8221; as early as early August but most native species do not do so until September, often not until the first &#8220;killing frost&#8221;. In other words, spring is often quite short, summer fairly long, autumn variable, and winter quite long.</p>
<p>Now, what I have described is approximately correct for my area. Move several hundred kilometres north and the timing changes. Move several hundred kilometres east and things change. Move up in altitude and things change. Place an ocean with a warm current beside land and things change (such as the gulf stream and Europe). In some parts of the world, the four seasons are roughly equal lengths. In many others, there are no real seasons. In yet others, one or two seasons dominate.</p>
<p>Our modern world, however, has decided that seasons must each be one quarter of the year for everyone. These calendar seasons might make sense for small parts of the world where the seasons approximately agree. However, trying to apply the same definition across a large geographic area, say Canada or Europe or what have you is insane. In doing so, one must pick a dividing line and stick with it whether it makes sense across the whole area or not.</p>
<p>To further complicate matters, there are also seasons defined in circumstances other than common usage. Meteorological seasons are fairly reasonable in many areas, taking into account the lag between change in day length and the actual change in temperature. Astronomers like to define things in precise terms using the solstices and equinoxes as the centre points for the seasons. And then there are bureaucratic situations which often assign even quarters to the seasons with the dividing line often being somewhat arbitrary.</p>
<p>The practical upshot of all this is that the debate about &#8220;the one true start of summer&#8221; and related nonsense is just that. Nonsense. First, the specific context in which the question is asked will change the answer. Second, most people couldn&#8217;t care less what some scientist somewhere thinks should be the start of summer and they care only marginally more about some bureaucrat. What most people care about is what the weather is doing outside their door at any given time. It is that weather that defines what the season is. And the changing weather is variable, as we all know. That is, the changes don&#8217;t always happen at the same time every year. So picking a fixed date on a calendar for the start of any season is nuts.</p>
<p>So the next time someone starts the debate about when summer start or ends (or any other season, for that matter), ask them about the context of their assertion. Ask them to define the characteristics of the seasons and then ask them when those characteristics are often met in the local area. Either or both of you might be surprised at what you discover.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/when-does-summer-start-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Debt Ceilings and Defaults</title>
		<link>http://lost.l-w.ca/0x05/on-debt-ceilings-and-defaults/</link>
		<comments>http://lost.l-w.ca/0x05/on-debt-ceilings-and-defaults/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 16:24:45 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Opinion Pieces]]></category>
		<category><![CDATA[Passing Scene]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=864</guid>
		<description><![CDATA[There has been much commentary about the furore in Washington, DC. The US Treasury is running out of credit because it has reached the maximum it is allowed to borrow (the &#8220;debt ceiling&#8221;). Congress can fix that by raising the &#8230; <a href="http://lost.l-w.ca/0x05/on-debt-ceilings-and-defaults/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There has been much commentary about the furore in Washington, DC. The US Treasury is running out of credit because it has reached the maximum it is allowed to borrow (the &#8220;debt ceiling&#8221;). Congress can fix that by raising the debt ceiling. However this would require cooperation between both houses and the President. And this is not happening. As I write this, the wrangling continues with no end in sight.</p>
<p>For the past week or so, the big &#8220;D&#8221; word has been bandied about. Is the US Treasury going to default? Is it going to miss interest payments on bonds? Or is it going to do something else? Or is it simply going to be business as usual because Congress raises the debt ceiling?</p>
<p>First, let&#8217;s consider if the debt ceiling is raised. That will obviously stave off immediate consequences. However, unless spending comes under control, the whole drama will repeat itself in a few years. The US nation debt will continue to grow at an alarming pace and that growth will likely accelerate as the US population continues to age. So raising the debt ceiling is a temporary measure at best. At least one commentator has suggested that by 2015, things will be looking quite bleak, even in this scenario.</p>
<p>Now, suppose the US Treasury defaults on its obligations, or part of them. This would, of course, have far reaching consequences. The precise magnitude and reach of those consequences is difficult to predict, however. It will certainly cause a major shakeup in the world financial markets as the lemmings who have bought into the USD as a reserve currency flock to another currency to use as such (the Euro? Something else?). It could even touch off another round of &#8220;depression&#8221; (the other &#8220;D&#8221; word).</p>
<p>So, it seems that defaulting is not a good option in the short term though it might turn out better in the very long term. It also seems that raising the debt ceiling without changing the status quo is only a very short term solution. Is there another option?</p>
<p>Well, there is. The US Treasury could actually issue more money. That&#8217;s right. I said &#8220;print money&#8221;. Now I can hear everyone screaming at me. That&#8217;s bad. It will lead to runaway inflation leading to bread costing $25000 per loaf. There is no way printing more money is going to help! But if you will bear with me long enough to explain, you may find the result interesting.</p>
<p>What is the purpose of the US Treasury borrowing money? You may think it is to meat its obligations when it is short. And, on the surface, that would be correct. However, the net effect of the Treasury borrowing money is to increase the amount of money in circulation. This happens through the magic of fractional reserve lending, which I will not explain in detail here as there are many sites which expend a great deal of effort explaining it. Think about what I just said. The US Treasury is actually adding money to circulation by borrowing money. (See <a href="http://www.positivemoney.org.uk/">www.positivemoney.org.uk</a> for an explanation of the mechanics and why this is a bad idea.)</p>
<p>Now that we&#8217;ve established that the US Treasury borrowing money is actually increasing the circulating money supply, let&#8217;s consider the option. Printing money also increases the money supply, but it does so directly. No magic is required. No fractional reserve lending. And, best of all, no hidden interest costs to cover later. (Borrowing to create money using fractional reserve magic requires continual inflation to simply stave off collapse.) And here&#8217;s the best part. There is no need to increase the debt ceiling because this new money would not be borrowed from anywhere.</p>
<p>To answer the runaway inflation concerns, this is easily handled by limiting government spending to something reasonable. If the current level of spending is not causing runaway inflation, then financing it by printing money instead of borrowing money will not either. And printing money instead of issuing bonds will have the net beneficial effect of reducing annual operation costs by eliminating interest payments over time. While these interest payments may be a fairly small fraction of the overall budget, when you are facing a debt crisis, every cut matters. You do not solve personal financial woes by eliminating your biggest expense (housing probably), but by cutting a bit here and a bit there until it adds up to enough to balance the books. The same applies to a government. Reduce debt service costs as part of an overall strategy to reduce the deficit. Every dollar saved by reducing debt servicing is one less dollar that needs to be cut from social security or health care or which has to be raised through additional taxes.</p>
<p>I&#8217;ll leave with one final note about printing money as a solution. It is critical that printing money not become the primary mechanism by which governments fund operation for that way leads to runaway inflation. Instead, the government must fund its operations at a level that keeps new money creation at a level that maintains inflation at an approximately neutral level. That is, enough to keep the economy liquid and no more. Thus, balanced budgets are still needed and are, in fact, critical.</p>
<p>The <a href="http://www.positivemoney.org.uk/">positive money</a> site I mentioned above talks about much of this from the perspective of the United Kingdom, and without reference to debt ceilings. However, the basic concepts still apply, regardless of the specific implementation referenced. In this particular case, the United States and the United Kingdom have similar enough structures that the same problems and solutions generally apply.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/on-debt-ceilings-and-defaults/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Jobs to Multiple File Volumes in Bacula</title>
		<link>http://lost.l-w.ca/0x05/multiple-jobs-to-multiple-file-volumes-in-bacula/</link>
		<comments>http://lost.l-w.ca/0x05/multiple-jobs-to-multiple-file-volumes-in-bacula/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 18:30:07 +0000</pubDate>
		<dc:creator>lost</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>

		<guid isPermaLink="false">http://lost.l-w.ca/0x04/?p=861</guid>
		<description><![CDATA[I don&#8217;t normally go about making howto documents. However, in this case, I have decided to make an exception. In the latest version of Bacula, it is possible to have multiple jobs operating on the same volume  pool at the &#8230; <a href="http://lost.l-w.ca/0x05/multiple-jobs-to-multiple-file-volumes-in-bacula/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t normally go about making howto documents. However, in this case, I have decided to make an exception.</p>
<p>In the latest version of Bacula, it is possible to have multiple jobs operating on the same volume  pool at the same time, even if that volume pool is a collection of disk files. This is particularly useful when utilizing the &#8220;Virtual Full Backup&#8221; functionality which needs to read one volume and write another simultaneously. However, the documentation is sorely lacking in just how to do this. Furthermore, even google-fu failed to turn up a useful answer, instead turning up only people who ran into the deadlock problem and if there were suggested solutions, it was always &#8220;use more than one pool&#8221; which doesn&#8217;t actually solve the problem.</p>
<p>The deadlock problem arises because Bacula treats file volumes the same as tapes and, thus, requires a &#8220;drive&#8221; to read or write them. In the classic configuration of such, there is a single drive which can be either reading or writing a single volume at any given time. Thus, one deadlocks with a virtual backup and one can only do one real job at a time (leaving aside interleaving blocks on the volume which is less than ideal in most circumstances).</p>
<p>The solution to this problem is both elegant and simple, but it is not obvious. The solution is to use an autochanger. This is the only way to have multiple devices associated with the same volume pool. However, one cannot simply specify &#8220;use an autochanger for these file volumes&#8221;. It requires some additional futzing around, including creating a changer script/program to actually handle the changing. It also imposes a slightly different scheme on accessing file volumes. That is, instead of Bacula selecting the correct file from a directory somewhere, and pointing the storage definition at that directory, the changer now has to handle all that and the storage definition has to be pointed at a filename.</p>
<p>All this is best described by example. I will not provide the actual code for the changer program but rather describe what it must do. Suppose you have a set of volumes in a directory /backups/. Suppose you have ten volumes labelled VOL001 thorugh VOL010. These volumes are all in the default volume pool.</p>
<p>First, you would set up the virtual changer. One could, for instance, set up the changer to use a directory structure, which is what will be described here. Suppose that structure is all under the directory /changer/. You will need a means of tracking the contents of the virtual slots and also tracking what is currently mounted in each virtual drive. So lets create /changer/drives/ and /changer/slots/. Under the drives directory, we&#8217;ll create a folder for each virtual drive, say &#8220;0&#8243; and &#8220;1&#8243; for two drives. In each of those, we&#8217;ll create an empty &#8220;info&#8221; file which will store the name of the mounted volume. Empty means nothing mounted.</p>
<p>In the slot directory, we&#8217;ll create a text file for each slot in the changer that is filled. The file will contain the volume file name, not including the path name. Any empty slot will simply not have a file for it. The name of each slot file is simply the slot number. Slots are numbered starting at one. So in this case, we might create a file &#8220;1&#8243; which contains &#8220;VOL001&#8243; and &#8220;2&#8243; which contains &#8220;VOL002&#8243; and so on.</p>
<p>Now a changer script needs to be created. This can be a simple shell script or it can be written in any programming language you prefer. In this instance, it will accept three parameters. The first is the command from bacula. The second will be the drive number. The third will be the slot number. How these parameters get there is defined in the bacula configuration files which are discussed later.</p>
<p>There are several comands bacula will issue. The first is &#8220;list&#8221; which provides a list of all slots with media in them in the form of &#8220;&lt;number&gt;:&lt;volume&gt;&#8221;. The documentation for bacula defines the second field as &#8220;barcode&#8221; but for our purpose, the volume name will do. This is one reason we store the volume name in the slot files. The output should be silent for slots that do not contain anything.</p>
<p>Another important command is &#8220;slots&#8221; which simply prints out the number of slots in the changer. This can be an arbitrary number larger than the number of volumes you are using. Even numbers like 500 or 1000 are fine here. It is harmless to set this higher than the number of volumes you have.</p>
<p>The meat of the changer, however, is the &#8220;load&#8221; and &#8220;unload&#8221; commands. The unload command can simply remove the &#8220;tape&#8221; symbolic link for the specified drive and empty the &#8220;info&#8221; file for it. The &#8220;load&#8221; command will need to work out the full path name of the volume file for the specified slot and point the &#8220;tape&#8221; symbolic link at it. It will also need to update the &#8220;info&#8221; file accordingly. Finally, the &#8220;loaded&#8221; command simply returns the slot number which is currently loaded into the specified drive, or &#8220;0&#8243; if none is.</p>
<p>As you can see, the changer program need not be terribly complex though it will need to know something about the volume storage location and so on. It should be easy enough to work out how to code one based on the above description. A word of advice, however: make the program fail clean. Bacula will notice failure exits and handle them accordingly so make sure that you explicitly exit with success if you have a failure that is non-fatal.</p>
<p>Now that we have the infrastructure worked out, it&#8217;s time to teach Bacula about it. This is actually the easy part, and believe it or not, can be done with an existing configuration with existing volumes!</p>
<p>First, in the storage director configuration, comment out your existing Device resource. Now add on, using the existing resource as a template (assuming it was already a File type resource). You wil need to add &#8220;AutoChanger = yes&#8221; and &#8220;DriveIndex = N&#8221; to it. N is the drive number in the changer. So if you have two drives in the changer, 0 is the first drive and 1 is the second drive. This is important. You will need to add an equivalent Device entry for each drive in the changer.</p>
<p>Also in the storage director configuration, you will need to add an &#8220;AutoChanger&#8221; resource. Give it a name distinct from the Device resources. In this case, we&#8217;ll call it &#8220;DiskGroup&#8221;. Add a &#8220;Device =&#8221; entry for each drive in the changer. You can specify any old junk for the required option &#8220;ChangerDevice&#8221; since we will not be using it. The really important part is the specification for changer command. Assuming you put your program in &#8220;/changer/script.sh&#8221;, you would add &#8216;ChangerCommand = &#8220;/changer/script.sh %o %d %S&#8221;&#8216;. The &#8220;%o&#8221; is the command bacula wants to do. &#8220;%d&#8221; is the drive index from the Device configuration. &#8220;%S&#8221; (note the capital &#8220;S&#8221;!) is the slot number to operate on, starting at 1. This is where the parameters for the changer program come from.</p>
<p>Now, in the director configuration file, update your storage definition to refer to the device name for the changer (&#8220;DiskGroup&#8221; in this case). Also, add &#8220;AutoChanger = yes&#8221; to the definition. You may also wish to set &#8220;MaximumConcurrentJobs&#8221; to the number of virtual drives (2 in this case) in the changer.</p>
<p>Now you can restart bacula to make sure the configuration changes are noticed. Once done, bring up the console and run &#8220;update slots scan&#8221;. This will cause bacula to automatically query the changer program to find out what volumes are in what slots and update the catalog appropriately. This is a critical step as it avoids having to manually update the information for each volume which would be tedious and error prone in the case of hundreds of volumes.</p>
<p>Now that&#8217;s everything. You can now do multiple jobs onto separate volumes in the same pool. Nothing else needs modification, which is a testament to bacula&#8217;s design.</p>
<p>However, if you wish to do virtual backups with both the source and destination in the same pool, you will, of course, need to configure the pool correctly. If the pool is called &#8220;Default&#8221;, set &#8220;NextPool = Default&#8221;. If your storage entry is called &#8220;Default&#8221;, then you would set &#8220;Storage = Default&#8221;. Both of those in the Pool resource for &#8220;Default&#8221;. That&#8217;s it. There&#8217;s nothing more you need to do to make this work.</p>
<p>I&#8217;ll leave you with one final note: make sure to test your changer script manually before letting bacula loose on it. Then, once you&#8217;re sure it works, run a few <em>small</em> jobs in bacula to make sure it really is working. Run them manually in case intervention is required. You may need to fix your changer program or manually clean up a mess in the changer directory. Once that is working, keep an eye on the automatic stuff for a while to make sure it really is working!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lost.l-w.ca/0x05/multiple-jobs-to-multiple-file-volumes-in-bacula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

