• Check If Active Directory User is in Group C# ASP .Net

    When searching initially for the above (title of my blog ^), I initially found no good apparent solutions. It was off to the drawing board! LDAP – lightweight directory access protocol. Defines a syntax and tools for querying and enumerating access levels, groups and users associated with an active directory domain. If you are a…

  • PHP Quick Reference

    Escape sequences for print output: Max integer and float size (overflow): generate random number: Get Current Page Name: Came across the following on stackoverflow while looking for the PHP equivalent of string.format. Sprintf (similar to php printf, in c# string.format): References StackOverflow, “C# String.Format() Equivalent in PHP?”, WebCheatSheet, http://www.webcheatsheet.com/PHP/get_current_page_url.php PHP.Net, http://php.net

  • Reset Password from Command Prompt in Server 2008

    For a developer or IT admin working in Windows Server 2008 environment, you may have noticed ctrl+alt+del does not work over remote connection and you can no longer change your password from control panel. The best solution to this in my opinion, that will likely work far into the future, is the command line. Also…

  • IIF in C#

    I always find myself referencing my other projects for this one when I jump between languages, so decided to toss it on the web. Both examples are in the context of ASP .Net, but syntax also applies np to Winforms In VB: C# Equivalent:

  • Serialize and Deserialize classes and objects in .Net

    Serialization is a powerful tool and a major factor in many intermediate development technologies such as webservices. Simply call “SerializeObject” and pass in the class name of your object for the “T” parameters, and your object will be serialized as an xml string which can then be stored in DB or written to disk! To…