skysight-inc/HackerNews huggingface dataset:
Your last point is a very big deal. I don't believe people fully comprehend how awful the world will be when extortion is global and commonplace. If criminals are not already making extensive use of facial recognition and cellular tracking, they soon will be. It wont be long before there's enough dirt on political candidates that governments will be mired in problems that remain rare today.

We restrict law enforcement from using tools like Clearview for many legitimate reasons but there is no such restriction on crime that often involves the same reasons. Even something innocuous such as being in the vicinity of a certain area at a certain time coupled with better deep fakes will create headlines or fabricate evidence to sideline business deals.

I suspect we will be forced to move towards a world where people increasingly get a free pass for past behaviour and many crimes will simply have to be decriminalized for society to function. We are beginning to see push back for many whose careers have been ruined by so little as an errant comment and I expect change to spread from that.
It not only misleading, it is intentionally mixing of fungeable and non-fungeable goods in order to turn something obvious dirty as being clean.

If Scotland exports of wool exceeded the amount of imported cotton, then we can pretend that the cotton import never existed. Cotton and wool is pretty interchangeable as textile fibers. This then allow us to purchase cotton that is produce by child labor, because the cotton didn't actually exist because look, wool production exceeds the demand for textile fiber.

It pure silliness. If a country buy energy produced from fossil fuel then that country is responsible for the pollution. No amount of exporting clean energy will erase the pollution. Its there, it is being generated, and the customer who pays for it has a distinct responsibility.
You're right... what an annoying namespace collision. On the other hand, stylizing software as Initial Caps is much more acceptable than stylizing non-software acronyms that way, so it would still be less misleading to change the capitalization.
Controversial and presented rather flippantly but there is a valid point behind this remark in my view.
Because they were written with the expectation that they would be used in composable programs that each do one thing well.
How a container ship blocked the Suez canal, a visual guide
This was really cool and worked great on my phone
> Are you really going to recommend growing the table by duplicating it?

Um... yes.

You want the data linearly in memory in the first place so you can have constant time access by index. If you want to grow a dynamic array, doing a realloc can easily cause the same effect as the article does manually (alloc new, copy data, free old), because the memory immediately after may be occupied by something else if you did any other malloc/calloc. Copying over the data is linear in time, thus degrading your constant time insert to linear time as soon as the table is full if you do a realloc for single items instead.

You may find the choice of growing when half full as in the article questionable, because then there will always be an unused half, but pretty much every, remotely practical dynamic array implementation in C (and probably a ton of other languages) does that (grow by capacity * 2 when full) to maintain amortized constant time when appending.
The problem with your way of thinking, is who draws the line to define what's "half-assed"? Because everything can be improved. You should take ideas from this kind of articles, not fully working code.
East African Crude Oil Pipeline will only benefit foreign oil companies
I agree. The author talks a little bit about which UTF encoding makes sense in which situation, but they never make an argument about which result from len is correct.

My two cents is that string length should always be the number of Unicode codepoints in the string, regardless of encoding. If you want the byte length, I'm sure there is a sizeof equivalent for your language.

When we call len() on an array, we want the number of objects in the array. When we iterate over an array, we want to deal with one object from the array at a time. We don't care how big an object is. A large object shouldn't count for more than 1 when calculating the array length.

Similarly, a unicode codepoint is the fundamental object in a string. The byte-size of a codepoint does not affect the length of the string. It makes no sense to iterate over each byte in a unicode string, because a byte on its own is completely meaningless. len() should be the number of objects we can iterate over, just like in arrays.
there are some very specific items I am still having trouble finding. close substitutes are available, but I'm willing to wait for the exact thing I want. looks like the picture of graceful degradation to me.
But that's a ship carrying a ship, or did I miss something?
PWRs actually can ramp their power up or down and the French run a number of theirs in this mode. I don't think AGRs can in quite the same way since thermal stresses on the graphite need to be avoided.

Economically, it's not clear that economically you'd want to run PWRs this way though since FuelEx is only a small part of the LCOE of a nuclear plant.
That's a bit extreme, but I find it worrying how the general public seems to have accepted that software just has bugs. Like it's this self conscious thing and nobody is at fault. Prisoners don't get released although they served their sentence? Software fault. People pay more tax thab they should? Software bug! Let's just shrug im confusion about that silly software problems that nobody os possibly responsible for.
Admittedly not a huge dataset but the TTFP is significantly shorter. :P

_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.0 (2021-03-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> add Plots
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Installed Qt_jll ─ v5.15.2+3
Downloaded artifact: Qt
Updating `~/.julia/environments/v1.6/Project.toml`
[91a5bcdd] + Plots v1.11.0
Updating `~/.julia/environments/v1.6/Manifest.toml`
[ede63266] ↑ Qt_jll v5.15.2+2 ⇒ v5.15.2+3
Progress [========================================>] 246/246
246 dependencies successfully precompiled in 140 seconds

julia> @time using Plots
3.689727 seconds (6.58 M allocations: 472.965 MiB, 7.49% gc time, 0.13% compilation time)

julia> @time begin
using Plots
x = 1:10; y = rand(10); # These are the plotting data
plot(x, y)
end
3.050765 seconds (3.63 M allocations: 218.824 MiB, 4.87% gc time, 59.07% compilation time)

julia> @time begin
using Plots
x = 1:10; y = rand(10); # These are the plotting data
plot(x, y)
end
0.001435 seconds (2.61 k allocations: 161.836 KiB)
Especially where the article doesn't define it or even use the term "APT" except in the title.
I hate them as a head of Engineering at 2 startups that scaled until the moment when the CEO decided that we needed to set OKRs for people.

Software eng. Teams objectives are basically to build the stuff that goes in the backlog. If it's not in the backlog, it wont happen. Developers are always in a rush to finalize whatever is in the backlog so theres seldomly time to pay the technical debt required to "improve " So the OKRs y started using was: we are going to build the shit that product throws at us plus the fires that Customer support throws at us plus whatever stupid thing Sales promised to the next large customer to close the deal.

Whenever business things that performance, security or availability are features that need to be improved, they'll put it in the backlog.

Sorry, I'm bitter.
Not my position but per some, feral-cat:marsupial :: COVID:human .
Name a country whose government isn't "the baddies" to other people and countries?
I loved working from home pre-pandemic.

But currently I'm burned out. Living a groundhog day esque life. Getting up, sitting in front of a computer for 8 hours for work, sitting in front of a TV or a computer for 4-6 hours for "fun", go to sleep, repeat.

I'm trying to spend a few hour outside a day, but I have already seen every street in the 5 miles radius of my home at least twice.

I haven't been on a real vacation in the previous one and a half years. Taking PTO for sitting home is not relaxing.
Both rape and scamming have a perpetrator and a victim - who is the victim of smoking weed? This is less about the law, and more about the morality of victimising someone; legal harassment/threats would also fall into this category.
I wish you were right. But if you spend a minute talking to people who work in trust and safety at those companies, you'll want to give them a hug.
Under that scenario, what business would the police have pulling it over via backdoor? Why not contact the operator, or perhaps just follow it to the destination?

There are also tire grappling devices.

https://www.youtube.com/watch?v=esJ-Fo6XAv8
If you were into board games, you'd probably have felt it. Just about every board game release and reprint has had (and are still having) significant delays thanks to the pandemic.
Ask HN: How to tell if failing startup or growing pains?
I work at a relatively small startup (about to raise series c at ~$100m valuation). We are seeing some traction, but it is all driven by a small subset of stars internally. What indicators can I look at to try and understand if some of the job pains I am encountering are signs that we don't have our act together, or if they are just growing pains?
This is really cool. I am looking forward to the MTBF numbers. A typical Cummins/Allison engine/drive-train can last 1 million miles on light duty use, but when used as a delivery vehicle that number is easily cut in half. I would like to see how those numbers turn out on electric vehicles and what innovation that drives.
Yeah but shit, it got politicised as fuck in certain countries. How in the hell is refusing to wear a mask now a statement of political position?
I think it’s neat that Alan Turing is on both sides. Don’t they normally only put these types of figures on one side?
Pfizer has a Covid-19 vaccine production facilities in the EU and is selling the vaccines produced there to countries that aren't the US.
Uptick in lightning over the Arctic in past decade, research shows
Your comment assumes that both 'Factorio performance' and 'job performance' are measurable. That is questionable, in my opinion.
I'll take it up a notch: all of the above + doesn't lift a finger and finds faults at everything you do. Add a bit of colonial superiority complex and its recipe for a job from hell.
How can this not have a huge bias in favor of gamers?
Might work for them because that's the kind of culture fit they need, but I doesn't look all that generalizable for other companies.
No,I am suggesting that its as close as the magic solutions to wind and solars intermittency issue we hear so much about and therefore the money would be better spent creating something as powerful as fusion than something to help a inferior and backwards looking type of energy that doesent even provide 1% of the worlds energy.
I run my own gitlab server and keep my keys in their own repo...understanding the ssh config file is a good investement of time.
That super ship is still stuck though.
Darwin's Voyage of the Beagle[0] is also a great travel read. His style is much more scientific. But that eye for rationalism often leads to very good observations about the places he visited

Dana's Two Years Before the Mast[1] is another good voyage book. Dana is a recent Harvard grad that makes his way out round Cape Horn to California in last days of the Ranchero era. Any SV people will recognize the place names, but not the places, so to speak. His young, but refined, voice is very special on a long distance fur trading ship.

[0] http://www.myharvardclassics.com/downloads/20120213_14/downl... Free here

[1] http://www.myharvardclassics.com/downloads/20120213_8/downlo... Also free here
Press release from WeWork:

https://www.wework.com/ideas/newsroom-landing-page/newsroom/...
https://github.com/python/cpython/blob/master/Objects/dictob...
If Spring is a hard requirement, sure. Writing Java-in-Clojure is pointless. I meant it more in the sense if you value simplicity and you are starting a project more or less from scratch or integrating into a good Java project that doesn’t rely on crufty frameworks.
Most articles about generation are inaccurate in this sort of way. France has huge base load capacity thanks to its nuclear power plants, and the UK has had excess peak load capacity, and we’ve sold each other electricity via the channel DC link, but a lot has been written over the years on how the UK has not relied heavily on nuclear power, or on how France has been fine relying heavily on nuclear.
What I’m trying to tell you is that in most of the US, none of the things in your first paragraph are issues.

Traffic is only an issue in big cities, and even then in most of them it is only an issue in rush hour (i.e. not when running errands). Most small and medium sized cities never have traffic. Same is true for parking; that’s only an issue in big cities that have underbuilt parking. Most people in the US do not struggle to find parking during regular errands.

Modern cars require very little upkeep - a few hours once a year for a regular checkup is all that’s required.

Taxes is unfair, that’s an artificial government action that has little to do with how a mode of transportation works. I could just as easily say that you’d never use transit if the fares were raised to cover 100% of operating and capital expenses.

You accuse me of being biased towards the US, and I admit that I am, but you are biased towards your city, and I’m trying to tell you that your issues aren’t really issues for most people in the US. HN is dominated by Bay Area residents, where the local government hasn’t built anywhere close to the amount of new infrastructure of any mode required, so it’s only logical they hate traffic and therefore cars, but the Bay Area does not reflect the typical American city.

I hope you try to learn more about what life is like in large parts of America and to not assume that everything is like a handful of areas popular in the tech industry.

To your final point asking if I have personally experienced transit oriented development, the answer is yes. I have lived in cities in the US that heavily fund transit and have made it illegal to build new roads or low density housing. I found that when I lived in such an area I spent just as much time traveling to destinations as I did in a much larger car dependent city, but the things to do were much more limited. There were lots of restaurants and bars and nightlife, but any actual errand like a hardware store or anything else that couldn’t fit in a small first floor retail space required traveling to either the sketchy industrial area or the suburbs. I also paid hundreds of dollars in taxes earmarked to the transit system and my employer was forced to pay hundreds more on my behalf for an unlimited use transit pass, which is significantly more than the operating expenses I paid for my car. Since moving, I now pay less for transportation and spend less time traveling. It is rare I spend more than 20 minutes in transit time to go anywhere, so I by definition live in a 20 minute neighborhood. The same was not true in my prior transit oriented area unless you don’t count time spent walking to and from a bus stop and time spent waiting for the bus to come.
No, you are carbon neutral. The most obvious (though maybe not best) way to do this is turn separate water into H and O, then store the H in a tank. When you need more power you burn the H getting water back. This process is not very efficient, but when power is cheap who cares.

You can also turn CO2 into synthetic oil (Methane, gasoline, Jet fuel, motor oil - your choice of what you want) via known processes. Again the process isn't very efficient, but when the inputs are free who cares. The sum of is carbon neutral.
Nitpick: it's the GB national grid, Ireland has an all-island grid which is separate.
> As just one anecdote, the mere presence of a GC made me stop looking at D more or less immediately.

That's a shame, because it is extremely easy to write GC-free code in D. One very important fact is that if you don't allocate using the GC (using "new", appending to a slice, etc.), *the GC will never run*. D provides you a ton of tools to make sure that you're not doing GC allocations, and if you are, where in your code they are happening (@nogc, -vgc and even -betterC).
It's getting tougher and tougher for me to NOT believe that sites like, say, Popsugar won't be completely algorithmically generated in the very near future. I'm sure people are already trying this in limited capacity.
It's not being mad at the world, it's hating the world, which is even worse.
I think you're forgetting that house foundations are enormous slabs of concrete, especially on a per-resident basis.
Robert Redfield is such a disgrace to the CDC
> [...] mutually assured destruction [...]

But that's exactly what this is not. Every big and scary gun the enemy might have is also a big and scary vulnerability that you could fix. While it's infeasible to have "perfect" security, you can absolutely make the enemy's offensive tools useless.

It's especially bad since when working offensively, you're incentivized to not fix issues. That might be OK for black hats & nations with "questionable" ethics, but how is this a thing in any democratic country? When state agencies are sitting on exploits and purposely not working to get them fixed, that's IMHO a kind of treason on your own country. It's leaving entry points open for others to find. And anything you can find, they can find too.

> Also, I'm not sure the clear line is that clear. [...] prevented an attack that kills 1 person, was it still OK to expose? 100 people? 10,000? [...]

The line is clear, because that attack that the "goodie" western hackers couldn't execute, and possibly resulted in deaths, might as well be an attack that the "baddie" hackers couldn't execute, resulting in people surviving.

Systems are generally designed such that working correctly is the intended best state (even for weapons support systems.) More work going towards keeping systems within their design parameters (i.e. not hacked) should be the best way to save lives. Even if we're talking about some terrorist building a computerized IED, there are likely systems whose correct functioning can help save lives - maybe some chemical detectors at an airport, or first responder management systems, etc.

It's also the only line that can be drawn on an objective standard. Regardless of whether you're the USA, EU, China, or North Korea - "systems functioning correctly to their design" is an universal standard. Do you think North Korea cares about any life that isn't their bonzo supreme leader?
NestJS vs. Spring Framework in Java – Which Should I Choose?
You make some really good points. Encryption advocates aren’t just pursuing some vague ideal though. The case they’re making is just that deliberately weakening encryption for one party weakens it for everyone.

In these discussions we should also distinguish between attacks by nation states and those by non state actors. It seems the argument for weakening encryption is mostly to catch or prevent illegal activities by non state actors who likely lack the sophistication to understand weak encryption fully. State actors would almost certainly know and avoid using weak encryption.

But it gets more interesting. Law enforcement is a perennial cat and mouse game. You catch today’s criminals harnessing weak encryption, the next generation of baddies will get smarter. The end result is weak encryption for everyone, without really helping society except to maybe catch the “current generation of baddies”. Advocates for strong encryption point out that this is an extremely short term and stupid thinking that destroys the protection offered by cryptography without really giving us all that much anyway.
Cool, it's great to know that it isn't abandoned.

I'm not sure why you'd say that their business model was a success. They were bought by Microsoft for Azure. I guess I wonder if a PaaS company can survive without getting the profits off renting the machines to people. Amazon, Google, and Microsoft all have PaaS options based around the idea that it comes bundled with the compute, not as a standalone open-source thing for you to use on any platform.

I guess the question is whether Porter's business plan is "make enough that a company that owns a cloud wants to buy us". Oracle could probably use a nice PaaS platform and team. Maybe DigitalOcean would like to beef up their PaaS offering by acqui-hiring a team with proven knowledge.
Update on work to improve governance at the FSF
even at the lowest demand, a large, grid-connected battery can only provide minutes of back up power, and that too for only a fraction of already low demand.

A storage battery is not a viable means of balancing demand and supply over a time period longer than minutes.

What's needed is not more batteries but better transmission, more hydro where possible and where hydro is not possible, more nuclear.
Would you say that these things aren’t aptly named?
Brazil Unveils Its Own Covid-19 Shot
This is a fun exercise, but if anyone is thinking about doing this for a project - don't - use a library.
I don't know that I agree. I don't really play games so I would be a bit lost here, but if you needed me to design and start coding a large distributed system I would happily oblige while he watched...
I think the conclusions miss the mark slightly and focus on a symptom of good bosses: they care about tasks from a state of understanding what is required to do them well, they have empathy for the challenges, and respect for the talent in completing them. Obviously the easiest way to get to this perspective is to experience it first-hand, hence the correlation between those who could do the job and being good managers of the job, but I don't see this as a requirement, just a common path.

I also don't see this a refutation that we shouldn't hire good engineers into management, rather we shouldn't do this blindly and as the single criteria. My best managers were all top quartile engineers but probably not top 5-10%, because they also cared about the non-technical requirements that a good manager needs to cover, and this inevitable consumes focus, effort and time that your best engineers don't want to allocate.

I'm a relatively new engineering manager (~3 years) and wrote about the traits of a good development manager from my perspective here:

https://www.codeleadmanage.com/articles/20200204-four_qualit...
When spying on and manipulating other countries takes priority over protecting everyone including yourselves, that is indeed corrupt or twisted or whatever word you want to use.

Fixing a software bug or vulnerability is unequivocally good, and the sooner the better, regardless of who thinks they need that bug to make their global manipulations a little easier. The realpolitik BS is just too easy of an excuse for any monstrosity, and the blowback is always worse than the immediate problem.
Right, here in Mexico theres no "at will " employment (company has to pay 3 month salary when they fire someone) and any employee can quit on a whim. Otherwise it would be a type of slavery. I love Mexican worker laws
Like sorting algorithms, they can be as complicated as you want them to be.

A merge sort isn't the fastest sort but it's pretty easy for anyone to implement. Something like a timsort is a bit more complex but is what a lot of languages use now-a-days.

Hash tables are in the same boat. A basic hashtable is pretty easy to implement. It's only when you start looking at things like ideal item placement and optimal filling that things start to get more complex.
What You Can Learn from Old Hard Drive Adverts