grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries Tagged ‘.NET’

.NET and Oracle – Match Made in Hell (Data provider internal error(-3000) [System.String])

At my new gig, I am working on a project that is ASP.NET with an Oracle Database backend. Today I ran into an error.
Data provider internal error(-3000) [System.String]
What does this error mean? Heck if I know, its a generic error basically telling you that something is wrong with your connection to the database more than [...]

Comments | 2,312 views

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 [...]

Comments | 1,738 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,991 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/  [...]

Comments | 10,339 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 | 5,687 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 [...]

Comments | 868 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 | 14,580 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 [...]

Comments | 597 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 [...]

Comments | 1,038 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 | 993 views