+░░░░░░░░░░░█░█░▄▀▄░█░█░░░░░░░░░░░░░ +░░░░░░░░░░░░▀█░█░█░░▀█░░░░░░░░░░░░░ +░░░░░░░░░░░░░▀░░▀░░░░▀░░░░░░░░░░░░░ +░█▀█░█▀█░▀█▀░░░█▀▀░█▀█░█░█░█▀█░█▀▄░ +░█░█░█░█░░█░░░░█▀▀░█░█░█░█░█░█░█░█░ +░▀░▀░▀▀▀░░▀░░░░▀░░░▀▀▀░▀▀▀░▀░▀░▀▀░░ ++
diff --git a/content/music/software_should_work_ru.md b/content/music/software_should_work_ru.md index ad60735..51085cc 100644 --- a/content/music/software_should_work_ru.md +++ b/content/music/software_should_work_ru.md @@ -1,12 +1,11 @@ --- -title: "Software should work(ru)" +title: "Software should work (ru)" date: 2021-11-13T19:22:35+03:00 image_url: https://pixelfed-prod.nyc3.cdn.digitaloceanspaces.com/public/m/_v2/319616208418770944/1672d1d81-1ab3fb/vnRYg4ZEMivr/4Q5oENJ9gwjBtTwrFBeo0RXPc1fml1h4ObzTSMAz.jpg type: post --- -# Software should work - *"софт должен просто работать"* +*"софт должен просто работать"* Made with [BespokeSynth](https://www.bespokesynth.com/) diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..c033bf8 --- /dev/null +++ b/public/404.html @@ -0,0 +1,110 @@ + + +
+ + + ++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+░░░░░░░░░░░█░█░▄▀▄░█░█░░░░░░░░░░░░░ +░░░░░░░░░░░░▀█░█░█░░▀█░░░░░░░░░░░░░ +░░░░░░░░░░░░░▀░░▀░░░░▀░░░░░░░░░░░░░ +░█▀█░█▀█░▀█▀░░░█▀▀░█▀█░█░█░█▀█░█▀▄░ +░█░█░█░█░░█░░░░█▀▀░█░█░█░█░█░█░█░█░ +░▀░▀░▀▀▀░░▀░░░░▀░░░▀▀▀░▀▀▀░▀░▀░▀▀░░ ++
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
Decentralized messenger over Freenet network
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
App for creating Anki flashcards
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
Snake game written with P5js
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
TODO app with timer written on React
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+ ░█▄█░█░█░█▀▀░▀█▀░█▀▀ +░█░█░█░█░▀▀█░░█░░█░░ +░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀ + + ++ +
+ ░█▄█░█░█░█▀▀░▀█▀░█▀▀ +░█░█░█░█░▀▀█░░█░░█░░ +░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀ + + ++ +
“софт должен просто работать”
+ +Made with BespokeSynth
+ + + ++ ░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█ +░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█ +░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀ + + ++ +
+ ░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█ +░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█ +░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀ + + ++ +
+ ░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█ +░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█ +░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀ + + ++ +
Decentralized messenger over Freenet network
+App for creating Anki flashcards
+TODO app with timer written on React
+Snake game written with P5js
++ ░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█ +░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█ +░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀ + + ++ +
The simple snake game which working on both desktop 🖥 and mobile 📲
+ +On mobile there’s a support for playing via swipes 👆
+ ++ ░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█ +░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█ +░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀ + + ++ +
+ ░█▀▄░█░░░█▀█░█▀▀ + ░█▀▄░█░░░█░█░█░█ + ░▀▀░░▀▀▀░▀▀▀░▀▀▀ + ++ +
+ ░█▀▄░█░░░█▀█░█▀▀ + ░█▀▄░█░░░█░█░█░█ + ░▀▀░░▀▀▀░▀▀▀░▀▀▀ + ++ +
I had been adding some cards to Anki. +It was lowercase word and word with stress in russian. like торты тОрты.
+ +I’m lazy and i wrote two simple scripts. All what i have to do is input words with stress into a file.
+First script for creating file with list of sequence of word with stress and lowercase word
import os
+f = open("/home/horhik/text.txt", 'r+')
+lines = f.readlines()
+for ind, line in enumerate(lines):
+ print(line.lower(), " ", line)
+
+
+After, i just pushed output to file and opened it it Emacs.
+ +Second script automatizing adding cards to Anki.
+I split my window by Anki “add card” window and Emacs. As i use evil
mode in Emacs, script looks like that:
import pyautogui
+
+import os
+while(True):
+ pyautogui.hotkey("winleft", 'j') # toggle window
+ pyautogui.press(["v", "$", "y"]) # copy string
+ pyautogui.hotkey("winleft", 'j') # toggle window
+ pyautogui.hotkey("ctrl", 'v') # past text
+ pyautogui.press("tab") # next input field
+ pyautogui.hotkey("winleft", 'j') # toggle window
+ pyautogui.press(["j","0", "w", "v" , "$", "y", "0", "j", "j" ])
+ # move to next line beginning, copy it and go to next occurence
+ pyautogui.hotkey("winleft", 'j') # toggle window
+ pyautogui.hotkey("ctrl", 'v') # paste text
+ pyautogui.press("tab") # ...
+ pyautogui.press("tab") # ...
+ pyautogui.press("tab") # ...
+ pyautogui.press("tab") # ... way to submit button
+ pyautogui.press("space") # pressing submit button
+
+
+while(true)
was my mistake. I launched script in terminal, with sleep
3 seconds before.
+But i couldn’t shut script down without any strange effect when i opening not only 2 windows in my Window Manager.
+Some strange things happen before I cached terminal and pressed Ctrl+C
+ ░█▀▄░█░░░█▀█░█▀▀ + ░█▀▄░█░░░█░█░█░█ + ░▀▀░░▀▀▀░▀▀▀░▀▀▀ + ++ +
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
Decentralized messenger over Freenet network
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
Snake game written with P5js
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
TODO app with timer written on React
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
Snake game written with P5js
++ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
+ ░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█ +░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄ +░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀ + + ++ +
Snake game written with P5js
+