Posts

Showing posts from August, 2023

Project Ideas

  1. Create a Tic-Tac-Toe Game I am going to use this project to learn about 3 new libraries (openGL, QT, and a networking library)  C reate a basic tic-tac-toe game using QT for the UI and use openGL to generate the graphics  Use DP to calculate the value of each move and display this value by changing the colour of each square on the board Find a library that could be used to create a network version of the game 2. 3D Tic-Tac-Toe Game    Build on project 1 to create a 3D version of tic-tac-toe 3. Create a LIDAR simulator Create simulator for different types of LIDAR sensors. There should be different LIDAR sensor models which inherit from a base sensor class. The sensor can then be placed in a word and move around or be stationary and have objects move around it. 

Copy Random Files

  You could use shuf : shuf -zn8 -e *.jpg | xargs -0 cp -vt target/ shuf shuffles the list of *.jpg files in the current directory. -z is to zero-terminate each line, so that files with special characters are treated correctly. -n8 exits shuf after 8 files. xargs -0 reads the input delimited by a null character (from shuf -z ) and runs cp . -v is to print every copy verbosely. -t is to specify the target directory.