skysight-inc/HackerNews huggingface dataset:
By all means, if the specific algorithm isn't important I would totally be onboard with you in naming it after what the purpose is instead!

Feels like the difference between inlining quicksort vs. calling quicksort() vs. calling sort(). In some situations you really are on a level where you need to know you are calling mergesort() and not quicksort() but some are fine with sort(). I doubt there are many examples of code I'd argue for inlining.
"Judge on instances of success, but patterns of failure"
So, a sizable portion of Indians and Chinese folks? Many Indians have spoken english most of their lives, but definitely tons of Chinese (and other) devs where ESL is a very real thing.
That argument can be used in a lot of contexts where people wouldn't. Regardless/irregardless, literally, gif, decimate, etc.

And I'm not saying don't say it's like one, I'm just saying it's technically not one.
There's an HN discussion about this Colorado requirement now: https://news.ycombinator.com/item?id=27546384

Unfortunately it looks like companies can just state wide ranges (which don't help applicants understand the market any better) and they can also omit other compensation elements beyond the base salary component (stocks, cash bonuses). That makes the disclosed information not very useful.
I'm not sure a middle man is needed like this. Can't a company put a job ad on their site, publish the actual salary range, and make the interview process as short as possible? Standard job boards can help aggregate this.

The "solution" to the big problem might be a 10 page PDF (for reasonable fee or free) to engineers on how to play the game to their own advantage. Of course no one really profits big from this enough to keep a startups lights on. But if all developers played the game well it helps everyone, even the few that don't play it (like a vaccine).
Hustle mentality is the world's biggest pile of dogshit.

I'm continually perplexed how some folks trade their happiness and well-being for perceived improvements in status or money.

I did and I'm not doing that bullshit again.
IMO, to some extent yes. Just like they'd be 'kept out of the loop' in many other cases for not having the best communication. It's not inherently fair but I don't know how to solve that problem either.
> ruling establishment in China enjoy majority support

We don’t know the support because anyone who dares to speak up is silenced. People are too scared to say they don’t like the government.

The claim is that the CCP has 95% approval rating. But the local governments have a 10% approval rating.

The local governments are The Central government. Nothing the local governments do is done without The Central governments oversight and approval. So that 95% approval isn’t real. But I sure as hell wouldn’t say I disapprove if I lived in china.
>While no country is perfect, some are far more egregious than others.

America's is the worst. Perhaps China and the EU should band together to stop US hegemony and terrorism globally.

Edit: Cool, so we can say that everyone should gang up on China for dubious reasons. But using that same logic for the US gets the post flagged. Can't help but laugh at the hypocrisy.
At a high level, Managers are responsible for making their team effective at delivery and make sure their people are growing. Directors are responsible for making sure the right teams exist, that they have the right goals, that they are coordinating effectively and that there is enough opportunity available for people to grow and the right number of people are growing at the right pace to fit what the company will need in the future.
Because getting some leads with less certainty is better than getting no leads with higher certainty in a tight market? Wasn't this addressed in the post?
This is a statute passed by the Missouri House and Senate, and signed by the Governor. It wasn't an action by the Attorney General.
Well deserved. Apple Daily is not pro democrazy but pro-chaos. It routinely manufatures fake news and rumors that only matched by the mainstream fake news.

I'm all for pro democrazy. But there is a clear line between pushing a democratic agenda for the benefit of Hong Kong people and that of provoking dissidents at any opportunity possible with whatever means possible, to foster agendas by local tycoons and foreign intelligence agencies, which eventually cost Hong Kong people.

If you have never read the published paper on fostering dissidents for "academic" research in Hong Kong pease search for it.
> “which we have unthought of”

Someone has to make this into a meme. It will definitely be my excuse for my next multi-hundred million dollar value destroying software bug.
…and for Americans, not getting in trouble with the SEC.
I agree wholly, but to understand why people do this, the benefits that come with such a practice can't be understated.

There can be big marketing wins in associating yourself closely with your brand.

It's a big risk you take, and you must be confident enough in yourself to take it, because it can be soul crushing if your startup tips over.
China specifically agreed under the terms of the transfer to allow for Hong Kong's continued independence in domestic matters until 2047. Beijing is in flagrant violations of its international treaty obligations.

The New Territories were under a 99 year lease, but Britain was under no obligation to transfer Hong Kong Island and Kowloon back at any time for any reason. They graciously agreed to return them for China, but in exchange Beijing made explicit promises, which it's openly disregarding.
This one is very recent: https://www.youtube.com/watch?v=OXtq4a8829g
> Can you tell the kernel to block a thread until an io_uring state change occurs?

The same syscall used to inform the kernel that you're submitting N new operations can also specify that it should block waiting for M completions. One of those completions could be for a timeout command that was previously submitted.
https://law.uq.edu.au/files/60164/afp-raids.pdf
For the most part I take no issue w/ the style of comments that act as a statement of intent.

It only becomes a problem when comments are used to paper over the author's own indifference to making the code itself legible, and that's where I expect critiques like this truly come from. Comments without legible code do not help, as the comments are not a proof of correctness or verification that the author's intent has been carried out. You still need to read the code to understand the program.

Code legibility is not unlike legibility in written language. Short sentences and paragraphs, clear transitions, well-defined hierarchy, consistent structure. Say more with less. Comments are often like footnotes: they elaborate upon the author's intent, provide a mental palette cleanser, elaborate on a digression in a way that limits distraction, or occasionally break the fourth wall.

Comments are improper when they try to serve other means. For instance comments about invalid uses of a function/class/etc. when the type system can be used to prevent illegal usages of code. Or when comments are used to explain what is happening in extremely branchy, anti-modular, or otherwise illegible code.
That's true, so there is such a thing as taking it too far. But a lean/tilt in that direction is something I appreciate.
I did. Wtf?
ESL doesn't mean that you can't read or write english. Amazon requiring the devs to be able to read and write english is not really surprising, I would consider it the bare minimum.
It sounds like the real lesson that needed to be learned was taught to whoever decided that a system without any fault-tolerance that reboots whenever a keyboard is plugged in was fit for production.
Just got mine :)
> While no country is perfect, some are far more egregious than others

Many countries will fit that bill ask yourself who destroyed people in Iraq, Afganistan and who supports Saudi Arabia for suppressing dissent with impunity, whats the status of minority and their rights in many of the countries mentioned above. Who helps prosecution of Palestinians.

China has its own flaws like any other country. They are the target right now because of their relative economic success and ruling establishment enjoying majority support from its own population, which threatens some specific countries.
In 2019 they raided the Australian national broadcaster's headquarters, and the home of a journalist, because of 'national security secrets' [1].

A couple of days ago, a 21 year old journalist and comedian was arrested by a counter-terrorism unit because he helped make youtube videos criticising a government official [2]. Nothing serious about national security is required anymore.

The laws in Australia are terrifying; the government has extraordinary powers that can force you to build encryption backdoors and you're not allowed to tell anyone, not even your employer. So who knows what happens that the public never hears about.

People were also arrested for making facebook posts just talking about covid protests.

[1]: https://www.abc.net.au/news/2019-06-05/why-raids-on-australi...

[2]: https://www.michaelwest.com.au/tamed-estate-arrest-of-friend...
Separating MNIST digits using Optimal Transport
> They graciously agreed to return them for China

Sorry, but you can't 'graciously' return a colony. It was something they never should have had.
I setup an apache webserver one time with a single index.html with the word "FOO" in it.

It was a placeholder until the software dev team responsible for the server could deploy software onto it (they asked it be setup with something in the index.html so they could confirm it was running, they didn't care what)

The networking team in advance of that wired it up to some load balancers.

They took an IP which had formerly been a decommissioned cluster of webservers serving the main website for the entire company (an internet retailer named after a river in some other country, you've probably never heard of them).

The DNS loadbalancers found the old IP (it had never been deleted from their configs which was the root cause) was now live and it was REALLY fast, so they shunted most of the traffic over to it.

Created a sev1 outage for "users reporting 'foo' on the website"

I'm happy I kept it professional that day.
You sir were a flying monkey.
I've been struggling with the same issue. I have a team lead who, if they have no good feedback, will fabricate an issue with my code during PR reviews, no matter how trivial. I sometimes have to take a step back and laugh. I understand some people may be under the illusion that they must give feedback no matter what, at the risk of seeming unsavvy, but it's starting to become ridiculous, and it seems more about competing with me rather than giving me genuine, constructive feedback.

I make sure to thoroughly document my changes in my commit messages and sometimes in my comments, especially documenting who requested the change so that there's a nice paper trail. I also push back often, but the mere act of responding to feedback that does not seem honest from a team lead is traumatic.

My problem is: how do you report such a passive-aggressive person? A single request or question on its own seems benign and not particularly harassing, but the overall trend is a huge red flag. To be honest, I'm not sure much can be done.

If you decide for whatever reason that you cannot leave, the best way to deal with a passive aggressive person is to erase from your memory that they are passive aggressive at all. It is a test of wills that you will win, just don't lose your cool. Never forget that a passive aggressive person is a fundamentally insecure person, and then you will always have the upper hand.
It's a straight line ;-)
That's not standard Chinese. Is it Japanese?

You could write SSS, SS, LL and LLL in English too.

By the way, it's 'chock-full' not 'chalk-full'.
I saw a lot of this when I worked at Google, both with internal-facing products and external-facing ones (software, though, not hardware). Organization A would build their own query engine, for example, but then organization B would build their own competing one because A's solution didn't quite work in the ways that they wanted it to. The result, of course, was that now you have a proliferation of query engines, and if you're a neutral party, you just end up being confused about which to pick since they all have tradeoffs, and none of them have sufficient headcount to build out more complete functionality. In terms of external products, there's a long line of competing chat, video calling, payment, etc. solutions, most of which have been killed off by now.

My takeaway was that I wish leadership had thought more critically about how to invest resources across organizations to build fewer but more adaptable products, but I don't think the right incentives existed :/
MIT 7.016 Introductory Biology, Fall 2018
https://www.youtube.com
/playlist?list=PLUl4u3cNGP63LmSVIVzy584-ZbjbJ-Y63

MIT 5.111 Principles of Chemical Science, Fall 2014
https://www.youtube.com/playlist?list=PLUl4u3cNGP63LOmB3_O0x...

Textbooks (free PDFs available on gen.lib.rus.ec):

Lehninger, Principles of Biochemistry
https://www.macmillanlearning.com/college/ca/product/Lehning...

Molecular Biology of the Cell
https://www.ncbi.nlm.nih.gov/books/NBK21054/
1. Iterate through all blocks of comments.
2. Determine if there have been updates within the block of comments first (one line of three updating, for example).
2. For each block of comments, find the proceeding block of code.
3. Compare the last update of comments to the last updates of the code.
4. Warn the user when it's over a threshold.

Something like that?
> A study done at Stanford University shows that white roofs may actually increase, not decrease, the earth’s temperature. White roof membranes have high reflectivity that directs heat upward into the atmosphere and then mixes with black and brown soot particles, which are thought to contribute to global warming.

https://m.huffpost.com/us/entry/us_2901288
I was one of the people that saw the 1000 block limit and just signed up to avoid the hassle of even thinking about it.

I wonder how the total numbers of people that did each of these things compare.
We have had sanctuary states and cities for years that have said they will defy federal law on immigration. The president has been set.
I suspect you're referring to

> The Patagonia Pro Program is a membership program for qualified outdoor professionals, environmental grant recipients, and outdoor industry partners.

The forestry service is a very strange example to call out because their employees aren't at all prominent and most well-off consumers will visit national/state parks instead of national forests (which are awesome, but much lower profile) so I doubt many of them ever see forestry service people wearing the gear.
I think the concern is that if you can manage an exploit that injects data into an io_uring submission queue, you may be able to plant an exec call or similar. But such an exploit would need to rely on a well-formed malicious SQE being submitted to the kernel without being overwritten by the SQE the application intended to submit, which probably requires also gaining control over the application's pointers for where in the queue it will write the next SQE it constructs.
In my org at least, most of the time the doc is distributed ahead of time. It gives people a chance to spend more time on it or start adding inline comments. But we still start meetings with reading for those that don’t read ahead of time.
Flash loans are not relevant to the uniswap TWAP oracle, which ignore any transactions in the current block. That oracle was written specifically to be resistant to manipulation and I don't think there's any consensus not to use it.
I don't know what you mean by "real investments" - it sounds like you're saying that since you don't know how to do it perfectly (e.g. buy a stock because you have some insight or have done some research that convinces you it will go up tomorrow), you won't do it at all. Finding an investment that outperforms other investments, yeah, that's hard. But you don't need to do that, you just need to beat inflation. Just put a little away in something relatively safe (your employer's 401k or an index fund perhaps) every month and ignore it. That's what 95% of the middle class does.

If that's odious to you, if "relatively low risk" is too risky, you might consider some kind of annuity. One popular type is called Whole Life Insurance. Basically, you pay a set amount in each year for X years while you're working, and then when you retire they pay you back a set amount every month until you die. Some people consider them a ripoff, because you could (probably) make more by investing in the market yourself, but if you are adamantly opposed to the market, it's an option.

But, be aware that some Whole Life policies are much worse than others, and all of them are sold by pushy salespeople with slick suits and fancy cars who will happily goad you into signing something that's not right for you. There is absolutely no scenario where you get a safe, assured retirement without doing some work for it. But in practice that means few hours of research every few years, not a full time job. Good luck.
What city in the USSR was equivalent to Hong Kong? I am not aware of any cities in the USSR that enjoyed freedom of the press and an independent judiciary at the level that Hong Kong did prior to the NSL crackdowns.
It was, shouldn't be any more (IIRC it got enabled about 2 years ago?)
Baicells will be a big partner with FreedomFi and probably a preferred antenna/modem vendor for the 5g small cells which CBRS is good for.
It's a promo for the new season of Silicon Valley.
I have no idea about other people's struggles, just sharing my story here and why I feel there is not enough being done for founders specifically. The things you list are things that most psychologists or therapists have experience with, and that is my point.
After 2 months, don’t worry, just try to settle into the environment. Hopefully, After a settling in period, no doubt you will find a lead time in some task, assuming you are able, and your focus will re-adjust to the task in hand s as no less on your self.
Try to adjust to long term focus (2 months is really a short time !) and if you’re still feeling lost in 6-8 months, then perhaps reconsider.
Pay less attention to you colleagues progress too, if you’re not working on the same tasks, you’ve probably little idea how dimple or challenging their tasks were, focus to you tasks and communicate, ask for guidance and feedback within the teams your working with, that can work in many ways!!
It’s number two trending so it sure worked!
I work in electricity brokering. Can relate to having to install networking infrastructure in below zero weather :)
Is there any recommendation for self hosted version of mailtrap.io?
This is a great reminder to make sure your tests are phrased in such a way that if a layperson comes across it, they can ignore it, sort of in the same way we came across "This is a test of the Emergency Broadcast System."[1] And not "Big Brother Is Watching."[2]

[1]: https://en.wikipedia.org/wiki/Emergency_Broadcast_System

[2]: https://www.google.com/search?q=facebook+oculus+big+brother+...
This is a really thoughtful comment, especially considering your personal experience.

There's a hard problem here: what should be done with people who interact poorly with others but are talented and driven? I don't know, but exiling them seems like a shame. Training them to play nice may not be possible.

A reasonable option may be recognizing that some talented people are "difficult" and providing students with a path around them. Keep the professor who makes students cry but don't require anyone to take his classes, ensure that there's a path to a degree that goes around him.

We should keep in mind that there may be no correlation between being a douchebag and being talented but there's also no correlation between being nice and being talented.
The right to govern extends from the consent of the governed. It's not a question of who "should" own Hong Kong based on some centuries old history. It's a question of who the people of Hong Kong choose to govern them. Had an open referendum been held in 1997, it's almost certainly the case that the citizenry would not have voted to return to the tutelage of the dictatorship in Beijing.
Jerome Powell and Bitcoin and Weather = BitcoinForecast
It was a dark and stormy night during the pandemic..

Jerome Powell, chairman of the Federal Reserve, stumbled across Bitcoin.

Then, bitcoinforecast.io was born.

I'd love to hear what you think! Please let me know of your feedback and thoughts in the comments below.
Except when doing diffs, then changing something in the table blows it up entirely (well, makes it pretty useless).
Speaking of your tests - your general coding skills one has an actual bug in the code, as of a few hours ago (I sent an email about it, hopefully it gets fixed)
Does this discourage attendees from reading/thinking about the topic ahead of time?

If you’re the presenter or organizer, you’ve put all of this energy into a document. You’ve thought about it for days or weeks or months. And now meeting day is here, people sit down and read your document, and immediately, there is a discussion. Those people who literally just finished reading about the idea 2 minutes ago now have thoughts and opinions on it.

This happens regardless of the existence of documents, of course. But I wonder if waiting until the meeting to read the document encourages this sort of immediate feedback from people new to a topic.
This comment is why I said it's important to draw the distinction between narcissists and non-narcissists with extremely high standards.

Narcissistic abuse coming from either sadism or narcissistic injury is a phenomenon specific to people with NPD or perhaps subclinical narcissism

My old boss, for example, had little indication of having NPD. If someone was disagreeable and did zero to feed his ego, yet their work was exceptional, that person would get praise. That is not the behavior of a narcissist.
I imagine it's &TcpStream because the TcpStream is used by both the reading and writing halves. There are helpers to split this [1] but maybe carlleche avoided them in this example for simplicity. [edit: oh, I guess the real TcpStream is actually like this. [2] The syscalls don't require &mut of course because that state's in the kernel, and I guess they didn't choose to add a &mut to enforce reasoning about the state. But in real code you'd wrap it in a buffer, and that would require &mut anyway.]

I don't think making it &mut TcpStream would solve the problem. It's not that something else is reading between a parse_line() call's read_u32() and read_exact() but that the parse_line() future is going away entirely between those and the read_exact() never happens (or never completes, as it's probably not atomic either). When that happens, it leaves the TcpStream in an unexpected state (halfway through a line) and the next parse_line() is misaligned.

But I do think having one task which owns reading from the stream to completion would solve the problem. If it dies, the whole TcpStream does too. It could talk with other tasks via channels with atomic messages. (Although I've been trying to minimize my use of channels right now because neither the tokio crates nor the futures crates offer an unbuffered/rendezvous channel, and I don't like sticking extra buffers in the middle of everything.)

[1] https://docs.rs/tokio/1.7.0/tokio/io/fn.split.html

[2] https://docs.rs/tokio/1.7.0/tokio/net/struct.TcpStream.html
Love the sick UI! Super cool how it all came together!
Yeah. I'd name the function something like `earthDistance` or `sphereDistance`, and then still have the "what" comment saying "haversine distance formula" inside of the function.
I have no idea but maybe west Germany?
Given most of the pro democracy groups are funded by the CIA/NED, I really doubt that.
Interesting typo--president. I think you meant precedent.
Thanks Brayden. It was a fun project I built with React and Next JS.