Topic: Principles and Practices, Project Management
Git-version control
At first, I got an idea to check my computers. I found that the both
have some Git installations. Why?
They were old ones and installed when I done some programming some
years earlier and I needed some code from GitHub.
Update or not? I decided to install the newest version (v2.11.0) to
my laptop (Windows 10). However, before install, I asked first from
my instructors Jani and Juha, how big data it is? Because, I don't
like to fulfill my computer. They told it is not too much, maybe
some megabytes. Later, I found information it requires 200.5 MB of
space.
So, the git install was quite easy. I only went to web page https://git-scm.com
and used default values for installation. We done these first steps
together in Fab Lab Oulu, because earlier they have had problems
with SSH keys installation and use. Dorina's
(http://archive.fabacademy.org/archives/2016/fablaboulu/students/352/)
pages were very helpful to conform the steps.
Fab Academy SSH key generation
I signed up to www.fablabs.io page as they advised me.
And here I go. My home lab is also there.
A first, I generated the SSH keys by command ssh-keygen in
Git Bash window. I done it using my own file name and place. And, I
lost them somewhere to my computer. Therefore, I done generation
twice. The second trial went with default settings. And, keys found
later from default location on my disk. The command was ssh-keygen
-t rsa -C "<email address>. And then I copied it to
clipboard by clip < ~/.ssh/id_rsa.pub command.
Further, I pasted this clipboard information to git.fabacademy.org
page, where I was able to login by my fablabs.io username
and password.
There, I selected my Profile Settings and pasted the key to
SSH Keys location.
Further, I created a local git directory of fablaboulu using the
command "git clone":
Always I must use procedure git pull - git add +
. - git commit -m "assignment xx" -- git push,
when I add, remove or edit files in my local repository. It
ensures correct data locally and remotely.
Git pull: incorporates changes from a remote repository into
the current branch.
Git add + . : updates the index using the current content
found in the working tree, to prepare the content staged for the
next commit.
Git commit -m "assignment xx": stores the current contents of
the index in a new commit along with a log message from the user
describing the changes.
Git push: updates remote refs using local refs, while sending
objects necessary to complete the given refs.
As a conclusion, I have used Git tools earlier for GitHub purposes.
I needed some code for Particle Photon programming in www.particle.io
environment. And now, I know little more what Git is and why.
Looking this all from mechanical engineering point of view, it looks
like very complicated and full of unknown issues, lot of unknown
abbreviations SSH etc, Linux like commands and more. However, this
is important and interesting as whole. I want continue.
My first web pages
It was time to select my web development tool. I read
comments of older Fab Academy students from Class archive (www.fabacademy.org).
I tested some solutions: Brackets, Free-css.com –pages, etc. Also, I
read choices of our university, what they will offer. I checked also
Microsoft Office tool possibilities for web page generation.
I must ask help from Jani (my boss in Fab Lab Oulu). He and Antti
(my colleague in Fab Lab Oulu) briefed me and recommended Brackets
and Seamonkey. Also, they taught me the idea of web pages and
simplified it to me.
My need was that I don’t like to spend time to coding, because it
takes too much time. Instead of this I would like to spend my time
rather to product generation.
I tested Brackets and Seamonkey. I done several test pages by
Seamonkey. And finally I got the idea – my tool is the Seamonkey. It
is simple enough and familiar to operate as other documenting tools.
First page to Fab Academy repository - index.html
I started documenting my work and wrote my first web page ever,
index.html, to the local Fab Academy repository. It was almost
empty page and I wrote it as test purposes. I saved it to my
computer to the path ...\fablaboulu\students\55 and used git
procedure - git pull - git add + . - git
commit -m "assignment xx" -- git push- I explained
earlier. At first, I had a problem to find my index.html
file. But the problem gone over. I think there was some lag in
system or many makers were pushing files at the same time.
Seamonkey use
Seamonkey is easy to use. Most of all I write my text. I can use
several tools to enhance font size or type, add images or links,
etc. These are most important needs.
Post-registered notes on Seamonkey use and web pages
creation
My first Html files were too big and I reduced picture sizes to
about 100 x 100 mm with the resolution of 72 dpi. Further, Seamonkey
required to delete the old picture and add it as new one to change
correctly the new parameters.
Once more, I increased the picture size. I will use now about
900-1000 dots width and 72 or 96 dpi resolution.
Following are correct settings to the pictures.
Public ssh-keygen problem
During assignment 9, ECDSA host key changed and I got warning: