Thomas Burette

Thomas Burette

@thomasburette.com

Dev.

48 followers315 following68 posts

I was curious what the "React Router v7 ↗" option in the create-vite CLIis. It turns out that it does a : npm create react-router@latest. In clear : it does not create a vite project but a react-router (Remix) project instead. I think it's so nice of @vite.dev to redirect to a competing project.

Reminder, <hr /> is not a thing. Neither is <hr/> nor <img ... /> or any other. It's called a self-closing tag and it doesn't exist in HTML. The "/" is simply ignored by the browser. The only place it makes sense is in the HTML within JSX.

After all it takes an Array as input. Re-reading the doc, it's clear why it is attached on Object. It works not just on arrays but on any iterable (developer.mozilla.org/en-US/docs/W...) My second question is, why does it return a (null prototype) object acting as a map instead of map?

developer.mozilla.orgIteration protocols - JavaScript | MDNIteration protocols aren't new built-ins or syntax, but protocols. These protocols can be implemented by any object by following some conventions.

I occasionally need to transfer files from my computer to my phone. I wrote a script to make a simple web server that lists a directory. I'm certain it's a dumb way to do it and there are better tools but it mostly works for me.

I'm looking at fully featured linux backup solutions (snapshots, deduplication,..) for my laptop and move away from "occasionally moving files in my home directory to Google Drive". The tools I've looked at are : rsnapshot, kopia, BorgBackup, restic, Bupstash. I think I'm gonna go with BorgBackup.

I'm gonna store the backup on a VPS I have. The pluses of BorgBackup: + 10+ years project, still updated + fully featured (including deduplication) + GUI option possible + memory efficient (I have a tiny VPS)

The minuses of BorkBackup: - pricier if I want to pay a host for storage (because it requires SSH) - needs python and the tool installed to retrieve from backup (can't extract a file in a pinch) - there is a better v2 on the horizon that will require to rebuild the backup from scratch

You are up to date.