Search
Thursday, March 11, 2010 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  
Author: Peter Henry Created: Wednesday, August 06, 2008 11:25 PM
Providing technical information from a slight slanted standpoint.

By Peter Henry on Wednesday, November 25, 2009 10:55 PM

Expression Blend 3 has code editing built in!  VERY COOL!  You don't always have to go out to Visual Studio to add some code, but you'd never know it by the default options.  Read on for how to change it!

Read More »

By Peter Henry on Wednesday, November 25, 2009 9:10 PM

Did you read the latest news?  Expression Blend is source control friendly, just not to SVN, read on for more details.

Read More »

By Peter Henry on Monday, November 23, 2009 10:48 PM

So you've created a custom class for special information, fantastic!  But now, how to you get your users to input data?  Ya, sure you could create a new data entry form, but is there an easier way?  Read on for a cool tool Visual Studio has in it's toolbox for you!

Read More »

By Peter Henry on Sunday, November 22, 2009 2:04 PM

hhhhmmmm you've just spent four months slaving over Expression Blend and Visual Studio, suffering through XAML, layout managers, routed events, data binding, EF, POCOs, etc, and the first thing people at your sprint demo say is....."eeeeehhhhhhh" that's ugly!  Read on for a 15m quick fix to help make a great first impression!

Read More »

By Peter Henry on Thursday, November 19, 2009 9:16 PM

Do you want to see those cool Images/Bitmaps when you're debugging your code?  Read on to help fill the one gapping hole in Visual Studio's debugger.

Read More »

By Peter Henry on Wednesday, November 18, 2009 8:35 PM

Do you use SQL Server Management Studio to right mouse click on a table and just hate it when you're told how many rows you can SELECT or EDIT?  Read on for a quick'n'easy fix!

Read More »

By Peter Henry on Saturday, November 14, 2009 1:29 PM

Do you use Properties?  COOL!  Then you might want to check out Automatic Properties to help save a bit of typing.

Read More »

By Peter Henry on Tuesday, November 10, 2009 9:14 PM

This morning a friend of mine (NK) emailed me saying he heard my Dad being talked about on TV last night.  This isn't the first time this has happened, but what was different was the setting.  Read on for an interesting story.

Read More »

By Peter Henry on Monday, November 09, 2009 9:02 PM

So!  You think you know your scoping rules for C# eh?  Check out this funky little nuance/difference between the CLR and C#!  This surprised me, and it might surprise you too!

Read More »

By Peter Henry on Sunday, November 08, 2009 2:10 PM

Progress update as promised (late, but still as promised).

Read More »

By Peter Henry on Thursday, November 05, 2009 4:30 PM

Do you want to get the most out of your Visual Studio experience?  Read on for over 135 Tips'n'Tricks to become more proficient with the tool you live'n'breath with everyday!

Read More »

By Peter Henry on Tuesday, November 03, 2009 10:05 PM

I know learning something new always has it's hiccups, but this is crazy.  Try this on for size, try creating a WPF form and making your already created icon the WPF forms icon.  Try it, I dare you.  Frustrated yet?  Read on for the answer.

Read More »

By Peter Henry on Monday, November 02, 2009 8:51 PM

Are you getting a cryptic ORA-12154 error saying something like "TNS:could not resolve the connect identifier specified?"  If you are, I potentially have a solution for you, read on.

Read More »

By Peter Henry on Sunday, November 01, 2009 1:39 PM

When you create a new project, do you commonly change the Assembly Information?  If you do, you ever get tired of changing the "Microsoft" in the Company and Copyright?  If you are, then please read on for the quick fix.

Read More »

By Peter Henry on Saturday, October 31, 2009 2:27 PM

Since you were little, you probably knew what the difference between a pen and pencil was right?  But on the computer, what's the diff?  Different tools have different impressions, so what's the diff with Expression Blend?

Read More »

By Peter Henry on Friday, October 30, 2009 1:36 PM

Secrets in C#?  Ya!  Right, there aren't too many of those!  So how DO you keep strings from being publically exposed to anyone watching?  Read on to find out!

Read More »

By Peter Henry on Sunday, October 25, 2009 10:25 PM

Yesterday, a colleague and I went to Montreal to participate in the Samedi.NET (a Saturday of nothing but Silverlight).  Read on for my review.  Updated: 10-26-2009 14:52

Read More »

By Peter Henry on Sunday, October 25, 2009 8:37 PM

Bold title eh?  Ya, I thought so too but it's true!  If you haven't tried Visual Studio's Debugger Visualizers, you're missing out!  Read on for a gripping intro!

Read More »

By Peter Henry on Wednesday, October 21, 2009 8:02 PM

Do you know that F6 is the C# keybinding for building your solution?  What about CTRL+. for SmartTags or that F7 views code from the Designer?  If you don't, then read on for a quick cheat sheet!  If you do, continue as well cause you could find some new key bindings to use!

Read More »

By Peter Henry on Monday, October 19, 2009 7:12 PM

In your shop, what criteria do you use to decide if you're code's done?  What does "done" actually mean to you?  To QA?  To management?  Read on for just one devs version.

Read More »

By Peter Henry on Thursday, October 15, 2009 11:30 PM

SHA1, SHA256, SHA384, SHA512......four to choose from and then there are four sub-algorithms underneath, OH MY!  Read on for runtime performance analysis (also show MD5 and Rijndael).

Read More »

By Peter Henry on Saturday, October 10, 2009 9:26 PM

What kind of manager are you?  Do you micro-manage ala Steve Jobs or are you a bit more trusting with your people?  Read on for a confession.

Read More »

By Peter Henry on Saturday, October 10, 2009 8:48 PM

I want to humbly thank the ODNC for receiving two awards for last year, please read on for more information.

Read More »

By Peter Henry on Friday, October 09, 2009 10:55 PM

Ever have a job you hated?  Or maybe you just toiled away at your desk for years out of habit but without a clue as to why?  Read on for some (potential insite).

Read More »

By Peter Henry on Friday, October 09, 2009 10:23 PM

Today SB and I were talking about how we used to do "Coding Challenges" at work with SG and how we missed them.  They were just quick little code questions to each other to try to stump the other, but nothing wickedly complicated or too long to diagnose.  In that tradition, I submit a doozie for your contemplation.  In other words........ H E L P !!!!!!!!! :> LOL

Read More »

By Peter Henry on Friday, September 11, 2009 12:29 PM

Today marks an anniversary.  This is the first time I've EVER seen something where the words are more powerful than the pictures.

Read More »

By Peter Henry on Wednesday, August 05, 2009 10:03 PM

Windows Numb3rs Screen Saver

Finally a true to goodness Windows screen saver (SCR) for the hit TV show Numb3rs from CBS!  Please read for more details.

Read More »

By Peter Henry on Friday, July 24, 2009 7:30 PM

Today I wanted to do something with a URL but neither Uri nor UriBuilder were able to help me out.  Read on for more details.  If you're doing web dev, you might have run into these very same issues.

Read More »

By Peter Henry on Wednesday, July 22, 2009 9:18 PM

Tonight I moved all my source code over to CodePlex.  Read on for details (if you care or if you want to change your source control URL).

Read More »

By Peter Henry on Wednesday, July 22, 2009 8:26 PM

Microsoft released details about their lastest Windows 7 release.  Read on for links (and some high level details).

Read More »

By Peter Henry on Friday, July 10, 2009 7:34 PM

Heard of Windows Presentation Foundation (WPF) but only know enough to fill a thimble?  Read on for a spoon fed article to give you a leg up!

Read More »

By Peter Henry on Tuesday, June 30, 2009 8:59 PM

Tonight I wanted to hit two birds with one stone!  Read on for more details!

Read More »

By Peter Henry on Sunday, June 21, 2009 8:37 PM

Have you ever wanted to use a Dictionary of Dictionaries?  What the heck are you doing with that you might ask?  Read on please! :>

Read More »

By Peter Henry on Tuesday, June 16, 2009 10:21 PM

I'm working on a Montreal Canadiens screen saver and thought grabbing a copy of the current web page would be cool, but how to do it and also how can you add "stuff" to it?  Read on for some cool graphic details (haha).

Read More »

By Peter Henry on Monday, June 15, 2009 9:20 PM

Last week I need to order a list of files and directories.  My problem was I was adding multiple files implementing the IComparer interface.  That's good'n'all, but there had to be a better way than one more file for one more sort order?  But how?!  SG to the rescue!

Read More »

By Peter Henry on Friday, June 05, 2009 9:35 PM

How do you effectively disable the windows control box close button?  You know, the bit "X" on the top right hand side of every WinForm, how do you get rid of it/disable it?

Read More »

By Peter Henry on Wednesday, June 03, 2009 10:40 PM

Progress update as promised (late, but still as promised).

Read More »

By Peter Henry on Wednesday, June 03, 2009 9:38 PM

Do you have your own server?  Are you running IIS and have one ASP or ASP.NET application?  Want to run more but can't seem to figure it out?  Read on for some help!

You could be running Apache/Tomcat/WebLogic or other J2EE servers and you might learn a bit, but it's up to you to make the leaps of logical faith to make it run (the theory is tranlatable if not the screen shots and dialogs).  Here's how you do it!

Read More »

By Peter Henry on Wednesday, June 03, 2009 8:35 PM

Do you use the DISTINCT clause in your SQL queries a lot?  If you do, can I have a word with you please?  If you don't, maybe check this out for a "feel good" kind of moment. HAHA!

Read More »

By Peter Henry on Wednesday, June 03, 2009 8:22 PM

Running short on HD space?  Or maybe you're just poking around Windows and found a Prefetch directory.  What's that all about?  Can you delete it's contents?  Only if you want to slow things down you can!  DOH!  Read on.

Read More »

By Peter Henry on Tuesday, June 02, 2009 8:39 PM

Do you have a process you KNOW SHOULD be in a Windows Service but think they're just too complicated?  You think they're for Windows Servers only or you've had/heard of administrative problems in the past?  Well, read on for a detailed set of directions to take you from where you are now to a completed and working Windows Service!

Read More »

By Peter Henry on Monday, June 01, 2009 9:12 PM

Believe it or not (cause I can't!) I have a project at work where I can some how get VS08 to show a private constructor via code intellisense.  Don't believe me, check it out!

Read More »

By Peter Henry on Thursday, May 14, 2009 10:14 PM

This week at our study group we had a discussion about passing values around by val and by ref.  How so?  Please read on for further details.

Read More »

By Peter Henry on Thursday, May 14, 2009 8:57 PM

Today I realized the current way I was using Log4net was, well....suboptimal.  Read on for what the problem was and how I fixed it!

Read More »

By Peter Henry on Wednesday, May 13, 2009 9:21 PM

Have you ever noticed QuickWatch is dumb?  Please read on for my rant on why QuickWatch needs just one little, itty, bitty tweak to make PERFECT!

Read More »

By Peter Henry on Wednesday, May 13, 2009 8:15 PM

Are you a recently laid off hi-tech programmer/IT worker in the Ottawa, ON area?  If yes, please read on for a FANTASTIC free training opportunity with CTE Solutions!

Read More »

By Peter Henry on Tuesday, May 12, 2009 10:11 PM

Are you still doing your logging using Windows Event Viewer?  How 2000-ish!  What are you doing?  Get into the next decade and start using Log4net!

Read More »

By Peter Henry on Tuesday, May 12, 2009 9:42 PM

Have you tried out Windows 7 and love it except for that darn bird on the Logon background screen?  Read on for how to change it, it's not that hard!

Read More »

By Peter Henry on Tuesday, May 12, 2009 7:46 PM

If you're new to source control, you might find the concept of "ignoring certain files" a bit disconcerting, but that's ok.  It's one of many source control's "best practises."  The only "trick" is picking which files to ignore.  Read on for some insight's on picking some and a sample SVN ignore list.

Read More »

By Peter Henry on Monday, May 11, 2009 10:29 PM

Last weekend I bit the bullet and installed Windows 7 on two, yup, you read that right, TWO computers!  Read on for my experiences.

Read More »

By Peter Henry on Monday, May 11, 2009 8:19 PM

No, I don't mean to gloat, quite the opposite, I actually helped CodePlex become juuuuuuuust a little bit better today!

Read More »

By Peter Henry on Thursday, May 07, 2009 7:53 PM

When you try to rename a directory or do an F5/refresh and find your Windows Explorer goes off on a ride for ten minutes unexplicably?  Are you using SVN/TortoiseSVN?  If you said yes to both, I have a solution, please read on!

Read More »

By Peter Henry on Wednesday, May 06, 2009 9:02 PM

IMHO the OCC 2009 event was a great success for the Microsoft tech heads in the Ottawa/Gatineau area!  Read on for some highlights!

Read More »

By Peter Henry on Friday, May 01, 2009 11:45 AM

Have you ever emailed/phoned a software manufacturer?  How long did it take?  Read on for a very cool story about CodePlex!  Find out why I'm pleasantly suprised!

Read More »

By Peter Henry on Thursday, April 30, 2009 9:14 PM

If you are a .NET/C#/VB.NET code head living in the Ottawa, ON area, then you might be interested in the Ottawa Code Camp going on this weekend!  Read on for further details!

Read More »

By Peter Henry on Thursday, April 30, 2009 7:45 PM

Have you ever wanted to write a piece of code JUUUUUUUST for debugging purposes?  Ever been burnt with leaving it in for a Release build?  Read on for a really quick'n' easy way to avoid this in the future!

Read More »

By Peter Henry on Thursday, April 23, 2009 10:22 PM

Have you ever been given a document or asked to do something for which you do not have access to the right tool?  If that's happened to you before, read on for a possible solution.

Read More »

By Peter Henry on Thursday, April 23, 2009 9:16 PM

Ever try to use the RegEx option in Visual Studio's Search and Replace dialog box?  RegEx is hard enough as it is without having to throw in Visual Studio's own little nuances, well read on for a bit of help.

Read More »

By Peter Henry on Wednesday, April 22, 2009 10:08 PM

As you're developing code/sql, do you tend to "fart around" with your t-sql in Managment Studio?  If you do, I'm sure you've ruined some classic/prestine data, right?  Read on for a quick trick to stop that from happening again!

Read More »

By Peter Henry on Wednesday, April 22, 2009 9:05 PM

Do you create multi-lingual applications?  Here's a blog from MS which could help make your translation juuuuust a bit cheaper AND give you a leg up on the actual translations themselves!

Read More »

By Peter Henry on Wednesday, April 22, 2009 8:55 PM

Ever heard the term SWAG or Chachkas before but never knew what they meant?  Read on to find out!

Read More »

By Peter Henry on Wednesday, April 22, 2009 12:49 PM

Are you part of the ODNC?  Are you interested in the first step to getting a .NET certification?  Read on for a great study group given by the ODNC!

Read More »

By Peter Henry on Monday, April 20, 2009 10:38 PM

Are you planning on going to a technical conference this year?  Chances are your company's on a tight budget, so how are you going to decide on what's the "right' conference for you?  Read on for some of my thoughts!

Read More »

By Peter Henry on Monday, April 20, 2009 9:14 PM

Last Friday I got a new tool and so far I'm loving it!  Read on for further details!

Read More »

By Peter Henry on Monday, April 20, 2009 8:30 PM

Need a quick'n'dirty way to do something to ALL the tables in your db?  Read on for a SQL Server undocumented proc you might be able to use.

Read More »

By Peter Henry on Saturday, April 18, 2009 1:16 PM

Last week I was invited to presentation on how to give a good technical presentation.  Read on for some cool'n'useful tidbits!

Read More »

By Peter Henry on Tuesday, April 14, 2009 9:16 PM

Microsoft Certification is rumoured to be removing the Framework exam (MCTS 70-536) from the exam stack.  WTF?  Read on why I'm cheesed off at this announement.

Read More »

By Peter Henry on Sunday, April 12, 2009 12:59 PM

Want to make your WinForms application look just a bit more professional?  Read on for one quick'n'easy thing you can do to bran your newly created (or in maintenance) WinForm with your company logo!

Read More »

By Peter Henry on Friday, April 10, 2009 1:07 PM

When you give presentations, do you sometimes lose track of time?  Do you sometimes get caught up on a question that takes you away from your well practised presentation?  Do you sometimes lose track of time (and repeat yourself cause you're not aware of your own presentation? DOH!)?  Read on for a GREAT feature in Microsoft PowerPoint to help you give keep track of your presentations.

Read More »

By Peter Henry on Friday, April 10, 2009 12:49 PM

How do you record your meetings?  Do you use Microsoft Office Live Meeting?  If you do, how do you share your meetings with others?  Read on for a great tool to help you out!

Read More »

By Peter Henry on Thursday, April 09, 2009 9:52 PM

Microsoft TechDays have been finalized for 2009.  Read on for more details.

Read More »

By Peter Henry on Wednesday, April 08, 2009 10:23 PM

AAAAHHHH Beating a config file into submission!  There's a few things in life more pleasureful, but not many!  If you're using DNN + SyntaxHighlighter2 + code highlighting plugin for FCKEditor, you'll want to read on for vital configuration information/gotchas/fixes.

Read More »

By Peter Henry on Tuesday, April 07, 2009 10:34 PM

Have you ever wanted to take down your website quickly but weren't quite sure how?  Ever been hit with a bad virus/hacker and want to immediately shut things down?  Have you ever wanted to do an upgrade to your website but would like to spare your users bad error messages or confusing them by seeing wonky screens of half upgrades pages?  Read on about a cool file IIS uses if it's present to take a site offline.

Read More »

By Peter Henry on Tuesday, April 07, 2009 9:37 PM

Have you ever wanted to use t-sql to find out the specific version of SQL Server you were running on?  If you're writing version specific t-sql, this information will be invaluable, continue reading for a quick way to figure it out.

Read More »

By Peter Henry on Tuesday, April 07, 2009 8:58 PM

Stored procs are great, especially the ones from SQL Server, but the problem is using them in another query.  How do you do it?  Continue reading for insight! :>

Read More »

By Peter Henry on Tuesday, April 07, 2009 7:45 PM

I can never remember the t-sql syntax for cursors, so here's my blog to help remind me (and hopefully serve as  future reference for you too! :>).

Read More »

By Peter Henry on Monday, April 06, 2009 9:06 PM

In writing up another blog about Exception handling I was getting some VERY strange results from a path throuhg my code which should be well behaved.  Turns out I was getting IOExcpetions where I wasn't expecting them!  And why was Path.GetTempFileName() returning an empty string for a temp filename?  Read on for a very freaky reason why!

Read More »

By Peter Henry on Sunday, April 05, 2009 12:50 PM

Exceptions are by their very nature, very exceptional (haha pun intentional)! :>  There are quite a few different ways of throwing and catching them.  I hope you enjoy this short series on exception handling (this is part 3 of 3).

Read More »

By Peter Henry on Saturday, April 04, 2009 12:52 PM

Exceptions are by their very nature, very exceptional (haha pun intentional)! :>  There are quite a few different ways of throwing and catching them.  I hope you enjoy this short series on exception handling (this is part 2 of 3).

Read More »

By Peter Henry on Friday, April 03, 2009 12:32 PM

Exceptions are by their very nature, very exceptional (haha pun intentional)! :>  There are quite a few different ways of throwing and catching them.  I hope you enjoy this short series on exception handling (this is part 1 of 3).

Read More »

By Peter Henry on Friday, April 03, 2009 12:09 PM

20 years ago, it was common to have a DOS vs OS/2 debate over beers'n'wings!  Today it's pretty much a forgone conclusion who the winner is.  For the past 10 or so years, IBM and Microsoft have been relatively quiet on the war front.  That could change soon.  Please read for a brief look back at past "debates."

Updated 2009-04-06

Read More »

By Peter Henry on Wednesday, April 01, 2009 8:46 PM

You've all heard you can embed a browser into your application, but have you tried it out?  Have you seen it in action?  Have you whipped up some code to try it out?  Well now's your chance, continue reading to see this awesome control in action!

Read More »

By Peter Henry on Wednesday, April 01, 2009 8:45 AM

Late breaking news, Microsoft buys Sun Microsystems!  Continue reading for more exciting news about this earth shattering event!

Read More »

By Peter Henry on Tuesday, March 31, 2009 10:34 PM

Have you ever wanted to pull off the ultimate April Fool’s Geek prank? Well, when you come up with a GREAT one, please let me know! Until then, I have something to tide you over, changing the LCD display on your office/department’s HP LaserJet Printer! Read on for more details!
  
Read More »

By Peter Henry on Sunday, March 29, 2009 2:21 PM

In August I wrote a blog about MS Word shortcuts.  Turns out there are a few other one's I've been using quite a bit.  Read on for a table you can print out and tape beside your monitor to help you out.

Read More »

By Peter Henry on Sunday, March 29, 2009 1:55 PM

I've recently written one of the MCTS exam, please read for a small suggestion that might help you write your next certification exam.

Read More »

By Peter Henry on Saturday, March 28, 2009 1:27 PM

If you are creating a project on CodePlex, good for you!  But make sure you get the URL right the first time cause you get ONE shot to set it up!  Read on for more information.

Read More »

By Peter Henry on Wednesday, March 25, 2009 11:17 PM

I bit the bullet today and installed MS SQL Server 2008 today, read on for some interesting things I found out.

Read More »

By Peter Henry on Tuesday, March 24, 2009 11:28 PM

We all know “magic numbers” are bad in our code. Back in the good’ol days of VB you had constants. In Java you had final variables that were part constant and part read only. Now in C# we have both constants and read only fields. Hhhhmmmm that begs the questions what’s the diff between them then? Read on for more information and code.
Read More »

By Peter Henry on Tuesday, March 24, 2009 9:43 PM

What would happen to your sanity if you lost, yes I said LOST your digital photo album tomorrow?  Read on for some archival strategies to keep your precious memories your's forever.

Read More »

By Peter Henry on Tuesday, March 24, 2009 8:14 PM

Confused by the title?  Read on about a commercial I saw tonight from Swiffer.

Read More »

By Peter Henry on Monday, March 23, 2009 8:46 PM

Have you ever wanted to extract a path or directory name from a field in SQL Server?  I found myself looking at that today and I found a cool and nifty trick.  Read on for more information.

Read More »

By Peter Henry on Monday, March 23, 2009 8:04 PM

The preliminary agenda for Ottawa Code Camp 2009 has been posted!  Read further for more information.

Read More »

By Peter Henry on Thursday, March 19, 2009 11:39 PM

This week at work, I noticed a piece of code setting the Thread.CurrentThread.CurrentCulture to a specific culture.  No big deal right?  Except shouldn't that be CurrentUICulture?  hhhhhmmmm  Good question!  What's the difference between them?  Please read on for a bit of a descriptive and some code.

Read More »

By Peter Henry on Wednesday, March 18, 2009 9:55 PM

Progress update as promised (late, but still as promised).

Read More »

By Peter Henry on Tuesday, March 17, 2009 9:19 PM

Do you code to the "lowest common denominator" on your team or do you code to another standard?  Read on for something to make you go hhhhmmmmm....

Read More »

By Peter Henry on Wednesday, March 04, 2009 9:15 PM

Interfaces are like vegetables, you know you're supposed to eat/use them more, but yaaaaaaaaaa know, life just gets in the way sometimes right?  Read on for a cool idea to help your consumers use your interfaces better.

Read More »

By Peter Henry on Monday, March 02, 2009 10:11 PM

Are you using proper CSS in your web pages?  If you are, good for you!  If not, then here's a couple invaluable links, please read on.

Read More »

By Peter Henry on Monday, March 02, 2009 10:01 PM

This is a VERY cool read about the different types of cables out there.  Read on!

Read More »

By Peter Henry on Monday, March 02, 2009 9:32 PM

Of course YOU'VE never done this before, where you write two constructors, but instead of having one calling the other, it calls itself.......hhhhmm what would happen?  Read on for more details.

Read More »

     
  
Copyright 1999-2008 by PCHenry.com   Terms Of Use  Privacy Statement