Recently I’m revising the basics.
After read I want simple, not just easy, I realized that my knowledge about simple things - C - was not enough.
C++/Qt softwares are bloated
creating GUI using C was so fast and simple.
Windows API history: https://github.com/TransmissionZero/Win16-Example-Application
I don’t quite understand threads and C language.
Books:
- K&R C, might be hard to read; just as a reference.
- Head First C
- A simplified version of CSAPP: Think OS
- Semaphores: https://greenteapress.com/thinkos/html/thinkos013.html, a little book: https://greenteapress.com/semaphores/LittleBookOfSemaphores.pdf
- some demos
I accidently discovered OPC, which has been used for many years in some ships for oil pressure commuication. I remebered a dispute about using a cracked software, which was detected as virus by Windows Defender, with my colleague.
And there are many Visual Studio techniques.
packed
: https://github.com/vlang/v/issues/18435
other attributes: https://medium.com/@ganga.jaiswal/attributes-in-c-programming-b93707ebd39f
previously I just know _CRT_SECURE_NO_WARNINGS
from stackoverflow, but after force myself out of stackoverflow, I discovered its root: https://learn.microsoft.com/en-us/cpp/c-runtime-library/security-features-in-the-crt?view=msvc-170#eliminating-deprecation-warnings.
Although there is no valgrind on Windows, there is another way to check memory leak: https://learn.microsoft.com/en-us/cpp/c-runtime-library/find-memory-leaks-using-the-crt-library?view=msvc-170. (unfortunatelly, it’s not usable in my own experiments.)
There are also secure functions and general functions list from MS docs. (needless to say, Microsoft docs are great!)
vlang
Go is great at network services, but cgo is a pain. Recently I discovered vlang: https://vlang.io/, which offers full C compatibility, and features Go syntax.
Others
wayback plugin: https://chromewebstore.google.com/detail/wayback-machine/fpnmgdkabkmnadcjpehmlllkndpkmiak Twitter is back: https://greasyfork.org/en/scripts/521670-twitter-zen-mode wayback hide donate: https://github.com/soda92/wayback-remove-donate
adding the archives page
add config: https://github.com/adityatelange/hugo-PaperMod/blob/2378012732ae821b7f987a941919cbb06b25a0d5/config.yml#L22C1-L34C20 in hugo.yml
, and create a page in content
dir, and you are done!
The code:
languages:
en:
languageName: "English"
weight: 1
menu:
main:
- name: Archive
url: archives
weight: 5
the page: https://github.com/adityatelange/hugo-PaperMod/blob/exampleSite/content/archives.md
Also, unlike jekyll, hugo seems to reload config without restart. Also the changed page was automatically refreshed!