skysight-inc/HackerNews huggingface dataset:
#define strncat(a, b, maxlen) snprintf(a + strlen(a), maxlen - strlen(a), "%s", b)
Machine Learning making banks become customer-centric rock stars
I think that what irks a lot of people is that Oracle has almost 300 open positions in the US for Java developers.

Why lay off experienced developers instead of moving them to currently unfilled positions?
This is a great example why to believe in open standards and open source.
> If we're going to play that game, where did the electricity come from for your watt-hour-sucking GPU?

Pointing out that diamond mining is also not without externalities doesn't mean d0lph is an exponent of Bitcoin mining.
MLB buys Rawlings, the company that makes its baseballs
"Why are laws that way?"

Because the company wants to weaken the unions as much as possible.
True. But not everyone can use it. If you can, it's (almost always) the right answer.
Here's more scary literature: https://www.engadget.com/2018/02/22/china-xinjiang-surveilla...
How to Make an Animation of a Typing Cat
I was poor growing up. Both parents worked, a lot. My mom had tons of ways to quickly prepare ground beef or chicken into something that tasted good. When she had time she bought whole chickens and broken them down because it was cheaper. Maybe once/month she would buy a 2 liter of soda as a treat for my sister and me. So I've been there and done that.

And lets get off of this no time argument. Why do all these people with no time still have TVs? The average American watches ~5 hours of TV per day. Watch 4 hours instead and cook a healthier and cheaper meal.
Sounds like a case of https://en.wikipedia.org/wiki/Simpson%27s_paradox
Chill.

It's both a user and UX problem. It's like when some part of a website's functionality is only available through Flash.

You know some (nowadays "most") people will have it disabled, and you're indirectly saying that you don't care about those users at all, which is not a bad thing.

It's the users' fault for not enabling Flash, sure, because they're not your target audience. But whether you provide a good UX for your non-target audience or not, it's your fault. And again, you're not obligated to accommodate those users, but that doesn't change the fact the you could give them a better UX but chose not to.

So, from this you can know that the users GitLab cares about are only a subset of the users GitHub cares about.
The chinese accept their authoritarian regime simply because of the immense economic growth they’ve had over the past few decades. Not long ago they were starving under Mao. No one revolts under good times and risks going back to starvation.
You're trying to argue technicalities that most people not only don't understand, but don't care about. The key question is: Did facebook give information about you to other people without your control?

You're basically arguing that yes they did, but it's okay because of the way they did it. Facebook is responsible for communicating that nuance, and they failed to do so. They offered an absolute, and whether they were lying or not, what Zuck said was not accurate.
Hm, how about we call that file package.json?
For those similarly curious:

"""

char *
STRNCPY (char s1, const char s2, size_t n)
{

size_t size = __strnlen (s2, n);

if (size != n)

memset (s1 + size, '\0', n - size);

return memcpy (s1, s2, size);

}

libc_hidden_builtin_def (strncpy)

"""

... which is actually different than how I thought it would be implemented (it ends up with an extra loop to figure out the size of the string).

(side note, how does one format code in HN?)
I think one of the bigger challenges facing Unity is that dasatinib plus quercetin may be just as good as anything they are rolling out. All of the animal studies of senolytic compounds fall into the category of either no meaningful effect or the category of ~25% clearance in selected tissues.

Small molecule development, in the sense of changing the parameters of your candidate in a desired direction in a class of molecules, is slow and expensive and to a certain extent reliant on good fortune. You can't just reliably and cheaply dial up the effectiveness or adjust with tissue specificity.

In a world in which dasatinib/quercetin, which costs ~$100 for a dose you take every year at most, does as well as the Unity candidates, will Unity be able to charge the high costs at a great enough volume required to keep the investors happy? Seems unlikely.

I think Oisin Biotechnologies turning up a year or two later in the clinic with a far superior gene therapy product, clearing near all senescent cells in near all tissues, and which can be adjusted rapidly and at low cost, is less of a threat. The market, every human being much over the age of 40, is truly enormous, and several large companies could operate without bumping into one another all that much.
1. Each employee on a train costs well over $100k/year: going from 2 employees per train (driver & conductor) to 1 would save on the order of $200+ million dollars a year.

2. Wifi in stations is entirely paid for by the advertising portal, so that upgrade was "free" for the MTA.
I appreciate the consistency.

I disagree and think in both cases it should be democratic, but your views are certainly valid.
Thanks for your very clear answer!

My point was basically, most or all of the interesting information is stored in the journal. You could hide the legder from a non-technical user, or even generate it on-the-fly. I think this is the distinguishing idea in OP's program. That the data model has only one "from" and one "to" field is incidential and could be fixed.
Worked in HS for a local computer repair shop. One trick to improve success with the freezer method is to place the drive in a sealed plastic bag with some desiccant packs. Placing a bare drive in the freezer can kill it due to condensation. Leave the drive in the bag at least a few hours to give the desiccant time to work. Like others have said, this is a last ditch effort, and if you really care enough, don't do it if you are willing to send it to a specialist, since it can ruin a recoverable drive. But it does seem to work ~30% of the time (at least w/ deathstars) and I did have success on a clicking Seagate drive last year.
Never memcpy structs, except if you need to ensure that the padding bytes are copied. C has had a = b assignment for structs since long before ANSI C.
That was your opportunity to take over.

You should have started drawing up strategic vision charts, cheesy motivational posters and started talking to people about getting in touch with their authentic values.
Usually there is a union local that represents a business unit, geography, or job title.

It gets wonky for national organizations with all of the different rules, especially as former backwater places like the South have become more prominent economically.
I'm just shouting into the void here, but why does anyone find it acceptable that C is almost fifty years old– a half-century– and we still have new articles published about the correct way to copy memory. And then, immediately following them, comments in responds to those articles saying the article is wrong and that you should actually do it this other way. Nobody has figured this out in 50 years?
No. That is an extremely uncharitable, and very, very uncivil way of putting it.
"Mortals never sell me their souls. They give them away."
-Satan, "The Broken Sword" by Poul Anderson
Sodium is only unhealthy if you happen to have hypertsenion.
I don't think propaganda pieces are going to contain full reality, practically by definition. Which is not to say the times weren't dire. But Tolkien's work is fantasy and considered deeply moral under contrived circumstances. Viewed as a simple story it's fine, but given their stature I'd rather watch x-men, which has more nuanced characters, or something that tries to be accurately and considerately historical, or something that isn't about finding excuses for glorious battle.
Amesys is a western society?
It is problematic even in C(++) because of header files. This is why GNU libstdc++ and similar gcc-related libraries are not LGPL.
It still wastes time zero padding dest when src is shorter.
I'm not talking about the quality of the job. I'm talking about the idea that sending jobs overseas + illegal immigration explains the current situation. It does not.
Sounds a lot like The Grateful Dead trying to LOTR.

https://www.youtube.com/watch?v=rs0AmruS8Ro
Because most employers simply wouldn't want to deal with that. They don't want to have one set of rules for one group, and one set of rules for another. And what if you are a member, get the raise, and then leave the union? Do they dock your pay back to what you were before?
Sandwiches are dirt cheap, filling, nutritious, and quick to make and clean up. Sure, they aren't delightful, which is sad, but that's not the barrier to nutrition.
How to Read Deleted Messages on Whatsapp Messenger
How To Read Deleted Messages On Whatsapp Messenger
Today we will discuss how to read deleted messages on whatsapp messenger
If the majority of your co-workers join the union, at what point do you feel that you would be scabbing by not joining the union that is fighting for better standards for you?
Thats how home run rate keeps going up!
I completely blame the OS and/or software here, not the chip.

Let me put it this way:

Take a sample rate of 200kHz.

Take a pipeline with 12 steps that each require 2-3GHz.

These cores can easily synchronize to within a fraction of a microsecond, so round up to 1us.

Assume each plugin needs 10 samples available, and that the input-to-output latency might get as high as 20 samples when it's running on a completely dedicated core.

So put a buffer between each core of 20 samples, plus an extra 50% to be conservative, plus an extra 15us=3 samples to synchronize the cores with very conservative slop. So 33 samples per buffer.

12 inter-core buffers now take up a total of 396 samples, or slightly under 2ms. For a pipeline doing ~30GHz of work.

Nothing about modern multi-core CPU design makes a pipeline like this difficult. It's all software considerations, where the use of soft-realtime threads 'should' be straightforward, while letting the OS use the spare cores.

If you have a stutter at 25ms then someone blatantly screwed up their code.
JS allows numbers as object keys (though it's one of those weird behavioral swamps where arrays act differently from objects, and sometimes they are coerced to strings [objects] and sometimes not [arrays], depending), so this mostly seems that its just about getting better at defining the existing JS behaviors of things, modulo the "quirks" of course.

A lot of this matters in "metaprogramming" like Readonly<T> and Partial<T> which use all of the existing keys in a type to produce a "new" result (none of the key can be set, and all of the keys are optional, respectively), and making sure it doesn't miss intentional keys like symbols and numbers.
I hope this isn't considered devolving the thread but that episode of Radiolab mentioned above certainly made it seem, to me, the issue was about censoring movie makers.

If you're on the left you more likely than not like Michael Moore movies. They are often very political. Should they be banned? That was the topic that came up in Radiolab.

Citizens United, inspired by Michael Moore's movies, decided they wanted to do the same thing. Someone decided Citizens United didn't have the same rights to release movies with a political message as Michael Moore and the studios that funded and distributed his movies. The Supreme Court I think saw the problem. Where does it end? Is Transformers political speech? Is Sense8 political speech? Is Milk?

I don't know how to solve the issue of getting money out of politics but I can at least see the argument that deciding which movies are political and which are not is not as easy as it sounds. Maybe Michael Moore's movie should have been prevented from release within N months before the election? I think that was the actual law used to prevent Citizen's United's movie coming out even though Moore's came out within the same type of time frame before an election.
Cops surveil, that's their job. Why would the economist need to back this up? There is nothing extraordinary about that claim in any way whatsoever.
you're not going to hear the media complaining about that, though
Yep. Human nature is a different problem set altogether from being intentionally designed to waste electricity.
I made an extension to make Photobucket photos visible again, since last year Photobucket suddenly put all their photos behind a huge paywall last year, and destroyed a lot of knowledge on forums that I use:
https://chrome.google.com/webstore/detail/photobucket-embedd...
That sounds horrible (to me). I have always preferred the branch/pull request/merge workflow. I always have always felt strongly that the history be maintained so we can see how the code evolved when a feature was being worked on. We can often get insight into what things may have been tried but didn't work.
Understand that different new hires have different strengths, weaknesses, and psychologies.

Some people on the Autism spectrum probably will have more trouble figuring out, on their own, the cultural norms of the new workplace. E.g.:

- How okay is it to ask questions vs. figuring out things for one's self?

- How often do coworkers want to communicate? (Particularly challenging for remote workers to figure out.)

- In self-organizing teams, what's acceptable in terms of assertiveness in self-selecting what to work on.
"While AI will no doubt have countless benefits for people, and already is beneficial in a lot of cases"

I think this is less about AGI/ full AI than it is about learning systems. https://en.wikipedia.org/wiki/Artificial_general_intelligenc...

That said, the impact of this stuff especially in the context of the web is both profound and evolving.
If you expect that it's possible for buflen to be 0, you should check before the strncpy call, not after.
I feel that many of the people complaining about "rent seeking" by unions are perfectly fine with the same actions taken by large companies, who happen to have far, far, far more power and impact.
Proving to a high standard of proof would indeed be very hard.

But a lot of useful Science can be done by observing, documenting, cataloging and explaining the effects of AI being already inflicted on us.
I'm not sure the relevance of it being artificial or not is here. The reality is that many people in their 20s and 30s can't buy a house, while their parents could, even if their parents were less affluent by many measures, say in orange purchasing power.
You have an actual cubicle? What heaven employer is this?
C99 also introduced swprintf for wide char strings, with a different return value convention. Just to add to the pain when you change char to wchar.

Under swprintf, and related functions, %s still takes a char pointer, not wchar_t! So when you make everything wide, you have to edit all the %s to %ls.
Maybe, but hobbyist glassblowers exist.
He's assuming that dest is zero-initialized, which I believe it will be as written. However, he should mention that because there will be plenty of similar cases where dest will not be initialized.

edit: As asveikau notes below, this is not the case
All I could think while reading that issue was "you're not wrong, you're just an asshole."
OP here. Agreed - #2 is great. I've bought a squeaky-clean notebook for the new gig. Page 1 is already titled "onboarding questions". /fistbump.
The caller is informed: "If the return value is >= dstsize, the output string has been truncated"
Curious, were you much older than the other students in college?
And then dinner is waiting on the doorstep as a 14 pound box overnighted from the opposite coast full of lettuce and beets.
I just don't understand why C hasn't been blessed with a proper string type yet. Object Pascal has had one (actually, several) for decades now and it doesn't hinder the language's ability to handle low-level memory manipulation (you can still manually copy string memory, convert them back/forth into raw Char pointers, etc.), and generally serves to make string handling much, much safer for most applications. It does however, result in slightly more memory consumption for the length/reference count tags and does incur some overhead in the form of compiler-generated reference count checks at the end of functions. But, IMO, the advantages outweigh the disadvantages for general-purpose C programming and you're always free to fall back to the more manual methods of handling character arrays.

So, am I missing something and there is some concrete reason why this can't be implemented ?
I mean, that's fairly broken given the way developers expect operators to be applied.

The ease of avoidance is unrelated to whether it's broken behavior or not.
Cheating in online competitive gaming is a form of lying. I play CSGO myself and it is extremely frustrating when people aimbot or wallhack. Based on personal experience playing against aimbot is like banging head against the wall, it definitely lowers my quality of life. Moreover a single person with aimbot can depopulate entire server pretty quickly.

A person chooses to negatively affect quality of life of 10-20 other people. I can't find a word to describe that behavior other than asshole. With that in mind the issue can be reframed to - should assholes have a lower credit score?

I do not know. I certainly do not agree with Chinese methods, because I think positive reinforcement works better. With that said, I am curious what long term effect Chinese population hacking will have on their society.

On using positive reinforcement to shape the society. Imagine a city park where lights pulse green when someone picks up a piece of trash from the ground and throws it away into the trash can. Or a park that remembers people that do not litter and greets them with a positive reinforcement signal when they walk in.
Gerrit is ugly* and less fully featured, but I love it. It's great for linear master branches. I like the rebase support, it means what I reviewed goes into master, no squashing required. And diffing between rebased patchsets works great and is a killer review feature (most tools get very unhappy when you rebase).

It's only really for code review though. No nice web UI for browsing repositories, no issue tracking, etc. This was a plus for us (very unix-y and easy to integrate with existing systems), but could be seen as a negative.

* The UI is getting better, and you can tweak the CSS, it's pretty simple.
The rise and fall of Apple's Swift
Probably back in 1970s `(characters, \000)` looked "elegant", and `(counter, characters)`, wasteful.

This decision, if not the single most prolific, is likely one of the top 3 sources of security exploits in C code. All for the want of saving a few bytes.
Synthetic Monitoring: A Case Study
Just letting you know if you want to turn that paragraph into a whole Alt-Reality Fan Fiction..., I would happily support you on Patreon to read more of that.
I wonder if they considered an employee buyout. It seems like Union v management can be counterproductive, but all workers owning the company seems to put all workers in alignment. It’s kind of weird with New Yorker as there isn’t “labor” per se, as it’s writers and editors and publishers and whatnot.
Because unions also try to keep secret who voted for/against a union.

If the employers know who's in a union and whose not in a union it's easy for them to push out union members and replace them with non union members.
Something similar happened from Linus Torvalds just recently: https://news.ycombinator.com/item?id=17242103

Is being a dick pretty common in open source discussion?
18.9% income increase is not living better if it's matched by >=19% cost increase. "Inflation" as usually reported is less than the "cost of living increase"
Agree completely.

Although one of the more interesting "talks" I ever heard him give was a discussion on promises. I was lucky enough to be in (the ridiculously long) line behind him waiting for food at NodeConf in 2012 and he and an engineer from Microsoft had a pretty spirited discussion that explored the subject in way more depth than I had previously thought possible. Ironically, given that he now considers the removal of promises to be a mistake, it was the engineer from Microsoft who took the pro-promises side of that argument.
> There are also resources that are drawn from a fixed-size pot. Land ownership for example. If a tiny number of people assume possession of vast amounts of land, the amount left for everyone else is reduced.

Excellent point. Similarly, the pool of doctors is fixed in the short term, because it takes time for new doctors to go through medical school so that supply increases to meet demand.

This means in the short term, rising inequality can drive up the price of medical costs (at least the part of these costs that goes to doctors' wages).
Trained algorithms, even if they are not designed for directed impact, can be manipulated via data fed into them to have a targeted impact. To be trained is to have bias.
> He's assuming that dest is zero-initialized, which I believe it will be as written.

Given this snippet, incorrect. Stack allocated buffers aren't zeroed out as in the above declaration.
Too many evaluations of a. If you have snprintf, you probably have inline functions.

One day someone will do something like strncat(a += previous_delta, ...).
Game theory 101. It's to mitigate the free rider problem.

https://en.wikipedia.org/wiki/The_Logic_of_Collective_Action
I usually avoid strncpy() and strncat() altogether

char buf[256];
size_t sz = strlen(str);
if (sz < sizeof (buf)) {
memcpy(buf, str, sz + 1);
} else {
/* error processing */;
}

Truncation is not as bad as a buffer overflow. However, it is still not correct. You have to properly handle the case. And if truncating is the correct answer, make that explicit.

In practice, I almost never use fixed size buffers for strings unless I know the size at compile time.

Edit (for strcat):

char buf[256] = "blah";
size_t sz1 = strlen(buf);
size_t sz2 = strlen(str);
if (sz1 + sz2 < sizeof (buf)) {
memcpy(buf + sz1, str, sz2 + 1);
} else {
/* error processing */;
}
Expertise in building profilers and debuggers is specialized and rare, I would think. It'll be difficult for the community to find people to fill the role of the Java Mission Control team.
> Nope, that's called a richer diet.

It is amusing that use the term "richer" to dispute my claim above that Russians are less poor.
> with these idiotic moves.

I am not sure how this is an idiotic move. They are laying off ppl working on product that company doesn't think is profitable. Happens all the time, everywhere.
My thoughts exactly. As is common knowledge, Oracle simply doesn't have any other positions for people with deep knowledge of Java. Once this project was over, there just weren't any other options than to fire the whole team.
Because NY Writers politically lean left and can influence election outcomes, I suspect the Union Members will be less concerned seeing a portion of their dues going to Democratic candidates.

The Janus ruling will only impact fee payers in "right to work" states. These union members are more politically diverse, and a large percentage do not want any portion of their dues going to liberal or Democratic candidates (even though they will continue to receive equal representation and benefits from the Union).
Is this a fact or your intuition, in a perfect society we do not need laws, in such a perfect society communism would also work fine, but since the world is not perfect we need laws or revolutions to fix the problems,

I would really love some economist to team up with some game developers and run some economic simulations with different level of regulations, it would be interesting to see how well the model would match the reality.