Our starting point – we want Grape to be highlighted because it is not the same as Cherry.
Select all of column…
GitHub for Windows doesn't put Git in the PATH by default. If you'd like your Node.js command prompt to have the git command available by default, simply edit your nodevars.bat file. By default, this is in C:\Program Files\nodejs\. You will have to run your text editor in an administrative… Read more
He also described how to update the lib.d.ts file later in the same issue:
These instructions are not guaranteed to work, so be sure to back up your…
My wife and I are happily married. Both of us were surprised the other day when she started getting Match.com personals results sent to her GMail account! She was a bit freaked out that it was some creepy malicious person, but it seems that it was just some end-user carelessness… Read more
- Open your project’s folder in WebStorm.
- Click Run… Edit Configurations…
- Add a new…
Do you ever copy query results out of SQL Server Management Studio, paste them into your text editor, and then perform gold-medal find + replace gymnastics to create T-SQL scripts?
Do you ever need to copy a small amount of data from one SQL server to another, but don’t want… Read more
Fiddler is a free program that will log HTTP and HTTPS requests on Windows. These instructions demonstrate how to use Fiddler to create an archive file (.SAZ) of these requests for troubleshooting purposes using the full version of Fiddler. As an alternative, there is a simplified version of Fiddler available… Read more
Microsoft has made pre-packaged Virtual Machine images available for purposes of testing different versions of IE via the modern.ie web site. This blog post describes how you can get these VM images loaded into the free VirtualBox software and talking to an IIS Express web site running on your local… Read more
I wrote a guide about using Git and GitHub for "Windows people".
This is the guide I wish was available when I got started with Git last year.
The guide takes you through everything you need to know to get started with Git and GitHub, and only requires a Windows… Read more
Be careful when implicitly converting data types in T-SQL. Directly assigning 1.5 (either as a FLOAT or a NUMERIC) to an INT value in SQL Server may truncate the value to 1 rather than rounding it up as you might expect. Explicitly calling ROUND( ,0) as part of the assignment… Read more
The built-in dependency finder in SQL Server Management Studio does not provide the ability to distinguish between dependencies that are read-only and dependencies that are read-write. However, SQL Server 2012 does make this information available via the management views.
The query below will return all of the objects that… Read more
This is my reinterpretation of the documentation on NuGet.org, modified to remove the public publishing steps, and to add local publishing steps and a source control reminder. This guide is intended to help enable the benefits of NuGet for proprietary code such as business-specific DLLs that are not fit… Read more
This code demonstrates how to do an INSERT into SQL Server from a PowerShell script using an ADO.NET command object with strongly-typed parameters. This script issues a DIR *.* command and inserts the results to the database. While this example is not particularly useful, it is hopefully very simple and… Read more
Note: This solution is not necessarily the best or most efficient solution in all cases. It is, however, very simple and works with any site - even ones you have no control over.
Internal Web System XYZ must be accessed via an ugly URL such as http://randomservername.internalexample.com:8675309/SomeCrazyPath/SomeFile.htm
Desired End… Read more
It seems that many of my projects in the past year or so have required sharing files with external business partners. I've found that SkyDrive has been quite useful for this purpose. Here's how to get started quickly and securely sharing files.
Setting up SkyDrive sync:
1. If you don't…
Say you have a simple data transfer class that looks like this:
Public Class Employee
Public Property Name As String
Public Property HireDate As Date
Public Property EmployeeID As Integer
Normally to load up this class, you might call something like this:
Dim employee As…
This is a reminder to my future self for how to quickly start IIS Express from the command-line on 64-bit Windows 7 or 8 assuming you already have IIS Express installed using the defaults.
- Open admin command line.
- cd\Program Files (x86)\IIS Express
- iisexpress /path:c:\YourApplicationRootFolder /port:WhateverPortNumber
Note: You can also specify… Read more
If you feel that the default on-screen keyboard on the Surface RT isn't sufficient, you can enable what I would say is the "pro" keyboard via the settings.
- Drag in from the right hand side to show the charms and click Settings.
- On the bottom of the settings window, click…
I was able to attend the SQL in the City event in New York this past Friday. I highly recommend that anyone who can spare the time and travel should attend the next SQL in the City day in your area. I found it to be a very well put-together… Read more
I recently had the need to script the execution of a command-line utility and thought it would be a good learning experience to try doing it with PowerShell. The utility would sometimes output to the STDOUT, but would also send its output to STDERR if there was a problem. This… Read more