mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

18K
active users

#TIL

127 posts121 participants13 posts today

#TIL that I need to dance more often.

My mind and body missed not having had a #houseMusic #dance session Monday night. My #brainFog has been awful & Monday was a down day for me.

Since I hadn’t danced in 9 days, I decided to dance for today’s workout but the resistance was fierce. I really had to push through, ignoring the temptation to skip it, but once I got started I just felt lighter & happier (while quickly getting tired af 🤦🏽‍♂️).

My body needs to dance regularly or I stagnate.

Random TIL 4

In bash, you can use ${var:offset:length} to get a substring of the string in the variable. Offset can be negative to get from offset beginning from the end of the string (I always love this feature in languages). Also the length can be negative, which will make it an offset from the end of the string as well (??!).
Finally, I also learned about the @ operator in variable expansion.

Example:
```
var=Scunthorpe var="${var: -9:-5}" echo "${var2@U}!"
```

TIL about the "hover" CSS media capability query.

@media (hover: hover) {...}
@media (hover: none) {...}

css-tricks.com/touch-devices-n

As well as the "pointer"/"any-pointer" media queries, also from dev.to/cooty/a-new-way-to-test and developer.mozilla.org/en-US/do

Like

@media (pointer: coarse) {...}
@media (any-pointer: fine) {...}

All widely supported!

Relying on screen size to try to detect touchscreen devices has always felt iffy to me, so this will *definitely* come in handy!

CSS-Tricks · Touch Devices Should Not Be Judged By Their Size | CSS-TricksFront-end developers and web designers live in an insane multi-device reality.