skysight-inc/HackerNews huggingface dataset:
This is only tangentially related to your post at all, but as a budget-conscious shopper, I've come to realize that in America, there is usually a retail shop or two locally that consistently has the best deal for a category of things. Don't get me wrong, I still have to buy from Amazon for a lot of really miscellaneous things, but I think I manage to find good local deals (better than Amazon in most cases) for most category of items I buy, more so than most people. You just have to put in the work to do the research to find where those are (a lot of times that's about going to all these stores often enough that you get an understanding).

In your example of sneakers, Adidas/Footlocker/Dicks are not the places to go for me. Here in California there is a store called Big5 Sporting Goods that consistently has incredible prices (on sale or not). In the past decade I've pretty much never bought shoes anywhere else; most sneakers or hiking shoes I've bought are under $35 and they are the most comfortable shoes I've tried anywhere. There may be a similar store in whatever state you're in.

For clothes and some home goods items, similarly I wouldn't go to brand name stores at the malls; Ross and Marshall always have the best deals. For random home goods, Daiso (an Asian/Japanese brand store) which, fortunately for myself, has a lot of stores in California, has tons of super affordable options, as it's basically a Japanese dollar store. Then there are random things that Target has the best deals for; and other random things that Walmart has the best deals for (I know, buying from Walmart is not much better than buying on Amazon).

My main point is, you don't always have to resort to Amazon for budget, you just have to do enough research work to find out where else to go.
strncpy() does a specific thing really well. If it's the 1970s where you are and you're writing Unix filesystem code or some 1970s data processing application your program likely has a use for strncpy() and it matches the semantics you need exactly.

But it isn't intended as a solution for buffer overflow bugs in your program, and so if you try to abuse it to solve that problem you likely introduce more problems.

Imagine your car's air conditioning doesn't work properly. On sunny days it's really much too hot in the car. So, you buy a sunroof. Says "Sun" right in the name, surely that will help right? No. That's not what a sunroof is for. The sunroof works fine as a sunroof but that is not what you needed.
> context or knowledge that they're just screwing around with the double meaning of pentesting.

Can we just like - stop that though? We're not in middle school anymore and it's not particularly funny of a joke.

Statements made to break the ice and provide a more social environment are fine for easing technical discussions - especially when introverts are so common in our field - but there are legions of other topics in the security research field that can yield rich soil for merriment.
That's ridiculous. Osterholm's early interview in joe rogan was the most accurate prediction of thinks to come and he has been consistently reasonably cautious. Anyway youtube is a pit of disinformation so not sure if that's a good or bad thing.
If someone would rather work in the office, more power to them. But you can definitely see the hesitancy of employers to allow remote work over in-office work.
As I've said elsewhere, the burden is on Blizzard's recruiter to maintain a level of conduct that represents Blizzard appropriately. What's on the shirt is irrelevant.
We support it once you enable the `node-modules` linker (cf our documentation). It's a little slower and doesn't leverage some of the stability improvements brought by PnP (in short, you get a good old node_modules folder without much fanciness), but you still get to benefit from all the other features and bugfixes we made since the 1.x.
Doesn't memcpy have the same issue as strncpy? the destination will not be null terminated if the source is too long.

Many projects just implement a safe_strncpy wrapper that always terminates the destination. Example: https://github.com/brgl/busybox/blob/master/libbb/safe_strnc...
> the conversations are still going to happen elsewhere

That's fine. This is the equivalent of water-cooler conversations.
Professionally, yes, practically, and probably legally, no.

The applicant has every responsibility to maintain a degree of professionalism.

If they entered into a conversation with overtly 'cheeky' and sexual context, then they've set the tone themselves.

More importantly - the victim here could be interpreted as the instigator of sexual harassment.

Imagine a man, wearing a T-Shirt at the office, that said 'When Was The Last Time You Were PENETRATED?' - he would be taken aside and accused of sexual assault or unwarranted behaviour, right on the spot, no conversation needed.
> The lengths many HN commenters will go to to cast FUD upon any accusation of sexism in the industry is a pretty clear indicator of how much sexism is in the industry.

Idk, seems like that is well balanced by the white-knights and virtue signalers quick to prop up any bias confirming story.
This sort of begs the question on how Walmart is growing.

Actually, the more I think on this claim, the less it makes sense. The xkcd of how many weddings someone will have the day after their marriage comes to mind.

What am I missing?
In sports where there's no group competition but results come after gold final, bronze final, semi-finals, etc. a silver medal means you lost the gold final, that is, your last match was a defeat, while if you get the bronze it means your last match ended up a victory, also a victory coming well after you accepted the reality that there won't be any gold.
> which are the main references for diagnosis of mental illnesses.

They are also references for the diagnosis of neurological disorders. ADHD may be a neurological disorder but that doesn’t make it a mental illness.
There's also the other option similar to what happened after the New York Elevator Operator Strike in 1945 -- the total elimination of a profession.

https://www.inc.com/thomas-koulopoulos/100-years-ago-we-fear...

"It wasn't until the middle of the twentieth century that the tipping point came along for the driverless elevator as the result of a strike by the elevator operators' union in New York City in 1945.

The strike was devastating, costing the city an estimated one hundred million dollars. Suddenly, there was an economic incentive to go back to the automatic elevator. Over the next decade there was a massive effort to build trust in automatic elevators, which resulted in the elimination of tens of thousands of elevator operator jobs."

If Amazon is close enough to automating these jobs, then it will likely just automate it and fire whoever it can. If not, then you're likely making the path towards that faster.

I don't see any way for the employees to win this beyond buying a bit more time.
Unless the employees, the government, and Amazon, find a way for them to get a profession in which they have more leverage thanks to the *high individual value* they provide, rather than being a temp for future robots.

One solution can be for a union, government, Amazon etc, is to put aside money for a fund that will invest in training these employees so they could one day not depend on these kind of low-leverage jobs.
In practice, it is almost always a compile-time-known string. gcc will warn you if it isn't, especially since allowing the use of untrusted input for the format can lead to vulnerabilities:

https://en.wikipedia.org/wiki/Uncontrolled_format_string
I am hoping to do a Duplicity Full Backup rarely due to data caps. I am hoping I can unpack the incremental Duplicity archives and only if it fails verification will I do a Full Backup.
He is predicting doom for over a decade.
> some use Scrum sprints, some use Kanban, some use a mix of these approaches.

Is there only one "The Official" ScrumBan, or can anyone make their own?
Yeah but it also denies the fact that we spend 1/3 of our working lives at work. It's extremely silly to say not talk about things that directly impact you, especially work related things.

It reminds of the crappy jobs I'd work at where management would tell us that discussing salaries was illegal, it's not illegal.

This isn't an 1880s mining town, Apple isn't the only game in town. Workers have options and I doubt Apple employees would honestly struggle to get jobs at other more remote friendly workplaces like Crowdstrike, SalesForce, or even Facebook.

It's one thing to not allow something, it's an entirely different thing to force people to stop discussing something because a massive multinational corporation feels threatened by a few hundred employees.

It is pathetic.
Interesting to compare this to the $3B anti monopoly fine against Alibaba recently
Buy directly from the manufacturer's website whenever possible. It's not hard, especially for big-label names like those who make sneakers.
Great naming choice. Won't be confusing at all.
I used to work for a childhood war refugee. He was the one to say that sort of thing to us when people would whine at all-hands.
Heads up, it looks like your domain has expired:

Domain Name: FREDDYM.XYZ
Registry Domain ID: D188258119-CNIC
Registrar WHOIS Server: whois.tucows.com
Registrar URL: http://www.tucows.com/
Updated Date: 2021-07-13T05:55:57.0Z
Creation Date: 2020-06-02T10:18:31.0Z
Registry Expiry Date: 2021-06-02T23:59:59.0Z
Registrar: Tucows.com Co.
These companies all claim to hire the best and brightest and be trailblazing engines of innovation but they're scared of remote work. How about solving an actual difficult societal problem with your big brain innovators then?

It's not just Apple here, it seems like every large player is fighting this shift rather than embracing and leaning into it.
Since peptides is mentioned, BPC-157 is popular for certain gut/digestive problems.
I started re-valuing the stars maybe ten years ago, when I got in the habit of checking the mailbox at night when my wife got home from work.

Even though I lived in one of the worst light-polluted cities in the region, I found that if I stood in the right place, so that I didn't have a streetlight in my face — like under an eave — and I just waited, my eyes would get used to the dark and I could see maybe 10 or 15 stars. Enough to make it interesting. All it takes is a little patience.

Eventually, I started going out and getting the mail before she came home so I'd have more star time, and it wasn't too long before some of them became familiar friends, and I noticed how others changed position from week to week.

It doesn't take much effort to appreciate the stars. But it's more effort than many people are willing to expend.
Yoga worked wonders for my wife too. She also suffered from anxiety issues
It says something about the state of the world that the instant that “state guaranteed wealth increase” became invalidated, the entire worlds elites united to purchase every single residential unit they could to keep profiting of the working class.

World war 3 won’t be fought over natural resources. It’ll be the rent slaves class fighting against the upper classes “right” to keep them in indebted servitude.

We need some policies preventing rent seeking on peoples primary residents.
Echo “Shell Injection”
The myth of the peace-loving "noble savage" is persistent and pernicious. Indeed, for the last fifty years, most popular and scholarly works have agreed that prehistoric warfare was rare, harmless, unimportant, and, like smallpox, a disease of civilized societies alone.

Lawrence Keeley's groundbreaking War Before Civilization offers a devastating rebuttal to such comfortable myths and debunks the notion that warfare was introduced to primitive societies through contact with civilization (an idea he denounces as "the pacification of the past").[1]

[1] https://www.amazon.com/War-Before-Civilization-Peaceful-Sava...
sprintf tells you how many characters it has written, so there's no reason you can't use it for non-null-terminated strings.
alin23 is the creator of Lunar and the author of this blog post. I'm just a fan of the program.
Thanks! Yes, it can be hard to let people know that an app like this actually exists.

Some people don't even feel the need for such a thing and just stare hours at a time into a blinding 100% brightness panel when working at night time.

I think that can cause macular degeneration much faster than just "not filtering blue light", but this is not as talked about so people don't think about its effects that much.
There are methods of writing longhand left-handers can learn that are not uncomfortable.

http://www.musanim.com/mam/lefthand.htm
It's interesting that many of the comments here are from people who have the luxury of only typing, knowing that they won't forget how to actually write by hand. But not all languages have this luxury:
https://en.wikipedia.org/wiki/Character_amnesia

Anecdotally, I've observed that most (all?) native Chinese speakers I've seen have very clear and uniform (as in similar to that of others) handwriting, even in English. I noticed this especially when I was grading tests and had to read dozens and dozens of variations of the same answer written by different people. I wonder if it's because there's a lot more emphasis on learning writing by rote and on uniformity of certain strokes in the characters.
Conversations in this vein get out of hand, people start getting seriously argumentative and insulting, and people get upset. It's not that discussions of this sort shouldn't happen but company mailing lists maybe aren't the best place to have them if civil debate is the goal.
> Imagine if it was cheaper to buy a house and service the mortgage on it, than to rent. In such a case, is the rental market still a great thing?

What I'm trying to say is that if the government is manipulating the market by giving tax advantages to the homeowner market, and tax disadvantages to the rental market, that it's not a good way to spend public funds.

Home ownership is exactly cheaper because it's so subsidised through various ta breaks. That makes renting more expensive vis-a-vis owning, which hurts the class of people who can't rent or has a different preference around life (e.g. more transient, more mobile, less fixed, travel for work, seasonal work etc). Then concluding 'oh owning is cheaper, but it's less accessible, let's give even more tax breaks and stimulus and make renting even more expensive' only exacerbates the problem, it doesn't solve it.
The UK's National Health Service (NHS) is definitely up there.

There are 1.6m people working for NHS and about 41m people of working age in the UK. So that's about 1 in 26 (or 3.9%).

Sources: https://www.kingsfund.org.uk/projects/nhs-in-a-nutshell/nhs-..., https://fred.stlouisfed.org/series/LFWA64TTGBQ647S
It was clear to me on first read that the comment was referring to end-to-end encryption. It's 2021 - encryption schemes wherein somebody else has the keys are decreasingly relevant.

edit: Apparently Slack does indeed facilitate end-to-end encryption using a key management service, as described by the reply to my comment below.
Also Australian crony capitalism is rife (see the "Game of Mates" book).

The selection criteria for choosing AstraZeneca was their lobbyist being former Chief of Staff of the Liberal party.
Ok, I will explain it.

All figs are 100% omnivorous food and -- Some -- figs are 100% vegan food. (Lets pretend that all this birds entangled and shoot never existed). And I'm saying some, but not all.

The varieties of Ficus carica can be classified in four groups if I remember correctly. Figs in the so called 'common' group don't need to be pollinated. Can be cultivated in areas too cold in winter for the wasp to survive (like Germany, UK or even Sweden) so is a popular one and often seen in markets. This could be tagged as genuinely "100% vegan". You can do a thousand studies on then and "prove" that figs never, ever, have insects inside, but you would be just lying to yourself and your customers.

Because the real hot stuff in figs are the 'Smyrna group', that always involve the death of several animals (that are stolen to nature by people and put there deliberately to die. Definitely not vegan friendly kind of stuff). Figs in the groups 'Smyrna', 'San Pedro' or 'San Antonio' will hold the remains of a few of those animals. Period.

But those figs are also much better in complexity of flavor, crunchy texture, and better nutritionally also so the sacrifice was not in vain. Those are the famous figs breed in warm places like Greece or Turkey.
> I also don't see how this could possibly be true. Certainly the sphere of tasks that computers competently handle compared to humans is growing, but it's nowhere near "any job a human can reasonably do".

If we admit it's a job that a computer cannot reasonably do, then why do we have a computer doing it in the first place? We shouldn't accept the status quo with "well it's okay-enough" if it has limitations that are significant (and frequent!) enough to cause a large controversy.

In fact, Twitter's response was _to remove the algorithm from production_. The whole point of this challenge is to find out if there's a way to automate this task well. It doesn't have to be perfect, it has to be good enough that the times where it's wrong are not blatant and reproducible, like when this was initially made apparent:

https://www.theguardian.com/technology/2020/sep/21/twitter-a...
> The project is new, in which case you can safely ban functions, but then why are you starting a new C project in 2021?

Interoperability? A tons of chips have a single C compiler forked from an old version of GCC without even full C99 support and that's it. Good luck getting anything else running on that hardware.
This article touches on the link between memory and handwriting. There's a huge increase in retention of written things, something like 70% of what we write makes it into our long term recall memory, which blows my mind. No matter how pervasive computers become, we can never forget our physicality.
Many comments here take issue with previous warnings that haven't materialized, that dealines are missed/bad.

It sounds like we're trying hard to not do anything because those naughty people in the '60s and'70s cried wolf and there was no wolf.

Well, I'm one of those 70's people. Turned 51 this year. And I try. I have a BMW I hardly ever drive because I bought an electric-assist cargo bike.

I use that bike for the school run (~50km per day). I do the grocery shopping with it. I take the recyclable trash to the recycling yard, about 7km away.

There are some other things, like my herb garden, reducing the numbers of electric items in the house, eating less meat (this one is hard but we're winning slowly). Train when we go on vacation.

We can criticise the old folk, call foul on the scare tactics being used on us these days...

...or we can take it on board and start doing the little things.

And OMG imagine, we could maybe even stop looking for ways to criticize the government and those people from long ago, cut out the negativity, and stop making fun of Prius drivers.

Are we going to fix this or what?
Why do you have to use printf? You could have a string library would could with it's own formatting routines. There's also the option of using both a length AND a null terminator.
Amusing that Captain Planet is on there twice. For what it's worth, Rick and Morty just did a gender-swapped Captain Planet tribute episode a few weeks ago, and they run on AT&T-owned HBO Max.
> So aside from “just stop buying from Amazon” what can we do

There are two issues here: One is that you want to boycott a company that treats its employees bad, and two is that you buying local makes money circulate in the local economy.

Make sure to decouple those.

I like to play a game of "how is this retail employee going to lie to me today" when I walk in any brick and mortar establishment. Its entertainment.
Amazon is putting in a new warehouse near where I live. They bought up farm land and are converting into a crazy large building that spans the distance between to major roads. Its going to impact traffic on both of those roads, construction already has. We'll probably need a bigger bridge on one of those roads too. It will also have a huge parking lot for the people that will work there. This building is bigger than Walmart, Dicks, and Home Depot combined. I don't see how this is an improvement, just another big addition.
People are legitimately quitting over this. If they don't want to have employee shortages, they will need to adapt and allow it.
1 in Every 169 U.S. Workers Is Now Employed by Amazon
That makes me feel a lot better. Much of Amazon is "worth nationalizing", but the is nothing I'd want from GM.

Saying "well GM is better to labor" I think is highly paternalistic. Labor was stronger in the postwar era, and the unionization of the auto industry is a holdover from that.
Companies are given a charter to operate and limited liability by the government, in return for performing a public good. At least that was how the idea of corporations came into being.

Capitalism is an economic system, not a system of government. Theoretically we can change the any of the rules corporations operate under through our government, if people cared enough and/or weren't so distracted with other things. Other governments hold companies in their jurisdictions to different standards, like the Chinese, various European countries, Cambodia, etc. All different.

The fact that our culture values money more than many other things, and that we allow corporations and their rich owners to fund politicians has got us to where we are now. The establishment is always resistant to change.
How have the responses been?
> Even better is to not null terminate strings and use pointer plus length everywhere.

Yes. Except that we aren't programming in a void. Particularly if you are writing C to begin with, you will have to interface with decades of existing code. Some of which has interfaces that crept into standards.

You eventually have to pass a string to some function that does not have a length argument and expects a null-terminated string, be it to a library function or the operating system itself (e.g. the `open` system call). You will still need to keep that null-terminator around.
Most of Amazon's workforce does very narrow jobs. Robots will be doing picking and boxing as soon as Amazon can make that work. Then will come the massive layoffs. Except that Amazon turnover is so high, they will just be non-hires, so it will be invisible in statistics.
It's not the backend that's the problem. That's trivial. But browser are just so annoying. HTML + CSS looks slightly different on all browsers. Web API that don't work in all browsers. Basic stuff like file saving not being available. And don't get me started on CSS. I have never met anyone that truly understands CSS. It's all just throwing shit at the wall until it sticks.
Habits of Mind: An organizing principle for mathematics curriculum
Hey, thanks for a new take on an old story. That makes much more sense than any other version I have heard over the decades.
Ask HN: Looking for a CTO
We're a FinTech startup (deposits, pre-paid card, mortgages, investments), based out of Toronto, and looking for a CTO. Would prefer local, but open to remote (prefer EST time zone and someone in Canada but open to everyone).

The company is 4 years in, and are on the verge of some really big things over the next few months. Currently we are 5 people with an outsourced development team that we need to replace. This would be the first hire in that process with the goal of growing the product development team to maybe 6 over the next year.

We just closed our SAFE round, and have enough runway for the next 18-months (assuming no revenue, but we make revenue that's growing YOY) - we are pretty lean. Have a VC lined up for a Series A later this year.

Our stack is Python/Django/React/AWS.

email me sam [at] aproductguy [dot] ca, and I'll send you a note with the complete job listing as soon as possible.

Thanks!