Monthly Archives: November 2010

Simple unit testing in C++

There are many complex frameworks available, include cxxtest and the Boost test frameworks. However, a simple approach can also be effective. In our simple approach, we define a static public method for each class: static void unit_test(). This method runs … Continue reading

Posted in C++ | Leave a comment

gnu screen how to’s

The GNU screen manual Setup the ~/.screenrc file such that many lines of stdout are saved, because by default, screen throws away the output. Put these lines in .screenrc defscrollback 10000 ssh to remote system Either start a new screen … Continue reading

Posted in linux/unix | Leave a comment

Using the servers

Server names (partial list): juno, monk To see load on servers, while on campusĀ  browse to From home, must login twice and its best to always run screen ssh ssh screen [-r] My ubunutu vm (or the … Continue reading

Posted in linux/unix | Leave a comment

Git remote repositories

To clone a remote repository git clone ssh:// repo.git To retrieve changes from the remote and merge into a local branch git pull REMOTEĀ  LOCAL_BRANCH To send changes in current branch to the remove git push

Posted in git | Leave a comment