Google Shortener is a service provided by Google to create short URLs. Google Shortener has been available for some time now but only recently Google released a public API to access this service programmatically. Today I decided to try it out and wrote some C# code to work with the API. I will describe [...]
I have been looking at some code from Microsoft and I found that in C# they keep curly braces on the same line. This is also the preferred style in Java. Since I also write Java code these days I decided to keep the same style for curly braces.
So how do you configure Visual [...]
MTOM which stands for Message Transmission Optimization Mechanism is a W3C Recommendation which is mostly about reducing the size of binary data when transferred through SOAP web services.
Binary data can be sent through SOAP already. So what’s the need for MTOM? Well it turns out that binary data in SOAP messages is encoded [...]
Recently I was working with some hierarchical data stored in SQL Server. The data was related to products where each product is a package which includes other packages which in turn can include individual products. The data was stored in a table where a a product row had a parentId column which indicated the parent [...]
Could Not Create SSL/TLS Secure Channel is an error you my get when communicating with web services in a two way SSL scenario from ASP.NET application. Here is a guide which you can follow to resolve the issue. I spent fair bit of time on this and I am documenting my approach here for future [...]
This post shows you how to generate self signed certificates on Windows 7. To generate self signed certificates you must have IIS 7.5 installed because you will generate your certificate from within IIS manager.
Step 1
Launch IIS manager and in Filter type “Certificates” to see the Server Certificates Feature.
Step 2 [...]
There are two things which I as a consultant / developer come across many times. One is verifying connectivity to a database which is often a cause of production issues and second is creating valid connection string in the least amount of time. This is the way I do it. Hopefully it will be of [...]
This post shows you how to find Data Providers installed on a machine. Data providers in .NET Framework provide the plumbing necessary to connect to databases. There are different data providers available which can connect to SQL Server, Oracle or other databases through OleDb. You can find the data providers installed on your machine by [...]
Channel 9 which happens to be my favourite media station now has a section for courses. And if you have downloaded Visual Studio 2010 then this is the place to get yourself some VS 2010 training. Topics covered in this online course are:
Managed Languages ASP.NET 4.0 Data Platform WCF & WF Parallel Computing ALM [...]
Microsoft PDC 2009 site is now accepting registrations. PDC 2009 will run from 17th November to 19th November 2009 at Los Angeles Convention Center Los Angeles. Here is pricing information from PDC website.
I think in or around PDC 2009 we should see commercial launch of Azure, Visual Studio 2010, .NET Framework [...]
To get width and height of an image we can use System.Drawing.Image class. This code snippet shows how to retrieve width and height of an image.
string filePath = @"c:\deepak\MeeGo.jpg"; Image img = Image.FromFile(filePath); Console.WriteLine(string.Format("Height: {0}",img.Size.Height)); Console.WriteLine(string.Format("Width: {0}",img.Size.Width));
.NET Framework provides classes which give information about the machine on which code is executed. One Such class is System.Environment which gives us things like Machine Name, OS Version and much more. I recently had a requirement to programmatically detect the number of Processors on a machine. I thought this was a simple enough task. [...]
Top Posts
- LINQ To SQL Tutorial
- LINQ To SQL Join On Multiple Conditions
- Code Sample: Programmatically Download File Using C#
- Windows 7 Control Panel In Classic Mode
- More Details Emerge On Microsoft Master Certification
- Use SqlConnection With LINQ To SQL
- Free Icons And Images With Visual Studio 2008
- Capture XML In WCF Service
- Dynamic Sort With LINQ
- StyleCop Tutorial
Tags
.Net 2010 ADO.NET ASP.NET Azure Blogging Books Browsers C# Certification Cloud Computing Code Snippets Community Data Services Eclipse Entity Framework Google IDE Java LINQ Mac Microsoft Museum NetBeans Office Oracle REST SharePoint Silverlight SQL Server T-SQL Tips Tools Training Visual Studio Visual Studio 2010 WCF Web Windows Windows 7 Windows Forms Windows Live WMI WPF XAML

