Week 2 Project Management¶
assignment for the week¶
- work through a git tutorial
- build a personal site in the class archive describing you and your final project
learning outcomes¶
- explore and use website development tools
- identify and utilise version control protocols
have i?¶
- made a website and described how i did it
- introduced yourself
- documented steps for uploading files to archive
- pushed to the class archive
- signed and uploaded Student Agreement
my goal for the week¶
To build my personal website, here’s what I need to do:
- install a text editor (Atom, Sublime Text) and a version control system (GIT) on my computer
- start learning to operate my computer through its command-line interface
- start learning HTML and CSS
- start learning GIT
programs installed¶
I installed the following programs on my computer:
- text editor: Atom; Sublime Text
- version control system: GIT
my website publishing workflow¶
To start with, I followed the ‘GIT Simple Cheat Sheet’ (source: Fab Academy Tutorials), step-by-step, to publish my website. Below, I have pasted Terminal’s window to show all that I did to publish my website. I have additionally annotated it to explain what I did (or was trying to do).
Last login: Fri Dec 21 13:59:46 on ttys003
1. Started with checking the version of GIT on my system. It was 2.15.1. Updated it to the then (as on mmddyyyy) current version (2.20.1) available at git-scm.com.
Ashishs-MacBook-Pro:~ sawhneyashish$ git --version git version 2.15.1 <s>Ashishs-MacBook-Pro:~ sawhneyashish$ git --version git version 2.15.1</s> Ashishs-MacBook-Pro:~ sawhneyashish$ git --version git version 2.20.1
2. Introduced myself to GIT. In other words, configured my username and email.
Ashishs-MacBook-Pro:~ sawhneyashish$ git config –-global user.name "Ashish Sawhney" error: key does not contain a section: –-global Ashishs-MacBook-Pro:~ sawhneyashish$ git config --global user.name "Ashish Sawhney" Ashishs-MacBook-Pro:~ sawhneyashish$ git config --global user.email “ashishsawhney9211982@gmail.com"
3. Checked if I already had an SSH key.
Ashishs-MacBook-Pro:~ sawhneyashish$ cat ~/.ssh/id_rsa.pub cat: /Users/sawhneyashish/.ssh/id_rsa.pub: No such file or directory
4. Generated an SSH key.
Ashishs-MacBook-Pro:~ sawhneyashish$ ssh-keygen -t rsa -C "@ashishsawhney9211982@gmail.com" Generating public/private rsa key pair. Enter file in which to save the key (/Users/sawhneyashish/.ssh/id_rsa): SSHKey2019 Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in SSHKey2019. Your public key has been saved in SSHKey2019.pub. The key fingerprint is: SHA256:bNj9X96RpLbmBTiAbp4W8Zdm7754PxgmhuaL7l3xfl0 @ashishsawhney9211982@gmail.com The key's randomart image is: +---[RSA 2048]----+ | | | . | | o . | | .+o.. o | | .+S.oO . . | | o.oo++=o+ E| | +o ..+=o++| | . o.. ==o=+| | o+ o..=B=.+| +----[SHA256]-----+
5. Looked for my SSH key.
Ashishs-MacBook-Pro:~ sawhneyashish$ cat ~/.ssh/id_rsa.pub cat: /Users/sawhneyashish/.ssh/id_rsa.pub: No such file or directory Ashishs-MacBook-Pro:~ sawhneyashish$ cat ~/.ssh/SSHKey2019.pub cat: /Users/sawhneyashish/.ssh/SSHKey2019.pub: No such file or directory
6. Copied my SSH key.
Ashishs-MacBook-Pro:~ sawhneyashish$ pbcopy < ~/.ssh/id_rsa.pub -bash: /Users/sawhneyashish/.ssh/id_rsa.pub: No such file or directory Ashishs-MacBook-Pro:~ sawhneyashish$ pbcopy < ~/.ssh/SSHKey2019.pub -bash: /Users/sawhneyashish/.ssh/SSHKey2019.pub: No such file or directory Ashishs-MacBook-Pro:~ sawhneyashish$ pbcopy < ~/.ssh/id_rsa/SSHKey2019.pub -bash: /Users/sawhneyashish/.ssh/id_rsa/SSHKey2019.pub: No such file or directory Ashishs-MacBook-Pro:~ sawhneyashish$ ~/.ssh/id_rsa.pub -bash: /Users/sawhneyashish/.ssh/id_rsa.pub: No such file or directory
4. Generated an SSH key (again!).
Ashishs-MacBook-Pro:~ sawhneyashish$ ssh-keygen -t rsa -C "$ashishsawhney9211982@gmail.com" Generating public/private rsa key pair. Enter file in which to save the key (/Users/sawhneyashish/.ssh/id_rsa): 2SSHKey2019 Enter passphrase (empty for no passphrase): Enter same passphrase again: Passphrases do not match. Try again. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in 2SSHKey2019. Your public key has been saved in 2SSHKey2019.pub. The key fingerprint is: SHA256:nNIEuMPijnrcsfShKALTaUyQw4OvhR7dRo6lycx6Mt0 @gmail.com The key's randomart image is: +---[RSA 2048]----+ |o. .. | |=o .o . | | =*.O. . | |..=O++ + . | |.B+oo.. S | |+=*ooE.. | |.*++ = . | |+ = + . | |+o | +----[SHA256]-----+
5. Looked for my SSH key (again!).
Ashishs-MacBook-Pro:~ sawhneyashish$ cat ~/.ssh/id_rsa.pub cat: /Users/sawhneyashish/.ssh/id_rsa.pub: No such file or directory Ashishs-MacBook-Pro:~ sawhneyashish$ cat ~/.ssh/2SSHKey2019.pub cat: /Users/sawhneyashish/.ssh/2SSHKey2019.pub: No such file or directory
Thought I am looking at the wrong location (or in the incorrect folder), so changed location (or folder).
Ashishs-MacBook-Pro:~ sawhneyashish$ cd ~/.ssh Ashishs-MacBook-Pro:.ssh sawhneyashish$ ls known_hosts
4. Generated an SSH key (yet again!) but I was in a different folder this time. This is the first time it seems to have worked right.
Ashishs-MacBook-Pro:.ssh sawhneyashish$ ssh-keygen -t rsa -C "ashishsawhney9211982@gmail.com" Generating public/private rsa key pair. Enter file in which to save the key (/Users/sawhneyashish/.ssh/id_rsa): 3SSHKey2019 Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in 3SSHKey2019. Your public key has been saved in 3SSHKey2019.pub. The key fingerprint is: SHA256:kr7/SMOosl2brQZFl6Zyd7lfJln9LFdfxpQx3NPsbpA ashishsawhney9211982@gmail.com The key's randomart image is: +---[RSA 2048]----+ | . .+=| | . + +*| | . + . *.| | . +.. o E B| | +o.S. . o ==| | .. + . o + B| | .+ + . + + | | .. o.* o . | | .oo.=o+.. | +——[SHA256]-----+
5. Looked for my SSH key. This one worked right too.
Ashishs-MacBook-Pro:.ssh sawhneyashish$ cat ~/.ssh/3SSHKey2019.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDxgZSb3GcR8ZbZlzZ/nraAJcYjsxYEWQg86C5EgFDAOOnq2URyxmNMK/3xMT2l2/0snD94cgISou78hJoNOJavpmhEKcccb3UG/3fDEHozj0wWm9I9EF0LL2p7Du75r3aFzyyBmQM3zRAordfbRIt48CJ7EbOsMhqWYgCPdCPiYW7t2wPEDUw6MXiKFyA2Gqugr/9v5efo2ChklIkUL69d26b5jSdC+Fix/Nmus2GQvomhyUlwOGELhbj6GqUALDBknGBqPlulydVqWEzc6Y/ozSGMZfXChsnYtsFkMwxzZGsj9wWCpIQNXseN7C1khjqqD/Vks0L+34qNKtiXDWrh ashishsawhney9211982@gmail.com
6. Copied my SSH key.
Ashishs-MacBook-Pro:.ssh sawhneyashish$ pbcopy < ~/.ssh/3SSHKey2019.pub
Tried navigating to the folder where I wanted to create a local copy of my repository, and cloning. Did it incorrectly, though. Also, seems the cloning command in the cheat sheet is incorrect, but I am not sure.
Ashishs-MacBook-Pro:.ssh sawhneyashish$ cd.. -bash: cd..: command not found Ashishs-MacBook-Pro:.ssh sawhneyashish$ cd Ashishs-MacBook-Pro:~ sawhneyashish$ cd Ashishs-MacBook-Pro:~ sawhneyashish$ cd.. -bash: cd..: command not found Ashishs-MacBook-Pro:~ sawhneyashish$ cd\ > cd desktop -bash: cdcd: command not found Ashishs-MacBook-Pro:~ sawhneyashish$ cd Desktop Ashishs-MacBook-Pro:Desktop sawhneyashish$ cd FabAcademy2019SawhneyAshish Ashishs-MacBook-Pro:FabAcademy2019SawhneyAshish sawhneyashish$ git clone git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git fatal: repository 'git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git' does not exist Ashishs-MacBook-Pro:FabAcademy2019SawhneyAshish sawhneyashish$ git clone git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/FabAcademy2019SawhneyAshish.git fatal: repository 'git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/FabAcademy2019SawhneyAshish.git' does not exist Ashishs-MacBook-Pro:FabAcademy2019SawhneyAshish sawhneyashish$ git clone git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git fatal: repository 'git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git' does not exist Ashishs-MacBook-Pro:FabAcademy2019SawhneyAshish sawhneyashish$ cd ashish-sawhney Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git clone git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git fatal: repository 'git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git' does not exist Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git clone git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git fatal: repository 'git@gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git' does not exist Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git clone git@gitlab.fabcloud.org:academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git Cloning into 'ashish-sawhney'... git@gitlab.fabcloud.org: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
7. Cloned my repository by what Puneeth had suggested. It worked.
Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git clone https://gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git Cloning into 'ashish-sawhney'... remote: Counting objects: 171, done. remote: Compressing objects: 100% (64/64), done. remote: Total 171 (delta 98), reused 171 (delta 98) Receiving objects: 100% (171/171), 405.19 KiB | 226.00 KiB/s, done. Resolving deltas: 100% (98/98), done.
Did several things in a haphazard way. Of course, none of it worked.
Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _git add index.html_ fatal: pathspec 'index.html' did not match any files Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _git add index.html_ fatal: pathspec 'index.html' did not match any files Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _cd assignments_ -bash: cd: assignments: No such file or directory Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _cd ashish-sawhney_ Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _cd assignments_ -bash: cd: assignments: No such file or directory Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _git add index.html_ fatal: pathspec 'index.html' did not match any files Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git status On branch master Your branch is up to date with 'origin/master'. Untracked files: (use "git add <file>..." to include in what will be committed) docs/assignments/index.html nothing added to commit but untracked files present (use "git add" to track) Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _git add index.html_ fatal: pathspec 'index.html' did not match any files Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ _cd assignments_ -bash: cd: assignments: No such file or directory
8. Navigated to the folder where I wanted to create a local copy of my repository (add path here).
Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ cd docs Ashishs-MacBook-Pro:docs sawhneyashish$ cd assignments Ashishs-MacBook-Pro:assignments sawhneyashish$ git add index.html
Not sure why I pulled, merged, committed and pushed here.
Ashishs-MacBook-Pro:assignments sawhneyashish$ git pull Already up to date. Ashishs-MacBook-Pro:assignments sawhneyashish$ git merge Already up to date. Ashishs-MacBook-Pro:assignments sawhneyashish$ git commit -m 'first commit' [master a6d4536] first commit 1 file changed, 46 insertions(+) create mode 100644 docs/assignments/index.html Ashishs-MacBook-Pro:assignments sawhneyashish$ git push Enumerating objects: 8, done. Counting objects: 100% (8/8), done. Delta compression using up to 4 threads Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 925 bytes | 925.00 KiB/s, done. Total 5 (delta 3), reused 0 (delta 0) To https://gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git 5290631..a6d4536 master -> master Ashishs-MacBook-Pro:assignments sawhneyashish$ git pull Already up to date. Ashishs-MacBook-Pro:assignments sawhneyashish$ git commit mkdocs.yml 'first edit' error: pathspec 'mkdocs.yml' did not match any file(s) known to git error: pathspec 'first edit' did not match any file(s) known to git Ashishs-MacBook-Pro:assignments sawhneyashish$ cd docs -bash: cd: docs: No such file or directory Ashishs-MacBook-Pro:assignments sawhneyashish$ cd Ashishs-MacBook-Pro:~ sawhneyashish$ cd ashish-sawhney Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git add mkdocs.yml fatal: pathspec 'mkdocs.yml' did not match any files Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ cd ashish-sawhney -bash: cd: ashish-sawhney: No such file or directory Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git add mkdocs.yml fatal: pathspec 'mkdocs.yml' did not match any files Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git ls git: 'ls' is not a git command. See 'git --help'. The most similar commands are lg ll Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git -ls unknown option: -ls usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean **Somehow pulled my online repository from last year.** Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git pull remote: Counting objects: 502, done. remote: Compressing objects: 100% (240/240), done. remote: Total 502 (delta 266), reused 475 (delta 248) Receiving objects: 100% (502/502), 65.20 MiB | 1020.00 KiB/s, done. Resolving deltas: 100% (266/266), done. From https://gitlab.fabcloud.org/academany/fabacademy/2018/labs/fablabakgec/students/ashish-sawhney b32742b..927c1c2 master -> origin/master Updating b32742b..927c1c2 Fast-forward .gitlab-ci.yml | 13 + 2__ProjectManagement.pages | Bin 0 -> 748155 bytes 3__ComputerAidedDesign.pages | Bin 0 -> 736105 bytes 5_10__fts_mini_outline_Outline vs Toolpath.png | Bin 0 -> 78636 bytes 5_12a__fts_mini__stuffed board.jpg | Bin 0 -> 79568 bytes 5_12b.JPG | Bin 0 -> 765921 bytes 5_13.png | Bin 0 -> 98896 bytes ...land-monofab-srm-20-desktop-milling-machine.jpg | Bin 0 -> 11790 bytes 5_2__vpanel_srm20_en.png | Bin 0 -> 52424 bytes 5_3__fts_mini_traces.png | Bin 0 -> 5833 bytes 5_4__input-specifications.png | Bin 0 -> 28093 bytes 5_5__output-specifications.png | Bin 0 -> 46665 bytes 5_6__process-specifications.png | Bin 0 -> 116180 bytes 5_7__fts_mini_traces_Traces vs Toolpath.png | Bin 0 -> 516559 bytes 5_8__fts_mini_outline.png | Bin 0 -> 1450 bytes 5_9__input-specifications_fts-mini-outline.png | Bin 0 -> 29427 bytes 6_10AScreenShotRaw.png | Bin 0 -> 1784509 bytes 6_10BTestScan3Raw.png | Bin 0 -> 778808 bytes 6_11TestScan3Processed.png | Bin 0 -> 1011449 bytes 6_12BustFrontView.JPG | Bin 0 -> 554902 bytes 6_13BustSideView.JPG | Bin 0 -> 478405 bytes 6_1MakerBotDefaultSettings.JPG | Bin 0 -> 2178251 bytes 6_2BridgeTest50-100mmBeams.jpg | Bin 0 -> 974733 bytes 6_3OverhangTest.JPG | Bin 0 -> 595611 bytes 6_4WallThicknessTest.JPG | Bin 0 -> 911741 bytes 6_5OrientationTest.JPG | Bin 0 -> 737415 bytes 6_6HolesTest.JPG | Bin 0 -> 354851 bytes 6_7TestScan1.stl | 35002 +++++++++++++++++++ 6_7__HollowSp w Raft and Supports1.JPG | Bin 0 -> 884939 bytes 6_7__HollowSp w Raft and Supports2.JPG | Bin 0 -> 804905 bytes 6_7a__HollowSphere_top view.MOV | Bin 0 -> 44620029 bytes 6_8BTestScan3Raw.stl | 34995 ++++++++++++++++++ 6_8__HollowSp Raft and Supports removed.JPG | Bin 0 -> 856968 bytes 6_9TestScan1.png | Bin 0 -> 772617 bytes 6_9TestScan3Processed.stl | 35002 +++++++++++++++++++ 6__3DScanningPrinting.pages | Bin 0 -> 637952 bytes 8_1__testing runout.jpg | Bin 0 -> 462437 bytes 8_2__50by50Square.png | Bin 0 -> 979554 bytes 8_2__OutsideInsideOnToolpaths.png | Bin 0 -> 49624 bytes 8_3__TestCuts.JPG | Bin 0 -> 1849834 bytes 8_4__Conventional vs Climb Machining.jpg | Bin 0 -> 840075 bytes BlockDgmESISingleQuad.jpg | Bin 0 -> 422131 bytes GIT_commands__partial_list.pages | Bin 0 -> 713963 bytes HollowSphere.f3d | Bin 0 -> 55100 bytes HollowSphere.stl | Bin 0 -> 1428084 bytes LayoutMassSpectrometer.jpg | Bin 0 -> 163330 bytes Makefile | 75 + ProjectIdea.html | 13 + README.md | 1 - Readme1.md | 1 + T8_1__Data_Holes_InnerDiameters.png | Bin 0 -> 29842 bytes T8_2__Data_Sq_OutsideInsideOnToolpaths.png | Bin 0 -> 90722 bytes ...Data_ClearedSpaces_OutsideInsideOnToolpaths.png | Bin 0 -> 80287 bytes bio.html | 22 + fts_firmware.hex | 158 + fts_mini_outline.pdf | Bin 0 -> 105388 bytes fts_mini_outline.rml | 112 + fts_mini_traces.pdf | Bin 0 -> 174217 bytes fts_mini_traces.rml | 1653 + index.html | 46 + recproject | 1 + week1.html | 35 + week2.html | 91 + week3.html | 44 + week4.html | 18 + week5.html | 150 + week6.html | 102 + week7.html | 26 + week8.html | 55 + week9.html | 26 + 70 files changed, 107640 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 2__ProjectManagement.pages create mode 100644 3__ComputerAidedDesign.pages create mode 100644 5_10__fts_mini_outline_Outline vs Toolpath.png create mode 100644 5_12a__fts_mini__stuffed board.jpg create mode 100644 5_12b.JPG create mode 100644 5_13.png create mode 100644 5_1__roland-monofab-srm-20-desktop-milling-machine.jpg create mode 100644 5_2__vpanel_srm20_en.png create mode 100644 5_3__fts_mini_traces.png create mode 100644 5_4__input-specifications.png create mode 100644 5_5__output-specifications.png create mode 100644 5_6__process-specifications.png create mode 100644 5_7__fts_mini_traces_Traces vs Toolpath.png create mode 100644 5_8__fts_mini_outline.png create mode 100644 5_9__input-specifications_fts-mini-outline.png create mode 100644 6_10AScreenShotRaw.png create mode 100644 6_10BTestScan3Raw.png create mode 100644 6_11TestScan3Processed.png create mode 100644 6_12BustFrontView.JPG create mode 100644 6_13BustSideView.JPG create mode 100644 6_1MakerBotDefaultSettings.JPG create mode 100644 6_2BridgeTest50-100mmBeams.jpg create mode 100644 6_3OverhangTest.JPG create mode 100644 6_4WallThicknessTest.JPG create mode 100644 6_5OrientationTest.JPG create mode 100644 6_6HolesTest.JPG create mode 100644 6_7TestScan1.stl create mode 100644 6_7__HollowSp w Raft and Supports1.JPG create mode 100644 6_7__HollowSp w Raft and Supports2.JPG create mode 100644 6_7a__HollowSphere_top view.MOV create mode 100644 6_8BTestScan3Raw.stl create mode 100644 6_8__HollowSp Raft and Supports removed.JPG create mode 100644 6_9TestScan1.png create mode 100644 6_9TestScan3Processed.stl create mode 100644 6__3DScanningPrinting.pages create mode 100644 8_1__testing runout.jpg create mode 100644 8_2__50by50Square.png create mode 100644 8_2__OutsideInsideOnToolpaths.png create mode 100644 8_3__TestCuts.JPG create mode 100644 8_4__Conventional vs Climb Machining.jpg create mode 100644 BlockDgmESISingleQuad.jpg create mode 100644 GIT_commands__partial_list.pages create mode 100644 HollowSphere.f3d create mode 100644 HollowSphere.stl create mode 100644 LayoutMassSpectrometer.jpg create mode 100644 Makefile create mode 100644 ProjectIdea.html delete mode 100644 README.md create mode 100644 Readme1.md create mode 100644 T8_1__Data_Holes_InnerDiameters.png create mode 100644 T8_2__Data_Sq_OutsideInsideOnToolpaths.png create mode 100644 T8_3__Data_ClearedSpaces_OutsideInsideOnToolpaths.png create mode 100644 bio.html create mode 100644 fts_firmware.hex create mode 100644 fts_mini_outline.pdf create mode 100644 fts_mini_outline.rml create mode 100644 fts_mini_traces.pdf create mode 100644 fts_mini_traces.rml create mode 100644 index.html create mode 160000 recproject create mode 100644 week1.html create mode 100644 week2.html create mode 100644 week3.html create mode 100644 week4.html create mode 100644 week5.html create mode 100644 week6.html create mode 100644 week7.html create mode 100644 week8.html create mode 100644 week9.html
8. Navigated to the folder where I wanted to create a local copy of my repository (add path here).
Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ cd Ashishs-MacBook-Pro:~ sawhneyashish$ cd Desktop Ashishs-MacBook-Pro:Desktop sawhneyashish$ cd FabAcademy2019SawhneyAshish Ashishs-MacBook-Pro:FabAcademy2019SawhneyAshish sawhneyashish$ cd ashish-sawhney
9. By now I had already started customizing (/editing) the mkdocs.yml file. The first edits were adding my name and a one line description of my website. Upon checking the status of my local repository, mkdocss.yml showed up as modified.
Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git status On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: mkdocs.yml no changes added to commit (use "git add" and/or "git commit -a") Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git pull Already up to date. Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git commit -m 'first edit' On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: modified: mkdocs.yml no changes added to commit Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git push Everything up-to-date
10. First proper Add, Commit and Push.
Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git add mkdocs.yml Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git commit -m 'first edit' [master bc03160] first edit 1 file changed, 3 insertions(+), 3 deletions(-) Ashishs-MacBook-Pro:ashish-sawhney sawhneyashish$ git push Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 4 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 386 bytes | 386.00 KiB/s, done. Total 3 (delta 2), reused 0 (delta 0) To https://gitlab.fabcloud.org/academany/fabacademy/2019/labs/akgec/students/ashish-sawhney.git a6d4536..bc03160 master -> master
command-line interface¶
I started learning to operate my computer through its command-line interface. Here are the commands I used (and learnt) so far:
- cd: to change directory (or folder)
- ls: to list files in a directory; ls -la: to list ALL (including hidden) files in a directory
- rm: to remove (delete) a file or files
- mkdir: to make (create) a new directory
learning underway …
hyper-text markup language (HTML)¶
Here are the HTML tags and attributes I learnt so far:
tags: 1. !DOCTYPE html: always begin every page with this declaration; it tells the browser that the page is written in HTML5 2. html: this is the root tag in any HTML page; it defines the whole document 3. head: this tag goes between html and body opening tags; it contains metadata (a set of data that describes and gives information about other data) about the HTML document; metadata is never displayed; the title tag is an example of such metadata 4. title: this is a meta information tag nested within the head tag; it specifies a title for the page - one that will be displayed in a web browser’s tab 5. body: this tag contains the page’s contents, that are visible 6. h1 - h6: these tags specify headings and sub-headings in HTML documents 7. p: this tag defines a paragraph 8. a: this tag specifies HTML links (to other pages of your website; to other websites; to other documents); the link’s destination is specified in the href attribute 9. img: this tag is used to add images to webpages; source of the image, alternative text (in case the image is not found at its source), width, and height are specified as src, alt, width, and height attributes respectively 10. hr: adds a horizontal rule 11. br: is an empty HTML tag, and specifies a line break 12. b: makes enclosed text bold 13. i: italicizes enclosed text 14. u: underlines enclosed text
attributes: attributes have the following format: name=”value” 15. href: helps to link webpages not in the same folder, pages in the same folder, documents in the same folder 16. style: helps to embellish an element, and has the following format: style=”property:value;”; e.g. background-color; (text) color; text-align; font-family; font-size; image width^; image height^ 17. title: nested inside a heading, or a paragraph tag, it acts as an attribute, and its value shows up as a tooltip when the cursor hovers over the information with which it is used, otherwise, its value is hidden 18. src: used to specify source of an image 19. alt: used within an image tag, it is used to specify alternative text, in case, the image is not found at its source 20. width: used to specify width of an image^ 21. height: used to specify height of an image^
^There are 2 ways in which image width and image height can be specified, (a) as properties within the style attribute, and (b) as attributes themselves.
learning underway …
GIT¶
I started learning GIT in a haphazard manner and, lo and bohold, it got very confusing very quickly. I looked up the suggested GIT tutorial with the intention to follow it from start to finish, but the initial bit of the tutorial was confusing me. Finally, I decided to listen to Fiore’s first recitation (referring to his first recitation from last year), and do things exactly the way he did during the lecture. This was quite helpful. I could follow him easily for the first 20-25 minutes, but after that it again got confusing for me. Anyway, so far, I learnt the following GIT commands:
- $ git
- $ git config –global user.name “Sawhney,Ashish”
- $ git config –global user.email “ashishsawhney9211982@gmail.com”
- $ git init
- $ cd .git
- $ vi TextFile.txt
- $ git status
- $ git add; $ git add –all
- $ git commit -m “commit message”
- $ vi .gitignore with creditcard.txt
- $ git add .gitignore
- $ git commit -m ‘added ignore list’
- $ git diff
- $ git checkout –TextFile.txt
- $ git rm
- $ git mv
- $ git log
- $ git push
- $ git pull
20. $ git –version
I am still not clear about the following: $ git commit –amend; $ git clone
learning underway …