Witnessing A-share market open at the upper limit (or: Witnessing A-shares hit the upper limit at the open)

A Day of Miraculous Gains Today, the Shanghai Composite Index opened higher by 10%, but immediately slid down, ultimately closing up 4.59% at 3,489 points. The total trading volume of the two markets reached a massive 3.45 trillion yuan, setting a new historical high. What is particularly noteworthy is that almost all stocks hit the upper limit at the opening, regardless of whether their performance was good or bad, or whether their P/E ratio was high or low. This market trend can be described as a unique phenomenon unseen in decades. ...

October 8, 2024 · 3 min · xgDebug

Simple Logic

Chapter 1: Intellectual Preparation for Logic Highlightg(yellow) - 02 Confirming Facts > Page 15 · Location 154 The objective existence of facts comes in two basic forms: things (objects) and events. Things are entities that exist, such as animals, vegetables, or mineral deposits. For example, the White House can be seen as a representative of a thing, while Lincoln’s assassination can be seen as a representative of an event. Highlightg(yellow) - 02 Confirming Facts > Page 15 · Location 158 To confirm the existence of a thing, you simply need to conduct an on-site investigation. ...

October 7, 2024 · 21 min · xgDebug

Relatively safe assets amid severe inflation

During hyperinflation, currency rapidly depreciates, leading to a sharp decline in purchasing power. To protect wealth in this environment, the following assets are usually considered relatively safe: Precious Metals Gold and silver have historically been viewed as hedges against inflation. Their intrinsic value is unaffected by specific monetary systems, and they often maintain or even increase their value during economic instability. Real Assets Real assets such as real estate, farmland, and forests can usually preserve value, and even appreciate during periods of hyperinflation. These types of assets not only have practical uses but can also generate rent or agricultural income. ...

October 6, 2024 · 2 min · xgDebug

Animal Farm

All animals are equal, but some animals are more equal than others Absurd slogans and constantly altered rules are the main tools Orwell uses to expose how totalitarian regimes manipulate, deceive, and suppress the masses through language. These slogans appear simple and easy to understand on the surface, fitting the interests of the animals, but in reality, they are cleverly twisted and utilized by the rulers (the pigs), ultimately betraying the original intention of the revolution and plunging the other animals back into a state of oppression and exploitation. ...

October 5, 2024 · 4 min · xgDebug

Life skills that school didn't teach

Don’t compare yourself, there is always someone who lives better than you You are the only one who knows what’s most important to you. Remember that: What is important to YOU? Not what is important to the Joneses next door.

October 4, 2024 · 1 min · xgDebug

Stock investors' greatest enemies are fees and emotions.

Fees (or Costs): High-cost investments erode long-term returns. For example, frequent buying and selling generates transaction fees, as well as potential stamp duties, all of which reduce the final investment yield. Therefore, controlling unnecessary trading frequency and choosing low-cost investment tools (such as index funds) is crucial for improving long-term investment returns. Emotion (or Sentiment): Investors’ emotions are often influenced by market fluctuations. For instance, they tend to be overly optimistic when the market is booming, and overly pessimistic when the market is sluggish. These emotional decisions often lead investors to buy or sell stocks at the wrong time. For example, selling during a market panic may result in losses, while chasing gains when the market is overheated may expose them to the risk of a pullback. Therefore, remaining calm and adhering to a long-term investment plan and value investing principles is extremely important. ...

October 3, 2024 · 1 min · xgDebug

How did October's time disappear?

2024-10-01 Woke up at 10:30 AM, which is even more impressive, because I only went to sleep after 1 AM last night. Wrote down a sudden thought that flashed through my mind last night A possible response to economic recession Planning to go shopping at the mall this afternoon, maybe find a coffee shop to read? This is life. 2024-10-02 A relaxed holiday, as if nothing was done. Repaired two robots in the afternoon and fixed some bugs. The bug showing the balance hasn’t been fixed yet; I don’t want to bother with it. Watched a live stream tonight. Qiushi discussed that currently, creating a video account is probably the only chance for ordinary people to transcend social classes, because ordinary people can’t do AI either. 2024-10-03 Time flies, woke up relatively early today. Received the AWS bill this morning; it feels so expensive. Spent the whole morning switching to a 512 VPS. The greatest Enemies of the Equity investor are Expenses and Emotions. The biggest enemies of stock investors are Fees and Emotions. Studied bonds. This thing feels similar to fixed deposits. Its main purpose is to pair with stocks, and its key function is rebalancing, achieving algorithmic bottom-fishing and top-running. Of course, the cost is cutting off returns and early accumulation. Played around with AI this afternoon and evening. Received a red envelope of 800 for helping someone. No compound effect, not very worthwhile. 2024-10-05 Spent some time this morning learning about digital currency security knowledge. There is no absolute security in this world. Declined a request for program development from a classmate because I don’t want to do it. Introduction to Logic reached 50%. The earlier parts were basic concepts, but the later calculation sections felt much simpler because AND, OR, and NOT are commonly used in computers. Updated the calculator, wasting 8 hours of my life. 2024-10-08 A-shares started trading today, and the market hit the upper limit across the board right at the open. I can’t tell if it’s the madness of retail investors or the operation of an invisible hand. Based on my intuition, retail investors shouldn’t just place orders at the limit-up price. But the trading volume is also very high, which confuses me. High volume means someone is selling at the limit-up price, and someone else is buying it. If it’s not just me playing against myself and losing transaction fees, then there must be a large number of retail investors entering the market. The limit-up was not maintained; it quickly started sliding down, eventually rising 4.59% with a volume of 3.5 trillion. Companies started announcing reductions in holdings last week. When market sentiment is so high, people are selling off instead of making money. There must be a reason for this. I think the main reason is that they themselves don’t believe in their own companies. I can’t figure out who is buying at the true price. 2024-10-09 Packaged the MAC AI. Wrote a note about First major drop after a surge: Short-term volatility or market warning? 2024-10-10 Today is a special day, worth remembering. Operated my account this afternoon, selling 50% of my Industrial and Commercial Bank shares. The market saw a slight overall decline today, but major blue-chip stocks rose 4-5%. At the same time, the Ministry of Finance announced a press conference for Saturday. After analyzing it, I believe the policymakers want to temporarily stabilize the market by boosting major stocks and releasing news to stabilize market confidence. The press conference on Saturday will definitely introduce some practical policies to pull the market back, because their goals are far from achieved, and they still have many moves left. They cannot give up on the market now. Based on the above judgment, I decided to sell in batches today and tomorrow, selling 50% of the current holdings each time, and gradually buying back on Monday and Tuesday next week. This operation violates my most important principle: Don’t try to TIMING the market. But I still want to test with real money whether my recent understanding is correct, and it cannot be denied that I also have some greedy desire to make money. 2024-10-12 Truly wise people often have independent thoughts and judgments, not relying on the approval of others or social standards to confirm their value. 2024-10-13 The cabinet is essentially a prop; everything is decided by Emperor Jiajing alone. ...

October 2, 2024 · 4 min · xgDebug

Economic recession is a possible coping strategy

Primary Challenges Faced Currently The economy has reached the peak of debt, and debt pressure is causing a reduction in personal income. Individuals are cutting back on spending, directly leading to a decline in consumption. Declining consumption leads to a decrease in corporate revenue. Decreased corporate revenue leads to lower employee income and tax revenue. Decreased investment willingness among individuals and corporations leads to a slump in the real estate market. Land sales are sluggish, local finances are nearing bankruptcy, and in some regions, official salaries cannot be fully paid. Historical Lessons This situation is bound to lead to extreme change, which is unacceptable, so countermeasures must be taken. What is the goal of these countermeasures? Naturally, it is to maintain social stability, and on this point, everyone’s interests are unified. ...

October 1, 2024 · 3 min · xgDebug

A Reflection on the Day of A-Share's Historic Surge: False Prosperity or Steady Ascent?

The Shanghai Composite Index surged 8.06% today, breaking the 3300-point mark. Total trading volume across the two markets reached a massive 2.6 trillion yuan, setting a new historical high, with all brokerage stocks hitting the upper limit. Faced with such a fierce surge, many people cannot help but wonder: how long can this frenzy continue? Should we take profits now? Personally, I believe that this market rally is unlikely to be a flash in the pan; rather, it is a mid-term process that could last for two or three months. ...

September 30, 2024 · 5 min · xgDebug

Always Say Less Than Necessary

Parents teach us how to speak in a year. But we must spend a lifetime learning how to be silent. When you try to use language to impress others, the more you speak, the more mediocre you appear, and the more mistakes you make. This is roughly the meaning of “language carries Zen insight”: the less one speaks, the more unknown there is, and humans are naturally fearful of the unknown.

September 29, 2024 · 1 min · xgDebug

One must not display one's brilliance too openly, lest it incite jealousy and fear.

Everyone is like Wu Dalang; when running a business, they dislike having staff who are taller than them. Like Liu Bang, there are too few people capable of being managed who are superior to oneself, so you won’t encounter them. Since the vast majority of leaders are Wu Dalang, when you showcase your abilities, you risk making them wary of you.

September 29, 2024 · 1 min · xgDebug

A personal view on this round of economic stimulus

On September 24, 2024, the central bank held a press conference and announced a new round of economic stimulus plan, planning to inject approximately 300 billion yuan into the stock market, and stated that it will continue to add funds in the future. Overall, this strategy appears quite well-structured; by pushing up the stock market, the intention is to guide residents directly into investing in the financial market. This measure may attract a large amount of capital into the market in the short term, bringing short-term prosperity. However, the sustainability of this effect remains questionable. ...

September 29, 2024 · 4 min · xgDebug

Trying to start keeping a diary, recording how time vanished

2024-09-29 Woke up at 10:30 AM and deployed my blog to GitHub. I switched to using GitHub Actions for deployment, and it feels much more convenient than the previous two repositories. Started streaming videos at 11 AM, so the next hour is basically going to be wasted. Added a search function to my blog in the afternoon, and time flew by quickly. In the evening, I started reading a bit of The 48 Laws of Power. This book feels a little dark/grim, and I don’t like it. But I suspect this idealistic tendency of mine is poisoned by feudal etiquette. Maybe being a “small person” (a pragmatist) would be happier? Only time will tell. ...

September 29, 2024 · 2 min · xgDebug

Automatically deploy a Hugo blog to GitHub using a Deploy Key

1: Generate SSH Keys Generate a new SSH key pair in your local terminal: ssh-keygen -t rsa -b 4096 -C "[email protected]" After execution, it will prompt you to specify a filename. Press Enter to use the default path (~/.ssh/id_rsa), and you will receive two files: id_rsa (Private Key) id_rsa.pub (Public Key) 2: Add Deploy Key to the GitHub Pages Repository Open your GitHub Pages repository xgDebug/xgdebug.github.io. Go to Settings -> Deploy keys. Click Add deploy key. Title = Choose a descriptive title (e.g., “Hugo Blog Deployment Key”). Key: Copy and paste the content of the public key id_rsa.pub generated in the previous step. Check Allow write access, as write permissions are required. Click Add key. ...

September 29, 2024 · 2 min · xgDebug

Invested How Warren Buffett and Charlie Munger Taught Me

Foreword by Phil Town Warren Buffett says investing is buying an asset that produces cash flow for substantially less than it’s worth, like buying a $ 10 bill for $ 5. She finally did the math and discovered that unless she was willing to be a wage slave for her whole life, accumulating enough money to have choices was nearly impossible without investing. Introduction, or How to Use This Book a market crash is a natural part of the economic cycle that is going to happen whether I want it to or not. Chapter 1: January—Becoming Brave Rule #1 is Don’t Lose Money. Rule #2? Don’t Forget Rule #1. ...

September 28, 2024 · 4 min · xgDebug

The Simple Path to Wealth

Beginnings “If you reach for a star, you might not get one. But you won’t come up with a hand full of mud either.” Spend less than you earn—invest the surplus—avoid debt. Carrying debt is as appealing as being covered with leeches and has much the same effect. ...

September 28, 2024 · 9 min · xgDebug

Deploying PyTorch Models to Android using ncnn

Deploying PyTorch Models to Android Phones using NCNN When compiling NCNN, enable Vulkan support for GPU usage by setting -DNCNN_VULKAN=ON. MobileNetV3 Enabling CMAKE 0091 Feature when Compiling to MT cmake_minimum_required(VERSION 3.20.0) cmake_policy(SET CMP0091 NEW) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") project("client-project") Training YOLO \Envs\torch\Scripts\activate.ps1 python train.py --batch 6 --workers 2 --imgsz 960 --epochs 300 --data "\Core\yaml\data.yaml" --cfg "\Core\yaml\cfg.yaml" --weights \Core\weights\best.pt --device 0 Model Conversion from torch import nn import torch.utils.model_zoo as model_zoo import torch.onnx from libs import define from libs.net import Net from libs.dataset import ImageDataset import os test_data = ImageDataset(define.testPath,False) test_loader = torch.utils.data.DataLoader( test_data, batch_size=1, shuffle=True) device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = Net(out_dim=19).to(device) model.load_state_dict(torch.load( "./widget/last.pt" )) model.eval() def saveOnnx(): for data, target in test_loader: data, target = data.to(device), target.to(device) label = target.long() y = model(data) # Export the model torch.onnx.export(model, # model being run data, # model input (or a tuple for multiple inputs) "./widget/best.onnx", # where to save the model (can be a file or file-like object) export_params=True, # store the trained parameter weights inside the model file opset_version=10, # the ONNX version to export the model to do_constant_folding=True, # whether to execute constant folding for optimization input_names = ['input'], # the model's input names output_names = ['output'], # the model's output names dynamic_axes={'input' : {0 : 'batch_size'}, # variable lenght axes 'output' : {0 : 'batch_size'}}) traced_script_module = torch.jit.trace(model, data) return saveOnnx() # Conversion os.system("python -m onnxsim ./widget/best.onnx ./widgetbest-sim.onnx") os.system("./bin/onnx2ncnn.exe ./widget/best-sim.onnx ./widget/best.param ./widget/best.bin") os.system("./bin/ncnnoptimize.exe ./widget/best.param ./widget/best.bin ./widget/best-opt.param ./widget/best-opt.bin 65536") python .\export.py --weights weights/best.pt --img 960 --batch 1 --train python -m onnxsim best.onnx best-sim.onnx .\onnx2ncnn.exe best-sim.onnx best.param best.bin ncnnoptimize best.param best.bin best-opt.param best-opt.bin 65536 Git clone ncnn repo with submodule $ git clone https://github.com/Tencent/ncnn.git $ cd ncnn $ git submodule update --init Build for Linux / NVIDIA Jetson / Raspberry Pi Build for Windows x64 using VS2017 Build for macOS Build for ARM Cortex-A family with cross-compiling Build for Hisilicon platform with cross-compiling Build for Android Build for iOS on macOS with xcode Build for WebAssembly Build for AllWinner D1 Build for Loongson 2K1000 Build for Termux on Android Build for Linux Install required build dependencies: ...

September 28, 2024 · 12 min · xgDebug

Debugging native programs using LLDV on Android 11

Mobile Side PUSH Debug Server to Phone adb push lldb-server /data/local/tmp chmod 755 /data/local/tmp/lldb-server Launch Debugger Service /data/local/tmp/lldb-server platform --listen "*:8888" --server PC Side Port Forwarding adb forward tcp:8888 tcp:8888 Launch LLDB .\lldb.exe View Supported Platforms platform list Select ANDROID Platform platform select remote-android Connect to Phone (Phone Serial Number: 9643e0ec0604). To change to the currently debugging phone, use adb devices to view the serial number. platform connect connect://9643e0ec0604:8888 View Currently Running Processes platform process list Attach attach 9053 Set Breakpoint b send Run c View Thread List thread list View Call Stack bt

September 28, 2024 · 1 min · xgDebug

What does it mean to have incompatible core values?

You hold reverence for natural law, he worships authority— This is a difference in worldview; You stand by conscience, he stands by the strong— This is a difference in values; Your effort is for an ideal life, His effort is to be superior to others— This is a difference in philosophy of life.

September 12, 2023 · 1 min · xgDebug

Pitfalls encountered when installing Stable Diffusion WebUI on Arch

Use Alibaba’s mirror/source instead of Tsinghua’s, as Tsinghua’s source is incomplete. Use python launch.py to install some Git libraries. Install the versioned pip libraries listed in requirements_versions.txt. You can use python webui.py --port=7860 --server=0.0.0.0 --medvram to save VRAM (GPU memory).

September 12, 2023 · 1 min · xgDebug