A Five-Step Path to a Low-Cost Website: Self-Hosted Server, Hugo, GitHub Pages, Cloudflare Pages, and Baidu Indexing

1791 words · ~9 min read
0 views

This is a retrospective of a website’s full evolution from launch to stability, covering five steps: a self-hosted server, a static site generator, GitHub Pages, Cloudflare Pages, and Baidu indexing. Site identity and domain information have been removed; what is discussed is the trigger, cost, and trade-offs behind each migration. The conclusions apply directly to startups and individuals.

The conclusion first: a stable website does not need a server of your own. The only hard cost across the whole path is the annual domain fee; hosting and CDN can run on free tiers, and indexing is completed through proactive submission on the webmaster platform. Each migration in the five stages was triggered by one concrete problem: the server brought self-managed operations, hand-written pages brought maintenance cost, GitHub Pages brought mainland-China accessibility and commercial-use constraints, and Cloudflare Pages plus indexing submission closed the loop. By the end of the path, the fixed cost of the website reduces to the domain alone.

The Read Gate of Multi-Tenant Isolation: Persistence Lifecycle Callbacks and Aspect Ordering

1602 words · ~8 min read
0 views

This is an isolation-mechanism note, scoped to ORM-based multi-tenant systems with shared schemas and shared applications. Component names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is framework-level mechanism, not conventions such as “remember to add the tenant condition in business code.”

The conclusion first: multi-tenant isolation that relies solely on ORM query filters is incomplete, and the gap is not in how queries are written — it is the primary-key load path that never passes through the filter. The repair is not another business-layer condition but a read gate pushed down into persistence lifecycle callbacks: every entity row entering the persistence context has its tenant ownership checked once at @PostLoad, and a mismatch terminates the load. Three judgments up front: 1) if filter activation matches annotations or class names, renames and package moves silently disable isolation, so drift must be eliminated mechanically; 2) wrong aspect ordering disables the whole mechanism — filter activation requires an active transaction and persistence context; 3) the write side must trust only server-side tenant context, never a caller-supplied tenant identifier.

Meta-Tool Convergence for Enterprise APIs and a Chained LLM Call Defense Line

1890 words · ~9 min read
0 views

This is a channel design note, scoped to the segment where a server-side enterprise system opens business capabilities to a large language model: how tools are organized, how calls are authorized, and how responses leave the channel. Prompt strategy on the model side and human confirmation in the orchestration layer are out of scope. Component names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted.

Differential Sync and State Convergence for Fieldwork Tasks: Set Difference, Data-Fact Ground Truth, and Three-Way Fallbacks

1426 words · ~7 min read
0 views

This is a task-consistency note, scoped to spot tasks and real-scene tasks in media-delivery fieldwork. Method names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is maintaining the task set and deciding task state, not crew scheduling or performance evaluation.

The conclusion first: task state should be decided by data facts, not event order; the task set should be reconciled by set difference, not rebuilt wholesale on range changes. Three judgments up front: 1) the cost of delete-and-rebuild is not performance but losing photo associations, completion progress, and assignees attached to existing tasks — no rework for field crews is a hard constraint; 2) upload success, photo deletion, and manual marking inevitably arrive out of order, duplicated, or missing in a distributed setting, and an event-driven state machine freezes those disturbances into state; 3) once successful image count versus photo requirement is the ground truth, convergence needs no event history, and three complementary scheduled fallbacks cover every direction of deviation.

A Metadata-Preserving Watermark Pipeline for Evidence Photos: Pre-Extraction, Orientation Awareness, Rewrite-Back, and Three-Level Fallback

1360 words · ~7 min read
0 views

This is an image-processing pipeline note, scoped to server-side batch watermarking of field evidence photos. Method names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is preserving metadata and orientation and keeping batches reliable, not the business rules of watermark content or delivery workflow.

The conclusion first: metadata preservation cannot be an “overall copy-back” after processing; it must be a second channel running through the entire pipeline. Three judgments up front: 1) a conventional decode-draw-encode flow outputs re-encoded pixel data, and EXIF metadata, a structure inside the JPEG APP1 marker segment, is not carried along with pixels automatically[1][3]; 2) orientation correction must happen before watermark drawing, otherwise the watermark lands on the wrong pixel orientation and copying metadata back afterward cannot fix the misplaced content; 3) in batch processing, one image aborting the whole batch costs more than one failed image, so the fallback chain must be designed for “never interrupt,” not for “throw correctly.”

A Complete Method Chain for Outdoor-Ad Spot Selection: Anti-Existence Scheduling Predicates, Grouped Quotas, and Two-Phase Greedy Selection

1528 words · ~8 min read
0 views

This is a retrieval-method note, scoped to selecting outdoor-advertising spots against a delivery date range. Method names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is query semantics and execution strategy, not pricing, contracts, or scheduling rules.

The conclusion first: generic paginated queries cannot express the semantics of spot selection; what is needed is a method chain of predicates, grouping, and packet-level strategy. Three judgments up front: 1) availability is an anti-existence judgment over intervals, not a status-field filter, and it can be done entirely in database predicates without precomputing occupancy tables; 2) a group quota of 1 and a quota of N are two different execution paths, switched because window functions are incompatible with ORM tenant filters; 3) excluding spot packets must propagate at group granularity, since per-spot exclusion leaves the business gap of selling twice in the same elevator or unit.

The MCP Tool Bus: My Questions, Trade-offs, and Boundaries

2932 words · ~14 min read
0 views

This is a thinking record, not a survey. Background: I am wiring an Agent channel into my own business system, and MCP (Model Context Protocol) is unavoidable in that decision. What I actually cared about all evening was not “what is MCP”, but three questions — why is one more protocol worth it? What does a multi-user rollout really cost? And which of the capabilities it offers should I adopt, and which should I hand back?

A Digital Worker in Production: Nodes, Accounts, and Rollback Mechanisms

1621 words · ~8 min read
0 views

This post distills a digital-worker implementation in a patent formalities-examination scenario: how an in-house AI module migrated to a Workbuddy digital worker, how the existing Octopus task platform was loosely coupled to the agent, how the “digital persona” obtained a process identity, how failures roll back to humans, and where the security boundary sits. The core conclusion is one sentence: the blocker for putting a digital worker into production is not model capability—it’s process identity.

From Text to Voice: The Carrier Upgrade of Office Information and AI's Full-Picture Understanding

3105 words · ~7 min read
0 views

This is an exploratory essay: one observation, one chain of reasoning, the half-century of prototypes found along it, and a handful of lawsuits just filed. Citations are marked with superscripts (dashed underline marks the cited content); sources are listed in the References at the end. Verify and rebut at will.

The Conclusion First

The capability ceiling of an LLM is set by the total volume of human text — and text is only one carrier of knowledge, and no longer the newest one. In office work, AI currently consumes only the part that has been textualized: what you typed, what the systems store, what the meeting tools transcribed. The sound of work — the discussion with a colleague, the phone call, the argument in the hallway — has not entered AI’s field of view. That layer happens to be the densest in the whole picture of work: how a decision was actually formed, where the disagreement sat, and what was said but never written down.

Attribution Is Not Resolution: AI Diagnosis, Organizational Context, and a Low-Cost Bypass

2007 words · ~10 min read
0 views

This is a retrospective of a real incident-handling process. Names, the company, the platform, and locations are all anonymized; only two numbers are kept—the number of steps in the checklist and the time to closure—because the judgments below rest on them.

The conclusion first: in the diagnosis phase of this incident, the best performer was AI—one question narrowed the candidate causes down to the right category. Human troubleshooting had reached the same conclusion months earlier, yet stopped right there once the attribution was done. What actually pushed the issue to closure were two things AI could not do: knowing what the company itself had, and going on-site to pin down the mechanism that “verification happens only at PC login.” Attribution is not resolution—the breakpoint sits between root cause and workaround, and the input to that stretch is not reasoning power but organizational context.