s. So I Write / shelper

THE PERSONAL NOTEBOOK OF SHELPER

So I write.

Ideas, projects, and things
learned along the way.

Latest writing

23 ENTRIES

The Universe as an Evolving Pattern: Buddhism, Quantum Randomness, and Consciousness

This post summarizes a thought experiment I developed through a conversation about Buddhism, consciousness, quantum mechanics, and the structure of the universe. It is not intended as a claim that Buddhism is physics, nor as an established scientific theory. Rather, it asks whether several ideas can be understood through a common conceptual model. 1. Could the universe be like Conway’s Game of Life? Conway’s Game of Life begins with remarkably simple local rules.

buddhismconsciousness11 min read

Setup Modern Python development

First, you need to install pyenv so you can have multiple version of python in your system. then for projects that does not need packaging, you can use pyenv-virtualenv to setup requirements.txt for project based venv. Second, you need to install pipx, so it installs some shared tools for the whole system. After setting up pipx (using certain version of python specified by pyenv), pipx reuses the python interpreter on which pipx was installed, so if you upgrade python and got the previous one removed, pipx will fail.

python1 min read

Migrating to new python version with lots of dependencies

so i am using poetry to manage my venv for a project that relies on dozens of PYPI packages. i first thought it would be relatively easy to migrate python3.7 to the latest 3.10. but i was wrong, and i spent hours to fix it. Here is what i’ve learned. first of all, you need to install pyenv for multiple version management, a caveat here is that if you use the suggested method to setup (through curl https://pyenv.

python2 min read

Emacs in WSL2

Using Emacs on windows is always an imperfect experience, luckly windows10 comes with WSL2 now, which lets you install Emacs in WSL2 and use it on windows now. I did some hacking to make the experience little bit better, which includes: open any file on windows in emacs@wsl2 setup org-capture on chrome on windows and capture notes using emacs@wsl2 open links in org-mode in emacs@wsl2 using windows default apps. e.g., open https links using chrome on windows, open document links in MS-office on windows, etc.

emacs6 min read

setup hugo with github pages on github

I followed this site for setting up hugo blogging on https://github.com/ using github.io, the instruction is little bit confusion, so just to clarify a little bit here. the instructions there uses gh-pages branch to publish your site, this is done by the action peaceiris/actions-gh-pages@v3. however, for user/organization.github.io pages, the default branch for publishing is main. so if you use this action, you need to change your page branch to gh-pages and set the directory to /root.

areablog1 min read
s.

Thanks for stopping by.
Feel free to share anything you find useful.

Buy me a coffee ↗