Urgent.News

What's breaking now, across thousands of outlets.

Tech

I published 109 Chinese surnames as open data — here are the awkward parts

Every few months someone asks me for a "list of Chinese surnames". The answer is always more annoying than it should be. The lists that exist fall into three camps. The classic Hundred Family Surnames ordering — 赵钱孙李 — is a Song dynasty poem, not a frequency table, so sorting by it means nothing. Scraped CSVs have thousands of rows, no tone marks, and 欧阳 split into two separate characters…

In an effort to standardize Chinese surname data, an individual has released a dataset containing 109 surnames, along with 13 fields of information for each record. The data is available in both JSON and CSV formats, both licensed under CC BY 4.0, allowing for free use, modification, and redistribution with proper attribution. The dataset includes information such as the surname, pinyin, era, ancestor, origin, notable figures, commandery and hall names, and a rank.

The dataset also addresses issues such as compound surnames, empty values indicating unknown data, and arrays in the CSV format.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

What Happens When You Hit Search? Every Stop in 190 Milliseconds

DNS, routers, TCP, TLS, the edge and the search itself, and why the same app can be four times slower Hit search in an e-commerce app.

  • DNS resolution takes ~30 milliseconds, resolving domain to IP
  • Data travels 1,000 km via ~10 network hops, ~25ms TCP handshake
  • Server location in Mumbai vs Virginia causes 770ms delay

The Art of Naming Things in Code: Ditch Single-Letter Variables and `utils` Classes

The Art of Naming Things in Code: Ditch Single-Letter Variables and utils Classes While finding the absolute perfect name can be tricky, you can solve 80% of your clean-code naming struggles by simply…

  • Avoid single-letter variables; use descriptive names like "per" instead of "periodDays"
  • Discard Hungarian Notation and prefixes; let compiler/IDE handle types
  • Specify units of measurement in variable names to prevent bugs

Time Zones in Booking Automations for Businesses That Serve Several US States

A remote tutoring company in Denver books students in California and New York. A reminder set for "9 a.m." goes out at 9 a.m. Mountain time to everyone.

  • Store appointments as instant UTC times plus IANA zone name
  • Collect customer's zone at booking, either from address or by asking
  • Use tz database to handle daylight saving changes accurately

More from Friday 13 November →