skysight-inc/HackerNews huggingface dataset:
> Even for high-paid white-collar jobs, you typically don't get a lot of paid time off in the US. Two weeks, typically

Two weeks at 1 year, three weeks at 5 years, and 4 weeks at 20 years, typically. (That's tenure at one company, not total experience.)

https://www.cnbc.com/2018/07/05/heres-how-many-paid-vacation...

EDIT: And note, lots of workers don't get separate paid sick leave, and those that do get very small allotments compared to anywhere else in the developed world.
That is something that puts Linux off. Linux doesn't handle esoteric topologies very well without some complex xrandr instructions
One thing I've been wondering is whether is possible to power a ground effect vehicle from overhead wires. That would sort of be like a hover train. The "tracks" would be cheap to build. Just need to compact the ground to a smooth surface.
It probably is easier to reserve an array item for that sentinel marker.

In either case, it requires your array to be writable, and you’re giving up having multiple searches through the same array operating at the same time.

Also, on modern hardware, the ‘ran out of items’ check is essentially free.

Nowadays, the only realistic use for this would be a case where you have a fixed-size array that you search frequently, where the same end marker can be used all the time, so that you can add that sentinel marker once.

I’ve a hard time thinking of examples, but do not rule out cases inside OS kernels or search trees for computer chess or similar games.

A variant would be to use this in C, and, when the program allocates N+1 chars to hold a string of length <N, allocate N+2 chars, and set the last one to zero, to ‘guarantee’ that later strlen or strcpy calls don’t run on forever, even if a strncpy copies N+1 bytes. I don’t see how that ‘guarantee’ would add much, though.
I, as pedestrian during a windy day, would very much prefer anal regulations that would prevent a cat ladder falling on my head.
> The only factories able to produce the required volumes are, by virtue of great planning by China, there

I take a nuanced view of these things. I understand that in vast swathes of rural China job opportunities like this were until recently the only way to make a decent living for many people (most of my family is Asian, and I have investments there). And I also know that most companies could not in fact replicate that technology.

But Apple is rubbing everyone’s nose in their social virtue. If they really believed what they were saying they could definitely replicate a factory like Foxconn’s in Texas for, say, $100 billion. Dell couldn’t, HP probably couldn’t, but they aren’t telling me how to live my life either.
From what I've seen of exorcisms on TV, they certainty do look exhausting.
This sort of thing? https://ieeexplore.ieee.org/document/4323282 My physics is fairly limited, but I'm not familiar of many cases where induced radioactivity has ever been a concern, or neutron bombardment has caused physical damage? Hoping for pointers :)
Python Bindings for the Chromium Embedded Framework
Taking IDLE outside of the standard distribution and make a separate download link for it, isn't in anyway going to hurt Python at this point.

Just move tkinter like what they do with typing package is good enough to address everyone's need.
Great story, thanks for sharing!

"The first week of don's project he spent in writing his own assembler."

And my respect for Knuth goes up even further :-O
Facebook Messenger Bot w/Ruby on Rails
I found and reported decent errata in a popular Django book this year and got no reply from the authors.

I heard the book has not been financially successful enough. That said, it feels like books should have some kind of GitHub style community errata by default.
> The employment relationship is inherently adversarial.

Not in our industry. Maybe so in retail, and minimum wage jobs, where margins are thin and workers are more of a commodity. But coding is something else. For us, it is, at worst, an impersonal business transaction, and at best, a productive partnership for both parties. If you believe that all employment is adversarial, you have not yet found a good boss or employer, but more importantly... that perspective will prevent you from having enough trust in your employer to find a healthy working relationship that allows for mentoring and personal growth within your career.
This isn't a paradox. once it's released it's not a bug anymore, it's just behaviour. document the behaviour, but breaking compatibility with previous versions is a bug. it doesn't matter how obviously wrong the previous behaviour is.
Curious how no one here is asking "WHY don't they want Uygurs or Tibetans?"

I wonder if it could be due to the bombings [1] and mass-stabbings [2] these people carry out against Han Chinese from time to time. And the fact that Foxconn workers are primarily Han Chinese.

Of course it might also be because Foxconn is run by race-haters who hate Uygurs for their Turkic features and are jealous of Tibetans for their high altitude hemoglobin adaptations. Can't rule that one out. Might have nothing to do with bombings/stabbings.

[1] https://www.independent.co.uk/news/world/asia/bomb-blast-in-...

[2] https://en.wikipedia.org/wiki/2014_Kunming_attack
Free Gift Card Generators Do They Work?
There was an HN thread the other day about how some (many?) autistic people don't think there is anything wrong with them and that they wouldn't "cure" themselves even if there were a "cure" because from their point of view there is nothing to cure and they are happy the way they are.
It's one thing to have a reserve for emergencies and another to tap into that reserve because you want to take a few months off before looking for a new job. Though absolutely nothing wrong with that if you're in the position to do so and it's a priority.

But I've always taken a lot of vacation, including a number of trips up to a month while working. The one time recently when I had a job lined up I did push things out a few weeks which was just fine. The time before that was in the middle of the dot-com bubble bursting and I considered myself lucky to get something fairly quickly; it could easily have been many months+.
Perhaps the GP was referring to the role that social norms play regarding whether some abnormality is considered a disease or not, and the ensuing debates about whether or not is should be.
That’s one of the best-designed websites I’ve ever seen. Good writing too. But wow, Medium should just hire you to do a redesign.
It must be considered that there is nothing more difficult to carry out nor more doubtful of success nor more dangerous to handle than to initiate a new order of things; for the reformer has enemies in all those who profit by the old order, and only lukewarm defenders in all those who would profit by the new order; this lukewarmness arising partly from the incredulity of mankind who does not truly believe in anything new until they actually have experience of it.

-- Nicolo Machiavelli (1469 - 1527)
I worked in a textiles factory in IT, one astonishing thing I found soon was, dealing with the blue-collar people was way easier. People did what you asked to, and were smarter.
$5M – The costliest drug on the planet will treat infants with rare disease
Yes, multi-threaded access to the array would invalidate the assumptions made when designing that algorithm, as so often happens.

And copying the array would cost more than you would save, so you would want to be sure that you don't have to do that. In general a growable array implementation will double the storage of the array (or multiply it by some other factor, such as the square root of 2) whenever it does grow it, so that it doesn't immediately have to grow it again. You could just arrange for your implementation to grow whenever there's only one storage location left, and then you could use this trick when searching it.

But recall that this algorithm was designed in a context where neither of those constraints apply.
Sorry for generalizing. In my experience, it was very rare for people to use up all their vacation, and people were routinely used to being denied vacation time for whatever business reason, both at my company, and previous companies. Don't know how common it is across Silicon Valley, but it exists at least.

We had to push people into taking vacations in my team, and we never, ever denied vacation requests, as long as people had earned the time off.

I really wish people were more pushy about their vacation time, because they've earned it, just like they've earned their salary. Not taking vacation time is essentially giving money to your company, which is dumb, because you get nothing in return.
if slack becomes your hub and you start adding in integrations the app limit (10) can hit you pretty quickly as well
I'll bite, if racism is so accepted in other places doesn't that just make them all wrong? Or are you contending that racism has value?
Does it matter? Your premise is "they are shipping this bad thing on purpose" - what would be the point of making it better and spending more money on it if you were making it bad on purpose?

Apply Hanlon's Razor, and dont assume everyone has a grand plan.
Eh, not necessarily. In my field (tech-related), I make substantially more than I would in the Netherlands and my tax burden is also substantially lower. I get 4 weeks of PTO plus 10 holidays every year and I never use it all. That is certainly not what everyone would prefer, but it suits me just fine.
I’ve worked on a human performance assessment program for nearly 10 years.

We induce stressors cross the spectrum to better inoculate volunteer candidates from stress and enhance their resiliency.

They are often suffering from sleep deprivation/deficit.

We have very robust safety procedures in place.

After observing hundreds of volunteer candidates in depth over nearly a decade, I would say that sleep deprivation/deficit is an exceptionally and deceptively dangerous problem.

Akin to carbon monoxide poisoning in a way.

Members of the military and first responders may need to operate for extended periods with little to no sleep/rest. And that includes physicians in training for things like mass casualty scenarios.

So it IS worthwhile to possess “reference points” of personal adversity to manage decision making while stressed.

But to LIVE a sleep deprived life of a physician resident is nothing short of madness and a recipe for failure.

I’ve been under Assessment. And it certainly feels like it ages you prematurely. And anecdotally, it appears to do so to many of our candidates. Temporarily.

I’ve had my telomeres measured a few times.

Fortunately, active effort to target 7+ hours of daily consistent sleep, fitness, nutrition, and other choices seem to play a factor in outlier telomere length.

Or I’m just lucky.

Just because we have always done it this way with residents, doesn’t mean we should.
The article names Asuthosh Mehra as the leader with 0x$207.f0 -- but Knuth's site lists two even higher: including Udo Wermuth with a whopping 0x$772.58.
https://www-cs-faculty.stanford.edu/~knuth/boss.html
Steganography software for embedding data into image
Why Apple? Foxconn makes _everything_. Yet it’s always ”iPhone maker”, never ”xbox maker” or ”Hamilton Beach toaster maker”
Some of them, surely. Some of them, surely not.

We're talking about the US in this thread. Saying, "Well what about the Korean border?" like it's all that relevant is a waste of everyone's time in a conversation about the US borders. I'm not espousing a universal policy. I'm saying US border politics are currently (and historically have almost always been) about racism, and it shows.
Cynthia Haven Interview About Rene Girard
Or a cat.
Bitcode for the MacOS App Store would make sense if Intel ever gets its head out of its backside and was able to ship the wide variety of processors Apple wants. Then they could be optimized at install time for the exact processor on your Mac.

I’m not sure it’s really worth it today but this support would give Apple air cover for a future intel-arm transition.
That's what I don't get about Apple. You're selling a premium product that in some cases costs over $1K. How much labor does it take to put one together, amortized per millions of them? An hour? Would paying $35 to a US worker for that hour be out of line? I mean, this is the company that chooses to virtue signal on a ton of different first-world issues. How about not having your main, highest margin product made by 16 year old children in a sweat shop, earning starvation wages?
For me personally blue collar work, loading stuff, offloading stuff, hacking road covered with ice with bare hands for days was a lot easier than programming, project management and leading a team. So it's not so black and white for everyone.
Wp-toolkit: Modern, object-oriented WordPress plugin and theme development tools
PVC is extremely common for plumbing and should not, by it self, cause any issues. Copper pipes are very expensive and leak copper into the water, which can have some negative affects on health. The middle school I went to actually had to bring in bottled water because the copper quantity in the water was too high. Copper pipes are also much louder.
> If somebody "gets" 2 weeks of paid time off, but at the end of the year their average salary is (50/52)% of someone who gets no PTO, are they really being paid for time off? It doesn't look paid to me.

How much does it cost an american worker to take 2 weeks off? If that means unemployment, new job search and your own health care payments, it might be much more expensive than that.

> median wage ... OECD

any idea how they calculated the purchasing power for the US?
Whether ASD is a disease or illness is still out for debate [0].

What most seem to agree on is that “Autism spectrum disorder (ASD) refers to a group of complex neurodevelopment disorders [1].”

Is a disorder a disease? While the terms are often used interchangeably by us laymen, the DSM-5 distinguishes the two [2].

[0] https://www.psychologytoday.com/us/blog/abcs-child-psychiatr...

[1] https://www.ninds.nih.gov/Disorders/Patient-Caregiver-Educat...

[2] http://www2.hawaii.edu/~heiby/overheads_classification.html
This is insane. Oppression and killing of one group by another is a problem I don’t care what your culture is.
With smartphone deposit-by-photo, you could cash the check [if it were real] and keep the check to display. (Totally agree that if you had to send it in that keeping the check is worth well more than the value of the check.)

PS: It took me way longer than it ought to have to figure out the Bank of San Serriffe joke...
Questions for all people that do front end
I totally agree. Based on numbers I've seen people in the US do better than their stereotype. But a lot of people still leave vacation on the table in a way that is foreign to me.

Sure, some companies are dysfunctional in this respect. But, it's also true that at a company I worked at for a long time where I pretty much saved up my vacation for month trips on a number of occasions, a fair number of people couldn't really understand how I could do this. (My managers had no problems and I did quite well there for over a decade.)

In all fairness, I've also worked with people who didn't like to travel and got bored with staycations so they didn't take much of their time. Alien to me but I sorta get it to some degree.
The birds thing I understand. But mammals? It's mostly vermin like mice and rats. It's not like Fluffy McButtwiggles is taking down a hippopotamus.
I'm currently building a Rails app with a event driven development (EDD) approach. This post makes me tingle.

After building apps with easily way to much logic in controllers, EDD feels like a much cleaner approach for long term scale. But finding the right EDD approach that feels like "the rails way" has sparked a lot of debate within our team, especially around the "does this actually help" argument.

I'm petty curious about others experiences :)
Ask HN: How to discover great tech companies to target in your SWE job search?
There's a handful of top companies that everyone knows. Google, for example. It's widely known that these companies hire bright, talented software engineers, then pay and treat them very well.

The problem is that there's only a tiny handful of these. So if you messed up that one phone screen or don't want to work at a huge multinational corporation, you're out of luck.

It seems like besides these top few, there's just a sea of faceless, nameless, unknown companies. Each one can be great, but based on my past searches, they're mostly pretty bad.

In my past searches I've passively accepted invitations by recruiters who cold-called me. Unfortunately those people will say anything to get you into their pipeline, including baseless hype and gross misrepresentation of the company and the job.

It's not so easy to uncover the truth. Often the recruiter's pitch will sound plausible and exciting, then the first technical person you meet on the phone screen is pretty sharp. Only on the onsite do you discover important additional facts such as:

1. The rest of the folks on team aren't as great.

2. The actual work is mostly trivial and uninteresting.

3. Under the hype, the real business model is pretty bad.

4. The equity portion is likely worthless.

5. The pay package is far from competitive.

Very often all of the above, as they do strongly correlate.

Of course, by that point I've invested hours in preliminary remote screens + a full day (at least) on the onsite. Very high cost to rule out just one company that was never close to being a match.

So the question is, how do we as candidates identify great companies that are likely to meet our expectations?

Ideally we would be able to make a list of the best places for our level of skill and talent, but I have no idea how to actually do that.
A gal actually.

But considering the nature of using dimunitive forms with regards to women, I would just call her a woman unless we are in very casual company.
TAoCP will always have a special place in my heart. It was my very first Computer Science textbook and what ultimately made me fall in love with the field. I remember reading about Knuth's legendary checks and going through whole chapters thinking how cool it would be if I ever found one. Good times!
Reminds me of a "DuoLingo for Chess" someone posted a while back: https://www.chesscademy.com
My new favorite tool for looking at TLS things is certigo
Likewise, VW cheating their emission tests mean that we should remove emission tests, as companies are forced to disloyalty by this regulation.

Enron and the 2008 crisis also put in question the need for banking regulation.
I personally think that racism is very wrong and needs to be left in the past. It has no value in current world.

But me, an European, saying to Chinese how they must live and behave - this is just neo colonialism. They should figure this out on their own.
It sure mattered when wikileaks did it.
Thank you, although I'm looking for a high-quality printed reproduction/book, not digital.
Anyone know?
What's the point of saying that a standard library feature was not added soon enough? Nobody can go back in time and add it earlier. I can complain to death about features missing from C++11 or I can start using C++14.
TBH, I would've expected a Maglev train to "touch down" in a station, at least that is what I would do if I were to have designed it...

Anyone here ever rode on the Maglev in China can provide more details?
I actually like some things about the Economist and I subscribed for years. I feel like people would be better informed about the world if they read it. That said, it's absolutely dripping with ideology and you need to know how to read it. It's a cheerleader for Capitalism, kinda like the Financial Times.
https://www.currentaffairs.org/2017/05/how-the-economist-thi...
TL;DR: An ancient Roman would often grab a tersorium.[...] A tersorium is an ingenious little device made by attaching a natural sponge (from the Mediterranean Sea, of course) to the end of a stick
We weren't there. He might've needed to be someplace else.

People leave all the time during talks, and I've been to talks where most people left as soon as Q&A started.
Aside from the privacy concerns, condos in this area are currently selling for $1000+/sqft. All renderings I have viewed from Google's proposal show some assortment of low rise buildings. You will need to be a multimillionaire to live in a low rise style building if the units are sold at market rates. That type of development doesn't represent the interest of the majority of the citizens (the avg salary in the city is ~45k USD). The city should only be approving 100+ story structures in the downtown core until there is enough supply to meet demand and bring RE prices down to reflect local salaries.
Measuring Performance on OpenBSD [pdf]
Unveil in OpenBSD
McNugget Calculator
You're trading things to update. Either the bug is in the standard library and you need to update the standard library or the bug is not in the standard library and you need to update not-the-standard-library. Either way, the maintainer of the library can't get everybody to upgrade.
Syspatch(8) – The Boring Healing Potion [pdf]
Enclosing a link like that in parentheses will make it work. (https://en.wikipedia.org/wiki/South_Dakota_v._Wayfair,_Inc.)
> By that criteria (which are real criteria from real people), the only viable replacement for Microsoft Office, is the next version of Microsoft Office.

By that criteria, the only viable replacement for Microsoft Office is the _same_ version of Microsoft Office.

The delta between two Microsoft Office versions has often been larger than between a Microsoft Office version and a LibreOffice version...
News is not about facts. Fake news even less so. Why would someone with an agenda reward fact-checkers?

On the other hand, reputable news outlets already accept and publish corrections. Of course, nobody reads them; the damage is already done. Unlike a book, there won’t be future readers who would benefit from the correction.
Accomplishment Arbitrage
Is it still online somewhere? The heroku app in the link os broken.
That problem does not seem to happen with the Haskell Platform. Maybe it's because GHC has almost no batteries at all, so nobody thinks it's sufficient, or maybe it's because distros get it in a single package, so it does not feel like installing 100 libraries.