Extending Enumerations


Have you ever needed a more powerful enum?  A more user-friendly enum?  An enumeration that encompasses a doman-friendly name, a user-friendly name, and a database friendly value?  Maybe you need to match a status, error code, of categorization that is strictly defined as a one or two character code that is practically meaningless outside the confines of the organizational brain trust.

Continue reading

SharePoint 2010 Chrome


I’m sure somebody, somewhere, leverages SharePoint Chrome for displaying the most beautiful and elegant titles on well-designed pages.  I, however, am not that person, and have never met that person.  The workflow I was accustomed to was:

  1. Add Web Part to page
  2. Edit Web Part
  3. Change Chome to None
  4. Save & Close Page
  5. Check In
  6. Publish
  7. Approve

Continue reading

SharePoint 2010: Enabling Developer Dashboard on Anonymous Sites


Something I ran into awhile ago and spent way too long digging out is enabling developer dashboard.  “But Lefty, there are thousands of blog posts on this subject, are you dim?” you might ask.  Nay, just picky. Most of the time, nobody cares how the admin side of their application performs.  Normally if it’s slow, it only affects a few users.  And normally those users are either the person or a direct report of the person that contracted the creation of that application.  The slow, behemoth that is the admin side helps them further appreciate the nimbleness of the public side.  In my experience, the best way to transform that slow behemoth into a nimble speed demon is the developer dashboard, and a liberal application of SPMonitoredScopes.

Continue reading

Debugging SharePoint 2010 Applications


One common problem many people run into is debugging SharePoint 2010.  Not just dealing with the many nuances, but actually just the simple task of attaching a debugger.  Sometimes, you’ll go through the hassle of finding the right worker process, attach to it, and even though you are 100% certain the binaries you have recently complies are currently what’s running on the site, you don’t get the satisfaction of your red breakpoint completely filling in.  You stare at the screen blankly in confusion.  Confusion turns to rage.  Rage turns into sadness.  Sadness turns into acceptance.  You reset IIS, reload the page, and try again.  And suddenly, it works.  If the definition of insanity is doing the same thing over and over and expecting a different result, SharePoint really does make you crazy, because it rewards such nonsensical persistence with different results. Continue reading

Link

Microsoft’s Not the Bad Guy Anymore

The journalists jumping back onto the “bash Microsoft” train are reusing decade old rhetoric to bash Microsoft for making understandable and credible design choices.

They have, from what I understand, reworked and rewritten windows to run on an ARM processor.  No longer Windows Mobile, Windows CE, but now a branch off of the full product into Windows RT.

Continue reading