oscarmlage oscarmlage

Microposts

Short notes, mainly with photos, quick thoughts, links, and small updates from my day-to-day.

TIL

Maybe your instance is playing tricks while uploading GIF files (dunno why it's not happening with other image formats):

413 Entity too large.

In our case this is a dockerized instance with `jwilder/nginx-proxy` in the middle, the fix is easy:

1. Use a nginx config volume: `./data/conf:/etc/nginx/conf.d`
2. create a `client_max_body_size.conf`file in the volume with "client_max_body_size 100m;" inside.
3. Restart the instance

TIL

From time to time I get an error like this trying to execute a custom command:

$ make backup
make: 'backup' is up to date

I thought that something was wrong with that backup command but it seems the error is because there is a `backup/` directory sibling to the `Makefile`.

If you change the directory name or the command name, the error is gone. Weird, indeed.

Pic

Morning vibes, Friday vibes... 127.0.0.2 gives me so nice pictures :)

Pic

Boost morning!

Thought

In software engineering, debugging (or ) is a method of debugging code by articulating a problem in spoken or written natural language.

The name is a reference to a story in the book «The Pragmatic Programmer» in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck.

🔈🦆

Thought

The solution with buggy / outdated :

Package versions can’t be deleted, they can only be yanked. A yanked package can still be used if it is in your project’s lock file so existing projects will not break.

But new projects can not use a buggy version, will display an error and advise an upgrade. Backwards compatibility without compromising new features.

🦀

youtu.be/oY0XwMOSzq4

Pic

November 12, 2022. Walking wearing t-shirt at night. Unbelievable.

Subscribe: Feedsxmlns="http://www.w3.org/2000/svg"width="24"height="24"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"class="icon icon-tabler icons-tabler-outline icon-tabler-rss"> Microposts