skysight-inc/HackerNews huggingface dataset:
Ask HN: Bulk updating of GO module dependencies?
Consider: A CD/CI system knows the URLs of N GO repos, because programmers have enrolled them.

One of the repos, n, just got a PR submitted. So now it's time for the CD/CI to build and run tests etc.. If all that is successful, we'd like to effect the following:

For every library or program which depends on repo `n` either directly or indirectly run "go mod update" until done.

The hard part is doing so until "done" because updating mod files will often lead to a cascade of such updates which are order dependent. Ex: we know repo n changed by assumption: a PR was approved. Now further suppose we have this dependency chain:

* Repo o depends on n

* Repo p depends on o

* Repo q depends on n

Clearly we want to update o, p, q. However, for the case of p we want to update it only after we update o.

Now don't get me wrong ... one can do `go mod graph` and go for it ... my question: is this a solved problem with a best practice?
`hdparm --yes-i-know-what-i-am-doing --please-destroy-my-drive --fwdownload`

https://github.com/Distrotech/hdparm/blob/4517550db29a91420f...
I frequently run across codebases that appear to have purposely “broken” tiny things that need to be fixed before the code can be used. This seems to be a type of lock/key mechanism to prevent just anyone from using it even though it’s open source
What are you "getting at" by adding two vectors of different dimensions? It's not obvious to me.

Off-by-one dimensionality errors are so common in programming. If the language does something like zero-extending instead of raising an error, it will lead to an "it runs but gives the wrong answer" bug. These are much more painful in numerical code than in logic-based code.
can someone comment on the OP’s website platform? it looks like a plain ftp explorer but it seems to support inline pages on mobile.
This is a good point, but notice that what makes the segregation easy in your example is that the query and the command have a shared way to refer to what the command will operate on: the filename.

Consider a conceptually very similar case: instead of finding and deleting files in a filesystem, think about finding and deleting lines matching a pattern within a file. Then the query is something like grep...but what do you put for the command on the other side of the pipe?

Of course, you can tell grep to output line numbers and use a command that operates on line numbers, or similar. The point is, in order to achieve this kind of segregation, you need some common way of naming operands on both sides of the divide. And naming things is hard, so segregating things this way is hard, and thus there's a lot of tools with mixed query/command responsibilities.
At least Explorer marks them as hidden when you cut them, I didn't check the file attributes.
Bought Dell i5 with 4GB RAM in 2012, which died in 2020. Now using HP with i10 and 16 GB ram

I use Linux (Current ARCH) with minimal bloatware so never faced any performance issues
Oh, damn. I thought I’d read further down the thread that they were one and the same but I see he specifically says otherwise. I guess it’s me that owes the mea culpa.
> Had there been something wrong in the raw data or safety logs those authors would have said so.

Or, they thought then that the precautions were sufficient and the risks were acceptable, and they were wrong, and now would like to just look ahead and move on.
Maybe the title text box should be under the content editor :-). Once you’ve written it ... you’ll know the title.

Or just make the title “untitled” then add some CSS to hide it :-)
I can emphasize with the argument that complexity is a source of income. But, I don't think that it's intentional. Rather, the constant change of developers introduced little inconsistencies that over time accumulate and generate complexity. Recently, I even looked at some open source projects[1] to measure the complexity by counting import/include statements.

[1] https://schleiss.io/measuring-potential-complexity-in-open-s...
Hence my description of this solution as mediocre at best.

Everything you say was described in the Verge article by the author, so I don't see how the article is inaccurate or should be avoided.
React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
Close all the pop-up windows to proceed.
Low-radioactivity steel and the scuttled German Imperial fleet of 1919
HyperPhysics: http://hyperphysics.phy-astr.gsu.edu/hbase/index.html
It seems like each generation is having more difficulty making ends meet (https://theirrelevantinvestor.com/2021/04/01/the-generationa...). Why hasn't this been improving? Is it because of regulatory capture by corporations?
Yeah, they didn’t get them from that photo.

Edited to add: where has this story come from? Why does someone want us to believe in CSI Stilton? And why on Earth do they think we’d swallow it?!
what do you use? std::array? alloca? std::string? heap allocation? a lot of std library functions need char *
The only things predicated on the app release are marketing, etc. that they've decided to predicate on it. They also chose to take the launch on in the first place.

Sometimes there are external deadlines (events whose schedule you don't control, things for partners, etc.), but this just clearly isn't one of them. They could've released the update after Christmas - that was 100% under their control.
Covid is the disease. The virus, SARS-CoV-2, has never been found in the wild. The closest known relative, RaTG13, was found in Yunnan. But SARS, a very similar disease (caused by SARS-CoV-1) broke out in Guangzhou, which is 1000km from Yunnan. So there doesn't seem to be any obvious reason why SARS-CoV-2 couldn't originate in animals and break out in Wuhan.

> Beijing purposefully destroyed DNA evidence, and obliterated the team who first sequenced the CoVID genome

You have a reliable source for this, of course. Would you be so kind as to share it?
Nice red herring. US police executing black people is an internal problem. What we really care about are the bombs, the pillaging, the coups... The US has no moral high ground. Never had it in the first place.
Right, but the scammers aren't going to tell you to go there to install your Important Software Update, they're gonna point you towards the store with no restrictions at all, possibly one they run.
Learjet: Why the legendary plane is no match for today's jets
There was an article[0] from 2018 about how the UK police monitor CCTV footage with "super recognisers" - people who have a way-above-average ability to remember and identify faces. Ostensibly, they would look at footage from previously captured crimes and then pick out the perpetrators by watching other footage. It just smells like a convenient source for parallel construction to me.

[0] https://www.theguardian.com/uk-news/2018/nov/11/super-recogn...
1. We did look at many implementations - protection is mostly masked AES rather than having "flattened power". It take us far more time, to get the datasets right and ready for sharing but hopefully we will get to release the papers and the datasets in not a too distance future.

2. If you go after a very valuable target, side-channels are very realistic. There are also more mainstream attacks like against game consoles but they were glitch or timing based afaik.
The crazy thing is... his bold, risk-takey leadership worked. So who's to blame these executives for continuing to pull these kinds of stunts?

Sure a bunch of people burn out and leave but does that actually move the needle on any metrics besides turnover that these people look at? Assuming that departures get filled I don't know that turnover has that much of an impact on other metrics.
America used to have lower taxes across the board for all of these things - look at the 1920s-1950s. You know what else was true in those times? Absolute rates of poverty way higher than today, death rates higher, life expectancy significantly lower, no environmental regulation (smoking everywhere, pollution etc), workplace accidents, no interstate highways, higher crime levels, the list goes on and on. Is there some percentage of tax money that is misappropriated/misused? Sure; but I think the percentage is [relatively] small - 10-20% at most.

Disintermediating the health care system with a public option could lead to the biggest savings in the system overall. The military budget stuff is somewhat disingenuous because it was necessary for the U.S. to maintain a capable military first because of the Soviet threat and later to back the USD as the global reserve currency and secure foreign oil - unless we could get the domestic shale up and running (USD as the reserve currency improves the purchasing power of every American and allows us to live "beyond our means" on an international level - while on the downside making our exports uncompetitive). But nevertheless, if our military went away, Americans would have to take a haircut to their standard of living.

So it's not as simple as you make it sound.
Nice work. I thought Ghost had this niche all tied up but goes to show there is room for innovation.

I personally love the devil I know too much: Wordpress, but if I was less techie, and frankly tightass (Wordpress hosting for unlimited sites is $60/y or so) I’d use something like this
There are some measurements we are not able to do in space (until we have habitats in orbit) due to tuning and experimentation required, size and heating/cooling constraints ... However some new experiments can be done in space, so some branches of astronomy will loose, a few selected will win.

The environmental argument is an interesting one and i have no idea on the total lifetime damage of both solutions. The heaviest digging will be required where there are humans living any way. Laying cables and maintenance while probably more expensive also has some benefits such a high paying jobs, distributed all over the world instead of increasing the worlds Gini coefficient further. I would recognize Starlink as a good idea (outweighing the negatives) if it would be public infrastructure but that train has sailed.
Or you hit the right button but you have to keep holding it down to move the character and don't realize your finger has been slipping and the character suddenly stops moving at the worse moment. I've had that happen with Gameboy emulators on the phone a lot of times.
More evidence that natural immunity to covid is the best form of immunity.

The responsible way to roll out the vaccination program would have been to test for covid antibodies first. Those with existing antibodies have no business taking an experimental vaccine they don't need.
> I suspect most organizations of this size see cold/flu cases -i.e. similar symptoms to mild-to-moderate COVID - in winter every year.

And have to be hospitalized?
Why would they? It is more work. It is 2 code paths to write, to test and plan for. There is a cost associated with this that will not likely be recovered in any reasonable price difference on the phone versions.
yeah not necessarily related to any particular theory around lab leak, one could simply take this for what it is: further evidence of underreporting by china to WHO which seems to be fairly uncontroversial
This is a specific issue of US based companies hiding 'offshore' revenues that likely do not qualify as truly offshore. Also holding profits in foreign countries in an effort to outlast IRS rules to be able to 'repatriate' funds at a lower tax rate, or even somehow show a loss in the US.

The perfect is the enemy of the good enough, we cannot craft a perfect tax solution, but we can make it better.
> The wave is subsiding and they now need to appear to have a viable business (so they can be sold to a bigger fish), which means there has to be a visible market they can sell into.

Might need a (2019) tag. As of 2020, RStudio is a Public Benefit Corporation and has a corporate structure that is designed for long-term investment in the scientific community, and isn't susceptible to buyout or IPO.

https://blog.rstudio.com/2020/01/29/rstudio-pbc/

(disclaimer: I work at RStudio)
You have options.

Given Superset struct A, some other struct B that happens to have a subset of A’s fields, and some function foo which takes an argument of type B, you could

1) implement From<A> for B, and use that to convert instances of A when you want to call foo. This would probably involve some copying and/or allocation.

2) back up and turn foo into something that takes a trait argument instead. Now instead of taking instances of A, what it needs struct to provide is defined by a trait, which you can provide implementations of for both A and B. Now you can pass either to foo.

3) potentially, depending on the layout of structs, create a union and do some type punning to convert between them. this requires unsafe and you’d better be right about the struct layouts.

4) just make foo take a tagged union of the two structs. this isn’t unsafe but has different storage tradeoffs. also foo would need to handle each case separately.

5) find some other way to skin this cat. there’s plenty

#2 would be idiomatic in most circumstances I think?
TK?
Around here, Home Depot rents out little trucks that could probably take a freezer. They are flat-bed, not pick-up. They charge by the hour.
Super recognisers: the people who never forget a face (2018)
I gave my old iPad 2 some years ago to my mom, and somehow she’s still using it to these days (although apps are dropping support for iOS 9.3.5 one after another).
Couldn’t all these same points from that Twitter thread be leveled against the New York Times when they wrote about Trump’s tax returns and financials? It seems to be like an inconsistent bar is being used in terms of transparency and access to the primary source. I’m not saying it’s wrong to be skeptical - in fact I think it’s appropriate - it’s just an interesting observation on how ready we are (or aren’t) to accept allegations based on the story. Ultimately what the lab leak hypothesis deserves is a trustworthy transparent and independent investigation into WIV, but we may be too late in demanding that now, 1.5 years later.
Of course we know fox is partisan, but it's certainly not because they admit it about themselves. They vaunt themselves as "fair and balanced", while clearly acting otherwise. Is this so different from the NYT presenting itself as "objective and not really partisan", even when we know otherwise?
I agree with your assessment of the claims made in this post, but I want to note that for me the tidyverse culture became the reason to abandon R for all use cases where it has decent alternatives. R is not pretty, but it is also not super hard, and it has some internal logic. tidyverse's logic is orthogonal to that of R, it is a different data-manipulation paradigm, which I know have to know in addition to having to know R itself---not that you can really skip this part. Also, as it has been already mentioned here, this layering doesn't help with debugging.

ggplot2 did a similar thing with plotting. Together these two projects made R more accessible-like and, IMO, seriously damaged the culture around it.
>Had there been something wrong in the ... safety logs those authors would have said so.

Not sure how you reached that conclusion. Collaborators from different institutions collaborate on research papers all the time while having no access to each others' 'safety logs'. Why would that be shared?

>Instead they say that everything is normal.

Which they obviously have no way of knowing, given that they are not on site, the research institute is in a secretive authoritarian country, and the implications for being 'responsible' for such a lab leak are monumental for such a regime.

>There is a weird double standard here of ignoring data that goes against this hypothesis and interpreting things that happened for every single other zoonosis in the world to be indicative of a lab escape. Such as, for example, three people out of six hundred presenting with symptoms of seasonal illnesses in the appropriate season.

The double standard is the exact opposite - flippantly dismissing the lab leak hypothesis without examination, on one side; a call to treat it on par with the purely zoonotic hypothesis and a recognition that neither hypothesis is close to being definitively proven, on the other.
Here's a very so-so promo site for The Bit Player. I saw it about a year ago (Curiosity Stream) and thought it was pretty decent. I somewhat sheepishly admit that, for a while, I thought that they had somehow interviewed the real Claude Shannon.

https://thebitplayer.com/

Although not devoted to Claude Shannon, Jim Al-Khalili's documentary "The Story of Information" does discuss Shannon's significant contributions and is how I first became aware of Claude Shannon.

https://topdocumentaryfilms.com/story-information/
Sometimes I wonder if the old world where you had to buy computers and drive to the datacenter at 3 in the morning to replace dead hard drives was really so bad.

I guess it was really so bad. Everything you have to build for yourself in the cloud is something you probably needed in your self-hosted stack -- a directory of users, permissions (and escalation), firewall rules, SSH key material, etc. I feel like no matter what production stack you choose, you're always in that "6 of one, half-dozen of another" state. Lots of stuff to interfere with getting your code out there and keeping it running.

(My real question is why the cloud providers don't offer these things for you -- they give you the tools to build solutions, not solutions. But I just want to work on my app. I wonder why things like App Engine never really caught on. I guess being opinionated drives more people away than it brings in with the promise of more simplicity, though to some extent App Engine was too simple, which is always bad. Meanwhile, what cloud providers offer certainly lets you bring your own opinion and build it out yourself. I wish there was a comfortable middle ground.)
This blog post feels weirdly superficial (haven't looked at the video/presentation).

> Array new and delete

> When you write new in your applications, you are creating unmanaged objects, and you are then required to call delete later on if you don’t want to risk leaks. So don’t use new and delete at all, as this is considered a C++ bad practice. Better yet, working in modern C++ allows you to use smart pointers and Standard library container classes that make it easier to match every new with exactly one delete.

The text is reasonable, but why is the heading "array new and delete"? There is a difference between new/delete and new[]/delete[], and calling delete[] on something created by new or vice versa is indeed going to cause problems. But that problem (and hence the section title) is more or less orthogonal to what the section body talks about.

Edit: The corresponding slide in the presentation does talk specifically about this kind of mismatch. It also comes to the same conclusion as the text ("just use the STL"). The connection between title and body was apparently lost in translation.

Maybe as more general feedback, I'm getting a strange vibe from this blog. Lots of "top 5 <C++ thing>" posts, links to Patreon-gated articles, ads for blog-owner-written books... Which would all be fine, but that plus an inconsistent summary of someone else's talk raises a lot of warning signs for me.
Magic Wormhole is one of my absolute favourite tools.

see also https://wormhole.app/
I haven’t ever worked with anyone that’s been hospitalized for the flu. Here we have three staff in the same month.
rsync has a plan mode? I had no idea.
Switch isn't of the same generation though. Switch was released back in 2017. Also, switch didn't face hardware delays like PS5 and XBSX. So not a fair comparison at all.
Indeed, this blanket advice does not apply in situations where shared resources that require mutable access need to be synchronized. If my async HTTP router is serving two requests that are using the same database client to persist changes, that needs to be synchronized. How does one do this without a mutex?
> because for looking towards the surrounding space there is no other way

This doesn't prevent them from looking outwards towards the surrounding space. It just makes the data a bit more noisy once processing is completed. It doesn't completely obscure anything (unless that thing was incredibly faint and near the noise floor anyway).

> while for Internet access there are many alternatives both cheaper and faster than a network of satellites.

If there were "many alternatives both cheaper and faster", people would not be going literally crazy over waiting for the service to become available at their premises. You can see such people moping and complaining on threads everywhere while they wait for service to become available. For the market where Starlink is wanted there are often no options that are faster and in some cases not even any options that are cheaper. I've heard several anecdotes of people who were paying $200+ a month for around 1 mbps for internet service before they got Starlink.
PowerShell solved this problem by outputting easy to map objects instead of just plain text. Unfortunately they made it a bit more verbose than it could've been, and the industry didn’t recognize the potential, so it remained a niche product.

I still love PowerShell.
The incentive to make open source products more complex is worse for consultancy business models than product driven ones.
Getting Started with IRC and Weechat
Travis Kalanick.
I assume it comes from similar lineage as UUCP paths. Either way, email standards are a bit ridiculous. It needs the kind of rehaul that occurred with HTML5 of looking at what email implementations actually do and pushing them in one direction. I suspect that is not happening ever, so failing that there will probably always be things in the spec that just simply don’t work across everything anymore.
Starlink _is_ publicly funded infrastructure, to the tune of $885M of subsidies through federal aid for rural broadband. We have the technology to send the internet down from space, and arguably with a lower environmental impact than running fiber to the same places.

Building physical infrastructure isn't without environmental cost.
> CDC estimates that influenza has resulted in between 9 million – 45 million illnesses, between 140,000 – 810,000 hospitalizations and between 12,000 – 61,000 deaths annually since 2010.

https://www.cdc.gov/flu/about/burden/index.html

An organization with a few thousands staffers? Sure. (800k out of 300M Americans would be ~0.3% per year.)
Burn out.

This first time I did a game jam many years ago, I stayed up for nearly 72 hours to get it finished. I slept maybe less than 8 hours that entire time, I felt like absolute shit towards the end. Nausea, headache, exhaustion.

The game was completed, but to this day, if I even look at a screenshot of that game or hear one of the sound effects, I start to feel nauseous almost immediately.

I'd imagine some people on this project had a similar (although maybe not as extreme) reaction.
I have the same issue. I use sparr.email and it fails validation on a few critical websites, namely my online utilities account (seattle public utilities) and payroll processor (ADP).
We've updated the title above. As others pointed out, it's possible that the publication changed their own headline. This case smells like that to me. Btw, one trick is to look at the URL, since those are harder to change after publication. In this case the URL includes the word "raids".

Edit: yep: https://web.archive.org/web/20210524155244/https://techcrunc.... It would be interesting to know why they rolled it back. I haven't read the article, but I bet there was something excessive about the original claim, because they've softened it in two ways: changing "raided" to "visited" and putting scare quotes around "manipulated".