skysight-inc/HackerNews huggingface dataset:
> "I could easily argue Windows is easier than either one with WSL."

No you definitely couldn't.

The experience is sub-par, having to deal with the Win boundary sucks, it's slower, and many apps don't work. This is very visible when trying to use an editor that's not imbued with Microsoft's magic.

WSL is a glorified virtual machine, that's all.

Homebrew does not install a virtual machine. I'm not 100% happy with it, but it usually works fine, and the packages are up to date, which you can't say if you'd go for Ubuntu, whose repo tends to lag behind, especially on LTS (and you want to be on LTS if you actually want a usable system).

If you want to take it to the next level, we also have Nix running on macOS ;-)
Asking if the list is sorted was also the very first question that popped up in my head, because it makes the difference between a linear and a quadratic algorithm. Contrary to, for example, having the choice between an n log n algorithm and a linear algorithm, when given the choice between a quadratic and a linear algorithm, it is very rare that the right choice is the quadratic algorithm. (Semi-related: [1])

(EDIT: after thinking about this more than two seconds, the quadratic algorithm for unsorted input can become n log n by sorting the list, though that takes linear space. This would certainly be a clarifying question.)

The other questions would be less obvious to me, though I'd encounter them while thinking more than 2 seconds about the problem, I suppose.

Or maybe this just outs me as an ex-amateur competitive programmer :)

[1]: https://accidentallyquadratic.tumblr.com/
All good points, agreed with all.

> Sometimes just the fact that two parties are communicating is valuable knowledge and this Horcrux mechanism actually makes that easier to detect as it occurs across multiple systems.

Steganography can alleviate that red flag.
Great resource with references. Amazing work. A must read for anyone starting a PhD in related topics.
This so much.

I'm a senior SRE in Google. I've got myself a NAS to back up my photos. Guess how many weeks it has been before I got the first terabyte of stuff onto it... Wrong, I'm still procrastinating on it :(
In a week's time
I'd actually have assumed they expect these people to still be paid into their US bank accounts in USD (or your EU account in Euros or whatever), and not pay any income tax to Barbados regardless; effectively a year-long vacation visa, not actually a work visa.
I'm not convinced it should even be written by machines. Even at an assembly level, removing side-channels depends heavily on implementation choices for a particular chip. A constant-time (for a given chip) binary targeting some instruction set very well might turn into a timing side channel when deployed on a chip with newer/different optimizations, especially with respect to memory/data dependencies.
Yes, much better. This person should use Docker instead and output the RPM from the container. Reproducible as all assumptions are clearly stated and much faster to execute again if the source changes (using cached layers for most prerequisite steps).

Keeps comments close to the actual code, too.
> That’s an entirely different issue.

how is it different?

OP is claiming an address in USA for payroll as his residence but it isn't actually his residence. How is this not fraud.
Can I multiply a number by itself. This is a great clarifying question.

Not for a total of 220!
How would you like to tag functions or things with properties (like the "return value must be used" property?
It would be interesting to know the software stack used to build this game. I suspect it's a lot of JS, and perhaps some simple back-end. But I'm not an expert in game building, so I can be completely wrong about it.
Actually it seems to have flattened off:

https://www.statista.com/statistics/995107/pinterest-quarter...
This is more apparent for people with anxiety too. My mind shuts down during whiteboarding, yet people generally seem to think I'm smart outside any of those scenarios.

I've already been employed for several years at different places, doing a whole range of things, and it's weird that I have to practice some arbitrary exercises in order to demonstrate to a company that I can work. This has led to me landing at companies that don't require the bizarre jumping-through-hoops that filters for the desperate and "committed".

And so far, I've not only yet to see interview-style programming on the job, I've seen utterly atrocious practices.
Here's an example: you can register the output of a task into a variable, but if you use the same registered variable for multiple tasks even skipped tasks overwrite the registered variable. Say you want either task A or task B to run depending on the OS version, and do something based on that result in task C. Easy enough, just make two different registered variables, and have a separate conditional check for each registered variable on task C. But then, say it's only one of task A, B, C, or D, and task Z needs to know which one ran along with some other conditional logic. The conditional logic gets really hairy at that point. A way around this is to use the same registered variable repeatedly, and save its output via set_fact after each task, if that task ran, to a second variable. The set_fact module will only define the second variable if the conditional is true, unlike the registered variables which get redefined regardless. Then you can check for just the second variable later in the play and see which of the four tasks defined it. But now your 4 tasks have become 8 tasks of workaround repetition. This is just one of the quirks that starts to come up when a playbook gets more complicated than install x, write template y, done.

Basically, it's better to stick with tasks that stand on their own. As soon as you stick complex task logic in it becomes kind of a Rube Goldberg machine. That being said, you can pull off quite a bit if you just test rigorously and write defensively.
I've been trying some of the David Sinclair NMN + resveratrol stuff for a couple of months. I think I can safely state there has been no noticeable effect in my case. There's a guy on the internet been trying it for 6 months with seemingly some positive effects https://www.youtube.com/watch?v=yWx77ARQ9lo And it seems to do stuff in mice.

https://khn.org/news/a-fountain-of-youth-pill-sure-if-youre-...
I work for a government and have interviewed for other governments. They have Hacker Rank stuff too.
Who said that the inputs where integers? :)
Ubisoft to Remove Image of Raised Black Fist from Tom Clancy’s Elite Squad
Octo – Notes for Developers
Regarding 2, I would simply solve it, and then maybe ask about using the same number twice to fine-tune the solution.

In real-world problems I almost always think of corner-cases. So I think that the interview process is flawed - at least in my case - by assuming that not asking about specifics generalizes.

In general, if the interview process is designed in a way that reading a random article like this on HN helps you pass it, I'm kind of skeptical how well it's measuring future job performance.
I live in the mountains of Colorado and most homeowners do their part to remove fuels around their home. One major reason is insurers will require it.

It's unmanaged public land that tends to be most dense and fuel rich.
It still compiles (without warnings) and runs on modern VAX systems (NetBSD 9, gcc 7.4.0, VAXstation VLC):

claire: {4} cc --version
cc (nb3 20190319) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

claire: {5} cc mullender.c -o mullender
claire: {6} ./mullender
:-)
claire: {7} uname -p
vax
Yup, this. While I'm sure there is some corner of the US tech industry that doesn't leetcode you during interviews, it's getting smaller and smaller.

Companies that wouldn't have leetcoded you 5, 10, years ago are now doing so. The difficulty of leetcode questions is going up too.

Also, takehome problems are becoming more common - not instead of leetcode interviews, but in addition to.
Maybe it's the opposite, whatever was into politics, funneled into consumer brands?

Something something, identity, wanting to belong and signaling your position.
Like HN is some bastion of intellectual activity. This place is just reddit with 10x more self-importance.
>but the criteria we used to evaluate them also allowed us to avoid a lot of very bad candidates.

I have a hard time following this conclusion - how do you know this?
TikTok Acquisition Could Make Microsoft More Valuable Than Apple
The Ecosocialist Green New Deal Budget
Probably not the book you are thinking off, since it’s just about the AT&T incident, but “The Day the Phones Stopped Ringing” by Leonard Lee is a detailed description of the event.

It’s been many years since I read it, but I recall it being a very interesting read.
There's a bit more to the linked article than the headline.

> Chomsky said the current age is a “point of confluence of severe crises,” including the threat of nuclear war, climate change, a raging pandemic, economic depression and racial unrest in the United States.

Other events might or might not turn out to be more consequential in the long run, and it still be true that there are more things happening all at once than ever before.
Attrition.org
> You can boycott a business too if you don't like it, but that doesn't make it a two-way street. You have very little leverage over the business.

Yes I can? I can walk away from the interviewing process. They have invested in recruiting just as much if not more than I have in interview prep.

Their employees are paid just the same for technical interviews than their normal work.
If I was moving for the long term (whatever the legal requirement is for an address change), then I would report my new address. There is no requirement that a US company can only employ US residents to the best of my knowledge.
The issue here is contexts were introduced after the API for `http.NewRequest()` was guaranteed to be stable, so there are in effect (2) different versions of the api, one without contexts and one with.

IMHO it's a rock and a hard place; either you break compatibility, or you have a slightly more confusing API.
MLM = product sold by multiple levels of distributors.

Pyramid scheme = an MLM in which most income at any level is from sales that end with lower-levels rather than ultimately ending with actual customers.

The FTC investigated Herbalife in 2016, concluding in 2018, and determined that more than 80% of ultimate product sales were to individuals outside of their distributor network...even though their distributor figures were inflated by "distributors" that were just customers purchasing product for personal use at the highly-discounted distributor rate.

Herbalife is an MLM, but it's not legally a pyramid scheme, and the agency that investigates this (the FTC) said as much in 2018. (It did, however, fine Herbalife $$$ for practices that would have resulted in Herbalife being a pyramid scheme if the majority of its product didn't actually get sold to non-distributors.)
I always share and discuss this link with friends and family https://www.financialsamurai.com/the-110th-rule-for-car-buyi...

I bought a one year old used Mazda 3 from Hertz for 11k out the door. It had a few scratches and 40k miles. It still had that new car smell.
Preparing for interview?

I tend to avoid it except things that are "obvious" but I tend to forget, like you know - there's SOLID and everybody understands it differently and applies it differently, I never remember the theory behind it.

I believe going without preparation means that you're "pure" - you're talking only about stuff you know or understand, not just seen 10h ago on some blog.

When it comes to questions I really love open questions like design something or try find security issue
Why would you need to claim a local US address? Previous poster seems to be willing to tell their company "I'm working from XYZ country; send my direct deposits to bank PDQ."
Not just discuss, but fix too :)
I’M Addicted to Instagram Scams
> > given a list of numbers, return two numbers such that one times the other results in 220

> > is the list sorted?

> this barely qualifies as a clarifying question in my opinion.

Maybe I'm being too charitable but whether or not the list is sorted is very relevant to the first solution that came to my mind as I read the problem.

for i from 1 to n:
for j from i+1 to n:
prod = a[i] * a[j]
if prod == 220:
# found it
if prod > 220:
break
# don't waste time, assumes sorted
Reread their post again, there is no mention of lying about their address to their employer. Based on your other comments, it seems you assume that all employers wouldn’t maintain a salary if someone moves, which isn’t true (yes, it’s common for employers to adjust salaries for that reason, but it’s not an automatic given).
I enjoy silence, but when listening to music it has to be something without vocals. It can be any genre and depends a lot on my mood (ambient, techno, soundtracks, classical, etc) but it can't have any vocals on it. People talking or singing (in a language that I understand) doesn't allow me to think clearly.

For the same reason I can't listen to podcasts when working.
That reminds me of a story where a student couldn't figure out the properties of some physical system, so he ran a massive simulation of a universe with laws of physics similar to his own (but, of course, cutting corners whenever possible). This universe eventually produced a life form intelligent enough to figure out the necessary equations, at which point he happily copied them to his homework and forgot about the simulation.

...only to find it days later (= billions of years of simulated time), by which point the simulated life had figured out that their universe was written hastily and its laws were full of subtle bugs, like floating-point rounding errors showing up in physical measurements. Their technological advance let them move stars around, which they grumpily arranged in a message saying "your code sucks".

Can't find it at the moment, does anyone recognise the reference? It could be in one of these books, I suppose, but I don't have them.
OP is not claiming an address in USA.
> Also, what happens when you backup very-important-file.txt and VeryImportantFile.txt and then restore to a case-insensitive filesystem?

Both files get restored as independent files, as case isnt the only difference in those files.

(Did you mean very-important-file.txt and Very-Important-File.txt?)
City Journal is ostensibly about cities but is actually a conservative think tank. They are out to show that academia is being taken over by Cultural Marxists and that the custodians of great Western canon have fled to private industry.
Godoc.

This less applies to something needing to be "used" as much as something needing to have an action taken in a `defer` like `.Close()` etc.
I have been looking for something like this for a LONG time. Impressive! My ideal state is to be able to navigate anything and everything with VIM keybindings. Including the physical world :)
Project Euler exists to encourage, challenge, and develop the skills and enjoyment of anyone with an interest in the fascinating world of mathematics.
citation needed (that OP is claiming a US address as residence).
I'm not entirely sure. Your argument would be completely fine and correct had they actually been only tools or only technologies. As a company, they have policies - and policies can be based on ideals - and people can like or dislike those. Personally, for me, I am mainly an average Windows and Android user because it suits my needs the best - but what gave me my 'tribalism' was the exact same reason that you pointed out - that's probably the only tribe today where majority of the people don't suffer from elitism. While I was growing up, I saw that from both Apple users and Linux users (from the other end, but 'bitter' elitism). Me, an average computer user didn't like that behavior then, don't like it now. In fact, I hate any kind of elitism like a religion - so naturally that translates into my product choices - I never wanted myself to become them.

P.S. - I still gave Linux a try a lot of times (and have to use it professionally everyday anyway), but sorry, all the ones that we use at our workplace still look like unfinished grad projects, not a professional OS to me - I have tens of reasons for believing that, but it would initiate the same wars that we're talking against here).
The idea isn't that Erlang is infallible in the design of distributed systems.

The idea is it takes away enough foot-guns that if you're banging your head against systems written it in, you'd be banging your head even harder and more often if the same implementor had used another language
> Has complexity or efficiency ever come up in a team discussion? Nope. Do we have use for high efficiency solutions at scale? Not particularly.

Not only that - I often see atrocious code. Stuff like comparing boolean expressions against true/false. Stuff that makes me question basic competence of the person writing it.
Industrial farmers are a bit trapped in what they can sell and how they produce it. They generally can't change varieties much because the plants they're producing are what the factory wants, and anything outside that expectation will sell for significantly less. Secondly, industrial crop fields tend to be hyper optimized towards using harvesters, which don't easily permit intercropping or things in the field to get tangled. Windbreaks in the form of trees are already common in many areas.
I'd be interested in how you solved this, if you don't mind sharing. I tried writing a role to build source RPMs and it kind of works after doing some really dirty regex tricks, but only barely. I kept feeling that there must be a better way that I wasn't seeing.
He he, true, but we also use that word in native language. Thank you for remark :D
By the way, I don't think you should take this being downvoted as disagreement (I understand that what Rowling says is unacceptable and I expect most people would agree with that) but rather that people are not interested in dragging this proposal into a gender discussion. I'm also not sure it's helpful to try to erase everything any disagreeable person ever did from history: if a slave owner had a hand in writing the constitution, that shouldn't mean the constitution must never be referenced. For all I know the author of Alice in Wonderland might also have been a trans hater and we shouldn't talk about AiW, either. You can boycott sales and create awareness to try and make a difference, but let's not drag discussions about something completely different into a political discussion when the name is a reference to a fictional story written by someone who later turned out to be transphobic.
They are hard, but we do have some. And even the most naive physical activity level vs all-cause-mortality studies show a mild effect at best. No controls.

Common sense would tell you that physical activity has to spuriously correlate with healthiness. Many conditions will simply render you unable (or less able) to exercise.

So what are the odds a properly designed longitudinal study would actually yield a bigger life expectancy increase? Seems very unlikely to me. The ones that we do have set an upper bound as far as I'm concerned. Almost certainly has to be lower.

I understand that you're talking about a specific kind of exercise and most of what's out there doesn't speak to that. But nonetheless I'd be very skeptical given how little effect has been shown for general physical activity. And we do have plenty of similar studies showing random benefits of various exercises in a clinical setting.
Your platform teams monitor data quality for an upstream ETL?

All of the platform teams I’ve worked with are concerned with monitoring things much lower ok the stack than data quality.
Definitely not new, the double-slit experiment in 1801 first hinted that this might be the case, and then Heisenberg calculated exactly how 'not absolute' observed events are based on the wavelength (aka momentum) of the photon you're using (in 1927).
I agree that much of this is tribalism that exists in other parts of our culture (Ford vs Chevy, etc). However, in the 1990s, at least on the Apple side, it felt like we were fighting to hold on to resources that would go for supporting our platform. Developers, understandably so, were leaving the Mac. The web as well as many other historical changes that readers of this website are familiar with changed the conversation. Though I do not think platform fanaticism is justified or helpful, does this behavior stem from a legitimate issue, even if now it is a historic footnote?
Some have been over-packed - especially from third party bookstores. But new books from amazon, are hit or miss, sometimes being thrown in with non-book items. (think of packing the eggs with the hammers)
Though it may not seem like it at first, the problem is ideological. Somewhere along the line CA's left/progressive ideology picked up a deeply ironic tenet that the world must remain absolutely unchanged by human habitation; that whatever the state of nature was on some arbitrary day in the past, we have a moral duty to keep it that way. The strongest example of overreach is that absolutely no species may go extinct, no matter how ill-suited to survival they may be (I'm looking at you, pandas). Other examples that are probably entirely defensible on rational grounds are that the sea level must not change at all; that carbon must remain distributed in the crust and atmosphere precisely as before.

But, more relevantly, we also see this belief at work on both sides of the fire [non-]debate! On the one hand, whatever faceless NIMBY/political force stands in the way of preventative burns says you're not allowed to change the forest by burning it: that would be destroying nature and thus it would be morally bad. But TFA justifies its position according to this tenet too! It says that in "prehistory" (I guess it means pre-1700 or so) so many acres burned, and therefore it is obviously right that so many acres burn again today.

The problem is that this belief, even when it reaches correct conclusions, is deeply anti-scientific and even anti-rational. There's no rational reason to connect morality and stasis. As long as this is a tool for making choices, it doesn't matter how often it's used for making good choices (preventative burns); all those who use it will still be just as culpable for the damage done on the side of bad choices (no burns).
> US salary

ok i read that as 'salary paid to a US resident' , then not sure what 'US salary' means. It would be 'Barbados salary' if they are getting paid in barbados.
> how do you know your experience of the world cannot be superposed?

For your experience of the world to be superposed it would mean that you carry out a quantum experiment with two mutually exclusive outcomes |x> and |y> and you actually experience the superposed result |x>+|y>. This would be like opening the box in the Schroedinger's cat experiment and actually observing the cat to be |alive>+|dead>, instead of either alive or dead. Maybe it's possible, but such an experience has never been reported.
Testing quantised inertia on the emdrive – M.E. McCulloch (2016)
I'm sure there is a means test + some proof of your job to get the stamp, which probably dramatically limits the the odds that someone is going to become destitute and turn to a life of crime in some foreign land.
At first I thought it was a joke, but it ended up being a good read.