SShortSingh.
Back to feed

178 song pages returned 404 after tracks left a chart; a flat index fixed it

0
·2 views

A Chinese music chart archive site found that song pages linked from its board history returned 404 errors once tracks dropped off the charts, even though the songs were real. Out of 1,653 linked rows, 979 led to dead pages, because the site only kept a one-week window of rank data. Two early fixes, storing per-period summaries and storing the full board window, still missed songs that had fallen out earlier. The site then adopted a flat index holding one row per song key that records when each song was last seen and its best rank. The index now covers 4,628 song keys across 51 snapshots.

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 ·

Why a million-IP residential proxy pool may offer only a few usable exits

A large advertised residential pool size usually counts distinct addresses seen over a month, not exits available at a given moment. Residential exits rely on participating devices and home connections, which can go offline, pause sharing, or switch networks. Location and network filters shrink the eligible set further, so a big global pool may hold only a handful of matches in a specific city and network. Sticky sessions keep an exit for related steps, but their real usefulness depends on duration, inactivity rules, and how disconnects are handled. The article recommends testing under the actual country, city, and network requirements over realistic time spans, keeping browser inputs consistent, and measuring the number of exits that actually complete the task.

0
ProgrammingDEV Community ·

Tutorial shows how to build a Laravel hosting homepage with plans and billing snapshot

A guide published on DEV Community walks through building a homepage for a small hosting company using Laravel. Plans are stored in a database table rather than hard-coded, so price or plan changes don't require editing HTML. A monthly/yearly price toggle works client-side without a page reload, and a read-only billing panel lets signed-in customers view invoices and payment status. The author recommends storing monthly and yearly prices as separate columns and keeping plan card rows consistent across all plans. Payment processing is deliberately left out of the build and is said to connect at a later stage.

0
ProgrammingDEV Community ·

Why a HashSet Loses an Object After One Of Its Fields Changes

A Java example stores a Point in a HashSet, then changes its x field after insertion. Afterward, contains() and remove() both fail, even though the object is still physically inside the set. The cause is that HashMap picks a bucket from the hashCode at insertion time and does not re-bucket when the field changes, so lookups search the wrong bucket. As a result, a new Point with equal values can be added as a duplicate. The article notes that the Set contract leaves this behavior unspecified, and that the observed results come from running the code on OpenJDK 21.

0
ProgrammingDEV Community ·

Essay Argues AI's Real Divide Is Between People Who Keep Judgment and Those Who Outsource It

A DEV Community essay contends that as AI makes fluent language nearly free, the key split is no longer human versus machine but between people who keep forming their own judgments and those who merely pick from AI-generated options. The author notes that workers increasingly paste AI drafts into documents or ask models for three options and choose one, offloading not just wording but the reasoning behind it. It distinguishes functional use, where people still make the final call, from constitutive substitution, where no independent first judgment survives. The piece argues that outsourcing judgment erodes agency over time, and that the difference often lies in whether people preserve the friction of real experience and consequences.