Thursday, February 23, 2012 4:38

‘Program Kung Fu’ News

Subscribe to RSS feed

Convert e.printStackTrace() to string

Tuesday, October 25, 2011 23:11

When catching Java exceptions, we usually want to print the stack trace.  Sometimes we also want the detailed message to be used in business related logic. e.g. sending the detailed exception message by email. So we need to convert the result of e.printStackTrace() to string: private static String getStackTrace(Exception e) { StringWriter stringWriter= ...

The Big Bang Theory Season 2 Episode 04 – The Griffin Equivalency

Friday, October 21, 2011 2:55

The transcript of The Big Bang Theory Season 2 Episode 04 – The Griffin Equivalency Scene: The apartment. Leonard is sorting out Chinese food. Leonard: Let’s see, Raj was the Kung Palo Chicken. Penny: I’m the dumplings. Howard: Yes, you are. Penny: Creepy, Howard. Howard: Creepy good or creepy bad? Leonard: Who was the Shrimp with Lobster ...

Tagged with:

Delete all hyperlinks on a sheet in Excel

Wednesday, April 20, 2011 2:13

Question:  I've had a hyperlink problem in my Excel files for ages: false hyperlinks had crept in (even in empty cells) and were multiplying regularly whenever I inserted new lines. How can I delete all hyperlinks in a sheet at once and not have to delete them ...

Tagged with:

Diaply file name extensions in windows 7

Tuesday, April 12, 2011 2:39

A file name extension is a set of characters added to the end of a file name that determine which program should open it. Follow these steps to choose whether Windows displays these file extensions. Open Folder Options by clicking the Start button ...

Tagged with:

Navigate Code and Text in Virtual Studio 2010

Tuesday, April 12, 2011 2:28

Original article: http://msdn.microsoft.com/en-us/library/9w13x3hh.aspx There are various ways to move through text or code in the Code Editor using the mouse and navigation keys: Use the arrow keys to move one character at a time, or the arrow keys in combination with the CTRL key to move one word at a ...

Tagged with: ,

Display Line Numbers in Virtual Studio 2010

Tuesday, April 12, 2011 2:26

ine numbers are not added to your code; they are for reference only. For line numbers to print, you must select Include line numbers in the Print dialog box. For more information, see How to: Print Code in the Editor. To display line numbers in code On the Tools menu, select ...

Tagged with: ,

Virtual Studio 2010 disable the automated TFS connection

Wednesday, March 23, 2011 0:29

Add a DWORD value called "AutoLoadServer" under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation. Zero means do not reconnect automatically.

Tagged with: ,

Outlook – Always check spelling before sending

Tuesday, March 15, 2011 2:11

You can make Outlook automatically spell check all outgoing e-mails before sending. The following option will force this to occur before you send out composed messages: Outlook 2003 1. Click Tools. 2. Select Options. 3. Select the Spelling tab. 4. Check Always check spelling before sending. 5. Click OK. Outlook 2010 1. Open Outlook. 2. Go to the top of ...

Tagged with:

Apartment Rental – Inspection Tips Prior to Moving In

Monday, December 27, 2010 3:04

Before you move into an apartment, make sure to inspect the apartment thoroughly in the presence of your landlord or property manager. After inspecting the apartment, make a list of any damage or problems you found. If possible, it may be a good idea to take photographs of damaged ...

What is a #10 envelope

Monday, December 27, 2010 2:55

A #10 envelope is 4-1/8" x 9-1/2". It is the most common business envelope size and is commonly used for standard 8-1/2" x 11" sheets of paper. Reference: http://www.paper-papers.com/envelope-size-chart.html