Learn SQL From Scratch: 7 Essential SQL Queries Every Beginner Should Know SQL (Structured Query Language) is an important skill for students, software developers, data analysts, and freshers preparing for technical interviews. If you are new to SQL, here are seven useful SQL queries explained with simple examples. For these examples, imagine we have a students table containing id, name, marks, department, and department_id columns. 1. SELECT — Display Data SELECT * FROM students; This displays all records and columns from the students table. 2. WHERE — Filter Records SELECT * FROM students WH
Here's a pattern that's probably in your codebase: export async function POST(request: Request) { const result = await doTheWork(request); // Don't make the user wait for bookkeeping. void recordAudit({ userId, ok: true }); void recordCost({ workspaceId, tokens: result.tokens }); return Response.json(result); } It reads as "start these writes, don't wait for them". On a long-running Node server, that's what happens. On a serverless platform, it's a hope. What we measured We noticed our AI cost ledger had no rows for days on end, even though AI calls were clearly happening. So we ran two identi
A developer types a target URL into a prompt, hits enter, and expects an artificial intelligence agent to map out vulnerabilities on its own. That is the pitch behind ARTEX, an open-source tool published by developer Autumn-27 in July 2026 Kodem Security. It pairs Go, a local Next.js dashboard, and a PostgreSQL database to coordinate penetration testing across targets. Headlines claim you can point it at any web application to uncover deep bugs automatically. In practice, the engine works quite differently, and running it carelessly can compromise your own network. How the agent loop works ART
Token price is easy to quote, but it is not the same as the cost of a useful completed task. An agent may spend tokens on retries, calls, retrieval, orchestration, and human correction. Teams that optimize only the model bill can miss the expensive parts of the workflow. Measure cost per outcome Track total cost per successful task, not just per request. Include model usage, search or database calls, tool execution, infrastructure, and review time. Separate successful runs from failed or abandoned ones so a cheap failure does not look like an efficiency win. Find the cost drivers Break down sp
When an AI workflow breaks, responders need to know what it tried to do and which actions may already have happened. A useful incident runbook should help contain the issue first, then preserve evidence and restore service safely. 1. Stop risky side effects Disable the affected trigger or tool permission if the agent could repeat a harmful action. Pause queued jobs when duplicate execution is possible. Keep a human path available for urgent requests. 2. Establish the scope Record the first known failure time, workflow version, model and prompt changes, affected integrations, and example run ID
Hey guys! 👋🏻 I wanted to share a good security fix I applied to my microforum, Axion. It's about stopping attackers from finding out which usernames exist through timing attacks. Why Timing Attacks Happen in Login Routes. When you're building a login route for a platform like Axion, the normal flow looks simple: find the user by their username, and if they exist, compare the password they typed with their saved hash. The problem is that password hashing takes heavy CPU work. Because of that, an attacker can measure how long each login request takes to finish, and two different things happen: W
Traditional tests expect the same input to produce the same output. AI workflows can vary, so testing only exact text matches creates brittle suites—or false confidence when the expected phrase appears but the task failed. Define behavior before scoring output For each workflow, write the user goal, allowed actions, required evidence, and unacceptable outcomes. A support agent might need to answer from approved policy, cite the relevant source, and ask for help when the source is missing. Those conditions matter more than whether it uses a particular sentence. Build a representative evaluation
Your Next.js app has one database module. It creates one pool, lazily, and every route imports it. The pool's max is small and the database plan's connection limit is known. The arithmetic fits. Then, at the busiest moment of the day, every query fails at once: PostgresError: remaining connection slots are reserved for roles with the SUPERUSER attribute code: '53300' Session lookups, API routes, background callbacks, all of them, from a single app instance. Counting connections on the database side shows far more than one pool's worth, all from the same process. That is what happened to a prod
AI can produce a patch that looks tidy and still violates an assumption nobody wrote down. The risk is not simply that generated code contains bugs. It is that reviewers become less critical when the diff arrives quickly and reads confidently. Review the change against the goal Before reading line by line, restate the expected behavior and the boundary of the change. Which user-visible outcome should improve? Which existing behavior must stay the same? What should happen when input is missing, invalid, slow, or repeated? Then inspect the diff for hidden scope: new dependencies, permission chan
Originally published at ambrain.org. A funded founder without engineers can rent a white-label terminal, license a platform or have one built. This guide compares what the company keeps on each route, how each bill grows and when to switch. With funding and no engineers, you can rent a white-label terminal, license a trading platform and run an installation of your own, or have an engineering firm build a terminal your company can own. For the first two you talk to platform vendors. For the third you talk to engineering firms, and each one should be able to show a trading system it built that
AI agents can fail in ways a normal application log will not explain. A workflow may call the wrong tool, act on stale context, repeat a step, or return a polished answer that hides a broken handoff. If you only log the final response, debugging becomes guesswork. Log the decision path For each run, capture a run ID, timestamp, workflow and prompt version, model and tool names, and the outcome. Record each meaningful step: what input the agent received, which tool it selected, whether the tool succeeded, and what happened next. Redact secrets and personal data before storing anything. Keep the
LangSmith to RAGAS: converting an exported dataset I moved an eval set from LangSmith into RAGAS last month and lost half a day to two things that never raised an error: the question column came out empty, and the reference column silently didn't exist. Both had the same root cause. LangSmith and RAGAS disagree about what a dataset is. The shape problem RAGAS stores a dataset as columnar parallel arrays — one array per field, one entry per sample, every array the same length. LangSmith stores one example per record, with the actual content nested inside two free-form objects. LangSmith RAGAS [
Until this week, no post on this blog had an og:image. Shared links showed a bare text preview, and the JSON-LD for each article had no image, which is one of the fields search engines look for in article markup. This post is for anyone running a static site who wants a generated card per post, especially with Japanese or Korean titles. It covers the generator we added to our Python static site generator, and the three wrong cards it drew before Japanese titles broke in sensible places. What the card contains and why it is drawn at build time Every post now gets a 1200×630 PNG, drawn during th
If you want to check whether a name is already a registered US trademark, the obvious place to look is the USPTO's own systems. As of October 2026, every official route we could find now requires an API key — and the keyless answer to "is this a US trademark" turns out to live on a server EUIPO runs, not USPTO. Four official USPTO routes, checked live, all gated TSDR (tsdrapi.uspto.gov), the status-and-document API wrapper docs usually point to first, now returns 401 — but not a JSON error. The body is plain text: HTTP/1.1 401 Content-Type: text/plain;charset=UTF-8 Beginning October 2, you'll
A black box over a name looks final. In a PDF it is often nothing more than a rectangle drawn on top of the text. The text is still in the file, in the order a viewer reads it, and anyone who selects the line and pastes it into an editor gets it back. That is not a beginner's mistake from the early days of PDF. It keeps happening to people whose job is to get it right. Three times the text came back December 2025. Among the documents the US Justice Department released in December were some from a civil suit against the executors of Jeffrey Epstein's estate, filed in the US Virgin Islands in 20
Compare each row with the one before it, add up running totals, smooth noisy numbers with moving averages, and avoid the default setting… Continue reading on Medium »
The hardened models I tested ignored or flagged every instruction I hid in a tool result. Then a plain table, with no instruction in it, got all three of them to recommend a domain they had never seen. At work I build a tool-calling assistant that reads people's documents and messages. Writes go through an approval card first. Until recently my security testing was a few injection attempts typed by hand. So I spent a couple of days on a practice range for indirect prompt injection, to see what actually gets through. Each scenario works the same way. A user asks the agent something normal, the
Azure DevOps Server Matches Need Project, Collection, and Administration Boundaries Azure DevOps Server combines source control, work-item tracking, pipelines, reporting, and administration in one on-premises product. An internet match can represent a public project portal, an internal deployment behind a proxy, a default IIS response, or an unrelated page that mentions the product. The control question starts with the boundary. What the measurement found On 2026-11-19, a count-only ZoomEye SDK query used sub_type=all, page 1, and pagesize 1. app="Azure DevOps Server" returned zero. title="Azu