Link Diary February 2025

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.

https://github.com/intel/openvino-ai-plugins-gimp

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

Youtube Preview/Vorschau
All protein structures

… discovered by AI, skipping so much research effort and enabling great solutions.

Youtube Preview/Vorschau
Claude visualizes data

Great examples of quick data visualization generated by Claude 3.7.

Youtube Preview/Vorschau
An animation of the Chernobyl incident

If you've seen the miniseries (recommend!) you'll recognize all the mistakes that were made until it was too late.

Youtube Preview/VorschauYoutube Preview/VorschauYoutube Preview/VorschauYoutube Preview/Vorschau
Setting up NeoVim

He goes through step by step setting up and ricing NeoVim (nvim) with really cool plugins.

Youtube Preview/Vorschau
Arch Linux installation

He's going all in with relatively little knowhow but a lot of ambition. I love it. Plus his editing style is hilarious.

Youtube Preview/Vorschau
Koko knew 1000 words

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."

Youtube Preview/Vorschau
Bank accounts for couples

This strategy sounds sane. One for all the bills + household expenses, a savings account for a percentage of the remaining money and one account for each of the couple for their own unjudged use.

Discussion

Enter your comment: