netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)"
Tip: switch from GDB TUI and plain mode
Try the Ctrl-X A shortcut in GDB.
GCC-4.5.0 users, upgrade to 4.5.2 or newer
I'm debugging a complicated C++ program this week. It used a lot of STL containers, such as stl::map. To print the content of stl::map in GDB-7.x with Python pretty-printing enabled. I got error message like this. My original thought was it might be a bug in ...
Octave: save a figure to a file
I'm playing around Octave recently. As many other open-source projects, the documentation is not complete, or more precisely speaking, not friendly to new user. When I want to save a picture to the disk, the documentation tells me to use print(), but I still need to try several times ...
XPM and deprecated conversion error
How to get rid of this warning: deprecated conversion from string constant to `char*'
Change "char" to "const char" in the XPM file.