HNHacker News
TopNewBestAskShowJobs

randomfool

1,679 karma · joined May 1, 2012

submissionscomments
randomfool··on I spent some time exploring how to improve the UX of code blocks on the web
Does anyone know if there's a trick to avoid the trailing newline when double-clicking a line to copy/paste it elsewhere?

This always annoys me for single-line commands. I'd love a CSS solution but can only think of some ugly JS approaches.

randomfool··on US agencies call for pause in Johnson & Johnson vaccine
All of these vaccines are approved under emergency authorization- the long-term effects are still unknown. At this same rate (6 in 6 million+), there could easily be unnoticed issues lurking in the alternatives as well.

What we do know is that the alternative to not being vaccinated is much worse.

randomfool··on Enabling Support for MathML in Chrome
It has a MathML fallback, but does not require MathML.

Here's a useful discussion about MathML support in KaTeX (an alternative to MathJax) and it's importance for accessibility- https://github.com/KaTeX/KaTeX/issues/593

randomfool··on NYT reporter falsely accuses tech investor of using a slur
One side of it is deplatforming, but the other side is protecting more vulnerable family and community members.

The fact is that there are pied-pipers of disinformation on these platforms leading vulnerable members of our communities down rabbit-holes to who-knows-where. Normally we would address this with in-person confrontation but I think people are struggling to find the tools to protect their friends and families.

People are being preyed upon and the victims may not be the ideal rational individuals that we aspire to.

I'm not trying to say that censorship is a good thing, just that the tools that we may have once used to protect our communities are not adapting to the new environments.

randomfool··on JavaScript Minification Benchmarks
Working on codebases where the compilation times can often be 30-60s, a 10x improvement makes a massive difference in development flow and is definitely worth a 2% regression in size. It's the difference between being multi-tasking while compiling and not.

Of course you could use esbuild for dev and terser for prod, but maintaining two may be a support headache.

randomfool··on JavaScript Minification Benchmarks
Google Closure's advanced optimizations require annotations throughout your codebase- in many codebases it may require significant effort to get this working. When you need that extra optimization it's great but can be a lot of effort otherwise.

I'm most excited about esbuild though and I'm curious how it'll fit into a larger codebase & ecosystem. The author is aggressive about keeping it simple (for good reason!!)- the focus on speed is awesome.

randomfool··on R Markdown: The Definitive Guide
Plug that if you're a Jupyter user to chime in on the survey at https://www.surveymonkey.com/r/LCB7GBF.

Background: https://blog.jupyter.org/survey-jupyterlab-and-beyond-88c7fb...

randomfool··on Mocks Aren't Stubs (2007)
Fakes not Mocks- I hopped on this train and am super happy.

I start out with a small & simple fake for something as I'm working on the layer above it, then keep flushing it out as I move on to higher and higher layers.

In the end I have a suite of completely customizable fakes for all of my external dependencies that I can tweak to my every need.

randomfool··on Apple has threatened to ban Parler from the App Store
Kudos to Apple for taking action:

https://www.inputmag.com/culture/exclusive-email-from-apple-...

randomfool··on NumPy Illustrated: The Visual Guide to NumPy
Yes! Text which can be copy pasted!
randomfool··on Super Wood (2018)
Cross-laminated timber is already being used for 10-story buildings today.

Here's an 18-story one: https://www.dezeen.com/2019/03/19/mjostarne-worlds-tallest-t...

And there's a 12-story one in Portland: https://www.archpaper.com/2017/06/framework-portland-timber-...

randomfool··on Zero-click, wormable, cross-platform remote code execution in Microsoft Teams
$20k to reward the amount of security analysis that went into finding this bug is an absolute deal for Microsoft. Seriously- a single FTE security researcher is going to be costing MS >$400k a year (salary, bonus, health care, office space, etc).

I work at a BigCo as a recipient of some of these XSSs and I'm awed by the amount of work that goes into them. I always try to overstate the impact to boost the reward- it's not just the bug that they found, but how much of the system they had to look at before they found this. The security folks at BigCo that I interact with are badasses, but it's just so hard to get this level of attention.

randomfool··on I Violated a Code of Conduct
I attended JupyterCon- the organizers were very focused on inclusivity, which I definitely appreciate. I love attending conferences just to hear from everyone. This is why inclusivity matters to me- it welcomes a broader slice of people. And virtual conferences have the potential to bring even more people together (world-wide populations that cannot travel internationally, people who cannot travel for a week at a time, etc). I also want to hear people talk honestly and CoC violations like this worry me.

The keynote speakers were all great and I'm excited for them to be posted live, I thought they were supposed to be available at the end of the week.

Jeremy's was a different keynote than the others- more technically oriented, but nothing struck me at the time as being a CoC violation. I could easily have missed something, clarity from NumFOCUS would be greatly appreciated here if only for future speakers.

This was my first virtual conference but the organizers' overabundance of caution detracted from the experience in some ways- the talks were all in WebEx rooms where only the presenters were visible and the chat messages could only be seen by the presenters. The effect of this was that it felt like you were in an empty room. The explanation for this setup was to prevent trolling, but this was quite a small conference and it seemed to really cut down on attendee chatter.

randomfool··on Sacklers–who made $11B off opioid crisis–to pay $225M in damages
But the $8.3B is not coming out of the $10.7B that the family extracted.

The title is not misleading at all- the family which profited $10.7B is paying $225M.

The company already entered bankruptcy proceedings last year.

randomfool··on Sacklers–who made $11B off opioid crisis–to pay $225M in damages
Incorrect- the family has already drained $10.7B from the company and are only being fined $225M themselves- they are not responsible for any other portion of the $8.3B.

The family will lose control of the company in bankruptcy but they knew this was coming and drained it ahead of time. DoJ is letting them get away with it.

randomfool··on Sacklers–who made $11B off opioid crisis–to pay $225M in damages
No- the $8.3B settlement was against the company, but the Sackler family has already drained $10.7B in cash out of the company.

They've known this was coming and drained as much as they could- from Dec 2019: https://arstechnica.com/science/2019/12/sacklers-siphoned-ne...

randomfool··on Justice Department: Resolution with Purdue Pharma and Sackler Family
No, it leaves $10.5B profit to the family since they've already drained $10.7B from the company and are only being fined $225M themselves.

The family will lose control of the company but they knew this was coming and drained it ahead of time. DoJ is letting them get away with it.

randomfool··on Justice Department: Resolution with Purdue Pharma and Sackler Family
$8.3B is extremely misleading- the article says it won't happen.

"A forensic audit last year by Purdue found that the Sacklers directed at least $10.7 billion in the company’s proceeds to family-controlled trusts and holding companies"

So the family extracts $10.7B from the company and pays a $225M fine. The company is fined $8.3B but most likely goes bankrupt because it's already been drained by the family.

randomfool··on JuliaMono – a monospaced font for scientific and technical computing
Feels like the descenders are just a bit lower than normal, I like the contrast that brings with the parens and brackets. It looks clean.

I'm excited to spend some time trying this out.

randomfool··on WSL Getting GUI Support
Step 3 is not extinguish- step 3 is exposing APIs or programs in Linux which only work when executing on Windows.
randomfool··on Facebook announces policy changes ahead of 2020 elections
Abusive behavior is behavior which Facebook decides turns away the users they want to keep.
randomfool··on Facebook announces policy changes ahead of 2020 elections
Should HN be completely un-moderated? There's a decent chance that the quality of the forum would drop and users could move elsewhere.

I firmly believe that Facebook is responsible for shaping the tone of their platform (every social network does this in one way or another). A platform that allows anything may not attract the audience that Facebook desires.

Arguing that Facebook cannot set the tone of their platform is a losing game.

randomfool··on Facebook announces policy changes ahead of 2020 elections
A community that tolerates abusive behavior can be exploited to become a community that fosters abusive behavior.

Facebook is in control of what type of community they want their social network to be. At some point users may make a decision that they no longer want to be part of a community which tolerates certain behavior and Facebook will need to make a decision between a hands-off approach and a community that people want to be a part of. Facebook is reaching this point now.

randomfool··on The Unmarked Federal Agents Occupying Washington, D.C
https://twitter.com/Susan_Hennessey/ has been looking into this quite a bit, some here: https://twitter.com/Susan_Hennessey/status/12682415415476592...

Basically it sounds like her understanding is that they are only required to present ID when they take a police action? But I don't understand why blocking a street would not be a police action.

DC Metro attempting to arrest Bureau of Prisons employees when they fail to identify sounds like a complete mess.

randomfool··on Zero-day in Sign in with Apple
The only thing I can think of is some 'test mode' override which inadvertently got enabled in production.

1. Don't add these.

2. If you must add something, structure it so it can only exist in test-only binaries.

3. If you really really need to add a 'must not enable in prod' flag then you must also continuously monitor prod to ensure that it is not enabled.

Really hoping they follow up with a root-cause explanation.

randomfool··on States reject Trump talk of restarting U.S. economy early
Early is the completion of the CDC's 15 day plan which was announced on March 16th: https://www.whitehouse.gov/wp-content/uploads/2020/03/03.16.... https://www.cdc.gov/coronavirus/2019-ncov/community/15-day-p...

So around March 30th?

I don't know Reuter's opinion of 'too early', but reducing quarantine before the current exponential growth has stopped and before hospitals are not overwhelmed seems like a bad idea.

randomfool··on San Francisco bans public events holding more than 1,000 people
I was hoping they'd limit it to 100, or even 50. I don't see what 200+ gatherings they believe are safe to the public at this point.

There's little downside to decisions like this- healthcare is most likely going to be overwhelmed even with these changes, may as well do everything you can.

Be a leader. Make the tough decisions now.

randomfool··on CDC declined to test new coronavirus patient for days, California hospital says
> STEIN: You’ve consistently called for enormous cuts to the CDC… Does this experience at all give you pause?

> TRUMP: No…I’m a business person, I don’t like having thousands of people around when you don’t need them…we can get ‘em back really quickly.

https://twitter.com/ddiamond/status/1232829064194469893

This is not the correct approach for an organization responsible for early warnings and preparation.

randomfool··on CSS Containment Specification
Nope.

Shadow DOM isolates selectors, style sheets, etc. It’s about a public/private API for elements.

Contains is about layout and rendering hints to the browser.

randomfool··on CSS Containment Specification
Also it may be difficult to annotate all of the descendants appropriately and to audit them to ensure performance.

I’m in favor of browsers inferring whatever they can, but when it comes to critical performance sections I want to be explicit.

← PreviousPage 2 of 13Next →