SShortSingh.
Back to feed

Japan Rail Planner Revives Paper Timetables as a Fully Offline Web App

0
·3 views

A developer built TrainJapan Planner, an offline-first progressive web app that recreates Japan's printed railway timetable and the staffed ticket-counter planning experience. The app runs a deterministic routing engine over a curated dataset of eight rail corridors and 37 stations, with no backend and no runtime API calls. It includes JR Pass coverage checks, adjustable transfer-time settings, an interactive paper timetable grid, and a Marey-style train diagram. Built as a Kiroween 2026 hackathon entry, it was developed using Kiro's spec-driven workflow and released as open source under the MIT license.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Converting iPhone HEVC Videos into Telegram Video Avatars with ffmpeg

A developer found that an HEVC (H.265) clip recorded on an iPhone was silently rejected as a Telegram video avatar, since the platform requires H.264 in an MP4 container. The spec calls for an 800x800 square frame, a maximum of 10 seconds, and a file size of 2 MB or less, with audio stripped. The workflow uses ffmpeg's cropdetect to find the content region, then crops, scales, and re-encodes to H.264 at yuv420p, raising the CRF value step by step if the output exceeds the size limit. The author also shares an aiogram 3 bot handler that accepts videos, GIF-style animations, and video documents and runs these commands automatically.

0
ProgrammingDEV Community ·

Browser-based tool generates printable handwriting worksheets with matching preview and PDF

A developer describes CursivePDF, a browser tool for creating printable handwriting practice sheets. The generator lays out pages using the chosen practice mode, paper size, and line size, so the on-screen preview and downloaded PDF stay consistent. Because canvas and PDF coordinate systems differ, vertical positions must be converted when producing the file. The worksheet uses the Playwrite US Trad font, and the interface shows an error if the font or PDF library fails to load. The article recommends testing A4 and US Letter sizes, printing at actual size, and comparing letter shapes with the handwriting style a school uses.

0
ProgrammingDEV Community ·

Idempotency, Outbox và khóa phân tán: ba cơ chế chống trùng giao dịch và mất dữ liệu

Bài viết cảnh báo rằng trong hệ thống phân tán, mạng có thể đứt bất cứ lúc nào, khiến client retry làm trùng giao dịch hoặc database ghi thành công nhưng event không kịp gửi đi. Message queue thường chỉ đảm bảo at-least-once, nên nhà phát triển cần phối hợp ba cơ chế: Idempotency Key, Transactional Outbox và khóa phân tán kèm Fencing Token. Tác giả phân tích hai vấn đề cốt lõi là lỗi cục bộ, khi lời gọi mạng có thể thành công, thất bại hoặc timeout, và ghi kép không nguyên tử giữa database và Kafka. Bài đề xuất đẩy tính nguyên tử xuống tầng database, kèm ví dụ bảng idempotency_keys trên PostgreSQL với câu lệnh INSERT ... ON CONFLICT để chiếm chỗ xử lý an toàn trước các request song song.

0
ProgrammingDEV Community ·

Doraemon Museum sets ticket releases on fixed rule; January closure raises sale-date question

The Fujiko F. Fujio Museum in Kawasaki, known as the Doraemon Museum, sells timed tickets only online under a published rule rather than a fixed date list. Tickets for the 16th to month-end go on sale at 10:00 JST on the 5th, and tickets for the 1st to 15th of the following month on the 20th. A developer's vanilla JavaScript implementation handles calendar dates as strings and release times as instants with a +09:00 offset, and tests the year boundary and the 15th/16th split. Because the museum's calendar shows it closed from 18 to 22 January 2027, the code flags the 20 January release, since the official pages do not say whether sales open on a closed day. The author notes that displayed times vary by time zone, with a New Year batch appearing on a Saturday evening in the Americas.