<?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>eric.blog &#187; 2008 &#187; October</title>
	<atom:link href="http://ethiessen.com/2008/10/feed/" rel="self" type="application/rss+xml" />
	<link>http://ethiessen.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 Oct 2009 02:17:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Thoughts on Today&#8217;s Canadian Federal Election</title>
		<link>http://ethiessen.com/2008/10/14/thoughts-on-todays-canadian-federal-election/</link>
		<comments>http://ethiessen.com/2008/10/14/thoughts-on-todays-canadian-federal-election/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 22:20:27 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://ethiessen.com/?p=132</guid>
		<description><![CDATA[The incomparable Douglas Adams once said &#8220;I love deadlines. I like the whooshing sound they make as they fly by.&#8221; So, indeed, as today is the election, I&#8217;ve almost run out of time to post my pre-election thoughts before they turn into post-election reactions. Overall, I honestly don&#8217;t expect this election to change a whole [...]]]></description>
			<content:encoded><![CDATA[<p>The incomparable Douglas Adams once said &#8220;I love deadlines. I like the whooshing sound they make as they fly by.&#8221; So, indeed, as today is the election, I&#8217;ve almost run out of time to post my pre-election thoughts before they turn into post-election reactions.</p>
<p>Overall, I honestly don&#8217;t expect this election to change a whole lot in parliament: I predict another Conservative minority government, which leaves us with pretty much the exact same situation as before: the Conservatives form the government, and Harper remains as PM &#8211; but not having enough seats to force their own legislation through the House of Commons means that the other parties can still lambaste the Conservatives for not doing enough, while simultaneously blocking them from taking action.</p>
<p>I do think the Conservative party will pick up some seats though. They won 124 last time in 2006, and I&#8217;d expect that to increase to 130-something, maybe even push 140. So not enough to gain the magical 155 necessary for a majority, but at least enough to give Conservative supporters something to cheer about. And really, I expect almost all of those Conservative victories to come at the expense of the Liberals. They should almost certainly drop below 100, from their past total of 103 seats in 2006 to somewhere below 90 this time. Pretty good score for a rookie golfer, not so good for Stéphane Dion.</p>
<p><span id="more-132"></span></p>
<p>But really, I doubt Harper is going to achieve as much as he hoped for when he called this election. The left is weak &#8211; the Liberal brand has taken some solid hits in the past few years, and Dion definitely lacks popular appeal. And yet the Liberals are still going to do reasonably well, as their centrist stance continues to attract people who see both the NDP and the Conservatives as too far either way. And really, the Liberals have Toronto, the red stronghold that is the GTA is worth an incredible 44 seats. Last election, the Liberals won 36 of them, the Conservatives 5, and the NDP 3. I really don&#8217;t see that changing too much, maybe the Conservatives and NDP will each win a few more, but the Liberals should still get at least 33 Toronto-area seats.</p>
<p>In the rest of Ontario, it should be very typical &#8211; NDP and Liberal in the North, while the Southwest should produce Conservatives in all the non-urban areas, with the urban areas going Liberal or NDP  (K-W goes red, Windsor and Hamilton go orange). Ottawa-Hull and London are more interesting &#8211; they should be split, perhaps among all three.</p>
<p>Heading west, Manitoba will vote Liberal in Churchill, and then all blue in the south &#8211; except for Winnipeg, which should produce at least 3 NDP MPs and maybe even another Liberal or two. Winnipeg South should vote Conservative though. Saint Boniface is too close to call, with the Liberal incumbent (Simard) winning last time by &lt; 2000 votes.</p>
<p>Saskatchewan will go all Conservative blue, except for the Liberal red island of Wascana where Goodale hasn&#8217;t lost in over three decades.</p>
<p>As for Alberta, three word summary &#8211; all blue baby! Talk about provincial unity.</p>
<p>B.C. will be good for a lot of Conservative seats too, mostly reelected incumbents. Everything in the east should match the Alberta blue, with the possible exception of Southern Interior. Interesting to see whether Atamenko gets reelected for the NDP, or if they switch back to Conservative. On the coast, the Skeena Bulkley Valley should go NDP orange again, as will Victoria and Nanaimo Cowichan. Every other riding outside of Vancouver should go to the Conservatives.</p>
<p>Vancouver itself is a puzzle &#8211; certainly all three parties will take victories here, it&#8217;s hard to say how many for each. Richmond, Quadra, Kingsway, Burnaby Douglas and Surrey North were all &#8220;too close to call&#8221; based on the very last pre-election polls.</p>
<p>In the north, Yukon goes red, NWT goes orange, and Nunavut will probably go red again, despite official endorsement of the federal Conservatives by the local government. All different candidates this time, we&#8217;ll see how that goes.</p>
<p>And now, let&#8217;s head all the way back over to Quebec, where another party suddenly appears, and should be good for +/- 5 seats of their past 51 seat total. I think the BQ has really established itself as more of a Quebec-issues party than a true &#8220;separatist&#8221; party as this point. Honestly, the separatist movement in Quebec is the weakest its been in decades (and I&#8217;m thankful for that). But the genius of the BQ is that they&#8217;re a powerful federal party who only caters to one province, and thus the residents of that province realize it&#8217;s their best way to ensure representation on a national level. Northern Quebec will go all BQ, while Southern Quebec will produce a number of BQ wins &#8211; with the notable exception of Liberal Montreal and the 12 to 14 seats they should pick up on the island city. Sherbrooke and Longueuil will also go all to the BQ. The Conservatives should still be able to win Pontiac, and at least 5 others in the Quebec City area. There are some &#8220;too close to calls&#8221; there too, particularly Beauport &#8211; Limoilou, Charlesbourg &#8211; Haute &#8211; Saint-Charles, and Louis &#8211; Hébert &#8211; all very, very close Conservative wins last time. (Luc Harvey won by <em>103 votes</em>). If the Liberals gain even 1000 votes in each riding (which is likely, due to Dion being solidly Francophone, and more likely to be at the expense of the Conservatives than the Bloc), then I could see all 3 going back to the BQ.</p>
<p>As for Atlantic Canada, there should again be a three-party mix here. NB has some close ridings, like Madawaska &#8211; Restigouche (&lt;3% Liberal victory in 2006) and Tobique &#8211; Mactaquac (&lt;1% Conservative victory in 2006). I&#8217;m gonna say that in 2008, both go blue. Saint John, a 3% Liberal victory last time, is probably going to stay red.</p>
<p>PEI is definitely good for three Liberal seats, the only other province (besides Alberta) to give all their seats to just one party.</p>
<p>Nova Scotia is another three-party game, with a couple seats going to each.</p>
<p>And finally, NFLD is a pretty safe bet for the Liberals, except for the St. John&#8217;s area, where Avalon should go Conservative,  and the two seats in St. John&#8217;s itself are tight in the polls, but should ultimately both go blue as well.</p>
<p>So, ultimately, my prediction is:</p>
<ul>
<li>The Conservatives will win 130-140 seats (slight gain)</li>
<li>The Liberals will win 80-90 seats (slight loss)</li>
<li>The NDP will win 30-35 seats (very slight gain)</li>
<li>The BQ will win right around 50 seats (almost no change)</li>
<li>Independents will win the same 2 seats as last time (no change)</li>
<li>And the Green Party won&#8217;t win any seats, but will score higher in the overall popular vote than they did last election, thus claiming victory. (Although technically, they&#8217;ll lose that 1 seat they had from the party-switching Liberal Blair Wilson)</li>
</ul>
<p>Anyhow, enough talk, time for me to go vote!</p>
<p><span style="font-style: italic; font-size: 10px; color: #999999;"><a title="Tom Cochrane - I Wish You Well">gonna take what we might take away</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ethiessen.com/2008/10/14/thoughts-on-todays-canadian-federal-election/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter sidebar hack</title>
		<link>http://ethiessen.com/2008/10/06/twitter-sidebar-hack/</link>
		<comments>http://ethiessen.com/2008/10/06/twitter-sidebar-hack/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 08:55:22 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://ethiessen.com/?p=114</guid>
		<description><![CDATA[So by default the official Twitter HTML/Javascript badge doesn&#8217;t actually let you click-through hyperlinks, they&#8217;re just displayed as normal text the same as everything else. The main JavaScript function from that badge is: function twitterCallback2(obj) { var twitters = obj; var statusHTML = ""; var username = ""; for (var i=0; i&#60;twitters.length; i++){ username = [...]]]></description>
			<content:encoded><![CDATA[<p>So by default the official Twitter HTML/Javascript <a href="http://twitter.com/badges/which_badge">badge</a> doesn&#8217;t actually let you click-through hyperlinks, they&#8217;re just displayed as normal text the same as everything else.</p>
<p>The main JavaScript function from that badge is:</p>
<pre>function twitterCallback2(obj) {
	var twitters = obj;
	var statusHTML = "";
	var username = "";
	for (var i=0; i&lt;twitters.length; i++){
		username = twitters[i].user.screen_name
		statusHTML += ('&lt;li&gt;&lt;span&gt;'+twitters[i].text+'&lt;/span&gt; &lt;a style="font-size:85%" href="http://twitter.com/'+username+'/statuses/'+twitters[i].id+'"&gt;'+relative_time(twitters[i].created_at)+'&lt;/a&gt;&lt;/li&gt;')
	}
	document.getElementById('twitter_update_list').innerHTML = statusHTML;
}</pre>
<p>So basically it&#8217;s just inserting into the twitter_update_list  (the list in the sidebar)  the text of each tweet, and then a link to that particular tweet with the &#8220;relative time&#8221; as the link text, with a separate relative_time(datetime) function that just converts an actual timestamp to an ordinal name.</p>
<p>So because there&#8217;s no formatting <em>inside </em>the twitters[i].text, links are displayed in the same formatting as any other text.</p>
<p>So even though this is kind of a major design flaw (imho), especially coming from Twitter themselves as the official blog badge, it&#8217;s just them being simple with their function &#8211; low frills.</p>
<p>BUT, we can be a bit fancy with <a href="http://www.regular-expressions.info/reference.html">regular expressions</a>. So, if we add another script that replaces the twitter_update_list with a formatted version (that we subject to a search-and-format for links using regexes), then we can force the Twitter sidebar to have true links.</p>
<pre>document.getElementById('twitter_update_list').innerHTML = document.getElementById('twitter_update_list').innerHTML.replace(/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/g,"&lt;a href="$&amp;"&gt;$&amp;&lt;/a&gt;");</pre>
<p>Overall, this shows that regexes can indeed, <a href="http://xkcd.com/208/">save the day</a>.</p>
<p><span style="font-style: italic; font-size: 10px; color: #999999;"><a title="Weezer - Say It Ain't So">this way is a waterslide-away-from-me-to-chase-her-fuller-everyday</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ethiessen.com/2008/10/06/twitter-sidebar-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Birthday Thoughts</title>
		<link>http://ethiessen.com/2008/10/03/birthday-thoughts/</link>
		<comments>http://ethiessen.com/2008/10/03/birthday-thoughts/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 09:26:43 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[RealLife]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://ethiessen.com/?p=113</guid>
		<description><![CDATA[I don&#8217;t really &#8220;feel&#8221; 24 years old.  Somehow that seems like a surprisingly large number. I&#8217;m not really sure what I thought I&#8217;d accomplish by this age, back when I was like 18 or so. I&#8217;ve probably succeeded in most of my &#8220;big goal&#8221; stuff though: Got my degree &#8211; oh how far away that [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t really &#8220;feel&#8221; 24 years old.  Somehow that seems like a surprisingly large number.</p>
<p>I&#8217;m not really sure what I thought I&#8217;d accomplish by this age, back when I was like 18 or so. I&#8217;ve probably succeeded in most of my &#8220;big goal&#8221; stuff though:</p>
<ol>
<li>Got my degree &#8211; oh how far away that seemed, 6 years ago, when I was just getting into my very first semester, and the initial thrill of campus began to wear off, and the reality of life in first-year engineering began to set in. 8am statics lectures with (now retired) <a href="http://en.wikipedia.org/wiki/Confederation_Bridge">Dr. Brown</a>, who remains one of the greatest teachers I&#8217;ve ever had, even though his class was a necessary wake-up call regarding the effort required in engg vs. high school.</li>
<li>Got a good job &#8211; sometimes I really stop and think about how sweet my job is. Here I am, software developer, working from home. That&#8217;s the freakin&#8217; <em>dream</em>. I realize I don&#8217;t work for Google or something, but really, I&#8217;m getting a great chance to learn, and I&#8217;m entrusted with an at-times-shockingly-large amount of responsibility, considering my experience. I&#8217;m the lead developer (ok, often the only developer, but still!) on multiple projects of significant importance &#8211; my apps <em>need</em> to work, or bad things happen. Sure, if I didn&#8217;t do it, somebody else would, but everybody in my group is swamped with their own projects, so they need me to take care of my stuff. I like to think I&#8217;m getting pretty good at it &#8211; meeting with people, figuring out what they need, and delivering on that.</li>
<li>Move out &#8211; ok, ok, so I moved out, came back, moved out, came back again, and moving out again as soon as homeland security lets me. Overall though I&#8217;ve spent well over 2 years away from home, as a working professional, in cities other than my hometown, so I think that counts for something.</li>
</ol>
<p>Ok that&#8217;s a pretty short list, but I&#8217;m not really sure what else I&#8217;d hoped to have done in 6 years. I maybe thought I&#8217;d get a Master&#8217;s degree right away (and thus be done that by now), but I&#8217;m glad I didn&#8217;t. In my profession, industry experience is more valuable in many ways, or at least the <em>balance</em> between industry and academia needs to be there, as <a href="http://en.wikipedia.org/wiki/Formal_methods">formal methods</a> proves :P</p>
<p>Overall though, &#8220;success&#8221; is an arbitrary measure &#8211; I definitely could have done more with my life thus far, and sometimes regret that I haven&#8217;t; I worry that I didn&#8217;t do things well enough. But really, there&#8217;s nothing I can change about that now, I can only look forward. And hey, <a href="http://www.youtube.com/watch?v=wvIAyxpjEuc">the future looks pretty good</a>.</p>
<p>And not just because I&#8217;ve accomplished things I set out to do, and because I see a lot of opportunity for myself in the years ahead. I&#8217;m legitimately happy, like really amazingly happy, and that is what really brightens my future &#8211; and each day.</p>
<p><span style="font-style: italic; font-size: 10px; color: #999999;"><a title="Mike Dean - 7 and 7">I&#8217;m just thinking &#8217;bout you on this production platform</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ethiessen.com/2008/10/03/birthday-thoughts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

