Author Archives: Jason

"Please Prepay"

Yesterday’s post about The Speed of Trust hit me in a new way this morning when I was filling up with gas. The sign on the pump said, “Please Prepay.” Wow, does that slow things down, doesn’t it? Instead of … Continue reading

Posted in Business, Leadership | Tagged | Leave a comment

The Speed of Trust: Chapter 1

I’m slowly picking my way through Stephen Covey’s book, The Speed of Trust. In chapter one Stephen makes a compelling argument that trust makes a very real difference in the amount of time and money required to get work done. … Continue reading

Posted in Business, Leadership | Tagged | 2 Comments

Force a SQL Restore

Really tired of having to google this and piece it together every time I want it, so I’m posting it here. .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } … Continue reading

Posted in CodeMinder, SQL | Leave a comment

User Experience: Find the Send Button

I typically use Gmail; I do have a Hotmail account and needed to use that for something the other day. I typed up my new message, and had to hunt for the Send button. It took about 5-10 seconds. I … Continue reading

Posted in General PC Usage, UX | 3 Comments

NDesk.Options

Parsing command-line arguments can be deceptively tricky. Often it starts as something very simple to do manually, but as more arguments and formats and flexibility are desired, the effort required to do it well can explode. So there are several … Continue reading

Posted in Programming | Leave a comment

Write MSMQ Messages from PowerShell

This PowerShell script sends a message to an MSMQ. I did it this particular way because NServiceBus can consume messages sent like this. [Reflection.Assembly]::LoadWithPartialName(“System.Messaging”); $queueName = ‘.\Private$\your.queue.name’; $queue = new-object System.Messaging.MessageQueue $queueName; $utf8 = new-object System.Text.UTF8Encoding; $tran = new-object System.Messaging.MessageQueueTransaction; … Continue reading

Posted in CodeMinder, MSMQ, PowerShell, Programming | 2 Comments

Read MSMQ Messages from PowerShell

This script dumps the contents of an MSMQ to the console. This one dumps the Journal contents of a private queue; of course you’ll have to adjust that line for your queue. [Reflection.Assembly]::LoadWithPartialName(“System.Messaging”) $queueName = ‘.\Private$\your.queue.name\Journal$’; $queue = new-object System.Messaging.MessageQueue … Continue reading

Posted in CodeMinder, MSMQ, PowerShell, Programming | Leave a comment

JavaScript: this and that.

This is a brief description of a technique recommend by Douglas Crockford, probably in Act III of his JavaScript video series. Code that looks right, but is wrong: There are a few workarounds; the one Douglas Crockford recommends is to … Continue reading

Posted in JavaScript, Programming | Leave a comment

DuckDuckGo FTW

On a trial basis I’ve been using DuckDuckGo instead of Google for searches. You can even set Chrome up to use DuckDuckGo for queries typed into its “omnibar.” Today DuckDuckGo earned this blog post from me. I wanted to know … Continue reading

Posted in General PC Usage | Leave a comment

Don’t use BR for vertical spacing

Use CSS instead. When <br> is used for vertical spacing it drives me crazy. Among my coworkers it is widely known that I don’t approve of <br> abuse. One recently wrote in a source control commit comment, “Removed some nasty … Continue reading

Posted in HTML, Programming | Leave a comment