Git Submodule Merge History Lost
There’s a Git repository locally where submodules were in temporary branches during the initial pull. I made commits on that temporary branch, and then switched back to the main branch. However, those committed changes seem to be lost and cannot be found within the main branch. I also can’t find any record of that temporary branch.
Solutions After committing to a temporary branch within the Git submodule and switching back to the main branch, these commits are no longer found.
GitHub Pages Easter Egg: Deploying Multiple Pages
Recently, my biological clock has been a bit off, still tinkering with GitHub Pages deployments around 2 AM.
I went to eat after work, and I just wanted to sleep when I finished, then came back around 8:30 PM, feeling drowsy, thinking I’d take a nap, and ended up falling asleep immediately. When I woke up, it was already past 2 AM.
Categories that haven’t even launched yet: AI Study Group
Old problems, the flamboyant beauty of blossoming flowers. (This captures the essence and poetic nature of the original.)
Alternatively, a more literal translation could be: “Old ailments, beautiful eyes like blooming flowers.” However, the first option is generally preferred for its aesthetic quality.
For many years, I’ve focused on backend development, and recently started to explore AI programming while dipping my toes into some frontend-related content. However, during this period of tinkering, I gradually realized I was falling back into an old habit – being dazzled by shiny new things. I constantly try to use AI to create a frontend interface, but in reality, these attempts haven’t provided much practical benefit for my current work and are actually wasting my energy.
Claude4 released, attempting to develop: Hugo tags, hyperlink translation assistant
This site is developed using Hugo, but I’ve always used Chinese titles, which results in less friendly generated article links. In simpler terms, when shared, they don’t look as good because the Chinese characters are escaped into formats like %E4%BD%A0%E5%A5%BD within the links. While you can solve this by setting a slug, it’s tedious to do manually every time.
Therefore, I decided to try using Claude4 to develop a translation assistant that automatically converts Chinese titles to English slugs and adds hyperlinks within the articles.
Merge the Pull Request into the Repository of the Fork
github-readme-stats is a GitHub profile statistics generator that allows users to display various statistics and charts within their GitHub profiles. It offers multiple customization options to tailor it to user needs.
I manage my repository habits by grouping them by project; GitHub doesn’t support repository grouping, so I have to achieve this by splitting repositories across different organizations. The latest branch of github-readme-stats cannot support statistics for repositories spanning different organizations; I forked a branch and merged the corresponding code.
Commit messages in Git’s history
- Script for batch modifying Git history commit author information, rewriting Git history records using
git filter-branch.
No coding, design and develop a self-selected stock module.
- Last month, we experimented with cursor, but due to the limitations of the free quota, we didn’t develop overly complex features; we just did some basic testing. We discovered then that Byte also released similar products, both using the same large models – Claude-3.5 – at their core.
Byte’s product is called Trae, initially launched in the Mac version and finally released its Windows version in February of this year. Big companies are good because you can freely “white嫖” (literally translates to “free-eat”), without having to pay, with unlimited use of Claude-3.5 – this model performs quite well.
Protobuf Zero Value Pitfalls: When Default Values Become an Invisible Killer of Business Logic
The US stock market has three trading sessions: pre-market, live market, and post-market. The logic for pushing data – whether it’s full data or numerical increments – is optimized to conserve bandwidth (sending as little data as possible). Initially, only the full dataset is sent in the first transmission; subsequent transmissions are incremental updates of all fields.
Why not use the optimal solution? This involves multiple project teams, some of which have been live for many years.