HNHacker News
TopNewBestAskShowJobs

Cadwhisker

389 karma · joined January 29, 2017

submissionscomments
Cadwhisker··on Newsmax agrees to pay $67M in defamation case over bogus 2020 election claims
That fine needs an extra zero on the end. They'll shrug it off as the cost of doing business.
Cadwhisker··on uBlock Origin Lite now available for Safari
I got the Australian one by replacing `cn` with `au` in the link.

https://apps.apple.com/au/app/ublock-origin-lite/id674534269...

Cadwhisker··on I designed my own fast game streaming video codec – PyroWave
This CODEC uses the same base algorithm as HTJ2K (High-Throughput JPEG 2000).

If the author is reading this, it would be very interesting to read about the differences between this method and HTJ2K.

Cadwhisker··on Open Source Maintenance Fee
For reference, here is the MSIX Toolset code repository:

https://github.com/microsoft/MSIX-Toolkit

Cadwhisker··on Stdio(3) change: FILE is now opaque
The best comments always say "why" and that's missing here.

Does anyone know why this change was done? Security reasons? Preparing for future changes?

Cadwhisker··on Simplest C++ Callback, from SumatraPDF
It's smaller, lighter and much faster than launching a web browser to view a PDF. I can configure it to open a new instance for each PDF which is nice if you need to have several docs open at once. Again, nothing that you can't do with a browser and dragging tabs, but I prefer this.
Cadwhisker··on We asked camera companies why their RAW formats are all different and confusing
For testing, there's the Adobe DNG SDK: https://helpx.adobe.com/camera-raw/digital-negative.html

You'll find the whole spec there, too. I think the source is also available somewhere.

Cadwhisker··on We asked camera companies why their RAW formats are all different and confusing
'.dng's share the same file format structure as '.tiff's, but they have some extra fields.

For stills photography, Adobe's '.dng' format does fairly well, from 8-bit to 16-bit. It copes with any of the 4 possible standard RGGB Bayer phases and and has some level of colour look-up table in the metadata. Sometime this is not enough for a camera's special features and The Verge's article covers those reasons quite well.

For video, things get much more complicated. You start to hit bandwidth limits of the storage media (SD cards at the low end). '.dng' files were not meant to be compressed but Blackmagic Design figured out how to do it (lightly) and still remain compatible with standard '.dng' decoding software. Other, better compressed formats were also needed to get around the limits of '.dng' compression.

Red cameras used a version of JPEG 2000 on each Bayer phase individually (4 of them), but they wrapped it in patents and litigated hard against anyone who dared to make a RAW format for any video recording over 4k. Beautifully torn apart in this video: https://www.youtube.com/watch?v=IJ_uo-x7Dc0

So, for quite a few years, video camera companies tip-toed around this aggressive patent with their own proprietary formats, and this is another reason why there's so many (not mentioned by The Verge).

There's also the headache of copying a folder of 1,000+ '.dng' stills that make up a movie clip; it takes forever, compared to a single concatenated file. So, there's another group of RAW video file formats that solve this by recording into a single file which is a huge improvement.

Cadwhisker··on Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
It's great when you read further down the comments and come across a gem like this. I had no idea this was possible; thanks.
Cadwhisker··on Try thinking and learning without working memory (2008)
I wanted to look at one of the links in that page about memory training in adults.

It's ironic that the page didn't exist and I had to go to a backup from 2014 in archive.org to find it.

https://sharpbrains.com/blog/2008/04/22/working-memory-train...

https://web.archive.org/web/20140713110043/http://sharpbrain...

Cadwhisker··on Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript
I spent some time looking at debugging with Chevrotain and your solution is so much easier to use. That's a great blog post; thanks again.
Cadwhisker··on Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript
There's a benchmark tool here: https://chevrotain.io/performance/

Ohm appears to be much slower.

Cadwhisker··on Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript
I'm particularly impressed with the visual PEG debugger tool, here: https://ohmjs.org/editor

PEGs are extremely difficult to debug when things go wrong because you get a MASSIVE trace (if you're lucky) to sift through. This tool has rewind/playback controls to dig into what the PEG rules are doing.

Previously, the best I'd seen was cpp-peglib's online parser, here: https://yhirose.github.io/cpp-peglib/

Edit: and now having read through comments here, Chevrotain's PEG tool looks really impressive, although it doesn't use a simple PEG syntax for the input: https://chevrotain.io/playground/

Cadwhisker··on Ask HN: Is Godaddy Running a Scam?
I had a friend that also lost the domain name for their small business when Godaddy sold it from under them.

The process was:

* They missed the expiration warning (their fault)

* On the date of expiry, Godaddy immediately "sold" the domain name to a subsidiary called Afternic

* Once there, it was auctioned off to a company that forwards traffic to an Indonesian gambling site

No amount of phone calls, emails or any customer support could get their domain back. They suggested the domain could be re-claimed by going through a Godaddy broker, but the cost was extortionate and even though they were willing to pay, it still didn't go through (I don't have those details).

A customer-friendly approach to a domain expiry with no email response would be to deactivate the DNS records for a week before taking further action. Any active domains would notice the mistake pretty quickly and remedy it. The immediate on-sale of the domain is a pure cash-grab with no care given to customers.

Someone has described a similar experience here: https://drawne.com/godaddy-afternic-scam/

In this case, the solution is to always make sure your DNS contact email address is operating, but these people were not IT professionals and their configuration mistake cost them a huge part of their business.

Cadwhisker··on Fixing left and mutual recursions in grammars
Debugging a complex PEG is a nightmarish task. I use various tools, but I couldn't find anything out there that will let you set a breakpoint in a file that's being parsed and let you explore the parsing state.

The most useful tools I found were adjacent to the cpp-peglib library: https://github.com/yhirose/cpp-peglib

This comes with a PEG playground: https://yhirose.github.io/cpp-peglib/

I really liked pegdebug: https://mqnc.github.io/pegdebug/

With sample output here: https://mqnc.github.io/pegdebug/example/output.html

pegdebug is nice for small sets of data, but it rapidly gets swamped by anything over about 50 lines.

If anyone has other suggestions for debugging PEGs, please reply and let me know,.

Cadwhisker··on Macrodata Refinement
I swear as I played it, I actually felt something.
Cadwhisker··on We're bringing Pebble back
I released a free watch face for the FitBit Versa (pre-Google) which emulated a Casio-style LCD. I can't remember the name, but you can get paid ones which look decent:

https://play.google.com/store/apps/details?id=com.azya.fitbi...

Cadwhisker··on We're bringing Pebble back
I prefer technology that hides from view, so the Withings watches suit me as well.

The biggest downside is that the battery does not seem to be user-replaceable, so the 1 month of run-time I used to get slowly fades down to about a week or two after a couple of years of use. I can't go away for more than a week now without bringing the charger.

Cadwhisker··on United States Digital Service renamed to DOGE
Was the font always so massive?
Cadwhisker··on General Motors Is Banned from Selling Driving Behavior Data for 5 Years
Hyundai has a "camera speed limit recognition" system, which can identify road signs and recognise what speed they indicate. That's all well and good, except when it picks up a sign for an off-ramp and thinks it applies to you, or when you pass a large truck/bus with a speed limit sign on the back of it and thinks that's the new speed limit.

On every journey of over 2km, it gets something wrong and sounds a warning tone at you that can't be turned off.

It also reads car park speed signs, which are typically "5", so you often hear a "bong bong bong bong" warning from the car in a car park.

Cadwhisker··on General Motors Is Banned from Selling Driving Behavior Data for 5 Years
Some (like the Hyundai) have their own in-built maps and speed limit data (not very accurate in Australia). They can even warn about traffic build-ups because they're "connected".
Cadwhisker··on General Motors Is Banned from Selling Driving Behavior Data for 5 Years
Now, please do Hyundai (and others). Their in-built map's knowledge of speed limits and the speed sign recognition is so awful that any "speeding" data is guaranteed to be wildly inaccurate.
Cadwhisker··on FTC takes action against Gravy Analytics, Venntel for selling location data
Don't forget Hyundai, too.

https://www.caranddriver.com/news/a61711288/automakers-sold-...

Honda sold their users' data for 26 cents per car.

Hyundai sold their users' data for 61 cents per car.

Whether or not that data is used to affect insurance premiums is hard to ascertain, but I wouldn't be surprised if someone somewhere in the world was affected by it.

Cadwhisker··on Worldtimeapp.com Easy Timezone Converter
Agreed; this is great and even helps highlight when daylight savings is taking place.
Cadwhisker··on Mac mini (2024) Repair Manual
Exploded view and orderable parts are shown here:

https://support.apple.com/en-us/121008

Cadwhisker··on Mac mini (2024) Repair Manual
This appears to be the first cheap(ish) Mac with replaceable storage in over 10 years.

The manual clearly shows how the SSDs are removable and that the module is different between the M4 and M4 Pro versions.

Cadwhisker··on Ask HN: Resources for Learning Graphics Programming
This suggestion is not a step-by-step education resource, but Jendrik Illner has a great blog page which has a weekly roundup of graphics programming articles.

It can be quite a rabbit hole when you find that he's up to 38 pages of weekly roundup links going back to 2017.

https://www.jendrikillner.com/#posts

Cadwhisker··on Elite 40th Anniversary – Source code release
One interesting newly released file contains the sources to the unreleased Elite 2 prototype.

b8000083.zip [40yr] 657 K Bell BBC Elite 2 sources (disk images)

Cadwhisker··on The Fourier Uncertainty Principles [pdf] (2021)
The clearest, most intuitive explanation of the Fourier Uncertainty Principle that I have come across is by Grant Sanderson of 3Blue1Brown.

https://www.youtube.com/watch?v=MBnnXbOM5S4

Cadwhisker··on Leaked OpenAI documents reveal aggressive tactics toward former employees
If I see a job application with spelling or grammar mistakes in it, then it's a huge red flag; it tells me that this person does not care about accuracy or they don't check their work very well. These are very important attributes to have in engineering.

If you see it in a job advert, I'd assume the same for the people who are doing the hiring.

← PreviousPage 2 of 5Next →