dans.blog


The miscellaneous ramblings and thoughts of Dan G. Switzer, II

Dynamic Template Plug-in for Windows Live Writer

I've been using Windows Live Writer for posting all my blogs. Overall it's a terrific program. It's got a very simple, easy to use interface and it drastically eases the process of blogging.

However, the one complaint I've had with the program is there's no easy way to "add" common HTML tags that you commonly use to the interface. I use the <samp> tag quite frequently when showing inline sample code and for variable names (although I suppose I should use the <var> tag instead.) To use these tags I've had to drop to the HTML Code view and manually add the tags. This is a pain to do—especially on longer posts where I need to add the tag frequently.

To solve my dilemma, I've been periodically searching for a Live Writer Plug-in that might allow me to add some custom HTML snippets. Well today I just happened to stumble on a great little plug-in called Dynamic Template Plugin for Windows Live Writer.

You can use this plug-in for doing something as inserting static text or for modifying the selected text. The real power comes from the fact that the plug-in allows you to use C# code snippets. You can even have the template prompt you for input.

To get you started, here are a couple of templates I just wrote to help me out with a few tasks:

more…


My poor Nik-Niks...

[UPDATED: Friday, February 15, 2008 at 9:24:01 AM]

My black Lab, Nikki, has been suffering from rear knee problems since she was about 18 months old (she just turned 4 last month.) She's ruptured the canine cruciate ligaments in both her hind leg. That's like us having torn ACLs in both knees. While she's had the problems for a while, she normally gets by without too much problem—most people would have no clue she had problems with both her rear legs. For the most part, we had been able to manage the nikki.operationdiscomfort using Deramaxx (which is a joint supplement.)

Last Thursday I noticed she was having a bad day, I could tell her knees were bothering her because she was limping and trying to avoid putting weight on them. She just progressively started getting worse over the weekend. She was barely moving and was no where near her normal energetic self.

On Sunday my wife noticed she was also not putting weight on her front left leg—which she was also having uncontrollable spasms that lasted for over 24 hours (massaging the leg would give temporary relief.)

On Monday morning I took her to the vet to see what we could do to relief her of the pain a little and to get a diagnoses on the front leg. The vet determined she either has a muscle or ligament injury that's either a sprain or a strain (without an MRI it would be impossible to know.) The vet also felt that Nikki has probably ruptured her MCL as well as her CaCL.

We've known that the knee problems would degenerate over time, but we were hoping it wouldn't get this bad. No one wants to see their dog in constant pain. It was quite clear to us that Nikki needed surgery if she was to have any type of quality of life.

more…