This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:fall2024:projects:abc0 [2024/08/14 20:37] – [Get on discord and into class channels] gsalce | notes:fall2024:projects:abc0 [2024/08/29 15:47] (current) – [Submit project files on lab46] amelvil2 | ||
---|---|---|---|
Line 17: | Line 17: | ||
If for somehow you made it this far into the CS program yet are not in the lab46 discord, there is a link on the respective class syllabus. Click the link, and you will be transported to the channel. Also, you may have to identify yourself to the admin / class. | If for somehow you made it this far into the CS program yet are not in the lab46 discord, there is a link on the respective class syllabus. Click the link, and you will be transported to the channel. Also, you may have to identify yourself to the admin / class. | ||
+ | |||
+ | =====Getting an editor===== | ||
+ | You will need a text editor for class, vim is recommended | ||
+ | |||
+ | On WSL you can install it with: | ||
+ | < | ||
+ | sudo apt-get update | ||
+ | sudo apt-get upgrade | ||
+ | sudo apt-get install vim | ||
+ | </ | ||
+ | On Arch you can install it with: | ||
+ | < | ||
+ | sudo pacman -Syu | ||
+ | sudo pacman -S vim | ||
+ | </ | ||
=====Log into Lab46 (shell)===== | =====Log into Lab46 (shell)===== | ||
====Change lab46 password==== | ====Change lab46 password==== | ||
====Clone lab46 semester repo on lab46 (fixrepo)==== | ====Clone lab46 semester repo on lab46 (fixrepo)==== | ||
=====Log into Lab46 wiki===== | =====Log into Lab46 wiki===== | ||
+ | * If you are reading this, YOU FOUND THE LAB46 WIKI! | ||
+ | * Click login in the upper right and enter your user name and password | ||
+ | * Your username is the beginning of your CCC email (i.e jsmith@corning-cc.edu user = jsmith) | ||
+ | * Your password is your CCC i.d. (i.e. C00######) | ||
====Change lab46 wiki password (can be same as lab46)==== | ====Change lab46 wiki password (can be same as lab46)==== | ||
+ | * Once logged in click update profile in the upper right and there is a menu to update your password | ||
+ | |||
=====Set up personal development system===== | =====Set up personal development system===== | ||
Line 51: | Line 72: | ||
* program: Computer Science | * program: Computer Science | ||
====Create, compile, and execute hello.c==== | ====Create, compile, and execute hello.c==== | ||
+ | Similarly to info.txt, you can need to create a file using a text editor like nano or vim. | ||
+ | |||
+ | Using one of the text editors, create a new file and name it " | ||
+ | |||
+ | Within your file write out your C code for hello world | ||
+ | |||
+ | To compile you can use the gcc command with certain flags like this | ||
+ | < | ||
+ | USER@lab46: | ||
+ | </ | ||
+ | where INPUTFILE is your uncompiled code, and OUTPUTFILE is your compiled code | ||
+ | |||
+ | Once you have compiled your code you can execute it with ./ | ||
====Add, Commit, Push changes to repo==== | ====Add, Commit, Push changes to repo==== | ||
+ | In order to move files between Lab46 and your personal computer you can do this by doing hg add, hg commit and hg push and pull. | ||
+ | Using hg add will start tracking files. Using hg commit will commit those files and save them (hg commit -m "put commit message here") and doing hg push will push them out to the other destination where you want to access them. After using hg push make sure to go the destination and use hg pull to get access to the updated files. | ||
=====Pull and Update project changes on Lab46===== | =====Pull and Update project changes on Lab46===== | ||
=====Submit project files on lab46===== | =====Submit project files on lab46===== | ||
+ | submitting files on lab46 uses the submit command | ||
+ | < | ||
+ | USER@lab46: | ||
+ | </ | ||
+ | sub in the class you are taking in place of DESIG, the project you are submitting in place of PROJECT, in this case abc0, and the files you are submitting in place of FILE, in this case your C code and info.txt file. | ||
+ | For example, if you were in data submitting abc0: | ||
+ | < | ||
+ | USER@lab46: | ||
+ | </ | ||
=====Customize journal title and intro, edit week1 entry===== | =====Customize journal title and intro, edit week1 entry===== | ||
+ | Each classmate has their own journal that you can see and read, Giving an intro helps introduce yourself. shocking, I know. This is also a great place to be creative and experiment with the text editor. Have fun! | ||
+ | |||
+ | Completing the weekly journal earns you points towards your grade, as well as getting you in the mindset of documenting progress. | ||
+ | |||
+ | =====Class notes===== | ||
+ | Class Notes 8/27 | ||
+ | Data/ | ||
+ | |||
+ | Preamble: | ||
+ | -------- | ||
+ | |||
+ | -Your soul is now on fire! | ||
+ | |||
+ | -Brief history lesson on tables | ||
+ | |||
+ | -Discussed AI policies, don't do it | ||
+ | |||
+ | -Opening projects: abc0 and btt0, do it | ||
+ | |||
+ | -Next due project, making space invaders (msi0 and after that msi1) | ||
+ | |||
+ | -First four pct's are available as of writing. 0 and 1 are due end of tomorrow. | ||
+ | |||
+ | -Journals / Class documents available | ||
+ | |||
+ | Class Discussion: | ||
+ | ---------------- | ||
+ | |||
+ | msi0 - using malloc' | ||
+ | |||
+ | In your struct for sprites (sprites being the things on screen), consider an X and Y for each on screen. | ||
+ | |||
+ | *Key instruction, | ||
+ | Sprite *array = NULL; | ||
+ | array = (Sprite *)malloc(sizeof(sprite) * 15); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | msi1 - the same project, but converting msi0 to use a linked list instead of an array, possibly the conversation for Thursday 8/29 | ||
+ | |||
+ | |||
+ | Matt's class will make you think so hard, it'll make you physically ill! |