skysight-inc/HackerNews huggingface dataset:
>Would you please elaborate on it, and its relevance? Are you referring to N being too high?

No, the stack size is implementation-defined anyway. Instead, you have a classic off-by-one error because you didn't reserve any space for the final null terminator.

Correctly used memccpy would protect against an issue like this, although the destination string would not be correctly terminated, as it's not a safe string function. Also, if your memccpy version had the correct arguments inside the loop, you wouldn't have needed the extra call before the loop to hide the issue, as the memccpy call would have been functionally identical to strcpy except for the last pass of the loop.

>What do you mean exactly? I did observe the results of the buffer. See the printf, or are you not referring to that?

At least in the link you provided, all the printf's that would observe the contents of buf after the loop are commented out. No observable change happens in the execution of the program even if your compiler decides to just remove any calls to strcpy or memccpy.

--

That being said, strcpy is quite efficient at what you're benchmarking; that is, "multiplying" short strings. The task doesn't highlight its shortcomings. (strcpy wouldn't be too bad even if the strings were longer, although memcpy might be slightly faster.)

But consider the following silly example (not checked for errors) that does highlight the issue:

char *next_insert;
size_t remaining_size;

void append_memccpy(const char *str)
{
char *tmp = memccpy(next_insert, str, '\0', remaining_size); // single pass over str
if (tmp) {
--tmp; // move pointer to terminator from one past it
remaining_size -= tmp - next_insert;
next_insert = tmp;
} else { // insufficient size remaining
str += remaining_size; // first remaining_size bytes are already copied
allocate_more();
append_memccpy(str);
}
}

void append_strcpy(const char *str)
{
size_t len = strlen(str); // first pass over str
if (len + 1 < remaining_size) {
strcpy(next_insert, str); // second pass over str
remaining_size -= len;
next_insert += len;
} else {
allocate_more();
append_strcpy(str);
}
}

Now, even though the latter version is extra silly (just to resemble the former more), it doesn't change the fact that with strcpy, we have to process each byte in str twice. If str is long enough, that might not be exactly free.
I think having children probably helps people realize that parents also need their children more than their children need to be the 6000th person to climb everest.
I don't know, that just sounds like regular "competitive" not "anti-competitive".

By the same logic, does developing a more efficient manufacturing process (eg assembly line) count as "anti-competitive"?
Can either of you kindly help us understand in layman’s terms? (Or point to an informative URL resource?)
My Schooling in the USSR Was Better Than My Kids’ in U.S. Public Schools Today
do we know whether the nag popups work well though?
Some humans like living like this.

They lack all imagination so they have nothing better to do anyway.
They have no charisma or empathy so work is only the place for them to hang out with people.
They hate people who thrive outside of work so they want everyone's life to be consumed by it.
Nibbler (1982) is directly mentioned in the article.

>"The game Snake existed before 1995. It first arrived in 1976 as an arcade game called Blockade and spawned several clones from there. Whether it was Nibbler, Worm or Rattler Race, the basic concept was consistent."
We need to give a proper credit to the Soviet physicist Petr Ufimtsev (https://en.wikipedia.org/wiki/Petr_Ufimtsev) who's published papers in 60's on reflection of electromagnetic waves were read by Lockheed Martin engineers and that started the stealth program.
> If the bus is too expensive, you can walk, or cycle, or use a car, or just not go on the journey

A citizen deciding not to take the bus makes the bus less efficient in some ways too.
First fully functional 64-bit OS for the Raspberry Pi 4
This appears to be the state of the art in minimising the resampling cost:

https://arxiv.org/pdf/1805.10941.pdf
Humans need more than atoms and power to live a comfortable life. We're rapidly destroying major ecosystems that our way of life depends on. Sure, the human race can survive huddled around breeder reactors in underground caves. But I'd like to spend old age on a planet that is reasonably similar to what we have right now.
The way it makes sense to me is to invert the number you are looking at.

95 & 99 are very 'close together'

But if you look at 5 & 1 - the first number is 5 times the second. Huge relative difference
It's not renewable in any sense of the word! Renewable doesn't mean "clean" (and there's an argument to be made that nuclear isn't even clean, but I digress).

Renewable means an energy source that literally renews itself. To avoid breaking the second law of thermos that implies there is an energy source (Sun) that recharges the renewable energy source with energy that would otherwise be wasted, therefore, you cannot net consume the resource.

In the case of wind and sunlight there is no net consumption of the resource because they'd otherwise be wasted (assuming you put solar over a parking lot and not over fertile land).

Nuclear cannot be renewable because fissile elements don't renew themselves (well, not without a supernova). We can extend the usefulness of the fuel with advanced reactors, but eventually all nuclear fuels, be they fast, thermal, fission or fusion end up with the most stable isotope of Fe - the most stable isotope.

In fact, fossil fuels are infinitely more renewable than nuclear fuels since eventually the biosphere dies, decays and some of material gets geologically captured to become fossil fuels (in geological timeframes).

There are (at least) two energy sources that are definitely not renewable:
- Nuclear
- Tidal (when we extract energy from a tide, the moon looses potential energy)
This is really important, I think, and overlooked.

A/B testing micro-optimizes an outcome you're searching for. It doesn't tell you the long term trajectory of customers, because that takes way too long to get feedback. An example: "dark patterns". Facebook is deeply damaged, in part by making choices from well-run A/B trials.

Worse, A/B testing searches out local maxima. Maybe you get locked into an approach that precludes you from making the changes that would really drive the visit ultimately.

Performance indicators and properly using quantitative information are really important-- and many executives aren't versed at this. But, conversely, you can't use A/B testing to decide who you are as a company and define your relationship with the customer.
The story I heard at the time was that it was a combination of the stealth helicopters having lousy low-hover performance, and that during training they'd mocked a nearby solid wall up with a chain-link fence, which led to picking a poor landing zone.
Thank you sir. I'll take one, with a cherry on top please.
Joke aside, I'll try one as soon as I can for real thanks
That's why we have closed borders between us states, right?
Similar here: Even though I was somewhat aware ssh could do some PKI magic, I didn't CONSIDER deploying it. But I'll try to get our sysadmins to use it. Having U2F/FIDO support seems like THE big bonus to me (also I'd like to replace that ancient HTTP basic auth on our intranet with something more user friendly and add U2F as well).

So huge thanks for the article!

OTOH, key deployment depends on the situation and size. We have a single office (=> no network bottlenecks), our /home lives on a central NFS and machines pull their users from LDAP. When I joined the company, after I got my account, I ran `ssh-keygen`, set my keyphrase and could connect to any machine. If someone quits, the LDAP user is removed.

Regarding TOFU: I think we have some admin.git which contains all machines, and their public keys are distributed from there. So no TOFU for us. With PKI this central repo of machines wouldn't magically go away, the script would be just someone else's/your's (and it would be technically cleaner).

Also, when reusing hostnames the deployment system could reuse the sshd keys instead of creating new ones.
Interesting! It might go without saying, but just to check: I assume the study intentionally included some cases where the first result was not the most relevant one, right? Did the study find differences in the rate of clicking on the first result when the first result was irrelevant?
There are definite parallels between something like MtG and lootboxes, but I think the barrier for purchase is much lower with lootboxes. A physical product like MtG cards must be purchased at a store, which will have limited quantities. It requires effort and occasionally timing to actually obtain the items. Even in our modern world of online shopping, there is typically a wait time between the impulse to buy and the reward of receiving the items of at least 24 hours, often more.

With lootboxes, the payoff is immediate. The barrier between the impulse of someone with an addiction and the payoff is virtually non-existent. I think that makes a difference in the potential for addictive behavior that shouldn't be overlooked.
Yep, librem 5 - and other similar products - is exactly what we need more of.

As far as my own server, yep, I'm already running services like nextcloud, etc. My challenge is more on the hardware and other non-digital products/services.

But thanks for bringing up librem 5 - kudos!
Revealed: Failed Hong Kong Govt PR Plan to Salvage Global Reputation
HIV is believed to have come from monkeys and/or chimps. You can get Ebola from bats and other wild animals.
It sounds funny I know but it really is so
I still think there's a problem with the logic, even accounting for "market forces." The "shortage" of STEM workers (whether that's an actual shortage of actual capable bodies or simply a shortage of people willing to put up with being undercompensated in some regard) makes us forget that, at some point in revolutionizing college education so that it churned out only STEM graduates, you'd reach the top of the curve, the paradigm would flip to there not being enough jobs, and salaries would start to fall. What you're really saying is that those types of jobs incentivize capitalists to invest in the workforce, so we should encourage people to go for that carrot. I'm saying that the capital is already there, regardless. We should be directing that money to society's priorities (which we should actually explicitly declare), not at the whims of a relatively small class of property-holders.

I mean, the debt is also a decision. We could forgive it, if we really wanted to.
>"Both sides"... no.

Yes

https://www.bbc.com/news/uk-politics-eu-referendum-35980571
I think the problem is that google confidently and authoritatively displays (in a big and bold font) "65535 bytes" which is an answer to a different question.
None.

I wear the same white alpaca sweater almost every day, the building I work inside is cold. I wear the same pear of jeans almost every day. I pick whatever shirt is clean and feel like wearing.

When I go out to a nice event, celebration, date, etc. I usually wear my Armani blazer and whatever shirt (maybe tie). Takes a few minutes at most.

Hiking/camping - whatever is in my bag that is clean.
Ask HN: Machine learning performance hardware hacks?
Were you able to successfully improve run time performance (training/modeling) of your ML solution by picking a significantly different architecture? What have the biggest bang for the buck?
You might be right. Maybe I got splashed...
For some of those things yes. Dangerous driving and smoking for me are reckless to the point of being blameworthy. I'm less sure about eating badly and not exercising but I'm not sure that's a difference of kind rather than degree (inasmuch as those things tend to be less harmful, or an instance is less harmful)
Weight is not a good enough argument because you can have a fat guy on a bike (like me) going 25mph under my own power. Allowing someone like me to use a similar speed ebike via throttle allows me to use my energy on concentrating instead of pedalling.

By your logic, fat people on bikes should require insurance.

Bike lanes are the solution. Not insurance as insurance and registration only deals with something after an accident.
I mean, 30 cents/mo is more than the overhead it would require to maintain your account + customer service.

They could probably be more clear about minimums, but the minimum isn't unreasonable.
He doesn't directly address that relentless A/B testing can be a pathology that removes the soul and flexibility from your product and can wall in future growth. This is because you have to optimize on one (or selected) KPIs but the true health of your business is more nuanced than that. Large analytics operations try to solve this by creating ever more complex KPI models but that is not attainable for most.

As a crude example if you have a community site like Reddit you could harm the community by over-optimizing your conversion funnel for Reddit Gold, while still substantially growing the Reddit Gold business. For a time.

He touches on this by admitting that the super-optimized KISSMetrics homepage was not the right strategy but I would have loved read more.
He, she, they should we now clarify our preferred pronouns when we say hello?
I aggressively block tracking and my google results are fine.
Are you from 2005? :D
I have Widex Unique Fusion but don't see anything applicable in that thread.
> The strenuous purposeful money-makers may carry all of us along with them into the lap of economic abundance.

What Keynes means by economic abundance is not the state where everyone has equally large bank accounts. Economic abundance is when even poor people have machines clean their clothes for them.

A tiny minority isn't hoarding all the washing machines, cell phones, and air conditioners.
Thanks, this is what I was looking for.

There wasn’t even an incident count in the alert so I was curious.
I'm all in on DuckduckGo.

No longer doing !g as I don't accept the Google privacy policy (although I have peaked behind the popup using Ublock)
True, firmware updates are a possible upgrade path, I don't know much about cellular hardware so I can't speak to what capabilities can be added that way.

I agree about public awareness but if I'm pessimistic it's because I do talk to my friends and family about it and they all think I'm just paranoid. :-)

They just can't understand why I don't have a FB account, don't use iCloud or Google Docs. Everyone uses it, they say, how could it be bad if everyone is using it? Granted having phone calls spied on might get their attention a bit more but I still get an attitude from people like "I'm not doing anything wrong, why would they ever listen to or track me?".
Its not really a quibble, but you aren't wrong either. Its true that valuable items will be rare, but it isn't true that all rare items will be valuable. Both the titanium white and the burnt sierra colors are equally rare, but one is much more valuable because demand is not equivalent.
Bike locks are generally irrelevant. If people can't steal the entire bike (which they usually can despite the lock) they can take off most of the parts - the tires, saddle, handlebars etc (whatever you have not wrapped in a lock).
I’ve been to the top of Santiago Peak, one of the mountains mentioned in the article. Its got a handful of big line of site radio towers with microwave tx/rx on it [1]. These peaks would probably be a good candidate for laser-based radio transmission one day. I find that kind of ironic given the fact that Michelson tested with light between 1922 to 1931!

[1] https://en.m.wikipedia.org/wiki/Santiago_Peak#Radio_communic...
There is already voluntary insurance for EBikes
Some of the variable names used:

i, j, t, qu1, S, n, N, U, X, y1, y2, V

I know others have already commented on this but I think it's worth laying out all of the cryptic variables and asking: are some of these shorthand for well known math concepts that make it unnecessary to have a more descriptive name? I understand the use of temporary value holders like `i`, but have no clue what some of the others might be used for or what the single letter names indicate.

Another way to ask the question: if the author had just used instead a, b, c, d, e, f, g, h, etc. what information would be lost, that is gained by the particular letter choices that were used? This isn't rhetorical, although there is a point to be made for sure about clarity in naming... I'm really wondering if anyone can explain what these letters might mean if you are more versed in the math than I am.

BTW here's another Vitter paper I found in case anyone's interested:

https://www.cs.umd.edu/~samir/498/vitter.pdf
I didn't even really consider holes since my goal was to prove an idea I had of using "lincoln log joints" with "impact-tightened constrictor knot lashing". I'm put quotes around those terms since I made them up.

Check out https://www.youtube.com/watch?v=Mn0m104NVAY for how I tied and tightened all the knots.

If I did use holes though, assuming I kept the lincoln log joints as well, then I reckon that would weaken the joints too much, e.g. crack the pipe on hard impacts. Also all the weight of all the bolts would add up quick. Hmm I suppose I could use plastic bolts of some kind, but then they'd have to be thicker, thus making the holes bigger, thus weakening structure further. Just thinking out loud. There could be a way, but yea I was proving the lashing concept first and foremost.

Thanks for the question. :)
I would love to know the thinking behind this method.

Off the top of my head: They are adding Cesium ("screw the environment, I have to escape my pursuer") to the engine in order to leave a plasmonic plume. The plasma, which occurs because the electrons in Cesium are stripped off in the heat of the engine, absorbs microwaves (ie, radar) because of the expected cyclotron physics of a free-electron gas.

However as an electronic countermeasure, I do not see the point. The plasmonic plume will absorb the microwaves where the rest of the plane will continue to reflect it. To my thinking, the is exactly what you do not want to do: You've reduced the microwave signal where the plane is not present, and done nothing to the signal where the plane is present. So you've improved the signal-to-noise for the enemy, which are providing guidance for anti-aircraft missiles.

Considering how many years this program went on for, my thinking must be wrong. Maybe anti-aircraft missiles of the era did not intercept from oblique angles (which takes serious computation and sensors) but could only hit from behind (where the plume would attenuate a signal)?
Show HN: Isitfit 0.2: measure AWS EC2 waste and optimize in the terminal
JohnCenaAreYouSureAboutThat.avi

Renewable is a soft definition, however all things considered “renewable” are based off of solar, geothermal, or tidal power. Fission fuels are only generated as endothermic nuclear reactions in violent cosmic events, of which there are none on our schedule. How would we go about finding more fission material once we’ve burned it all up into stable isotopes? “Renewable” is best defined as “useable power that is isn’t non-renewable”. “Non-renewable” is easier to define, since it involves a very clear, short term, one way reaction. Also on fossil fuels: they stopped being generated millions of years ago, so, no, they are not renewable currently.
So how is the invasion of Iraq affecting your buying decision process with regards to american goods?
In some ways that might be true. But I also wonder if google is using tracking/profiling as kind of a crutch.

A while ago, I had google forget about all the things I had searched for. I then wanted to look up some features of C++17, but google kept coming up with info about the C-17 Globemaster instead. Rather than just searching for my terms explicitly, it tried to interpret what I wanted, and failed miserably without knowing I had previously been interested in programming.

This doesn't explain Google groups searches, though, where zero results come up even though you copied/pasted the title from an old post.
Sun is powered by nuclear power.
> Yes, but when you show them why those ideas can't work, using numbers and science, they abandon those ideas.

This is empirically not true: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.357...
Timely intervention: how Doctor Who shapes public attitudes to science
The Marble Machine X series has been spectacular. The amount of ingenious problem solving to meet his goals is inspiring and extremely interesting
You can not ever discover in a statistical test that some probability is 0 or 1. Those are impossible values.
You can get arbitrarily close to them, but you can never reach those values.

Of course, they are valid values for the set of probabilities, just like 0K is a valid temperature, and c is a valid speed for massive things. You just will never see any of those.
“Would”

The problem with nuclear fission will always be the moments when somebody “should” have done a safety test or should have thought about it.

I often think about the reaction Angela Merkel had to the Fukushima incident. Before the Tsunami she had just scrapped the plan to end nuclear in Germany. She is a trained research physicists so that is the position you would expect from her. After Fukushima she immediately started to work on the complete shutdown.

Of course there might a lot of political calculation and the general mood shifted, but in Interviews she said that there was one thing that really got her. Fukushima was in Japan, and after Tschernobyl she always thought that this was an expected problem in a country like the Soviet Union, but in general nuclear should be safe. But after Fukushima, after the obviously bad planning and the mistakes that were done again and again, how can we expect that any country can manage the safety processes better, when Japan can’t do it. It’s not so much a technological question it’s a human and process question.
The amount of power incident from the sun is roughly 1000 W/m^2 in a sunny area. Good Silicon PV panels will capture 20% of that power generating 200 W/m^2 at peak. Getting anything more than that is going to be too expensive for a car application.

Pulling 600 W/m^2 from a PV panel may be theoretically possible, but the world record efficiency for a PV device is still less than 50%. To get above 40% efficiency you need to use very expensive multijunction devices and solar concentrators (i.e. not going to work on a car).
I think “deceive the integrity” means that the administration wouldn’t have been in the position in the first place to agree to anonymize the donation if not for Ito’s actions.
I didn't even think of that. Thanks
It is, but every now and then when I remember that overall tax that I pay is >50% of my gross income it does feel like theft.

I'm not a finance expert, but why can't there be just one tax for everything like VAT? If I buy a coffee for 1 euro I pay 20 cents VAT, if a billionaire buys a yacht for 100 mil he pays 20 mil VAT. To me that seems fair. I'm just thinking out loud here, but it seems that there are so many taxes and different stages instead of one, just so most of people wouldn't realize of how much tax they are actually paying.
Oil the chain, change and check the breakpads, check for rust on components, check tires for pressure, check break cables and probably much more.
I'll be the first in this thread to start listing off technologies other than Flash. We're at the point now where if you include JQuery on your resume, recruiters are less likely to hire you. Ruby used to be trendy for startups, Python 2.7 used to be popular. Angular 1.x beat off BackboneJS, MeteorJS, and EmberJS but even Angular was completely rewritten in Angular 2.x and superseded with React.
Could we avoid misusing the term straw man argument? That seemed like a good faith hypothetical question that could help further illuminate your own position, not some false posturing of your ideas.