Displaying posts filed under

Programming

Programming Tips, Tricks and Job Search

Apr
19
2008

How Much Money Shall John Invest?

– Sponsored Links —

Many first time investors think that they should invest all of their savings. This isn’t necessarily true. To determine how much money you should invest, you must first determine how much you actually can afford to invest, and what your financial goals are.
First, let’s take a look at [...]

Mar
29
2008

Compiler Design Books

Modern Compiler Design
by Dick Grune – Technology & Engineering – 2000 . While focusing on the essential techniques common to all language paradigms, this book provides readers with the skills required for modern compiler .
Advanced Compiler Design and Implementation
– Sponsored Links —

by Steven S. Muchnick – Computers – [...]

Mar
24
2008

Memory Leaks Detection in Programming

Books on Memory Leaks in Programming

Navigating C++ and Object-oriented Design – Page 381
by Paul Anderson, Gail Anderson – Computers – 1998 – 800 pages
To make the memory leak detector track calls properly, your system should … Here’s how to compile this program and link it with the memory leak detector. …

Expert C Programming – Page [...]

Mar
23
2008

What is wstring – Discussion on wstring

What is wstring – Discussion on wstring

Can somebody tell how much std::wstring is supported across different compilers on different platforms? AFAIK std::string is supported by almost all C++ compilers and almost all platforms, is that also the case with wstring?
Another related question that I have is, is it advisable to use wstring [...]

Mar
15
2008

Unix Debugger GDB Tips Shortcuts

GDB – important commands (most can be abbreviated to starting letter)

o r = run the program (can give arguments, e.g., r -f foo.txt or r < test.script)
o file filename = load in the executable filename
o s = step through code (enters function being called)
o n = next line (treats function being called as [...]

Mar
15
2008

Unix System debugging Tips

** strace
See systemcalls:

strace <cmd>

** lsof
List open files and network connections of local process:
lsof -p <pid>
When no option is given, lsof prints open files for all processes for which this information is available. Generally, lsof needs to be run as root.
** strings
See ascii data in binary file (e.g. version number or name of [...]