grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries Tagged ‘.NET’

SQL Server Reporting Services: Quick way to get 10 digit year (all the zero’s) using String.Format

Dates are fun. See, by default most dates come out like 5/6/2008. But computers, and programs like them formatted as 05/06/2008. That way, all the dates, no matter what month or day, are all the same length, cool huh?
Well, in Reporting Services, if you have a date field coming back in a dataset, and you [...]

Leave a Comment | 56 views

Hacking Microsoft Pro Photo Tools - Using Reflector to use MapPoint Lat Long Lookup (for free!) in C#

The other day, Microsoft came out with “Microsoft Pro Photo Tools” which allows you to geocode your photos. It is a pretty cool app, but there are some things that I wonder, like why didn’t they just build this functionality into Windows Live Photo Gallery?
Anyway’s, with any new thing I download and play around with, [...]

Comments (1) | 168 views

OAuth: Getting Started with OAuth in C#, .NET

I have been playing around with Pownce and their API. They offer HTTP Basic Authentication and OAuth authentication. I decided to give a go with OAuth since BASIC auth just seems, dirty insecure to me. I started digging around, and http://oauth.net/ has some good info. Under code there is a C# (CSharp) version - http://oauth.googlecode.com/svn/code/csharp/  [...]

Leave a Comment | 423 views

Why is MFC Not Dead?

I was reading through some blogs this morning, and ran across this one, from my MSDN Feed.
Here is my answer (I wanted to leave a comment, but it wasn’t working, and I figured it would be a good blog post anyways)
Right now you can make an MFC app and it can run on win98,2k,xp,vista, [...]

Comments (8) | 1,775 views

.NET Programming - Stopwatch class in System.Diagnostics

So in two recent small little projects, I have needed to "time" things in code. Back in the day, it was using timespans, timers in windows forms, ticks, and just two dates and taking datediffs, getting the milliseconds or seconds, coverting to the time element you needed. Well, no longer do you have to hack [...]

Leave a Comment | 220 views

.NET - Fastest Way to Load Text File To SQL - SqlBulkCopy

An exercise in coding. Loading a text file to SQL. There are a billion different ways to do it, and depending on your source data format and such, you can parse the file a million ways too. But how fast can you get data from disk to SQL using .NET code? (VB.NET or C#) . [...]

Comments (8) | 2,144 views

Real World IT: Backing Up Cisco Routers using .NET

Usually, in a company, there is a “development” department and a “IT” department, and usually the departments don’t really work together. Development is focused on delivering business value through coding applications for end users or B2B clients. IT is busy making sure the corporate network is humming along, and that other internal issues related to [...]

Leave a Comment | 96 views

C# .NET Test Driven Development with Visual Studio 2005

As of late I have been stuck in C++ world. MFC/Win32, pointers and HRESULT’s. Ugh. Earlier this week I got a chance to get back to C# and .NET (aka My Roots).
I needed to create a class library for a project, basically from scratch, since there was no existing library created. I started to go [...]

Leave a Comment | 88 views

WPF Programming - Xceed Datagrid Control

So, now that I have the extensions and have started digging into WPF, I notice one thing blatantly missing. Datagrids! So I did a quick search and found that Xceed has a free (as in beer) datagrid control for WPF, you can get here. I have downloaded it and can’t wait to start using [...]

Comments (1) | 103 views

.NET 3.0 WPF/WCF Templates for VS2005

Microsoft recently released the .NET Framework 3.0 (WinFX) that includes Windows Presenation Foundation, Windows Communication Foundation, Windows Workflow Foundation, and Windows CardSpace. If you are trying to develop using the WPF or WCF using VS2005, you might be wondering if there are VS2005 Templates avail for these project types. You would think that by installing [...]

Comments (1) | 338 views