Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 3y ago · link · parent

It's now widely accepted that cats self-domesticated, making this claim ("Find would put pachyderms in a rare group that only includes humans and bonobos") a bit dubious.

Here's one article on the matter: https://www.nationalgeographic.com/science/article/domestica...

comment 3y ago · link · parent

Only at speed.

comment 3y ago · link · parent

Here you go, this is taken from production, copied from the browser's "view source" feature so there are a few dynamic values hard-coded (they're obvious, though): https://gist.github.com/mqudsi/2f570cf58d7d293ba27217a308659...

It's from a checkout page (the most important page where fancy JS isn't worth a single lost sale) so it goes to great pains to catch all errors and not be itself a source of JS errors. It intercepts errors and POSTs them to the server with a good-faith attempt at getting the browser, faulting script, line number, column number, error message, and stack trace.

It was actually in a <script> tag and not in an external js, but that shouldn't matter too much. You can see the comments and code to support actually ancient browsers (predating IE6 and Firefox 24).

comment 3y ago · link · parent

You need error reporting as a separate script injected early on into the html page before your script is ever loaded. This error reporting script should be as bare bones and backwards compatible as possible.

You can grab mine from our site, if you like.

1835.

The billion dollar Ponzi scheme that hooked Warren Buffett and the US Treasury(theatlantic.com ↗)

3 points · by ComputerGuru · 3y ago · discuss

comment 3y ago · link · parent

That you can’t distribute the specific compilation of publicly available knowledge is different from recompiling (even all) that same knowledge into your own work.

It’s why you can publish and have copyright over a book of quotes from dead people, but no copyright over the individual quotes themselves (which are in the public domain).

comment 3y ago · link · parent

There was no omnibar five decades ago.

comment 3y ago · link · parent

There is zero fun in that. You’re supposed to assemble your collection over the span of years!

comment 3y ago · link · parent

> That obviously doesn't apply to the more expensive components.

Or the larger ones! I bought a 100 of pretty much every standard resistor value in through-hole format from a bulk seller and came to regret the mess of loosely taped together resistor bundles intermixing and tangling and the shelf space they occupied!

comment 3y ago · link · parent

I thought I had every capacitor size I needed but yesterday I received my digikey order for a 22mF 63V capacitor.

comment 3y ago · link · parent

You can actually call a small business rep and get them to order it for you. They still produce them or else have them in stock, just don’t sell them online.

comment 3y ago · link · parent

Summary is incorrect. Volexity was investigated a hack that came through the SolarWinds exploit but did not chase it down and didn’t find the exploit. In the article’s wrap up, the CEO regrets not figuring it out when they first stumbled upon it

comment 3y ago · link · parent

This is different, more like putting a trap door in the ceiling and then patching all the leaks in the roof so that the homeowner won’t need to climb up on to the roof to fix those themselves and in doing so stumble on your trap door.

comment 3y ago · link · parent

I had a mixed bundle of fun and stress writing a rust LoRa driver and an abstraction library atop it for the popular low-cost RFM66HCW/RFM98W LoRa transceiver/breakout board a few years ago [0]. In order to test both send and receive with two such modules connected to the same STM32 MCU (with no OS), I ended up converting/rewriting the driver to use async/await and futures, all with no_std and no alloc.

It was really eye opening to me how much Rust’s language-level features (as opposed to std library features) really unlock the ability to do in an embedded/driver/kernel context with zero abstraction and overhead.

The most annoying part was making it generic over the MCU’s hardware. I ended up with function prototypes 20+ lines long with all the insidiously pervasive generic constraints tacked on a propagating everywhere but I think I would just rip those out and use &dyn instead as I don’t think it was worth the effort and hit to ergonomics it took to avoid the dynamic dispatch.

I asked around to see if anyone would be interested if I published the code at the time but didn’t really get any interest; I think I can still have it on my code server somewhere if someone would benefit from it.

[0]: at the time, these were the cheapest and most available with breakout boards going for a couple of dollars from the Chinese web. Adafruit has them for $10 but you can find them on the usual Asian sites for a dollar or two a piece, which is great because you can’t have too many!

———

Do note that there are a number of restrictions on how you can transmit on the ISM bands, which the LoRa transceivers use, at least in both the USA/Canada and EU. They notably do allow encrypted payloads, which isn’t allowed for a lot of the other free-for-all frequencies such as the HAM radio frequencies.

comment 3y ago · link · parent

Thanks for the additional info. I feel like I need to read up on this some more to make more sense of all the conflicting bits I have accumulated.

comment 3y ago · link · parent

I don’t believe insurers have that kind of “dynamic pricing” where the rate you pay changes depending on who you retain and who you let go.

But my experience is with a large insurer and a school with a hundred or so employees, not something on Microsoft’s scale.

comment 3y ago · link · parent

Intellectual property. Patents, primarily, but also internal know-how and private research.

1848.

MLK’s famous criticism of Malcolm X was a ‘fraud,’ author finds(washingtonpost.com ↗)

2 points · by ComputerGuru · 3y ago · discuss

comment 3y ago · link · parent

Well, most people would be betting that by investing pre-IPO they can cash out upon or shortly after IPO with nice gains. Of course none of that is guaranteed.

comment 3y ago · link · parent

But they didn’t twenty years ago? (Also, Wikipedia shows both recorded and estimated total consumption.)

comment 3y ago · link · parent

You forgot the one exception: or you expect the private company to go public after your investment.

1852.

The Search for the Lost Jeopardy Tapes Is over; the Mystery Behind Them Endures(theringer.com ↗)

43 points · by ComputerGuru · 3y ago · discuss

comment 3y ago · link · parent

Gift link: https://www.nytimes.com/2023/05/01/technology/israel-palesti...

comment 3y ago · link · parent

I'm not talking huge blobs, just (fixed-size) 8- to 16-byte uuid-like fields. You can obviously marshal 8-byte fields to a bigint but you can't do that with 16-byte fields.

comment 3y ago · link · parent

The last time I checked, MySQL still can’t do foreign keys with binary blobs. (I think it works with some very specific limitations but not enough to actually use in the real world.)

comment 3y ago · link · parent

I think that’s a great idea but speaking from personal experience with family and friends, the biggest obstacle seems to be effort. Especially for sufficiently well-off individuals, it isn’t financial motivation but rather having clear, easily accessible, and widely known alternatives that require minimum extra effort or travel that would probably do more to alleviate situation.

comment 3y ago · link · parent

> Ironically banks are some of the least shareholder friendly businesses, they direct a lot of profits to their own bonuses during good times rather than expanding their balance sheet or returning the profits to shareholders.

From what I can see, private equity firms are actually even worse. It’s curious that no major shareholder has sued any of those for breach of fiduciary duty.

comment 3y ago · link · parent

I’m always surprised to remember that mingw32/64 has a dependency on MSVCRT (or now UCRT, I guess).

Given how sparse the C standard library is and how much effort went into/goes into mingw, Cygwin, msys2, and co; you’d assume they would just use the native Win32 APIs and supplement with unversioned/undocumented plain MSVCRT.DLL that is always available on all versions of Windows [0].

[0]: https://github.com/neosmart/msvcrt.lib

comment 3y ago · link · parent

Unibody has been taking over the SUV world too, of late.

comment 3y ago · link · parent

Fuel economy won’t be as bad some might think. Length (as if something were extruded longer) doesn’t really impact aerodynamics much - it’s just the additional weight (body and furnishings) that screws things up.
1
616263
277