AI 资讯
Building a Real-Time World Cup 2026 Bracket Predictor with Vanilla JS and GitHub Actions
Introduction With the World Cup 2026 group stage reaching its climax, football fans worldwide are speculating about who will make it to the finals. To make this experience interactive, I built a fully dynamic World Cup 2026 Bracket Simulator. Instead of just letting users click and choose winners, this app dynamically calculates ELO win probabilities and probabilistically generates realistic match scores (including extra time and penalties) based on team ratings. It also syncs with live match data in real-time. Live URL: https://worldcup-predict2026.github.io/champion/ Tech Stack: Vanilla JS, CSS3 (3D parallax), GitHub Actions, Python, football-data.org API Core Features & Technical Implementation ELO-Based Win Probability & Score Simulation Each team in the database is assigned an ELO-based strength rating. When a user runs the AI auto-prediction, the script calculates win probability and generates a realistic scoreline. Here is the goal roll algorithm (Poisson-like simulation) implemented in Vanilla JS: javascript function generateMatchScore(team1, team2, winner) { if (team1 === "TBD" || team2 === "TBD" || !winner) return null; const s1 = teamStrengths[team1] || 70; const s2 = teamStrengths[team2] || 70; const winnerIsTeam1 = (winner === team1); const strengthDiff = Math.abs(s1 - s2); const baseGoalExpected = 1.1; const bonusGoal = Math.min(1.8, strengthDiff / 12.0); // Goal weight based on ELO difference const rollGoals = (lambda) => { let L = Math.exp(-lambda); let k = 0; let p = 1.0; do { k++; p *= Math.random(); } while (p > L && k < 10); return k - 1; }; let gWin = 0; let gLose = 0; const r = Math.random(); if (r < 0.75) { // Regular time win (90 mins) gLose = rollGoals(baseGoalExpected); gWin = gLose + 1 + rollGoals(0.7 + bonusGoal); return winnerIsTeam1 ? ${gWin} - ${gLose} : ${gLose} - ${gWin} ; } else if (r < 0.92) { // Extra time win (AET) const normalGoals = rollGoals(baseGoalExpected); gLose = normalGoals; gWin = normalGoals + 1; return winnerIsTeam1 ?
AI 资讯
A24 Knows You’re Mad About the Google AI Collab
Indie movie fans are upset about Google DeepMind’s $75 million investment in the studio, which comes as AI companies are deepening their influence in Hollywood.
创业投融资
New website names and shames companies that still don’t offer passkeys to users
According to a new site, 24% of the most popular websites in the world don't offer support for passkeys, which are considered the most secure way to log in to apps and services.
工具
One-two punch delivered in global operation disrupts cybercrime "assembly line"
"Operation Endgame" simultaneously disrupts two widely used crime tools.
AI 资讯
I Built a Messenger That Works Without the Internet — And It Changed How I Think About Privacy
A quiet experiment in Bluetooth, offline communication, and why we gave up too much when we handed our conversations to the cloud. The last time I was truly unreachable, I was in a place with no cell signal and no Wi-Fi. And I realized something strange: I had no way to send a message to the person sitting three feet away from me — because every app on my phone needed the internet to do it. That felt wrong. We've built the most sophisticated communication technology in human history, and somehow it all routes through a handful of servers in Northern Virginia before reaching someone in the same room. So I built Bluetoosh. The Premise: What If the Network Was Just… You and Me? Bluetoosh is a peer-to-peer messenger that runs entirely over Bluetooth. No internet. No servers. No accounts. No cloud storage. Just two devices, talking to each other the way devices were always capable of doing — directly. You open the app. You see who's nearby. You start a conversation. That's it. No phone number required. No email verification. No terms of service asking you to agree that your metadata might be used for advertising. The only network involved is the six feet of air between you and the other person. Why Bluetooth? Bluetooth is one of the most underrated communication protocols we carry around every day. Your phone already has it. Your laptop has it. Most people use it for headphones and nothing else. But Bluetooth is capable of much more. It can discover nearby devices, establish encrypted connections, and transfer data — all without touching the internet. The range is roughly 10–30 meters in open space. That covers a room, a floor, a campsite. Bluetoosh uses both BLE (Bluetooth Low Energy) and Classic Bluetooth, plus Google Nearby Connections for mesh-style discovery. In practice, this means you can find people around you, chat, share files, and even make voice calls — all completely offline. What It Actually Does Here's what surprised me most while building this: offline co
开源项目
Fixing RPM Database Desynchronization on RHEL
Recently, we encountered a case on a RHEL 9 machine where an RPM query did not show any information about installed package even though the package files were present in the filesystem. Although RPM reported that the package was not installed, I was still able to run tcpdumpcommand and use it without any issues. The binary was present there in the filesystem and I was able to run it successfully. Fixing RPM Database Desynchronization on RHEL - bidhankhatri.com.np Recently, we encountered a case on a RHEL 9 machine where an RPM query did not show any information about installed package even though the package files were present in the filesystem. bidhankhatri.com.np
AI 资讯
A new paper argues Microsoft exaggerated its quantum claims a year ago
A critique published in Nature Wednesday calls the basic technology behind Microsoft's "breakthrough" quantum computing chip the Majorana 1 into question. Microsoft unveiled the chip in February 2025 and said it featured a brand-new technology known as a topological qubit. Topological qubits, they said, would be the "building blocks" for their future quantum computer. Microsoft […]
科技前沿
Underpromise, overdeliver? Hands-on with the $24,950 Slate auto.
It has 205 miles of bare-bones range.
AI 资讯
Disney agreed to $50M settlement over claims it made live-TV streaming expensive
Lawsuit alleged Disney inflated market prices by making carriers include ESPN.
科技前沿
The Best Fake Christmas Trees on the Market Are 50% Off for Prime Day (2026)
Save big during Prime Day on the best fake Christmas trees you can buy if you’re willing to stash them for six months.
AI 资讯
Companies are scrambling to stop employees from maxing out AI budgets with small tasks
The tokenmaxxing era was brief. We now appear to be entering the era of token rationing.
AI 资讯
Experimental wine bottle tracks oxygen moving through the cork
The small bit of air in the bottle sees oxygen and other chemicals move in and out.
AI 资讯
Best Prime Day Deals I've Found on Window and Portable Air Conditioners (2026)
Window ACs and portable air conditioners are on great Prime Day deals. Get some, uh, cool prices.
AI 资讯
Congresswoman denies staff used AI to write defense funding amendment
Rep. Anna Paulina Luna (R-FL) says her staff used AI for "spellcheck" in an amendment summary for a major defense bill, but denies it was used for the bill text itself and says "NO Legislation is ever drafted with AI." Luna issued the response after accounts on X began sharing screenshots of an amendment summary […]
产品设计
Here’s why Slate changed the battery in its cheap EV truck
While there was probably a moment when Slate’s leadership had to green-light the switch from one battery type to another, the momentum toward that decision had been building for years.
开发者
Every Time Norway Scores at the World Cup the City of Bergen Trembles
This curious phenomenon was documented by the seismometer at the University of Bergen, which recorded slight vibrations whenever the national team scored a goal.
AI 资讯
You don't need NextJS: here's why
This is the public, sanitized version of an internal proposal I wrote to move our production app off Next.js. Next.js is the default answer to "I want to build a React app." It's a great framework. But default and necessary aren't the same word. The gap between them quietly cost us speed, debuggability, and a surprising amount of cross-team friction. We were building an authenticated, data-heavy product: dashboards, filters, charts. Almost every screen lived behind a login and updated in response to clicks. For that shape of app, server-side rendering wasn't buying us much, and it was charging us a lot. First, the only question that matters The right architecture depends on what you're building. Content-first: Marketing sites, blogs, storefronts, docs. Mostly public, SEO matters, lots of static content. SSR/SSG is a genuinely great fit. Use Next.js. Seriously. Application-first: Internal tools, dashboards, admin panels, SaaS consoles. Behind auth, highly interactive, bottlenecked by your API and DB — not by React rendering. Put an application-first product on a content-first framework and you pay for machinery you never use. That was us. What SSR actually cost us Production debugging got harder Server-rendered errors don't map cleanly to the components you wrote, so root-causing took longer every single time. Client-side, the error happens in the browser with a stack trace that points at your component. Boring and fast to fix. Server components fought our tests You can't cleanly unit test a server component that renders other server components. Tools like React Testing Library expect renderable elements, not the serialized output a server component produces. We ended up making design choices purely to stay testable. Tail wagging the dog. Authentication became a distributed-systems problem This was a big one. If you gate protected pages on the server, the server must read and validate the token on every request, then propagate auth state through hydration. That singl
AI 资讯
I Met With China’s Top AI Experts. They’re Freaking Out, Too
The AI arms race between China and the US has researchers on both sides worried about a “Chernobyl moment.”
AI 资讯
GTA VI is a worrying sign for the future of physical games
Rockstar Games has finally given Grand Theft Auto VI a price ahead of the game's November 19th launch. But while announcing that the game would cost $79.99, Rockstar also confirmed that the physical versions of GTA VI won't include a disc, and instead will only contain a download code inside the box. Not only is […]
AI 资讯
Blop
Describe your app and Blop tests it and repairs broken tests Discussion | Link