Programming & Development

  • Missing MySQL References in PHP

    The following can be used for quick LAMP installation and/or if you are missing MySQL references in PHP. Debian: Redhat: Continue reading

  • 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… Continue reading

  • 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):… Continue reading

  • 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… Continue reading

  • 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… Continue reading

  • 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… Continue reading

  • File Shredder Shortcut using SDelete in Windows XP, Vista, 7

    Computer enthusiasts have been using file shredders to delete files for many years. Sysinternals makes a very cool utility called “SDelete” that “shreds” a file See below for batch file code snippet to use with SDelete. Add to your “User/Administrator/AppData/Roaming/Microsoft/Windows/SendTo”… Continue reading

  • Play Sound in .Net

    Snippets below have been condensed from their original sources for brevity. See references for original articles. All examples are in C# .Net. Winforms: ASP .Net: (create an empty div in your page called “sound_element”) Note there are many ways to… Continue reading

  • JQuery Animation Reference

    Can be used without additional parameters .animate() Perform a custom animation of a set of CSS properties. .clearQueue() Remove from the queue all items that have not yet been run. .delay() Set a timer to delay execution of subsequent items… Continue reading

  • PHP on IIS7

    If you are unfamiliar with the term; PHP is a very popular open source web development language. It runs server side like ASP.Net instead of client side like javascript, and has many of the same features also seen with .Net.… Continue reading