Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nayuki
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
121.
▲
by
nayuki
11mo ago
> box of instant noodles for $0.99 USD If you as a consumer care about rounding, then just buy three of them: 3× $0.99 = $2.97, which rounds down to $2.95 USD, netting you a $0.02 bonus (the maximum possible). The rounding is done at the
122.
▲
by
nayuki
11mo ago
> Very similar to the Australian system Yes, and in fact: > Once the design and substrate were chosen, the Bank of Canada negotiated a contract with Note Printing Australia (NPA) for the supply of the substrate polymer and the securit
123.
▲
by
nayuki
11mo ago
> Because Canada is just part of the U.S. As a Canadian, I'm amused to hear this because it is basically true as a first approximation. Random factoid - Canadian coins ($2, $1, $0.25, $0.10, $0.05, $0.01 (withdrawn)) come in almost
124.
▲
by
nayuki
11mo ago
> The United States is the only country that prints all denominations of currency in the same size Let me assure you that all Canadian banknotes are the same size too, 6.00 inch × 2.75 inch (152.40 mm × 69.85 mm). I'm not sure how t
125.
▲
by
nayuki
11mo ago
We eliminated pennies in Canada in 2012 and the transition was a non-issue. The vast majority of retailers would round cash transactions to the nearest $0.05, but a few would round down to the nearest $0.05 in favor of the customer. https:
126.
▲
by
nayuki
11mo ago
When I was in university a decade ago, a classmate of mine shared the same name as some high-ranking university staff. The classmate's university email account received some unsolicited confidential messages that were intended for the
127.
▲
by
nayuki
11mo ago
Exactly. I was hoping that this law would be the pushback to the overzealous prosecution of DeCSS, people who defeat DRM locks in order to lawfully back up the multimedia data that they already paid for, etc. Somewhat related: https:/
128.
▲
by
nayuki
1y ago
In Rust, one way I use shadowing is to gather a bunch of examples into one function, but you can copy and paste any single example and it would work. fn do_demo() { let qr = QrCode::encode_text("foobar"); pri
129.
▲
by
nayuki
1y ago
> What is a "variable" if not something that varies? If I define `function f(x) { ... }`, even if I don't reassign x within the function, the function can get called with different argument values. So from the function
130.
▲
by
nayuki
1y ago
Canon gave users the option to sign their photographs with "add original decision data". It got cracked. * https://petapixel.com/2010/12/01/russian-software-firm-break... * https://www.el
131.
▲
by
nayuki
1y ago
Specifically, the algorithm https://en.wikipedia.org/wiki/Dual_EC_DRBG .
132.
▲
by
nayuki
1y ago
> Data Ownership as a conversation changes when data resides primarily with people-governed institutions rather than corporations. This is a false contrast. Corporations are institutions governed by people - specifically a board of dir
133.
▲
by
nayuki
1y ago
Yeah. The article tells a good story and I agree with it. I even bought an Athlon 64 CPU back in ~2004. What I want to add to the story is that when Intel Core 2 came out (and it was an x86-64 chip), it absolutely crushed AMD's Athlon
134.
▲
by
nayuki
1y ago
SQLite also has lots of excellent railroad diagrams for SQL syntax. e.g. https://sqlite.org/lang_select.html#overview
135.
▲
by
nayuki
1y ago
> Fast, efficient, and light > Helium is based on Chromium > [screenshot image of geckos and lizards] Is the marketing page deliberately trying to rub it in Mozilla's face?
136.
▲
by
nayuki
1y ago
> Arc isn't really garbage collection. It's like a reference counted smart pointer Reference counting is a valid form of garbage collection. It is arguably the simplest form. https://en.wikipedia.org/wiki/G
137.
▲
by
nayuki
1y ago
True. If you wanted to increase GDP and taxation in a nation, then: People should not cook their own food; they must pay someone to cook it in a legally documented transaction with sales taxes and income taxes. People should not take care o
138.
▲
by
nayuki
1y ago
> I’ll want to refer to different pages at the same time. So I’ll CMD + click “a couple times” while browsing around and before I know it, I have 12 new tabs open > You can multitask, open a few articles simultaneously, and move them
139.
▲
by
nayuki
1y ago
I agree with this complaint. The first thing I noticed about the page - other than the excessive and unnecessary UI - is that even when focused on the page interior text, hitting Up/Down/Space/Shift+Space/PgUp/PgDn
140.
▲
by
nayuki
1y ago
Managing your own buffer of object slots, allocating from them, and using integer indexes instead of typed object pointers - all of these are a small amount of extra work compared to using native language features. I'd like to point ou
141.
▲
by
nayuki
1y ago
Nah, it's easier than that. Putting two chefs in the same kitchen doesn't let you cook twice the amount of food in the same amount of time, because sometimes the two chefs need to use the same resource at the same time - e.g. sink
142.
▲
by
nayuki
1y ago
Well done on the excellent interactive visual explanation! Having experience reading/writing SVG paths from scratch, here are a few additions for the "Lil' extras" section: * 'H' (horizontal) is a shorthand for
143.
▲
by
nayuki
1y ago
Good advice. The same thing applies to parents - they make mistakes, but owning up to them is what makes a good parent. Same with peer relationships as well (but there is no power dynamic).
144.
▲
by
nayuki
1y ago
Largely a good listicle. Some feedback: > Unicode unification. Different characters in different language use the same code point. Different languages' font variants render the same code point differently. 語 This isn't a trap.
145.
▲
by
nayuki
1y ago
> Another surprising feature of the BWT is that for reversing the permutation, no extra information is needed! I think this is not true. The way I learned the BWT, after encoding, you need to store the index of the first character (which
146.
▲
by
nayuki
1y ago
Discussed a few weeks ago: https://http1mustdie.com/ , https://news.ycombinator.com/from?site=http1mustdie.com
147.
▲
by
nayuki
1y ago
I think this would be a perfect use-case for blind signatures. https://en.wikipedia.org/wiki/Blind_signature Let's say every citizen has an account with their federal government, and the account can be accessed se
148.
▲
by
nayuki
1y ago
> a DVD is digital but it's not "digital only". Every single owner has a physical disc with the movie on it. That satisfies the definition of "digital only" - every person who has the movie (conceptually speaking
149.
▲
by
nayuki
1y ago
Applying wrong definitions results in confusion and contradictions. If "digital" means "by means of communication rather than delivering physical objects", then a digital camera held in your hand is not "digital&quo
150.
▲
by
nayuki
1y ago
I'd say the article is largely correct, but I have at least one nitpick: > ‘How do you burn a CD?’ It’s something that was common for us growing up, but that’s knowledge that’s being lost as everything is sort of transitioning to di
More ›