# Note 2
GO TO [ note1 ]
# WEBP
https://developers.google.com/speed/webp (opens new window)
The bin/ directory contains tools for encoding (cwebp.exe) and decoding (dwebp.exe) images.
The easiest use should look like:
cwebp input.png -q 80 -o output.webp
which will convert the input file to a WebP file using a quality factor of 80 on a 0->100 scale (0 being the lowest quality, 100 being the best. Default value is 75). You might want to try the -lossless flag too, which will compress the source (in RGBA format) without any loss. The -q quality parameter will in this case control the amount of processing time spent trying to make the output file as small as possible.
# WEBM
https://stackoverflow.com/questions/6954845/how-to-create-a-webm-video-file (opens new window)
ffmpeg -i input.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output.webm
By default the CRF value can be from 4–63, and 10 is a good starting point. Lower values mean better quality.
Use cmder (opens new window) for better experience.
# Markdown guide
Go to
https://www.markdownguide.org/basic-syntax/ (opens new window)
https://guides.github.com/features/mastering-markdown/ (opens new window)
# Links:
- Text in [] and URL goes in ()
[text](URL)
My favorite search engine is [Duck Duck Go](https://duckduckgo.com).
Result: Duck Duck Go (opens new window).
- Text in [] and URL goes in (), text in this case can't have blank space.
[cmder](https://pquan.info/cmder-thay-the-hieu-qua-cho-command-promp-tren-windows)
Result: cmder (opens new window)
- Reference-style Links: are a special kind of link that make URLs easier to display and read in Markdown, keep the text easy to read.
In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends
of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a [hobbit-hole][1], and that means comfort.
[1]: <https://en.wikipedia.org/wiki/Hobbit#Lifestyle> "Hobbit lifestyles" (ref link)
the rendered output:
In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a [hobbit-hole][1], and that means comfort. [1]:https://en.wikipedia.org/wiki/Hobbit#Lifestyle (opens new window) "Hobbit lifestyles"
(ref link doesn't work?)
Align Image in Markdown (opens new window)
# Math and Formula
https://github.com/maginapp/vuepress-plugin-katex (opens new window)
plugins: {
'@maginapp/katex': {
delimiters: 'dollars'
}
},
$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$
Euler's identity $e^{i\pi}+1=0$ is a beautiful formula in $\mathbb{R}^2$.
Supposing that $y >= 0$ and that $[\log x]$ represents the integer part of $\log x$, let:
$$\Phi (y) = \frac {1} {2 \pi i} \int_{2 - i \infty}^{2 + i \infty} \frac {y^{\omega} \mathrm{d} \omega} {\omega \left(1 + \frac {\omega} {(\log x)^{1.1}}\right)^{[ \log x ] + 1}}, x > 1$$
Obviously, when $0 <= y <= 1$, there is $\Phi(y) = 0$. For all $y >= 0$, $\Phi(y)$ is a non-decreasing function.
When $\log x>=10^4$ and $y>= e^{2{(\log x)}^{-0.1}}$, thus:
$$1 - x^{- 0.1} <= \Phi (y) <= 1$$
$$\Phi (y) = \frac {1} {2 \pi i}$$
\(Gamma(n) = (n-1)!\quad\forall n\in\mathbb N\)
Euler's identity \(e^{i\pi}+1=0\) is a beautiful formula in \(\mathbb{R}^2\).
Supposing that \(y >= 0\) and that \([\log x]\) represents the integer part of $\log x\), let:
\[\Phi (y) = \frac {1} {2 \pi i} \int_{2 - i \infty}^{2 + i \infty} \frac {y^{\omega} \mathrm{d} \omega} {\omega \left(1 + \frac {\omega} {(\log x)^{1.1}}\right)^{[ \log x ] + 1}}, x > 1\]
Obviously, when \(0 <= y <= 1\), there is \(\Phi(y) = 0\). For all \(y >= 0\), \(\Phi(y)\) is a non-decreasing function.
When \(\log x>=10^4\) and \(y>= e^{2{(\log x)}^{-0.1}}\), thus:
\[1 - x^{- 0.1} <= \Phi (y) <= 1\]
Euler's identity
Supposing that
Obviously, when
When
Supported Functions: https://katex.org (opens new window)
Note: There is problem with bracket { } when convert MathType form MS Word to LaTeX 2.09. If too many { } brackets than necessary, npm run build will fail with errors. Since KaTeX seems to require less { } in formula. Solution is that manually deleting redundant { } brackets after conversion will work, but if there are so many math formula in document then it'll become a boring chore. => need a more refined answer to this hurdle (some tool maybe, or a fine LaTeX/MathJax plugin).
As for now, since I has some problem with KaTeX plugin (can't make it work anymore), switch back to MathJax: => It also allows quickly copy converted MathType formula to .md file without editing { }.
https://vuepress-community.netlify.app/en/plugins/mathjax/ (opens new window)
plugins: [
[
'vuepress-plugin-mathjax',
{
target: 'svg',
macros: {
'*': '\\times',
},
},
], ['aplayer']],
}
# Photoshop and Krita
I'm using Krita (opens new window) as a light weight Image Editor, portable-app ready. I'm still using Photoshop but if my machine I'm working on doesn't have it installed, then I should just grab a portable Krita for a quick edit.
BTW, if you are a Photoshop user (like me) and you're looking for Eraser, then check the doc (opens new window).
# SSH
As SSH is built in with Cmder (opens new window), you may use it anytime by typing: ssh @ip [-p port]
Here is an example: ssh user@10.0.0.8 -p8888
ssh user@10.0.0.8 -p8888
# Cmder
Unable to cd to another drive? Try D:
if cd D:
doesn't work.
https://github.com/cmderdev/cmder/issues/6 (opens new window)
# Yarn
Restore registry: https://stackoverflow.com/questions/49048013/yarn-keeps-using-old-registry (opens new window)
rm ~/.config/yarn/global/yarn.lock
yarn config set registry https://registry.yarnpkg.com/
# Youtube
Under Tides BGM (opens new window)
# Programming channels
Free Code Camp (opens new window)
Kalle Hallden (opens new window)
# Youtube-DL
youtube-dl -f best [URL] --fixup --prefer-ffmpeg --ffmpeg-location C:\cmder\bin
# Unsorted lists:
Down here is my unsorted lists for anything catching my eyes:
(will be sorted into proper categories eventually)
Thank Suisei Archive Guide (opens new window) for bringing me the joyful adventure of Vue.Js and VuePress -> I have started creating this blog not so long after I visited that site and love it. ❤️ Although I'm not even interested in Hololive (opens new window) 😂
https://www.bookstack.cn/read/vuepress2-en/41c7610565ee1a40.md
https://www.reddit.com/r/vuejs/comments/qge221/what_backend_to_use_for_vue/
https://dev.to/frontendfoxes/build-a-beautiful-website-with-vuepress-and-tailwindcss--3a03
https://github.com/HEIGE-PCloud/DoIt (opens new window)
https://aozaki.cc
Python Tutorial: Web Scraping with Requests-HTML: https://www.youtube.com/watch?v=a6fIbtFB46g
Python Tutorial: Web Scraping with BeautifulSoup and Requests: https://www.youtube.com/watch?v=ng2o98k983k
Vue JS Crash Course 2021 https://www.youtube.com/watch?v=qZXt1Aom3Cs
https://code.visualstudio.com/docs/python/tutorial-django
🎶 monster-siren.hypergryph.com/music (opens new window) 🎶
https://mrfz.fandom.com/wiki/Requiem#Romanized (opens new window) 🎵
https://www.udemy.com/course/practical-regex/ (opens new window)
https://web.archive.org/save (opens new window) => save an archive of webpage, just in case it's 404 in the future.
https://www.researchgate.net/figure/Hognestad-Parabola-30_fig10_40540797
https://gofile.io/welcome (opens new window)
https://www.lightgalleryjs.com/docs/vue/
note
This notebook will be more frequently updated at: https://foxdie.one/note (opens new window)