Painel de Notícias

Tecnologia

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

Filtros
dev.to

Practical Tips for Deploying Large Language Models in Production

Introduction Deploying large language models (LLMs) in a production environment presents a different set of challenges than running them in a notebook. Engineers need to balance latency, cost, and reliability while keeping the model up to date with the latest data. This article shares concrete patterns that have proven effective for startups and scale-ups. LLMs can power features such as code completion, customer support bots, and content generation. When integrated correctly they reduce manual effort and improve user experience. However, a naïve deployment can lead to high latency, unpredictable costs, and hallucinations. Latency - Large models take time to generate responses, especially when the request volume spikes. Cost - Running a model on GPU continuously can be expensive. Data freshness - The model’s knowledge may become stale if it does not see recent documents. Reliability - A single point of failure in the inference pipeline can bring a feature down. RAG combines a static LLM with a dynamic knowledge base. Store relevant documents in a vector store such as Pinecone or Milvus. At inference time, query the store with the user prompt, retrieve the top k snippets, and prepend them to the model prompt. This approach keeps answers grounded in current data and reduces hallucinations. from sentence_transformers import SentenceTransformer from pinecone import Index model = SentenceTransformer('all-MiniLM-L6-v2') index = Index('my-docs') def retrieve(query, top_k=5): vec = model.encode([query])[0] results = index.query(vector=vec, top_k=top_k) return "\n".join([match['metadata']['text'] for match in results['matches']]) def generate(prompt): context = retrieve(prompt) full_prompt = f"Context:\n{context}\n\nPrompt:\n{prompt}" # Call to LLM API here return call_llm(full_prompt) Store prompts in a version-controlled repository. Use a templating system that allows you to inject variables such as user name or product ID. When a prompt changes, run a regression test agai

IADev
Interesse
Hacker News

The Query Transformation Pipeline

Article URL: https://readyset.io/blog/how-readyset-rewrites-your-sql-inside-the-query-transformation-pipeline Comments URL: https://news.ycombinator.com/item?id=49984834 Points: 3 # Comments: 0

Dev
Interesse
dev.to

How AI Is Changing UI/UX Design in 2026: What Designers Need to Know

Artificial intelligence is changing the way digital products are imagined, designed, tested, and built. For UI and UX designers, the change is already visible. Tasks that once required hours of repetitive work can now be accelerated with AI-assisted tools. Designers can generate early interface concepts, explore wireframes, create visual assets, produce prototypes, organize design files, generate copy, conduct parts of UX research, and even work more closely with code. But the biggest change is not that AI can generate a screen in seconds. The bigger change is that the relationship between design, development, research, and product strategy is becoming more fluid. This raises important questions. What should designers learn? Which parts of the design process should be automated? Where does human judgment remain essential? And will AI eventually replace UI/UX designers? The answer is more nuanced than the headlines suggest. AI is becoming a powerful design assistant, but good product design still depends on understanding people, context, business goals, accessibility, usability, visual hierarchy, interaction patterns, and the consequences of design decisions. This article explores how AI is changing UI/UX design in 2026 and what designers, developers, freelancers, students, and agencies should know about the transition. AI is no longer limited to generating images or writing short pieces of text. Modern design tools are incorporating AI into different stages of the product development process. Figma, for example, has introduced AI capabilities that can help designers find assets, replace content, add interactions, rename layers, isolate objects, vectorize images, and generate early design concepts. Its First Draft functionality can transform an idea into editable designs and wireframes, giving designers a faster way to explore possibilities. Figma's newer agent experience is becoming the primary entry point for these capabilities. (Figma, 2026) This illustrates an im

IA
Interesse
The Verge

The best robot vacuum and mop deals during October Prime Day

The Dreame X60 Ultra in action. | Photo by Jennifer Pattison Tuohy / The Verge Spending too much time constantly sweeping and mopping? If you have the money to delegate those chores to a robot cleaner, you could save a lot of personal time. Thankfully, it’s cheaper than usual to buy a robot vacuum / mop hybrid during Amazon’s Prime Big Deal Days, and some of our favorite models are discounted. The deals aren’t just for Amazon Prime members either, with other retailers like Best Buy and manufacturers getting in on the action, as well. That being said, if your floors are already squeaky clean, make sure to check out our roundup of over 100 deals from Amazon’s October sale. Roborock Qrevo Curv 2 Flow Roborock’s first roller-mop robot vacuum, the Curv 2 Flow, features flagship specs at a midrange price, including excellent mopping, a retractable mop cover, 20,000Pa suction, AI-powered obstacle avoidance, and a compact design. Where to Buy: $999.99 $634.99 at Amazon $999.99 $699.99 at Best Buy $999.99 $699.99 at Roborock Roborock Saros 20 Roborock’s Saros 20 stands out for its ability to climb tall thresholds, avoid obstacles with impressive accuracy, and clean under low furniture thanks to its slim design. It also combines powerful 36,000Pa suction with great spinning mop pads, which is why we recommend it for homes with multiple floor types and tricky transitions between rooms. Where to Buy: $1599.99 $1179.99 at Amazon $1599.99 $1194.99 at Roborock Narwal Flow 2 Our pick for the best robot vacuum-mop if you have all hardwood floors is the Narwal Flow 2. A superb mop with a wide flat roller pad and an excellent vacuum, the Flow 2 also has top-notch navigation and obstacle detection. Its sleek base station is also less of an eyesore than most. Where to Buy: $1499.99 $1099.99 at Amazon (with on-page coupon) $1499.99 $1044.99 at Narwal Dreame X60 Ultra The Dreame X60 Ultra leverages a pair of AI-assisted cameras to help it navigate obstacles and ensure a thorough, consiste

Geral
Interesse
dev.to

Poverty Inspired Me to Fix a 'Wine Can't Do This' Timeout

A wise man once said, “if the young man is hungry, he should go to the forest and hunt the elephant. If he kills the elephant, the hunger ends, and if the elephant kills him, the hunger ends.” My Monday poverty motivation led me to brave the waters of quantitative trading using algorithmic bots. As a Nigerian, familiar with unsteady power supply, I asked early: “how can I achieve 100% runtime even if I don’t get light for a week?” The answer led me to a VPS (Virtual Private Server). Ladies and gentlemen, tell me why the cheapest monthly subscription for a Windows OS is $50. My entire trading equity is $100, and I’m not even sure I have an edge yet. Scratch that. I’m sure I don’t currently have an edge. In search of the cheapest option I could get on the market, I stumbled on Linux on Contabo for $51/year. The problem: MetaTrader 5 is Windows-only, and I had to run it under Wine. And I had to run it Headlessly. Headlessly, in this case, simply meant it would run without a GUI. No pictures. To further complicate things, every forum thread said the same thing: don’t bother, MetaQuotes’ proprietary IPC layer can’t be emulated, use Windows Server or a Docker wrapper instead. Windows was already off the table, but what about Docker? My setup was an 8GB RAM, 75GB NVMe VPS. A proper multi-container Docker setup (three isolated broker instances, each with its own Wine runtime, virtual framebuffer, image layers, and logs) would have swallowed 20GB or more before I’d logged a single tick. On a 75GB disk, that’s not infrastructure, that’s a tax. Docker was out. I had to do the impossible. I had already paid for the VPS. There was no way I was wasting $51. I would actually cry. So I spent the last seven days trying to crack it, how to run MetaTrader 5 headlessly, and it almost cost me my head. I read as much as I could, gave up, went to AI, used every model available, and the only thing growing on my VPS was the number of orphaned processes. Until we went binary. Well, not me, t

InfraDevLinux
Interesse
dev.to

React Native OTA Is a Release Pipeline, Not a Download Feature

“Download a new JavaScript bundle and run it” describes transport. It does not describe a production release system. A real React Native OTA implementation has to preserve compatibility with installed binaries, identify immutable artifacts, decide which release each device should receive, verify downloads, control activation, observe adoption, and recover when an update fails. Those are separate boundaries. Treating them as one download call is how a convenient feature becomes an operational risk. A React Native application always contains a native binary. That binary defines the native modules, platform configuration, permissions, build-time environment, and embedded JavaScript that shipped through the store. An OTA update can replace compatible JavaScript and related assets. It cannot safely add a native capability that the installed binary does not contain. That gives us the first rule: An OTA artifact is valid only for a runtime that already provides everything the artifact expects. Whether the change was written in JavaScript is not enough. What matters is whether the installed binary can execute it safely. A production pipeline is easier to reason about when each stage has one job: Stage Responsibility Build Produce the JavaScript bundle, assets, and source map Identify Assign an immutable artifact and runtime identity Publish Make an artifact intentionally eligible for release Resolve Select the right release for this device Transfer Deliver a full bundle or compatible patch Verify Check identity, integrity, and authenticity Stage Store the candidate without replacing the active bundle Activate Apply the candidate at a controlled lifecycle point Observe Record checks, downloads, activations, health, and failures Recover Return to a previous good or embedded bundle when necessary The important part is not the labels. It is refusing to let one stage silently take responsibility for all the others. A useful release artifact is more than a bundle file. It normall

DevMobile
Interesse
Rock Paper Shotgun

ROTETRA is Tetris where the blocks fall from four different sides at once and lord almighty I don't have the brainspace to be good at it, but it sure is fun

Look, I'm pretty reasonable at Tetris. I'm not one of those grand masters or anything, but I can both have fun and get a score that would at least make my hypothetical nephew impressed (assuming he also wouldn't be in the Roblox mines). Sometimes, though, a take on the beautiful block game rocks up that makes me question any such skills I may have. Today, that is ROTERA, a block stacking game in which you must manage tetronimos falling from four directions at once. Read more

Games
Interesse
Hacker News

How Fast is Python 3.15?

Article URL: https://blog.miguelgrinberg.com/post/how-fast-is-python-3-15 Comments URL: https://news.ycombinator.com/item?id=49984652 Points: 11 # Comments: 4

Dev
Interesse
dev.to

Native Quantization: Let OpenSearch Service Compress Your Vectors

Send FP32, get 2x to 32x compression, and leave your ingestion pipeline untouched. The engine does the work. The previous article in this series put the quantization work on you. You convert vectors to a reduced precision before indexing, and Amazon OpenSearch Service stores exactly what you send. That gives you full control, and it gives you a standing job: pick a method, run the conversion in your pipeline, and re-check accuracy every time your embedding model changes. There is another way. OpenSearch Service can compress at index time. You send the full-precision FP32 vectors your embedding model already produces, and the engine converts each one to a lower-bit representation during ingestion and stores the compressed vectors in the index. Both the Faiss and Lucene engines offer native quantization, each with its own methods. Your ingestion pipeline does not change. The control over the accuracy tradeoff moves out of your code and into index configuration. The baseline is the same one from the previous article. At 100 million vectors of 1,536 dimensions, full-precision FP32 needs about 643 GB for one copy, roughly 1.3 TB with a replica. That figure is the best-latency deployment, holding every vector in memory; with memory-optimized loading you can serve the same index in less RAM and page from disk at some latency cost. Every option here reduces the footprint while leaving ingestion identical. This is the second of three articles on the quantization spectrum in OpenSearch Service. The first covered pre-quantized vectors. The third covers on-disk mode and cost stacking. Faiss scalar quantization is the native path you reach for first. You set the encoder on the knn_vector field to sq and give it a bits value, and OpenSearch Service converts each FP32 dimension to the target precision during ingestion, storing the quantized vectors in the index. Valid bit widths are 16, 4, 2, and 1, spanning the range from near-lossless to aggressive compression. At 16 bits, scala

IAInfraDev
Interesse
dev.to

🌲 TrailBird AI — Zero-Signal Open-Source Bird Identifier for Wilderness Trails

This is a submission for the MLH x DEV Writing Challenge What I Built TrailBird AI is a zero-latency, 100% offline open-source bird call identification system engineered specifically for deep wilderness trails where cellular service drops to zero. When hiking in dense forests, river canyons, or mountain passes, cloud-based AI APIs fail instantly due to zero network availability. Furthermore, conventional nature apps keep users glued to screen interfaces while scrolling through lists—defeating the core experience of being outdoors. TrailBird AI flips this paradigm with two core innovations: Zero-Signal Edge Inference: Operates 100% client-side inside any smartphone browser or terminal CLI using Fast Fourier Transform (FFT) acoustic feature extraction. No cloud requests, no backend servers, zero bandwidth required. Whether you are a trail runner, backpacker, birdwatcher, or casual hiker, TrailBird AI lets you identify bird calls on the trail while keeping your eyes on the forest canopy rather than a phone screen. Demo Here is TrailBird AI running offline in browser and terminal environments: ================================================================ 📁 Audio File: audio_samples/american_robin.wav 📊 ACOUSTIC SPECTROGRAM PREVIEW (Local Inference): 🎯 TOP IDENTIFICATION: 🐤 Black-capped Chickadee (Poecile atricapillus) 🌿 TOUCH GRASS ACTION TIP: Key UI Features: TrailBird AI leverages open-source & web-native technologies designed for edge audio processing and zero-dependency execution: Web Audio API & WebAssembly: Microphone audio stream processing and 512-bin Fast Fourier Transform (FFT) extraction executed directly in the browser's JavaScript V8/Wasm runtime. Participating in MLH hackathons and building open-source projects is immensely satisfying. The process of taking an idea—like identifying bird calls offline while hiking—and turning it into a working prototype in a high-energy challenge window is what hacking is all about. Key Learnings: Happy hacking! 🌲✨

IADevMobile
Interesse
dev.to

How AI Search Engines Choose Sources: A 2026 Guide for Bloggers

Ask a hundred bloggers where their readers come from and you'll hear the same story. Traffic that once arrived from a Google results page now sometimes comes from an answer box, a chatbot citation, or nowhere at all, because the reader got what they needed *without clicking. If you publish online in 2026, "how do I rank?" is only half the question. The other half is how AI search engines decide whose work to quote.* ChatGPT with search turned on, Perplexity, Google's AI Overviews and AI Mode, and Claude with web access all answer a question in natural language and usually attach links to the pages they drew from. Google's AI Overviews reportedly reach around two billion people a month, which is why they matter even to people who never open a chatbot. The industry has started calling the effort to get cited by these tools generative engine optimization (GEO) or answer engine optimization (AEO). Both terms are new, and so is much of the evidence behind the advice circulating about them. The differences come down to architecture. Perplexity was built around citations from day one, running a live web search for each question and tying claims to specific sources. ChatGPT blends what the model learned in training with a retrieval layer that fetches web results when a question needs them. Google AI Overviews and AI Mode draw on Google's own index, which means ordinary SEO fundamentals still shape what they cite. A frequently cited analysis of roughly 680 million citations found that only 11% of domains are cited by both ChatGPT and Perplexity, and that around 71% of cited sources appear on just one platform. "AI search" is not a single channel. What works on one may do very little on another. A few patterns show up repeatedly across the data. Content that defines its terms at the start and states facts plainly is easier for a retrieval system to lift into an answer. Pages with original data, named sources, and visible author credentials appear to be favored over vague, opi

IA
Interesse
dev.to

How IceCube's Sensor Stream Drops Events and How to Recover Them

IceCube’s photomultiplier tubes produce millions of waveforms each second; a brief network glitch can drop entire events, leaving holes in the neutrino record. When those holes appear in analysis they bias flux measurements and can mimic new physics. This article shows how to detect the loss and recover missing data without redesigning the detector. What you'll learn Why raw sensor streams drop packets under load How to add a resilient buffering layer with Apache Kafka Failure modes to watch for and simple monitoring hooks The detector digitizes each PMT hit into a ~100‑byte waveform and ships it over UDP to a processing farm. At peak rates the stream exceeds 10 GB/s, so the firmware relies on the network’s best‑effort delivery. Any packet loss translates directly into a missing event because the waveform cannot be reconstructed from its neighbors. Three common causes appear in practice: UDP overflow – the NIC’s receive ring fills faster than the kernel can copy packets to user space. Application stalls – a slow consumer blocks the read socket, causing the kernel to drop incoming packets. Driver latency spikes – intermittent interrupt‑handling delays produce micro‑bursts that exceed buffer size. Each of these creates gaps that look like missing neutrinos in downstream analysis. We place a reliable message broker between the digitizer and the analytics stage. The broker absorbs bursts, persists data, and lets consumers progress at their own speed. from confluent_kafka import Producer import json import time import random def generate_waveform(): # Simulate a 100‑byte PMT waveform return [random.randint(0, 255) for _ in range(100)] def delivery_report(err, msg): if err is not None: print(f"Delivery failed: {err}") p = Producer({'bootstrap.servers': 'localhost:9092'}) while True: waveform = generate_waveform() payload = json.dumps({"timestamp": time.time_ns(), "waveform": waveform}) p.produce('icecube-raw', payload.encode('utf-8'), on_delivery=delivery_report) p.poll(0

InfraDev
Interesse
dev.to

Architecting Location-Aware Services on Android Without Killing the Battery

It happened during a quiet Friday sermon at my local mosque. I had carefully checked my pocket before walking in, or so I thought. Halfway through the speaker's closing remarks, a sharp, high-pitched ringtone cut through the silence like a knife. Every head in the room turned toward me. My face burned as I scrambled to silence the device, eventually killing the call, but the damage was done. I wasn't the only one; I watched three other people reach for their pockets in a panic over the next twenty minutes. It was a shared, silent frustration that happened every single week. That moment was the birth of Muffle. The core issue isn't just about silence; it is about human fallibility. We are distracted, we are busy, and we are forgetful. I found that I constantly forgot to unmute my phone after a meeting, only to miss critical calls later in the afternoon. Manual toggling is a failure-prone process because it requires the user to remember a state change at the exact moment they are most distracted by a new environment. I wanted a system that was truly 'set and forget,' meaning the phone had to understand its own context without me touching a single button. When I started building Muffle, I realized that relying on a simple foreground service to poll GPS coordinates would be an absolute disaster for battery life. Android systems are aggressive about killing processes that drain power, and users are even more aggressive about uninstalling apps that show up at the top of their battery usage statistics. I needed a way to trigger sound changes based on location, but I needed it to be as lightweight as possible. I decided to pivot away from manual location polling and instead leverage the GeofencingClient within the Google Play Services location APIs. Using the GeofencingClient allows the OS to handle the heavy lifting of location monitoring at the firmware level. Instead of my app asking, 'Where am I?' every thirty seconds, I register a set of circular regions with the syste

Mobile
Interesse
dev.to

Curiosity Over Comfort

I’m More Interested in Why Things Break Than Why They Work I don’t think I became interested in technology because I wanted to build apps. I think I became interested because I wanted to understand things. There’s a difference. When something works exactly as expected, there usually isn’t much mystery left. You press a button, something happens, and you move on. But when something breaks, everything becomes more interesting. Why did it fail? Was the assumption wrong? Was the system badly designed? Did someone trust something they shouldn’t have? Was the problem in the interface, the network, the database, the user, or somewhere deeper? That way of thinking has probably shaped most of what I build. A lot of software is designed to hide complexity. That is normally a good thing. Most people do not care how a request is routed, how authentication is validated, how a database transaction is handled or how an AI model receives context. They just want the thing to work. I tend to get interested in the hidden part. I want to know what happens between clicking a button and getting a result. I want to know what happens when that process is interrupted. I want to know what assumptions the developer made and what happens if those assumptions are wrong. That is part of why cybersecurity became interesting to me. Security often lives in the gap between what a system appears to do and what it actually allows. One of the strangest things about programming is that the more I learn, the less I feel like I know. When I started building websites, a website felt fairly simple. Frontend. Backend. Database. Done. Then you start learning about authentication, caching, queues, rate limits, browser behaviour, network failures, accessibility, search engines, deployment, monitoring, observability and security. Suddenly a “simple website” doesn’t seem simple anymore. The same thing happened when I started experimenting with AI. At first, the interesting part was the model. Which one is smarter

Segurança
Interesse
dev.to

Building a phone remote for a desktop app that has no API

I keep many Claude Code sessions open in Claude Desktop's Code tab. When I walk away, one of them is usually sitting on a permission prompt by the time I'm back. I wanted to see and answer those sessions from my phone. They had to be the same sessions, not copies. The catch is that the desktop app has no public API for any of this. This post is about the design I ended up with in Relaymote (MIT, Node.js, Windows first). The lessons apply to any "remote control for an app that wasn't built to be remote-controlled". The split that made everything else workable: Reading never touches the app. Claude Desktop writes a small JSON file per Code session (title, folder, model, archived), and Claude Code writes each conversation as a .jsonl transcript. Relaymote reads those directly, and reads transcripts from the end, so a long session opens fast. So the phone can list and read sessions even when the desktop app is closed. Acting goes through the app. Some actions only exist inside the app: sending a message, answering a permission, renaming, archiving. For those, Relaymote attaches to the app's main-process debugger (Chrome DevTools Protocol on 127.0.0.1). Where the app has an internal method for the action, it calls that method. It falls back to driving the UI only when no such method exists. Reads are the bulk of the traffic, so a desktop update that changes the UI breaks only actions, never the view. UI driving is dangerous when someone is sitting at the keyboard. Every UI action goes through one serialised lane and waits for an idle gate: no keyboard or mouse input for a short while. The remote is therefore polite by construction. It can't race you for focus. The phone is a web app, which raised a security question: anything that can send a message to a coding agent can, indirectly, run commands on the PC. So: The control port binds to loopback only. The app port requires an access key on every request. Pairing is a QR link whose key is exchanged once for an HttpOnly co

DevMobile
Interesse
dev.to

1,897,463 MongoDB services: how unauthenticated data stores became routine

1,897,463 MongoDB services: how unauthenticated data stores became routine The problem MongoDB and Redis share a pattern: both were designed to run inside a trusted network, both became a common backend for quickly written applications, and both continue to appear at scale in exposure data. When authentication is optional in practice, it is often absent in production. On 2026-09-30 (UTC) we queried ZoomEye for the MongoDB service fingerprint: Query: service="mongodb" Scope: all asset types, global Matching assets: 1,897,463 Search link: https://www.zoomeye.ai/searchResult?q=c2VydmljZT0ibW9uZ29kYiI%3D We also attempted to scope exploitation history directly with a query for specific CVE identifiers. The queries vul.cve="CVE-2026-88771", vul.cve="CVE-2026-76461" and vul.cve="CVE-2026-94127" each returned zero matched assets. That result is reported here as a measurement limitation, not as evidence that those vulnerabilities are absent from the environment. A reachable database is different from a reachable web service. A web flaw usually requires a specific vulnerability to exist, while an unauthenticated data store requires only a connection. The reported outcome in these cases is rarely a single record; it is usually wholesale copying of a collection, often followed by a ransom note left in place of the data. Confirm the bind address and enable authentication, then verify from outside the host that an unauthenticated connection is refused. Restrict network access so that only application hosts can reach the database port. Enable role-based access control and give each application only the privileges it needs. Enable audit logging if the deployment supports it, and monitor for bulk read operations. Verify that backups are current and that a restore has been tested, because the recovery path matters when data is copied or deleted. 1,897,463 counts services matching the MongoDB fingerprint. It cannot report whether authentication is enforced, because that would require

SegurançaInfraDev
Interesse
The Verge

Apple and LG team up on new smart home gear, starting with a lock, doorbell, and thermostat

Apple is collaborating with LG on a new lineup of smart home devices, including a video doorbell, thermostat, indoor camera, and more, according to a report from Bloomberg. The products will reportedly feature LG branding but integrate with the company's rumored smart home hub that's expected to launch during an event on October 13th. Sources tell Bloomberg that the upcoming line of devices also includes a deadbolt lock, outdoor security camera, and a floodlight camera. Several of the devices will reportedly come with support for the smart home protocols Thread and Matter amid a "formal reboot" for Apple's HomeKit platform. T … Read the full story at The Verge.

Mobile
Interesse
+1 fonte
dev.to

The Alphabet Code: What Happens When You Run a Simple Rule on the Letter “a”

Here is a string of letters: gzhlvzggjzyihjgheqvzgzhlvzhlvbjzgyhzizygjzbjzhlvgjzehjdzzgheqv... It looks like a cat walked across a keyboard. It isn’t. It’s the start of a sequence that runs to thousands of characters, and every letter is fixed in advance by one rule applied to the letter “a.” No randomness, no guessing, no training data. Run the same rule again tomorrow, or on another computer, and you get exactly the same string. Figure 1. The sequence for the letter “a” drawn as a path: each letter tells a virtual pen how to turn and move, so a fixed rule produces this shape. That simple question—what happens when one fixed rule is applied to “a” again and again?—led me into years of studying sequences like this one. I want to show you what I’ve found, what I still haven’t figured out, and why I think a curious person might care. The idea in one minute The unusual feature of the Engineering of Alphabets project is that the rule is applied to the alphabet itself. When I say "alphabet" here, I mean the 26 English letters together with their spoken names. A different language, or a different naming convention, would give a different sequence. I wanted to see whether the letters we use for writing, treated as a mathematical system, produce structures that are interesting, unexpected, or perhaps useful. How I did it. I wrote a short computer program that applies the rule and records the output. For the results below, I generated several thousand letters — enough to count blocks up to length 30 and to estimate the growth factor. I used the same program to compute the growth factor for each of the 26 starting letters. The degree-13 equation came from fitting the term lengths to a linear recurrence, then factoring the resulting polynomial. A colleague or reader can rerun the program on the public data; the exact rule itself is withheld for now. What I found Figure 2. Distinct blocks p(k) by block length up to 30, shown on a logarithmic vertical axis. Dashed orange is a li

Geral
Interesse
dev.to

Scanning public Angular apps with axe, and naming the component behind each finding

The plan was to offer people a free accessibility scan of their Angular app. Most real Angular apps sit behind a login, though, and the public ones are often brochure sites with little to test. So I scanned Angular apps that are public and widely used instead, to see what the ecosystem looks like. Two things came out of it. The raw scanner reported on the wrong page three times. And when it was right, it told me where a problem was in the DOM but not which component to fix. I ran axe-core over interactive pages. Three times it returned a list of violations for a page that wasn't the app: What I scanned What axe saw /login on the RealWorld reference app The app is hosted as a single-page app with no server fallback, so the deep link served GitHub Pages' "File not found" page. Eight of the contrast failures I nearly wrote up were GitHub's 404 styling. Deep links into ngx-admin's dashboard They redirect to a theme-picker splash screen. My first pass returned 484 violations, all from that splash screen. I only reached the dashboard after clicking a theme card. RealWorld's live demo (angular.realworld.io) Three issues. The home feed said "Loading articles… No articles are here… yet." The demo's backend has no data, so I had scanned an empty shell. In each case the number looked believable and meant nothing. I caught it by reading the flagged HTML by hand: File not found gives it away. Two smaller things came up too. Two axe builds disagreed about whether one ngx-admin button failed button-name; a stricter manual check said it did. And I discarded a "serious" aria-hidden-focus finding on cdk-focus-trap-anchor, which appears on every Angular app that uses the CDK focus trap. It's a framework pattern rather than an app bug. A scanner tells you where to look. You still have to check what it found. When axe is right, it gives you a CSS selector such as .start-search or a[href$="johndoe"] > img. That locates a node in the DOM. In an Angular app the fix lives in a component, of

Dev
Interesse
Hacker News

Ask HN: Why is Ask HN only showing me 14 posts?

I'd have swear before there were more and even a more button at the bottom Comments URL: https://news.ycombinator.com/item?id=49984484 Points: 10 # Comments: 12

Geral
Interesse
Simon Willison

llm-mistral 0.16

Release: llm-mistral 0.16 Adds support for reasoning models, such as the newly released Mistral Large 4 . Tags: llm , mistral , llm-reasoning

IADev
Interesse