-
Notifications
You must be signed in to change notification settings - Fork 1
Computing Tools for CS studies exercises week 4: Version Control and IRC
On the first week we took a quick look at a version control system named git
. This week we'll dive in a bit more. We'll also be looking at IRC and irssi, the IRC client. THe exercises this week are fun and easy :). We'll also be making you a profile in the world-famous lapio-gallery.
In week one we cloned a git repository from Github and looked at it's code. It's time to take a step further. Register yourself an account on Github with a nickname of your choice. If you already have an account, please login.
If you can't remember what Github is, you can go back to the first week assignment [git] and recap.
Create a folder on your computer where you will store your own project. Your project can contain almost anything, for example code, text, music or something else. Generate some files and folders there that are part of your project.
Now create a repository for yourself on Github. Think of a funny name for it and Pick a licence for it. You should use an open source licence.
Transfer the project you made in the previous assignment to your repository by following the instructions.
Go to the Github website online and add a file or two to your folder. The contents don't matter. Go back to the folder on your own computer now. Do you see the files you just added?
Get the missing files to your computer using the command git pull
.
Fork the Lapio-Gallery repository. Instructions on how to fork can be found here.
Clone your fork to your own computer as you did on week one in the exercise [git].
Add a new JSON file to the folder called profiles
in your fork.
Name it so that there's no conflicts between anybody's files. You can use your name or your login id, for example myid.json
Look at the template.json
-file and change the name
-, picture
-, ircnick
-, description
- and homepage
-fields to match your information.
When you're done, commit your changes to version control (name the commit descriptively!) and push your commit to the master-branch of your fork. Instructions can be found for example here.
In actual projects you should not push to master branch if you're going to make a pull request, like we are in the next assignment.
Once you've pushed your changes you can make a pull request.
Follow the instructions. Remember to give your pull request a descriptive title.
Once you've done the pull request, the changes that it makes to the repository can be merged to the original repository. This can be done only by users with push-rights to the repository, such as the paja-instructors.
Your pull request will also be reviewed before the merge. Remember to check your GitHub notifications, in case you get any feedback on your pull request. If you did, fix the errors.
Once your pull request has been merged, your profile will be visible at https://coolnesss.github.io/lapio-galleria/.
On week 1 we left a screen running on a department server, containing our irc-session. We also made an alias called irc
that connects to the server and resumes the screen.
Make sure that that alias works, and if for some reason it doesn't let you back into your irssi session, redo the assignment and make it work!
# [irssi-nickcolor]
We'll be installing some scripts to irssi (our IRC-client) that will make our lives easier. Let's start by searching from the irssi-script index https://scripts.irssi.org/ a script called nickcolor.pl
. It will colour the names of everyone chatting on any channel with different colours, so that we can see who's saying what more clearly.
Download the .pl script from the site and save it to the folder that is mentioned on the site. Now open your own screen that has irssi open (using the alias) and run the command script load nickcolor.pl
. Have a look at your channels. The next time someone says something, they'll be coloured!
Have a look at the index page and download a couple of scripts from there. Occasionally melkki or some other department server you are using might crash. What could you do so that you wouldn't have to rejoin all your channels each time this happens? Find a script that fixes this issue.
Now that your irssi is perfect, you can think of channels you are not yet on. Almost every course has a course channel where you can find help for your assignments. Check the freshmen-wiki, for channels that you are not yet on. The page is in Finnish, but you can see names of english courses and their channels next to them. Join any channels you are not yet on that are of interest to you!
Give out course feedback!! You’ll get an exercise point!
End of exercises.
There's still the personal feedback where you go through what you should have learned and what you did learn. Further instructions will be given on the course page during week 39.
Checkpoint
Last week we had a couple of risky exercises. It is possible that you have abandoned cronjobs running around paja computers & some shady unprotected ssh keys in your home dir. Or maybe your .htaccess file has slipped into the wrong dir and prevents the world from seeing your website. Let us get these fixed.
- Check that you have applied a passphrase to your ssh key.
- Check that you have no cronjobs running.
- Check that your home dir is not gigantic due to the wget-images script. If you have large files / directories that are not useful to you, delete them all.
Check your points on https://lapiostats.herokuapp.com and tell a paja-instructor or email the course lecturer if something is off.
Have a very lovely autumn and cheers for your other ongoing studies! Remember to thank the paja instructors if they were of assistance.