SShortSingh.
Back to feed

Developer Builds JavaScript Puppy Growth Predictor Using Breed-Based Maturity Coefficients

0
·16 views

A DEV Community post describes how to build a puppy weight predictor that accounts for different breeds reaching adult size at different rates. The author argues that simple linear regression is inadequate and proposes a category-based model that assigns each size class its own maturity age. The approach adapts the common veterinary estimate of weight divided by age in weeks, multiplied by 52, and includes a damping factor for the final stage of growth. The article notes that predictions are most reliable between 12 and 25 weeks and that large-breed growth plates can remain open past week 70. It includes a TypeScript/JavaScript code example and links to a production version of the tool.

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 ·

Founder's AI job agents tackle employer forms, not just resume writing

A master's graduate who received no replies after hundreds of applications built Hirescoot, a tool using AI agents to apply to jobs on employers' official websites. The founder found that tailoring resumes was manageable, but filling out the varied, custom application forms and sign-up steps proved the harder engineering challenge. Each application is written from the applicant's real experience, and it is only counted once the employer's own site confirms receipt. Every submission is also screen-recorded so the applicant can review exactly what was sent. The service currently reads over 100,000 open jobs daily and is limited to US positions.

0
ProgrammingDEV Community ·

Music catalogue site rebuilt after September crash wiped out its database

A music catalogue site went offline in September when its database stopped responding, and the old server's data could not be recovered. Restarting services offered only brief relief, and the site had no logging of its own, which made diagnosis harder. The root cause was a query that randomly sorted an entire table of around 400,000 rows for every song page view, overwhelming the server. The rebuild fixed the query, added database limits on connections and statement runtime, and kept the existing URLs so search engine rankings were preserved. Caching was added only after the underlying query was repaired.

0
ProgrammingDEV Community ·

Thick-Film Heater Design: Balancing Power Density, Control and Reliability

Thick-film heaters print a resistive circuit onto a conductive substrate such as stainless steel or ceramic, allowing a thinner, lower-mass heat source than bulky wire-wound designs. Engineers in appliances, laboratory instruments, and medical equipment value the controllable, repeatable heat flux this geometry provides more than raw heating speed. Sizing starts from the energy needed to heat the load, using mass flow or total mass, specific heat, required temperature rise, and thermal efficiency, with heat loss and control margin added afterward. Reliability depends heavily on power density, since concentrated watts can cause hot spots, coating degradation, or scale buildup, so trace layout must follow the thermal path. Closed-loop control with appropriately placed sensors and layered protection, including an independent over-temperature cutoff, is recommended, and the assembled system should be qualified under real operating conditions rather than tested as a bare heater.

0
ProgrammingDEV Community ·

Linux Time Machine Runs Early Linux Kernels in the Browser via x86 Emulation

A Linux professional with over 15 years of experience built Linux Time Machine, an open-source project that lets visitors explore Linux history from its earliest releases to today. The site aims for interactive use, running historical x86 guest environments where possible and offering educational recreations for later milestones. Linux 0.01, released by Linus Torvalds in September 1991, targeted Intel 386 hardware and lacked the features of a modern distribution. The project uses the v86 open-source x86 emulator, which runs PC software in the browser through WebAssembly. Booting early kernels in the browser presents challenges beyond those of running them in QEMU.