dm 1 月之前
父節點
當前提交
84b59a6f86
共有 74 個文件被更改,包括 1535 次插入95 次删除
  1. 24 79
      .obsidian/workspace.json
  2. 140 0
      ASM/asm_x64.md
  3. 19 0
      ASM/gdb.md
  4. 二進制
      Database.kdbx
  5. 216 0
      English/Homework/Homework 6.md
  6. 170 0
      English/Homework/Homework 7.md
  7. 178 0
      English/Homework/Homework 8.md
  8. 5 0
      English/Texts/Text 9.md
  9. 二進制
      English/img/27-1.JPEG
  10. 二進制
      English/img/27-10.JPEG
  11. 二進制
      English/img/27-2.JPEG
  12. 二進制
      English/img/27-3.JPEG
  13. 二進制
      English/img/27-4.JPEG
  14. 二進制
      English/img/27-5.JPEG
  15. 二進制
      English/img/27-6.JPEG
  16. 二進制
      English/img/27-7.JPEG
  17. 二進制
      English/img/27-8.JPEG
  18. 二進制
      English/img/27-9.JPEG
  19. 二進制
      English/img/28-1.jpg
  20. 二進制
      English/img/28-2.jpg
  21. 二進制
      English/img/28-3.jpg
  22. 二進制
      English/img/28-4.jpg
  23. 二進制
      English/img/28-5.jpg
  24. 二進制
      English/img/28-6.jpg
  25. 二進制
      English/img/28-7.jpg
  26. 二進制
      English/img/28-8.jpg
  27. 二進制
      English/img/29-1.jpg
  28. 二進制
      English/img/29-10.jpg
  29. 二進制
      English/img/29-2.jpg
  30. 二進制
      English/img/29-3.jpg
  31. 二進制
      English/img/29-4.jpg
  32. 二進制
      English/img/29-5.jpg
  33. 二進制
      English/img/29-6.jpg
  34. 二進制
      English/img/29-7.jpg
  35. 二進制
      English/img/29-8.jpg
  36. 二進制
      English/img/29-9.jpg
  37. 二進制
      English/img/30-1.jpg
  38. 二進制
      English/img/30-10.jpg
  39. 二進制
      English/img/30-11.jpg
  40. 二進制
      English/img/30-12.jpg
  41. 二進制
      English/img/30-13.jpg
  42. 二進制
      English/img/30-14.jpg
  43. 二進制
      English/img/30-2.jpg
  44. 二進制
      English/img/30-3.jpg
  45. 二進制
      English/img/30-4.jpg
  46. 二進制
      English/img/30-5.jpg
  47. 二進制
      English/img/30-6.jpg
  48. 二進制
      English/img/30-7.jpg
  49. 二進制
      English/img/30-8.jpg
  50. 二進制
      English/img/30-9.jpg
  51. 二進制
      English/img/31-1.jpg
  52. 二進制
      English/img/31-2.jpg
  53. 二進制
      English/img/32-1.jpg
  54. 二進制
      English/img/32-2.jpg
  55. 二進制
      English/img/32-3.jpg
  56. 二進制
      English/img/32-4.jpg
  57. 二進制
      English/img/32-5.jpg
  58. 89 1
      English/words.md
  59. 80 0
      ROTEK/Arbiter, artery.md
  60. 141 1
      ROTEK/allwinner 069 070.md
  61. 38 0
      ROTEK/bt67xx/common.md
  62. 161 0
      STM32/Makefile template.md
  63. 21 0
      Theory.md
  64. 0 0
      Untitled.md
  65. 1 0
      common.md
  66. 19 3
      hardcore web development/11. SQL/SQL настройка.md
  67. 28 0
      hardcore web development/11. SQL/bird_1.sql
  68. 85 0
      hardcore web development/11. SQL/room_1.sql
  69. 25 3
      hardcore web development/11. SQL/Создание таблиц.md
  70. 30 1
      linux/vim.md
  71. 18 6
      todo/Задачи по направлениям.md
  72. 11 1
      todo/Разное.md
  73. 19 0
      todo/Счета.md
  74. 17 0
      tools.md

+ 24 - 79
.obsidian/workspace.json

@@ -1,38 +1,38 @@
 {
   "main": {
-    "id": "702c86104f0a0629",
+    "id": "1df6abbebbab5434",
     "type": "split",
     "children": [
       {
-        "id": "2ae1658cb68580fc",
+        "id": "c98a452b7126fe8b",
         "type": "tabs",
         "children": [
           {
-            "id": "6cf02762d888e2db",
+            "id": "fdfe18f70bb9b808",
             "type": "leaf",
             "state": {
               "type": "markdown",
               "state": {
-                "file": "hardcore web development/11. SQL/Типы данных.md",
+                "file": "hardcore web development/11. SQL/Создание таблиц.md",
                 "mode": "source",
                 "source": false
               },
               "icon": "lucide-file",
-              "title": "Типы данных"
+              "title": "Создание таблиц"
             }
           },
           {
-            "id": "01a0ffe936058281",
+            "id": "f3cea53b7eba1971",
             "type": "leaf",
             "state": {
               "type": "markdown",
               "state": {
-                "file": "hardcore web development/11. SQL/JOIN/LEFT и RIGHT OUTER JOIN.md",
+                "file": "hardcore web development/11. SQL/SQL настройка.md",
                 "mode": "source",
                 "source": false
               },
               "icon": "lucide-file",
-              "title": "LEFT и RIGHT OUTER JOIN"
+              "title": "SQL настройка"
             }
           }
         ],
@@ -42,15 +42,15 @@
     "direction": "vertical"
   },
   "left": {
-    "id": "6664e9908eeea5a2",
+    "id": "160840e813ee758b",
     "type": "split",
     "children": [
       {
-        "id": "97095e32830cbc6f",
+        "id": "d9edfcd834c7c3f7",
         "type": "tabs",
         "children": [
           {
-            "id": "c7584343712d3d31",
+            "id": "6dee72be4e1a429d",
             "type": "leaf",
             "state": {
               "type": "file-explorer",
@@ -63,7 +63,7 @@
             }
           },
           {
-            "id": "e389aabe146b0498",
+            "id": "187c25dad89197fd",
             "type": "leaf",
             "state": {
               "type": "search",
@@ -80,21 +80,7 @@
             }
           },
           {
-            "id": "5f649a68cfee8d78",
-            "type": "leaf",
-            "state": {
-              "type": "markdown",
-              "state": {
-                "file": "Python/SQLite.md",
-                "mode": "source",
-                "source": false
-              },
-              "icon": "lucide-file",
-              "title": "SQLite"
-            }
-          },
-          {
-            "id": "9cc940b45c7a4595",
+            "id": "437b09bebbbb485f",
             "type": "leaf",
             "state": {
               "type": "bookmarks",
@@ -107,23 +93,23 @@
       }
     ],
     "direction": "horizontal",
-    "width": 275.5
+    "width": 300
   },
   "right": {
-    "id": "cf92ccf43e96a53d",
+    "id": "738cad4a933c2c10",
     "type": "split",
     "children": [
       {
-        "id": "4e6c94e5301f3341",
+        "id": "0b9ea39248aee187",
         "type": "tabs",
         "children": [
           {
-            "id": "86c23330f2a84cf8",
+            "id": "3cf5126985c337bb",
             "type": "leaf",
             "state": {
               "type": "backlink",
               "state": {
-                "file": "English/Homework/Homework 5.md",
+                "file": "hardcore web development/11. SQL/SQL настройка.md",
                 "collapseAll": false,
                 "extraContext": false,
                 "sortOrder": "alphabetical",
@@ -133,11 +119,11 @@
                 "unlinkedCollapsed": true
               },
               "icon": "links-coming-in",
-              "title": "Backlinks for Homework 5"
+              "title": "Backlinks for SQL настройка"
             }
           },
           {
-            "id": "06e27be0fe382bd8",
+            "id": "dba9eebcd6330b77",
             "type": "leaf",
             "state": {
               "type": "all-properties",
@@ -166,53 +152,12 @@
       "markdown-importer:Open format converter": false
     }
   },
-  "active": "01a0ffe936058281",
+  "active": "f3cea53b7eba1971",
   "lastOpenFiles": [
-    "hardcore web development/11. SQL/Типы данных.md",
-    "hardcore web development/11. SQL/Дата и время.md",
-    "hardcore web development/11. SQL/JOIN/LEFT и RIGHT OUTER JOIN.md",
-    "English/Homework/Homework 6.md",
-    "English/words.md",
-    "linux/linux common.md",
-    "ROTEK/allwinner 069 070.md",
-    "todo/Задачи по направлениям.md",
-    "common.md",
-    "Python/Архитектура.md",
-    "English/Homework/Homework 5.md",
-    "linux/Сценарий. Полная настройка Windows, WSL и инструментов для разработчика.md",
     "hardcore web development/11. SQL/Создание таблиц.md",
-    "linux/server.md",
-    "todo/Счета.md",
-    "todo/Тренировки и занятия.md",
-    "hardcore web development/11. SQL/JOIN/INNER JOIN.md",
-    "todo/Разное.md",
-    "Комментарии.md",
-    "hardcore web development/11. SQL/Задание.md",
-    "English/img/24-2.jpg.~tmp",
-    "English/img/24-1.jpg.~tmp",
-    "English/img/24-2.jpg",
-    "English/img/24-1.jpg",
-    "Кодинг.md",
-    "hardcore web development/11. SQL/Псевдонимы.md",
     "hardcore web development/11. SQL/SQL настройка.md",
-    "hardcore web development/11. SQL/JOIN",
-    "linux/gogs.md",
-    "linux/GS server.md",
-    "proGit.md",
-    "Pasted image 20250413063157.png",
-    "English/Homework",
-    "English/Texts",
-    "configs/gl_wg.conf",
-    "configs/Текстовый документ.txt",
-    "English/img/20-13.JPEG",
-    "English/img/20-12.JPEG",
-    "English/img/20-11.JPEG",
-    "English/img/20-10.JPEG",
-    "English/img/20-9.JPEG",
-    "English/img/20-8.JPEG",
-    "English/img/20-7.JPEG",
-    "img/flat",
-    "Python/telegram bot",
-    "English/img/13-5.JPEG.~tmp"
+    "hardcore web development/11. SQL/bird_1.sql",
+    "hardcore web development/11. SQL/room_1.sql",
+    "hardcore web development/11. SQL/book_1.sql"
   ]
 }

+ 140 - 0
ASM/asm_x64.md

@@ -0,0 +1,140 @@
+```asm
+movb // копировать 1 байт
+movw // копировать 2 байтa
+movl // копировать 4 байта
+movq // копировать 8 байт
+
+leaq data, %rbx // загрузить адрес переменной data в регистр rbx
+```
+
+~={yellow}Способы адресации=~
+```asm
+// Способ 1: прямая адресация
+
+movw 0x402008, %ax // скопировать 2 байта (адрес 0x402008) в регистр ax
+// или по метке
+movw M, %ax
+
+// Способ 2: косвенная адресация
+// Предварительно загружаем адрес в регистр (3 способа)
+movq $0x402008, %rbx
+movq $M, %rbx
+leaq M, %rbx
+
+// Скопировать в регистр %ax значение из памяти по тому адресу
+// который содержиться в регистре %rbx
+movw (%rbx), %ax
+
+// Можно указать базовое смещение адреса (положительное - вправо, отрицательное - влево)
+movw 8(%rbx), %ax
+
+// Можно указать текущее смещение предварительно загрузив его в регистр
+leaq data, %rbx
+movq $8, %rcx
+movw 0(%rbx, %rcx), %ax
+
+// Можно указать базовое и текущее смещение одновременно
+movw 0(%rbx, %rcx), %ax
+
+// Можно указать размер позиции смещения. 
+// Вот здесь он равен 2-ум байтам
+movw 4(%rbx, %rcx, 2), %ax
+```
+
+~={yellow}Адресация относительно регистра rip=~
+
+%rip - Re-Extended Instruction Pointer - указатель команд. 
+Хранит адрес очередной команды, которая будет выполнена.
+
+Если в качестве базового смещения относительно регистра %rip указана метка, то на место этой метки будет поставлено расстояние в байтах от значения %rip до того адреса, который обозначен данной меткой
+```bash
+movb data(%rip), %al
+```
+
+**PIC (PIE) - Position Independent Code**
+Это код, который не зависит от абсолютных адресов. Все ссылки на ячейки памяти относительные (например относительно счетчика команд). Этот код может быть размещен в любой области памяти. Может использоваться при создании динамических библиотек.
+
+~={yellow}Регистр указателя стека=~
+
+%rsp - Re-extended Stack Pointer - Указатель стека
+В начале выполнения программы содержит адрес, слева от которого можно хранить данные.
+
+Для работы со стеком используются два регистра: %rsp и %rdp
+
+%rsp - адрес левой границы стека
+%rdp - адрес правой границы стека
+
+Перед использованием стека нужно скопировать содержимое регистра %rsp в %rbp.
+Для того, чтобы выделить на стеке память под N байтов нужно вычесть число N из регистра %rsp, тем самым "сместить" %rsp влево на N байтов.
+
+```asm
+// Можно загрузить двухбайтовое значение в стек
+movw $0xabcd, 0(%rsp)
+
+// Или 4-ех байтовое
+movl 0x12345678, 2(%rsp)
+
+// Но 8-и байтовое загрузить напрямую нельзя
+subq %8, %rsp; // выделить 8 байт 
+movq $0x0123456789abxdef, %rax // запись в регистр
+movq %rax, 0(%rsp) // перемещение в стек
+
+// Загрузка данных в стек частями
+subq %1, %rsp; // выделить 1 байт в стеке
+movb $0x12, 0(%rsp); // поместить 1 байт в стек
+
+// Далее помещаем два байта в стек
+subq %2, %rsp; // выделить 1 байт в стеке
+movb $0x1234, 0(%rsp); // поместить 1 байт в стек
+
+// Moжно загрузить в стек 2 (8) байта одной командой
+pushw %0x1234
+
+movq $0x0123456789abxdef, %rax // запись в регистр
+pushq %rax; 
+
+
+// Очисить стек
+movq %rbp, %rsp
+```
+
+Если в программе применяются функции, использующие стандартизованные соглашения о вызовах функций (например функции стандартной библиотеки языка Си), то стек должен быть выровнен по 16-байтовой границе, т.е. адреса правой и левой границ стека должны быть кратны 16 (Шестнадцатеричное представление должно оканчиваться на 0).
+
+В начале программы адрес правой границы стека изначально кратен 16. Далее, память на стеке нужно выделять порциями, объем которых кратен 16.
+
+~={yellow}Вывод строки на экран=~
+
+Для вывода строки на экран можно воспользоваться системной функцией sys_write. Для этого номер этой функции нужно загрузить в регистр %rax.
+
+У функции sys_write три параметра:
+
+fd - file descriptor, загружается в регистр %rdi = целое положительное число, которое определяет, куда будет производиться вывод. Для вывода на экран нужно строку отправить в выходной поток. Дескриптор выходного потока равен 1.
+
+2-ой параметр
+buf - buffer - загружается в регистр %rsi - адрес первого байта выводимых данных (адрес начала строки, которую нужно вывести).
+
+3-ий параметр
+count - загружается в регистр %rdx - количество выводимых байтов (символов)
+
+```asm
+// Директивы .string и .asciz добавляют в конце строки нулевой байт.
+```
+
+Можно вставлять символы по кодам
+```asm
+.ascii "test\12"; // это код символа в восьмеричной системе
+.ascii "test\x0a"; // это в шестнадцатиричной
+```
+
+Так же работает обычное экранирование символов
+
+~={yellow} Бинарные и текстовые файлы=~
+*Текстовый файл* - файл в котором каждый байт соответствует коду печатного символа (а так же управляющие элементы: перенос строки, табуляция и т.д.).
+
+~={yellow}Сегменты программы=~
+
+*Сегмент кода* является главным в программе, именно он определяет последовательность действий, которые выполняет программа. Сегмент кода является обязательным, в то время как других сегментов может не быть, так как сами данные без кода - это уже не программа. Объявляется директивой .text.
+
+*Сегмент данных* начинается с директивы .data.
+
+~={green}остановился на начале 14=~

+ 19 - 0
ASM/gdb.md

@@ -0,0 +1,19 @@
+```bash
+$ gdb my_file.exe # запустить отладчик
+$ r (run) # запустить программу
+$ b _start # установить breakpoint на адрес с меткой _start
+$ disassemble _start # выводить ассемблерный код до конца программы или до конца следующей метки
+$ i r (info registers) # вывести содержание регистров
+$ x/s &метка (или адрес) # вывевсти строку символов
+
+$ x/5bd &метка (или адрес)
+# x - eXamine
+# 5 - количество байтов
+# b - Byte
+# d - Dec (десятичная форма) - по умолчанию
+
+$ ni # выполнить следующую команду
+
+$ n (next) или s (step) # выполнить код до слудующей точки останова
+
+```

二進制
Database.kdbx


+ 216 - 0
English/Homework/Homework 6.md

@@ -129,3 +129,219 @@ Uncountable: fish, beef, sugar, bread, gravy (подливка), meat, water, ch
 4. The customer bought a carton of orange juice.
 5. Have you got a packet of black tea?
 6. 
+
+---
+		Infinitive or Gerund
+Герундий после любого предлога. После глаголов предпочтения.
+	
+~={green}73 Подчеркни правильный вариант.=~
+1. We thanked him for helping in our work.
+2. They have a lot of opportunites (возможности) to travel to foreign countries.
+3. I want to play tennis.
+4. Anna hates being late.
+5. What would you like to change in your school?
+6. You mustn't forget to bring your exercise-books to school.
+7. I enjoy listening to my granny.
+8. She is afraid to return home alone.
+9. Students went to the canteen to have lunch.
+10. He dislikes wearing comfortable shoes for dancing.
+11. Our school offers to join different societies (сообщества).
+12. He dreams taking part in the competition.
+
+~={green}74 Вставь глагол в gerund или infinitive.=~
+1. I don't like the idea of reading English without vocabulary.
+2. We can develop our artistic abilities in the art centre.
+3. I prefer learning English languages in our Foriegn language centre.
+4. The students have to wear their uniforms every day.
+5. One day I would like to travel around the world.
+6. I am learning to play the violin in the music centre.
+7. Kate needs to know about school rules.
+8. Our students enjoy taking part in different parties.
+9. The teacher asked some question and went on telling about different clubs.
+10. The professor hates giving bad marks.
+11. My father likes going for long walks in the early morning.
+12. My elder brother went to college and I hope to go there too.
+13. We dislike living in the city centre because of the air pollution.
+
+~={green}93 Переведи=~
+1. Every day my parents water the flowers with fresh water. Каждый день мои родители поливают цветы чистой водой.
+2. Do you cool your hot food before your meel? Ты остужаешь свою еду перед тем как поесть?
+3. Children took pork chops from the fridge and warmed them up.
+4. If you clean your clothes? they will be clean and neat.
+5. I walked with my dog. Our walk lasted 20 minutes.
+6. Do you usually warm up your food or you prefer to eat it cold?
+7. We cooked a piece of meat and sliced it.
+8. For breakfast we usually smear (намазывать) some slices of white bread with butter.
+9. After my granny bakes a pie, she puts it on the kitchen table to cool.
+10. He offered us different dishes. We agreed with his offer to try some of them.
+11. When my parents redecorated my room they glued the walls with new wallpaper.
+12. Sushi is usually made with slices of very fresh fish.
+
+~={green}94 Определи часть речи (существительное или глагол).=~
+1. Butter (verb) the pan with a little bit of butter (noun).
+2. I don't take a bus, I usually walk (verb). We go for a walk (noun) in the afternoon.
+3. I can ansewr (verb) yuor question. Is my answer (noun) correct?
+4. I have bought a tie (галстук) (noun) for my cousin. Has your little brother learn how to tie (verb) his shoues?
+5. He comes home from work (noun) a 7 o'clock. He works (verb) at a hospital.
+6. If often reains (verb) in this place, but the rains (noun) are short.
+7. I often visit (verb) my uncle. Today is my tenth visit (noun).
+8. Slice (verb) the bread and butter the slices (verb).
+9. Snow covered (verb) the ground. The cover (noun) was as white as snow.
+10. They play (verb) in the theatre. Did you see their play (noun)?
+11. Autumn (noun) is a fine (прекрасное) season of the year.
+12. My parents usually help (verb) me. I need their help (noun).
+13. I can't give you the book. I have promised (verb) it to Vera. She has given me her promise (noun).
+14. What interests (verb) you most of all? Our interests (noun) are quite different.
+
+~={green}95 Переведи.=~
+1. Тебе нужно два кусочка белого хлеба, намазанных маслом. You need two slices of white bread spread with butter.
+2. Ты покажешь мне дорогу на станцию? Представления в театре начинаются в 7:00. Could you show me the way to the station? The performances in the theathre start at 7.
+3. В бутылке много воды. Она поливает цветы каждый вечер. The is much water in the bottle. She waters the flowers every evening.
+4. Суп едят теплым. Подогрей его! Soup is eaten warm. Warm it up!
+5. Иван работает в булочной. Он любит свою работу. Ivan works in a bakery. He likes his work.
+6. Разрежь хлеб на ломтики и запеки их в духовке. Slice the bread and bake them in the oven.
+7. Их визит был неожиданным (unexpected). Они редко посещают нас. Their visit was unexpected. They rarely visit us.
+8. Остуди пирог и посыпь (sprinkle) его орехами. Cool the pie and sprinkle it with nuts.
+9. Мои друзья помогают мне. Я благодарен им за их помощь. My friends help me. I am grateful to them for their help.
+10. Почисти свои туфли до того как ты уйдешь из дома. Держи (keep) свой класс в чистоте. Clean your shoes befor leaving the house. Keep your classroom clean.
+11. Заверни свой сэндвич в бумагу и положи его в сумку. Papper your sandwich into the papper and put it into your bag.
+12. Где ты планируешь провести летние каникулы? Вчера я рассказал ему о своем плане. Where are you planning to spend you summer holidays? I told him about my plan yesterday.
+
+~={green}96 Исправь ошибку.=~
+1. He cleans his oven (печь) very often.
+2. Where did you put the dirty baking sheet?
+3. Mark doesn't cool a hot dish.
+4. Slice the pears and put the pieces of pears into the pan (кастрюля).
+5. The walls in our room are covered with wallpaper.
+6. Wash the apples, slaice them, sprinkle with sugar and bake in the oven.
+7. Add some butter and mix it with flour.
+8. I need empty glasses.
+
+---
+
+~={green}98 Подчеркни правильный вариант.=~
+1. There are a lot of leaves on the ground in autumn.
+2. Put spoons, forks and knives on the table.
+3. The wolves were shot by the hunter.
+4. The roofs of the houses were covered with snow.
+5. We cut the cake into (почему into) halves.
+6. I have many bookshelves in my room.
+7. The wife of the sailor (моряк) is standing on the shore (берег).
+8. Buy a loaf of bread on your way home.
+9. The thieves stole a picture.
+10. Do you like these handkerchiefs?
+
+~={green}99 Образуй множественное число от следующих существительных.=~
+1. A shelf - shelves
+2. A life - lives
+3. A safe - safes
+4. A cliff - cliffs
+5. A chief - chiefs
+6. A roof - roofs
+7. A half - halves
+8. A wolf - wolves
+9. Belief - beliefs (вера)
+10. A calf - calves (теленок)
+
+~={green}100 Переведи=~
+1. Последние листья упали с деревьев. The last leaves have fallen from the trees.
+2. Твои носовые платки грязные. Положи их в стиральную машину. Your handkerchiefs are dirty. Put them into washing machine.
+3. Купи, пожалуйста, бутылку молока и 2 буханки хлеба. Please buy a bottle of milk and two loaves of bread.
+4. Полиция нашла воров. The police found the thieves.
+5. Мы никогда не видели волков в нашем лесу. We have never seen wolves in our forest.
+6. Белорусы официально празднуют рождество 2 раза, потому что у них две христианские веры в стране. The belarusians officialy celebrate Christmas twice because they have two Christan beliefs in the counry.
+7. Возьми нож и разрежь пирог на 2 половинки. Take a knife and cut the pie inro 2 halves.
+8. На улице холодно! Дети оденьте шарфы! Is's cold outside! Children, put on your scarves!
+9. Положи свои книги на полки. Put your books on the shelves.
+10. На лугу много телят. There are a lot of calves in the field (meadow).
+
+~={green}101 Исправь ошибку.=~
+1. The chiefs of the leading companies are discussing a new plan in the assembly hall.
+2. Our laves were out of danger now.
+3. The wives were waiting for their husbands the whole war.
+4. There are many personal safes in a bank.
+5. The knives were sharp.
+6. There are a lot of cliffs along the west coast of Ireland.
+7. In outumn we can see a carpet of different leaves on the graund.
+8. The 2 halves of the apple are on the table.
+
+~={green}103 Переведи=~
+1. You must be careful not to cut yourself with a-knife. - Ты должен быть осторожен, чтобы не порезаться ножом.
+2. He can do it himself.
+3. She cooked herself a three-course meal.
+4. We enjoyed ourselves very much at the concert. Мы хорошо провели время на концерте.
+5. Be careful, children, don't hurt yourselves.
+6. I saw myself on TV last night.
+7. Bob is making himself a cup of tea now.
+8. We cleaned the house by ourselves.
+9. The soldiers defended themselves bravely.
+10. Go and wash youself, Mike!
+11. Did your friends paint the house themselves?
+12. The dog opens the refrigerator by itself.
+
+~={green}104 Вставь соответствующее местоимение.=~
+1. A am not speaking for myself.
+2. The machine works by itself.
+3. The dish is hot, don't  burn yourself.
+4. Regina made very tasty soup all by herself.
+5. They think of nobody but (кроме) themselves.
+6. Have you been all by yourselves the whole day, children?
+7. Antony examined (осматривать) himself in the mirror.
+8. We are sure of ourselves. Мы уверены в себе.
+9. I'd like to know more about you. Tell me about yourself.
+10. He fell off his bike, but didn't hurt himself.
+11. I should remind myself to write down her address.
+12. She has the habit of talking to herself.
+13. The cat that walks by itself.
+
+~={green}105 Найди правильную пару.=~
+1 - c
+2 - d
+3 - f
+4 - a
+5 - b
+6 - h
+7 - e
+8 - g
+
+~={green}106 Ответь на вопросы. Скажите, что эти люди сделали сами.=~
+1. Who bought that book for him? - He bought it himself.
+2. Who helped them to translate the exercise? The trablslated the exercise themself.
+3. Who helped you to find the recipe? I found the recipe myself.
+4. Who built their house? They built their house themselves.
+5. Who helped her to cook a cottage pie? She cooked it herself.
+6. Who cooked your breakfast this morning? I cooked my breakfast byself.
+7. Who made him fried potatoes yesterday? He made fried potatoes himself.
+8. Who cleaned your classroom? - We cleaned our classroom ourselves.
+9. Who hurt the cat? - Cat hurt itself.
+10. Who helped the little girl to dress? - She helped herself.
+
+~={green}107 Переведи.=~
+1. Мой друг часто рассказывает мне о себе. My friend often talks to be about himself.
+2. Ты веришь в себя? Do you believe in yourself?
+3. Они сделали этот обед сами. They made this denner themselves.
+4. Нож был острый, и она порезалась. The knife was sharp, and she cut herself.
+5. Мы сами можем позаботиться о себе. We can take care of ourselves.
+6. Она сама может приготовить жареную картошку. She can cook fried potatoes herself.
+7. Ученики сами ответили на вопросы учителя? Did the students answer the teacher's question themselves?
+8. Твоя сестра готовит пироги сама? Does your sister cook pies herself?
+9. Я сама приготовила завтра. I cooked breakfast myself.
+10. Он сам исправил ошибку. He corrected the mistake himself.
+11. Мы не любим говорить о себе. We don't like to talk about ourselves.
+12. Ты всегда покупаешь одежду сам? Do you always buy clothes youself?
+13. Мне нравиться убирать квартиру самой. I like to cleat the flat myself.
+14. Он увидел это сам. He saw it himself.
+
+~={green}108 Исправь ошибку.=~
+1. If you want the task done well, do it yourself.
+2. Did the boys build this boat themselves?
+3. My sister often looks at herself in the mirror.
+4. He fell down and hurt himself.
+5. We will do ourselves.
+6. The house itself is not worth much but the land is valuable (ценная).
+7. Have you seen the chief himself?
+8. It's my problem. I have taken the decision myself.
+9. Can a little child take care of itself?
+10. They introduced themselves.
+11. William cutting himself when he was shaving.
+12. Children packed their things themselves.

+ 170 - 0
English/Homework/Homework 7.md

@@ -0,0 +1,170 @@
+~={green}110 Подчеркни правильный вариант.=~
+1. What does money look like in Egypt?
+2. People in many European countries miss (скучать) their currency?
+3. Where was paper money invented (изобретать)?
+4. How much cash do you usually have on you every day?
+5. Have you got cash in your wallet?
+6. How meny pences are there in your purse?
+7. Money is not everything.
+8. He has got some metal money.
+9. Do you usually save your money or spend it at once (сразу же)?
+10. This cake costs 80 pence.
+11. How much pocket money do your parents give you?
+
+~={green}111 Исправь ошибку=~
+1. She has never taken money out of the cash-machine. Она никогда не снимала деньги в банкомате.
+2. The toy costs 85 pence.
+3. My dream is to buy a new car and I am saving money.
+4. Where do you carry your coins?
+5. What is the currency of the UK?
+6. He has much cash in his wallet.
+7. Money talks.
+8. Is the money in the bag? - No, I put it in this wallet.
+9. Does she use credit cards or cash?
+10. I don't have any pocket money to pay in the supermarket. 
+11. He pays for his shopping in cash.
+12. Do people in Britain have both coins and banknotes?
+
+~={green}113 Подчеркни правильный вариант.=~
+1. He has been saving money for a car, but he has not saved yet.
+2. I have  known him for many years.
+3. We have done charity work. (благотворительная работа)
+4. My friend has always being careful with money.
+5. They have been helping the poor children for many years.
+6. How long have you been saving for your new mobile phone.
+7. Have you done your homework yet?
+8. My daughter has been learning poems for 2 hours.
+9. How long have you been buying clothes in this shop?
+10. My mother has never won money in a lottery.
+11. Have you ever wanted to win a lot of money?
+12. How many prizes has he won?
+
+~={green}114 Составь предложения.=~
+1. Bob has been playing football for 3 years. He has won 7 games.
+2. Paul has been watching video for 5 hours. He has seen 3 films.
+3. Margaret has been washing up for half an hour. She has broken some cups.
+4. My friends have been doing the shopping all the day long. They have bought a lot of things.
+5. I have been making pancakes since morning. I have made 20 pancakes.
+6. Maxim has been trying to lose weight for ages. He has lost ten pounds so far.
+7. Tourists have been looking for a monster in Loch Ness for many years. They haven't seen it yet.
+8. My dad has been reading detective stories since childhood. He hase already read 200 novels.
+
+~={green}115 Поставь вопросы.=~
+1. Max is a singer. How long has he been singing? How many records has he made?
+2. Jenny is a teacher at school. How long has she been a teacher? How many pupils has she taught?
+3. You know that Matthew has been to the UK several times. How many times has he been to the UK.
+4. Your friend Alex is learning to drive. How long has he been learning to drive?
+5. You meet an old friend you haven't seen for ten years and you ask him. What has he been doing all this time? Where has he been?
+6. They always go to Spain for their holidays. How many times have they gone to Spain.
+7. You want to know if it is still raining. Has it rained yet? (Здесь уточнить на счет rained)
+8. You are swimming, your hair is wet. How long have you been swum?
+9. My granny looks tired. She has been washing up the plates. How many plates has she washed? How long has she been washing?
+
+~={green}116 Поставь правильную форму.=~
+1. I have written the letter. You can send it.
+2. What have you been doing for the last 3 hours?
+3. We have always leaved in this flat.
+4. How long have you known the truth? (Уточнить на счет know)
+5. I am sorry, we are late. Have you been waiting long?
+6. I think John has forgotten my number. I have been expecting his call for the last two hours.
+7. I am tired. I have been working for ten hours and I haven't finished yet.
+8. He has been shoping since mornig, he has already spent a lot of money.
+9. My mother has asked me about my pocket money a dozen times.
+
+---
+
+~={green}118 Поставь правильную форму (Present Perfect - Present Perfect Conrinuous)=~
+1. They have been repairing the bridge the whole month but they haven't finished it yet.
+2. I am very sorry, but I have broken this chair.
+3. This is my friend Mike. He has been working as a driver for the last 3 years.
+4. What's the matter? Have you lost anything?
+5. My mother has been working in a bank all her life.
+6. He has been planing to visit Japan since 2010.
+7. How long have they been arguing? Oh, they have been arguing for an hour, I think.
+8. Someone has eatten my chocolate. There isn't any left.
+9. They have planted all young trees in the park. The job is done.
+10. How many dates have you learnt for your history lesson?
+11. Mary has cleaned the kitchen and now it looks tidy and nice.
+12. I heve been collecting some material for my report since September and I and I have find only some articles yet.
+
+~={green}119 Переведи.=~
+1. Он смотрит телевизор сейчас. Он смотрит телевизор с самого утра. He is watching TV now. He has been watching TVince morning.
+2. Мы уже уложили вещи и ждем такси уже 20 минут. We have already packed luggage and have been waiting for a taxi for 20 minutes.
+3. Я рада, что он накопил деньги на новый компьютер. I am glad that he has saved up money for a new computer.
+4. Мой друг бесполезно потратил деньги на компьютерные игры. My friend has wasted money on computer games.
+5. Они спорят о покупках уже несколько часов, но еще не решили, какие подарки купить. They have been arguing about shopping for several hours, but they have not  decided yet what presents to buy.
+6. Посмотри, кто-то разбил окно. Look, someone has broken the window.
+7. Моя сестра пишет стихи. Она пишет их с детства. Она написала 20 стихотворений пока. My sister writes poems. She has been writing them since childhood. She has written 20 poems so far (пока).
+8. Ты когда-нибудь продавал свои вещи? Have you ever sold your things?
+9. Сколько времени вы живете в этом городе? Мы только что переехали сюда. How long have your been living in this city.  We have just moved here.
+10. Они знают друг друга много лет. They have known each other for many years.
+
+~={green}122 Подчеркни правильный вариант=~
+1. The rich are people who plan their budgen.
+2. The old receive pensions.
+3. Braille is a system of reading by touch for the blind.
+4. The poor don't plan their budget and spend their money on necessary (необходимые) things.
+5. People who lost their work are the unemployed.
+6. Mary works in a hospital. She has spent her life caring for the sick.
+7. Robin Hood robbed the rich and gave the money to the poor.
+8. During the war many people died. The bodies of the dead were buried (хоронить).
+9. Somethimes the weak can help the strong.
+10. The injured (пострадавшие) were taken to hospital after the car crash.
+
+~={green}123 Поставь прилагательные с или без артикля the.=~
+1. Do you thing rich peple should pay more taxes?
+2. The rich live in the West End in London. This part looks very attractive.
+3. How old is your grandfather?
+4. The government doesn't help the poor.
+5. Poor people have a lot of problems.
+6. The old need our care.
+7. The blind can learn to read with the help of their fingers.
+8. The young often don't understand the old.
+
+~={green}124 Закончи предложения.=~
+1. People who can't hear are the deaf.
+2. People who can't see are the blind.
+3. People who died are the dead.
+4. People who are old are the old.
+5. People who are sick are the sick.
+6. People who are young are the young.
+7. People who can't find jobs are the unemployed.
+8. People who are happy are the happy.
+9. People who are brave are the brave.
+10. People who are educated are the educated.
+
+~={green}127 Выбери правильный вариант.=~
+1. I have read this book. I like it very much.
+2. Who takes care of your children?
+3. Look! She is playing the piano.
+4. I will go to university when I leave school.
+5. When I enered the classroom the pupils were writing the text.
+6. Mary always wears nice clothes for work.
+7. My brother is an artist. He has been painting since he was a small boy.
+8. She is very tired. She has just finished her cooking.
+9. Every day I get up at 7 o'clock.
+10. They were playing the whole day yesterday.
+11. How long have you been waiting for me?
+12. I am going to visit London next month.
+13. You will be late for your train, if you don't take a taxi.
+14. How many letters has she written?
+15. What time do your classes start?
+16. My friends are building a new house.
+
+~={green}128 Поставь правильную форму глагола, подчеркни слова-подсказки.=~
+1. When I came to Antony's house last Sunday, he was watching an interesting film on TV.
+2. My mother has been teaching at our school for 10 years now.
+3. Perhaps (возможно) they will buy a new house next year.
+4. Don't speak to him. He is very busy. He is writing the composition.
+5. Where do you always spend your weekends?
+6. I have written 3 exercises today.
+7. If you ring Davee tomorrow, he will tell you all about this problem.
+8. The children have been draving since they came home.
+9. What were you doing from 5 till 7 o'clock yesterday?
+10. Where do the Johnsons live?
+11. We will spend next summer in the country.
+12. It usually takes me two hours to do my homework.
+13. Chemistry has never been my favourite subject.
+14. Diana looks like her father.
+15. If Dad buys a new car, we will go to the sea-side by car next summer.
+16. It didn't rain last night.

+ 178 - 0
English/Homework/Homework 8.md

@@ -0,0 +1,178 @@
+~={green}138 Ответь на вопросы, используй страдательный залог.=~
+1. Are many holidays celebrated in your country? - Yes they are. Many holidays are celebrated in my country.
+2. Were the special preparations made for the holiday? The special preparations were made for the holiday.
+3. When were the decorations put up? The decorations were put up over several weeks.
+4. What presents were usually bought for Christmal? Different presents were bought for Christmas.
+5. Who was the house usually cleaned by? The house was usually cleaned by the whole family.
+6. What traditional holiday dishes are cooked in your family? Salad, meat and fish are cooked in our family.
+7. What were Christmas Trees usually decorated with? Christmas Trees were decorated with ornament, lights and tinsel. (шарики, гирлянды, мишура)
+8. Where were usually Christmas carols sung? Christmas carols were usually sung in the streets.
+9. Who was Christmas usually celebrated with? Christmas was usually celebrated with family.
+10. Were Christmas presents opened on Christamas morning or at midday? Christmas presents were usually opened in the morning.
+
+~={green}139 Заполни пропуски предлогами with или by.=~
+1. The sauce was made with tomatoes and onions.
+2. The glass was filled with juice.
+3. The quiz was won by Steven.
+4. The cake was cut with a knife.
+5. The house was decorated with balloons.
+6. The flowers were brought by father.
+7. The cards were written by Ann.
+8. Traditional Christmas pudding was cooked by Granny.
+9. The presents were given by Santa Claus.
+10. The table was decarated with candles.
+11. The house was cleaned by mother.
+
+~={green}140 Поставь глагол в скобках в Past Simple Passive.=~
+1. Last year Nick was invited to Britain to celebrate Christmas.
+2. Money was collected for charity (благотворительность) before Christmas.
+3. Holiday songs and carols were heard in the streets and churches.
+4. The houses were decorated with evergreens to protect homes from evil spirits.
+5. Traditional roast turkey was cooked by mother and Granny.
+6. Christmas Tree was put up in the living room and decorated.
+7. The festive table (праздничный стол) was laid in the dining-room.
+8. Great family amusement (отличное семейное развлечение) was prepared before Chrismas.
+9. Christmas presents were packed and put under the Christmas Tree.
+10. Holiday cards were written and sent to many friends.
+11. The candles were lit (light) on the holiday table.
+12. The holiday were celebrated together with family and friends.
+
+~={green}141 Поставь глагол в скобках в Passive Voice=~
+1. - Did you have a nice time in Britain? - Oh, yes. We were taken to some places of interest and shown some exciting attractions.
+2. - Did To decorate his house himself? - No, it was decorated by his brother and sister.
+3. - What did you get for Christmas? - I was given the most beautiful pair of shoes I have ever had.
+4. - This cake tastes wonderful. - Thanks. It was made by my Granny.
+5. - That's a lovely dress. - It was given to me on my birthday.
+6. - When will your watch be ready? - I don't know. It wasn't fixed yet when I went to the repair shop yesterday.
+7. - How was the Christmas celebration? - It was lovely! The house was decorated with lights and balloons, the table was laid.
+8. - Look at this card! It's wonderful. - Yes, it was sent by Nick from London.
+9. - That's a beautiful sweater you are wearing! - Thank you. It was knitted by my aunt.
+10. - Did you send the Christmas card to Suise?
+11. - Yes, the card was made by Ann.
+
+~={green}146 Переведи.=~
+1. Письмо было написано на прошлой неделе. The letter was written last week.
+2. Дом был украшен гирляндами, огнями и шариками. The house was decorated with garlands, lights and ornaments.
+3. Стол был накрыт к празднику. The table was laid for the holiday.
+4. Были ли друзья и родственники приглашены? Were friends and relatives invited?
+5. Вкусные блюда были приготовлены мамой и бабушкой. Delicious dishes were cooked by mother and grandmother.
+6. Подарки открывали до полуночи? Were presents opened before midnight.
+7. Квартиру убрали вчера вечером. The flat was cleaned last evening.
+8. Были ли цветы закуплены до начала праздника? Were flowers bought before the holiday?
+9. Салаты не были заказаны в ресторане. Salads were not ordered at the restaurant.
+10. Знания не были улучшены. Knowledge was not improved.
+11. Были ли сделаны новогодние обещания? Were Ney Year's resulutions made?
+12. Пожелания удачи были написаны и отосланы. Good luck wishes were written and sent.
+
+~={green}149 Переведи, используя Past Simple Passive и Present Simple Passive.=~
+1. The plot (заговор) against King James I was organized. (был организован)
+2. Bonfire Night is celebrated all over the UK.
+3. Unfair laws were not changed by King James I.
+4. The Protestant church wasn't vesited by the Roman Catholics.
+5. A house was bought next door to the Parliament.
+6. The Parliament wasn't blown up by the plotters (заговорщики).
+7. The plotters were arrested and interrogated.
+8. It was ordered to have a great bonfire on the night of the 5 of November.
+9. The event is celebrated annually (ежегодно) in England.
+10. Money for fireworks is collected by children during the days before Bonfire Night.
+11. An effigy of Guy Fawkes was burnt and the traditional food was cooked in the fire.
+12. Traditional Parkin cake is eaten on Bonfire Night.
+
+~={green}150 Поставь вопрос к подлежащему.=~
+1. She told them an interestin story. Who told them an interesting story?
+2. We were shown a photo album. Who was shown a photo album?
+3. He asked the teacher to explain the rule. Who asked the teacher to explain the rule?
+4. Mary was given a lot of flowers and presents. Who was given a lot of flowers and presents?
+5. Nick helped her to bring all the dishes to the kitchen. Who helped her to bring all the dishes to the kitchen?
+6. They were invited to his birthday party last week. Who was invited to his birthday party last week?
+7. The porter brought the luggage to our room. Who brought the luggage to our room.
+8. Jim was sent to London last month. Who was sent to London last month?
+9. Kate and Mary came to our garden party last week-end. Who came to our garden party last week-end.
+10. The pictures were brought to the Russian Museum yesterday. What was brought to the Russian Museum yesterday?
+
+~={green}151 Переведи=~
+1. Кто издал законы против католиков в Англии в 16 веке? Who made laws against Catholics in England in the 16th century?
+2. Кто был приглашен на праздновании "Порохового заговора" в прошлом году? Who was invited to the Gunpowder celebration last year?
+3. Кто почувствовал, что правительство несправедливо к ним? Who felt that the gavernment was unfair to them?
+4. Кто надеялся, что король Джеймс 1 изменит несправедливые законы? Who hoped that King James 1 would change tu
+5. Кто должен был посещать протестантскую церковь по воскресеньям? Who had to attend Protestant church on Sundays?
+6. Кто был арестован в подвале здания парламента? Who was arrested in the basement of the Houses of Parliament?
+7. Кто отмечал дату 5 ноября? Who celebrated the date of November 5th?
+8. Кто готовил традиционные блюда этого праздника? Who cooked the traditional dishes of this holiday?
+9. Кто делал чучела для Ночи Костров? Who made the effigies for Bonfire Night?
+10. Кто собирал деньги для фейерверков? Who collected money for the fireworks?
+11. Кто был главным заговорщиком в "Пороховом заговоре"? Who was the main plotter in the Gunpowder Plot?
+12. Кто просил "копеечку для Гая" на улицах перед праздником Ночи Костров? Who asked for "a penny for Guy" on the streets befor the Bonfire Night holiday?
+
+~={green}160 Вставь подходящий инфинитив из рамки и переведи.=~
+1. I'd like to invite you to a garden party.
+2. I am sure you would like to visit a zoo.
+3. Sue would prefer to go to the theatre.
+4. Ann would love to go to Paris oneday.
+5. Joe would like to listen to some rock.
+6. I would prefer to watch cartoons.
+7. I would like to have a month at the seaside.
+8. Nick would like to go to that new restaurant.
+9. I would love to have a new car.
+10. I would prefer to study at this college.
+11. Mike would love to see his Granny on Tuesday.
+12. She would prefer to go shopping instead (вместо).
+13. I am glad to see you.
+14. Jim was sorry to talk news.
+15. Mary was happy to meet John.
+16. Nick was annoyed (раздраженный) to learn that his train had left.
+17. He was so anxious (встревожен) to hear about his success.
+
+~={green}161. Дополни предложения, используя слова в скобках.=~
+1. He is tired of repeating the text.
+2. The pupils were busy writing their exercise.
+3. She is used to working hard at her English.
+4. He thanked her for helping him.
+5. We don't think of moving to Grodno.
+6. Are you afraid of going out late?
+7. Helen agreed to looking after the child.
+8. The girl is found of dancing a waltz.
+9. We are looking forward to meeting you.
+10. Peter was proud of winning the first prize.
+11. Aunt Sue thanked me for calling her.
+
+~={green}162. Вставь предлоги, где необходимо.=~
+1. I am busy getting ready for the party.
+2. He was surprised at hearing the noise.
+3. We thanked him for being kind to us.
+4. She succeeded in organizing the party.
+5. It was no use waiting for the ansewer.
+6. Nick objected to inviting a music band.
+7. I don't mind closing the window.
+8. Thank you for sending me the invitation card.
+9. Are you tired of decorating the house for the party?
+10. My brother is fond of cooking cakes.
+11. There was no point in calling him.
+12. They thought of switching on music.
+13. Kate is afraid of going home alone.
+
+~={green}163. Используй -ing form с предлогом, где необходимо.=~
+1. The boy is fond of playing the guitar.
+2. The girls are busy reading the book.
+3. Do you agree to us?
+4. They were not afraid of spending the night in the forest.
+5. Dan is not used to climbing mountains.
+6. Mike didn't succeed in doing business.
+7. He thinks of building his house.
+8. Are you tired of working in the garden?
+9. I don't object to celebrating your birthday.
+10. We were sure of doing it.
+11. Are you fond of swimming?
+12. Was she proud of writing this poem?
+
+~={green}164. Исправь ошибку.=~
+1. She is busy writing the invitations to the party.
+2. I would like to visit the Opera House this time.
+3. Jane is used to walking home after school.
+4. He would love to drink a cup of coffee after dinner. (После would love ставим инфинитив!)
+5. I am happy to see you again safe and sound (цел и невредим). (после прилагательного инфинитив)
+6. They went to the party to congratulate Nick on his 15th birthday.
+7. She was sure of sending an invitation to Helen.
+8. Is it worth breaking traditions?
+9. There is no point in waiting for Mike. (He is always late.)
+10. Ted objected to buying a tour to far away countries.

+ 5 - 0
English/Texts/Text 9.md

@@ -0,0 +1,5 @@
+			OUR PARENTS AND OUR QUALITIES
+An important new report says that a child's chances of success in life depend on their parents. The way parents bring up their child builds up that child's character. And having the right characrer is importent for opportunities for future happiness.
+According to the report, there are specific personal qualities that parents should work hard to develop in their children so that they can have a good start in life. One of these qualities is the ability to concentrate on a task and stay with it until it is finished. Another quality is the ability to see things from other people's point of view and understand their needs and feelings. It is the main skill that allows individuals to communicate with each other effectively.
+Self-discipline is another important quality. This is something that most children have difficulty learning. Young children often want their desires satisfied immediately. Children don't easily accept 'no' for an answer and they will sometimes have a fight in order to get what they want. When this happens, the parents are under a lot of pressure. There is a strong desire to give the child what he or she wants. But  according to the report, this is the wrong thing to do. The problem is that children will grow up believing that they can have everything they want immediately. This can lead to serious problems because they never learn to plan for the future and think in the long term. When they are adults, they may buy too many things because they can't control how much money they spend. They may have poor health because they only eat or drink what they like instead of what is healthy.
+For the best chances of success, then, children need to learn how to have self-discipline. They also need to be motivated to work hard at tasks and finish them. Of course, a child's character is influenced by lots of different things. Some of these are beyound their of their parents' control and can make a big difference to a child's chances of success in life.

二進制
English/img/27-1.JPEG


二進制
English/img/27-10.JPEG


二進制
English/img/27-2.JPEG


二進制
English/img/27-3.JPEG


二進制
English/img/27-4.JPEG


二進制
English/img/27-5.JPEG


二進制
English/img/27-6.JPEG


二進制
English/img/27-7.JPEG


二進制
English/img/27-8.JPEG


二進制
English/img/27-9.JPEG


二進制
English/img/28-1.jpg


二進制
English/img/28-2.jpg


二進制
English/img/28-3.jpg


二進制
English/img/28-4.jpg


二進制
English/img/28-5.jpg


二進制
English/img/28-6.jpg


二進制
English/img/28-7.jpg


二進制
English/img/28-8.jpg


二進制
English/img/29-1.jpg


二進制
English/img/29-10.jpg


二進制
English/img/29-2.jpg


二進制
English/img/29-3.jpg


二進制
English/img/29-4.jpg


二進制
English/img/29-5.jpg


二進制
English/img/29-6.jpg


二進制
English/img/29-7.jpg


二進制
English/img/29-8.jpg


二進制
English/img/29-9.jpg


二進制
English/img/30-1.jpg


二進制
English/img/30-10.jpg


二進制
English/img/30-11.jpg


二進制
English/img/30-12.jpg


二進制
English/img/30-13.jpg


二進制
English/img/30-14.jpg


二進制
English/img/30-2.jpg


二進制
English/img/30-3.jpg


二進制
English/img/30-4.jpg


二進制
English/img/30-5.jpg


二進制
English/img/30-6.jpg


二進制
English/img/30-7.jpg


二進制
English/img/30-8.jpg


二進制
English/img/30-9.jpg


二進制
English/img/31-1.jpg


二進制
English/img/31-2.jpg


二進制
English/img/32-1.jpg


二進制
English/img/32-2.jpg


二進制
English/img/32-3.jpg


二進制
English/img/32-4.jpg


二進制
English/img/32-5.jpg


+ 89 - 1
English/words.md

@@ -112,4 +112,92 @@ a can - консервная банка для напитков
 a bowl - миска
 a loaf - буханка хлеба
 a jar - стеклянная банка
-a chunk of - ломоть
+a chunk of - ломоть
+~={yellow}Lesson 4=~
+add - добавить
+to bake - печь, выпекать
+to pour - лить, наливать
+peel - чистить кожуру
+to serve - накрывать на стол, подавать
+
+to pat dry - протирать полотенцем
+to wrap - заворачивать
+season with - приправлять
+to melt - таять
+a potluck party - a potluck dinner/supper - совместная вечеринка\обед на которую гости приходят со своими угощениями
+shepher pie - пастуший пирог (национальное блюдо)
+a cottage pie - запеканка из картофельного пюре и говядины
+a cottage chees - творог
+
+
+~={yellow}UNIT 4. Lesson 1=~
+money - деньги
+a bamknote - банкнота, купюра
+a coin - монета
+currency - валюта
+a credit card - кредитная карта
+cash - наличные деньги (in cash or by card)
+a wallet - бумажник
+a purse - женский кошелек
+a cash-machine - банкомат
+to save - экономить, копить
+spend - spent - spent - тратить, расходовать
+to waste - бесполезно тратить
+to pay for  - платить за что-то
+to borrow - занимать, одалживать, брать взаймы на время
+to lend - lent - lent - одалживать, давать взаймы
+seld - sold - sold - продавать
+cost - cost - cost - стоить
+to earn - зарабатывать
+charity - благотворительность
+to afford (to ) - позволить себе что-либо в материальном плане
+
+~={yellow} Lesson 3=~
+fair - справедливый, честный, светлые волосы, ярморка
+to argue - спорить, убеждать
+to decide - решать
+extra - дополнительный
+expensive - дорогой
+~={yellow} Lesson 4=~
+to cut down - сократить, урезать, вырубать
+expenses - расходы
+budget - бюджет, to budget - составлять бюджет
+responsible for - ответственный за
+rich - богатый
+poor - бедный
+to make ends meet - сводить концы с концами
+~={yellow}Lesson 5=~
+chores - рутинная, неприятная работа/обязанности
+~={yellow}Unit 5. Lesson 1=~
+Christmas Day - the twenty-fifth of December
+Halloween - the thirty-first of October
+Saint Velentine's Day - the fourteenth of February
+Easter
+New Year - the first of January
+April Fool's Day - the first of April
+Bonfire Night - the fifth of November
+Victory Day - the ninth of May
+celebrate - to celebrate, to be celebrated
+Commemorete - to commemorate, to be commemorated - чтить память
+Inttoduce - to introduce, to be introduced - вводить законы
+~={yellow}143=~
+stay up until midnight - не ложиться спать до полуночи
+see in - встречать
+strike - удар
+join hands - соединять руки
+follow a custom - соблюдать обычай
+knock at the door - стучать в дверь
+make New Year's Resulutions - давать обещания под новый год
+improve - улучшать, совершенствовать
+luck - удача, везение
+care about - волноваться, беспокоиться
+~={yellow}148 Прочитай=~
+anniversary - an anniversary - годовщина
+unfair - fair - unfair - справедливый - несправедливый
+to attend - посещать
+to blow up - взрывать
+next door to - по соседству, рядом
+question - to question - вопрос, спрашивать
+order - an order - to order - приказ, приказывать
+bonfire - костер
+commemorate - to commemorate - отмечать дату

+ 80 - 0
ROTEK/Arbiter, artery.md

@@ -0,0 +1,80 @@
+Тестирование аппаратных модулей. Все пункты ниже выполнены.
+
+- Все режимы работы портов, управляемые мультиплексором. Мультиплексор подключает разные порты к порту принтера - OK.
+- Все режимы ПСД, включая первый режим, который управляется сдвиговым регистром, управляемым Allwinner - OK.
+- RTC - OK
+- LED и Кнопка - OK
+- ADC - аналоговые входы, вход и выход ограничителя тока, напряжения на суперкапах (2 точки) - OK
+- Аналоговые и дискретные, счетные входы
+- Вход и выход из режима "Standby". Получено потребление Artery в режиме standby примерно 215 мкА. - OK.
+
+Программное обеспечение Artery проекта Арбитр (модель 069). Что нужно сделать:
+- Доработать модуль SWC. Добавить все нужные параметры. Протестировать совместно с Alwinner.
+- Доработать и проверить работу счетных входов в режиме "Standby".
+
+Ниже все выводы Artery, задействованные схеме.
+
+- PA0 - f_WAKEAP - сигнал пробуждения (от счетных входов) - OK, в новой ревизии добавить появление внешнего питания  
+- PA3 (ADC3) - f_ADCBKUP - ADC, напряжение АКБ или supercup - OK
+- PA4 - f_ENMEASBKUPPWR - выход, на новой ревизии будет подключать измерительный делитель к напряжению supercup
+- PA5 - f_CLOUT - ADC напряжение на выходе current limiter - OK
+- PA6 - f_PWRDWNART - вход, пропадание внешнего питания - OK
+- PA7 - f_AINP1 - ADC, первый аналоговый вход (всегда) - OK
+- PA9 - f_TXD1ARTS - uart, boot, debug - OK
+- PA10 - f_RXD1ARTL - uart, boot, debug - OK
+- PA12 - f_EXTLEDS - LED на разъеме - OK
+- PA13 - f_SWDIOARTS - SWDIO - OK
+- PA14 - f_SWCLKARTS - SWCLK - OK
+- PA15 - f_PRTKKEY - кнопка принтера - OK
+
+- PB0 - f_ACINP4 - 2-ой счетный вход или 4 аналоговый (настройка зависит от ревизии) - OK, проверен как счетный вход на существующей ревизии
+- PB1 - f_CLIN - ADC, вход current limetter - OK
+- PB2 - BOOT1 - на землю - OK
+- PB3 - f_SWOART - SWO - OK
+- PB4 - f_nENARTTXD3toM3 - выход, разрешение - OK
+- PB5 - f_nENM3toTC3 - выход, разрешение - OK
+- PB6 - f_ARTSCL - I2C с главным процессором - OK
+- PB7 - f_ARTSDA - I2C с главным процессором - OK
+- PB8 - f_M1toARTRXD5 - uart5 rx - OK
+- PB9 - f_ARTTXD5toM1 - uart5 tx - OK
+- PB11 - f_ENBKUPPWR - (на новой ревизии) отключает питание Artery после 8 часов - проверить на новой ревизии
+- PB12 - f_ARTHWREVB0 - рев - OK
+- PB13 - f_ARTHWREVB1 - рев - OK
+- PB14 - f_ARTHWREVB2 - рев - OK
+- PB15 - f_ARTHWREVB3 - рев - OK
+
+- PC0 (ADC10)- f_SCMIDPL - ADC средняя точка supercup - OK
+- PC3 (ADC13) - f_nENTC3toM3 - выход, разрешение - OK
+- PC4 (ADC14) - f_AINP2 - второй аналоговый вход - OK
+- PC5 (ADC15) - f_ACINP3 - первый счетный либо 3 аналоговый - OK, проверен счетный вход на существующей ревизии
+- PC10 (TXD4) - f_nENTC2toAWRX1- выход, разрешение - OK
+- PC11 (RXD4) - f_nENARTTXD2toM2- выход, разрешение - OK
+- PC12 (TXD5) - f_nENM2toARTRX2- выход, разрешение - OK
+- PC13 (TAMPER) - OK
+- PC14 (LEXT_IN) часовой кварц - OK
+- PC15 (LEXT_OUT) часовой кварц - OK
+
+- PD0 (CAN1RX) - f_SRVC3 - выход - OK
+- PD1 (CAN1TX) - f_SRVC2 - выход - OK
+- PD2 - f_ENTC3toAWRXD3 - выход - OK
+- PD3 - fnENAWTXD3toTC3 - выход, разрешение - OK
+- PD5 - f_ARTTXD2toM2 - uart2 tx  - OK
+- PD6 - f_M2toARTRXD2 - uart2 rx  - OK
+- PD7 - f_nENM3toARTRXD3 - выход, разрешение- OK
+- PD8 (TXD3) - f_ARTTXD3toM3 - uart3 tx - OK
+- PD9 (RXD3) - f_M3ToARTRXD3 - uart3 rx - OK
+
+- PE0 (RXD8) - f_MUX1ADR1 - OK
+- PE1 (TXD8) - f_MUX1ADR0 - OK
+- PE3 - f_nENTC2toM2 - выход, разрешение - OK
+- PE4 - f_nENAWTXD1toTC2 - выход, разрешение - OK
+- PE5 - f_nENM2toTC2 - выход, разрешение - OK
+- PE7 - f_IN1 - дискретный вход - OK
+- PE8 - f_IN2 - дискретный вход - OK
+- PE9 - f_IN3 - дискретный вход - OK
+- PE10 - f_IN4 - дискретный вход - OK
+- PE11 - f_IN5 - дискретный вход - OK
+- PE12 - f_IN6 - дискретный вход - OK
+- PE13 - f_IN7 - дискретный вход - OK
+- PE14 - f_IN8 - дискретный вход - OK
+- PE15 - f_CLON - включение current limitter - OK

+ 141 - 1
ROTEK/allwinner 069 070.md

@@ -2,10 +2,33 @@
 - charger.bat_switch_on - не нужен (используется для литиевый АКБ)
 - charge_on - включение зарядка суперкапов и батареи
 - sc_on - включение повышающего преобразователя
+- Статический адрес по умолчанию: **192.168.10.244**
+- При копировании файлов через scp нужно указать дополнительную опцию **-O**
+```bash
+$ scp -O <my_file> root@192.168.10.244:/tmp
+```
+
+~={yellow}Сборка проекта для Artery=~
+Rомпилятор **gcc-arm-none-eabi-7-2017-q4-major**
+```bash
+$ make fw HARDWARE=ARBITER_R
+```
+
+~={yellow}Разное=~
+- Можно ориентироваться на проект для stm32 https://192.168.24.200:3000/drep/teplo_bt7k.git
+- Для питания от supercup нужно включить пин charger.charge_on
+```bash
+$ echo 1 > charger.charge_on/value
+```
+
 
 ~={yellow}Важное=~
 - Теперь повышающем преобразователем управляет Allwinner. Т.е. нужно вносить изменения в основной код. Раньше питание процессора обрубалось Artery.
 
+~={yellow}Вопросы по софту Artery=~
+- Board name - "arbiterR2" (передается в swc) - это правильное имя?
+- 
+
 ~={yellow}Проблемы=~
 - Большой ток утечки (51мкА) в цепи измерения напряжения на SuperCap. Постоянно.
 
@@ -66,7 +89,8 @@ echo 1 > /sys/devices/platform/bt7kgpio/charger.charge_on/value
 ~={green}Задачи по микроконтроллера Artery.=~
 1. Интегрироваться в проект Дмитрия Репникова.
 2. Модуль мультиплексора. Работа мультиплексора проверена. Добавить команды управления в SVC.
-3. 
+
+
 
   // первый аналоговый вход
   // второй аналоговый вход
@@ -77,3 +101,119 @@ echo 1 > /sys/devices/platform/bt7kgpio/charger.charge_on/value
   // верхняя точка super cup
   // средняя точка super cup
 
+~={yellow}Список пинов для проверки=~
+- PA0 - f_WAKEAP - сигнал пробуждения (от счетных входов) - OK, в новой ревизии добавить появление внешнего питания  
+- PA3 (ADC3) - f_ADCBKUP - ADC, напряжение АКБ или supercup - OK
+- PA4 - f_ENMEASBKUPPWR - выход, на новой ревизии будет подключать измерительный делитель к напряжению supercup
+- PA5 - f_CLOUT - ADC напряжение на выходе current limiter - OK
+- PA6 - f_PWRDWNART - вход, пропадание внешнего питания - OK
+- PA7 - f_AINP1 - ADC, первый аналоговый вход (всегда) - OK
+- PA9 - f_TXD1ARTS - uart, boot, debug - OK
+- PA10 - f_RXD1ARTL - uart, boot, debug - OK
+- PA12 - f_EXTLEDS - LED на разъеме - OK
+- PA13 - f_SWDIOARTS - SWDIO - OK
+- PA14 - f_SWCLKARTS - SWCLK - OK
+- PA15 - f_PRTKKEY - кнопка принтера - OK
+
+- PB0 - f_ACINP4 - 2-ой счетный вход или 4 аналоговый (настройка зависит от ревизии) - OK, проверен как счетный вход на существующей ревизии
+- PB1 - f_CLIN - ADC, вход current limetter - OK
+- PB2 - BOOT1 - на землю - OK
+- PB3 - f_SWOART - SWO - OK
+- PB4 - f_nENARTTXD3toM3 - выход, разрешение - OK
+- PB5 - f_nENM3toTC3 - выход, разрешение - OK
+- PB6 - f_ARTSCL - I2C с главным процессором - OK
+- PB7 - f_ARTSDA - I2C с главным процессором - OK
+- PB8 - f_M1toARTRXD5 - uart5 rx - OK
+- PB9 - f_ARTTXD5toM1 - uart5 tx - OK
+- PB11 - f_ENBKUPPWR - (на новой ревизии) отключает питание Artery после 8 часов - проверить на новой ревизии
+- PB12 - f_ARTHWREVB0 - рев - OK
+- PB13 - f_ARTHWREVB1 - рев - OK
+- PB14 - f_ARTHWREVB2 - рев - OK
+- PB15 - f_ARTHWREVB3 - рев - OK
+
+- PC0 (ADC10)- f_SCMIDPL - ADC средняя точка supercup - OK
+- PC3 (ADC13) - f_nENTC3toM3 - выход, разрешение - OK
+- PC4 (ADC14) - f_AINP2 - второй аналоговый вход - OK
+- PC5 (ADC15) - f_ACINP3 - первый счетный либо 3 аналоговый - OK, проверен счетный вход на существующей ревизии
+- PC10 (TXD4) - f_nENTC2toAWRX1- выход, разрешение - OK
+- PC11 (RXD4) - f_nENARTTXD2toM2- выход, разрешение - OK
+- PC12 (TXD5) - f_nENM2toARTRX2- выход, разрешение - OK
+- PC13 (TAMPER) - OK
+- PC14 (LEXT_IN) часовой кварц - OK
+- PC15 (LEXT_OUT) часовой кварц - OK
+
+- PD0 (CAN1RX) - f_SRVC3 - выход - OK
+- PD1 (CAN1TX) - f_SRVC2 - выход - OK
+- PD2 - f_ENTC3toAWRXD3 - выход - OK
+- PD3 - fnENAWTXD3toTC3 - выход, разрешение - OK
+- PD5 - f_ARTTXD2toM2 - uart2 tx  - OK
+- PD6 - f_M2toARTRXD2 - uart2 rx  - OK
+- PD7 - f_nENM3toARTRXD3 - выход, разрешение- OK
+- PD8 (TXD3) - f_ARTTXD3toM3 - uart3 tx - OK
+- PD9 (RXD3) - f_M3ToARTRXD3 - uart3 rx - OK
+
+- PE0 (RXD8) - f_MUX1ADR1 - OK
+- PE1 (TXD8) - f_MUX1ADR0 - OK
+- PE3 - f_nENTC2toM2 - выход, разрешение - OK
+- PE4 - f_nENAWTXD1toTC2 - выход, разрешение - OK
+- PE5 - f_nENM2toTC2 - выход, разрешение - OK
+- PE7 - f_IN1 - дискретный вход - OK
+- PE8 - f_IN2 - дискретный вход - OK
+- PE9 - f_IN3 - дискретный вход - OK
+- PE10 - f_IN4 - дискретный вход - OK
+- PE11 - f_IN5 - дискретный вход - OK
+- PE12 - f_IN6 - дискретный вход - OK
+- PE13 - f_IN7 - дискретный вход - OK
+- PE14 - f_IN8 - дискретный вход - OK
+- PE15 - f_CLON - включение current limitter - OK
+
+~={yellow}ПСД общие моменты=~
+- Artery отвечает за управление 2 и 3-ей системой параллельной диспетчеризации, но может принимать и передавать в первую систему. Управлением 1-ой системой занимается Allwinner.
+- ПСД_1 - RS485, ПСД_2 и ПСД_3 - RS232
+- Логику работы ПСД можно разделить на два режима. 
+- В первом режиме модем (внешнее устройство опроса счетчика) общается со счетчиком. Artery всегда слушает только передатчик модема, Alwinner слушает передатчик счетчик. 
+- Во втором режиме со счетчиком общается Alwinner. Artery слушает модем.
+- Artery может передавать в модем.
+uart2, uart3, uart5
+~={yellow}ПСД проверка=~
+
+~={green}Проверка ПСД 1=~
+- Настраиваем MUX (s0, s1) = (1, 0).
+- Отправляем данные из Artery uart_5. Данные заходят в модем_1.
+- На разъеме замыкаем RS485 модема_1 и счетчика.
+- Данные со счетчика попадают на порт принтера.
+- Для этого установить выходы сдвигового регистра U704 в соответствующее положение.
+
+~={green}Проверка ПСД 2=~
+- Проверяем связь Artery - Modem и Modem - Artery.
+- Установить пины PC11 и PC12 в 0.
+- Послать данные в uart_2.
+
+- Проверяем связь Modem - TC, TC - Modem.
+- Установить PC11 и PC12 в 1.
+- Установить PE3 и PE5 в 0.
+- Установить PE4 и PC10 в 1.
+
+~={green}Проверка ПСД 3=~
+- Проверяем связь Artery - Modem и Modem - Artery.
+- Установить PC3 и PB5 в 1.
+- Установить PB4 и PD7 в 0.
+- Послать данные в uart_3.
+
+- Проверяем связь Modem - TC, TC - Modem.
+- Установить PC3 и PB5 в 0.
+- Установить PD3 и PD2 в 1.
+
+~={green}Дополнительные проверки=~
+- SRVC2
+- SRVC3
+
+~={yellow}Программные модули=~
+- [x] Счетные входы
+- [ ] usched
+- [ ] Таблица GPIO
+- [ ] Standby mode
+
+~={yellow}Разное программное=~
+- last_power_state = 1 при отключении внешнего питания
+- 

+ 38 - 0
ROTEK/bt67xx/common.md

@@ -1,3 +1,13 @@
+~={yellow}Что к чему=~
+- Модель 6721 была создана на базе модели 6711_v1 без каких либо изменений в программной или аппаратной части. Изменилось только название модели. На данный момент модель не вошла в основной репозиторий.
+- 
+~={green}Изменения и ветки=~
+~={yellow}Mega=~
+- Нужно было обеспечить поддержку данного ИБП и собрать прошивку для тестов у заказчика.
+- Для работы с тонким ИБП "Mega" была создана ветка "mega".
+- На данный момент модель в этой ветке - "6711_v1".
+- 
+
 #### <font color = "MediumSeaGreen">Задачи:</font>
 1. Интегрировать поддержку 3ф ИБП в контроллер 6709mts и 6712 (с внешним датчиком температуры и влажности) для поставки в МТС.
 	[[Galleon II Galleon III 3 phase V02.pdf]]
@@ -76,3 +86,31 @@ $ arm-none-eabi-gdb -x .gdbinit_bt6711_v1
 ```bash
 openocd -f interface/stlink.cfg -f target/stm32f4x.cfg -c "init; reset halt; stm32f4x unlock 0; reset halt; exit"
 ```
+
+~={yellow}Сборка проекта  на WSL в Windows=~
+
+Для проброса usb устройств в WSL установить usbipd-win 5.1.0 https://github.com/dorssel/usbipd-win/releases
+
+```powershell
+# Вывести список устройств
+$ usbipd list
+
+# Подставить текущий BUSID устройства
+$ usbipd attach --wsl --busid <BUSID>
+```
+
+Могут быть проблемы с доступом по TCP к конкретному порту. Для этого в настройка firewall windows добавить правило для порта https://addshore.com/2024/07/wsl2-com-port-pass-through-with-usbipd-firewall-issues/
+
+Инструкция как добавить правило в firewall https://remontka.pro/open-ports-network-windows/
+
+В WSL установить libusb stlink openocd
+```bash
+$ sudo apt install usbutils
+```
+
+При запуске gdb может потребоваться установить libncurses5.so
+```bash
+$ sudo apt install libncurses5
+```
+
+

+ 161 - 0
STM32/Makefile template.md

@@ -0,0 +1,161 @@
+```makefile
+# Copyright (c) 2016, James Jackson
+# All rights reserved.
+
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+
+# 1. Redistributions of source code must retain the above copyright notice, this
+#    list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+#    this list of conditions and the following disclaimer in the documentation
+#   and/or other materials provided with the distribution.
+
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+TARGET	?= ledblink
+
+SERIAL_DEVICE ?= /dev/ttyUSB0
+
+#################################
+# GNU ARM Embedded Toolchain
+#################################
+CC=arm-none-eabi-gcc
+CXX=arm-none-eabi-g++
+LD=arm-none-eabi-ld
+AR=arm-none-eabi-ar
+AS=arm-none-eabi-as
+CP=arm-none-eabi-objcopy
+OD=arm-none-eabi-objdump
+NM=arm-none-eabi-nm
+SIZE=arm-none-eabi-size
+A2L=arm-none-eabi-addr2line
+
+#################################
+# Working directories
+#################################
+BREEZY_DIR = ../../../
+ROOT		 = .
+SRC_DIR		 = $(ROOT)
+CMSIS_DIR	 = $(BREEZY_DIR)/lib/CMSIS
+STDPERIPH_DIR	 = $(BREEZY_DIR)/lib/STM32F10x_StdPeriph_Driver
+OBJECT_DIR	 = $(ROOT)/obj
+BIN_DIR		 = $(ROOT)/obj
+
+
+#################################
+# Source Files
+#################################
+ASOURCES = $(BREEZY_DIR)/startup_stm32f10x_md_gcc.s
+
+VPATH		:= $(SRC_DIR):$(SRC_DIR)/startups
+
+# Search path and source files for the CMSIS sources
+VPATH		:= $(VPATH):$(CMSIS_DIR)/CM3/CoreSupport:$(CMSIS_DIR)/CM3/DeviceSupport/ST/STM32F10x
+CMSIS_SRC	 = $(notdir $(wildcard $(CMSIS_DIR)/CM3/CoreSupport/*.c \
+				       $(CMSIS_DIR)/CM3/DeviceSupport/ST/STM32F10x/*.c))
+
+# Search path and source files for the ST stdperiph library
+VPATH		:= $(VPATH):$(STDPERIPH_DIR)/src
+STDPERIPH_SRC	 = $(notdir $(wildcard $(STDPERIPH_DIR)/src/*.c))
+
+CSOURCES =  $(BREEZY_DIR)/drv_system_stm32f10x.c \
+	    $(BREEZY_DIR)/drv_uart_stm32f10x.c \
+	    $(BREEZY_DIR)/drv_gpio.c \
+	    $(BREEZY_DIR)/drv_i2c.c \
+	    $(BREEZY_DIR)/drv_adc.c \
+	    $(BREEZY_DIR)/drv_spi.c \
+	    $(BREEZY_DIR)/drv_pwm.c \
+	    $(BREEZY_DIR)/drv_serial.c \
+	    $(BREEZY_DIR)/drv_timer.c \
+	    $(BREEZY_DIR)/printf.c \
+	    $(CMSIS_SRC) \
+	    $(STDPERIPH_SRC)
+
+CXXSOURCES = $(ROOT)/ledblink.cpp \
+	     $(BREEZY_DIR)/main.cpp \
+
+INCLUDE_DIRS	 = $(SRC_DIR) \
+		   $(BREEZY_DIR) \
+		   $(STDPERIPH_DIR)/inc \
+		   $(CMSIS_DIR)/CM3/CoreSupport \
+		   $(CMSIS_DIR)/CM3/DeviceSupport/ST/STM32F10x
+
+
+#################################
+# Object List
+#################################
+OBJECTS=$(addsuffix .o,$(addprefix $(OBJECT_DIR)/$(TARGET),$(basename $(ASOURCES))))
+OBJECTS+=$(addsuffix .o,$(addprefix $(OBJECT_DIR)/$(TARGET),$(basename $(CSOURCES))))
+OBJECTS+=$(addsuffix .o,$(addprefix $(OBJECT_DIR)/$(TARGET),$(basename $(CXXSOURCES))))
+
+
+#################################
+# Target Output Files
+#################################
+TARGET_ELF=$(BIN_DIR)/$(TARGET).elf
+TARGET_HEX=$(BIN_DIR)/$(TARGET).hex
+
+
+#################################
+# Flags
+#################################
+MCFLAGS=-mcpu=cortex-m3 -mthumb
+OPTIMIZE = -Os
+DEFS=-DTARGET_STM32F10X_MD -D__CORTEX_M4 -D__FPU_PRESENT -DWORDS_STACK_SIZE=200 -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER
+CFLAGS=-c $(MCFLAGS) $(DEFS) $(OPTIMIZE) $(addprefix -I,$(INCLUDE_DIRS)) -std=c99
+CXXFLAGS=-c $(MCFLAGS) $(DEFS) $(OPTIMIZE) $(addprefix -I,$(INCLUDE_DIRS)) -std=c++11
+CXXFLAGS+=-U__STRICT_ANSI__
+LDSCRIPT=$(BREEZY_DIR)/stm32_flash.ld
+LDFLAGS =-T $(LDSCRIPT) $(MCFLAGS) -lm -nostartfiles -lc --specs=rdimon.specs $(ARCH_FLAGS)  $(LTO_FLAGS)  $(DEBUG_FLAGS) -static  -Wl,-gc-sections
+
+#################################
+# Build
+#################################
+$(TARGET_HEX): $(TARGET_ELF)
+	$(CP) -O ihex --set-start 0x8000000 $< $@
+
+$(TARGET_ELF): $(OBJECTS)
+	$(CXX) -o $@ $^ $(LDFLAGS)
+	$(SIZE) $(TARGET_ELF)
+
+$(BIN_DIR)/$(TARGET)%.o: %.cpp
+	@mkdir -p $(dir $@)
+	@echo %% $(notdir $<)
+	@$(CXX) -c -o $@ $(CXXFLAGS) $<
+
+$(BIN_DIR)/$(TARGET)%.o: %.c
+	@mkdir -p $(dir $@)
+	@echo %% $(notdir $<)
+	@$(CC) -c -o $@ $(CFLAGS) $<
+
+$(BIN_DIR)/$(TARGET)%.o: %.s
+	@mkdir -p $(dir $@)
+	@echo %% $(notdir $<)
+	@$(CC) -c -o $@ $(CFLAGS) $<
+
+
+#################################
+# Recipes
+#################################
+.PHONY: all flash clean
+
+clean:
+	rm -f $(OBJECTS) $(TARGET_ELF) $(TARGET_HEX) $(BIN_DIR)/output.map
+
+flash: $(TARGET_HEX)
+	stty -F $(SERIAL_DEVICE) raw speed 921600 -crtscts cs8 -parenb -cstopb -ixon
+	stm32flash -w $(TARGET_HEX) -v -g 0x0 -b 921600 $(SERIAL_DEVICE)
+
+all: $(TARGET_HEX)
+```

+ 21 - 0
Theory.md

@@ -0,0 +1,21 @@
+~={yellow}Герундий и инфинитив=~
+1. Мы используем -ing form после следующих фраз с предлогом to (Не путать с частицей to!):
+	- look forward to - с нетерпением ждать,
+	- be used to - быть привычным к,
+	- object to - возражать против,
+	- if addition to - в дополнение к,
+	- agree to - соглашаться с, etc.
+2. Мы используем -ing form после следующих фраз:
+	- be busy - быть занятым,
+	- be proud of - гордиться,
+	- be surprised at - быть удивленным при,
+	- be found of - увлекаться,
+	- be tired of - быть уставшим от,
+	- be sure of - быть уверенным в,
+	- there is no point in - нет смысла в,
+	- thank for - благодарить за,
+	- think of - размышлять о,
+	- it's (not) worth - это стоит/не стоит того,
+	- succeed in - преуспеть в,
+	- it's no use - бесполезно,
+	- (not) mind - не возражать, etc

+ 0 - 0
Untitled.md


+ 1 - 0
common.md

@@ -15,6 +15,7 @@ https://industry-hunter.com/v-cem-raznica-mezdu-ieee-802154-i-zigbee
 
 `Цинк` - одна таблетка один месяц (лучше усваивается цинк пикалинат, цитрат)
 `Витамин Е` - один месяц
+Фуцинат - мазь от прыщей
 
 
 ЩЕКУТОВА ЛЮДМИЛА тел. 8915 322 94 50  [76@MAIL.RU](mailto:76@MAIL.RU) "Ясный препод"

+ 19 - 3
hardcore web development/11. SQL/SQL настройка.md

@@ -6,6 +6,11 @@ $ sudo passwd postgres
 $ psql -h localhost -U postgres
 ```
 
+```sql
+-- Смена пароля пользователя
+alter user <user_name> with password 'new password';
+```
+
 ~={yellow}Установка одного клиента psql=~
 
 ```bash
@@ -16,10 +21,12 @@ $ psql --version
 ~={yellow}Основные действия=~
 
 ```bash
-# Подключение к серверу через psql
+# Подключение к базе данных на сервере через psql
 $ psql -U <user name> -h <host ip> -W -d <data base name>
 
 $ psql rroom -h 94.232.244.161 -W -d rroom_db
+
+$ psql -U bird -h 94.232.244.161 -W -d berd_db
 ```
 
 ```sql
@@ -74,6 +81,7 @@ $ sudo -u postgres psql
 ```bash
 \du - список пользователей
 \l - список баз данных (\l+ в расширенном виде с размером)
+\c db_name - переключиться на другую БД
 \q - выйти из postgres shell
 \d - показать таблицы и последовательности
 \dt - показать только таблицы
@@ -90,8 +98,16 @@ $ sudo -u postgres psql
 \s ~/history.sql - сохранить историю в файл
 ```
 
-~={yellow}Смена пароля пользователя=~
 ```sql
-alter user <user_name> with password 'new password';
+-- Команда создания пользователя rroom, то есть роли с правом логина:
+create role with ligin password '123'
+```
+
+~={yellow}Схема - это пространство имен=~
+Последовательность: база данных -> схема -> таблица.
+
+```sql
+-- Показать путь по котором идем поиск схем
+show search_path
 ```
 

+ 28 - 0
hardcore web development/11. SQL/bird_1.sql

@@ -0,0 +1,28 @@
+-- -----------------------------------------------------------------
+-- Создание таблиц
+
+-- Таблица семейств птиц
+create table family (
+	family_id bigint generated always as identity primary key,
+	family_name varchar(150) not null,
+	description text
+);
+
+-- Таблица родов птиц
+create table genus (
+	genus_id bigint generated always as identity primary key,
+	genus_name varchar(150) not null,
+	description text,
+	family_id bigint not null references family(family_id)
+);
+
+-- Таблица видов птиц
+create table species (
+	species_id bigint generated always as identity primary key,
+	species_name varchar(150) not null,
+	genus_id bigint not null references genus(genus_id),
+	description text,
+	average_length smallint not null check (average_length > 0),
+	average_weight smallint not null check (average_weight > 0),
+	primary_color varchar(50) not null
+);

+ 85 - 0
hardcore web development/11. SQL/room_1.sql

@@ -0,0 +1,85 @@
+-- -----------------------------------------------------------------
+-- Создание таблиц
+
+-- Таблица авторов
+create table author (
+	author_id bigint generated always as identity primary key,
+	name varchar(150) no null check (length(name) >= 3),
+	description text check (length(description) >= 30)
+);
+
+-- Таблица категорий книг
+create table book_category (
+	category_id int generated always as identity primary key,
+	name varchar(150) not null check (length(name) >= 2)
+);
+
+-- Таблица книг
+create table book (
+	book_id bigint generated always as identity primary key,
+	name varchar(255) not null check (length(name) >= 2),
+	author_id bigint not null references author(author_id),
+	description text check (length(description) >= 30),
+	cover varchar(255),
+	category_id int not null references book_catefory(category_id)
+);
+
+-- -----------------------------------------------------------------
+-- Создание временных таблиц и вставка данных
+
+create temp table something (id serial, name text);
+
+insert into something (name) values('hello');
+insert into something (name) values('dratuti');
+
+-- -----------------------------------------------------------------
+-- Редактирование таблиц
+
+alter table 
+
+-- -----------------------------------------------------------------
+-- Удаление таблиц
+
+drop table if exists author, book_category, book;
+
+-- -----------------------------------------------------------------
+-- Вставка данных
+
+insert into author (name, description) values (
+	'Михаил Шолохов',
+	'Великий русский советский писатель, журналист и киносценарист.'
+), (
+	'Лусиану Рамальо',
+	'Автор замечательных книг по языку программирования Python'
+);
+
+-- -----------------------------------------------------------------
+-- Выборка данных
+
+-- Выбрать все данные из таблицы. Так нельзя делать в prodaction коде.
+select * from author;
+table author order by name desc limit 1;
+
+select name as Имя, description as Описание from book;
+
+-- Преобразование к верхнему регистру
+select upper(name) as Имя, lower(description) as Описание from book;
+
+-- Можно сослаться на конретную таблицу через .
+-- Последовательность: база данных -> схема -> таблица
+select book.name as Имя from rroom_db.public.book;
+
+show search_path;
+
+-- -----------------------------------------------------------------
+-- Заметки
+
+-- Остановился на 16 главе 
+
+-- -----------------------------------------------------------------
+-- Мусор
+
+select |/25;
+
+
+

+ 25 - 3
hardcore web development/11. SQL/Создание таблиц.md

@@ -1,4 +1,24 @@
-pii
+~={yellow}Создание Роли=~
+```sql
+create role rroom with login password 'mycoolpassword';
+```
+Создание роли с правом логина - это создание пользователя. При установке PostgresSQL по умолчанию создается пользователь postgres и база данных postgres.
+~={yellow}Создание пользователя=~
+```sql
+create role app with login password 'oqjfasdjflasdf';
+```
+
+~={yellow}Создание базы данных=~
+```sql
+create datebase rroom_db
+	with
+	encoding='UTF8'
+	lc_collate='ru_RU.UTF-8'
+	lc_ctype='ru_RU.UTF-8'
+	owner rroom;
+```
+
+
 Создаем таблицу авторов:
 ```sql
 create table author (
@@ -67,13 +87,15 @@ create table genus (
 	family_id bigint not null references family(family_id)
 );
 
+-- Таблица видов птиц
+
 create table species (
 	species_id bigint generated always as identity primary key,
 	species_name varchar(150) not null,
 	genus_id bigint not null references genus(genus_id),
 	description text,
-	average_length smallint not null,
-	average_weight smallint not null,
+	average_length smallint not null check (average_length > 0),
+	average_weight smallint not null check (average_weight > 0),
 	primary_color varchar(50) not null
 );
 ```

+ 30 - 1
linux/vim.md

@@ -49,4 +49,33 @@ $ git clone https://github.com/VundleVim/Vundle.vim.git
 
 ```bash
 set list lcs=tab:>\ ,space:.
-```
+```
+
+~={green}NVIM=~
+
+Сборка из исходников
+https://github.com/neovim/neovim.git
+
+```bash
+cd neovim
+make CMAKE_BUILD_TYPE=Release
+make CMAKE_INSTALL_PREFIX=/opt/nvim install
+make distclean
+make deps
+
+.bashrc
+export PATH="$PATH:/opt/nvim/bin"
+```
+
+~={yellow}Установка шрифтов=~
+- Качать здесь: https://www.nerdfonts.com/font-downloads
+- Установка шрифтов в Alactritty. Редактировать alacritty.toml (C:\Users\User\AppData\Roaming\alacritty\alacritty.toml)
+
+```toml
+[font.normal]
+family = "RobotoMono Nerd Font"
+style = "Regular"
+```
+
+
+

+ 18 - 6
todo/Задачи по направлениям.md

@@ -2,6 +2,13 @@
 - [x] Разобраться со счетчиком горячей воды в Подрезково
 - [x] Записаться к ортодонту (звонить завтра 25.03.25)
 - [x] Передать показания счетчиков
+- [x] Подкрутить верхнюю челюсть
+- [x] Покрасить змею
+- [x] Оплата счетов за апрель
+- [x] Запись к ортодонту на конец мая
+- [x] Сделать велик и поставить кресло.
+- [ ] Навести порядок в таблице оплаты
+- [ ] Визит к ортодонту 26 мая
 <h6>Работа и образование</h6>
 - [ ] Пройти на 100% курс по Python OOP.
 - [ ] Залить старую версию gnu-arm-eabi на сервер
@@ -15,24 +22,28 @@
 - [x] Разобраться со вкладом 15-16 апреля
 - [x] Долг 20к до 20-ого апреля
 <h6>Бытовые:</h6>
-- [ ] Подобрать новые телефоны
+- [ ] Подобрать новый телефон жене
 - [ ] Починить пороги
 - [x] Починить очки жены
 <h6>Здоровье:</h6>
 **Стоматолог Екатерина +7 926 973 07 49. Иногда принимает по адресу  Проезд Шокальского дом 29.корп2 вход со двора**
 
 - [ ] Примерно в августе 2025 удалять верхний зуб мудрости. Позвонить Екатерине, она запишет к хирургу.
+- [x] Таня к врачу 29.04.25
+- [ ] Таня к ортодонту 26 мая понедельник к 14-30.
 <h6>Задачи по датам</h6>
 - [x] ~={yellow}Визит к ортодонту 11 февраля во вторник к 8-10=~
 - [x] Визит к ортодонту 8 апреля в 16:00, 57 кабинет Мидея Атариевна Хунзи
-- [ ] Визит к ортодонту в конце мая. Медея Отариевна Хундзия.  Записаться заранее.
+- [ ] Визит к ортодонту в конце мая. Медея Отариевна Хундзия (понедельник, вторник, среда). 
 
 ---
  <h6>Покупки и траты</h6>
-- [ ] Телефон мне и жене: xiaomi 13 или 14 pro
-- [ ] Планшет Тане
+- [ ] Телефон жене: xiaomi 13 или 14 pro
+- [x] Телефон мне
+- [x] Планшет Тане
 - [ ] Одежда Тане на 4ый класс
-- [ ] Поездки
+- [x] Поездка весной
+- [ ] Поездка летом
 - [ ] Одежда жене
 - [x] Самокат
 ---
@@ -56,7 +67,8 @@
 - [x] 08.04.25 - регулировка у врача
 - [x] 15.04.25
 - [x] 21.04.25
-- [ ] 26.06.25
+- [x] 28.06.25
+- [ ] 03.05.25
 Нижняя (оба винта раз в 10 дней):
 - [x] 08.04.25 - регулировка у врача
 - [x] 21.04.25 

+ 11 - 1
todo/Разное.md

@@ -26,6 +26,14 @@
 
 ~={yellow}Где отдохнуть=~
 https://www.erino.ru/
+
+~={yellow}Планирование поездки в Карелию=~
+- 9-ого утром нужно приехать
+- Возможный отъезд 3 или 4-ого мая.
+~={blue}Билеты туда 3его мая=~
+- 00:25 - 09:26 - есть варианты
+- 
+
 #### <font color = "MediumSeaGreen">VIN:</font> Z94CU41DADR315596
 
 soap march file tonight thunder answer inhale faculty skull goddess say first
@@ -80,4 +88,6 @@ https://gitlab.com/omprussia
 <h6>День рождения</h6>
 - 07.08 Андрей Тарасов
 
-https://www.ozon.ru/product/grammatika-sbornik-uprazhneniy-9-e-izdanie-ispravlennoe-golitsynskiy-yuriy-borisovich-669880843/?__rr=1
+https://www.ozon.ru/product/grammatika-sbornik-uprazhneniy-9-e-izdanie-ispravlennoe-golitsynskiy-yuriy-borisovich-669880843/?__rr=1
+
+14420

+ 19 - 0
todo/Счета.md

@@ -1,4 +1,23 @@
 # 2025
+#### <font color = "MediumSeaGreen">Май</font>
+##### <font color = "#1D8571">Коммунальные услуги</font>
+- [x] Широкая электричество ()
+- [x] Широкая платежка ()
+- [x] Подрезково ()
+- [x] Нина электричество + TKO ()
+
+##### <font color = "#1D8571">Передача показаний с 15-ого числа</font>
+- [x] Широкая вода. хол , гор 
+- [x] Широкая электричество: 
+- [x] Подрезково: хол , гор , эл  (передал только электричества!)
+- [x] Химки: 471 - , 473 - , 450 - , 402 - , эл -  (передал только электричества!)
+- [x] Планерная Нина электричество: 
+- [x] Планерная Батя электричество: 
+##### <font color = "#1D8571">Дополнительно</font>
+- [x] Отдать Нине ()
+- [x] Домашний интернет (860)
+- [x] Сотовый телефон ()
+- [x] Хостинг
 #### <font color = "MediumSeaGreen">Апрель</font>
 ##### <font color = "#1D8571">Коммунальные услуги</font>
 - [x] Широкая электричество ()

+ 17 - 0
tools.md

@@ -0,0 +1,17 @@
+~={yellow}objdump=~
+```bash
+$ objdump -s -j .data test.exe
+# -s - сегмент
+# -j - после указать какой именно сегмент
+```
+
+~={yellow}ELF=~
+
+ELF - формат исполняемых файлов для Linux (Executable and Linkable Format) и определяет структуру бинарных файлов, библиотек и файлов ядра (core files). Спецификация формата позволяет операционной системе корректно интерпретировать содержащиеся в файле машинные команды. Файл ELF, как правило, является выходным файлом компилятора или линкера и имеет двоичный формат. С помощью подходящих инструментов он может быть проанализирован и изучен.
+
+ELF файл начинается с заголовка (4 байта): 7f+ELF.  Далее идет заголовочная информация.
+
+```bash
+# Посмотреть заголовок elf файла
+$ readelf -h text.exe
+```