• Ruby Quick Code Reference

    CRUD: Create (alternate syntax): Read (alternate syntax): Update (alternate syntax): Delete (alternate syntax): References Railsforzombies.org

  • Access Denied on File Delete or Cannot delete file

    If you receive an “access denied” message on your PC, whether in Windows or Linux, which occurs when trying to delete or modify a file, it can usually be narrowed down to a few reasons: – The file is marked as readonly – The file is located on a CD, disk, drive, removable device or…

  • Change ReadOnly File Attribute in C#

    Keep in mind when deleting files from code the typical override allowing users to delete anything in their path, whether it is marked readonly or not, will prevent your IO process from continuing and throw a nice little generic “access denied” error. To resolve this, simply remove the readonly attribute on the file prior to…

  • Left in C#

    The C# way, using substring: After adding a reference in your project to “Microsoft.Visualbasic” under NET tab: See reference below if you’d alternatively like to save a few keystrokes and create your own generic re-usable function called “Left” in C# using substring. References Csharp Help, http://www.csharphelp.com/2007/07/c-left-right-and-mid-functions/