Author Archive

SAP Account Determination

Friday, March 19th, 2010

(more…)

Popularity: 1%

C#: Break vs. Continue in Foreach Loops

Tuesday, March 16th, 2010

A C# Quick Tip: You’ve probably seen ‘break’ before in Switch Case statements, but it also plays an important role in Foreach Loops.

To break completely out of a foreach loop (foregoing all the remaining loops), use: break;

To go to the next iteration in the loop, use: continue;

(more…)

Popularity: 1%

C#: That Pesky DBNull Error in Datatables

Monday, March 15th, 2010

Datatables and Tableadapters are one of the most beautiful things about C# and Visual Studio, until you’re processing rows in your datatable and you get something that reads like “The value for column ‘your_column’ in table ‘your_table’ is DBNull.”  If you go a little further, you may get:  “Exception Details: System.InvalidCastException: Specified cast is not valid.”  You may go to your Datatable in your Dataset and start trying to change the NullValue for the offending column or trying to change the DefaultValue in the column properties, but chances are that the data type will not let you change that NullValue.  It will insist on “(Throw Exception)”. (more…)

Popularity: 1%

ASP.NET: Hide Menu Items by Role with Security Trimming

Thursday, February 4th, 2010

ASP.NET makes authorizations and security fairly simple with its roleManager, Authentication, and SiteMap providers.  This quick hint only covers how to hide a particular menu item from the standard Menu and TreeList navigation components when using a SiteMap provider. (more…)

Popularity: 2%

WordPress: Add Scripts to the Pages You Want

Sunday, December 27th, 2009

WordPress makes it very easy to load Scripts into your blog. The beauty of the method that WordPress provides is that it allows plugins and themes to use the same script at the same time by ensuring the script is loaded only once.  

(more…)

Popularity: 3%

WordPress – Can’t Automatically Upgrade to New Versions?

Thursday, November 12th, 2009

wpSo, another security fix comes out for WordPress…2.8.6 this time.  And I begin making the rounds to my sites upgrading.  This is now a ritual for me since some kind hacker hacked me with the 2.7 hidden admin user exploit.  Everything is going smooth…I’ve done 3 sites, when I get to a new site I’m working on, and it will not automatically upgrade for anything. (more…)

Popularity: 4%

WordPress ReWrite – new Plugin Coming and a Hint

Friday, October 2nd, 2009

First of all, let me start by saying that Custom ReWriting in WordPress has consumed way more of my time than it ever should have.  I have prayed and pleaded, even considered asking one of the WordPress Gurus on their message board, but I’ve not had much luck getting responses there (questions were probably so esoteric that nobody cared but me ;-) ).

(more…)

Popularity: 4%

Mac OS X Snow Leopard – NotificationExec Pop Up Annoyance

Wednesday, September 2nd, 2009

snowleopardJust installed Mac OS X 10.6 on my home iMac. It was truly a perfectly painless experience…click about 4 buttons and type your password and walk away for 45 minutes.

(more…)

Popularity: 7%