Ronnie Diaz

  • OAuth Specs and Protocol

    The OAuth protocol defines a common data structure for communicating between websites. This relatively new format is increasing in popularity and used in many different sites including Facebook and Google. Microsoft has even added support for it in its latest… Continue reading

  • Quick Silverlight References

    Most of the links below are relatively introductory, but they do serve as a quick refresher if it has been awhile since you have worked with Silverlight. Though not all of the links are specific to SL4, I would recommend… Continue reading

  • Bind Control to an Object in Windows Forms

    Simple solution for basic binding in Windows Forms app. This would NOT be recommended if you are using ASP .Net, Silverlight, WCF, RIA or any other services to retrieve the data as these project types have much better support for… Continue reading

  • Import OData / XML / RSS / Webservice Feeds into Excel

    If you came here looking for some quick and easy code that you can plug right in and dump data in excel format.. You have come to the wrong spot. 🙂 Depending on the scenario you may need this functionality… Continue reading

  • .Net Thread Safety

    Any future posts regarding thread safe calls will go here. C#: (field) C#: (singleton) Continue reading

  • URL Encode in .Net

    C#: (ASP .Net) C#: (Client/Server Environment) References MSDN, WebUtility Classhttp://msdn.microsoft.com/en-us/library/system.net.webutility.aspx MSDN, Uri Classhttp://msdn.microsoft.com/en-us/library/system.uri.escapeuristring.aspx MSDN blogs, http://blogs.msdn.com/b/yangxind/archive/2006/11/09/don-t-use-net-system-uri-unescapedatastring-in-url-decoding.aspx Continue reading

  • Encryption 101 and Security for the Paranoid

    Modern day television, cinemas and news have created a big hype around security, especially computer security, usually without any good explanation. I’m not going to tell you that hype is false, there is definitely a growing need to be careful… Continue reading

  • Quick .Net Encryption Reference

    The code below represents a very basic .NET encryption class which has been tested and should work in your application – simply plug and play. 🙂 Contains two static methods that can be called without needing to instantiate the class.… Continue reading

  • Quick .Net Email Reference

    I’ve done a bit of encapsulation here to abstract the concept into clearer functionality, IMO. Make sure to add “using” reference directives for System.Threading and System.Net.Mail accordingly, when necessary. Note usage of basic boolean “sync lock” style logic in place… Continue reading

  • Get Current URL in Javascript

    JS (JQuery): JS (standard): Continue reading