今日已更新 347 条资讯 | 累计 25427 条内容
关于我们

开发者

编程技术、框架工具、最佳实践

7083
篇文章

共 7083 篇 · 第 174/355 页

CSS-Tricks

The Shifting Line Between CSS States and JavaScript Events

CSS has always had pseudo-classes that style things when baed on user interactions. Recent features, however, are blurring the line between what CSS "listens" for and how they are alternatives to what Javascript typically listens for. The Shifting Line Between CSS States and JavaScript Events originally handwritten and published with love on CSS-Tricks . You should really get the newsletter as well.

Daniel Schwarz 2026-06-29 21:03 👁 10 查看原文 →
Dev.to

Cómo solucionar `docker run` con error `Exited (1)` en Raspberry Pi

Cómo solucionar docker run con error Exited (1) en Raspberry Pi ¿Por qué ocurre este error? El código de salida 1 indica que el proceso principal del contenedor terminó con un error genérico. En Raspberry Pi, los casos más comunes son: Arquitectura incompatible : La imagen se construyó para amd64 pero se ejecuta en ARM ( armv7l o aarch64 ). Falta de binarios compatibles : El ENTRYPOINT o CMD del contenedor no existe o no es ejecutable en ARM. Problemas de permisos o dependencias faltantes (como librerías .so específicas de ARM). Uso de flags inválidos en comandos : En tu caso, --net = host tiene espacios incorrectos ( --net = host → --net host ). 🔍 Nota crítica : El error no es del entorno Docker en sí (ya que funciona en la VM), sino de la incompatibilidad arquitectónica o de dependencias entre la imagen y el hardware físico. Pasos para solucionarlo 1. Verifica la arquitectura de tu Raspberry Pi uname -m # Salida esperada: armv7l (Raspberry Pi 3/4 32-bit) o aarch64 (Raspberry Pi 4/5 64-bit) 2. Verifica la arquitectura de tu imagen docker inspect myimage --format '{{.Architecture}}' # Si muestra "amd64" y tu Pi es ARM, la imagen es incompatible. 3. Corrige el comando (¡error crítico en la sintaxis!) Tu comando actual: docker run --net = host -d -t myimage # ❌ ERROR: espacios alrededor del "=" en "--net = host" ✅ Comando corregido : docker run --net host -d -t myimage # O mejor aún (para depurar): docker run --net host -it --rm myimage ⚠️ --net = host es inválido. Docker interpreta = como parte del valor del flag, causando error de parsing y terminación inmediata. 4. Ejecuta en primer plano para ver el error real docker run --net host -it --rm myimage Esto mostrará el stack trace o mensaje de error que te dirá por qué falla (ej: exec format error , segmentation fault , etc.). 5. Si la imagen es incompatible con ARM: reconstrúyela para Raspberry Pi Opción A: Usa buildx para multi-arquitectura # Crea un builder con soporte multi-arch docker buildx create --use # Constr

Erick Eduardo Ramos 2026-06-29 21:01 👁 2 查看原文 →
Reddit r/programming

Platforms: Build Abstractions, not Illusions • Gregor Hohpe

Let’s be honest, the tech we use today is amazing, but it can also be complex. It’s only natural that teams want to build platforms that hide this complexity to improve productivity, avoid mistakes, and reduce cognitive load. But they may be misled to believe that the more complexity they hide, the better their platform is. Instead, they end up creating dangerous illusions! This talk reflects on two decades of building complex distributed systems, highlighting where abstractions helped and where illusions led to major disappointments. submitted by /u/goto-con [link] [留言]

/u/goto-con 2026-06-29 20:07 👁 5 查看原文 →