skysight-inc/HackerNews huggingface dataset:
I only have a few anecdotal data points of what well paid hourly work is like in the US. But, most well paid hourly jobs with benefits etc. have some combination of:

Holidays: Federal holidays where people are off and they still get paid as if they were working.

Vacation: Time off work that is paid that is accrued during the time you are working. When you submit your time, you can use your vacation hours.

Sick: Days that you are suppose to either be unable to work or have a dependent (or spouse) that you need to take care of. Depending on the company, they can require doctor’s notes.

Many companies lump sick and vacation as “paid time off”.

Companies usually have paid bereavement leave.

I’ve worked as a contractor occasionally with none of these types of time off, but fortunately, I am in a position to adjust my rate accordingly.

Even when I was in college and working retail we had some type of minimum holiday pay.
Does the algorithm described for finding a number in an unsorted array using minimal checks really work? Probably is addressed more in the book but didn't see my concerns in the post.

The algorithm I am referring to is:
"
1. Check if the current item is the desired one. If it is, return success if the pointer is within the array bound and return failure if it isn’t; otherwise
2. Increment the pointer and continue.
"

I think it assumes that all values will be found in memory somewhere (otherwise an exception will be raised for trying to read memory at an address that does not exist). This is probably the case in practice but I don't think there are guarantees of it being the case.

Also, this algorithm can have lower worse-case performance than a more naive solution because its performance is based on the number of possible values (assuming random distribution) rather than the size of the array for cases where a value cannot be found.
I get your point, but parent was trying to say that there will be some security concerns when Linux is to be used for Defense computers. That's why they need some hardening of the kernel/OS
2.45% of my blitz games end in draws.

Playing a weak, non-standard opening is surely not the only way to get interesting games, but it's reliable and easy for someone of my skill level (around 1850 on blitz.chessbase.com). It's much more reliable than playing any well-known gambit, for example.

This article starts off with an appreciation of the King's Gambit. However, there are many known lines which counter the King's gambit and bring it back into a boring, drawish middle game.

Chess is unfortunately a game that rewards people who play to avoid losing rather than play to win.
It also affects your mental health negatively when you are constantly bombarded by the highlight reels of all your acquaintances and start comparing yourself subconsciously.

Oh let's not forget the actual user manipulation:

https://www.theatlantic.com/technology/archive/2014/06/every...

But few users expect that Facebook would change their News Feed in order to manipulate their emotional state."
Got it. I had limited understanding. I stand corrected.
Not true - if it were, every minimum wage, overworked job would go unfilled.
Ubiquiti is a major exception, and their products seem pretty good.

The whole enterprise wi-fi value proposition seems like it’s almost entirely software. A very expensive enterprise wi-fi AP is essentially identical to a home AP in a different case with less flashy antennas, a documented radiation pattern, and software that is designed to do something intelligent when you have a lot of them. The hardware differences should have negligible effect on cost.
I'm not sure if you're being sarcastic or not. But in all seriousness, the richness that has been added to my life by walking around with a Library of Alexandria in my pocket is immeasurable. People may jokes about the value of having 24/7 access to cat videos or whatever, but the reality is that over 3/4 of Americans have access to knowledge that people in any other century would have sold their souls for.
These are good points but

> Don't wait for someone else's approval to get shit done

This may be a great idea, but mishandled it can truly piss people off. See my other reply to this. Turn the diplomacy up to 11 if you plan to try it.
> the first section after the chapter intro deals with the basic problem of searching for an item in an unsorted array. The simplest algorithm should be familiar to all programmers. Start your pointer at the head of the array, then do the following in a loop:

> Check if the current item is the desired one. If it is, return success; otherwise

> Check if the pointer is past the array bound. If it is, return failure; otherwise

> Increment the pointer and continue.

> Now consider: how many bound checks does this algorithm require on average? In the worst case, when the array doesn’t contain the item, one bound check will be required for each item in the list, and on average it will be something like N/2. A more clever search algorithm can do it with just one bound check in all cases. Tack the desired item on to the end of the array, then start your pointer at the head of the array and do the following in a loop:

> Check if the current item is the desired one. If it is, return success if the pointer is within the array bound and return failure if it isn’t; otherwise

> Increment the pointer and continue.

> With this algorithm, things are arranged such that the item is guaranteed to be found one way or another, and the bound check only needs to be executed once when the item is found.

It sounds like he's saying "feel free to overrun the buffer; eventually you'll find the value you want somewhere in the depths of memory, and then you can check and see that you've left the array behind long ago." Aside from the obvious problems, it's not at all guaranteed that the specific bit sequence you want will exist anywhere in memory.

What am I missing?
The stupidity about the best programming language
> I have never worked an hourly paid job in the UK that has paid holiday.

It has been a legal requirement since 1938, so hypothetical that is possible if you're in your mid 95 or older.
The largest refugee resettlement movement to Canada since the post-World War II
This is both true and mind boggling to me.

I employ 5-10 unskilled people at any given time. Mostly for assembly and packing. They get two weeks PTO, and at least a week of paid vacation throughout the year when we close for holidays, mostly more.

At the end of the day the total annual cost to provide this is well worth the drama it keeps out of the workplace.

Sick days? Take as many as you need. I don’t want sick people at the office.
Really nice to see the 'plumbing' mindset catching on. When the parallels to real-world utility work were first pointed out a lot of people were resistant to it because they felt insulted to have their high technology work compared to dirty low technology.
I suspect they will. As a resident of Colorado, once the politicians realize they can MAKE money off it, rather than spending considerably more money ON it (eg: jails, etc)... the transition suddenly "makes sense".
And record who throws what out, and issue ads or fines accordingly! So much room for innovation.
50 sqrtmtr flat in Prenzlauer Berg can go for like €1,200 a month withou utilities with a 3 month deposit, unfurnished. Some in Kreuzberg can be up to like €900 a month for the same size, if you're lucky.

I know of people that pay €500 a month for a 25 sqrtmtr room
Physician Training Stress and Accelerated Cellular Aging
You’ve just reinvented netlify without the polish. But the polish is what makes it great. I’ve moved a few websites off S3 to netlify and the level of integration they offer is great. DNS, TLS certs via let’s encrypt, preview builds for PRs, ..., that’s exactly what I’m willing to pay for. And I know that if they make a business move I don’t like, I can always move off again. No lock-in except the polish.
Lifting the Fog on Red Star OS (North Korean Linux Distro)
Why u dont use just regular Gitlab Pages without Netlify?
Making broad generalizations about humans, as we all know, can be really dangerous, prone to eggregious errors, and large groups of people often fail to enjoy one-size-fits-all style treatment. Humans really are THAT diverse, even when you deal with relatively homogenous ethnic subgroups.

That said, it still holds true that effluent human output aggregates according to a certain undeniable smell, blameless to any individual, when you step back and let a social order chug away, and sniff the fumes they produce.

Sort of like a poultry farm. The chickens aren't trying to smell like chicken shit, but there's almost no way a thousand chickens wouldn't produce the smell of manure, when subjected to the conditions agribusiness often utilizes to farm chickens.

Knowing this much, take a hard look at what a technical job asks of the employee. Years spent alone, in silence and solitude, tinkering and fiddling with extremely dry subject matter, usually with dispassionate goals that abstract away from any emotional involvement.

Does that sound like something an attractive person would seek out? Does that sound like something a creative person might enjoy?

But then, there's the money. Why heap so much value upon tech workers? Because, highly pedantic and uncompromising decision making leads to accurate automation and force multiplication.

The cart now leads the horse. All that money. All that prestige. Something extroverts and creative, gregarious people pine for. Why reward these shut-ins? These deformed, mumbling, poorly groomed, bespectacled pick-noses for all the tiddley winks they seem to play with their tin cans and their blinking baubles and their yarn?

The money and praise should go to the attractive, the vivacious, the beautiful! The humans! It's just not fair!
Ask HN: Shall I leave my job during trial period or 2 month after trial period?
I am thinking to resign in my current company. Things are not working out. Should I leave during my trial period or after 2 months of my trial period is still okay?

I want to leave after 2 months just to finish my 6 months and get enough time to find new job.
I have done the same for https://jimmyislive.dev/ (using Github and Netlify). All the code for this site is on GitHub (see the About page)
It seems that those programming language communities which have a more "social" aspect also tends to lead to more associated drama like this.
how is that an excuse for being uncivil? if you're burnt out then don't attend the talk? simple.
While people might switch jobs more often, is that supported by data that they use this time to unwind? You end up without health insurance coverage during that gap so I can’t imagine tons of people going in that direction.
Dude, Debian does exactly this same exact thing to get reproducible builds. They generally submit things upstream, so I'm not aware of Nix attempts do the same, but I can also imagine their patches for reproducible builds might not make sense outside of Nix. This particular patch is done differently than how Debian attempts to do it (they try to make no changes to the code if possible), but this patch doesn't seem like a bad approach either (makes it obvious at least).
> six is non-optional for writing code for Python 2 and 3

I maintain a Python 2 & 3 compatible project that has no external dependencies.
DDG loads painfully slow on Android chrome browser compared to Google search for me. Does anyone know if this is deliberate on Google part? Is there a way to speed up DDG search? I'm using a vpn ad blocker, I wonder if it's something in my host file...
Historians, not so much. They would have to believe all their primary sources were lying.

Archaeologists, quite often still have the Noble Savage archetype lurking underneath their theories, despite the massive evidence of violence among current-day hunter gatherer societies, and the extensive evidence of trauma to the remains of ancient skeletons.

My aunt and uncle are archaeologists. I hear this claptrap about Native Americans living in harmony every family reunion.
Do you see the point I'm making, though?

Edit: I'm not asking about the rate at which paid leave builds up, I'm asking about how the employee can ever be said to have used it up. Given that zero-hours contracts are a Bad Thing, I don't expect this to make any sense.

If I have accrued 24 hours of paid leave, and potentially work 6hrs a day, typically one day a week, do I need to pre-emptively use all of those 24 hours just to take leave for a block of 4 weekdays? It seems like I might have to, in the face of an unscrupulous employer.
> Then why is Toronto very aggressively bringing in 100K people per year into the city

Toronto doesn't choose who comes here. It's not stealing people from around the world and forcing them to come, nor does it try to stop anyone from migrating. Toronto is just a great city and the world wants to live here. We're the most multicultural city on the planet for that reason. We're something special, and I live here in part because I celebrate that special quality.

Second, and more importantly, as you said the price of housing is a function of supply and demand. With rising demand, supply side must keep up to prevent housing prices from looking like Vancouver or San Francisco.

Where we do agree is in what should be done: zone for tall buildings and dense land use, auction the land, build as much as we can as quickly as we can.
I really wish there was a middle-way between 'let them do whatever they want' and 'let's protest and raise hysteria'.

Let's look at Downtown Toronto development over the past 10 years - condominiums built on every square inch of land that could be bought? In large part owned by people who don't plan to stay there long or even owned by a third party and rented out?

Ok, so that's what's been happening. What can Google possibly do, that is worse?

They're planning to try new things - go ahead and discuss the details you are not happy with. Just be aware of the alternative - cheap 30-40 story condominiums with 500 sq foot units, built to make a quick buck.
Was he like that before ? some say he was always balanced even when python3 came out.

let's hope everything settles smoothly :)
This is impressive; congratulations to the author! I too got a Knuth check for 0x$3.00 a year or two ago... but that was for errors in the unpublished (draft) pre-fascicles; finding some in the published volumes of TAOCP is surely a rare event!

A few more comments:

• A huge +100 for the paragraph pointing out that TAOCP is not a reference work; it's a very enjoyable work meant to be read:

> By the way, if you’ve ever thought about reading TAOCP, give it a try. A lot of people will tell you that it’s a reference work, and it’s not meant to be read straight through, but that isn’t true. The author has a clear point of view and a narrative and an idiosyncratic style, and the only thing that inhibits readability is the difficulty of the math. There’s an easy solution to that though: read until you get to math you don’t understand, then skip it and find the next section you can understand. Reading this way, I skip at least 80% of the book, but the remaining 20% is great!

In addition, there are many jokes, beautifully employed quotes, etc. Basically what Knuth has done is to take all the published research literature on each of the topics of the respective chapters, digest it, pass it through his personal “interestingness” filter, and figure out what he feels is the best way to teach it. The result is highly personal, and not all what one may expect from “reference work”.

• Karatsuba multiplication was discussed recently on HN: https://news.ycombinator.com/item?id=19672835

• To be pedantic, 0x$3.00 (aka $7.68) only puts you in a 29-way tie for the 115th richest person in the Bank of San Seriffe — it's the 69th largest amount but you need to count all the people with each higher amount :-) Also note that this BoSS only counts checks since 2006.

• I actually find my name on the list with another 0x$1.00 (and I think I know what it was for), but I never received a check for it: probably lost in the mail, in which case I'll never forgive USPS for it. I have however received many replies from Knuth saying that the errors I tried to point out were not actually errors, or that they had already been pointed out by others, just not updated on the website yet (in the case of the draft pre-fascicles). You send him an email (only if it's a bug; else the email never reaches him!), his secretary who comes in once a week prints it out for him, he gets to it at some point, scrawls his response in pencil, encloses a check if warranted, then his secretary sends it back to you by post. Exactly as described here: https://cs.stanford.edu/~knuth/email.html (I once snuck in my solution to one of his exercises (which asked to write a poem) and he wrote “Beautiful!” next to it, which I will value more than the check itself.)
Not everyone. Most salaried jobs have at least two weeks paid vacation and 10 paid holidays. This is also true for decently paid full time hourly workers.
Because I'm dumb. :-(
First line was a single line
The next line was multiple lines as per https://news.ycombinator.com/item?id=19944722 above.
Its funny how wine have better support for legacy win apps then windows 10. Probably a reason why they are switching to Linux.
Discussion: https://news.ycombinator.com/item?id=19948642
Public employee unions.
meant to be:

printable_chars = { 33, 34, 35 [...and another few hundred ]

to

printable_chars = {
33,
34,
35
[...and another few hundred lines ]
}
Read the sentence before it: ”Tack the desired item on to the end of the array, then start your pointer at the head of the array and do the following in a loop”

(https://paws.kettering.edu/~jhuggins/humor/elephants.html: ”Experienced computer programmers modify Algorithm A by placing a known elephant in Cairo to ensure that the algorithm will terminate.”)
He’s saying that if you append the value you’re looking for at the end, you don’t need a bounds check since you are guaranteed to find it at the very end.

Kind of like C strings terminated with NUL.
Parents are buying the toys. If it's wrong to do things children think are nice and fun I don't know whats right or wrong.

An app might decept the parents and eg. show ads only when the child is alone and so on.
It took me an hour to create a program that tails some logs and alerts when it doesn't receive any logs for a given amount of time. For this task I did not even need to leave the asyncio module. It lets you create subprocesses and execute call_later on the event loop in order to simulate a heartbeat while reading the output of tail at the same time.

Did asyncio module feel bloated? It certainly did. It seems like every module from subprocess to networking to io is crammed into it.

On the other hand, did it get the job done without resorting to any packages or threading? Yep, and that is pretty powerful and rare.
« Tack the desired item on to the end of the array »
If you play on blitz.chessbase.com, the position is continually evaluated -- they won't suggest moves while the game is live, but they will tell you who has the better position and by roughly how much.

Whenever there's a position where you don't see the reported advantage, or when a change in the assessment occurs that you didn't expect, that's an opportunity to go back afterwards and just look at those specific points in the game to see what the engine suggests.

If you really want to get good of course you need to be much more methodical in your study. But I started to find chess much more enjoyable once I left behind any long term ambitions.
Works fine on me. Might be device specific.
But we're talking about online businesses here. This isn't isolated to the US. We're talking about complying with the requirements and taxation of any city in the world. There is no federal government to address there.
Fan-made Razr concept video used by Lenovo at Chinese press event
Impossible Burger Tests Positive for Glyphosate
I was rather shocked to find that python didn’t have a full-featured crypto library included in its standard lib. The alternatives all ended up being unmaintained or maintained by small groups (which makes trust in the soundness difficult). I tapped our security team, who were in disbelief, but ultimately they gave up to and I wrote the software in go instead.
Jesus I didn't know that. I knew that the US had a debate about maternity leave, but I thought the US had paid annual leave. Here in Germany everyone gets 24 working days off, I don't think I'd survive a year without it.
>You end up without health insurance coverage

There's COBRA although, of course, you don't have the employer portion paid for any longer.

I'm a bit skeptical that the typical person takes a lot of time off between jobs. If you've already got a position lined up, your new employer probably wants you to start as soon as possible. You can probably negotiate 2 or 3 weeks but, in most cases, I expect a real sabbatical would be tough.

And, if you don't have a job lined up, I probably wouldn't be confident enough to just take it easy for a couple months.
I don’t understand?
More and more people will just move away from city once these tech are deployed on a bigger scale. Life is too short to be subjected to this type of bullshit.
101k a year in income, more than $2m in total balance.

Chicago police officers make $65k within 18 months [0]. If $75k is a high estimate, it’s not by a ton. Government competes for professional/managerial/educated employees as well.

[0] https://www.chicagomag.com/Chicago-Magazine/The-312/August-2...
Outline has a better interface.
IMO, Golang does the best job of maintaining a high quality standard library. I disagree that modules should be moved into the external package ecosystem. However, Go isn't preinstalled on most systems like Python.

I have to develop enterprise software that runs across a wide range of platforms, and being able to take advantage of the fact that Python is pre-installed on all of these systems with its standard library is a godsend.
> We're the most multicultural city on the planet for that reason.

"Most multicultural city" a city slogan, not some sort of factual statement.
But I don't think this is actually possible in the EU in the long term. They want to do away with companies only serving digital services to some EU member states, but legislation still applies per country. What if the rest of the world decides that this stuff is great for taxation as well? Then you won't be dealing with the tax code of an American city, you'll be dealing with the tax code of a city in some small country.
Completely agree. There’s also the issue of users who browse the web at more than 1x zoom. Zooming triggers breakpoint changes and we’ve received a ton of user feedback claiming they prefer to scroll horizontally in general (not just tabular data), as opposed to getting a mobile “optimized” view.