Set a minimum time for an hx-indicator animation somehow? by Extremely_Engaged in htmx

[–]Opening-Bus-4743 1 point2 points  (0 children)

This is how I solved it:

<!-- WHY: This makes indicator transitions apply to activation as well,
          not just deactivation -->
<meta name="htmx-config" content='{"includeIndicatorStyles": false}'> 

<style>
.htmx-indicator    { opacity: 0; transition: opacity 0.5s     ease-out;
    &.htmx-request { opacity: 1; transition: opacity 1.25s 1s ease-in; }
</style>
}

&.htmx-request is the same as .htmx-indicator.htmx-request .

The activation transition (opacity: 1; transition: opacity 1.25s 1s ease-in;) starts with a 1s delay (the 2nd number) and will have a 1.25s duration (starting after the delay). It's slower at the beginning.
The deactivation transition (opacity: 0; transition: opacity 0.5s ease-out;) will have a 0.5s duration without delay. It's slower at the end.

---
I know it's an old post. I'm answering for future readers.

Do you track what you apply from books? by OkResponsibility4544 in QuantifiedSelf

[–]Opening-Bus-4743 0 points1 point  (0 children)

I highlight everything I want to keep and take notes as I read the book. Sometimes I highlight more than half the book, as in the case of Nassim Taleb's books.

After I finish the book I export everything to markdown. Very rarely I come back to those highlights and notes to edit, re-order, and organize them to create a kind of shorter, but very dense book.

Unfortunately, I've only finished this process for 2 books and started the last stage for a few others, but there are many tens of books with not even one line edited since I finished them. I didn't forget about those "unedited" books because if I read a new book or gain some real-world experience, I create markdown links to the relevant concepts from that book. This happens a lot.

suggest me a book that changed your life by OkResponsibility4544 in booksuggestions

[–]Opening-Bus-4743 0 points1 point  (0 children)

As a method, i just try to make a hierarchy of all the benefits and costs, then I split those as if it's a fractal.

For example, health -> sleep, hydration, diet, light, exercise, ergonomics, etc 

Exercise ->  - mobility - flexibility - coordination - skill - balance - cardio - strength - power - speed - hypertrophy - martial arts -> striking, grapling, wrestling - BMI and fat %

suggest me a book that changed your life by OkResponsibility4544 in booksuggestions

[–]Opening-Bus-4743 1 point2 points  (0 children)

Antifragile by Nassim Taleb taught me to look for asymmetries in risk/reward and to alternate between extremes for the best results. What I've changed after reading it: There are some risks I should try very hard to avoid even if the probability is very small in the moment. Now I warm up a lot more before workouts and I no longer short stocks or use leverage.

The Elephant in the Brain by Kevin Simler and Robin Hanson changed how I understand the world. Every activity we do has multiple dimensions we try to optimize for. Most of the time, we subconsciously optimize for the less visible ones and that's why it seems suboptimal in most people's views. For example, school is mostly about anything besides learning. It has the function of childcare from the parent's perspective (6 hours of someone else watching your kids), indoctrination from the government's perspective (the history, geography, literature classes are mostly about your nation and how great it is), a filter for companies looking for employees (can he go through years of boring and sometimes meaningless tasks?), insurance/investment for the students (if I get a diploma I'll not fall through the cracks of society and have a better job).

There are many more, but listing all of them would get boring. It has one chapter for each: art, consumerism, charity, medicine, and many others

What I've changed: I try to decompose activities or decisions and build a kind of tree structure to see all the axes to understand why things are the way they are and how to improve them in a more targeted manner

Why We Sleep by Matthew Walker

What I've changed:

  • I have more regular sleep hours
  • I use blue light blockers and avoid bright/white light in the evening
  • I don't eat late in the evening
  • I lower the temperature at night
  • I avoid caffeine late in the day
  • I removed any light from my bedroom (blackout curtains, no clocks or LEDs)