skysight-inc/HackerNews huggingface dataset:
Game developer here, most of the companies I worked at had an expectation that you show up around 12 and leave around 8-9. Guess it's a culture thing.

Now that I'm a remote contractor, I can finally live according to my natural schedule and wake up around 5pm.
My first paying gig was to write PL/I code for a factory monitoring system on a VAX @ Buick City in Flint Michigan, 1981. Anyone remember DEC and those wonderful VAX systems?
Option 4: what can you do with my face and name? That's just like you taking a picture of me in public.

I know plenty of people that think this way.
In-store outfit recommender system
This was advice for those who might struggle like I do.

I even admit that it's the first worldiest of first world problems. But that doesn't make it not a problem.

I don't make $5,000, and I have made it part of my negotiations when entering companies before but there aren't any non-open-office companies anymore. So I make my peace and live with it.

The point of the blog post is to bring this topic up because there might be advice I'm missing, obviously I'm not the only one, others must have other coping mechanisms.
Show HN: What Are Goroutines?
Atomics are very useful indeed, but an overkill for some situations. In particular, if there's just one writer and multiple readers, the write doesn't need to be synchronised (as there's no possibility of someone else mutating the value in the middle of you incrementing it). An example would be the GC thread incrementing the epoch id/count that all mutator (user) threads read.

Presumably you'd still need some sort of synchronisation otherwise the memory will stay mutated just in one CPU's cache, you need to "flush" the updated memory so that other CPUs can then see it, but that's likely cheaper than executing the whole operation atomically... Basically, increments are fundamentally not atomic (i.e. composed of multiple separate operations) whereas reads (of a single word) are, so if all mutations happen from a single thread (assuming a sensible CPU architecture and cooperative compiler) there's nothing else that needs to be done to ensure atomicity, you only need to care about the "happens before" relationship.

But then I'm not a low-level programmer so the above is probably all wrong :)
You think that today in 2019, we spend more time at "work" than at any other time in history? That's just false.

Over the 20th century here, work hours have slashed in half. Henry Ford introduced the 5 day work week in 1926, prior to that it was 6.

You think the average farmer in the late 1800's worked 40-50 hours? What about the average coal miner, or factory worker?
I'm becoming more and more vocal in my office about noise-cancelling headphones.

The problem as I see it is that NCHs keep you from being aware about how much external noise you are making that bothers others. Most do not have any sidetone† enabled by default, so users that start to engage in conference calls and chats while wearing NCHs begin to raise their speaking volume to disruptive levels...and they don't know it.

When this is brought up as a complaint, the answer is "well, you should get your own pair of NCHs". This is not a solution.

† https://en.wikipedia.org/wiki/Sidetone
How to Do What You Love [video]
Apologies. This is a new blog I am working on. Will fix it.
Effective Altruism Is Trying to Save the World from the Robot Apocalypse
It's not actually a sum, it's an inclusive union which are much harder to reason about and compromise your type system more (IMO). In any case, Java does not have any of those, and this is what makes checked exceptions impractical to work with; Rust has sum types but I don't think it has either inclusive unions or never types.
Rust protects from data races. AFAIK C# will not tell you where you need to put mutexes.
> A random picked number to somehow win Internet discussion points I guess.

No need to be nasty. I chose 10 at random because it's a decent sample size without being too onerous for an online discussion. If I wanted to earn internet discussion points, I would have made it 10,000.

I'll take a look at those and get back to you. I'm very curious. Unlike some commenters (not a jab at any particular person or even a particular site, just a general observation of commenters online), I like it when I'm proven wrong about something. I'd rather know than live in ignorance.
How YouTube converted people to flat Earth
Showing me the products like that are so annoying, because google doesn't know I purchased them elsewhere and keeps showing them forever.

Please, after a reasonable time try to show me things people who have brought X typically buy after 2 weeks. As an example I would have paid for a curtain service to my new appartment, but google kept pushing (bad, paid) apartment search sites at me.

I now google products only in incongnito mode, since it get so annoyed by this behaviour.

Facebook decided initially that as I was single I must be interested in paid dating sites (even though, statistically I would be better of with a site with a larger audience), so please don't take this as an attack on Google, but as an attack on limited machine learning.
Sure, no worries. You probably don't know about Roger, who is a good writer actually and much humbler man than what you thought out of this post.

And I think you just misunderstood the statement, his fortune cookie reference is to the story in the game, not to the person referred to by "She'.
For example, if you do end up needing compression, are you going to write you own compression library or use an existing one somebody else already wrote?
Dreaming about Better Sleep: Dreem, Oura and the Rest
I’m typing this from a phone I know you wrote a lot and I read it all. But the system you describe seems to be needlessly complex. I think when you try and justify why it works people will see that this isn’t working.

People aren’t stupid, they travel and see how healthcare works in other countries. Eventually we will end up with a public option. At this point it’s inevitable. We are reaching a tipping point where Biden and Pelosi can’t keep dressing the current situation up.
> Strange policy about commits — why just not push at night or during weekends? Why's everyone not working on branches

That is what I’m saying. The policy is avoid pushes to master. My policy does apply to branches too once there are more than a few people in the branch.

Lots of people do work in branches, but everywhere I’ve worked, plenty of people skip branching when they’re making what they think are “small” changes. And some places I’ve been, the team has decided on a policy to skip branches & merges for single commit changes due to the history noise it causes.

The policy is to avoid breaking changes being committed to master when people aren’t around to notice & fix it.
I think this really depends on the attitude of the company and specific managers. Each quarter I'm given a list of projects and just need to have them done by the end of the quarter.

Thankfully my boss has seen that I'm much more productive with my abnormal schedule so I'm inclined that this type of freedom probably comes on a case by case basis.
I tried the new Twitter interface, it was so bad that if I hadn't been able to go back to the normal one, I would have stopped using twitter. It had successfully reduced the density of information by splashing whitespace everywhere on the page and navigation on it was way inferior.
A lot of people are probably conflating the monetization angle with the content of the podcasts themselves. It's true that you're probably not going to see a lot of NPR or NPR-style highly produced podcasts from people just doing it for fun. On the other hand, quite a few actually prefer the more conversational and casual angle that comes from people just talking on mic or over the Internet. And those are very doable for pretty much anyone who has the interest and motivation.
I have Steam sales offering me games with 90% off, Groupon offering me 88% off a gym membership, and a local perpetually-going-out-of-business menswear shop offering me 90% off everything. Amazon themselves advertise used books priced from £0.01!

Admittedly, many camera enthusiasts probably knew the market rate for this sort of equipment - but the fact something has a 90% discount doesn't automatically prove it's mispriced.
Yes, that is what feature branches are for. The policy I’m talking about is referring to when people share, not when they commit to a feature branch. Sorry, I did initially described it only as “commit”, so that was my fault, not yours.
It sounds like you got a product idea.

I know my uncle Doug would pay for it.
> I am not aware of any society that lasted without religion and had strong communal ties.

Take China for example, I don't think it is a country of religion, and on the other hand, I don't think the society lacks communal ties either.

Traditionally, the Chinese society is organized or bonded by ancestry roots. According to [1], people sharing the same ancestry root first formed tribes, tribes then grouped together to form states.

My last name, for example, came from a southern village in China. The village is also named by my last name. The majority people in the village share the same last name as mine, the rest are outside people who married to the village. The entire village can be traced back to a guy who settled there 1000 years ago. Not only they have a temple (or community center) to worship ancestors, they keep a Genealogy book to document the history. And this is just one example, there are many many villages like this.

It’s a bit like the houses in Game of Thrones.

Although, as modernization continues, this organization form is disappearing.

[1] https://yixi.tv/wanxiang/3/8
Known to whom?

This is very relevant as part of the broader conversation about defaults and the trade-offs to be made between flexibility for power users and relatively more safety for most users.
>contracts with unlimited time periods non-binding?

I've noticed in countries with Natural Rights frame works for their law that typically contracts that commit /an individual/ to work when it's not "bonded" in some way are interpreted as slavery and nullified.

e.g. If I agree to get paid $100k lump-sum today to work for you for 10 years at no more compensation, and at year 2 I decide to renege on the contract, no Natural-Rights framework court is going to enforce that.

But if I sell my house to you (relinquishing ownership to you for an "unlimited time period") and I try to renege on the sale, it is going to be enforced.
Solving “Wordscapes”
My first car took about a week. The second one took a day. The total BOM was around 400$.

Note: I am not great with hardware.
It always surprises me that workplaces with automatic deployment don’t have deploy windows. Automatic deployment only occurs 10-3 in your region and you can deploy by overriding outside that time to get out emergency fixes.
I work in aviation/defense. They try to treat it just like building bridges, and it's a disaster. Please don't.

Software is a design practice/process. Not a building process. Any analogy should be to the design phase of other engineering disciplines.
So like new reddit? And digg before it
Show HN: Happierco – Employee-Centric Performance Management Solution
NASA’s daunting to-do list for sending people back to the Moon
Someone Hacked My T-Mobile Account and T-Mobile Won’t Talk About It
Hi HN,

I’m Ulrich, co-founder of Happierco. We’re building the first employee-centric performance management solution.

We help our users turn their company culture into a competitive advantage by enabling the empowerment of rank-and-file employees to drive business growth and effect change in the company.

The numerous solutions in the market all see performance management from the lenses of managers and are just trying to build better tools for managers to collect information.

With Happierco, we want to go further. We are bringing more value by increasing positive interactions between the employees, enabling transparency and faster employee development, which in turn benefits the company as a whole.

Performance management is frequently a source of frustration for employees across every industry, especially creative ones. So I guess it’ll be a subject of great interest here on HN. I am looking forward to the discussion!
Anyone can get your JS hash function and reverse it. This has to be on server side
It's also interesting that nowadays when people lose their jobs, it triggers an almost existential crisis in them. It's kind of sad to watch.

I wish people could understand that they are more than their job. It's so ingrained in us though. One of the first things people asks each other is, "What do you do?" It encourages a definition of self that is centered on one's job.

If it weren't real life, I'd think I was watching a dystopian film at most social gatherings. :(
Minneapolis has a fair amount of those group office buildings that provide security as part of rent.
A321neo operators alerted over 'excessive pitch' anomaly
> I am glad that open offices let companies give nice perks to employees even in extremely expensive real-estate markets like the valley

I'm pretty sure Facebook can afford private offices and free ice cream.
They stated in [1] that:

> In Manifest V3, we want activeTab-style host permissions to be the default, with a number of extra options. Instead of being granted access to all URLs on installation, extensions will be unable to request <all_urls>, and instead the user can choose to invoke the extension on certain websites, like they would with activeTab. Additional settings will be available to the user post-installation, to allow them to tweak behavior if they so desire.

To me that reads that extensions won't be allowed to request <all_urls> anymore which would definitely increase privacy since they won't be able to get script access on every website. Some observational capabilities will still be available but from what I'm reading not as many. I would've liked the web request API to be deprecated and discouraged or under heavy scrutiny, if used but there was too much push back.

[1] https://docs.google.com/document/d/1nPu6Wy4LWR66EFLeYInl3Nzz...
And less of our time at work is spent actually working.
Using a phone number for password reset seems like a terrible idea in general, especially if you have SMS-based 2FA. Phone numbers are way to easy to social engineer, and if your second factor can reset your first one, you don't have 2FA.

Also if I am reading it correctly, it sounds like the rate limiting was being done per-IP, which sounds strange. Why wouldn't Instagram just allow a fixed number of tries (some low limit, like 25) from any IP before invalidating the code? I don't really see a scenario where it makes sense to have per-IP rate limiting here. I guess they are probably just using the rate limiting features which are built in to whatever framework Instagram is using for their API.
Every time of the day, it's like asking at what time does a musician compose, or an artist paint or a author write. Surely, we can consider the physical activity work, but the mental activity is also work and precedes the physical.

The brain churns on the problem at hand most of the time even when we are away from the computer. I would even be bold to say, more so when we are away from the computer and not distracted by typing.
It's a bit of a semantic distinction isn't it? In practice what it means is that you add semicolons to the end of almost every line of imperative code in a block, and you leave the semicolon off the last line and this becomes your return value implicitly (without the use of a return keyword).
Agreed here. I think it leaves the commit history to messy if the commits aren't actually fully functional changes.
PL/I (and PL/C) was my first high-level language when I studied Computer Science in the late 70s.

CS 101 at my college was "IBM 370 Assembly Language". Then we moved on to PL/I.

And it was on punch cards.
Hollywood deals with this by giving the originators of ideas story credit. There are fairly detailed rules about how much of the final product needs to derive from their contributions to the final product for the credit to apply.
Indexing documents for full text search in PostgreSQL
People are acting as if things were paradise before ACA. I agree that it wasn’t a good law but before it passed there were plenty of people who couldn’t get insurance due to pre existing conditions or they would get thrown off their plans once they got actually sick. Blaming all problems on ACA is rewriting history of the worst kind.
> Governments are certainly needed for certain things, but politicians tend to come up with problems to solve, or try to solve problems which they are not equipped to solve.

This is why it's dogmatic. You can't agree that there are use cases and then in the same sentence denigrate all the use cases. Or... I guess you can, but...

> They aren't really supposed to create a social order so much as a legal one, anyway.

At the risk of being overly ontological, the legal order arises from the social order, since the law is simply a construct of beliefs that society nominally agrees on.

> Even if the could, I'd see that as disturbingly close to brain-washing...

...And there it is. It's ok to disagree with some things that politicians do. That doesn't mean there aren't good politicians.
Could someone explain how this person is allowed to do that type of testing (sending 200,000 requests)? How would Facebook know he is a white hat and not a black hat?

I would be interested in starting to try some of these programs, but a bit scared I'd be doing something illegal... Where is the line?
In fairness, Bezos is only doing what billionaires are expected to do: do billionaire things like send rockets into space and do billionaire things like anticipate future utopias. He wouldn't be a billionaire if he wasn't into aeronautics and space flight. We all know about the old stereotype of Dr Evil and his moonbases. It was portrayed very nicely in the Austin Powers movies.
Mirror: https://web.archive.org/web/20190718133141/https://blog.diji...
I'd suggest a selective scriprlt blocker like umatrix (my recommendation) or noscript. Do note you will have to invest some time toggling & refreshing on some of the more complex sites until you figure out whatever web of cdns and auxiliary scripts is used to run their stuff
Invariant Risk Minimization
I just pushed your suggestion to production! And thanks for your kind words, really appreciate it!

Let me know if you have more things in mind, I'm totally open to suggestions and initiatives.
Absolutely this.

I think that the most important thing Python can do in each release is to improve performance, incrementally.
I'm surprised Facebook's showing irrelevant ads to you. The few times I have to use Facebook the ads are so relevant that it is downright creepy. They are known for buying people purchase history from credit card company, but they are still stuff I have not figured out how they made the connection, for example, I get ads for very specific product that family members with a different last name and who don't have facebook, bought recently.
You’re describing merges, not commits, or pushes to remotes.

One can commit and push to branches all day.

Merging them to master without a heads up is a bad idea, except where teams have implemented a process that can handle it
This still lines up exactly with what I’m saying. Defending your privacy means you need to stop and ponder these things. People don’t know that they need to do this.

You don’t need to read the terms. You “just” need to assume nefarious intent unless demonstrated otherwise.
The one annoying but fun thing about my open office is that people can bring dogs to work. I have had a few occasions in which my co-space mates’ dogs couldn’t stop humping my leg

It’s a weird situation to be in while your female teammates happen to be around. Some turn away. Some can’t help but just laugh with remark like “He loves your leg”

I don’t feel bad, though. Normally, I just let the owners yank the little devils away. I think the benefit of being able to play with them for free everyday outweighs the embarrassment for me anyway
Just because you're an old programming elitist that is familiar with completely out-of-use (and most not even maintained now) languages doesn't qualify you, either. I don't gatekeep book authors by their knowledge of the ancient Sumerian language, and anyone who tries to do so would rightfully be laughed out of the room.
YouTube stars wish YouTube had more competition from other platforms
Show HN: SpaceVim release v1.2.0 with 12 new programming language layers
I feel you brotha.

he said via a social network
"Retry later"

Probably an error, but would make good advice in this scenario too.
But a lot of teams prefer that you do rebases and have a flat commit history, rather than have merge commits (so your commits would reflect the time of rebase onto master, not the time you first committed to your topic branch).

I still think this a very cool back-of-the-envelope estimate though.
> While not objectively a bad thing, that's at the crux of the problem many have with Go: it sets the bar very, very low for getting in your way instead of trusting you to be even slightly competent.

And there's nothing wrong with that, that's exactly Go's target audience.
I'm pretty certain that existential crisis isn't because of who they'd be without their job, except in status obsessed high-income brackets.

For most folks that existential crisis is driven 100% by the realization that they have little in the way of a safety-net, and all it takes is several turns of bad luck to end up in a poverty trap that isn't easy to climb out of. Remember, most Americans make what, 65k or so as a household? And are in massive debt to all of the things they needed to even be able to make that money (college education, car, house, etc).
Show HN: Serverless GraphQL Subscriptions
I'm a little confused by the examples for Access-Control-Allow-Origin:

> Access-Control-Allow-Origin: http://www.one.site.com

> Access-Control-Allow-Origin: http://www.two.site.com

And in the examples setting both. Because in my experience you cannot set multiple [1]. Lots of people instead set it to * which is both bad and restricts use of other request options (such as withCredentials). It looks like the current working solution is to use regexes to return the right domain [2], but I'm currently having trouble getting that to work, so if there's some better solution that works for people I'd love to hear it.

1. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Error...
2. https://stackoverflow.com/questions/1653308/access-control-a...
Can a BSD system replicate the performance of high-end router appliance?
Sure, I can see that. But isn't it similar with language and other subjects? You just learn the basics, nothing deep, no turns of phrases, little expressiveness.

Perhaps there is little correlation between those who excel at coding at a young age and those who go on to be good programmers when they get older. I just find it interesting that at this young age I see a correlation between coding skills and language skills more than math (really just arithmetic) skills.

Another observation was that we did the Hour of Code activity in December last year with Year 2 to Year 6 students (equivalent to Grade 1 to Grade 5 in the US). And in each group there was one or two student who really stood out. And every one of them was a girl. Small sample size of only about 100 students so maybe I shouldn't be wondering what is going on here.
Sure, and any larger company will just decline and smaller companies will just terminate the contract. Not a lawyer, but I doubt you could sue even if they just violated the contract. All it does is tell them you agree to work there so long as your office exists. But nobody needs a reason to quit.
I would legitimately rather kill myself than ever live in a dorm.