Python and Ruby is pre-installed in macOS, but ...

July 7, 2019
Python and Ruby is pre-installed in macOS, but ...

Just don't install anything into System's programming languages, unless you have a virtual environment. Also, you can manage Python and Ruby's versions.

For Python, pyenv and there is Virtual Environment, which is quite opinionated. I use poetry, though. I also tried to fit /.venv/ into the project folder, which requires additional settings.

Installing Linux on macOS MacBook Air -- Major Obstacles

July 6, 2019
Installing Linux on macOS MacBook Air -- Major Obstacles

Installing Linux is never hard on Windows, with supported hardwares, e.g. Dell, but on macOS, it is another beast; probably because of a very specific proprietary hardware -- main harddisk and cannot install additional internal harddisk. Furthermore, I have both macOS 11" (2015) ad 13" (2017) with different problems. After, it is never as easy as installing Windows.

Additional features for GitHub Pages blog

July 5, 2019
Additional features for GitHub Pages blog

GitHub Pages, powered by Jekyll is great, but it lacks some useful features, mostly features that require a real database. Solutions? -- link to outside servers.

Create an Electron app from any web server in any programming language.

July 4, 2019
Create an Electron app from any web server in any programming language.

As Electron is actually an containerized extended Chromium web engine, I reckon that this must be possible somehow. However, by default, Electron uses ipcMain/ipcRenderer rather than http or websocket...

As for a lazy reader, you can see my example project at https://github.com/patarapolw/rep2recall-sqlite, which is Python Flask in Electron. There is also a pure TypeScript version -- https://github.com/patarapolw/e-rep2recall

GitHub Pages as blog Combo

July 3, 2019
GitHub Pages as blog Combo

Right now, I only know one website that allows me to host HTML as full webpage that supports static JavaScript, that is GitHub Pages, which might not be truly static, if you have some good API supported in the background, e.g. Disqus, or Heroku.