-
Web UI libraries should do everything in their power to render something relevant given absolutely any input. This, even if the consumer fails to include the necessary input for the component in question to function correctly.
When graceful degradation is discussed in programming it is generally in regard to what a web app should do when various web features are not supported: if JS is disabled, do X. If the api fails, do Y.
-
No post last week. My friend was very sick. He seems to be better now though!
These past two weeks have been very very busy for me. I had a lot of fun, but also a lot of stress and even fear. I’m going to focus on the good times here, although some of those were stressful in their own way.
One of my friends had a birthday this weekend. We went out to a bar at peak times for the first time in years.
-
I can now push to my site from my phone via rsync! I added my Termux install’s ssh pub key to my nearlyfreespeech.net account. I wrote a one line script to make the rsync call that Guillermo Garron describes on his blog:
rsync -v -rzz --checksum --chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r --delete <path-to-site>/ <user>@<server>:/<path> I had to install rsync via the following command:
pkg install rsync The -z compression option Garron recommends doesn’t work in Termux but switching to -zz (as the command’s own warning states) does work.