Link Diary February 2025
-
- All protein structures
- Claude visualizes data
- An animation of the Chernobyl incident
- Setting up NeoVim
- Arch Linux installation
- Koko knew 1000 words
- Bank accounts for couples
MariaDB not importing init file
I created a docker-compose setup with mariadb.
I put a init SQL file to PATH but when I started the setup, it did not import.
Problem is, when the database is already initialized, it does not fill it (worth to mention, I created it by hand to test some).
So now if I have a change on the init SQL files, the safest way seems to be:
docker compose up # imagine it was stated and then stopped ^C docker compose down # bring it completely down, also sets back the DB docker compose up # Now the "up" will also import the database init file.
AI Plugin for Gimp
Haven't tried, but have to remember.
Conservative and Liberal moral ideologies
While the conservative side prefers to care for their inner closest circle, it seems to be quite opposite with liberals.
Access-Control Headers
When you want to build a API driven website, at first your browser may block you.
If the API is aon a subdomain or another domain, you need to enable yourself to call it. Quick and dirty, as you can only mention one Domain this needs extra work for multiple clients. Or you just open it up:
Access-Control-Allow-Origin: *
If you want to send custom headers with non-standard names, you need to allow that.
Access-Control-Allow-Headers: <header-name>, <header-name>
If you want to receive and access custom headers with non-standard names, you need to allow that.
Access-Control-Expose-Headers: <header-name>, <header-name>
Docker container for Jupyter notebooks
Run Jupyter Notebooks as a docker container
docker pull jupyter/datascience-notebook docker run jupyter/datascience-notebook
Crawling a website using wget
-m
= Mirror
-c
= continue interrupted downloads
-
k = convert links for local viewing
-np
= no parent, only go deeper into the folders, not up
wget -m -c -k -np https://website.com/path/to/content.html
Video Picks
Before the gorrila died at 46 years her message to the world was (in sign language): "I am Gorilla, I am flowers, animals, I'm nature. Man Koko love. Earth Koko love. But man stupid. Koko sorry, Koko cry. Time hurry. Fix earth, help earth. Hurry. Protect earth. Nature see you. Thank you."
Discussion