on-internet

Keeping a Live Stream and Its Game State in Sync

A video feed and a state channel travel over different paths with different buffering. If you render state the instant it arrives, the UI narrates the future: the result appears before the viewer sees it happen. Fixing that is mostly about sequencing, not speed. Two clocks, one round Video is delayed by encoding, CDN and player buffer — typically several seconds. The WebSocket message is delayed by milliseconds. So state must be held back to the stream, not pushed ahead of it. const STREAM_DELAY_MS = () => player.buffered.length ? (player.buffered.end(0) - player.currentTime) * 1000 : 0; funct

We found a bug in our own ring size chart, so we open-sourced the fix

We run a small online jewelry store, Luvrena. Last week we turned our ring size chart into a converter and found a bug that had been sitting on the page for a long time: the whole EU column was wrong. A US 7 was listed as EU 14. It should be EU 54. What went wrong The EU column had been filled in with Japanese sizes. Nobody noticed, because a size chart looks plausible as long as the numbers go up. The four common systems measure different things: System What the number means US / Canada A numbered scale in half steps. US 7 is about 17.3 mm across the inside. UK / Australia Letters, with half

What Jobs Can a Fresher Get After Learning Python? A Practical Guide

Many students learn Python and then ask the same question: "Okay, what job can I actually apply for?" The honest answer is that Python is a tool, not a job title. What you can apply for depends on what you build with it. Here are the most common paths for freshers. Python / Backend Developer You build the server side of websites and apps. Most beginner roles ask for Python basics, OOP, a framework like Django or Flask, and a database such as MySQL or SQLite. What to show: a small project with login, a database and a few pages, uploaded to GitHub. Automation and Testing Roles Companies use Pyth

Tangisan Perempuan Gila

Ironis bukan, bagaimana seorang oerempuan yang menyuarakan kesedihannya, kemarahannya, atau penderitaannya selalu dianggap gila oleh… Continue reading on Medium »

Robot Learning and AI — Ch.01: Machine Learning Fundamentals [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 01 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_01_Machine_Learning_Fundamentals/19_01_Machine_Learning_Fundamentals_KR.md Volume 19 Robot Machine Learning and AI 01. Machine Learning Fundamentals 01.01 ML Problem Taxonomy Supervised Unsupervised RL 기계학습(머신러닝, Machine Learning)은 현대 인공지능(Artificial Intelligence, AI)의 핵심 기반 기술이다. 기존의 소프트웨어가 사람이 직접 규칙을 작성하여 문제를 해결했다면, 기계학습은 데이터를 통해 규칙과 패턴을 스스로 학습한다. 이러한 특성 덕분에 자율주행 로봇, 산업용 로봇, 의료 로봇, 서비스 로봇과 같은 물리 인공지능(Physical AI) 시스템은 복잡하고 변화하는 환경에서도 스스로 판단하고 행동할 수

Robot Learning and AI — Ch.03: Self Supervised Learning [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 03 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_03_Self_Supervised_Learning/19_03_Self_Supervised_Learning_KR.md Volume 19 Robot Machine Learning and AI 03. Self Supervised Learning 03.01 Self Supervised Learning Principles and Pretext Tasks 자기지도학습(SSL, Self-Supervised Learning)은 사람이 직접 정답(Label)을 붙이지 않아도 데이터 자체에서 학습 신호(Supervisory Signal)를 생성하여 의미 있는 표현(Representation)을 학습하는 기계학습(Machine Learning) 방법이다. 최근 인공지능(AI)의 발전을 이끈 핵심 기술 중 하나로 평가되며, 특히 방대한 데이터를 확보할 수 있지만 라벨링(Labeling) 비용이 매우 높은 로보틱스(Robot

Robot Learning and AI — Ch.04: Semi Supervised Learning [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 04 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_04_Semi_Supervised_Learning/19_04_Semi_Supervised_Learning_KR.md Volume 19 Robot Machine Learning and AI 04. Semi Supervised Learning 04.01 Semi Supervised Learning Theory Consistency Pseudo Label 준지도학습(Semi-Supervised Learning)은 지도학습(Supervised Learning)과 자기지도학습(Self-Supervised Learning)의 장점을 결합한 학습 방법이다. 실제 로봇 환경에서는 센서 데이터는 매우 쉽게 수집할 수 있지만 사람이 직접 라벨(Label)을 부여하는 작업은 비용과 시간이 많이 든다. 산업용 검사 로봇은 매일 수백만 장의 영상을 생성하고, 자율주행 로봇은 방대한 주행 데이터를 축적하지만 실제로 라벨이 부여

Robot Learning and AI — Ch.05: Reinforcement Learning [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 05 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_05_Reinforcement_Learning/19_05_Reinforcement_Learning_KR.md Volume 19 Robot Machine Learning and AI 05. Reinforcement Learning 05.01 RL Fundamentals MDP Bellman Policy Value [w/Code] 강화학습(Reinforcement Learning, RL)은 에이전트(Agent)가 환경(Environment)과 지속적으로 상호작용하면서 최적의 행동(Action)을 스스로 학습하는 기계학습(Machine Learning) 방법이다. 지도학습(Supervised Learning)처럼 정답(Label)이 제공되지 않고, 행동의 결과로 얻는 보상(Reward)을 기반으로 시행착오(Trial and Error)를 반복하며 성능을 향상시킨다. 따라서 단순히 현재의 보상을 최대화하는 것

Amortização de empréstimo imobiliário em código: Cálculo exato no sistema francês (Tabela Price)

O cálculo das prestações de um empréstimo imobiliário pelo sistema francês de amortização (conhecido no Brasil como Tabela Price) baseia-se em parcelas periódicas constantes. Embora a prestação total $P$ permaneça fixa ao longo do contrato, a proporção entre juros e amortização do saldo devedor altera-se a cada mês. A fórmula matemática da prestação constante Dado um capital inicial $PV$ (valor do empréstimo), uma taxa de juros periódica $i$ (por mês) e $n$ parcelas mensais, a prestação $P$ é dada por: $$P = PV \cdot \frac{i \cdot (1 + i)^n}{(1 + i)^n - 1}$$ A cada período $k$ ($1 \le k \le n$

Figma Code Layer Animation: Make Captured Hovers, Transitions and Keyframes Play

Originally published on Crafttor. TL;DR: A Figma frame can look exactly like a web page, but it cannot run the page's CSS. Hover states, transitions and keyframe animations need a browser engine. A Figma code layer animation runs that CSS for real. Capture the page with WebCapture to Figma, keep the frame for editing, and put the same page in a code layer when the motion has to play. You import a polished landing page into Figma. The layout, gradients and buttons are right. Then you press present and hover a button. Nothing happens. That is not a bug in your capture. It is the difference betwe

Robot Learning and AI — Ch.06: Imitation Learning [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 06 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_06_Imitation_Learning/19_06_Imitation_Learning_KR.md Volume 19 Robot Machine Learning and AI 06. Imitation Learning 06.01 Imitation Learning Overview BC IRL GAIL 모방 학습(Imitation Learning)은 전문가(Expert)가 수행한 시연(Demonstration)을 관찰하여 행동을 학습하는 기계학습(Machine Learning) 방법이다. 강화 학습(Reinforcement Learning)처럼 수많은 시행착오를 반복하기보다, 전문가의 행동을 직접 학습하여 정책(Policy)을 생성한다. 따라서 위험하거나 비용이 큰 환경에서도 빠르게 학습할 수 있으며, 로봇(Robot), 자율주행(Autonomous Driving), 산업 자동화(Industrial Automatio

Robot Learning and AI — Ch.07: Online Robot Learning [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 07 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_07_Online_Robot_Learning/19_07_Online_Robot_Learning_KR.md Volume 19 Robot Machine Learning and AI 07. Online Robot Learning 07.01 Online Learning Concepts Incremental Adaptation 온라인 학습(Online Learning)은 기존의 오프라인 학습(Offline Learning)과는 근본적으로 다른 학습 패러다임이다. 기존 머신러닝에서는 모든 데이터를 먼저 수집한 후 모델을 한 번 학습시키고, 이후에는 학습된 모델을 그대로 운영하는 방식이 일반적이었다. 하지만 실제 로봇은 끊임없이 변화하는 환경에서 동작하며, 조명, 물체, 사용자, 센서 상태, 기계적 특성, 작업 요구사항 등이 지속적으로 변한다. 온라인 학습은 이러한 변화에 대응하기 위해 로봇이 실제 환경에서 작업을

Robot Learning and AI — Ch.08: Lifelong Learning [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 08 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_08_Lifelong_Learning/19_08_Lifelong_Learning_KR.md Volume 19 Robot Machine Learning and AI 08. Lifelong Learning 08.01 Lifelong Learning Challenges Catastrophic Forgetting 평생 학습( Lifelong Learning )은 진정한 지능형 로봇이 갖추어야 할 가장 중요한 능력 가운데 하나이다. 기존의 기계학습(Machine Learning)은 고정된 데이터셋으로 한 번 학습한 후 배포되는 방식을 가정하지만, 평생 학습은 로봇이 운용되는 전 기간 동안 새로운 경험을 지속적으로 학습하는 것을 목표로 한다. 새로운 환경, 새로운 작업, 인간과의 상호작용, 예상치 못한 사건은 모두 미래 성능을 향상시키기 위한 학습 기회가 된다. 이는 인간이 수십 년 동안 경험을 축적하며 지식을

Robot Learning and AI — Ch.09: Physical AI Applications [KR]

STATERA Library · Series 08 · Volume 19 · Chapter 09 · KR Source: https://github.com/Statera-Library/08_Vol_19_Robot_Learning_and_AI/blob/main/19_09_Physical_AI_Applications/19_09_Physical_AI_Applications_KR.md Volume 19 Robot Machine Learning and AI 09. Physical AI Applications 09.01 Physical AI Application Stack End to End Overview Physical AI는 인공지능, 로보틱스, 센싱, 제어, 시뮬레이션, 클라우드 컴퓨팅, 자율적 의사결정이 하나로 융합되어, 물리적 세계를 인지하고, 추론하고, 상호작용할 수 있는 통합 시스템을 이루는 것을 의미한다. 텍스트, 이미지, 정형 데이터베이스와 같은 디지털 정보를 주로 처리하는 전통적인 AI 응용과 달리, Physical AI는 물리적 실체(embodiment)를 통해 실제 세계 환경에 직접적인 영향을 미친다. Physical AI 시스템은 센서를 사용해 세

APY vs APR en código: Por qué el interés nominal engaña en la rentabilidad real

Al desarrollar aplicaciones financieras o calculadoras de rendimiento, uno de los errores conceptuales más frecuentes es tratar la Tasa Anual Equivalente ($APY$) y el Tipo de Interés Nominal ($APR$) como equivalentes. Si un producto financiero ofrece un $5\%$ nominal con capitalización mensual, la rentabilidad real obtenida al cabo de un año es superior al $5\%$. La relación matemática entre APR y APY Si $r$ representa la tasa nominal anual ($APR$) y $m$ el número de períodos de capitalización al año (por ejemplo, $m = 12$ para mensual, $m = 365$ para diario), la tasa efectiva anual ($APY$) se

Zinseszins-Berechnung im Code: Warum die Monats-Schleife Fließkomma-Fehler akkumuliert

Wenn man das Wachstum eines Depots über Jahre berechnet, greifen viele Entwickler zu einer einfachen Monats-Schleife: In jedem Schritt wird das Kapital um $(1 + r/12)$ multipliziert. Bei langen Laufzeiten oder hochfrequenten Zinsanpassungen führt diese iterative Multiplikation jedoch zu akkumulierten Rundungsfehlern in der IEEE-754-Fließkomma-Arithmetik. Die mathematische geschlossene Formel Die exakte geschlossene Formel für das Endkapital $K_t$ nach $t$ Jahren bei einer jährlichen Verzinsung $r$ und $m$ Zinsperioden pro Jahr lautet: $$K_t = K_0 \cdot \left(1 + rac{r}{m} ight)^{m \cdot t}$$ F

Mi única relación

— Eres una buena persona. ¿Por qué crees lo contrario? Continue reading on Medium »

"Astro trailing slash: three places that must agree, and how to check them"

The trailing slash is not cosmetic. It decides which URL your host answers without a redirect, and everything else you write — internal links, canonical, sitemap — has to agree with it. With build.format: 'directory', Astro emits page/index.html. A static host then serves /page/ directly and sends /page through a 308 to get there. Measured on a site using trailingSlash: 'always' plus the directory format: curl -o /dev/null -w "%{http_code} %{redirect_url}" https://<site>/about 308 https://<site>/about/ One extra hop per internal link, invisible in the browser, paid by every crawler and every f

"wrangler pages deploy replaces your deployment, not your site"

Every "my deploy succeeded but the site didn't change" thread has the same root: people expect wrangler pages deploy to update a site. It updates a deployment. npx wrangler pages deploy dist --branch main ✨ Uploaded 44 files ✨ https://<hash>.project.pages.dev That hash hostname is the thing you just created. Your production hostname follows it only if the deploy went to the production branch. And the directory you named is the deployment — there is no merge with what was there before. Symmetric consequences A file you added is served. A file you removed is gone from the live site, because it i

Older stories