[HN Gopher] Show HN: USA.css - units set in inches, 1776 bytes ___________________________________________________________________ Show HN: USA.css - units set in inches, 1776 bytes Author : bennettfeely Score : 352 points Date : 2020-07-04 18:13 UTC (4 hours ago) (HTM) web link (bennettfeely.com) (TXT) w3m dump (bennettfeely.com) | purpleidea wrote: | Relevant units: https://i.redd.it/582slv24n1741.jpg | | PSA, don't use old deprecated units still pushed by confused | country. | serf wrote: | >PSA, don't use old deprecated units still pushed by confused | country. | | I understand perfectly. | | Everyone, stop measuring weights in stone -- England has been | declared confused! | wizzwizz4 wrote: | I mean... the only thing still measured in stone is babies, | and even that's falling out of favour. | Symbiote wrote: | Babies weigh less than 1 stone (14 lb), they would | traditionally be weighed in pounds and ounces. | | From searching "baby weight NHS", it looks like all the | advice uses grams, so I assume that's current practise. | wizzwizz4 wrote: | Well, I must've completely misunderstood several | conversations, then. Which would be characteristic. | joshuaissac wrote: | Most adults in the UK still measure their weight in stones | and pounds, at least in my personal experience, and I have | never come across anyone (except those raised in other | countries) using either plain pounds or metric units for | this purpose. | learnstats2 wrote: | Adults in the UK who take sport in any way seriously are | more likely to quote their weight in kg, in my | experience. | jjcon wrote: | Why would aliens work in base10? | hedora wrote: | Given all the probing they do, they're clearly after our best | ideas. | | They'll be converting to imperial units and base 10 any day | now. | | Converting the flying saucers to coal will take a bit longer. | 8organicbits wrote: | Looks like they had 3 fingers per hand, so base 6 seems a | likely choice. 6 works great as its divisible by 2 and 3. | | I wonder what base we would use if we (somehow) had a prime | number of fingers. 2, 6, 30, 60? | jsilence wrote: | Only on HN... | cryptoz wrote: | But what you call base 6 they might call base 10 | | every base is is base 10...from a certain perspective | masklinn wrote: | > Looks like they had 3 fingers per hand, so base 6 seems a | likely choice. | | Depends how they use their fingers and whether they use | other body parts. There is evidence for human cultures | having ranged from 4 to 10, 12, 16, and 20 (technically | there are higher ones but they usually have sub-bases in | that range). | | You can count to 12 on a single hand (24 on two hands) by | pointing phalanges with the thumb for instance. Some native | cultures had base 8 using the space between the fingers | rather than the fingers themselves. | jhardy54 wrote: | Opinion: Highly composite numbers make good bases. | | 2, 6, 12, 60, etc | | Number of fingers doesn't matter, although you can shoehorn | almost any base into them. For example, base 6 lets you | count to 5 on one hand and use your other to coujt | multiples of 6. This lets you count to 35 on two hands. | | More info here: https://en.m.wikipedia.org/wiki/Superior_hi | ghly_composite_nu... | learnstats2 wrote: | etc: 360 is a useful number of days for a calendar system | def8cefe wrote: | They may have 10 of something else... | dang wrote: | Please don't post nationalistic flamebait to HN. | | https://news.ycombinator.com/newsguidelines.html | hosteur wrote: | Why? | ancarda wrote: | Because it's a bit of fun, why not? | webmobdev wrote: | Because freedom units ( https://www.urbandictionary.com/define. | php?term=freedom%20un...) are better than the metric system. | Yetanfou wrote: | Just make sure not to use this stylesheet when describing the | route towards a distant planet so as to avoid ending up in a | smoking crater instead of in the promised land. | dvtrn wrote: | _instead of the promised land_ | | There's plenty of options out there in the wild black | yonder of space. Just try to avoid Europa. Bit of a dispute | over land rights with that one. | wumms wrote: | Use them together. Use them in peace. | hedora wrote: | Or, use a type safe language. | | Will web developers and rocket scientists ever learn? | pbhjpbhj wrote: | If you need to cut your website with primitive wood working | tools ... | dylan604 wrote: | Whose to say they didn't build their own Arduino controlled | CNC to do the wood working? | andrewnicolalde wrote: | Beautiful! | zacksinclair wrote: | I didn't even know you could set inches! | | Happy 4th! | mediumdeviation wrote: | Mostly useful for print stylesheets. On screens it seems to be | defined as a constant 96px[1], which means it has no | correspondence to physical inches. | | [1]: https://hacks.mozilla.org/2013/09/css-length-explained/ | CivBase wrote: | Welcome back to HNC News. Tonight's top story: US law makers | have introduced a new bill that would require all digital | displays in the United States to feature a pixel density of | 96 ppi. White house officials say the new bill represents | "the first step on the march to bring freedom to the cyber | world". More on this after the break. | Shared404 wrote: | Anchor: "Let's bring in a Congressman who agreed to comment | on this extraordinary turn of events" | | Congressman: "I'm glad to support the expansion of freedom | to all realms. Thankfully, it is now safe for us to do this | that we can defend ourselves against the dangerous | 'cypherpunks'. Thank you to everyone who has helped make | this possible" | pcunite wrote: | I would scream from my office. Almost no one would | understand my pain. | tempodox wrote: | But it would make screens great again! Especially retina | screens. | earthboundkid wrote: | Screens around the world are sold based on diagonal inches. | USA! USA! | simias wrote: | As a European whose only familiarity with inches is that | "it's about 3cm" that actually annoys me. | | Back when screens were small it sort of worked, I knew what | 13", 15", 17" and 20" screens looked like. Since most | monitors fell in that range (yeah, I'm showing my age) that | was good enough. Anything bigger than that was "damn huge", | anything smaller was "damn small". | | But now monitors and especially TVs are immense. I see TVs | with diagonals of 30", 55", 65"... That means absolutely | nothing to me. I have to convert into centimeters for it to | make sense. Fortunately some resellers do put the metric | measurement next to the inches, but not everybody does it. | penagwin wrote: | If it makes you feel any better, I'm from the US and the | unit is kinda meaningless. It's not like I can visualize | 42" (without converting to feet first), and because it's | the diagonal length it makes it basically impossible to | visualize - I have to have seen it to know anyway. | TheSpiceIsLife wrote: | Hah! Yeah I hadn't even noticed that I do this too. | | I'm writing this on a 42" display, it was sold as a "TV" | but it's just a dumb display as far as I'm concerned, so | cheap 1080p monitor really. | | Everything bigger than 42" is, in my mind, just | _unnecessarily big_ as you have to sit progressively | further away from the display to comfortably watch motion | pictures. | | So, from my perspective, huge displays are what you need | for unnecessarily huge houses. | missblit wrote: | But the CSS spec suggests around 1/96th of an inch for the | size of a CSS pixel. So if you squint hard enough it kind of | works out. | [deleted] | mariofa wrote: | https://www.theverge.com/2020/7/2/21311330/twitter-engineers... | banksy__ wrote: | _People who enjoy waving flags don 't deserve to have one | -Banksy_ | | https://www.goodreads.com/quotes/410220-people-who-enjoy-wav... | KKKKkkkk1 wrote: | Only a true American patriot who is deeply devoted to the | nation's ideals would zealously protect a system of units that | has been thrown in the dustbin of history by the rest of | humanity. | hedora wrote: | Drinking from an obsolete CE pint glass here. Brexit!!! (?) | corndoge wrote: | _eagle screams_ | kevin_thibedeau wrote: | Actually a red tailed hawk. | hedora wrote: | I think you meant turkey. | sethammons wrote: | For those not following, the Red Tailed Hawk's call is | nearly universally used as a substitute for the sounds of | Bald Eagles in most media. Bald Eagles don't sound similar. | egd wrote: | It's understandable. Bald Eagles sound genuinely | hilarious for a bird that big. | serf wrote: | Was your point against the user, the concept, the measurement | standard, or just triggered by any vague mentioning of the | United States? | | It's difficult to sort through the negative sentiments to get | to real point. Be more clear with your hostility and anger next | time, would'ya? | KKKKkkkk1 wrote: | > Be more clear with your hostility and anger next time, | would'ya? | | You're projecting. | serf wrote: | I'm projecting? | | But I haven't even thrown out 'true', 'devoted', or | 'zealot' yet! | snapetom wrote: | I can't understand what's going on with some of these | comments. Is it a genuine inability to see the levity of the | project? Anti-americanism so strong to ignore the levity? | It's humor, people. | dc_ist wrote: | https://designsystem.digital.gov | bob1029 wrote: | I think its really great that this exists. Bonus points for it | being a public project on GitHub that any American can | contribute to. It's also really hard to argue with the | licensing terms. | klyrs wrote: | Weirdly, bennettfeely had 1776 karma when I clicked their | profile. Conspiracy? Coincidence? | Stratoscope wrote: | And 1812 when I clicked just now. | | This must mean something! | iliaznk wrote: | 1812 - that's when Napoleon invaded Russia. | Bjorkbat wrote: | 1901 when I upvoted, the year when Teddy Roosevelt became | President. | | I now have a strong urge to keep peace on the continent and | rough-ride over a company under an antitrust investigation. | Svip wrote: | I think they were referring to the War of 1812. A war the | US lost, and where the song "The Star Bangled Banner" comes | from. | unnouinceput wrote: | 1821, proudly made by me. You know, when he died on St. | Helen | [deleted] | klyrs wrote: | Burn down the white house? | [deleted] | bjourne wrote: | Cool! This is the kind of things that I love to see on HN. | Carpetsmoker wrote: | I can't tell if this is intended to be serious or a parody? "All | units set in inches" makes it sound like a parody, but the "God | bless America" footer makes it sound serious? Hmmm | nautilus12 wrote: | Good to see some patriotism in a time when American patriotism | has become faux pas. We live in a great country that doesn't need | to be completely deconstructed in order to get better | nxc18 wrote: | Patriotism is about fighting for the principles and values | espoused in the constitution, and working towards improving an | imperfect republic, not worshiping the flag. | | It's a fun project and I like the colors, but let's not pretend | that the flag and the idea of 'patriotism' are anything other | than distractions from the work that needs to be done. | mazeltovvv wrote: | Interestingly, everytime I hear this I feel like the | constitution is treated like the bible, some holy book | holding the truth. That is very dangerous imo | nxc18 wrote: | The constitution is the document that defines the existence | of the United States and all of the rights, freedoms, and | protections it provides and aspires to provide. It's not | perfect, but it is a heck of a lot better than blind | adherence to the flag and whoever waves it. | | Seeing as the constitution defines the United States, I | think you get a lot closer to the truth when reflecting on | it than you do when worshiping the flag or the military or | whatever else it is that July 4th is supposed to be about. | | It is also important to remember that the constitution is a | living document, meant to grow and evolve over time. If | there are problems - and there are - it is up to us to | change it. | hedora wrote: | > _whatever else it is that July 4th is supposed to be | about_ | | The Declaration of Independence; an aspirational document | saying why the constitution was needed, and also a big | F-you to Britain and tyranny around the world. | macinjosh wrote: | The Constitution is THE Supreme Law of the land. It | literally is the 'bible' in how America is to be governed. | The difference is that The Constitution has mechanisms | within itself for change. This is the opposite of | dangerous. It is the reason slavery was abolished, women | have the vote, etc. It is a living document and it serves | the people. | Leherenn wrote: | I would say one of the tenet of the Bible and other holy | books is that there are immutable. It's the words of God, | and he doesn't make mistakes. (In theory at least, I've | heard the Bible's translations haven't always been kind | to the original text.) | | That's a huge difference with the constitution, a | fundamental one I'd say. And, most of the time, the | people I see treating the constitution as gospel denies | this very important mutability. The founding fathers were | right and will always be right. The constitution must not | be ammended, it is already perfect. | themodelplumber wrote: | What are some reasons to use inch units in screen-based CSS, | aside from this kind of project? | | Edit: Removed all sentiment to my profile, leaving a beautifully | rational shell of a comment. | klyrs wrote: | If you need to rive a 5cm length in twain and you don't like | fractions. Or if you're making a website devoted to larval | geometer moths. | dragonwriter wrote: | > If you need to rive a 5cm length in twain and you don't | like fractions | | 125/127 is as much of a fraction as 1/2. | [deleted] | jacquesm wrote: | Trying to imagine someone from France, Australia or Brazil to do | something similar and failing. | Retr0spectrum wrote: | Uhhh why France? | jacquesm wrote: | Within the EU France is quite nationalist compared to others, | and yet, I fail to imagine someone there producing something | like this. I'm a bit allergic to flag waving. | mhh__ wrote: | _Systeme international_? We already use french units | jacquesm wrote: | No, 'international' does not mean 'French'. Yes, the French | came up with it but since it now has international adoption | it is the international standard with the United States as | one of the last hold-outs. That's what you get when you have | a country run by lawyers with very limited input from | science. | khanan wrote: | ALL COUNTRIES MATTER! | | You, sir, are racist. | wizzwizz4 wrote: | Contrary to popular belief, there is actually a distinction | between patriotism and nationalism. https://www.smbc- | comics.com/comic/an-important-distinction | lucidlogic wrote: | How is this relevant? | Minor49er wrote: | It's something techie on America's birthday | lucidlogic wrote: | You know there's a bunch of other countries other right? This | shouldn't be number 1 on hn. | dylan604 wrote: | Let us know when you spend some time honing your CSS skills | to develop a timely relevant bit of theming, and we can all | come back and leave some irrelevant opinions about it. | lucidlogic wrote: | I always thought hn was impartial and scientific, this is | not. | saagarjha wrote: | Americans generally make up the majority of visits to | most websites, including Hacker News, so you're generally | going to see a slant towards it. | jfkebwjsbx wrote: | That would be very surprising considering how small it is | compared to eg Europe alone. | | So citation needeed, I guess. | saagarjha wrote: | The United States is the world's third most populous | country, and home to a number of technology businesses- | one of the main draws of the site. I don't know if anyone | has officially disclosed Hacker News's traffic data, but | a lot of people have done analysis of what kind of | traffic they get from being on the front page and it's | invariably dominated by the United States: | https://nicklafferty.com/blog/what-happens-when-you-re- | on-th... | blackhope wrote: | This is a reminder that the USA still held black folks as slaves | in 1776. | | This was woven into American society from the very start. | | Recall that the Native Americans were referred to in the | Declaration as "merciless Indian Savages", and have been | systematically attacked and abused, also since the very start. | | If you're celebrating Independence Day today, this is what you | are actually celebrating. | | It should be a day of sad contrition and sorrow for the racism | and other evils wrought upon many generations, not a celebration. | | Consider this if you're enjoying Independence Day today. | brightball wrote: | No, it's not. Before American independence the British crown | held slaves. | | Prior to independence both SC and Virginia actually requested | to pause or slow down the slave trade. They had to make this | request to England and it was refused. The Declaration of | Independence laid the groundwork for the eventual end of | slavery that culminated in the Civil War. | | After US independence, Britain began to wash their hands of | slavery eventually in 1834. It's also worth keeping in mind | because during the War of 1812 the British attempted to arm | both slaves and native Americans to help their war | effort...while still practicing slavery themselves. You can | imagine the effect such an action had on local relations as | well. | | America's independence should be celebrated by everyone. | Selective history should not. | gnuisance wrote: | Tunnel visioning on slavery is a pretty bad mindset. There are | many facets to American society beyond slavery. It's almost | impossible to imagine a person today who supports slavery. | We've come a long way, and nobody is celebrating slavery. | blackhope wrote: | This is implicitly what you are celebrating if you choose to | worship the Independence Day. | eevilspock wrote: | This is one of the more Trumpian things I've seen on HN. | [deleted] | chrismorgan wrote: | Feels strange to have single decimal places in your inch figures. | I'd have expected something like eighths, sixteenths and thirty- | seconds of inches, even though the decimal representation of them | is unwieldy (1/32'' becomes 0.03125in). That also helps you avoid | fractional pixels, which is worth doing if convenient: 1/32'' is | 3px, because 1in is defined as 96px. | | (As an Australian, the main place I've ever seen fractions of | inches is old tools like spanners from before the adoption of the | metric system, and that's all fractions with powers-of-two | denominators. But maybe Americans use decimal fractions of | inches? I suppose I have seen laptop screens described in that | way, e.g. 13.1'', 15.4'' and 15.6'', though people typically | truncate to the inch.) | jedberg wrote: | We usually use fractions, but sometimes we're forced to use | decimals, usually when related to computers, since the usual | fractions don't translate well to decimal. | jholman wrote: | Wait, what? | | You're saying that Americans preferentially use base-2 | fractions (nearly) everywhere except on computers; on | computers you preferentially use base-10, even though said | computers are going to store the values as base-2? | | That's the funniest thing I've heard all week. | brudgers wrote: | A feature of some English measures is unbiased division | into three equal parts, e.g. Three teaspoons to the | tablespoon, twelve inches to the foot, and twelve ounces to | the pound (for one of several definitions of "ounce"). | | Thirds don't fit neatly into binary nor do they fit neatly | into decimal. This is what the comment refers to. | skybrian wrote: | Rulers, drill bits, and wrenches typically use fractions of an | inch where the denominator is a power of two, but circuit board | design often uses decimal fractions of an inch. The holes in a | breadboard are commonly .1 inches apart. | xellisx wrote: | Then the whole mils thing... | amyjess wrote: | All small measurements in the US are done in power-of-two | fractions of an inch. In fact, much of the initial opposition | to the metric system here was led by the construction industry, | who has found from experience that 1/2" 1/4" 1/8" 1/16" etc. | measurements are too convenient to ever give up. | Symbiote wrote: | Since several of the lengths are in fifths of an inch, I | thought it was a secret desire for the metric system. | cjsawyer wrote: | Engineering and machining specifications are usually in 0.001" | and referred to as thousandth's or "thou's". Tools like | wrenches or drill bits use fractions in the form x+1/2^n like 2 | 1/2 == 2.5". It goes down to 1/64, I think. | userbinator wrote: | They also speak of _tenths_ which are 0.0001 " units, i.e. | "tenth of a thou". This jargon tends to confuse those who are | new to it, but has been around for over a century. | eevilspock wrote: | _What have I, or those I represent, to do with your national | independence? Are the great principles of political freedom and | of natural justice, embodied in that Declaration of Independence, | extended to us?... What, to the American slave, is your 4th of | July? I answer; a day that reveals to him, more than all other | days in the year, the gross injustice and cruelty to which he is | the constant victim._ | | ~ Fredrick Douglass | rrss wrote: | 1852. | | "It was a great thing to achieve American Independence when we | numbered three millions, but it was a greater thing to save | this country from dismemberment and ruin when it numbered | thirty millions." | | ~ Frederick Douglass, 1881. | | May the United States of America acknowledge what is bad, | celebrate what is good, and go on to do greater things in the | future. | eevilspock wrote: | wypipo. always cherry picking for comfort and absolution. | [deleted] | dang wrote: | Please stop. | pcunite wrote: | Amen, he writes well: | | "As I have said, this southern threat lost many votes, but it | gained more than would cover the lost. It frightened the | timid, but stimulated the brave; and the result was--the | triumphant election of Abraham Lincoln." | | [1] https://en.wikisource.org/wiki/Life_and_Times_of_Frederic | k_D... | ixtli wrote: | Marx wrote a letter of congratulations to Lincoln when he | was elected as well, as a referendum on slavery. It would | be silly to think that is uncritical support of the country | tho. | gerikson wrote: | Metric inches or survey inches? | | https://en.wikipedia.org/wiki/Foot_(unit)#International_foot) | hedora wrote: | I'm sure it inherits from the DPI your monitor reports. | | I wonder if any manufacturers let you specify which one you | mean, or if it's like drives, where they always pick the | smaller one to make a few extra pennies. | | The standards boards should step in to avoid confusion. | OJFord wrote: | Huh, I didn't know about this, that feet and inches used to | differ across the world. If only they'd done pints, fluid | ounces, and cups, etc. too! | | (Cups are particularly annoying: there's British, US, US Legal, | and metric. The best recipe-following advice is that it's never | going to matter. But it's annoying.) | petepete wrote: | I thought the whole point of cups was that the actual | quantity didn't matter, so long as your ratios were | consistent. | irrational wrote: | Measuring by volume was from a time period before we had | reliable digital scales. These days all baking measuring | should be done by weight since it is far more accurate. I | won't even consider a recipe that goes by volume. | Fortunately those are all written by amateurs. | progman32 wrote: | For where precision matters, 100% agree. For people like | me who just want something halfway tasty but also | quickly, the convenience of volumetric scoops is | compelling. | joe5150 wrote: | I have a lot of junk in my kitchen drawers (admittedly a | personal problem) and will opt for measuring directly | from the bag into the bowl on a scale over digging around | for that quarter cup every time. | frank2 wrote: | Replace "convenience" with "low cost of equipping the | kitchen" then. | iainmerrick wrote: | A set of measuring cups and a digital kitchen scale | probably cost about the same. | | Just checked this with a quick search on Amazon -- most | results are in the $15-20 range, with some available for | $10 or less. | | (I dare say there are probably very cheap measuring cups | available, and for a scale you'll have to fork out | occasionally for batteries, if you want to split hairs.) | TheSpiceIsLife wrote: | I have two suggest volume tablespoon measures. | | One is 15mL and the other is 20mL. | | That's a fair difference, but doesn't seem to matter a | whole lot. | OJFord wrote: | That works if _everything_ is measured in them. (At which | point obviously you can call it whatever you want, it 's | nothing more than a ratio as you say.) | Symbiote wrote: | I lived in Britain for over 25 years, and never saw British | cups used as a measure. | | A recipe given in ounces and pints might be using Imperial or | US ounces and pints, but a recipe in cups is American. | | (It can matter when something is in another unit, like "4 | eggs".) | OJFord wrote: | They're extraordinarily rare in recipes for sure, basically | only in old ones. | | But if you buy a 'cups' measure it ~never says which of the | four it is, and it may well be there old Imperial size. (I | have one. Was a popular one on Amazon, nothing obscure.) | masklinn wrote: | The units were already defined in relation to metric units | (officially through the Medenhall Order in the US though the | OWM had officiously been doing that for some time, officiously | through the Weights and Measures Act of 1897 in the UK as while | it defined the meter in terms of yard, as the precision of the | meter increased the yard followed rather than led), but | different countries used slightly different conversion factors. | | Hence _international_ inches, not metric inches. | PedroBatista wrote: | American inches. | quda wrote: | Awful kitsch! | alexseman wrote: | As an European this is really cool and unlike others self- | loathing Americans here in the comments I understand the idea, | humor and originality. Happy 4th USA, you are great today due to | the greatness of your forefathers and the men that built this | nation. | TheSpiceIsLife wrote: | No women were involved? | AmazingTurtle wrote: | You're just trying to hop on the train, ain't you? | d33 wrote: | I actually believe that their question was a right one to | ask. | TheSpiceIsLife wrote: | No. | | How hard would it be to write "men and women" (or "women | and men"). | | What do you reckon? The fellas who "did all the work" in US | history, you reckon they did all their own cooking and | cleaning, you reckon their intimate partners, or close- | others didn't contribute any to the people whom history | attributes greatness? | | Probably not old boy, fair chance the wives, partners, and | mistresses went a _long way to getting us where we are_. | | And that's if they weren't directly responsible but not | attributed. How's that saying go, next to every great man | is an even greater women. It's often true, except that the | _woman_ part could be generalised to _partner or carer_. | | Some people act alone, outliers though. | | And to still, in this socio-political climate, not to | bother to include women is, at least, _tone deaf_ , if not | outright intentionally exclusive. | quicklime wrote: | Maybe try to assume best intent, and assume that this | person doesn't speak English as their first language? | nautilus12 wrote: | Seriously? | hedora wrote: | Not one. | | https://en.m.wikipedia.org/wiki/Betsy_Ross | nautilus12 wrote: | Thank you! I for one am not self loathing and proud of my | country and thinks it doesn't need to be destroyed as a | prerequisite to getting better | dang wrote: | Given your previous comments, this looks like trolling. Please | stop posting like this to HN. | elagost wrote: | I'm no web dev, so feel free to improve upon it. Think I got the | proportions right though. | | <div class="usa-stars" | style="height:134;width:190;float:left;"></div> | | <div class="usa-stripes-horizontal" | style="height:250;width:475;"></div> | novok wrote: | Definitely only tested on chrome. The .usa-conic item doesn't | render at all in firefox :) ___________________________________________________________________ (page generated 2020-07-04 23:00 UTC)