Core Competitiveness
Reading Notes on '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
Reading Notes on 'The Psychology of Money'
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.
Remove Copyright Information from Copied Content in Apple Books
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.
Vue3 Slot
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.
|
|
Hugo English Content Appears on Chinese Pages
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.
Solution to Nuxt3 Project Initialization Failure
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
Setting up My English Blog By Hugo
Rethinking Investment
2023 Annual Record
Advent of Code 2023: Day5
Embracing AI with the Arc Browser
How to Publish a Gradle Project to Maven Central Repository
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.
Clipboard Access in JVM
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.