Articles
Articles
Plans, self-checks and sources by skill and subject. Take any plan into your own repository.
- Artificial intelligence
How neural networks work
A neural network is simpler than its name suggests. Inside there are no thoughts or images — there are tables of numbers multiplied by the input values, and a procedure that keeps nudging those numbers until the answers get more accurate.
- Programming and IT
The .gitignore file
Every project has files that do not belong in the repository — caches, build folders, editor settings, local passwords. You keep the list of such files in .gitignore, and Git stops offering to add them.
- Programming and IT
git stash
The stash is a temporary shelf for unfinished edits. You put everything you have done there, get a clean working copy, deal with the urgent thing and then bring the work back. The shelf is shared by the whole repository and works like a stack: the last thing you put on it sits on top.
- Programming and IT
git reset
git reset moves the current branch pointer to another commit. How much your work suffers depends on one flag — `--soft` touches nothing but history, `--mixed` clears the index, `--hard` rewrites the files on disk. The third mode is the one Git command that destroys unsaved work for good.
- Programming and IT
git rebase
git rebase moves the commits of your branch as if you had started work not from an old state but from the current one. History becomes linear, but the commits are created anew — with new hashes. That leads to the main rule: you can only rebase what nobody else is using.
- Programming and IT
git push
Until you run git push, your commits exist only on your own disk. The command sends them to a remote repository and moves the branch pointer there — which is also why it is the command that most often refuses, when someone else got their work in first.
- Programming and IT
git pull
git pull brings other people's commits from a remote repository and immediately merges them into your current branch. It is two operations in a row, and almost every problem with pull comes from the second one — how it joins the two histories.
- Programming and IT
How to resolve a merge conflict
A conflict is not a breakage, it is a question. Git merges changes automatically as long as they are in different parts of a file; when two branches edit the same lines, only a person can choose the right version. Your job is to read both versions, build working code out of them and tell Git the question is settled.
- Programming and IT
git merge
Merging brings work from one branch into another. git merge takes the branch you name and joins its history with the current one — sometimes by just moving a pointer, sometimes by creating a separate commit, and sometimes by stopping and asking for help.
- Programming and IT
git log
git log shows history: which commits brought the repository to its current state. Without options the output is wordy and nearly useless, but a few flags turn it into a search tool — by author, by date, by file and even by a line of code that has disappeared.
- Programming and IT
git commit
A commit is a saved state of your project with an author, a timestamp and a message. git commit takes what you selected beforehand with git add and writes it into history as one indivisible piece.
- Programming and IT
Git commands
Git has well over a hundred commands, but on an ordinary day you use about twenty. Here they are in the order you need them — from your first copy of a repository to undoing a bad step — with one line of explanation each.
- Programming and IT
git clone
git clone takes an entire repository from a server — with all its history, branches and tags — and puts a copy into a new folder on your computer. It is how you start working on any existing project, yours or someone else's.
- Programming and IT
git checkout
Historically `git checkout` does several unrelated things at once: it moves your working copy to another branch, creates a branch and pulls a single file out of a commit. Because it was so overloaded, Git 2.23 added two separate commands — `switch` and `restore`. Here are both sides: the old way and its modern replacement.
- Programming and IT
Git branches
A Git branch is a movable pointer to a commit, not a copy of your files. That is why creating one costs nothing, and the git branch command is what you use to list, create, rename and delete branches.
- How to learn
The Feynman technique
If you cannot explain a topic in simple words, you do not understand it yet — that idea underlies a technique associated with the physicist Richard Feynman. It takes fifteen minutes and honestly shows where there is knowledge and where there are only familiar words.
- Music
Ear training and music theory on your own
What music schools call solfège is two things at once: music literacy (how music is written down) and the ear (recognising and reproducing what is written). An adult learns to read in a few weeks; the ear grows more slowly, but you can train it ten minutes a day. Below is a six-month plan, the order of topics and self-check questions.
- School math
Dividing fractions
Dividing by a fraction means multiplying by that fraction turned upside down. The rule is short, but it only works under three conditions: you flip the second fraction, mixed numbers are first turned into improper fractions, and a whole number is written as a fraction over one.
- School math
Area and perimeter
Perimeter is the length of a shape's boundary; area is the size of what is inside. That is also why the units differ: perimeter in centimetres, area in square centimetres. Below are the formulas, three worked problems and a check that catches a mixed-up formula in five seconds.
- Programming and IT
Arduino for beginners
Arduino is a microcontroller board you can tell when to light an LED and when to read a sensor. You write the program in simplified C++, upload it over USB, and it runs on its own, without a computer. Your first blinking LED takes about twenty minutes.