setDefaultCloseOperation(EXIT_ON_CLOSE)
Software, web, and programming tips: C++, Java, C, Linux, Windows, Cygwin, Firefox, Vim, WWW, RSS
Thursday, October 9, 2008
Wednesday, October 8, 2008
Eclipse - Tabs to Spaces only
- Window menu → Preferences...
- Java → Code Style → Formatter → New... button
- Enter any name → OK
- Indentation tab → Under General settings, set Tab policy to Spaces only
Monday, August 18, 2008
Wednesday, July 16, 2008
Sunday, May 18, 2008
Saturday, April 12, 2008
Friday, April 4, 2008
Virtual functions performance cost
From Efficient C++ Performance Programming Techniques:
Virtual functions seem to inflict a performance cost in several ways:
- The vptr must be initialized in the constructor.
- A virtual function is invoked via pointer indirection. We must fetch the pointer to the function table and then access the correct function offset.
- Inlining is a compile-time decision. The compiler cannot inline virtual functions whose resolution takes place at run-time.
Thursday, March 13, 2008
Sunday, January 20, 2008
Use FireFox as the default browser to open links in Outlook
1. Open Explorer
2. Select Tools and then Folder Options
3. Select the File Types tab
4. Select Extension: (NONE), File Type: URL:HyperText Transfer Protocol
5. Click Advanced toward the bottom of the window
6. In the Edit File Type window, select open and click Edit
7. Clear the check for DDE above the DDE message box (which should contain "%1" or similar)
8. Click OK, Click OK
9. Repeat for File Type: HyperText Transfer Protocol with Privacy and FTP
2. Select Tools and then Folder Options
3. Select the File Types tab
4. Select Extension: (NONE), File Type: URL:HyperText Transfer Protocol
5. Click Advanced toward the bottom of the window
6. In the Edit File Type window, select open and click Edit
7. Clear the check for DDE above the DDE message box (which should contain "%1" or similar)
8. Click OK, Click OK
9. Repeat for File Type: HyperText Transfer Protocol with Privacy and FTP
Sunday, January 13, 2008
Subscribe to:
Posts (Atom)