Knowledge
Technical guides with sample code we ran, its real output, and references.
Automation26 min readOne system designed with PLC, Jetson, STM32 and Arduino: splitting roles for easy repairSplitting an inspection station into PLC, Jetson, MCU nodes, gateway and web, defining the message contracts, and simulating it in runnable TypeScript with injected faults to see each layer fall to a safe state with no duplicates on replay (Thai text).
Websites and web apps2 min readDesigning multi-step forms: validate input and help users fix errors so they can carry onSplitting questions into steps, when and where to check each field, and error messages that say what to fix without losing what was typed.
Websites and web apps26 min readMulti-level approval workflows: designing send-back, revision and delegated approversA multi-level purchase-approval workflow with amount-based chains, date-ranged delegation, segregation of duties, optimistic concurrency and SLA escalation, with runnable TypeScript and real output (Thai text).
Websites and web apps26 min readLogged in but should not see everything: designing roles, permissions and data scopeRoles and permissions, checking access on the server for every record, and testing that each role sees only what it should.
Websites and web apps2 min readWhere old links should go after a site move: URL mapping, redirects and SEO trackingMap every old URL to its new home, use permanent redirects, and watch search traffic and errors after the move.
AI for businessUsing AI safely24 min readTesting an AI Chatbot Before Launch: Accuracy, Citations and RefusalsTurn a few ad-hoc questions into a repeatable test set with scoring rules your team can apply itself.
AI for businessAI technology and models6 min readChoosing a GPU for AI Work: Start From the Model, the Data and the WorkloadBefore buying or renting a GPU, separate training, fine-tuning and serving, then measure. Do not choose by card name or memory size alone.
AI for businessUsing AI safely27 min readAI Reading External Documents: Guarding Against Hidden Instructions and Over-Permissioned DataAn AI assistant that reads outside emails and PDFs can be given hidden instructions. Layers that hold even when the model is fooled: ACL filtering before retrieval, authorization at the tool layer, human confirmation for writes and an audit log, with runnable TypeScript, real output and tests (Thai text).
Machine vision30 min readChoosing Lighting for Machine Vision: Start from the Surface and the DefectCompare dome, coaxial, dark-field ring, bar and backlight on five defect types with a small runnable simulator that measures CNR, plus the effect of ambient light, strobe, filters and saturation. Python and numpy only (Thai text).
Machine vision24 min readChoosing Lens, Camera Resolution and Field of View from the Defect SizeA rough way to work out pixel count, focal length and what to watch for, before buying a camera that is too big or too small.
Machine vision7 min readImaging Parts on a Moving Conveyor: Global Shutter, Exposure Time and StrobeBlurred or skewed images of parts on a conveyor: choose the shutter, calculate exposure time and time the light with the camera.
Machine vision27 min readCollecting Defect Images to Train Inspection AI: What to Gather Besides Bad PartsA good image set is more than pictures of bad parts: a Python toolkit that measures annotator agreement (kappa, IoU), finds near-duplicate frames and splits train/val/test without leakage, with runnable code and real output (Thai text).

