Referring to JavaScript documentation in Visual Studio via reference

  • July 3, 2010
  • James Skemp
While I don't use Microsoft or Google's CDNs for jQuery, I do have a separate sub-domain where I serve these files from (and will eventually use a CDN, I'm sure). However, this means that in Visual Studio I miss out on the helpful documentation functionality. Based on a comment on 3 reasons why you should let Google host jQuery for you it turns out there's a fairly easy way to get Intellisense; simply include the following in your JavaScript file.

Read More

Windows Server 2008 R2, SQL Server Express 2008 R2, and LINQPad

  • June 26, 2010
  • James Skemp
This weekend I finally installed SQL Server 2008 R2 to my Windows Server 2008 R2 machine. After a bit of back-and-forth about which version to install (since my MSDN subscription allows me to install seemingly every version), I opted to just install SQL Server Express 2008 R2. Being part of the Web Platform Installer, the entire process was extremely easy. Step 1: Start Web Platform Installer. Step 2: Select SQL Server Express 2008 R2 and SQL Server 2008 R2 Management Studio Express from under Database.

Read More

Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Part 3 - Pulling JSON with jQuery

  • June 25, 2010
  • James Skemp
See the table of contents for more information. In this series we've started with a new loan class, that contains information about a loan, including the total amount due, how much is to be paid per payment, the interest rate, and etcetera. A method is available that will generate information about the number of payments required to pay off the loan. In the second part we created a WCF WebHttp service, or a WCF REST service, to use the class/assembly from that loan object and return XML data for GET requests.

Read More

Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Part 2 - WCF WebHttp service

  • June 24, 2010
  • James Skemp
See the table of contents for more information. In the last part we created a Loan object, that we determined we would later use to power our Web service. Ths object has a handful of properties and a method to update a list of payments to bring the loan to $0. This time we’re going to create a Web service to respond to requests from data. Requirements As this seems to be built for .

Read More

Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Part 1 - Loan object

  • June 22, 2010
  • James Skemp
See the table of contents for more information. As already noted in the table of contents, the end goal will to have a service that returns enough information to be able to generate an amortization schedule for a loan. I'm not in financial services, and haven't been very good in math since some point in high school, but this seems to work fairly well. The first thing we're going to do is generate an assembly that we'll then use in the WCF WebHttp service.

Read More

Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Table of Contents

  • June 21, 2010
  • James Skemp
A while ago (a year and a quarter) I created an amortization schedule generator in ASP.NET, as an attempt to help me determine when I could expect to have a loan paid off, depending upon how much money I threw at it. For better or worse, some of the practices I put in place aren't the best, and either way I've been meaning to tweak the interface so that I could do various comparisons.

Read More

Vehicle gas DTD .NET objects and XML parsing with LINQ

  • June 10, 2010
  • James Skemp
The code contained below is a rough draft, and will eventually be moved into an assembly, and the code posted. At some point in 2007 I started keeping track of my gas mileage in an XML file, with a custom DTD for validation (and intellisense in oXygen). I present below the code necessary to create an rough object from the XML, and the LINQ to parse it out. C# objects public class Vehicle { public int Id { get; set; } public String Make { get; set; } public String Model { get; set; } public int Year { get; set; } public IEnumerable Fillups { get; set; } } public class Fillup { public int Id { get; set; } public DateTime Date { get; set; } public int MilesTotal { get; set; } public Decimal MilesDriven { get; set; } public Decimal Gallons { get; set; } public Decimal CostPerGallon { get; set; } public Decimal CostTotal { get; set; } public String Notes { get; set; } }</code></pre> LINQ to XML XDocument vehicleGasXml = XDocument.

Read More

Windows Server 2008 R2 Enterprise Edition - setup for sharing files

  • June 6, 2010
  • James Skemp
When I first started downloading files, almost a decade and a half ago, I would just download everything to one directory, using whatever name the file originally had when I was downloading it. In the last couple of years I've been trying (despite Chrome's default method trying to push be back) to be much better about saving files, by creating a directory with the full name of the application - "Microsoft Web Platform Installer"

Read More

Windows Server 2008 R2 Enterprise Edition - setup for Web development

  • June 5, 2010
  • James Skemp
This afternoon I setup a machine for the following purposes: to serve as a test bed for Web development to serve as an always-available Subversion repository server to serve as a repository for shared downloads, across all my machines As time goes by the scope of the server may also change. But for now, this will work just fine. Choosing an edition The first step was to install Windows Server 2008 R2.

Read More

Basic .NET (C#) Traceroute library

  • May 9, 2010
  • James Skemp
Spending the day researching all things DNS, I eventually came upon Jim Scott's post on C# Traceroute using .net framework. After a bit of tweaking, I've got something that I like a bit more, because I really want to know what the IP address means. The code for the assembly and console application are included below. Written against .NET Framework 4 (in Visual Studio 2010), but if you change the String.

Read More