This commit is contained in:
Daniel Tsvetkov 2020-07-13 12:55:26 +02:00
parent 527fa806fb
commit 0b31e959b9
6 changed files with 26 additions and 18 deletions

View File

@ -724,7 +724,7 @@ In the meantime - I decided to write a poem about git. It's rephrased very epic
## Ode to Version Control
![battle of shipka](media/20131019_week_floor_pi/shipka.jpg)
![battle of shipka](/media/20131019_week_floor_pi/shipka.jpg)
*Oh, Version control!*
@ -1184,7 +1184,7 @@ People don't come with debuggers. That would be a highly useful thing. Why?
When writing a computer program sometimes things go wrong. You have introduced a bug. Depending on the programming language and type of bug, the program might ""throw an exception"", i.e. understand that the program has run into an exceptional condition which is not the ""normal flow"". For example, when you see an error like this
![blue screen of death](media/20151126_catching_panic_attacks/bsod.jpg)
![blue screen of death](/media/20151126_catching_panic_attacks/bsod.jpg)
it means that your Operating system encountered something it couldn't handle. Different languages talk differently about it - throwing/raising an exception/error or ironically, the language I am learning right now (go), calls it **panicking**.
@ -1382,14 +1382,14 @@ All right, here we go!
Lets look around, what is happening. A keyboard consists of electrical switches in a similar way a lamp switch is made.
![Key schematic](media/20151120_after_enter_episode_2_pressing/02_keyboard_first.png)
![Key schematic](/media/20151120_after_enter_episode_2_pressing/02_keyboard_first.png)
Now, see that switch. The two cables have electrons which stay relatively static. (Well, that's a lie, they move all the time buzzing randomly like flies.) Why do they buzz randomly? They are excited but they don't feel strongly to move one way or another. There is no direction in their life. It's like when you are in a big pool and you have more than enough energy to enjoy swimming but with no particular direction. Where is that energy coming from? The loud Big bang. Now, concentrate!
Once we press the button, closing the switch the electrons start feeling a force. It's like a wind starts blowing in one direction and they slowly obey. They still are kind of randomly moving, but randomly with direction.
![Key press](media/20151120_after_enter_episode_2_pressing/02_keyboard_press.png)
![Key press](/media/20151120_after_enter_episode_2_pressing/02_keyboard_press.png)
While our finger is still on the keyboard, the electrons start flowing in one direction. Where is that force actually coming from? Your finger? Not exactly. When you turn on your lamp, your finger just opens the gates for power to go. Now how does your computer know that?
@ -1397,7 +1397,7 @@ Well, your keyboard is actually not just these two wires connecting the enter. T
No, let's not do that. Let's organize the cables in a **matrix**. Now in this case a matrix is a fancy way to say that cables form grids on two layers. If you have an old keyboard connected to a desktop computer, I would disassemble it and see what's inside. It's pretty cool! Youll see two thin plastic sheets with some very thin paths made of some metal separated by a third layer with holes… it's like a sandwich with emmental cheese, mmm..
![Metal sandwich](media/20151120_after_enter_episode_2_pressing/02_metal_sandwich.png)
![Metal sandwich](/media/20151120_after_enter_episode_2_pressing/02_metal_sandwich.png)
So when you press the button you connect the two pieces of bread of this sandwich through the cheese which lets these electrons flow.
@ -1411,7 +1411,7 @@ Turns out the the fastest of the fastest types about 200 words per minute which
This is of course in the case of a real, solid keyboard. What if it was one on your smartphone?
![finger pressing smart display](media/20151120_after_enter_episode_2_pressing/02_virtual_keyboard.png)
![finger pressing smart display](/media/20151120_after_enter_episode_2_pressing/02_virtual_keyboard.png)
Well, its pretty similar, just your finger acts as a connector between the two components. Dont worry, these electrons are actually pretty tiny and wont hurt you.
@ -1419,12 +1419,12 @@ Anyway, the information about the press got to the keyboard controller. And the
Why the two ways?. Well, the brain of any computer, called the **Central Processing Unit** or **CPU** is a very important and busy boss. It allows you to listen to music while you type, move your mouse, browse the Internet and many other tasks.
![Workers queue](media/20151120_after_enter_episode_2_pressing02_queue.png)
![Workers queue](/media/20151120_after_enter_episode_2_pressing02_queue.png)
Now she can either order that some of her workers go and fetch things in which case the workers go, **pull** and then queue or if the keyboard **pushes** a message, the keyboard worker queues. This queue exists so that you can do many things seemingly at the same time. What actually happens is that the boss reads messages really quickly and passes messages around the workers.
![Fast workers queue](media/20151120_after_enter_episode_2_pressing/02_quick_workers.png)
![Fast workers queue](/media/20151120_after_enter_episode_2_pressing/02_quick_workers.png)
It depends on many factors whether the communication will be push or pull. Some interfaces like USB wait for pull from the computer, other push. In the end, the messages always end up in the queue for the boss.
@ -1544,7 +1544,7 @@ Billion dollar question isnt it. Seems that nobody knows, or at least that is
","
This week - charts.
![how i met your mother - marshal showing his favourite bars on a pie chart and his favourite pies in a bar chart](media/20131011_week_10/charts.png)
![how i met your mother - marshal showing his favourite bars on a pie chart and his favourite pies in a bar chart](/media/20131011_week_10/charts.png)
Almost. But not quite. We were talking about Gantt and PERT charts. Cool stuff that bussiness people talk all the time. They just love it - give them meetings, status reports, where is it going, how much is it gonna cost, who is working on what, what needs to be done in order to AAA! Just do IT!

1 created_dt filename title body
724
725
726
727
728
729
730
1184
1185
1186
1187
1188
1189
1190
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1397
1398
1399
1400
1401
1402
1403
1411
1412
1413
1414
1415
1416
1417
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1544
1545
1546
1547
1548
1549
1550

View File

@ -2,7 +2,7 @@
This week - charts.
![how i met your mother - marshal showing his favourite bars on a pie chart and his favourite pies in a bar chart](media/20131011_week_10/charts.png)
![how i met your mother - marshal showing his favourite bars on a pie chart and his favourite pies in a bar chart](/media/20131011_week_10/charts.png)
Almost. But not quite. We were talking about Gantt and PERT charts. Cool stuff that bussiness people talk all the time. They just love it - give them meetings, status reports, where is it going, how much is it gonna cost, who is working on what, what needs to be done in order to AAA! Just do IT!

View File

@ -8,7 +8,7 @@ In the meantime - I decided to write a poem about git. It's rephrased very epic
## Ode to Version Control
![battle of shipka](media/20131019_week_floor_pi/shipka.jpg)
![battle of shipka](/media/20131019_week_floor_pi/shipka.jpg)
*Oh, Version control!*

View File

@ -24,14 +24,14 @@ All right, here we go!
Lets look around, what is happening. A keyboard consists of electrical switches in a similar way a lamp switch is made.
![Key schematic](media/20151120_after_enter_episode_2_pressing/02_keyboard_first.png)
![Key schematic](/media/20151120_after_enter_episode_2_pressing/02_keyboard_first.png)
Now, see that switch. The two cables have electrons which stay relatively static. (Well, that's a lie, they move all the time buzzing randomly like flies.) Why do they buzz randomly? They are excited but they don't feel strongly to move one way or another. There is no direction in their life. It's like when you are in a big pool and you have more than enough energy to enjoy swimming but with no particular direction. Where is that energy coming from? The loud Big bang. Now, concentrate!
Once we press the button, closing the switch the electrons start feeling a force. It's like a wind starts blowing in one direction and they slowly obey. They still are kind of randomly moving, but randomly with direction.
![Key press](media/20151120_after_enter_episode_2_pressing/02_keyboard_press.png)
![Key press](/media/20151120_after_enter_episode_2_pressing/02_keyboard_press.png)
While our finger is still on the keyboard, the electrons start flowing in one direction. Where is that force actually coming from? Your finger? Not exactly. When you turn on your lamp, your finger just opens the gates for power to go. Now how does your computer know that?
@ -39,7 +39,7 @@ Well, your keyboard is actually not just these two wires connecting the enter. T
No, let's not do that. Let's organize the cables in a **matrix**. Now in this case a matrix is a fancy way to say that cables form grids on two layers. If you have an old keyboard connected to a desktop computer, I would disassemble it and see what's inside. It's pretty cool! Youll see two thin plastic sheets with some very thin paths made of some metal separated by a third layer with holes… it's like a sandwich with emmental cheese, mmm..
![Metal sandwich](media/20151120_after_enter_episode_2_pressing/02_metal_sandwich.png)
![Metal sandwich](/media/20151120_after_enter_episode_2_pressing/02_metal_sandwich.png)
So when you press the button you connect the two pieces of bread of this sandwich through the cheese which lets these electrons flow.
@ -53,7 +53,7 @@ Turns out the the fastest of the fastest types about 200 words per minute which
This is of course in the case of a real, solid keyboard. What if it was one on your smartphone?
![finger pressing smart display](media/20151120_after_enter_episode_2_pressing/02_virtual_keyboard.png)
![finger pressing smart display](/media/20151120_after_enter_episode_2_pressing/02_virtual_keyboard.png)
Well, its pretty similar, just your finger acts as a connector between the two components. Dont worry, these electrons are actually pretty tiny and wont hurt you.
@ -61,12 +61,12 @@ Anyway, the information about the press got to the keyboard controller. And the
Why the two ways?. Well, the brain of any computer, called the **Central Processing Unit** or **CPU** is a very important and busy boss. It allows you to listen to music while you type, move your mouse, browse the Internet and many other tasks.
![Workers queue](media/20151120_after_enter_episode_2_pressing02_queue.png)
![Workers queue](/media/20151120_after_enter_episode_2_pressing02_queue.png)
Now she can either order that some of her workers go and fetch things in which case the workers go, **pull** and then queue or if the keyboard **pushes** a message, the keyboard worker queues. This queue exists so that you can do many things seemingly at the same time. What actually happens is that the boss reads messages really quickly and passes messages around the workers.
![Fast workers queue](media/20151120_after_enter_episode_2_pressing/02_quick_workers.png)
![Fast workers queue](/media/20151120_after_enter_episode_2_pressing/02_quick_workers.png)
It depends on many factors whether the communication will be push or pull. Some interfaces like USB wait for pull from the computer, other push. In the end, the messages always end up in the queue for the boss.

View File

@ -7,7 +7,7 @@ People don't come with debuggers. That would be a highly useful thing. Why?
When writing a computer program sometimes things go wrong. You have introduced a bug. Depending on the programming language and type of bug, the program might "throw an exception", i.e. understand that the program has run into an exceptional condition which is not the "normal flow". For example, when you see an error like this
![blue screen of death](media/20151126_catching_panic_attacks/bsod.jpg)
![blue screen of death](/media/20151126_catching_panic_attacks/bsod.jpg)
it means that your Operating system encountered something it couldn't handle. Different languages talk differently about it - throwing/raising an exception/error or ironically, the language I am learning right now (go), calls it **panicking**.

View File

@ -165,6 +165,14 @@
.video-inline {
width: 30%;
}
img {
max-width: 700px;
max-height: 400px;
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
<link rel="stylesheet" type="text/css" href="{{ url_for('oshipka_bp.static', filename='css/chosen.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('oshipka_bp.static', filename='css/lightbox.css') }}">