Search   Feed   Browse   Add
Feed items 1 - 3 of 3 for January 2006

Santomania

Addy Santo's occasional braindumps

GDI + LINQ = Generate a bar graph in a single line of code - January 23, 2006

This is a simplified version of actual code from an app I'm working on.  There are a few lines of setup, and then the cool part (the last statement): Using a select statement to iterate over a List<double>, creating a RectangleF object for each value, packaging them all into an Array, and passing the array to the FillRectangles method of the Graphics object.  All in a single line of code... Get values to draw private List<double> performanceHistory =...
http://blogs.msdn.com/asanto/archive/2006/01/22/516016.aspx

Code Snippet: Setting NTFS permissions - January 22, 2006

My previous post shows how to use Windows32.Security to read and set permissions to the registry.  Doing the same for a NTFS is even simpler: public bool TestNTFSPermissions(string path, string userName)       SecurityDescriptor secDesc = SecurityDescriptor.GetFileSecurity(path, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);       Dacl dacl = secDesc.Dacl;       return TestAcl(dacl, userName);...
http://blogs.msdn.com/asanto/archive/2006/01/22/516010.aspx

Code Snippet: Working with Permissions (ACLsACEs) in C under .Net 1.1 - January 22, 2006

I've been working lately on adding "self-healing" capabilities to a certain application.  The idea is to create a set of utility functions which will validate (and fix if needed) various environmental settings such as NTFS permissions, registry permissions, IIS metabase settings, etc.  None if this is rocket science but there still was some work involved in bringing it all together, so I'll list it here in case I (or you) ever need to do it in the future. Note: For anything related to.
http://blogs.msdn.com/asanto/archive/2006/01/22/516009.aspx
Available Archives
- January (3 items)
- February (4 items)
- June (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact