How-To… How to count lines of source code 13 Jul 2020 Install cloc: sudo apt install cloc And then run the command: cloc .
How-To… Use valgrind to debug C/C++ applications 14 Mar 201926 Jun 2020 To compile the program use the following flags: -g3-O0 (optional) To execute the program once you have compiled it: ./valgrind program For extensive testing you could also use the following…
How-To… Hints for debugging simple TCP applications 29 May 20182 Oct 2019 Summary of what you are going to install: ncatcurl Summary of the commands: sudo apt install ncat sudo apt install curl echo "hello world" > /dev/tcp/localhost/11111 echo "hello world" |…
How-To… Use IPCS to debug IPC facilities 9 Nov 20172 Oct 2019 Prerequisites: ipcs View all memory segments and semaphore arrays: $ ipcs -s -m View details of a memory segment: $ ipcs -m -i <id> View details of a semaphore array:…
How-To… Upload files with SCP 5 Nov 201725 Mar 2020 Prerequisites: scp (pre-installed on most Linux distributions) Let's say your student ID is sdiABCDEFG and lets say you have to upload your assignment to the following address: /home/users/kXX/projectN/sdiABCDEFG/ Here are…
How-To Computer maintenance and stability 4 Sep 20172 Oct 2019 Do not install software that advertises that it will make your computer run faster or that it will magically repair and clean up your hard drive. Most of those programs…