Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

A Chat Booking Is Not Confirmed Until the Calendar Says So

The calendar record, not the chatbot’s wording, decides whether an appointment exists. A booking reply is a commit acknowledgement, not a writing task. If the calendar has not accepted the appointment, the chatbot cannot truthfully say it is booked. The failure is easy to create. A visitor asks for Tuesday afternoon. The assistant offers a time and writes, “You are booked.” Meanwhile the calendar request times out. The customer arrives expecting a slot that the business cannot see. The words were coherent; the state was wrong. Conversation is useful for gathering the service, location, preferred time, and necessary contact details. It can explain available choices in plain language. But an offered time is provisional until the booking system accepts it. Availability can change between the question and the write. Make that boundary visible. Before the write, say the time is available to request. After a successful write, return the confirmed time, time zone, and reference. If the write fails, say the booking did not complete. If the result is unknown, say it is unconfirmed while the system checks. Never use the same confirmation sentence for all three states. Both Google Calendar and Microsoft Graph create an event through an authenticated write and return an event resource. That resource, not the assistant's prose, is the evidence of a committed appointment. A timeout does not reveal whether the first write succeeded. Blindly sending another create request can produce two bookings. Give the customer intent a stable identity, check for an existing result, and let a retry continue that same attempt. Google Calendar describes caller-supplied event IDs as one way to keep a local record in sync and avoid duplicates after an ambiguous result. Stripe documents the same general principle for safe request retries with an idempotency key. The exact mechanism depends on the booking provider. The design requirement does not: one customer request should lead to at most one commi

IADev
Interesse
dev.to

Migrate three OpenAI API model IDs before the April 2027 shutdown

OpenAI’s API deprecation notice gives teams using gpt-5.3-codex, gpt-5.1, or gpt-5.4-nano until April 1, 2027, before those model IDs are removed. The listed replacements are gpt-6-sol for the first two and gpt-6-luna for gpt-5.4-nano. Treat that date as a migration deadline, not as a reason to replace every model reference in one pull request. A safer sequence is: find every configured ID, put the choice behind one application setting, compare the old and recommended models on representative work, then move traffic in stages. This guide focuses on an API application you own. Codex product configuration and other OpenAI products may have different migration paths; check their own notices rather than assuming the API table applies to them. Search the repository, deployment configuration, and operational scripts for the exact identifiers. A source-only search is a useful first pass: rg -n --hidden \ --glob '!node_modules' --glob '!.git' \ 'gpt-5\.3-codex|gpt-5\.1|gpt-5\.4-nano' . Then check the places a repository search cannot see: environment variables in each deployed environment, secret-manager values, scheduled jobs, queued task payloads, admin dashboards, and model names stored in a database. Record the service, environment, owner, current model, and fallback behavior for every hit. A model may be selected by a tenant setting or a persisted workflow version even when the application source has no literal string. Keep this inventory as a migration artifact. It helps answer the important question after rollout: which production caller still sends a retiring ID? If the API request layer logs a model name already, add a count by model and service before changing traffic. Avoid logging prompts or user content just to observe model selection. Centralize the default and replacement IDs so individual routes do not carry their own choices. For example: const modelByTask = { code: process.env.OPENAI_CODE_MODEL ?? "gpt-5.3-codex", general: process.env.OPENAI_GENERAL_MODEL

IADev
Interesse
dev.to

Cisco Dropped 18 CVEs Yesterday — Here's What Actually Needs Your Attention

Seven critical CVEs across two product lines. None exploited yet. No workarounds exist. Here's the fast triage. CVE-2026-76485, CVE-2026-76486, CVE-2026-76501 Affects: Cisco Nexus 3000 and 9000 Series switches The NGOAM (VXLAN OAM) feature has improper input validation on IP traffic. Crafted packets → root code execution, no auth required. Each CVE has slightly different feature prerequisites: CVE Requires CVE-2026-76485 NGOAM + SRv6 OR NV Overlay CVE-2026-76486 NGOAM + NV Overlay + at least one peer VTEP CVE-2026-76501 NGOAM + SRv6 (Nexus 9000 only — 3000 doesn't support SRv6) Check your exposure right now: bash show feature | include ngoam show feature | include nve show feature | include srv6

SegurançaInfra
Interesse
dev.to

Solving Adverse Selection in Automated Market Making via Deterministic MCP Tools

In high-frequency liquidity provision, specifically within decentralized prediction markets like Polymarket, the difference between a profitable strategy and immediate capital erosion isn't usually the core algorithm—it's the failure to accurately model the cost of being 'wrong'. Most developers approach market making by looking at the bid-ask spread in isolation. They forget that a tight spread is meaningless if the cost of adverse selection (being filled right before a massive price move) exceeds the maker rebates earned. I’ve seen many attempts to automate this using LLM agents. The fundamental issue is that standard LLMs are probabilistic engines trying to solve deterministic financial problems. If you ask an unconstrained agent to "provide liquidity," it might calculate a spread that looks mathematically sound under static conditions but fails to account for the volatility drag or taker fees inherent in the exchange lifecycle. To bridge this gap, we need more than just an API wrapper; we need specialized logic exposed through the Model Context Protocol (MCP). Liquidity providers on platforms like Polymarket operate in a delicate balance of three primary vectors: Maker Rebates: Incentives paid to those providing liquidity. Taker Fees: The cost incurred when interacting with existing orders. Adverse Selection Risk: The probability of being picked off by informed traders during periods of high volatility. A common mistake is treating these as constants. In reality, they fluctuate with market regime changes. Using our Maker Fee Rebate Optimization connector, we expose specific tools designed to transform these variables into actionable constraints for an AI agent. The standout capability here isn't just calculation; it's the ability to perform decision support through three distinct functions: calculate_minimum_spread: This determines exactly what spread is needed to clear a single liquidity cycle profitably once all known costs are factored in. simulate_strategy_p

IADev
Interesse
dev.to

Building Kultarr: Making AWS Security Investigations Less Painful

I've been building Kultarr. Here's where it's at. I've spent a lot of time working with AWS, and one thing that always frustrated me was how much digging it takes to understand a security change. You see something unusual, open CloudTrail, check IAM permissions, jump between services, and try to piece everything together. That's one of the reasons I started building Kultarr. The goal is to make AWS security investigations easier. Not just show another alert, but help explain who changed something, what happened, what it affected, and what can be done about it. It's still in development, and there's a lot left to build and improve. But I finally got the website to a point where I'm happy to share it. https://kultarr.io I'm curious to hear what you think, especially if you work with AWS. What's something you wish AWS made easier to investigate?

SegurançaInfra
Interesse
dev.to

Best AI Image Generators in 2026: 12 Tools, Real Prices, and the Cost of One Image

Most "best AI image generator" lists compare monthly subscriptions. Almost none tell you what a single finished image costs, because subscriptions are not priced per image — they are priced per allowance you may never use. This page does the arithmetic that the other lists skip. Every price below was read from the vendor's own pricing page on 8 October 2026, and the screenshots in each section are those pages as they stood that day. Seven image models were also run through one API at an identical prompt, priced with the API's own free estimate and timed end to end, then inspected as 1:1 crops at native resolution. Best image quality I could measure: Recraft V4.1 Pro. $0.210 per image at 1792×2432. It was the only model in the test whose 1:1 crop showed individual pores, lash-by-lash eyelashes and iris fibres. Best value: Ideogram 4.0. $0.060 per image, the same 17.8 seconds of generation, and near-identical detail. It held up across five different subjects. That is 3.5× cheaper for a difference most people will not see. Best free starting point: Leonardo (150 fast tokens per day), with Canva Free (up to 20 AI uses) and the ChatGPT free tier behind it. Cheapest usable API image: Stability SD3.5 Flash at 2.5 credits, which is $0.025, and FLUX 3 Image at 768×768 for $0.0205 while Black Forest Labs' 50% launch discount holds. The finding worth the whole page: the model that costs 3.5× more is not 3.5× better. At the top of the price range you are buying resolution and queue time, not detail. Seven models, one brief, one API, measured 8 October 2026. Checked. Three things, in this order: Prices — read on the vendor's own pricing page, photographed, and compared against the prose in this article. The screenshots are the receipts. Per-image cost — for the seven models reachable through a single API, the cost per image is the API's own free estimate, and the time is wall-clock on a real run at 3:4. Quality — the output was cropped to 1:1 at native resolution and inspected a

IA
Interesse
dev.to

Optimizing Kubernetes Cluster Costs: Spot Instances, Autoscaling, and Resource Quotas

Introduction & Industry Context In the competitive landscape of 2026, managing cloud infrastructure is no longer merely a system engineering concern—it is a critical driver of business unit economics and corporate valuation. As organizations scale their microservice architectures to support increasingly complex workloads, Kubernetes has cemented itself as the operating system of the modern cloud. With the release of Kubernetes 1.37, the platform's orchestration capabilities have reached unprecedented levels of maturity. However, this power introduces a significant risk: the compounding cost of unoptimized, over-provisioned infrastructure. For Chief Technology Officers (CTOs) and finance leaders, unchecked cloud spend functions as a silent tax on innovation. Capital that should be allocated toward hiring, product experimentation, or market expansion is instead absorbed by idle compute capacity. To achieve true capital efficiency, modern engineering organizations must transition from static provisioning models to dynamic, cost-aware architectures. This blueprint outlines the strategic integration of Karpenter, AWS Spot Instances, and Kubernetes Resource Quotas to construct a high-performance, self-optimizing infrastructure layer that aligns cloud expenditure directly with real-time application demand. The fundamental challenge of cloud-native infrastructure is the discrepancy between requested resources and actual resource utilization. Historically, engineering teams have over-provisioned CPU and memory configurations to avoid performance degradation during traffic spikes. This safety margin, while logical at an individual service level, aggregates into massive systemic waste across enterprise clusters. This inefficiency stems from three core architectural vulnerabilities: The Over-Provisioning Bias: Developers, prioritizing application uptime, routinely request double or triple the compute capacity their workloads actually consume. Without strict enforcement mechanis

InfraDev
Interesse
Hacker News

Terence Tao Responds to the OpenAI Math Drop

Article URL: https://mathstodon.xyz/@tao/117395269325940185 Comments URL: https://news.ycombinator.com/item?id=50002008 Points: 119 # Comments: 61

IA
Interesse
dev.to

Smart Contract Vulnerability Surface Analysis: SparkLend

Smart Contract Vulnerability Surface Analysis: SparkLend Target Protocol: SparkLend (TVL: $5414.9M) Smart Contract Vulnerability Surface Analysis TVL: ≈ $5.4 B (Ethereum + L2) Date: 8 Oct 2026 SparkLend is a high‑throughput, permission‑less money‑market protocol that aggregates liquidity across Ethereum L1 and multiple roll‑ups (Arbitrum, Optimism, zkSync). Its core architecture consists of: Component Primary Contracts Function Pool Manager PoolCore, PoolConfigurator Deploys and configures market contracts (aUSDC, aWETH, …). Interest Rate Model InterestRateStrategy Calculates borrow & supply rates based on utilization. Oracle Layer PriceOracle, ChainlinkAggregatorWrapper Supplies asset price feeds to collateral‑valuation engine. Liquidation Engine LiquidationManager, FlashLiquidator Executes under‑collateralized position liquidations, optionally via flash loans. Governance SparkGovernor, TimelockController On‑chain DAO for protocol upgrades and parameter changes. Upgrade Proxy TransparentUpgradeableProxy (OpenZeppelin) Enables contract upgrades via admin role. The protocol’s attack surface is large because it must: Accept arbitrary deposits/withdrawals from any address. Interact with external price oracles and third‑party token contracts. Perform complex state transitions (borrow, repay, liquidation) in a single transaction. Allow upgrades and governance actions that can modify core logic. Our analysis focuses on runtime (on‑chain) risks that could be exploited by an adversary with either a single transaction or a multi‑step campaign. We do not audit the entire codebase line‑by‑line; instead we map known design patterns, external dependencies, and recent public incidents to SparkLend’s architecture to surface the most likely vectors. Metric Rating (1‑10) Rationale Attack Surface Breadth 8 Multiple markets, cross‑chain bridges, flash‑loan‑enabled liquidations, upgradeability. Criticality of Assets 9 $5.4 B TVL, many high‑value stablecoins and ETH‑based assets. Histor

Segurança
Interesse
dev.to

What I lock down before letting a coding agent run commands on my laptop

GitHub made local sandboxing for Copilot generally available this week, in the CLI, the Copilot app and VS Code Agent Host sessions. Commands the agent starts run with restricted access to files, network and credentials, based on a policy you set. I've been letting agents run commands locally for a while, mostly with no boundary at all, so this pushed me to write down what I actually care about. The agent should see the repo it's working on and nothing else. My home folder has SSH keys, cloud configs and old project stuff. None of it helps the agent fix a failing test. Most tasks need package installs and not much more. I'd rather allow the package registry and block the rest than find out later that some script phoned home. This is the one that worries me. If the agent can use my Git credentials, it can push. GitHub's sandbox lets you control access to Git and GitHub CLI credentials, and that's the setting I'd look at first. Friction. Some installs and tests will fail inside a sandbox and you'll spend time loosening the policy. I'd expect to tweak it a few times in the first week. Writing a perfect policy up front. Start strict, see what breaks, open only that. One detail I liked in the announcement: model execution and tool isolation are treated separately, so the policy applies whichever model you pick. Are you running coding agents inside any sandbox yet, or just trusting the diff review at the end?

SegurançaDevIA
Interesse
dev.to

Rotten specs

Say spec-driven development out loud and someone answers "spec rot". OpenSpec, spec-kit and BMAD earned that answer; every one of them builds a knowledge base I never asked for. But I run SDD without rotten specs. The fix: stop building a knowledge base on top of it. SDD is two steps: write the spec, then build from it. Both steps run against a context budget, because the 1M window is still a marketing number. OpenSpec gave me openspec/specs/, then openspec/changes/ / with proposal.md, design.md, tasks.md and a nested specs/ /spec.md, then openspec/changes/archive/2025-01-23- /. Matt Pocock's skills sell the opposite. Marketed as "small, easy to adapt, and composable", a shot at GSD, BMAD and Spec-Kit for "owning the process". Then /setup-matt-pocock-skills writes docs/agents/issue-tracker.md and a triage label vocabulary, /domain-modeling maintains a root CONTEXT.md plus docs/adr/0001-*.md, /to-spec publishes .scratch/ /spec.md, /to-tickets fills .scratch/ /issues/01-*.md, and /wayfinder lays a map.md over the pile. Smaller units that build the same knowledge base. The rest repeat the shape. A constitution, a spec, a plan and a task list per feature, a memlog. Scott Logic ran spec-kit on one feature and counted 2,577 lines of generated markdown against 689 lines of code, plus 3.5 hours of review1. I read that once. The agent reads it every session, long after the code moved on. Before writing this I deleted about 250MB from ~/.claude. Memories, plans, task lists, session leftovers, backups, security logs. Nothing broke. Nothing noticed. Count the layers that claimed to remember something for me: the harness: projects/ /memory/MEMORY.md and its per-type files, plans/, sessions/, history.jsonl, backups/ global and per project the SDD framework. Constitution, spec, plan, task list, CONTEXT.md, ADRs, archive rotten AI-written comments in code, describing the shape before the last refactor mine, and the only ones I edit: AGENTS.md, README.md, my tests, my openapi.yaml s

DevIA
Interesse
dev.to

How Agencies Package AI Automation for Their Clients: A White-Label Playbook

How Agencies Package AI Automation for Their Clients: A White-Label Playbook Most agencies don't struggle to find AI automation tools. They struggle to turn those tools into something a client will pay for every month. A workflow that works in a demo is not a product. A product has a name, a scope, a price, an onboarding process, and someone to call when it breaks. This post walks through how agencies package white label AI automation for their clients, using a composite case study based on common patterns in the reseller model. By the end you'll know how to: Choose a productized offer instead of selling "custom AI" Price it with margins that survive real support load Structure a multi-client setup so one client never sees another's data Onboard, report, and retain clients under your own brand Note: The agency in this case study is a composite built to illustrate the model. Numbers are examples for your own planning, not benchmarks. Prerequisites The case study: a 6-person marketing agency Step 1: Productize, don't customize Step 2: Price for margin and support Step 3: Structure multi-client delivery Step 4: Onboard in a repeatable way Step 5: Report value, not activity Common mistakes Conclusion Before you package anything, have these in place: [ ] A base platform or stack that supports multiple clients (multi-tenancy) with separate workspaces [ ] Support for white-labeling: your logo, domain, and email sender instead of a vendor's [ ] A clear idea of one painful, repeatable problem your clients share (lead follow-up, support triage, appointment booking) [ ] A basic understanding of your cost per client (platform fees, usage costs, your own time) [ ] A written scope template and a simple service agreement If you can't tick the first two, you're reselling a tool with extra steps. Fix that first. Picture a small agency that runs ads and websites for local service businesses such as dental clinics, gyms, and home-services companies. Clients keep asking the same thing:

IA
Interesse
dev.to

React 19 useActionState: Preventing SSR State Pollution and Event Listener Memory Leaks

When scaling Next.js 15 and React 19 Server Components in heavy production environments, one of the most subtle yet dangerous pitfalls is cross-request state pollution when combining server actions, optimistic UI (useActionState), and shared event emitters or singletons. In this deep post-mortem, we dissect how dangling event listeners survive across SSR lifecycles, how optimistic rollbacks corrupt node memory, and how to structure robust cleanup resilience. During traffic surges, worker nodes often experience memory bloat and connection degradation. Ingress access logs report intermittent data leaks where User A intermittently sees cached state or optimistic payloads belonging to User B. In Node.js SSR environments, module-level variables and global event emitters are singletons shared across all concurrent HTTP requests hitting the same process. // ⚠️ ANTI-PATTERN: Shared module-level listener const stateEmitter = new EventEmitter(); export function UserProfile({ userId }: { userId: string }) { const [state, formAction, isPending] = useActionState( async (prevState, formData) => { const res = await updateUserProfile(userId, formData); stateEmitter.emit('profileUpdated', res); return res; }, null ); // In SSR, if cleanup fails or aborts early, this listener leaks! useEffect(() => { const handler = (data) => console.log('Updated:', data); stateEmitter.on('profileUpdated', handler); return () => stateEmitter.off('profileUpdated', handler); }, []); } When an SSR render aborts prematurely (e.g., client disconnects or timeout), React unmount effects never fire on the server. The listener remains registered forever in Node.js global memory, causing: Memory leaks (MaxListenersExceededWarning) Cross-request data bleeding across asynchronous execution contexts To guarantee zero cross-request pollution, never rely on global event emitters. Instead, scope event dispatchers strictly to the active request lifecycle using Node's AsyncLocalStorage or React's component-scoped cont

Dev
Interesse
dev.to

Forms That Feel Like Progress: Building Multi-Step Registration That Doesn't Feel Like Paperwork

Nobody wakes up excited to fill out a form. I think that's the most honest starting point for this post. Forms are the part of every product that's standing between a person and the thing they actually wanted. They want to use your app. You want their email, their name, their team size, their preferences, their credit card. The form is the toll booth. And for a long time I treated forms like a solved problem. You have inputs, you have labels, you have a submit button. Done. Ship it. Maybe add some validation messages in red. Then I watched myself sign up for a bunch of products in one weekend (I was researching onboarding flows, which is a very normal thing to do on a Saturday) and I noticed something. The forms that felt worst weren't the longest ones. They were the ones that felt like they weren't going anywhere. One giant page of fields with no sense of where you were. Or multi-step flows where every "Next" click just snapped to a new screen with no connection to the last one, so you felt like you were being teleported around a government building. The forms that felt good, even long ones, felt like progress. Every step felt like moving forward. You knew where you were, you knew roughly how much was left, and going back didn't feel like losing anything. That feeling is what I tried to build into the Multi-Step Form in useLayouts. This post is about how it works, why it's built the way it is, what I'd change for a real registration flow, and all the stuff that went wrong along the way. I'm Urvish, by the way. I build useLayouts, an open source MIT licensed collection of animated React components. It's built on Next.js, TypeScript, Tailwind CSS, Motion, and it plugs straight into the Shadcn CLI as a registry. The source goes into your project and you own it. Copy, customize, ship. Let me argue against myself for a second, because multi-step forms aren't always the answer. If your form has three fields, it should be one step. Please don't make someone click "Next" t

Dev
Interesse
dev.to

I parsed 110,000 EU procurement awards. Half of them don't say when the contract was signed.

Every two months or so, the EU publishes an open archive of everything its public authorities bought — Tenders Electronic Daily (TED), the official journal of the day for EU procurement. In October 2026 I downloaded the complete monthly packages for July, August and September 2026 — 1.16 GB of eForms/UBL XML, 213,716 notices, of which 110,217 are award notices (the documents that say who won what). I wrote four small Python scripts, parsed everything in about ten minutes, and got numbers the official statistics don't show you. The rule: under Directive 2014/24/EU, Article 50(1), a contracting authority has 30 days to publish the award notice after the award is made. So a simple question: how often does that actually happen? Of the 110,217 award notices, 48,931 (44.4%) carry no usable award date. Not "late" — the field is filled with a sentinel value (the date 2000-01-01 and friends, the eForms schema's explicit "not stated" marker). What's interesting: in the September sample I checked the raw date values per notice — the sentinel appears in 73.7% of award notices as one of their dates, but only 44.1% of notices lack any usable date. The element is never absent; the authority actively says "not stated". Official TED statistics don't report this, so it's a data-quality finding in its own right: if you want to build a compliance or analytics pipeline on TED award data, nearly half of it won't have the field you want. For the notices that do state an award date, the picture is stable across all three months — this isn't a September artifact: Month Award notices No usable award date Within 30 days Later than 90 days Jul 2026 42,742 43.2% 45.9% 27.1% Aug 2026 32,317 45.0% 46.3% 22.2% Sep 2026 35,158 44.1% 47.2% 24.0% So: roughly half of dated award notices respect the 30-day window, and roughly a quarter publish later than three months. If you'd bet on "95% comply", you'd lose in every month. The first version of this analysis reported a blunt "24% are 90+ days late". Th

Dev
Interesse
dev.to

Why I Built 35 Zero-Trust Developer Utilities Running 100% in the Browser

Every week, thousands of developers paste internal company JWT tokens, sensitive customer JSON payloads, production HAR network dumps, and confidential API logs into random online web formatters. Most developers never think twice about it. But when you inspect the network tab of some popular "free" developer tools, you'll see a shocking amount of telemetry: Full text payloads sent back to remote analytics servers Third-party tracking scripts recording keystrokes Query parameters logging your tokens in backend access logs In corporate and enterprise environments with strict SOC2, ISO 27001, or GDPR compliance, using those tools is a critical security vulnerability waiting to happen. To solve this, I spent the last few months building NerdKit — a developer utility hub built entirely on a Zero-Trust architecture. Every single utility inside NerdKit executes 100% inside your browser's local client runtime (JavaScript, WASM, and Web APIs). 0 Bytes sent to servers: Your data never leaves your machine. No accounts or logins: No tracking profiles or email spam. Offline / PWA Ready: Fully cached via Service Workers. You can turn off your Wi-Fi or go into airplane mode and every tool still works seamlessly. Here are some of the tools we built to solve real engineering headaches: CORS errors are notoriously annoying. Instead of trial-and-error in production, this simulator visually models Simple Requests vs Preflight OPTIONS calls, checks header rules, and generates drop-in, tested CORS configs for: Nginx reverse proxies Next.js Middleware FastAPI (Python) Express.js / Node.js Spring Boot (Java) 👉 Try it: https://global-utils.com/en/cors-simulator When debugging client-side network bottlenecks, engineers often need to share .har files. But HAR files contain cookies, Bearer tokens, and auth headers. 👉 Try it: https://global-utils.com/en/har-analyzer Real-time client-side BPE tokenizer comparing exact API inference costs across: OpenAI GPT-6 (Astra, Sol, Luna) Anthropic Claude

SegurançaInfraDev
Interesse
dev.to

From Document Upload to Provenance Chain: Architecting Verifiable Evidence for AI-Assisted KYC

A customer uploads an identity document. OCR extracts the name and document number. A model classifies the image. Another component detects suspicious regions. AI compares extracted attributes with application data, and eventually the customer becomes KYC-approved. From the application perspective, this can look simple: Document Upload ↓ OCR ↓ AI ↓ KYC Approved Architecturally, that hides an important question: Can we reconstruct exactly what evidence, transformation, model, rule, and human decision produced the final result? That is where KYC starts becoming an evidence provenance problem rather than only a document-processing problem. A document is evidence. An OCR result is a derived interpretation of that evidence. An AI-generated conclusion is another derived claim. A final KYC status is a policy or human decision based on some combination of those artifacts. These should not be treated as equivalent. For example, OCR may correctly extract: Name: Rahul Sharma Document Number: ABC12345 That does not prove the document is genuine. Similarly, a cryptographic hash can help establish that stored bytes have not changed, but it does not establish that the underlying document is authentic. The architecture needs to preserve these distinctions. Suppose OCR initially extracts the wrong document number and a later model produces the correct value. If the system simply updates: document_number = corrected_value the historical reasoning disappears. A better model keeps the lineage: SOURCE_DOCUMENT:v1 ↓ OCR_RESULT:v3 ↓ ATTRIBUTE_SET:v2 ↓ POLICY_EVALUATION:v7 ↓ KYC_DECISION:v1 If OCR is rerun later using another model version, it should create another branch rather than rewrite the evidence used by the original decision. AI may be useful for: comparing names, identifying inconsistent fields, classifying unusual layouts, summarizing discrepancies, prioritizing manual reviews. But an AI result should remain a derived claim. If one document contains: VAIBHAV S SHAKYA and another

IA
Interesse
dev.to

Null hypothesis: AI code differs

I spot AI code in PRs to repos I know. Usually it means nothing. Sometimes it annoys me. Like recognizing a colleague’s style. But a colleague learns; an agent needs an external gate saying "don't do it this way". I wanted a reproducible signature to work with. Started from the observation I already had: AI code looks overengineered to me. The plan was to compute target metrics over time/commits and watch the curve bend around agent adoption. I tried cyclomatic complexity, cognitive complexity, max nesting, conditions per entity, and call stack depth. The first snag was size. Complexity tracked SLOC almost one to one. So I normalized everything on SLOC and kept looking. Then added methods and functions per entity, entities per API method, entities per package, dependency count, edges in the dependency graph, and error handling density. About 280 metrics in all with their pairwise correlations. I found no anomalies outside statistical error. Same for public repos and my private ones. As per my understanding, a model emits roughly the mean of its training distribution, while each human deviates from that mean. The means land on top of each other, and the statistic goes quiet. If that's what happened, comparing AI with human code hides the signal. I would need to compare it with one specific person instead, but I don't have enough single-author code to run that test. The process did one useful thing: it taught me the proper questions, and those led me to people who had already run the measurements. A Large-Scale Comprehensive Measurement of AI-Generated Code in Real-World Repositories Not All Agents Are Equal: Code Quality and Post-Merge Maintenance Across Five Autonomous Coding Agents in the Wild Human-Written vs. AI-Generated Code: A Large-Scale Study of Defects, Vulnerabilities, and Complexity These papers do find differences: raw AI-involved code is "more comment-heavy, less cross-file reused, ..." these differences disappear in real-world repos (my guess: AGENTS.m

IADev
Interesse
dev.to

Flaky Test Guide: Causes, Examples, And Fixes

In modern software development, fast and reliable automated testing is essential for maintaining high-quality In this guide, you'll learn what flaky tests are, why they occur, how to identify their root causes, and how to fix What is a Flaky Test? A flaky test is an automated test that yields inconsistent results, occasionally passing and occasionally failing Flaky tests can cause confusion for developers, either suggesting bugs that don’t exist or incorrectly passing to hide Why Are Flaky Tests a Problem? Today's DevOps and Agile workflows are reliant on test to ensure code changes are deployed quickly and As tests become flaky multiple issues arise: 1. Delayed Releases CI/CD pipelines will often block the final software if a test is marked as failed. However, if the test 2. Eroded Trust in Test Results The team can become desensitized to test failures, as they may convince themselves that a flaky test is not an actual 3. Extra Debugging Time Because flaky tests are not infallible and reproducible, it can take developers hours and days to understand the test 4. Resource Drain The time it takes to run flaky tests multiple times to decide whether a failure was real or flaky also consume valuable Common Flaky Test Causes It is important to identify the causes of flaky tests in order to address them. Some common causes of flaky tests are: Asynchronous Processes Generally, flaky tests are caused by timing issues and are the result of a test interacting with an API, a background Environment Related If your test environment is not as similar as possible to production (or varies from test to test) inconsistent Dependency on Other Tests Tests that share resources (such as a database or even global state) can also cause problems, where one test in Poor Test Design Having hardcoded waits, unhandled exceptions, and poorly scoped selectors are also contributors to having flaky tests Understanding the root cause of flaky tests is only the first step. Once you've identified why t

Dev
Interesse
dev.to

Fractional Integrator Job Description: Template, Duties and Success Measures

Most Fractional Integrator job descriptions have one structural problem: They describe a full-time operations role and then reduce the hours. That does not create a fractional role. It creates a capacity problem. If someone is working with your company part-time, the job description needs to define a smaller set of outcomes they can actually own. For technical founders and CTOs, I think about this almost like designing a service boundary. A good interface has clear responsibilities. A bad interface gradually becomes responsible for everything. The same thing happens with an Integrator seat. Start With the Operating Problem Do not begin with: We need a Fractional Integrator. Start with: What repeatedly fails without someone owning the operating rhythm? Typical answers might be: Leadership meetings run long. Quarterly priorities lose visibility. Actions are agreed but not followed up. Metrics are reviewed inconsistently. Cross-team blockers remain unresolved. The founder becomes the default escalation point. Those are problems a role can be designed around. This is much more useful than producing a generic list such as: Strong communicator Those qualities may matter, but they do not tell the candidate what they are actually responsible for. A Fractional Role Is Not a Compressed Full-Time Role Consider a full-time operations leader. They may reasonably: join daily management discussions, coach department heads, run multiple projects, manage staff directly, investigate operational details, attend many meetings, remain available throughout the week. A fractional person cannot sustainably do all of that in a limited number of hours. So I would design the fractional role differently. Full-time role: Fractional role: The word fractional should change the architecture of the role, not just the timesheet. Define Duties as Outcomes This is probably the most useful change you can make to the job description. Do not write: Attend weekly leadership meetings. Write: Run one weekly

Geral
Interesse
dev.to

Hiding an image in a PNG and decoding it with SVG filters, without CORS pixel access

I wanted to see whether a browser could reveal an image hidden in another image even when the carrier was hosted on a site that did not allow cross-origin pixel reads. Drawing the carrier to a canvas is easy, but reading the canvas back is not: without the image host's CORS permission, the canvas becomes tainted. A server-side proxy would solve a different problem. I wanted the visitor's browser to fetch and display the original PNG directly. That experiment became Visual Noise Decoder, a small, dependency-free set of three HTML pages: one to encode images, one to view a decoded image, and one to assemble a gallery. The interesting part is the viewer. It reconstructs the hidden pixels with SVG filters and CSS blending, while JavaScript never reads pixels from the remotely hosted carrier. Here is an encoded example. It looks like an image of Earth, but its low color bits carry an image of the Moon: Open the decoded Moon, or open all three example images as a gallery. The example seed is public; this is a demonstration of the rendering technique, not a secret to protect. The encoder runs on images that the user selects locally. It can use canvas normally: scale the secret, center-crop the cover, modify pixel bytes, and export a new PNG. The viewer has different constraints. A remote or CSS background can be displayed without CORS permission. But if I draw that remote image on a canvas and call getImageData() or toDataURL(), the browser's origin-clean restriction prevents access. Applying an SVG filter first does not make that readback legal. The problem is not getting the image onto the screen; it is obtaining its pixel values in JavaScript. The solution here is to keep the carrier in the browser's rendering pipeline. The viewer uses it as a CSS background, extracts the required bits with SVG component-transfer filters, combines it with locally generated mask images, and lets the compositor assemble the result. It never exports the filtered carrier to canvas. This doe

Dev
Interesse
dev.to

I Built an AI That Tells You to Stop Using AI — TouchGrass AI

🌱 TouchGrass AI AI that tells you to stop using AI. This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass TouchGrass AI is a local-AI-powered outdoor mission generator designed to get people away from their screens and physically outside. Instead of using AI to keep you scrolling, TouchGrass AI uses AI to create a personalized real-world mission based on: ⏱️ Available time — 15 min, 30 min, 60 min, or 2 hours 🌳 Activity — Walking, Nature, Photography, Fitness, Exploration, or Surprise Me 🎯 Difficulty — Easy, Medium, or Challenging The AI generates a unique outdoor quest with tasks, a suggested distance, difficulty, XP reward, and a final phone-free challenge. Once the mission starts, the user is encouraged to put their phone away and go outside. After returning, they can complete the mission, track their XP, streak, and total time spent outdoors. The project is built for students, developers, remote workers, and basically anyone who spends too much time staring at a screen. The goal isn't to make AI more addictive. It's to use AI to help you leave the screen. 🌐 Live Website: https://6069758.github.io/TouchGrassAi/ Try generating a mission, start it, put your phone away, go outside, and come back to complete it. 💻 GitHub Repository: https://github.com/6069758/TouchGrassAi The entire project is open source and built with vanilla HTML, CSS, and JavaScript. TouchGrass AI uses local open-weight AI through Ollama. The current model is: Qwen3 4B The architecture is intentionally simple: USER │ ▼ ┌───────────────────┐ │ HTML / CSS / JS │ │ User Settings │ └─────────┬─────────┘ │ ▼ ┌───────────────────┐ │ Mission Prompt │ │ Builder │ └─────────┬─────────┘ │ ▼ ┌───────────────────┐ │ Ollama │ │ Local Inference │ │ localhost:11434 │ └─────────┬─────────┘ │ ▼ ┌───────────────────┐ │ Qwen3 4B │ │ Open-weight AI │ └─────────┬─────────┘ │ ▼ ┌───────────────────┐ │ Mission JSON │ │ Title / Tasks / │ │ XP / Distance │ └─────────┬─────────┘ │ ▼

IA
Interesse
dev.to

공공 웹 참조 자료를 유용하게 유지하기 위한 실용적인 체크리스트

개발 업무에서 저장되는 링크의 종류는 생각보다 다양합니다. 공식 문서, 이슈 스레드, 패키지 안내, API 가이드, 릴리스 노트, 코드 예제, 대시보드, 커뮤니티 게시물까지 문제 해결 과정에서 수많은 주소가 기록됩니다. 페이지가 여전히 열리더라도 이전 버전의 설명이거나 이미 사용 중단된 기능일 수 있고, 특정 환경에서만 통했던 해결책일 수도 있습니다. 링크 관리의 핵심은 수집량보다 신뢰 기준입니다. 모든 참고 자료를 정기적으로 조사할 필요는 없습니다. 저장 이유와 적용 범위, 최신성, 출처의 성격 정도만 짧게 남겨도 오래된 자료를 다시 만났을 때 판단이 훨씬 쉬워집니다. 링크를 남길 때 가장 먼저 필요한 정보는 저장 이유입니다. 긴 설명이나 별도의 문서까지는 필요하지 않습니다. 북마크 이름, README 메모, 이슈 댓글에 몇 단어만 남겨도 충분합니다. 예를 들어 ‘문서’라는 이름보다 ‘OAuth 토큰 갱신 문서’, ‘예제’보다 ‘React 테이블 정렬 예제’, ‘오류 해결’보다 ‘Node 업그레이드 후 빌드 오류 해결’처럼 목적을 구체화하는 편이 좋습니다. 저장 목적 권장 이름 활용 맥락 문서 OAuth 토큰 갱신 문서 인증 관련 참고 예제 React 테이블 정렬 예제 UI 구현 참고 해결책 Node 업그레이드 후 빌드 오류 문제 재현 및 비교 API 결제 웹훅 필드 문서 연동 작업 참고 핵심은 완벽한 기록이 아닙니다. 미래의 자신이나 팀원이 링크를 다시 보았을 때 저장 이유를 이해할 수 있는 정도의 맥락입니다. 제목 하나만 제대로 남겨도 의미 없는 URL 목록과 실제 업무 자료의 구분이 가능합니다. 저장된 페이지가 지금의 문제와 같은 상황을 다루는지 먼저 확인하는 것이 좋습니다. 비슷한 기술 이름이 등장한다는 사실만으로 동일한 참고 자료라고 판단하기에는 부족합니다. 확인 기준은 비교적 단순합니다. 동일한 기술, 프레임워크, 서비스인가? 사용 중인 버전과 관련성이 있는가? 공식적인 사용 방법인가, 임시 해결책인가? 다른 런타임, 패키지 관리자, 배포 환경을 전제로 하는가? 설치, 문제 해결, 유지보수 중 어느 단계의 자료인가? 개발 중 저장되는 링크는 특정 오류 하나를 해결하기 위한 경우가 많습니다. 당시에는 정확한 답이었지만 시간이 지나면 더 일반적인 지침처럼 보일 수 있습니다. 특히 커뮤니티 답변이나 개인 블로그의 코드 조각은 작성 당시의 환경과 전제조건까지 함께 살펴야 합니다. 날짜는 유용한 단서지만 단 하나의 판단 기준은 아닙니다. 최근 작성된 글이라도 내용이 간단하거나 특정 상황에 한정될 수 있고, 오래된 문서라도 변하지 않는 개념 설명에는 충분한 가치가 있습니다. 여러 신호를 함께 확인하는 방식이 안정적입니다. 신호 확인 가능한 내용 주의점 작성·수정 날짜 시간적 맥락 정보의 완전성까지 보장하지 않음 버전 표시 대상 라이브러리나 제품 현재 버전과 일치 여부는 별도 확인 댓글·이슈 답변 최근 사용자 경험 최신 답변이라고 해서 정답은 아님 공식 문서 구조 유지 관리되는 영역 여부 모든 예제가 현재 프로젝트와 동일하지 않음 리디렉션 주소 이동 여부 새 페이지와 의미가 같다는 보장은 없음 최소 두 가지 이상의 신호를 비교하는 습관만으로도 오래된 참고 자료의 무조건적인 재사용을 줄일 수 있습니다. 모든 링크가 같은 역할을 하는 것은 아닙니다. 선택을 위한 자료와 실제 작업을 위한 자료를 한 목록에 섞어 두면 필요한 순간 판단 과정이 길어질 수 있습니다. 비교 자료는 여러 접근 방식이나 패턴, 기능 차이를 살펴보는 용도입니다. 반면 실행 자료는 실제 코드 수정이나 설정 변경 과정에서 직접 참고하는 구체적인 문서입니다. 예를 들어 주소온길 링크모음과 같은 분류형 페이지는 여러 공개 자료를 살펴보는 비교 사례로 활용할 수 있습니다. 실제 변경의 근거는 개별 공식 문서, 프로젝트 저장소, 해당 기능의 원문 자료처럼 직접 확인 가능한 출처에 두는 편이 좋습니다. 모든 링크에 긴 설명을 붙일 필요는 없습니다. 사용 방식에 영향을 주는 내용만 짧게 남기는 편이 실용적입니다. 예를 들면 다음과 같습니다. 버전 3 이전에만 적

Dev
Interesse
dev.to

Pensando em Yii3: como o framework se encaixa

Se você vem do Yii2, a primeira coisa que vai procurar no Yii3 é o Yii::$app. Ele não existe. Não tem objeto global da aplicação, não tem Controller base cheio de propriedades mágicas e não tem array de components. Quando isso encaixa, o resto faz muito mais sentido. Este post é o modelo mental que eu queria ter antes de escrever qualquer código. Se preferir ir direto para a prática, o CRUD passo a passo usa tudo que está aqui. O Yii3 não é um repositório só. É uma coleção de pacotes yiisoft/* pequenos, e cada um faz uma coisa: yiisoft/router, yiisoft/di, yiisoft/db, yiisoft/validator, yiisoft/view e por aí vai. Quem junta tudo num app funcionando é o template yiisoft/app. No meu projeto de CRUD, depois de adicionar os pacotes de banco e de formulário, são 49 pacotes yiisoft/* no vendor/. Você não precisa conhecer a maioria, mas ajuda saber que eles existem e que cada um funciona fora do Yii também. Isso também quer dizer que você adiciona funcionalidades com composer require, e não ativando algo num arquivo de config gigante. Precisa de banco? composer require yiisoft/db-sqlite. Formulários? yiisoft/form-model. E a maioria dos pacotes traz a própria configuração, que é o próximo ponto. Toda a configuração fica em config/, dividida em grupos. O mapa dos grupos está em config/configuration.php: 'config-plugin' => [ 'params' => 'common/params.php', 'params-web' => ['$params', 'web/params.php'], 'params-console' => ['$params', 'console/params.php'], 'di' => 'common/di/*.php', 'di-web' => ['$di', 'web/di/*.php'], 'di-console' => '$di', 'routes' => 'common/routes.php', 'bootstrap' => 'common/bootstrap.php', // ... ], O grupo di é todo arquivo em config/common/di/, o di-web é isso mais os arquivos de config/web/di/, e assim por diante. O app web e o console leem grupos diferentes, e os ambientes (dev, prod, test) podem sobrescrever os params. O detalhe importante é que os pacotes também trazem configuração. O yiisoft/session tem um config/di-web.php que liga FlashInterfac

Dev
Interesse
+1 fonte
dev.to

Claude Haiku 5.5 ผลการทดสอบประสิทธิภาพ

Claude Haiku 5.5 ได้คะแนน 72.4% ใน OSWorld 2.1, 1620 ใน GDPval-AA v2.1, 46.4% ใน FrontierCode 1.1 และ 39.2% ใน Terminal-Bench 4.0. Haiku 4.5 ได้คะแนน 15.7%, 735 และ 0.0% ในสามรายการดังกล่าว ทั้งหมดนี้เป็นตัวเลขที่ได้จากความพยายามสูงสุด (max); หากใช้ความพยายามระดับ medium ตามค่าเริ่มต้น GDPval-AA จะลดลงเหลือ 1277 ยังไม่มีห้องปฏิบัติการอิสระใดเผยแพร่ผลการทดสอบ Haiku 5.5 ลองใช้ Apidog วันนี้ บทความนี้สรุปทุกเกณฑ์มาตรฐานของ Claude Haiku 5.5, ผู้ที่ดำเนินการทดสอบ, ความแตกต่างของคะแนนและค่าใช้จ่ายตามระดับความพยายาม รวมถึงวิธีทดสอบโมเดลกับทราฟฟิกจริงของคุณใน Apidog สำหรับข้อมูลจำเพาะและราคา เริ่มต้นได้ที่ Claude Haiku 5.5 คืออะไร เซลล์ Haiku 5.5 ทุกรายการใช้การคิดแบบปรับตัว (adaptive thinking) ที่ความพยายามสูงสุด (max) โดยปกติจะเฉลี่ยจากห้าครั้งที่ลอง โดย Terminal-Bench ใช้สิบครั้งต่องาน ส่วน n/r หมายถึงไม่มีการเผยแพร่ผลลัพธ์ เกณฑ์มาตรฐาน Haiku 5.5 Haiku 4.5 GPT-6 Luna Sonnet 5.5 GDPval-AA v2.1 (Elo) 1620 735 1437 1840 AA-Briefcase v1.1 (Elo) 1578 614 1336 1824 OSWorld 2.1, ชุดข้อมูลออฟไลน์ 72.4% 15.7% 48.9% 83.9% การสอบครั้งสุดท้ายของมนุษยชาติ, ไม่มีเครื่องมือ 45.9% 10.2% n/r 56.9% การสอบครั้งสุดท้ายของมนุษยชาติ, มีเครื่องมือ 57.4% 18.7% n/r 64.5% Terminal-Bench 4.0 39.2% 0.0% 16.4% 70.6% FrontierCode 1.1 (หลัก) 46.4% n/r 42.4% 52.1% (xhigh) Chartography, ไม่มีเครื่องมือ 46.4% 6.4% 29.1% 61.6% Anthropic เป็นผู้ดำเนินการทดสอบส่วนใหญ่ด้วยตัวเอง แถวข้ามผู้จำหน่ายใช้ชื่อเกณฑ์มาตรฐานเดียวกัน แต่ไม่ได้หมายความว่าจะใช้ชุดทดสอบหรือการตั้งค่าความพยายามเหมือนกันเสมอไป เกณฑ์มาตรฐาน ผู้ดำเนินการ เงื่อนไข GDPval-AA v2.1, AA-Briefcase v1.1 Artificial Analysis, โดยอิสระ GDPval-AA: 220 งาน, 44 อาชีพ, Elo อิงกับ DeepSeek V4.1 Flash (สูงสุด) ที่ 1600; Briefcase: โปรเจกต์หลายสัปดาห์ FrontierCode 1.1 Cognition Claude ใน Claude Code, GPT ใน Codex; หลัก = 100 งานที่ยากที่สุดจาก 150 งาน Chartography Anthropic, บนเกณฑ์มาตรฐานของ Surge AI ตัวประเมิน Gemini 3.5 Flash; คะแนน Luna จาก Surge AI Terminal-Bench 4.0 Anthropic Claude Code --bare, 66 งาน, 10 ครั้งที่ลองในแต่ละงาน, เปิดระบบป้องกัน OSWorld

IA
Interesse
+1 fonte
dev.to

Day 6 of Building Crowdwide — I Think I’m Finally Done Adding Features

That finally feels like I don't need more features. I recently published one more feature — the platform currency of Crowdwide. Its name is Waves. You can earn Waves just for using Crowdwide: giving a like, getting a like, getting a comment, making a comment, creating a community, completing quests, etc. So what can you do with it? If you're a normal person, just use social media, post stuff, and that's all. So you can remove ads on it. Yeah, I know... it feels weird that my platform has ads?? How? In the early stage, getting approval from a white-label company is very difficult... hahahaha. But if you didn't get anything, just build it. So in Crowdwide, I built its own advertisement system where developers or creators can advertise their products without real money, just using the platform currency called Waves. And it looks cool because many people don't have money in the initial stage. Especially developers/learners under 18 can't even transfer money easily, and they just rely on social media platforms where large communities lead and their posts get neglected. For advertisement, how does it work? Firstly, you have to create an advertisement, put your link and basic details for your ad. Then moderator and admin will check it out. Then you get approved, set your budget and further details, and then it goes through approval again. After that, your advertisement gets activateddd!! YEEAAAAA! 🚀 And unlike big tech companies, I don't take weeks to approve. Max 48 hours, and I just see it when I'm online. It's done. Here you go! And I made this system because I need only clean ads. No gambling. And not only ads — you can promote your articles too. There will also be a plan to remove ads soon because I don't get enough advertisers yet, so why would I give an option to remove ads? 😂 Advertise first, then remove ads. Not remove first, then advertise lol. Tech philosopher Puneet... lol. Apart from this, I have built: Proper dashboard with feed mechanism and algorithm, wit

Geral
Interesse
dev.to

Claude Haiku 5.5 vs Haiku 4.5: อัปเดตใหม่ ความแตกต่าง และจุดที่ต้องแก้ไขด่วน

Claude Haiku 5.5 (claude-haiku-5-5, เปิดตัว 7 ตุลาคม 2026) มีราคาถูกกว่า Haiku 4.5 ถึง 90% สำหรับ prompts สูงสุด 100K โทเค็น: $0.10/$0.50 ต่อล้านโทเค็นอินพุต/เอาต์พุต เทียบกับ $1/$5 มี context window ขนาด 1M โทเค็นแทน 200K และได้คะแนนสูงกว่ามากในเกณฑ์มาตรฐานที่ระบุ อย่างไรก็ตาม คำขอ 5 รูปแบบที่ใช้ได้กับ 4.5 จะส่งคืน 400 บน 5.5 และยังมีการเปลี่ยนแปลงที่กระทบผลลัพธ์และค่าใช้จ่ายโดยไม่เกิดข้อผิดพลาด ลองใช้ Apidog วันนี้ บทความนี้สรุปความต่างของรุ่น, JSON ก่อน/หลังสำหรับการเปลี่ยนแปลงที่กระทบระบบ, รายการพฤติกรรมที่เปลี่ยนแบบไม่แจ้งข้อผิดพลาด และแผนทดสอบการย้ายข้อมูลด้วย Apidog ดูข้อมูลจำเพาะเพิ่มเติมได้ที่ Claude Haiku 5.5 คืออะไร และหากยังใช้รุ่นเดิม โปรดดู API ของ Claude Haiku 4.5 Claude Haiku 4.5 Claude Haiku 5.5 รหัสโมเดล (Claude API) claude-haiku-4-5-20251001 claude-haiku-5-5 บริบท / เอาต์พุตสูงสุด 200K / 64K 1M / 128K อินพุต / เอาต์พุต ต่อ MTok $1 / $5 $0.10 / $0.50 สำหรับ prompts สูงสุด 100K โทเค็น; $0.50 / $2.50 สำหรับส่วนที่เกิน อ่านแคช / เขียน 5 นาที ต่อ MTok $0.10 / $1.25 $0.01 / $0.125 สูงสุด 100K; $0.05 / $0.625 สำหรับส่วนที่เกิน อินพุต / เอาต์พุตแบบ Batch ต่อ MTok $0.50 / $2.50 $0.05 / $0.25 สูงสุด 100K; $0.25 / $1.25 สำหรับส่วนที่เกิน การคิด (Thinking) budget_tokens แบบกำหนดเอง ปรับอัตโนมัติเท่านั้น และเปิดใช้งานโดยค่าเริ่มต้น ระดับความพยายาม (Effort levels) ไม่มี ต่ำ, ปานกลาง (ค่าเริ่มต้น), สูง, สูงมาก, สูงสุด Prompt ที่สามารถแคชได้ขั้นต่ำ 4,096 โทเค็น 512 โทเค็น Tokenization แบบเก่า จำนวนโทเค็นสูงขึ้นประมาณ 30% สำหรับข้อความเดียวกัน พารามิเตอร์การสุ่มตัวอย่างที่ไม่ใช่ค่าเริ่มต้น / prefill ยอมรับ ส่งคืน 400 Priority Tier รองรับ ไม่รองรับ สถานะ ใช้งานอยู่, จะไม่เลิกใช้งานก่อน 15 ต.ค. 2026 ใช้งานอยู่, จะไม่เลิกใช้งานก่อน 7 ต.ค. 2027 Haiku 4.5 ยังไม่ถูกยกเลิก โดยหน้า การยกเลิกโมเดล ระบุว่ายังคงใช้งานอยู่และไม่มีกำหนดวันยกเลิก คุณจึงสามารถวางแผนย้ายข้อมูลตามรอบการพัฒนาของทีมได้ ขีดจำกัดอัตรา (rate limits) ยังคงเหมือนกันระหว่างทั้งสองรุ่น รายการต่อไปนี้ทำให้ body ที่ทำงานบน Haiku 4.5 ส่งคืน 400 เมื่อเปลี่ยนเป็น Haiku 5.5 ตรวจสอบรายละเอียดเพิ่มเติมจาก คู่มือย้

IADev
Interesse
+2 fontes
dev.to

Building Your First CRUD App in Yii3: A Step-by-Step Guide for Beginners

I've been using Yii3 in a few side projects, and most "first CRUD" tutorials out there are still about Laravel. So here's one for Yii3. If you come from Yii2, forget Yii::$app. Yii3 is PSR all the way down, and everything reaches your classes through the constructor. It's more explicit, and that actually makes it easier to follow, because nothing happens behind your back. We'll build a small post manager with list, create, edit and delete. It uses SQLite and PHP's built-in server, so all you need is PHP 8.2+ (with pdo_sqlite) and Composer. composer create-project yiisoft/app crud-app cd crud-app cp .env.example .env ./yii serve Open http://127.0.0.1:8080 and you should see the Yii3 welcome page. On Windows, use yii.bat instead of ./yii. Copying .env puts the app in dev mode, so errors come with a stack trace instead of a blank 500 page. These are the folders we'll touch: config/common/di/ # services, every file here is loaded config/common/routes.php config/console/params.php src/ # your code, namespace App\ runtime/ # logs, cache and our SQLite file The template doesn't ship with a database layer or forms, so we add them: composer require yiisoft/db-sqlite yiisoft/db-migration yiisoft/cache yiisoft/form-model db-sqlite gives you the connection and the query builder. db-migration adds the ./yii migrate:* commands. form-model brings form classes, validation and field widgets. cache is only there because the connection wants a schema cache. In Yii3, configuring something means telling the DI container how to build it. Create config/common/di/db.php: [ '__construct()' => [new ArrayCache()], ], ConnectionInterface::class => static fn (Aliases $aliases, SchemaCache $schemaCache) => new Connection( new Driver('sqlite:' . $aliases->get('@runtime/database.sqlite')), $schemaCache, ), ]; From now on, any class that asks for ConnectionInterface in its constructor gets this connection. Then tell the migration tool where migrations live. In config/console/params.php: [ 'commands

Dev
Interesse