SShortSingh.
Back to feed

Developer Builds Linux Desktop Pet 'Mochi' While Wrestling With Wayland and GTK Limits

0
·67 views

A developer has created Mochi, a small animated desktop companion for Linux built using Python, GTK, Cairo, and hand-drawn pixel art. Mochi reacts to user behaviour — sitting down when the user types, falling asleep during idle periods, and responding physically when dragged across the screen. Inspired by Codex Pets, the project aimed to make a character feel like a natural part of the desktop rather than a conventional application. Building Mochi proved technically challenging because Wayland deliberately restricts global window positioning for security reasons, complicating the free movement a desktop pet requires. The developer describes the process as an ongoing negotiation between desired character behaviour, GTK's toolkit constraints, and what GNOME and Wayland actually permit.

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 ·

Stale Catalog Data Can Make Product Search Evaluations Misleading, Argues Engineer

An engineering write-up argues that e-commerce search evaluation sets must account for changing catalog state, since a static set can produce flattering scores while shoppers encounter outdated colors or prices. The author recommends versioned, time-aware evaluation events that record the query, catalog snapshot, market, timestamp, and graded judgments, so failures can be attributed correctly. Retrieval is evaluated across four slices: identifiers, natural-language needs, policy-sensitive constraints like regional availability, and freshness probes for changed or retired products. The proposed architecture pairs a canonical product store and outbox events with vector and lexical indexes, plus a final availability filter checked against the revision in each candidate. Deterministic chunk keys and uniqueness constraints are used so duplicate or out-of-order events do not corrupt the index.

0
ProgrammingDEV Community ·

Handheld or Fixed-Mount Barcode Readers: How to Choose for Your Production Line

The right industrial barcode reader depends less on device quality than on how parts move and who triggers the scan. Handheld readers suit operator-driven tasks such as low-volume assembly, rework, inbound checks, field service and asset audits. Fixed-mount readers fit automated lines where parts pass a sensor on a conveyor or robot, supporting in-line traceability, high-speed sorting and continuous operation. Buyers should also weigh illumination for direct part marks, ingress protection, clear scan feedback, PLC protocol support and the output format required by their MES. Many plants combine a fixed reader on the line with a handheld for exceptions.

0
ProgrammingDEV Community ·

Why Object Storage Beats Relational Databases for Retaining AI-Generated Images

Object storage is presented as a better home for AI-generated images, since image bytes follow a different lifecycle than their surrounding metadata. The article suggests relational databases should track ownership, prompts, status, and deletion deadlines, while object storage holds the actual blobs. It recommends an explicit, testable retention deadline, using a 30-day rule only as an example policy rather than a universal default. Deletion is broken into four instrumented transitions so operators can detect when expired artifacts fail to be removed. The author also notes that this split adds complexity, so a simple relational binary column may suffice for small internal tools.

0
ProgrammingDEV Community ·

How Weight Trend Lines Are Calculated: Moving Averages, EMA and Missing Data

A developer explains that weight trend lines smooth noisy daily scale readings, with users asking whether the figure is a 10-day or 3-week average. The article compares a simple moving average, an exponential moving average popularized by The Hacker's Diet, and Holt double exponential smoothing. It walks through each method's tradeoffs, including how simple averages react twice to one unusual weigh-in and how EMA lags during real change. The author also presents a dependency-free JavaScript module that handles missing days, units, time zones and rounding, tested against synthetic data.