Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nayuki
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
301.
▲
by
nayuki
2y ago
> We have a couple of new slum boxes It's good to see how you honestly view apartment buildings: with condescension.
302.
▲
by
nayuki
2y ago
> Homelessness is through the roof Allocating space for car parking does not help address homelessness. In fact, it hurts it a lot.
303.
▲
by
nayuki
2y ago
I did PNG: https://www.nayuki.io/page/png-file-chunk-inspector
304.
▲
by
nayuki
2y ago
Thanks for the great feedback. I agree with what you said, though there are details I'd like to respond to. > XHTML is dead / retired the XHTML name / XML syntax for HTML It's complicated. XHTML 1.0 certainly existed,
305.
▲
by
nayuki
2y ago
C trigraphs is a great example that I forgot, because no one uses it and everyone hates it; glad to hear that C23 is finally removing that wart. I'm not aware of other languages with Java-style escapes before tokenization. I only learn
306.
▲
by
nayuki
2y ago
Awesome comment, thanks. I agree with pretty much everything you said. > tempts me in the direction of the XML syntax (which, to many people’s surprise, is absolutely still a thing—save a local file with extension .xhtml, or serve over H
307.
▲
by
nayuki
2y ago
> Uber scams both passenger and driver. Then why do people keep using it? It seems like a pretty transactional relationship to me. If drivers aren't getting paid as much as they wanted, they should find another job with a higher pri
308.
▲
by
nayuki
2y ago
Half of what you said is correct, but: > There was a push to make HTML stricter with XHTML / But it didn’t really stick. Yup! And XHTML still works in practice: https://www.nayuki.io/page/practical-guide-to-xhtm
309.
▲
by
nayuki
2y ago
Be careful with what you mean when you say "essentially text replacement" and "same as a literal space". In HTML, ampersand entities can only be used outside of tags or inside attribute values, for example: <tag key=&
310.
▲
by
nayuki
2y ago
Indeed, the file format is easy to read! It took me a few hours in one sitting to implement a reader. I have some visualization tools too, but with way less features than the OP's software: https://www.nayuki.io/page&#x
311.
▲
by
nayuki
2y ago
And then news media in Canada got even worse a few years ago. They demanded the government make a law so that when Google or Facebook even links to an article, they must pay the news org. Google decided to pay the link tax. Facebook decid
312.
▲
by
nayuki
2y ago
Moreover, I believe Uber fundamentally solved two problems with taxis: The driver can't scam the passenger. The driver can't set the meter wrong, drive an unnecessarily long route, or just be an outright unlicensed taxi. Instead,
313.
▲
by
nayuki
2y ago
I learned about these bombs from the PC video game Red Alert 3. https://en.wikipedia.org/wiki/Command_%26_Conquer:_Red_Alert...
314.
▲
by
nayuki
2y ago
> outrage means traffic Which CGP Grey also described a decade ago: https://youtu.be/rE3j_RHkqJc?t=200 "This Video Will Make You Angry" [2015-03-10]
315.
▲
by
nayuki
2y ago
This current post is a good rebuttal to the killed post this morning: https://news.ycombinator.com/item?id=42933031 "Programmers are modern-day computers", https://jtlicardo.com/writing/modern
316.
▲
by
nayuki
2y ago
> It's all 48kHz (or multiples of that, for snake oil) Oversampling can be a useful internal detail for ADCs and DACs. For example, if the digital audio stream is mathematically converted to 96 kHz with a high-quality FIR low-pass f
317.
▲
by
nayuki
2y ago
> it explains why the youtube version of your song feels just a little more 'lifeless' than the high quality version you have elsewhere Having hearing sensitivity over 16 kHz is unusual. If you're under 15 years old and ke
318.
▲
by
nayuki
2y ago
Spell checkers existed before AI.
319.
▲
by
nayuki
2y ago
That's good as long as they quote the sensor size in millimetres for the width and height (e.g. 36 mm × 24 mm "full frame"). What is atrocious is the inch format - e.g. 1 inch sensor, 1/2.2" (decimal and fraction!).
320.
▲
by
nayuki
2y ago
> pixel counts are objective Pixel counts are objective. But the problem is that while the pixel count sets the upper bound on the image quality, all cameras don't achieve that upper bound - especially due to the Bayer color filte
321.
▲
by
nayuki
2y ago
> Hard Mode means that you split your program into std binary and #![no_std] no-alloc library. Only the small binary is allowed to directly ask OS for resources. For the library, all resources must be injected. In particular, to do memor
322.
▲
by
nayuki
2y ago
> traveling at 65k KPH You could say 65 MPH (megametres per hour) ;-). Or more formally: 65 Mm/h or 18 km/s.
323.
▲
by
nayuki
2y ago
> 1-bit quantized noise reduction in CD players Maybe you're thinking of 1-bit DACs with oversampling and noise shaping: https://en.wikipedia.org/wiki/Delta-sigma_modulation
324.
▲
by
nayuki
2y ago
Correct. DCT maps N real numbers to N real numbers. It reorganizes the data to make it more amenable to compression, but DCT itself doesn't do any compression. The real compression comes from quantization and entropy coding (Huffman co
325.
▲
by
nayuki
2y ago
When making my implementation, the math felt unintuitive. https://www.nayuki.io/page/binary-indexed-tree
326.
▲
by
nayuki
2y ago
I was too young to have a bank account back then. However, I can personally attest that the Toronto Public Library, around year 2000+/-2, had a Java applet on their public website which the general public used to search the library
327.
▲
by
nayuki
2y ago
Thank you so much for taking the time to explain things! By analogy from studying bicycle mechanical maintenance, I can understand that the wheel of a car has many components like you mentioned (tire, rim, bearing, hub, axle, etc.). Clearly
328.
▲
by
nayuki
2y ago
Yeah, I had to research "crore" today due to the word being mentioned. Another Indian number word is lakh = 100,000, which I only knew since a few years ago (living in Canada for 30 years). https://en.wikipedia.org/
329.
▲
by
nayuki
2y ago
This is a simple yet slick video! It clearly highlights the benefits of this invention. It was interesting to see the use of the uncommon word "inlet" (2m05s), which is the correct word for a socket on a power sink that accepts a
330.
▲
by
nayuki
2y ago
It's okay, these concepts are frequently conflated. For example when it comes to cars, it is advised to put on "winter tires", but people usually keep an entire set of 4 tires+rims so that they change the wheels instead of th
More ›