Automatic System Switchover

travis 到 github action

Use GitHub Actions to automatically deploy your Hugo blog to GitHub Pages and Gitee.

Background Introduction

Yesterday while updating the blog, I discovered that the travis service was unavailable. Upon checking the travis webpage, I noticed the progress was stuck during source code retrieval, and a flash of insight occurred – I thought about GitHub’s previously launched action service.

Due to being busy at the time and also needing to apply for access to use action, it has now officially gone live. With some free weekend time, I decided to try out a new toy?

The future of China will undoubtedly be a China of good elders and good old people.

I hope that twenty years from now, I’ll be a cute old man, spending time with a cute old woman. I don’t seek great wealth or status; just to be healthy and strong enough to travel and explore.

Video Transcript

Go to Youku Search, and no further links will be provided.

Transcript

I said that in 10 years, I’ll be a charming old man, and I will work hard to become a charming old man. The future of China must be one with good old men and good old women. Even if I am 60 years old in 10 years, I will be the youngest person in this world’s third kingdom.

My 18 years old is probably different from yours.

The very common phrase information fragmentation – since graduating from high school, aside from the time I spent reading novels, I haven’t really taken the time to sit down and read a book quietly and attentively for a long time. Sometimes, looking back, after so many years of work, I still remember what I did each year? Often, by the middle of the year, I’ve forgotten a lot of things from the first half. Writing a blog is a good habit, even though much of what I write isn’t appropriate and doesn’t matter – it was originally written for myself to read.

What kind of journalist does society need?

This excerpt recounts the author’s perspective on the profession of journalism, emphasizing that reporters should possess a social conscience, a broad knowledge base, and perseverance. The author also shares their reflections at age 50, including maintaining curiosity, achieving balance between material and spiritual pursuits, and contemplating the future.

Video Transcript

Go to Youku Search, and no further links will be provided.

Transcript

The best journalist is first, having a social conscience; second, possessing knowledge; and third, being able to run long distances. I couldn’t handle running 100 meters – I ran it. I believe these three things combined, people expect the safety concerns surrounding vaccines to be completely resolved, just like with the melamine scandal. We always move forward in a logic loop of problems arising, solving problems, and completely resolving them. Otherwise, what is there for a journalist to do?

What will Chinese football be like in 20 years?

The supplementary reader responses were mostly hastily written in 2021. The time it took to transcribe Wang Yi’s speeches at the beginning of the pandemic was still when things were just starting – don’t say twenty years later, or even a year or two later; the world is always beyond people’s expectations. Now that the epidemic has ended domestically in China, the overseas ones are still making a fuss. Regarding football, Chinese national team played quite well over the past few years; the coach dared to give them free rein and attack, which was much better than when they were just starting out and accompanying Grandpa to watch games was somewhat interesting. What kind of experience is it that a national team’s game makes even an old man unwilling to change channels?

Ethical deficit, erosion of humanity

Here’s the translation:

“To do things properly, first and foremost, you need to have a clear conscience. This allows you to sleep soundly, without minor ailments or major issues. It’s best to avoid making mistakes in the first place. If you do make a mistake, it should be about trying to rectify it, not concealing it or hoping to forget it yourself – humans are also capable of excellent memory. Inner peace is the destination; being able to answer your own questions with integrity allows you to live more lightly.”

Regarding time, you need to read many books to find the answers.

In general, the country is getting better and stronger, richer – and that’s without diminishing the importance of individual vanity. Looking back from the 1990s to now, within the families I’ve encountered, people’s lives have undeniably improved significantly. Simultaneously, the number of wealthy individuals has increased. As market-oriented economic development inevitably leads to widening income inequality, issues like class solidification and blocked upward mobility are prevalent globally.

Standard Library Container Memory Allocators: allocator

A custom allocator can improve performance, increase memory utilization efficiency, and address the issue of frequent, small memory allocations.

Antecedent

Recently, I’ve been working on the development of network data packets, requiring frequent allocation and release of small blocks of memory. Initially, I considered using a memory pool, reviewing several existing ones and discovering this: https://github.com/cacay/MemoryPool When looking at the interface, I was quite puzzled by how the memory pool’s implementation was a bit strange. The MemoryPool implementation logic involves allocating fixed-size memory blocks. Having reviewed Boost’s memory pool interface, it provides a template that is instantiated when used. Fortunately, this library already had an article describing it, mentioning the concept of an ‘allocator’.