skysight-inc/HackerNews huggingface dataset:
> 'strcpy' should usually be replaced by 'strncpy'

Sorry to butt in, but this is a bit of a trigger for me: I’ve had to fix a number of programs infected with this idea.

The main problems with strncpy are:

When the source string is shorter than n, strncpy will pad the target to n bytes, filling with zeros. This is bad for performance.

When the source string is longer than n, strncpy will copy n bytes but _not_ nul-terminate the target. So you need extra schenanigans every time you use it to cover this case.

So strncpy is hardly ever a good idea. Sadly there is no standard replacement that is widely accepted. More details at
https://en.wikipedia.org/wiki/C_string_handling#Replacements
I use a different delimiter (using the option recipient_delimiter in postfix on my mailserver) and have yet to see a spammer figure it out. YMMV.
Heyyy man, what if the universe is LINEAR?
If a function f passes through some point (a,b), then the tangent to f through that point is given by

(y-b) = f'(a)·(x-a)

and that function is affine but usually not linear. (For the tangent curve to be a linear function, you would need a·f'(a) = b, so that the tangent goes through the point (0,0).)

It's not at all obvious to me that this means that the function d(f) = df/dx is linear. It is linear, but I don't see how the tangent curve demonstrates it.
You cannot speak of boundedness of operators if you don't specify the domain and codomain spaces. The derivation operator is for example bounded between C^1(R) and C^0(R), or between C^\infty(R) and C^\infty(R). Your example correctly proves that it is not bounded between C^0(R) and C^0(R).
Startup stories digest
Well, one more reason not to use gmail i suppose. If you have your own mailserver you can configure a different delimiter.
> I guess science has always been this contemptuous of both its ancestors and the religious.

> > The Buddhist finds his answer in a toleration for what he may neither understand nor alter.

Let's be charitable; this is not contempt, it is merely shallow knowledge. In 1936, educated westerners had heard the praises of Buddhism but had little access to sophisticated teaching.

Buddhism really does teach us to accept the world as it is, and that the world as it is goes beyond the reach of propositional knowledge. So it is understandable that someone with a hazy (but not wrong) impression of that call it "toleration for what he may neither understand nor alter".
Economists always love the slight of hand that you pointed out. If there are a million losers, and a million plus 1 winners, economists see it as a sound policy.
I doubt many of the partners even want to know those details.

I know when I installed smart switches in our house, my wife didn't want to know any details other than "Which button do I press to turn all lights on and all lights off?" She didn't even want the controller app on her phone, she just texts me if she's out and thinks she forgot to turn the lights off or if she wants me to check in on the dog on the camera.

If I got hit by a bus and she had to remove it all, she can call an electrician.

In any case I doubt an abuser will want to tell his spouse how to disable everything.
Depends on what space you define the derivative on. It is of course a bounded (and therefore continuous) operator from C^k to C^{k-1} for any positive integer K.

Additionally, it only really makes sense to talk about bounded operators between topological vectors spaces (as you need to make sense of what it means to be bounded), of which the most commonly dealt with are Banach spaces.
Amusingly, the website this article is hosted in pops up a modal asking you to sign up to a mailing list with a low contrast dismiss button and saying "you can always unsubscribe". People in glass houses.
You can put a hash of your public key in the TLSA record (TLSA 3 1 1). Unlike the full certificate hash (TLSA 3 0 1,) the public key hash shouldn't change when your LE certs rollover.

See: https://community.letsencrypt.org/t/please-avoid-3-0-1-and-3...
Show HN: The Vue.js Handbook – Free 120 pages ebook
That works great if you control your own mail server, but most people don't these days. :)
HP Deskjet F335 Driver Download – Printers Driver
Nvidia’s new NDA attacks journalistic work
Yes I was, and I was misreading the original comment.
So what would that transition look like, how would you phase the roll out? Practically how would this work and would the result be worth the effort to each individual involved or would it be a utopian ideal for ‘the greater good’?
Thanks! Your comment caught my eye because I also struggle with some letters that I get in German. I'll definitely test out your software, I didn't anticipate that you had it already packaged nicely - I was anticipating some github repo, hence asking for the code.
C11 introduced strnlen_s, a "safe" replacement to strlen.
I used to teach fencing, in old days people would do months of footwork before being allowed to have a go at the actual sport. This changed because once the possibility of fatal encounters disappeared almost no one was motivated enough to go through the prerequisite.

But being clear, the footwork is the fundamental and can't be skipped.
I agree with some of what you say about what people do, but entirely disagree with you with why people do those things.

> As for choosing to not make structure to last...

I agree with you that we are often short-sighted and have non-sustainable practices. But the reason for making bad products is not that we can't - we absolutely can - its just that we are greedy. Its like saying that because we haven't gone to the Moon in 40 years, we have forgotten and can't do it anymore. No, if someone wanted to do it and was willing to spend a few billion, they could absolutely start from scratch, with no help from NASA or old designs and still figure out how to go to the Moon in a few years. Its not hard, just something nobody wants to do.

> If we are continually improving our construction techniques then explain why there are various research groups trying to work out...

I understand that compared to other ancient civilizations the Pyramids are surprising and its not completely known what sort of system allowed for their construction. But why historians are interested to learn this is not because they want to use it to become rich or construct pyramids ourselves. Historians are interested just because historians are interested in what people from long ago used to do. Historians also try to learn how many hours people worked a day, what the nature of marriage was, what sort of food people ate etc. Figuring out the pyramids is just one question out of many.

> Is it because those techniques are superior to those we use today?

No, they weren't. They just used tens of thousands of slaves to move big rocks. A big modern crane can do the same without killing off thousands of people.

> ... we don't know how it was done... it becomes very difficult to duplicate.

Us not knowing how they did it means nothing about how we can do it. We can just do it differently and much more easily. Pyramids are one of the most stable structures you can build. We literally just need a big kiln to make huge bricks and a big crane to place those bricks in the right spots. Of course, if we were limited to 50,000 slaves and no modern equipment, we might fail because we have indeed forgotten "techniques" of moving stones at the cost of many lives, but superior?
Sorry about that, we're a couple of co-workers and thought we'd show some support for our content writer thinking it wouldn't make a difference at our small scale. Will not upvote in the future!:)
I think you'll find that derivatives are overwhelming defined as operators on vector spaces. It is definitely correct to talk about a linear function on a vector space.
Right. There are a lot of comments along the lines of "Duhhh, that's the point of calculus" here. But you know what? Screw that. People learn when people learn, and discovering it for yourself is a lot cooler than someone telling you about it, especially if it's related to investigating something you care about.

I can't tell you the number of 'trivial' math facts that I have (re)discovered because they were in the context of something I cared deeply about.

The point isn't to remember D_x is a linear operator--math isn't about memorization. It's about understanding the context where this is a useful fact and knowing how to figure it out.

Learn it in Calc I and you can half-heartedly reference it (...isn't differentiation linear? I feel like I remember that from senior year of high school...).

Figure it out on your own and you own it for life.

Post it to the internet and you get ridiculed and mocked for it so that you wish you could forget it.
In the USA, this is just how it’s done. I’m not exaggerating; this is business as usual. Penalizing this would be a catastrophe for Americans. I think the sheer volume of the tricks, lies, gimmicks and gotchas cause each one bleed into the next to the point of immersion. The shimmer of the spectacle and hope become one and the same. Because every day is just another swindle at the Big Bazaar Of Life.
There's strlcpy, but it's not part of POSIX unfortunately.
> price of US stocks will go down, the valuation of your company will go down, the value of your house will go down, and more.

You say that as if it is a bad thing, but in europe foreign investment like this can be a source of inequality and makes houses unaffordable for the middle class
That very long and tedious piece seems to confuse geekdom with the portrayal of geeks in pop culture. The point of the Status 451 piece seems to be exactly to draw attention to that confusion: that geek culture is not just a flavor or identity to appropriate for cool points once it gains social cachet, but a real sub culture which has been purring along just fine for decades, which entryism necessarily displaces.

Your usage of "ethnicity" is rather bizarre though. Nowhere does OP use that frame, and you really must have SocJus tinted glasses on if your brain equates social class with race.
I wonder how long it will take for people to realize politics and bureaucracy does not reward merit
Oh yeah, we are very different then Germans. We have different values and political system. We have overall much lower levels of violence. We could become like Germans, but overall, we are not nearly there. Hitler did not became leader randomly and his ideas and opinions were not formed randomly. His competitors for power were different then him.

Among other things, the social darwinism and race believes of Nazi were formed by bad contemporary science (and misuse of it). They believed themselves to be rational and the right kind of man. Guess someone needed to hair split those ideas more loudly long before.

The academic hair splitting matters. The truth matters and the truth here is that this particular experiment did not shown what Zimbardo claimed to show.

In practical politial consequences of time, this experiment was used as argument that you can't possibly make prison less abusive. It did not shown that at all, it shown only that it is possible to make it abusive if you want to. Difference matters, because if you stop trying, well then conditions won't improve.
This has been addressed: https://haveibeenpwned.uservoice.com/forums/275398-general/s...
Yea, I agree that in Bennis, the focus is more on the wife's innocence and how that should impact the case. Personally, I agree with Stevens in his dissent that it has a huge impact, as the majority's logic taken to its conclusion would justify all manner of absurdities. Stevens imagines the state seizing an airline's jumbo jet should a single passenger (unaffiliated with the airline) board it with drugs.

> Although if the court is really enlightened, they'll distinguish between an asset which is primarily used for crime (a crack house or a pirate ship) and one which is used only in passing (like this car).

Agreed. The connection between the cars and crimes in both of these cases in incredibly tenuous.

The Stevens dissent in Bennis really rips the majority to pieces. I'm hopeful Ginsburg and Thomas have grown more skeptical of civil forfeiture in the interim, though I do wish our state and federal legislators would be a little less useless and clean up the civil forfeiture legislation.
Funny Uber/Lyft alternative
Which also means users can't use them either. Sometimes I want to use a different mailinator domain, but loading the homepage usually only shows the known domains.
You point out that alternative reactions like D-3He are theoretically possible.

But my argument is not that D-T (Deuterium-Tritium) fusion is theoretically impossible. It is practically impossible. While it is possible to generate very small amounts of Tritium in commercial reactors, a fusion power plant would need much much larger quantities before it could even be started. And while the D-D reaction is also theoretically possible, it is even more difficult to achieve practically.

This is similar to aviation in 1800: While it was theoretically possible to build a flying machine, there was, for example, no known engine which would have been able to power an airplane. And for somebody to say "we just go ahead and will solve the technical problem of having a low-weight power source within 20 years" would have been delusional. You can't summon technological break-throughs like a mythical ghost in a bottle.

So to sum up, your argument against that todays nuclear fusion research, which is dominantly based on the D-T reaction, will not lead to any energy reaction in foreseeable time, is that there are more exotic, more difficult, end less well understood reactions which are also theoretically possible but not even close to being practically usable in any way.
Be that as it may, the point of the article is that San Francisco, and by extension other popular cities that have undergone real estate booms, will eventually turn into largely empty concrete shells populated by increasingly older elites who despite their wealth won't be able to buy a bagel or dry clean their coat anymore because of unfavorable labor market economics.
"Classification of mathematical problems as linear and nonlinear is like classification of the Universe as bananas and non-bananas."
https://news.ycombinator.com/item?id=17395872
The dude/dudette figured it out on their own which is what math is actually about. Who cares if it's well known? Knowing a fact because you learned it in a class is cool and all but it's not the only way to acquire knowledge, and I would argue not even the best way---just the most efficient fact/hour ratio.
Well, we're talking about the early nineties.

Contemporary VBA developers (or whatever it is about) can point their pitchforks vertically, ok?
So you don't eat anything at all for the whole day? Or is it something like nuts?

What about dairy products (like milk) etc?
Graphical Snaps for Ubuntu IoT Devices
3 Simple Ways to Reduce AWS Costs
IBM is one of the go-to partners for outsourcing tasks of the Australian government, and it's usually a dumpster fire.

- 2016. Australia decided to run a census, population wide (~22 million people), all online. If you didn't enter your stuff you risked a fine. You had one day to get a good 'snapshot'. The service, built by IBM, went down immediately.

'Census outage could have been prevented by turning router on and off again: IBM' http://www.abc.net.au/news/2016-10-25/turning-router-off-and...

'IBM to pay more than $30m in compensation for census fail, Prime Minister Malcolm Turnbull suggests' http://www.abc.net.au/news/2016-11-25/ibm-to-pay-over-$30m-i... (Have they done this? I don't think so)

They said it was an 'overseas DDOS' but there is no proof for that, personally I think it was Australians accessing the page from overseas.

Interestingly, this is not on IBM's Wikipedia page.

- In Queensland, IBM borked the rollout of a new health payroll system so extremely that the state premier banned the state from outsourcing to IBM (and that was before the census catastrophe!!)

>The commission, headed by former supreme court judge Richard Chesterman, tied a number of IBM employees working on the contract bid to serious ethical transgressions, including using leaked information about competitors to gain advantage and attempting to access tender responses by opposing bidders Logica and Accenture.

https://www.itnews.com.au/news/queenslands-ibm-ban-lives-on-...

In the end, the state had to carry the costs (1.2 billion) https://www.itnews.com.au/news/qld-health-ibm-payroll-court-...

It was supposed to cost less than 10 million.

This is also not on IBM's Wikipedia page.
Vaguely reminds me of Hegel as Hegel describes in his Phenomenology of Spirit the history of the human kind as a progress of collective consciousness (and as I see it, in parallel the progress of individual consciousness). What Hegel describes, in my perspective, is science as a way of thinking, or rather, science as a way of being, where you find yourself and people find you as you immerse yourself into the journey of the progressive world.

Recommend to try the preface of the Phenomenology of the Spirit to get some kind of idea of Hegel's thinking / speculative logic, which I find fascinating.
The security guard at the front door of the office building chastised me for carrying the box, and told me that I should be using a dolly to transport it. (None of the 19 videos I had to watch to be a Flex driver recommended bringing a delivery cart or a dolly.)

How could you not know this? Have you never seen another delivery driver? Do you really need a training video to tell you that when you need to carry a lot of heavy packages, you should use a dolly?
> Have we really not understood OO at all

The problem is that whenever we think OO, visions of Alan Kay and Smalltalk float into our heads and suddenly Everything Is An Object. Numbers "know" how to add themselves to other numbers, strings "know" how to print themselves to standard output...

...insanity ensues. We wake up, write a blog post about how OO failed and discard it all, only to repeat the cycle when we notice that some of the sane things we're doing look entirely as if we were doing OO.
> It increments t in the loop after dereferencing it which only changes the value pointed to by t.

This is wrong. Postfix increment has a higher precedence than the dereference operator.
Being shot is the most important time. This is when the wheel is going to be put under the most stress and it is most important that it performs...
When I was learning C in the eighties, I bought a book about 3D programming, the worst programming book I've read. I believe that examples worked, at least the ones that I typed did, but the style was atrocious. The concept of function parameters seemed to be totally alien to the author. The idiot created x1, X1, x2, X3, x, xthis, xthat... variables instead. He was a former BASIC book author too.

I can't warn you because I put it to the trash bin long ago.
> They are available only in a limited amount only under certain conditions and their variability isn't under our control.

If one connects wind turbines to an electrical grid in a larger area, the variability averages out.

Battery storage is being discussed. But what is probably more economical is that a significant proportion of energy usage is somewhat flexible in time. Take hot water generation. It is expensive to store the amount of electricity to bring 100 liters of water to boil, but it is very easy to store 100 liters of hot water for a few days. Heating and cooling make a very big proportion in modern energy use.

And this isn't a new idea at all - all of human history, our energy management was around making use of a surplus of energy, like food, for times when less was available, and using storage.
The Most Interesting
I've actually thought of this a while back and thought "wouldn't that be awesome?". Kudos to the ones who developed it!
4. Rent dedicated servers from [insert cheap dedicated server provider, Hetzner, for example]
> "Unique" is a pretty extraordinary claim, considering the author is advocating using pre-existing tools and facilities. [...] just because he didn't use them in the Docker way, doesn't make that way unique.

Yes you can make use of the same standard tools as Docker to achieve the same features. There are a multitude of ways you can integrate those (and multiple ways to combine your different options). Docker offers one way, the author describes another way.

The author's way is more unique.

> Docker is genuinely more complex and harder to use than the alternatives.

To make this point, the authors says: "Just read man 7 namespaces. It's well written and makes it easy to grok the concept".

I did, it's super low-level. The audience for this man-page seems to be OS developer, not web developers (or other upper stack level developers).

Any non-system admin can understand the docker documentation, be able to build, distribute and launch container images in less than an hour... Learning to use btrfs or aufs, chroot, ifconfig, init scripts, ..., is easier? Most people never heard of IPC subsystems, UTS, ... and don't need to.
If you're in a relationship where you fear retribution for turning off an annoying gadget, then the relationship is already abusive, and it's time to get out. The gadget is not the problem
> it seems that the more appropriate assumption should be to not regulate a substance, until it can be shown to be harmful

How are you going to stop people from dying when I sell arsenic as a baldness cure?
Marijuana is only schedule 1 because of Nixon attacks against his “enemies,” hippies and blacks, as cooberated by Ehrlichman. And as the 1920’s and Portugal prove, Prohibition always backfires and helps criminals.
It is common in this context to say "linear" to also mean "affine", because after all affine functions are not much more complicated than linear functions.
Nintendo Labo now supports Mario Kart for cardboard racing
Using Neural Nets to learn the best images to discover a new local establishment
Heh, not only this but there are also plenty of C++ books that are literally less than worthless.

Additionally another common domain of clueless writing is computer graphics and the related math. There are so many articles written by enthusiastic people (no doubt) where the information is just adding noise. Finding trustworthy good quality information requires that you know a considerable amount already so you know what is good and what is not (talking about online content here) :)
I taught a robot how to make Gqom
Ask HN: HTML5 based phone OS in 2018?
Hey HN, I'd like to know if there are any good HTML5 based phone OS'es that are usable as of 2018?

I'm looking for something to build on top of, as a developer.Do you know of any reliable ones, or are you working on one? I'd like to know :)
What? $ 1.2 billion for a failed project that in 2010 Queensland's government gave IBM a waiver?

This is blatantly corrupt, why the fuck would a government give a company a waiver from their contractual responsibilities on a failed project? That's utterly insane.
No, it's immoral and a person with such feelings is not healthy.
Snore. Yes, KDC was a farce. You’re just scaremongering though.
> To make Fusion work, there is a lot of unproven technology required.

For the critical issue of tritium breeding, it is more like non-existing technology. What is meant to bridge the gap between today's plasma physics experiments and working power plants includes a large amount of fairy dust. It is not a valid comparison to compare that against the advantages and disadvantages of the existing renewable sources. Even the Pelamis wave power plant (which was discontinued for whatever reasons) is far far closer to large-scale energy generation than any nuclear fusion process could be in the next 50 years.
How to use roku TV settings without remote?