Floating Point Exception C++ Why and what is it?

A “floating point number” is how computers usually represent numbers that are not integers — basically, a number with a decimal point. In C++ you declare them with float instead of int. A floating point exception is an error that occurs when you try to do something impossible with a floating point number, such as divide by zero.

applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10?

For the “big” IIS versions since IIS 7, the location is always the same: For IIS Express there is one per user, the default location is: again it’s the same for all versions. You can run multiple instances of IIS Express per user, you would need to specify the location of the applicationhost.config as the command line … Read more

how to define -std=c++11 as default in g++

Yes, you typically set this in a Makefile: One layer above you can also detect a suitable compiler via autoconf, cmake or whichever other meta-buildtool you might deploy. You of course play games as define g++11 as g++ -std=c++11 but such set-ups are not portable. g++-6.* will default to c++14 so at some this switch will be implicit. But it might take … Read more

Proper shebang for Python script

is more portable because in general the program /usr/bin/env can be used to “activate” the desired command without full path. Otherwise, you would have to specify the full path of the Python interpreter, which can vary. So no matter if the Python interpreter was in /usr/bin/python or in /usr/local/bin/python or in your home directory, using #!/usr/bin/env python will work.

What is the meaning of 2 in 2> /dev/null

The N> syntax in Bash means to redirect a file descriptor to somewhere else. 2 is the file descriptor of stderr, and this example redirects it to /dev/null. What this means in simple terms: ignore error output from the command. For example, if kill cannot stop a process because it doesn’t exist, or because the current user doesn’t have the permission to do … Read more