Tuesday, August 23, 2016

Google - Convert Google Maps starred places into a My Map

Found this on Google Maps forum:

Sublime Text - Soda Theme


Tuesday, March 27, 2012

Cygwin - Fix slow startup

$ mv /etc/profile.d/bash_completion.sh{,.disabled}


Tuesday, December 13, 2011

Windows 7 Sharing

Add Authenticated Users to have full control

Monday, June 22, 2009

Cygwin - Forward- and backword-word in rxvt

Add this to your ~/.inputrc:

# Control+right
"\eOc": forward-word
# Control+left
"\eOd": backward-word

Notice those are O's (the letter) not 0's (zeroes).

You may need to have this in your .bashrc
export INPUTRC=$HOME/.inputrc

Thursday, October 9, 2008

Java Swing - Set default window close operation


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

Wednesday, July 16, 2008

C++ - Show virtual table

g++ -fdump-class-hierarchy main.cpp

Sunday, May 18, 2008


This plugin lets you switch between source file and header file by typing

Script link: a.vim

Saturday, April 12, 2008

Install developer tools in Fedora Core 8

sudo yum groupinstall "Development Tools"

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

Get CPU info in Linux

cat /proc/cpuinfo
CPU's with multiple cores show "cpu count : 2"

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

Sunday, January 13, 2008

High resolution ("real-time") timers

To compile: gcc -lrt time.c
More info: link

Wednesday, October 31, 2007

C/C++ Show macros

In gcc or g++, to show all of the macros that are defined for a given platform:
gcc -dM -E test.c
g++ -dM -E test.cpp

Sunday, October 28, 2007

Ubuntu - core dump

From https://answers.launchpad.net/ubuntu/+question/10616
It appears that resource limits (which include the maximum size of a core dump file) are set by PAM on login. The settings for these limits are in /etc/security/limits.conf, which on my system (which is unmodified) is comments only. A quick look at the source code suggests that the default core dump limit is 0 (zero), which means no dump at all is created (even though the message suggests otherwise).

In summary: edit /etc/security/limits.conf, set the core limit to be non-zero (measured in kilobytes), and log in again.

I hope that works!

Thursday, October 11, 2007

VIM - omnicppcomplete

I had to put these in my ~/.vimrc to get omnicppcomplete to work
autocmd BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main

map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>

imap <C-Space> <C-x><C-o>
let OmniCpp_MayCompleteDot = 0
let OmniCpp_MayCompleteArrow = 0

VIM - NERDTree plugin

Good file explorer.

plugin: link

Add this to ~/.vimrc
"NERDTree Toggle
noremap <Leader>][ :NERDTreeToggle

Tuesday, October 9, 2007

Ubuntu - Install dev man pages

sudo apt-get install manpages-dev manpages-posix-dev