Douban: Glucose Revolution
Core: To control and slow down the emergence of blood sugar peaks, it is necessary to maintain a steady blood sugar level and reduce large fluctuations
Dangers
- Glycation and inflammation
- Damage to the liver and pancreas
Some small tips
- Eating order: vegetables, protein and fat, and finally carbohydrates
- Drinking a little vinegar before or during meals can help
- Simple exercise after eating can inhibit the appearance of blood sugar peaks
- Put on a coat: Mixing some protein and fat when eating carbohydrates can also help
Some excerpts and notes from reading "The Psychology of Money: Timeless lessons on wealth, greed, and happiness"
Knowing is not the same as doing
Financial success is not a hard science, but a soft skill - how you do it is more important than how much knowledge you have.
An individual investor's willingness to take risks depends on early personal experiences. What determines the outcome in investing is not intelligence, not education or experience, but the time and place where a person is born - purely luck factors.
Recently, I've been reading on Apple Books on my computer. The experience is decent, but there's one annoying aspect when taking notes: When you copy content from a book, Books automatically adds quotation marks and appends copyright information. This can't be removed through citation settings, which means that every time you paste a note, you have to manually delete this extra information. It's quite a hassle.
"If there is evidence that allocating empty sets can harm performance, it can be avoided by repeatedly returning the same immutable empty set, because immutable objects can be freely shared (Item 17). The following code does just that"
Excerpt From
effective java 3rd Chinese edition
wizardforcel
This material may be protected by copyright.
In Vue components can set a slot tag in the template, which is used to pass some content when using this component to replace the slot.
1
2
3
4
5
6
7
8
9
10
| <FancyButton>
Click me! <!-- slot content -->
</FancyButton>
<button class="fancy-btn">
<slot></slot> <!-- slot outlet -->
</button>
// final output
<button class="fancy-btn">Click me!</button>
|
After setting up my English blog, I accidentally noticed English content tags appearing on the tag pages during an update yesterday. Initially, I thought there was an issue with the logic of generating the tag pages. The variable used for generation was $.Site.Taxonomies.tags
, which seemed to have no issues. I thought about various filtering methods, but none seemed to solve the problem.
In China mainland, the project initialization command of Nuxt will encounter the following error.
Error: Failed to download template from registry: Failed to download https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json: TypeError: fetch failed
How can you publish the output of a completed gradle project to the Maven Central Repository, so that everyone can benefit from your work? Last week, I went through the process and published a simple clipboard operation project I wrote. I found it a bit complicated, the process was long, and with gradle, the updates are too fast and compatibility is poor. This makes the documents found online somewhat inconsistent. What's worse, even the official gradle publishing tutorial from Sonatype is inconsistent with the latest gradle8 version. Therefore, I could only refer to the process inside, and the details had to be figured out by myself.
The idea originated from my desire to write a Kotlin script that reads the content of the clipboard and saves it to a file. However, after searching online, the methods given by Java and Kotlin both access the system clipboard through the awt package in the JDK. Since Kotlin scripts still run on the JVM target, the methods are universal.
Previously, I used Google Analytics to provide website statistics services, tracking the visits to each page on my blog. It's usable, but Google Analytics offers too much statistical content, which is quite overwhelming. Moreover, Google's services always have accessibility issues. Therefore, after reading other bloggers' introductions to Umami, I decided to set up my own website statistics service and switch to it.
Umami is a simple, fast, privacy-focused alternative to Google Analytics.