enilu's Weblog

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

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