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 horatio.cs.nyu.edu/ganglia From home, must login twice and its best to always run screen ssh lowrance@access.cims.nyu.edu ssh lowrance@SERVER.cs.nyu.edu 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://roy@metm.org/home/repp/repo.git 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