Morning.dev
My Feed Popular
Login
DEV Community • 2026-04-18 13:42

MCQs on Array Methods

1. What is the output? [1, 2, 3].forEach(num => num * 2); Options: A) [2, 4, 6] B) undefined C) [1, 2, 3] D) Error ✅ Answer: B) undefined Explanation: forEach() does NOT return anything → returns undefined 2. What is the output? let result = [1, 2, 3].map(num => { if (num > 1) return num * 2; }); console.log(result); Options: A) [2, 4, 6] B) [undefined, 4, 6] C) ...

0 0
2m read
Building a Multimodal Agent with the ADK, AWS Fargate, and Gemini Flash Live 3.1
DEV Community • 2026-04-18 13:41

Building a Multimodal Agent with the ADK, AWS Fargate, and Gemini Flash Live 3.1

Leveraging the Google Agent Development Kit (ADK) and the underlying Gemini LLM to build Agentic apps using the Gemini Live API with the Python programming language deployed to Amazon Fargate. Aren’t There a Billion Python ADK Demos? Yes there are. Python has traditionally been the main coding language for ML and AI tools. The goal of this article is to provide a minimal viable basi...

0 0
12m read
DEV Community • 2026-04-18 13:37

Building in public — week 5

Another week, mixed bag. The main blocker is still HN karma. Sitting at 4, need 10+ for Show HN. Been leaving technical comments every day — libvips internals, AVIF encoder tradeoffs, Rust FFI stuff — but it just doesn't move. Not sure if it's timing, thread selection, or just how HN works for new accounts. Either way, Show HN moves to week 6. What did happen: added Convertify to Wellfound and S...

0 0
1m read
DEV Community • 2026-04-18 13:35

Cloudflare D1 + Drizzle ORM: SQLite at the Edge Without the Pain

SQLite at the edge sounds like a joke until you see the query latency numbers. Cloudflare D1 puts a SQLite database inside your Worker — queries that used to cross a continent now resolve in single-digit milliseconds. But D1's raw API is verbose. Drizzle ORM fixes that with a thin, type-safe layer that generates correct SQL without the overhead of Prisma's query engine. Here's how to wire them t...

0 0
5m read
DEV Community • 2026-04-18 13:35

Designing Secure Authentication with Access & Refresh Tokens

Table of Contents Why Tokens Exist Access Token Refresh Token Authentication Flow Why Not a Single Token Security Best Practices Token Storage Options Logout and Revocation Common Backend Mistakes JWT vs Session-Based Authentication When to Use Access & Refresh Tokens Reference Links Why Tokens Exist HTTP is stateless. Tokens represent user identity across request...

0 0
2m read
DEV Community • 2026-04-18 13:35

LangGraph for Stateful AI Agents: When Your Claude App Needs a State Machine

Most Claude integrations follow the same pattern: user sends message, LLM responds, done. That works until your agent needs to: Pause mid-task and wait for human approval Branch into parallel sub-tasks Recover from a failed tool call without restarting Remember what it decided 12 steps ago This is where LangGraph comes in. It's a state machine framework for LLM agents — and it solves a genuine...

0 0
4m read
DEV Community • 2026-04-18 13:34

Functions: Stop Writing the Same Code Twice

You have written the same print(f"Hello, {name}!") line three times in your code already. Not a big deal with one line. But what happens when the thing you keep repeating is 15 lines long? What happens when you find a bug in it and have to fix it in six different places? What happens when you forget to fix one of them? This is not a hypothetical. This is what happens in real codebases when peopl...

0 0
6m read
DEV Community • 2026-04-18 13:29

I Automated 90% of The Ethers.js v5 v6 Migration using Codemods and AI

Ethers v6 dropped a breaking change on every project that touched BigNumber, utils, or providers — which is basically every DeFi frontend ever written. The migration guide listed over 40 breaking changes. Some were simple renames. Some required understanding whether a variable was a BigNumber before deciding what to do with it. Doing this by hand across 31 files is exactly the kind of work that ma...

0 0
8m read
Hacker News: Front Page • 2026-04-18 13:29

Migrating from DigitalOcean to Hetzner: From $1,432 to $233 With Zero Downtime

Article URL: https://isayeter.com/posts/digitalocean-to-hetzner-migration/ Comments URL: https://news.ycombinator.com/item?id=47815774 Points: 21 # Comments: 7

0 0
1m read
DEV Community • 2026-04-18 13:27

Quantum Computers Are Coming for Web3 Identity

By Malak Gandhi | BTech CS (AI & ML), ATLAS SkillTech University If you’ve spent any time in the tech world lately, you’ve probably heard two major buzzwords: Decentralized Identity (DID) and Quantum Computing. On one hand, Web3 enthusiasts are pushing for DID so we can finally own our digital identities instead of trusting centralized servers (which seem to get hacked every other week). On ...

0 0
3m read
DEV Community • 2026-04-18 13:25

Should Hand-Written Code Be Considered Art Now?

A few years ago, "writing code" meant sitting down and writing code with your own hands, kicking in a concentrated thinking process, being in a "flow". Today, more and more of it is generated, scaffolded, auto-completed, or delegated wholesale to AI. The act of typing out a function by hand has shifted pretty drastically from the default way of building software to delegating most of the code writ...

0 0
5m read
深度解构纽约时报视频流架构:如何构建基于 HLS 与 FFmpeg 的高性能提取引擎
DEV Community • 2026-04-18 13:24

深度解构纽约时报视频流架构:如何构建基于 HLS 与 FFmpeg 的高性能提取引擎

引言 作为开发者,我们对大型平台如何在全球范围内管理和分发多媒体数据总是充满好奇。《纽约时报》(The New York Times)作为全球顶尖的新闻机构,其视频分发架构并非简单的文件托管,而是一套复杂的、基于 HLS (HTTP Live Streaming) 的动态自适应流媒体系统。 对于许多研究人员和开发者来说,存档 NYTimes 的高质量新闻视频具有极高的技术参考价值。然而,随着 DRM(数字版权管理)的加固和流媒体协议的碎片化,高效提取这些资源的门槛越来越高。为了应对这一挑战,我开发了 NYTimes 视频下载器。本文将揭秘其背后的工程实现:从 HLS 协议逆向、动态 Token 校验循环到服务端的无损混流(Lossless Muxing)。 1. 媒体分发协议的演进:从 MP4 到 HLS 早期的 Web 视频分发非常直接:通过...

0 0
1m read
เจาะลึกสถาปัตยกรรม Media Streaming ของ LinkedIn: การสร้าง Engine สกัดวิดีโอประสิทธิภาพสูงด้วย HLS และ FFmpeg
DEV Community • 2026-04-18 13:24

เจาะลึกสถาปัตยกรรม Media Streaming ของ LinkedIn: การสร้าง Engine สกัดวิดีโอประสิทธิภาพสูงด้วย HLS และ FFmpeg

บทนำ ในฐานะนักพัฒนา เรามักจะหลงใหลในวิธีที่แพลตฟอร์มระดับโลกจัดการกับการส่งข้อมูลสื่อในวงกว้าง LinkedIn ซึ่งเป็นเครือข่ายโซเชียลระดับมืออาชีพที่ใหญ่ที่สุดในโลก มีการวิวัฒนาการการส่งเนื้อหาจากลิงก์ MP4 แบบคงที่ธรรมดา ไปสู่สถาปัตยกรรม Dynamic Adaptive Streaming (DASH/HLS) ที่ซับซ้อน สำหรับผู้ใช้และนักสร้างคอนเทนต์หลายคน การเก็บวิดีโอคุณภาพสูงจาก LinkedIn เป็นสิ่งจำเป็น แต่อุปสรรคทางเทคนิค...

0 0
2m read
Giải mã kiến trúc Media Streaming của LinkedIn: Xây dựng Engine trích xuất video hiệu suất cao với HLS và FFmpeg
DEV Community • 2026-04-18 13:24

Giải mã kiến trúc Media Streaming của LinkedIn: Xây dựng Engine trích xuất video hiệu suất cao với HLS và FFmpeg

Giới thiệu Là các nhà phát triển, chúng ta thường bị mê hoặc bởi cách các nền tảng quy mô lớn quản lý việc phân phối dữ liệu truyền thông toàn cầu. LinkedIn, mạng xã hội nghề nghiệp lớn nhất thế giới, là một trường hợp nghiên cứu điển hình. Việc phân phối nội dung của họ đã tiến hóa từ các liên kết MP4 tĩnh đơn giản sang kiến trúc Dynamic Adaptive Streaming (DASH/HLS) phức tạp. Đối với ...

0 0
6m read
تفكيك بنية بث الفيديو في LinkedIn: بناء محرك استخراج عالي الأداء باستخدام HLS و FFmpeg
DEV Community • 2026-04-18 13:24

تفكيك بنية بث الفيديو في LinkedIn: بناء محرك استخراج عالي الأداء باستخدام HLS و FFmpeg

مقدمة كمطورين، غالباً ما ننبهر بكيفية إدارة المنصات الضخمة لتوصيل الوسائط المتعددة على نطاق عالمي. تعد LinkedIn، أكبر شبكة مهنية في العالم، نموذجاً مثالياً للدراسة؛ حيث تطورت طريقة توزيع المحتوى فيها من روابط MP4 ثابتة وبسيطة إلى بنية HLS (HTTP Live Streaming) المعقدة والديناميكية. بالنسبة للعديد من المطورين وصناع المحتوى، يعد أرشفة موارد الفيديو من LinkedIn ضرورة تقنية، لكن الحواجز الت...

0 0
4m read
DEV Community • 2026-04-18 13:21

Crossposting without the copy-paste: a GitHub Action from Hugo to dev.to

My blog runs on Hugo. I also recently discovered I can cross-post to dev.to, because that's where a lot of the conversation actually happens. For a while, my workflow was the obvious one: write the post, publish it here, open dev.to, paste it in, fix the frontmatter, fix the links, hit publish. It worked. I also stopped doing it after the second post. Copy-paste friction is the kind of chore tha...

0 0
5m read
Lobsters • 2026-04-18 13:19

Running a Minecraft Server and more on a 1960s UNIVAC Computer

Comments

0 0
1m read
DEV Community • 2026-04-18 13:18

Retrofitting Privacy: Adding Midnight to an Existing dApp Step by Step

Retrofitting Privacy: Adding Midnight to an Existing dApp Step by Step Last year I inherited a voting dApp that had been running in production for eight months. It worked fine — users could submit votes, results were tallied on-chain, everything was auditable. The problem was that everything was auditable. Voter addresses, their choices, the exact timestamp of each vote — all of it sitt...

0 0
15m read
DEV Community • 2026-04-18 13:15

Hack the Learning Curve - Part 1: What Even Is Cybersecurity? (And Why You Should Care)

Author: Trix Cyrus 🔹 Try My Waymap Pentesting Tool 🔹 Follow TrixSec GitHub 🔹 Join TrixSec Telegram So... What Even Is Cybersecurity? Let me guess. You have heard the word "cybersecurity" thrown around a hundred times. Maybe in the news after some company got hacked. Maybe your friend mentioned it while trying to sound smart. Maybe you just think hackers are cool (they are, by the wa...

0 0
9m read
DEV Community • 2026-04-18 13:14

Pinning GitHub Actions to a tag is mass negligence and we all just watched it happen

Many of your CI pipelines can easily be manipulated to execute any code with a single force-push. And you likely unwittingly enabled this yourself. I certainly did. What Actually Happened In March 2026, LiteLLM was breached using a poisoned Trivy GitHub Action. The threat actor didn't publish a new, obviously-malicious action under a typo-squatted name. They force-pushed malicious cod...

0 0
3m read
Previous Next

Showing page 232 of 1286

Previous 232 Next