Geeks With Blogs

@bsherwin
News

Brian Sherwin's Blog Moving at the Speed of .Net June 2007 Entries
Office Registry Hack for Dialogs (Pt 2)
Earlier, I blogged about adding shortcuts to the Open and Save dialogs of Office. To hide one or more of these shortucts: Navigate to: HKEY_CURRENT_USER\Software\... Find\Places\StandardPlaces Where [version] corresponds to your Office version: 9.0 = Office 2000, 10.0 = Office XP, 11.0 = Office 2003, 12.0 = Office 2007 Select the sub-key of the Place you want to hide. Create a new DWORD value within the sub-key named "Show" Set the sub-key value to 0. Close the ......

Posted On Friday, June 29, 2007 10:08 AM

My Programmer Personality
A guy from Australia developed the Programmer Personality Test loosely based on the Myers Briggs Type Indicator test. Your programmer personality type is:DHTB You're a Doer.You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money.You like coding at a High level.The world is made up of objects and components, you should create your programs in the same way.You work best in a ......

Posted On Friday, June 29, 2007 10:07 AM

Using a Table Valued Function in a JOIN
During my presentation on "Avoiding Database Entropy" I did a demo of a function to parse a delimited string and return it as a table. This is extremely helpful when using multi-select controls in your applications. In the end we still call the stored procedure like this: GetUsersByID '1,2,7,9' Most people make their stored procedure like this: create proc GetUsersByID (@delimitedIDs varchar(200)) as declare @SQL varchar(2000) set @SQL = 'SELECT Employee.EmployeeID, Employee.FirstName, Employee.LastName, ......

Posted On Friday, June 29, 2007 9:33 AM

Merge PDFs using ITextSharp
In response to my post on Generating a PDF from Reporting Services, someone asked how I would join two PDFs. The problem is that I can't just take two PDF byte streams and run them together because there is PDF metadata that starts and ends each document. The way that I have gotten around this is use the ITextSharp library. Our PDFs were stored in the database, so we grabbed each PDF and appended it to the first PDF (I didn't put the code in for the data reader--an astute reader of this entry should ......

Posted On Friday, June 29, 2007 9:31 AM

Office Registry Hack for Save and Open Dialogs
Have you ever wanted to add a custom folder to the Places Bar when saving a document in Office. Office displays several shortcuts on the Places Bar in the Open and Save As dialog boxes. By default this is limited to My Recent Documents, Desktop, My Documents, My Computer and My Network Places. You can add additional shortcuts to this list by: Navigate to: HKEY_CURRENT_USER\Software\... Find\Places\UserDefinedPlaces Where [version] corresponds to your Office version: ......

Posted On Friday, June 29, 2007 9:30 AM

Upgrade from Notepad2
For the longest time, I have used Notepad2 as a replacement for the default windows Notepad editor. However, after re-reading "The Pragmatic Programmer" chapter on tools, I have decided for an upgrade. David Hunt, et. al. suggest that your editor be: Configurable, Programmable and Extensible OK, so I wanted to create some custom highlighting schemes for some files that I was working with. After looking into Notepad2's source code, I realized I was going to have to recompile every time I wanted to ......

Posted On Friday, June 29, 2007 9:29 AM

Flurry of Blog posts

I've been incredibly busy this month with Baseball, Summer Camp and visiting family.  I have been slacking off on some posts I promised at the various speaking engagements that I have done over the last month.  So here they come.

Posted On Friday, June 29, 2007 9:19 AM

Copyright © Brian Sherwin | Powered by: GeeksWithBlogs.net | Join free