Posts

Showing posts from May, 2011

SocialAuth.NET - OAuth with Facebook, Yahoo, Google, Twitter & more

Image
So last time when you visited your favourite site, you were pleased to see that it allowed login through facebook also besides direct registration . This is such a convenient functionality as user tend to be lazy to fill in registration forms and then wait for email with activation link. If you are looking for implementing similar functionality in your application then you can simply use "Facebook Button" from Facebook. But what if you want to implement authentication with Yahoo, Google and MSN as well? Well there is an out of the blue easy solution to achieve it! Meet SocialAuth.NET. SocialAuth.NET is a .NET class library that can be used to implement authentication with Facebook, Yahoo, Google and MSN. Using this library is so easy, that even if you are aware of writing simple application with ASP.NET, you can easily use this library. This library provides following features: - Authentication with Yahoo, Google, Facebook, MSN, Twitter, LinkedIn, MySpace - Retrieval of user...

Connect with 32bit DSN from 64bit .NET

Recently I ran into a trouble. I was using a specific database which supported only 32bit ODBC connections. However my machine was 64bit Win7. If I connected to my 32bit DSN from Excel, I could get the data but from Visual Studio I received error :" There is an architectural mismatch". The reason was that by default my .NET communicated with 64bit driver. To force it to use, I changed my project Platform target from "ANY CPU" to "x86".. and it worked!! :)

Blittable types

Blittable types have an identical presentation in memory for both Managed & Unmanaged environments, and can be directly shared by them. Hence, it does not require special attention from the interop marshaler. • System.Byte • System.SByte • System.Int16 • System.UInt16 • System.Int32 • System.UInt32 • System.Int64 • System.IntPtr • System.UIntPtr Additionally, one-dimensional arrays of these types as well as complex types containing only fields of these types are blittable. The following are some commonly-used non-blittable types in the .NET framework: System.Boolean, System.Char, System.Object, System.String