enilu's Weblog

Notes on software development, tools and engineering practice. English translations are added gradually; the Chinese site contains the full archive.

Another Release at 2 a.m. Time to Set a Readiness Cutoff

Another release finished at two in the morning.

I thought starting around 9 p.m. would leave enough time to finish before midnight. But checking a few additional scenarios during deployment revealed more problems, and bugs were still being fixed during the release. Several hours had gone by before everything was done.

Recently, our weekly releases have kept running until two or three in the morning. It is getting hard to take.

Looking back, AI has increased both the number of features in each release and the breadth of changes. Testing tends to finish most of its planned scope just before the release date. A few additional checks during deployment can still expose scenarios that were never covered.

My suggestion is to set a decision point before an evening release, perhaps at 7 p.m. If fixes and additional regression checks are still recurring, consider moving the release to the next day instead of leaving all the remaining uncertainty for the evening.

Read more →

Motty: Manage Your SSH Connections and Let AI Use Them Too

I have recently been using an SSH tool called Motty. In my workspace, its MCP interface is already the preferred way for AI to access remote servers.

Making an SSH connection is usually straightforward. The harder part comes as the list grows: remembering which machine is staging or production, which account to use, and whether a jump host is involved. Change computers, and that information needs to remain usable.

There is now another requirement: having AI help inspect logs, processes and configuration. Once a person can connect, getting AI to use those managed connections is another piece to arrange.

Two things attract me to Motty: connection information can sync, and external AI tools can use the connections it manages through MCP. Those are the focus of this introduction.

Read more →

We Have AI Now. Why Is Testing Still Left to Pick Up the Pieces?

With AI now used extensively at work, I have noticed an increasingly obvious problem: things seem to move quickly at the start, but the further we get, the more work there is to deal with.

A product manager quickly drafts requirements with AI. Development begins, and some details turn out to be unclear or some rules conflict. The requirements get expanded and the implementation changes. During testing, more scenarios reveal questions that require another requirements discussion and further development changes.

Eventually, everyone is waiting for testing to give an answer. But before testing can do that, someone has to settle the questions left open earlier.

What initially seemed to save so much time becomes increasingly difficult to estimate near the finish: how much longer will this actually take?

Read more →

Records of the Grand Historian: The Return of Jensen Huang

Jensen Huang founded Nvidia. In the beginning its graphics cards were sold to those who played games. When artificial intelligence arose, practitioners from every quarter vied to buy his wares. Some bought the devices to rent out their power, and some built great halls to house them. When Huang spoke before a crowd, men often began bidding for his shares before they had even seen the devices.

Read more →

Strata: A Map of What Happened Here

If you’re heading to Hangzhou’s Su Causeway for a weekend walk, a map can show you where to get onto it. Once you’re by the lake, you might have another question. How did this causeway come to be?

I built Strata, a map of historic places. You can start with present-day streets, landmarks, and museums, see what happened there in the past, and find a few more places nearby worth walking over to.

Read more →

Why Can Guessing the Next Word Lead to Intelligence?

1. A counterintuitive fact

Today’s language models can write code, solve math problems, and help you analyze a situation from a description. Ask an engineer what a model like GPT does during pretraining, though, and the answer sounds simple. Take a passage from the training text and ask the model to guess what comes next. Use what immediately follows the passage as the answer, adjust the weights based on the prediction, and repeat at another position.

The technical term for “word” here is token. It can be a character, a piece of a word, or punctuation. The model assigns probabilities to the candidates. The lower the probability it assigns to the correct token, the higher the loss for that prediction. Every position in the training text can supply a question and its answer without manual labeling. GPT-3 paper

Here’s the puzzle. Each example asks for a single token. How does doing that over and over lead to abilities like writing code, reasoning through a problem, and keeping track of context?

Read more →

The Faster AI Works, the More We Need to Think About Direction

AI is increasingly part of everyday work, and it really does make things faster. But I have noticed something uncomfortable: as work gets quicker, people seem to pay less attention to priorities.

It is particularly noticeable when assigning work and proposing requirements. New features keep getting added, and existing ones keep changing. AI is fast, so we might as well build it and see. Everyone stays busy and output keeps coming, yet it becomes difficult to sit down and think about where we should actually be heading.

We used to worry about moving too slowly. Now I am starting to worry that we are too busy walking to look ahead.

Read more →

OpenIDEA: A Lightweight Open-Source IDE Worth Trying

I recently came across an open-source project worth sharing: OpenIDEA. If you are used to IntelliJ IDEA’s shortcuts, tool windows and search workflows, and want to try a lighter development tool, it is worth a look.

The version I run on Windows uses roughly 600 MB of memory, including the main program and its WebView2 child processes. I have also made a small customization to suit my workflow.

Read more →

Paseo: Managing Your AI Development Workspace from Desktop and Phone

Asking AI to change a feature usually involves more than typing a request. You choose a project and branch, inspect changed files, run tests and open the application to check its behavior. With several tasks underway, you also switch between terminals and conversations.

Paseo organizes these activities in one workspace interface. It uses installed coding agents underneath, provides projects, workspaces, conversations and result inspection above them, and lets a phone connect to the same development environment. I mentioned it in my post on choosing and adapting development tools. This article focuses on its features and practical uses, followed by a shorter account of my customizations.

Read more →

Which Small Open Models Can You Run on a Laptop or an Ordinary Server?

I recently came across Xiaomi-OCR-0, an open model from Xiaomi with just 0.8B parameters that handles document parsing, text recognition and document question answering. It prompted me to put together a shortlist: what small models are worth considering if you want to run AI on a laptop, desktop or ordinary server?

Beyond chat, there are small models for recognizing scans, transcribing recordings and searching documents. Some have fewer than a billion parameters and can support a local tool built around one specific function. The candidates below are grouped by purpose, with links to official sources.

Read more →

Sharpening My Developer Tools for the AI Era

Yesterday I wrote about organizing AI development across projects and tasks with an aggregate workspace. Once projects and tasks are organized, another question remains: which tools will AI actually use to do the work? Recently, I have replaced or adapted several long-standing tools, settling on Paseo, DBX, Zed and Tabby. This is not a feature ranking. It is an account of why I chose them and what I had to improve to make them work together.

Read more →

Managing Multi-Project AI Development with an Aggregate Workspace

Recently, I brought several projects I maintain into an aggregate workspace. The aim was to give AI a single entry point for changes spanning repositories, while letting me work on several tasks at once. Putting the directories together turned out to be only the beginning. I also needed to decide how to find the right project, where to change code, how to resume a task, and what counts as finished. Here is the approach I use today.

Read more →

MySQL Table Space Reclamation: From 260 GB to 130 GB

A table in one of the systems I maintained occupied about 260 GB. Roughly half its data had been deleted to meet business compliance requirements, yet disk usage had barely fallen. With only about 20% free space left, we planned to rebuild the table during a system upgrade window.

The operation took about two hours and forty minutes and reduced the table to about 130 GB. Traffic resumed earlier than expected, and disk usage temporarily reached 93%. Those changes during the operation are as useful to understand as the final space saving.

Read more →

MySQL Driver Upgrade: Druid and validateConnection false

After a vulnerability scan, a project needed a newer MySQL Java driver. I changed mysql-connector-java from 5.1.24 to 8.0.28 and then encountered java.sql.SQLException: validateConnection false.

Connections recovered after Druid was changed to 1.2.12. That recovery alone does not establish the root cause, however, and it cannot define a general compatibility matrix.

Read more →

Adapting Guns to JPA: guns-lite Design and Migration Costs

When a new product needed an admin interface quickly, I adapted Guns instead of building every page from scratch. Other services already used Spring Data JPA, so I moved the admin data-access layer to JPA as well, aiming to reduce the cost of maintaining two data-access approaches.

Read more →

Startup Engineering Quality: Refactoring, Testing and Release Feedback

A large refactoring caused an outage after deployment, leaving the service unavailable for about seven hours across the incident and rollback. Meanwhile, new features frequently failed testing or differed from the requested behavior. These experiences changed how I think about efficiency in a small team: time saved during coding can be paid back many times over in integration, deployment and rework.

Read more →

MongoDB 3.2 Replica Sets: Roles, Elections and Consistency

A MongoDB replica set stores the same dataset on multiple members and elects a new primary when the existing one becomes unavailable. It primarily provides redundancy and failover. Sharding distributes data across shards; the two can be combined but serve different purposes.

Read more →

Nutz 1.b.53 Strings: Unicode, Width and Case Boundaries

It is easy to mistake an application-specific character classification for Unicode’s complete definition. Nutz 1.b.53 Strings offers Chinese-character, full-width/half-width and case helpers. Understanding them starts with whether an API accepts a char or a complete code point.

Read more →

MongoDB Basics: Document Modeling, Query Types and Indexes

MongoDB stores BSON documents and supports organizing nested fields and arrays around business objects. Documents need not have identical structures, but flexible schemas still require field meanings, types and validation rules. Otherwise query and maintenance costs rise over time.

Read more →

MongoDB to Elasticsearch: Snapshots, Incremental Changes and Recovery

A product needed to merge company data from several sources by a unique identifier, at a scale of roughly 30 million records, and support multidimensional search and aggregation. We stored the merged documents in MongoDB and built search indexes in Elasticsearch, with a separate synchronization pipeline connecting them.

Read more →

SQLite Basics: Setup, Types, Concurrency and Backups

SQLite embeds a database engine inside an application without a separate database server. It suits local tools, desktop applications and devices with structured data. Select it based on access patterns and concurrency rather than a blanket claim that it is faster than other databases.

Read more →

Nutz 1.b.53 Mapl: Paths, Deduplication and Merge Rules

Updating a nested field often means traversing Maps and Lists manually. Nutz MaplRebuild encapsulates path handling, while MaplMerge combines structures. Their related appearance should not obscure their separate semantics. This discussion uses 1.b.53.

Read more →

Nutz 1.b.53 Mapl: Target Types and Recursive Object Injection

Restoring Java objects from Map/List structures requires both source values and target types. ObjConvertImpl in Nutz 1.b.53 separates recursive container injection from leaf conversion. These two layers provide a clearer reading path than following every conditional individually.

Read more →

Nutz 1.b.53 Mapl: Object Conversion, memo and Boundaries

Mapl uses Map and List as structural containers for reading, converting and modifying objects by path. It does not require every leaf to become another Map or List: values such as numbers and strings can remain leaves. This follows ObjCompileImpl in Nutz 1.b.53.

Read more →

MySQL max_allowed_packet: Server, Session and Client Limits

When a server reported Packet for query is too large, I initially thought increasing max_allowed_packet would be enough. The configuration file had already been changed, yet a query still showed a small value. This incident illustrates why file configuration, the running global value and the current connection’s session value must be checked separately.

Read more →

Moving MySQL Data: Offline Copying, Permissions and SELinux

Moving a MySQL data directory involves more than copying files to another disk. Service configuration, ownership, parent-directory permissions and SELinux labels all affect access. This workflow uses a CentOS 6.5 and MySQL 5.6 maintenance scenario; adapt service commands to the actual installation.

Read more →

Python Nginx Log Analysis: Request Counts and False Positives

Nginx access logs can identify sources making many requests in a short period, but high volume alone does not establish malicious behavior. Shared gateways, search engines, monitoring and frontend assets all produce traffic. Finding candidates first and applying business rules afterward gives better control over false positives than immediately adding IPs to a firewall.

Read more →

Shiro Single-Session Login: Replacement and Concurrency

A single-session-per-account requirement first needs a conflict policy: replace the previous login or reject the new one. This article discusses replacement, distinguishing session enumeration in one process from coordinated control across multiple instances.

Read more →

iText Image and Text Layout: Tables, Fonts and Scaling

For a PDF containing photos and text, an outer table can arrange cards while each card contains its image and caption. Defining paper size, columns, fonts and scaling beforehand produces a more controlled layout than appending images individually.

Read more →

Fork me on GitHub