Writing a Log file in C/C++

The standard method of logging (in my experience) is to use either the stdout or stderr streams. In C++ to use these you would need to include iostream, and use as below: #include <iostream> int main(int argc, char* argv[]) { using std::cout; using std::cerr; using std::endl; cout << “Output message” << endl; cerr << “Error … Read more

Troubles uninstalling oh-my-zsh?

Have you tried just running the commands from uninstall script by hand? It’s really straight forward: https://github.com/robbyrussell/oh-my-zsh/blob/master/tools/uninstall.sh. For the most part it just removes OMZ and attempts to restore a back up file: rm -rf ~/.oh-my-zsh rm ~/.zshrc cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc source ~/.zshrc

Composer & Cygwin

Just tripped over the same problem and found a solution. Posting it here, just in case I’ll ever have to look it up again. Set up a bin directory right under /home/my-username: cd ~ mkdir bin Move the composer.phar (or any other of those nifty new PHP imps that are on the rise) into the … Read more