<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.pluralsight.com/community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CraigBlog</title><link>http://www.pluralsight.com/community/blogs/craig/default.aspx</link><description>Craig Andera&amp;#39;s Weblog</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>What Is All the Fuss About How You Can Write DSLs in Lisp?</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2009/01/05/what-is-all-the-fuss-about-how-you-can-write-dsls-in-lisp.aspx</link><pubDate>Mon, 05 Jan 2009 18:30:33 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:56067</guid><dc:creator>craig-andera</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=56067</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=56067</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2009/01/05/what-is-all-the-fuss-about-how-you-can-write-dsls-in-lisp.aspx#comments</comments><description>&lt;p&gt;I saw &lt;a href="http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=2230"&gt;Chris’s recent post&lt;/a&gt;, and felt compelled to respond, despite the fact that I’m pretty sure I’m going to regret it. :) &lt;/p&gt;  &lt;p&gt;Here’s what he says, abridged: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;(when (and (&amp;lt; time 20:00)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (timing-is-right))        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (trade (make-shares 100 x)))&lt;/em&gt;&lt;/p&gt;    &lt;p&gt;IMO, that&amp;#39;s not a DSL -- that&amp;#39;s just a set of function calls in an existing language.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;The short version of my response to this is: “Yes! Exactly! That’s a feature, not a bug!” On to the longer version.&lt;/p&gt;  &lt;p&gt;This argument, as a question of semantics, is fundamentally doomed to remain unresolved, unless someone can magically provide an exact definition of DSL that a) has no imprecision, and b) everyone agrees with. I’ll just pass on waiting for that to happen, and make my own observation: &lt;/p&gt;  &lt;p&gt;A set of function calls in an existing language is generally preferable to a completely separate language. Particularly if it’s the language that you’re using to write the rest of your system. Sure, there are cases where using a specialized language is the thing to do, but over the last few years I’ve come to have a lot more - what’s the word? respect? fear? caution? – anyway hesitance around introducing additional languages into the development process. It’s not rare to see C#, SQL, XSLT, XPath, NAnt XML, regular expressions, and four or five other grammars floating around in the development lifecycle of a single process, and it’s got a real price. If nothing else, it means that not everyone can work on every part of the system. Throw in the fact that some of those are hard to debug, or have conflicting metaphors, or different performance characteristics, and it adds up. &lt;/p&gt;  &lt;p&gt;So yes, one of the reasons that I’m excited about Clojure is that it’s a Lisp, and as a Lisp it is flexible enough to adapt to the point where I often don’t need a DSL. Or, if you like, where my DSL is also a Lisp. That doesn’t mean “I never want to use a DSL” or “I always want to use Lisp” – all things in moderation. It certainly doesn’t mean “You shouldn’t use M” – how the hell would &lt;strong&gt;I &lt;/strong&gt;know what &lt;strong&gt;you&lt;/strong&gt; need? But for me, I think it’s nice to have a tool that gives me the choice. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=56067" width="1" height="1"&gt;</description></item><item><title>2008 – The Year in Review</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/12/31/2008-the-year-in-review.aspx</link><pubDate>Wed, 31 Dec 2008 20:35:09 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:56009</guid><dc:creator>craig-andera</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=56009</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=56009</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/12/31/2008-the-year-in-review.aspx#comments</comments><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;It’s the end of the year, and although I skipped 2007, it is my habit to take a look back here on matters personal and professional. To whit: &lt;/p&gt;  &lt;p&gt;I blogged a lot less this year. There are a number of reasons for that. The main one is that I’m just not as interested in blogging as once I was. I think that comes with the increasing “inward focus” my career has taken. I just find that more and more, what matters to me is what matters to &lt;strong&gt;me&lt;/strong&gt;, not what matters to everyone else. That’s not a judgement or a boast, just an observation. It’s quite liberating: for example, I can go look at weird languages (see below) and not worry about it too much. :) &lt;/p&gt;  &lt;p&gt;If you really can’t get enough Craig, you can always try me in appetizer size over on &lt;a href="http://twitter.com/craigandera"&gt;my Twitter stream&lt;/a&gt;. I seem better able to post a few dozen characters than a few paragraphs these days. &lt;/p&gt;  &lt;p&gt;Career-wise, 2008 continued the shift I started in 2007 away from lots of small projects towards one big one. If I remember right, by the end of 2006 I’d worked on about seven different open source and proprietary projects, at a max of something like five simultaneously. That was too much, and I was feeling burned out. These days, pretty much all my professional time goes to a contract at Microsoft, where I’m working on the next version of Visual Studio. That has been very interesting for a variety of reasons, not the least of which is that it’s related to the work I’ve done on &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/01/23/50030.aspx"&gt;the MSDN REST Web Service&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;Of course, the most significant event of 2008 had nothing to do with web services: it was &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/03/17/50494.aspx"&gt;the birth of our second child&lt;/a&gt;, daughter Susan. She was a cranky newborn, but has since turned into a charming and active baby. Needless to say, having two kids has really changed my life. I’m still coming to terms with giving up my free time – a painful process for me. &lt;/p&gt;  &lt;p&gt;Not that I have &lt;strong&gt;no&lt;/strong&gt; free time, of course. If I had none, I wouldn’t have been able to train for and run a &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/10/26/mcm-2008-or-take-that-engberg.aspx"&gt;marathon&lt;/a&gt;. But maybe I shouldn’t have talked so much smack in that post – &lt;a href="http://rengberg.blogspot.com/2008/11/auckland-marathon-2008.html"&gt;Engberg whupped me good&lt;/a&gt;, and now I have to run another one. I think maybe this time I’ll make qualifying for Boston my stretch goal. Along the way, I’d also like to run a sub-20:00 5K. That’s much more my type of thing – I’m a fast runner, not an endurance runner. &lt;/p&gt;  &lt;p&gt;This year saw my fascination with Lisp continue and even deepen, as is obvious from a &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/05/19/50982.aspx"&gt;variety&lt;/a&gt; &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/07/08/lisp-too-is-mainstream.aspx"&gt;of&lt;/a&gt; &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/10/07/typing-speed-mode-emacs-minor-mode.aspx"&gt;posts&lt;/a&gt; &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/11/19/a-c-repl-in-clojure.aspx"&gt;here&lt;/a&gt;. My latest interest on the parentheses front is &lt;a href="http://clojure.org"&gt;Clojure&lt;/a&gt;. I made one (sort-of) provocative &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2008/11/19/a-c-repl-in-clojure.aspx"&gt;post&lt;/a&gt; about it, promised to say more, and never did. Well, given how not into blogging I am lately, I’m not sure whether I ever will live up to that promise. So go check it out for yourself: it really is an awesome language. &lt;a href="http://www.pragprog.com/titles/shcloj/programming-clojure"&gt;Stu’s book&lt;/a&gt; is a good way to get started. &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Here at the cusp of the new year, I don’t really know what 2009 will hold for me. I have a pretty good idea that the Microsoft work will continue for a while, but of course as an independent there’s always an increased level of uncertainty. But I like to think that it’s a rare problem that doesn’t yield an opportunity, so I’m optimistic. &lt;/p&gt;  &lt;p&gt;On the family front, obviously we’re looking forward to watching both kids continue to grow and flourish. 2009 will be Ellen’s last full year of preschool, and of course Susan will likely start walking, talking, and doing all sorts of things. We hope to take family trips to Taiwan, Hong Kong, and Alaska, too. &lt;/p&gt;  &lt;p&gt;On the professional front, I really want to spend more time working with Clojure. I’ve got some ideas for some real apps I can write, since that is, after all, the only true way to learn a language or platform. Plus it gives me a chance to run Ubuntu regularly, which I’ve been enjoying as a departure from the ordinary. (Clojure runs on Windows just fine, BTW.)&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;In the personal realm there are the running goals I mentioned earlier. I also hope to continue to fly &lt;a href="http://en.wikipedia.org/wiki/Falcon_4.0"&gt;Falcon&lt;/a&gt;, and maybe even &lt;a href="http://www.digitalcombatsimulator.com/"&gt;DCS: Black Shark&lt;/a&gt;, which looks really sweet. If I somehow magically find extra time, and the basement finally gets finished, maybe I’ll even start playing bass and/or drums again. &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Wishing you all the best in the new year.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=56009" width="1" height="1"&gt;</description></item><item><title>A C# REPL (in Clojure)</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/11/19/a-c-repl-in-clojure.aspx</link><pubDate>Wed, 19 Nov 2008 19:43:24 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:55016</guid><dc:creator>craig-andera</dc:creator><slash:comments>17</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=55016</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=55016</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/11/19/a-c-repl-in-clojure.aspx#comments</comments><description>&lt;p&gt;It’s &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2007/07/05/47922.aspx"&gt;no secret&lt;/a&gt; that I’ve been interested in Lisp for quite a while. Lately, that has meant &lt;a href="http://clojure.org"&gt;Clojure&lt;/a&gt;. Clojure is a new Lisp dialect that runs on top of the JVM. That means it has the power of Lisp (macros, dynamic typing, etc.) combined with the power of the JVM. The synergy reminds me of an old bumper sticker I saw years ago: “C: combining the speed of assembly with the power of assembly.” We’ve moved on a bit since then, but still. :) &lt;/p&gt;  &lt;p&gt;Anyway, you should check out Clojure. It is easily the most exciting technology I’ve seen in years…probably since I first saw .NET in June of 2000. Even beyond just being a Lisp that actually has vast libraries (one of the main complaints against Lisps of the past) is the fact that there are some truly brilliant features of the language above and beyond what other Lisps sport. &lt;/p&gt;  &lt;p&gt;One of the cool things I’d heard was that Clojure will run on top of &lt;a&gt;IKVM.NET&lt;/a&gt;, which is a .NET implementation of the JVM. I figured that if there were a reasonable story for .NET interop, I’d be able to use Clojure to drive .NET code in a REPL. A REPL is a Read-Eval-Print Loop, which is a fancy way of saying “an interactive programming command line”. It’s like the immediate window in the Visual Studio debugger on steroids, and its absence is one of the increasing number of things that makes C# painful to use as I gain proficiency in more advanced languages. &lt;/p&gt;  &lt;p&gt;Yes, I said it: C# is &lt;strong&gt;not&lt;/strong&gt; an advanced language. If you think it is, then in my opinion you don’t know enough programming languages yet. :)&lt;/p&gt;  &lt;p&gt;Intentionally provocative statements aside, here’s how you do it: &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Download and unzip ikvm.net. No installer required. &lt;/li&gt;    &lt;li&gt;Download Clojure. I recommend grabbing the head of &lt;a href="https://sourceforge.net/svn/?group_id=137961"&gt;the Subversion tree&lt;/a&gt; rather than the release that’s on the website. &lt;/li&gt;    &lt;li&gt;Build Clojure by running “ant jar” in the clojure directory. You’ll have to install &lt;a href="http://ant.apache.org"&gt;Ant&lt;/a&gt; to do this if you haven’t already. &lt;/li&gt;    &lt;li&gt;Run “ikvmstub mscorlib.dll” to create mscorlib.jar, which will create the Java wrapper classes for the stuff in mscorlib. &lt;/li&gt;    &lt;li&gt;Launch a Clojure REPL via “ikvm –cp \path\to\clojure.jar;\path\to\mscorlib.jar clojure.lang.Repl”. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Now you have a working REPL, in which all the types in mscorlib are available to be driven by Clojure, which is most &lt;strong&gt;definitely&lt;/strong&gt; an advanced language. Here’s a very simple example (the results of running the commands are indicated by =&amp;gt;): &lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;(import &amp;#39;(cli.System DateTime))     &lt;br /&gt;=&amp;gt; nil      &lt;br /&gt;      &lt;br /&gt;(new DateTime)      &lt;br /&gt;=&amp;gt; #&amp;lt;DateTime 1/1/0001 12:00:00 AM&amp;gt;      &lt;br /&gt;      &lt;br /&gt;(.get_Now DateTime)      &lt;br /&gt;=&amp;gt; #&amp;lt;DateTime 11/19/2008 2:31:02 PM&amp;gt;      &lt;br /&gt;      &lt;br /&gt;(.ToString (new DateTime) &amp;quot;R&amp;quot;)      &lt;br /&gt;=&amp;gt; &amp;quot;Mon, 01 Jan 0001 00:00:00 GMT&amp;quot;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;You get the idea. &lt;/p&gt;  &lt;p&gt;Of course this is probably only useful as an exploratory tool: if I were writing Clojure for real, I’d write it against the JVM, not against IKVM.NET. But I use the excellent &lt;a href="http://www.sliver.com/dotnet/SnippetCompiler/"&gt;SnippetCompiler&lt;/a&gt; all the time now, but it’s still not the quite same thing as a real REPL, so I’m excited to have a &lt;em&gt;real&lt;/em&gt; REPL available. &lt;/p&gt;  &lt;p&gt;And really, the reason I’m posting this is that I’m hoping it will be a sort of gateway drug for you, and that what this will really do is kick off your interest in Clojure itself. The &lt;a href="http://clojure.org"&gt;website&lt;/a&gt; is a pretty good source of information, but you can also check out Stu Halloway’s &lt;em&gt;Programming Clojure&lt;/em&gt; book. It’s available in Beta form &lt;a href="http://www.pragprog.com/titles/shcloj/programming-clojure"&gt;here&lt;/a&gt;. I’ve been tech reviewing it, and even the early beta looks pretty good. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=55016" width="1" height="1"&gt;</description></item><item><title>MCM 2008 (Or, “Take That, Engberg”)</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/10/26/mcm-2008-or-take-that-engberg.aspx</link><pubDate>Mon, 27 Oct 2008 01:56:49 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:54076</guid><dc:creator>craig-andera</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=54076</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=54076</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/10/26/mcm-2008-or-take-that-engberg.aspx#comments</comments><description>&lt;p&gt;I just got done running the &lt;a href="http://marinemarathon.com"&gt;2008 Marine Corps Marathon&lt;/a&gt;. My entry in this event was so full of drama, it belongs in a figure skating vignette. &lt;/p&gt;  &lt;p&gt;The whole thing started a little over a year ago. I’d taken a fairly long break from running, and had hit the magic weight I’d set for myself that meant I had to start again. I’m a moderately serious runner, having done it since high school. At around the same time I was starting up, my neighbor Steve was talking about starting an exercise program. I convinced him to come out with me, despite the fact that he had never really run regularly before, and certainly not seriously. It was selfish, really: a running partner a few doors down is a precious resource. &lt;/p&gt;  &lt;p&gt;Over the next few months, we slowly built up the mileage, doing first six miles, then seven, then longer and longer runs. With each one, Steve would exclaim at how he couldn’t believe he’d just run ten or twelve or whatever miles, and at how the slightly shorter one we’d done last week now seemed like an easy distance. Major credit to Steve: he stayed with it, even when we were running through the January sleet at 6AM. &lt;/p&gt;  &lt;p&gt;Cut to six years earlier. I’d just finished running &lt;a href="http://www.grandmasmarathon.com/"&gt;Grandma’s Marathon&lt;/a&gt; in a fairly reasonable time of 3:33. My oldest friend, &lt;a href="http://rengberg.blogspot.com/"&gt;Rob Engberg&lt;/a&gt;, had run the race as well, in a very respectable 3:48. I did the marathon “just to do one”, and was feeling beat up enough at the end of it to comment to Rob that I’d run one again if he beat my time. Rob is faster than me all other things being equal, but he is a self-admitted slacker, and I figured he’d never get motivated enough to train to the point where he could take down my time. &lt;/p&gt;  &lt;p&gt;As these things do, this one sort of took on a life of its own. The years slid by and &lt;a href="http://rengberg.blogspot.com/2008/09/marathons-past.html"&gt;Rob ran a few more marathons&lt;/a&gt; but never repeated even &lt;strong&gt;his&lt;/strong&gt; old time, let alone mine. And as also so often happens, the years erased the memory of pain and I started to contemplate doing another one. Plus, I figured it wasn’t fair for Rob at 40 to be chasing a time that I ran when I was about 30. So I told him we’d reset the clock every five years. And to make it interesting, we made it more of a bet: the loser has to post a picture of himself on his blog wearing a t-shirt of the winner’s design. In a public place. (Design suggestions welcome, BTW.)&lt;/p&gt;  &lt;p&gt;So now that we’re both between 35 and 40, we’re into the second round. Rob ran a 4:07:03 this year, and that became my time to beat. So I convinced neighbor Steve to run the Marine Corps Marathon with me (and more importantly, to train for it with me). We signed up, and started an 18-week training program that culminated with the race today. That’s where the drama comes in. &lt;/p&gt;  &lt;p&gt;Steve and I were running well. We had a &lt;a href="http://www.marathontraining.com/marathon/m_sch_2.html"&gt;good program&lt;/a&gt; and we followed it faithfully. After working out a few kinks (hint: over about 13 miles, you need to eat &lt;em&gt;during&lt;/em&gt; a run), we were even blasting through our long runs in excellent form. Then came the 18-miler. &lt;/p&gt;  &lt;p&gt;Running the 18 miles itself was fine. We ran on Sunday morning, and I didn’t even need to take a nap like I did after some of the previous long runs. When I saw Steve across the courtyard the next day, we traded a round of, “How you feeling? Great!” Then that evening I sat down next to my daughter to read her a story, and when I got up five minutes later, I felt like someone had shoved a stack of coins under the ball of my left foot. It happened that suddenly. I immediately went online and ordered new shoes, which I’d been meaning to do anyway, and went to bed. The next day, it was just as bad if not worse, and there was some bruising on my foot. I took Tuesday off of running, but came back at it Wednesday. &lt;/p&gt;  &lt;p&gt;And the same damn thing happened – I was fine after the run, and the next day, it suddenly started hurting again. Only this time it didn’t get better. &lt;/p&gt;  &lt;p&gt;To make a long story slightly shorter, I wound up having to take about eight weeks off of running. Several (rather expensive) visits to the doctor later, we had a tentative diagnosis of metatarsal capsulitis, which is Latin for “you hurt your foot”. I hit the stationary bike faithfully five times a week for an hour or two at a time, trying to keep up with my running. But as the weeks rolled by and I still couldn’t walk in regular shoes without limping, my hopes for competing dwindled. Meanwhile, Steve was plowing through the training by himself, including three runs of 20 miles or longer. &lt;/p&gt;  &lt;p&gt;Finally, finally, my foot started to feel better. Just in time, too: I was able to resume my training with about a month to go before the race. If it had taken any longer, I probably would have given up, as running 26.2 miles takes a certain amount of preparation. I was doubly glad of the timing, because I got better just in time to compete in the &lt;a href="http://www.armytenmiler.com/"&gt;Army Ten-Miler&lt;/a&gt;, which Steve and I had signed up for as a sort of warm-up race/workout. In fact, it was going to be our first longish run together. &lt;/p&gt;  &lt;p&gt;More drama. As I walked out to meet up with Steve at 6AM on race morning, he told me that he couldn’t compete. The reason? “Dude, it feels like someone shoved a stack of coins under the ball of my foot.” Injury! Maybe even the same one! &lt;/p&gt;  &lt;p&gt;So now, as it were, the shoe was on the other foot. I was left training by myself, and Steve was left wondering if he was going to recover in time for the marathon. It sucks, by the way, to not know. Both of us experienced the thought that if someone could just tell us we couldn’t run, that would have been better than just not knowing one way or the other. &lt;/p&gt;  &lt;p&gt;Fortunately, race day saw us both ready to run. Unfortunately, a major miscommunication before the start meant that we never linked up during the race. So after all that, we both wound up running separately! But even that may have been for the best, as Steve ran with another neighbor of ours, and I was able to run a bit faster than I might have if I’d run with him, important because the only reason I was running the race was to screw over by buddy Rob. &lt;/p&gt;  &lt;p&gt;The race itself sort of sucked. The weather was perfect, and it’s cool that the marathon winds through the various monuments in Washington DC, but I have to say that the course was completely inadequate to the number of people running on it. I’m not sure who thought it was a good idea to route 30,000 runners down two-lane roads, but I spent the first &lt;strong&gt;ten miles&lt;/strong&gt; dodging around and between other runners, or getting pissed at being boxed in for the fiftieth time. Fortunately, it opened up after about ten and I was able to run a bit faster, but for the first hour and a half, I was sure I wasn’t even going to beat Rob’s 4:07, let alone run the sub-4:00 marathon I wanted to. The Marine Corps Marathon gets a C-minus – definitely &lt;strong&gt;not&lt;/strong&gt; recommended. &lt;/p&gt;  &lt;p&gt;So after all that, what was my time? Three hours, fifty minutes, eight seconds (a pace of 8:47 per mile). Rob, who lives in New Zealand, is running his marathon in about two weeks. It sounds like he’s actually be training for this one, but that time is only two minutes short of his best ever, which he ran when we were barely 30, not nearly 40. So it should be interesting. Me? I’m hoping he runs a 3:50:09. Because it would add to the drama. :) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=54076" width="1" height="1"&gt;</description></item><item><title>typing-speed-mode Emacs Minor Mode</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/10/07/typing-speed-mode-emacs-minor-mode.aspx</link><pubDate>Tue, 07 Oct 2008 14:32:15 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:53784</guid><dc:creator>craig-andera</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=53784</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=53784</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/10/07/typing-speed-mode-emacs-minor-mode.aspx#comments</comments><description>&lt;p&gt;I’ve been really into Lisp lately, especially &lt;a href="http://clojure.org"&gt;Clojure&lt;/a&gt;, which looks really interesting. More on that some other time, though. Anyway, I’m always looking for an excuse to write code in Lisp – any Lisp. &lt;/p&gt;  &lt;p&gt;As I was writing some prose in emacs this morning, I got into a real flow. I started to wonder how fast I was typing…and there was my excuse! About an hour later, I had written the code below. It’s an emacs minor mode that displays your typing speed (defined as the number of times self-insert-command has been run in the last five seconds, times twelve) in the mode-line. So you can watch your typing speed go up and down in real time. Note that you can customize a few things about it, like changing the default five-second window.&lt;/p&gt;  &lt;p&gt;My emacs-fu (and my Lisp-fu) is not all that it could be, so the code is likely suboptimal in several ways, but it seems to work, and I always hate it when people say, “I’ll post the code once I get a chance to clean it up.” To hell with that: enjoy my code for the garbage it is :).&amp;#160; &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;;; typing-speed.el --- Minor mode which displays your typing speed &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;; Copyright (C) 2008 Wangdera Corporation &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;; Permission is hereby granted, free of charge, to any person        &lt;br /&gt;;; obtaining a copy of this software and associated documentation         &lt;br /&gt;;; files (the &amp;quot;Software&amp;quot;), to deal in the Software without         &lt;br /&gt;;; restriction, including without limitation the rights to use,         &lt;br /&gt;;; copy, modify, merge, publish, distribute, sublicense, and/or sell         &lt;br /&gt;;; copies of the Software, and to permit persons to whom the         &lt;br /&gt;;; Software is furnished to do so, subject to the following         &lt;br /&gt;;; conditions: &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;; The above copyright notice and this permission notice shall be        &lt;br /&gt;;; included in all copies or substantial portions of the Software. &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;; THE SOFTWARE IS PROVIDED &amp;quot;AS IS&amp;quot;, WITHOUT WARRANTY OF ANY KIND,        &lt;br /&gt;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES         &lt;br /&gt;;; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND         &lt;br /&gt;;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT         &lt;br /&gt;;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,         &lt;br /&gt;;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING         &lt;br /&gt;;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR         &lt;br /&gt;;; OTHER DEALINGS IN THE SOFTWARE. &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;; Author: Craig Andera &amp;lt;candera@wangdera.com&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;;; Commentary: Invoke this minor mode to have your typing speed        &lt;br /&gt;;; continuously displayed in the mode line, in the format [75 WPM]         &lt;br /&gt;;; To use, just load this file and invoke (typing-speed-mode) or         &lt;br /&gt;;; (turn-on-typing-speed-mode) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(define-minor-mode typing-speed-mode        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;quot;Displays your typing speed in the status bar.&amp;quot;         &lt;br /&gt;&amp;#160; :lighter typing-speed-mode-text         &lt;br /&gt;&amp;#160; :group typing-speed         &lt;br /&gt;&amp;#160; (if typing-speed-mode         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (progn         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (add-hook &amp;#39;post-command-hook &amp;#39;typing-speed-post-command-hook)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (setq typing-speed-event-queue &amp;#39;())         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (setq typing-speed-update-timer (run-with-timer 0 typing-speed-update-interval &amp;#39;typing-speed-update)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (progn         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (remove-hook &amp;#39;post-command-hook &amp;#39;typing-speed-post-command-hook)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (cancel-timer typing-speed-update-timer)))) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defcustom typing-speed-window 5        &lt;br /&gt;&amp;#160; &amp;quot;The window (in seconds) over which typing speed should be evaluated.&amp;quot;         &lt;br /&gt;&amp;#160; :group &amp;#39;typing-speed) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defcustom typing-speed-mode-text-format &amp;quot; [%s WPM]&amp;quot;        &lt;br /&gt;&amp;#160; &amp;quot;A format string that controls how the typing speed is displayed in the mode line.         &lt;br /&gt;Must contain exactly one %s delimeter where the typing speed will be inserted.&amp;quot;         &lt;br /&gt;&amp;#160; :group &amp;#39;typing-speed) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defcustom typing-speed-update-interval 1        &lt;br /&gt;&amp;#160; &amp;quot;How often the typing speed will update in the mode line, in seconds.         &lt;br /&gt;It will always also update after every command.&amp;quot;         &lt;br /&gt;&amp;#160; :group &amp;#39;typing-speed) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defvar typing-speed-mode-text (format typing-speed-mode-text-format 0))        &lt;br /&gt;(defvar typing-speed-event-queue &amp;#39;())         &lt;br /&gt;(defvar typing-speed-update-timer nil) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defun typing-speed-post-command-hook ()        &lt;br /&gt;&amp;#160; &amp;quot;When typing-speed-mode is enabled, fires after every command. If the         &lt;br /&gt;command is self-insert-command, log it as a keystroke and update the         &lt;br /&gt;typing speed.&amp;quot;         &lt;br /&gt;&amp;#160; (if (eq this-command &amp;#39;self-insert-command)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (let ((current-time (float-time)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (push current-time typing-speed-event-queue)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (typing-speed-update)))) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defun typing-speed-update ()        &lt;br /&gt;&amp;#160; &amp;quot;Calculate and display the typing speed.&amp;quot;         &lt;br /&gt;&amp;#160; (let ((current-time (float-time)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (setq typing-speed-event-queue         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (typing-speed-remove-old-events         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (- current-time typing-speed-window)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; typing-speed-event-queue))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (typing-speed-message-update))) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defun typing-speed-message-update ()        &lt;br /&gt;&amp;#160; &amp;quot;Updates the status bar with the current typing speed&amp;quot;         &lt;br /&gt;&amp;#160; (let* ((chars-per-second (/ (length typing-speed-event-queue) (float typing-speed-window)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (chars-per-min (* chars-per-second 60))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (words-per-min (/ chars-per-min 5)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (setq typing-speed-mode-text (format &amp;quot; [%s WPM]&amp;quot; (floor words-per-min)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (force-mode-line-update))) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defun typing-speed-remove-old-events (threshold queue)        &lt;br /&gt;&amp;#160; &amp;quot;Removes events older than than the threshold (in seconds) from the specified queue&amp;quot;         &lt;br /&gt;&amp;#160; (if (or (null queue)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (&amp;gt; threshold (car queue)))         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; nil         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (cons (car queue)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (typing-speed-remove-old-events threshold (cdr queue))))) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defun turn-on-typing-speed ()        &lt;br /&gt;&amp;#160; &amp;quot;Turns on typing-speed-mode&amp;quot;         &lt;br /&gt;&amp;#160; (if (not typing-speed-mode)         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (typing-speed-mode))) &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Courier New" size="3"&gt;(defun turn-off-typing-speed ()        &lt;br /&gt;&amp;#160; &amp;quot;Turns off typing-speed-mode&amp;quot;         &lt;br /&gt;&amp;#160; (if typing-speed-mode         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (typing-speed-mode)))&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" size="3"&gt;&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=53784" width="1" height="1"&gt;</description></item><item><title>You Think You Like Halloween?</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/10/01/you-think-you-like-halloween.aspx</link><pubDate>Wed, 01 Oct 2008 12:41:59 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:53722</guid><dc:creator>craig-andera</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=53722</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=53722</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/10/01/you-think-you-like-halloween.aspx#comments</comments><description>&lt;p&gt;I don’t think you like Halloween like &lt;a href="http://www.socalhalloween.com/Pictures2007.html"&gt;this guy&lt;/a&gt; likes Halloween…&lt;/p&gt;  &lt;p&gt;I’m glad to have &lt;a href="http://www.pluralsight.com/community/blogs/craig/archive/2005/01/14/4958.aspx"&gt;helped&lt;/a&gt; in even a very small way. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=53722" width="1" height="1"&gt;</description></item><item><title>Announcing Sudo for Windows</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/09/09/announcing-sudo-for-windows.aspx</link><pubDate>Tue, 09 Sep 2008 14:55:41 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:52917</guid><dc:creator>craig-andera</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=52917</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=52917</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/09/09/announcing-sudo-for-windows.aspx#comments</comments><description>&lt;p&gt;If you’ve used a Unix much, I’m sure you’re familiar with &lt;a href="http://en.wikipedia.org/wiki/Sudo"&gt;sudo&lt;/a&gt;, a command-line utility that lets you run things as the superuser. Not only it is very handy, but it is the basis for &lt;a href="http://xkcd.com/149/"&gt;one of the better XKCD strips&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;Sudo is one of those things I find myself wishing for in Windows, especially given the new(ish) &lt;a href="http://en.wikipedia.org/wiki/User_Account_Control"&gt;UAC&lt;/a&gt; features in Vista/Windows 2008. There are lots of times when I just want to run something as administrator, dammit. Typing “sudo notepad2 C:\somewhere\foo.txt” would fit the bill. &lt;/p&gt;  &lt;p&gt;I tried &lt;a href="http://sourceforge.net/projects/sudowin"&gt;Sudo for Windows&lt;/a&gt;, but it made me type my password. That seemed silly, given that I don’t need to type my password anywhere else to run things elevated. There are probably other implementations of this out there, but it literally took less time to write my own than it would to crawl through all of them looking for the one I like best. All it does is execute whatever arguments get passed to it, but the program itself has the “require administrator” bit in the manifest, so the target program winds up running elevated as well. &lt;/p&gt;  &lt;p&gt;Anyway, it’s in my arsenal. Visit &lt;a href="http://alt.pluralsight.com/wiki/default.aspx/Craig/SuDo.html"&gt;here&lt;/a&gt; to get it in yours, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=52917" width="1" height="1"&gt;</description></item><item><title>Announcing InhibitSS</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/08/20/announcing-inhibitss.aspx</link><pubDate>Wed, 20 Aug 2008 15:37:16 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:52630</guid><dc:creator>craig-andera</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=52630</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=52630</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/08/20/announcing-inhibitss.aspx#comments</comments><description>&lt;p&gt;Short story: I wrote a little tray app that will prevent your screensaver from running. Download it &lt;a href="http://alt.pluralsight.com/wiki/default.aspx/Craig/InhibitSS.html"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Long story: I’ve been training for &lt;a href="http://www.marinemarathon.com/"&gt;a marathon&lt;/a&gt; over the last few months, but a couple of weeks ago I hurt my foot and have been unable to run consistently. While I’m recovering (and hoping I’ll be well soon enough for me to be able to race), I’ve got to do something to keep in shape. One of the things I do is to ride my bike on a stationary trainer in front of the computer. While that works well, it’s a pain to unlock the screen if the screensaver kicks in while I’m pedaling, as it sometimes does. So I wrote InhibitSS, which runs in the tray and will prevent the screensaver from running, and therefore the screen from locking. Here’s what it looks like when it starts up: &lt;/p&gt;  &lt;p&gt;&lt;img src="http://www.pluralsight.com/community/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/craig/inhibit_2D00_ss_2D00_1.jpg" alt="" /&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Then, if you double-click it, it looks like this: &lt;/p&gt;  &lt;p&gt;&lt;img src="http://www.pluralsight.com/community/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/craig/inhibit_2D00_ss_2D00_3.jpg" alt="" /&gt; &lt;/p&gt;  &lt;p&gt;The red X indicates that the screensaver is inhibited. &lt;/p&gt;  &lt;p&gt;I’m sure there are a dozen apps just like this. But this one has the feature that I had fun writing it. :) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=52630" width="1" height="1"&gt;</description></item><item><title>C# Mixins</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/07/09/c-mixins.aspx</link><pubDate>Wed, 09 Jul 2008 15:39:57 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:51672</guid><dc:creator>craig-andera</dc:creator><slash:comments>10</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=51672</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=51672</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/07/09/c-mixins.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Update: &lt;/strong&gt;Corrected terminology – it’s “generic functions” not “generic methods”. &lt;/p&gt;  &lt;p&gt;Aside from macros, another nice feature that Lisp supports is &lt;a href="http://en.wikipedia.org/wiki/Mixin"&gt;mixins&lt;/a&gt;. In fact, this is one of the (very, very) few things I miss about C++. Of course, Lisp does it in a much more powerful way using something called generic functions. See &lt;a href="http://gigamonkeys.com/book/object-reorientation-generic-functions.html"&gt;here&lt;/a&gt; and &lt;a href="http://gigamonkeys.com/book/object-reorientation-classes.html"&gt;here&lt;/a&gt; for a great description of generic functions in Common Lisp – it’s one of the cooler parts of Lisp, in my opinion, especially for someone like me who has come from a C++/C#/Java OO background. &lt;/p&gt;  &lt;p&gt;Although not a tool for every occasion, and somewhat against the spirit of &lt;a href="http://www.peterprovost.org/blog/post/Inherit-to-Be-Reused2c-Not-to-Reuse.aspx"&gt;Inherit to Be Reused, Not to Reuse&lt;/a&gt;, mixins are nonetheless handy at times. Since mixins are generally implemented via multiple inheritance, they haven’t really been an option in C#…until extension methods came along. Now you can do something like this: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;using System; &lt;/p&gt;    &lt;p&gt;public interface TellNameMixin      &lt;br /&gt;{       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; string Name { get; }       &lt;br /&gt;} &lt;/p&gt;    &lt;p&gt;public static class MixinImplementation      &lt;br /&gt;{       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public static void TellName(this TellNameMixin subject, string prefix)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Console.WriteLine(&amp;quot;My name is: {0}{1}&amp;quot;, prefix, subject.Name);       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }       &lt;br /&gt;} &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;What we’ve done is to define an interface type and a corresponding extension method that adds functionality to that interface. Since any number of interfaces can be implemented on a type, we can apply our mixin to classes that have no other type relationship, or that already have a base class. Like this: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;public class Craig : MarshalByRefObject, TellNameMixin      &lt;br /&gt;{       &lt;br /&gt;&amp;#160; public string Name { get { return &amp;quot;Craig&amp;quot;; } }       &lt;br /&gt;} &lt;/p&gt;    &lt;p&gt;public class Program      &lt;br /&gt;{       &lt;br /&gt;&amp;#160; public static void Main()       &lt;br /&gt;&amp;#160; {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Craig craig = new Craig();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; craig.TellName(&amp;quot;Mr. &amp;quot;); // Prints “Mr. Craig”      &lt;br /&gt;&amp;#160; }       &lt;br /&gt;}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;The best part about this is – as with all reuse mechanisms – there’s only one place where I have to change how TellName works. Obviously, if the Craig class was the only class I was extending, I could skip the mixin class and just use extension methods directly. But if I have additional types that I want to add this functionality to, and if those classes have no other type relationship (a situation I found myself in just today) then this might be handy. &lt;/p&gt;  &lt;p&gt;Anyway, it’s not something you’ll use every day, but it’s worth knowing about. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=51672" width="1" height="1"&gt;</description></item><item><title>Lisp, Too, Is Mainstream</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/07/08/lisp-too-is-mainstream.aspx</link><pubDate>Tue, 08 Jul 2008 14:50:31 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:51609</guid><dc:creator>craig-andera</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=51609</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=51609</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/07/08/lisp-too-is-mainstream.aspx#comments</comments><description>&lt;p&gt;You’ve seen me talk here before about the fact that I have been lately fascinated with Lisp. Sadly, I haven’t been able to spend the time I’d like with it, but I continue to read and think about it. And I’d really, really like to put in some serious time writing a real app (better: several) in Lisp. &lt;/p&gt;  &lt;p&gt;So it was with great interest that I read &lt;a href="http://www.lispcast.com/drupal/node/54"&gt;Lisp, too, is mainstream&lt;/a&gt;. I like pretty much everything that &lt;a href="http://www.lispcast.com/drupal/blog/1"&gt;Eric&lt;/a&gt; has written, and &lt;a href="http://www.lispcast.com/drupal/node/3"&gt;his LispCast screencasts&lt;/a&gt; are good, too. This article starts with &lt;a href="http://en.wikipedia.org/wiki/Greenspun%27s_Tenth_Rule"&gt;Greenspun’s Tenth Rule&lt;/a&gt; (“Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp”) and extends it to a rather different conclusion: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;My point is that it may be too late to start with Lisp so you don&amp;#39;t have to reimplement all of its features. Because all of those new languages have already implemented them. At least what most people consider the important ones.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Or put another way: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;I guess my point, through all this meandering, is that other languages did borrow a lot from Lisp. About half of it. And now those features are out there, in the world. And in the meantime, while they were borrowing, they got some new features of their own. Features like giant user bases, gazilions of libraries, corporate support, standards bodies. So Lisp has half of the features of Python. Java and Python are far from my ideal language---but so is Common Lisp. The idea that I would have to implement so much of Lisp on my own is a little overblown these days. And speaking of reimplementation: How much of Python&amp;#39;s standard library does a complex Lisp program reimplement? How much of Python would you have to reimplement before you regret choosing Common Lisp?&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;And speaking specifically to macros, which I currently see as the single biggest weakness of C# when compared to Lisp: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Macros let you subsume more code into less code. Macros let you write more functionality with fewer lines. Macros let you abstract away boilerplate into new syntax.&lt;/p&gt;    &lt;p&gt;But the corporate manager will say: if everyone writes their own syntax, my programmers can&amp;#39;t read each other&amp;#39;s code. So instead of having to learn a language once, they will have to learn a new language each time they approach a program for the first time. And the value of macros is lessened.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;It’s enough to take the wind out of an aspiring Lisper’s sails. :) However, I haven’t given up yet. I have two questions that I still need to answer for myself before I draw any conclusions of my own. &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Is the value proposition of macros (i.e. custom syntax/DSLs) different for small teams? And particularly for stuff I read and write only for myself? Because I’ve got a lot of code that falls into those categories. &lt;/li&gt;    &lt;li&gt;Is the library situation really so dire? I find that I don’t actually wind up using third-party libraries all that much in C#, so either the BCL is extremely complete or the types of problems I’m solving are just naturally self-sufficient. Or I’m doing something wrong. :) Besides, when I cruise the Lisp sites, I actually see &lt;strong&gt;lots&lt;/strong&gt; of libraries I could use. But maybe there’s some critical functionality that I’d have to write myself that would take a long time.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Of course, the answers to these questions are inherently highly subjective. Like pretty much any question touching on programming tools. If I can find a way to go write a fair amount of Lisp, I’ll get my answers. They will, however, be &lt;em&gt;my&lt;/em&gt; answers. I’ll share them with you if I ever get there, but don’t expect them to help &lt;em&gt;you&lt;/em&gt; much. :) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=51609" width="1" height="1"&gt;</description></item><item><title>MSDN Low-Bandwidth Rendering Option</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/06/26/51219.aspx</link><pubDate>Thu, 26 Jun 2008 16:17:00 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:51219</guid><dc:creator>craig-andera</dc:creator><slash:comments>9</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=51219</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=51219</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/06/26/51219.aspx#comments</comments><description>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;One of the common complaints with &lt;a href="http://msdn.microsoft.com"&gt;the MSDN website&lt;/a&gt; is the fact that the pages are pretty fat. The team has done a lot to make this better, but there's still some stuff in there that not everyone needs.&lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;If you're interested in an extremely skinny version of the MSDN docs, give the new LOBAND rendering format a try. To use it, stick (loband) - inlcuding the parens - at the end of an MSDN URL, before the .aspx. For example, the documentation for System.Xml.XmlReader is normally at &lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx&lt;/a&gt;. But if you surf instead to &lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlreader(loband).aspx"&gt;http://msdn.microsoft.com/en-us/library/system.xml.xmlreader(loband).aspx&lt;/a&gt;, you'll get the new, low-bandwidth rendering of the page. There's a link at the top of the LOBAND rendering that lets you make it permanent via a cookie (you can turn it off later via a similar link). &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;It makes quite a difference. On my machine, I see the regular version at about 98KB, and the LOBAND version at just over 18KB - and the 98KB doesn't count the TOC tree, which doesn't render in the LOBAND version. Not a huge deal for those on high-bandwidth connections in the US, perhaps, but there are lots of people who don't fit that description. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Note that the team already has planned improvements for the next regular update of the site. But don't let that stop you from letting them know if you have any ideas about how to make it better. You can drop a comment here or &lt;a href="http://pluralsight.com/blogs/craig/contact.aspx"&gt;contact me&lt;/a&gt; - I'll make sure it gets sent on. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;And no, I didn't have anything to do with implementing this - I'm just blogging it. :) &lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=51219" width="1" height="1"&gt;</description></item><item><title>Hobocopy x64 Build Available</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/06/25/51206.aspx</link><pubDate>Wed, 25 Jun 2008 12:28:00 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:51206</guid><dc:creator>craig-andera</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=51206</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=51206</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/06/25/51206.aspx#comments</comments><description>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;I finally got around to hacking together an x64 version of &lt;a href="http://www.pluralsight.com/wiki/default.aspx/Craig/HoboCopy.html"&gt;hobocopy&lt;/a&gt;, my little utility that copies files even if they are locked. Note that you might need to install the 64-bit C runtime (vcredist_x64) in order to get it to work. Both the updated binaries and vcredist_x64 are available at &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=117783&amp;amp;package_id=204974"&gt;the SourceForge download page&lt;/a&gt;. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Enjoy! Of course, if you &lt;strong&gt;really&lt;/strong&gt; like hobocopy, maybe you'd &lt;a href="http://www.pluralsight.com/blogs/craig/archive/2008/05/23/51041.aspx"&gt;consider becoming the maintainer&lt;/a&gt;. &lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=51206" width="1" height="1"&gt;</description></item><item><title>Hobocopy Needs a New Daddy (or Mommy)</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/05/23/51041.aspx</link><pubDate>Fri, 23 May 2008 13:44:00 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:51041</guid><dc:creator>craig-andera</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=51041</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=51041</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/05/23/51041.aspx#comments</comments><description>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;I enjoy the process of sharing some of my work as open source. One of my more successful efforts in that area has been &lt;a href="http://www.pluralsight.com/wiki/default.aspx/Craig/HoboCopy.html"&gt;Hobocopy&lt;/a&gt;. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Like most (really, all) software, it's not done. There are any number of things I'd like to add to it, and I still get occasional requests from people for enhancements or bugfixes. But, due to one thing and another, I just haven't been able to get around to doing any work on it for months. So I'm asking you, dear &lt;a href="http://www.urbandictionary.com/define.php?term=lazyweb"&gt;LazyWeb&lt;/a&gt;, if you know of anyone who would be interested in adopting this poor, neglected, digital offspring of mine. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;I'm open to whatever arrangement that maintains the MIT nature of the license, so if you'd rather move the code somewhere else or transfer the copyright, that's cool with me. Or we can keep it where it is and I can set you up as a contributor. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Hobocopy is written in C++. Not very good C++, mind you, but C++ skills are still required. Although with sufficient work, we could probably factor out the bit that needs to be in C++ and rewrite everything else in C#. I'm happy to help with design direction via email, I just don't have time to hack. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Anyway, let me know if you're interested. It's a good tool and I'd love to see someone pick it up and move it forward. &lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=51041" width="1" height="1"&gt;</description></item><item><title>Speaking at DC ALT.NET Thursday</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/05/19/50982.aspx</link><pubDate>Mon, 19 May 2008 13:37:00 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:50982</guid><dc:creator>craig-andera</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=50982</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=50982</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/05/19/50982.aspx#comments</comments><description>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Lately I've been enjoying going to the &lt;a href="http://tech.groups.yahoo.com/group/dcaltnet"&gt;DC ALT.NET&lt;/a&gt; meetings. I can't say I've figured out what &lt;a href="http://altdotnet.org"&gt;ALT.NET&lt;/a&gt; is supposed to mean, but the DC version appears to equate to smart people talking about interesting things, so that's good enough for me. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Anyway, I shot off my mouth (big surprise!) about how cool I think Lisp is at the last couple of meetings, so I figured it might not be a bad idea to offer to do a somewhat more structured talk about it some time. I don't really do much public speaking any more, but I happen to have a little presentation ready about what I've learned about (and from) Lisp, so I offered to give it and they accepted. If you'd like to hear it, &lt;a href="http://tech.groups.yahoo.com/group/dcaltnet/message/307"&gt;come on down&lt;/a&gt; on Thursday. &lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=50982" width="1" height="1"&gt;</description></item><item><title>MSDN Updates</title><link>http://www.pluralsight.com/community/blogs/craig/archive/2008/04/30/50814.aspx</link><pubDate>Wed, 30 Apr 2008 18:00:00 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:50814</guid><dc:creator>craig-andera</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/rsscomments.aspx?PostID=50814</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.pluralsight.com/community/blogs/craig/commentapi.aspx?PostID=50814</wfw:comment><comments>http://www.pluralsight.com/community/blogs/craig/archive/2008/04/30/50814.aspx#comments</comments><description>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Yesterday was a big day for me with respect to MSDN. There were a pair of "the new replaces the old" moments. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;The first event was the one Larry Jordan amusingly subtitles "&lt;a href="http://blogs.msdn.com/innovation/archive/2008/04/29/msdn-highlander-there-will-be-only-one.aspx"&gt;There will be only one!&lt;/a&gt;" What happened was, the old MSDN finally got turned off - the MTPS-based version of MSDN is now the only version running. &lt;a href="http://msdn2.microsoft.com"&gt;http://msdn2.microsoft.com&lt;/a&gt; now redirects to &lt;a href="http://msdn.microsoft.com"&gt;http://msdn.microsoft.com&lt;/a&gt;. That means no more fun URLs like &lt;a title="https://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fileassoc.asp" href="https://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fileassoc.asp"&gt;&lt;font face="Verdana"&gt;https://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fileassoc.asp&lt;/font&gt;&lt;/a&gt;. Now it's &lt;a title="http://msdn2.microsoft.com/en-us/library/bb776847.aspx" href="http://msdn2.microsoft.com/en-us/library/bb776847.aspx"&gt;http://msdn2.microsoft.com/en-us/library/bb776847.aspx&lt;/a&gt;. Ahh - that's better. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Since I helped write the Microsoft/TechNet Publishing System (MTPS), which sits behind the new, one-and-only MSDN website (and the TechNet and Expression websites, for that matter), it was sort of cool to see it "take over". &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;The other thing we did yesterday was to update &lt;a href="http://www.pluralsight.com/blogs/craig/archive/2008/01/23/50030.aspx"&gt;the MTPS REST API&lt;/a&gt;. It's still very much a prototype (i.e. things are broken) but we wanted to push a version out there that has some of our latest thinking in it. Most notably, this release sketches out what we think we want to do for writes. That's right - we intend to support community-authored changes to MSDN (the website supports that now in the form of tags and wiki-like annotations, in case you didn't know). &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Although I should point out that the writes aren't implemented yet in the REST API because we haven't fleshed out the story for authentication.  But you can see the idea. For example, to add a new tag to an item you'll be able to PUT to &lt;a href="http://labs.msdn.microsoft.com/restapi/content/b8a5e1s5/en-us;vs.90/tags/add-tag"&gt;http://labs.msdn.microsoft.com/restapi/content/b8a5e1s5/en-us;vs.90/tags/add-tag&lt;/a&gt;. And to delete a the foo tag added by user candera you'd DELETE &lt;a href="http://labs.msdn.microsoft.com/restapi/content/b8a5e1s5/en-us;vs.90/tags/foo/users/candera"&gt;http://labs.msdn.microsoft.com/restapi/content/b8a5e1s5/en-us;vs.90/tags/foo/users/candera&lt;/a&gt;. For convenience, we're also planning to support POST to those endpoints with a hidden form parameter of _method, which is set to PUT or DELETE as appropriate. It's just too convenient to be able to drive the service from a browser during development not to do that. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Another big change is what lives at &lt;a href="http://labs.msdn.microsoft.com/restapi/content"&gt;~/content&lt;/a&gt;. In this release it's a link to the &lt;a href="http://labs.msdn.microsoft.com/restapi/sites"&gt;~/sites&lt;/a&gt; part of the API. In MTPS parlance, a "site" is the host part of a URL (e.g. the "msdn" in &lt;a href="http://msdn.microsoft.com"&gt;http://msdn.microsoft.com&lt;/a&gt;). Underneath those are "iroots", which is a lot like a vdir (e.g. the "academic" in &lt;a href="http://msdn.microsoft.com/academic"&gt;http://msdn.microsoft.com/academic&lt;/a&gt;). The reason ~/content links to ~/sites is that via ~/sites you can find your way into the TOC tree of any of the content in MTPS…or at least you could if it were hooked up properly everywhere. Still, you can see the idea. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;That said, we've decided that the link to ~/sites is ugly and we hate it. :) So we'll have to figure something else out there. Maybe a set of virtual TOC nodes that unifies all the TOCs - one node to bring them all and in the API bind them. Or something - we're still noodling on that one. &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;/div&gt;
&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Other changes: we've added ETags and Expires headers to all resources (currently everything is hardcoded to expire 24 hours in the future), fixed some of the encoding problems, added an XHTML DTD where appropriate, and of course there are the obligatory bunch of minor bugfixes. We've also done some slight reorganization of the URLs to fit our evolving understanding of the model, but most things have remained unchanged. I'm curious to hear if anyone has played with the service at all - if you have any questions or feedback, do feel free to &lt;a href="http://pluralsight.com/blogs/craig/contact.aspx"&gt;contact me&lt;/a&gt;. &lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=50814" width="1" height="1"&gt;</description></item></channel></rss>