skysight-inc/HackerNews huggingface dataset:
> When was the last time anyone went on a date to an actual fine dining establishment?

Last night actually with my wife to a very nice french restaurant, something we do once a week.
We live in a cramped apartment without space for a dining table, these moments are very cherished because we get to sit face to face in a nice environment with good food.
If you predict the weather tomorrow will be the same as today, you will be right most of the time. It's easy to do worse with a sophisticated model. That's probably a significant reason why evolution leads to humans and other organisms generally not using too much logical analysis, but simply doing what works until it results in a major disaster.
Yes, that's more or less what we are doing with Rlay (https://rlay.com).
Not everyone is like that. Shared beliefs and common goals are a lot of times more important but people still see each other as different even though they were born in the same hospitals and went to the same schools and sports events all their lives due to appearances. People distrust different especially when the stakes are high.
> Still not sure how a corporation who runs RHEL contractually is able to use alpine and ubuntu based containers but it happens.

... why would it be a problem ?
ABOS: Make JSON self-conscious
How did these committees think that optional, downgradable encryption was preferable to a standalone, encrypted only port (465)? Were they trying to save server ports, like if it was a precious resource? Any design decision I have seen regarding email since 2000 defies common sense. Like I heard most SMTP implementations do not validate certificates. What good is an unvalidated certificate? SPF is treated as indicative only or ignored.

We are managing to replace http1.1 with http2, it will take time but it is on the way. I am not even aware that an actual SMTP2 draft protocol that would solve all these design flaws (unverified sender, unencrypted).

And SMTP has a benefit http didn’t have. Most people access their emails through webmails, smartphones or enterprise outlook/exchange servers. For webmails and exchange only the server needs to be updated, and for smartphones, their short life ensures that older versions are pretty much all retired within 5 years. In addition, a handful of big players (google yahoo apple msft) have such a concentration of recipient accounts (retail users) that they can force a change on the market with the threat of your mail being classified as junk by them. So we could achieve a pretty quick transition.
I'm sorry, but I don't think you've quite gotten the reasons why it was lambasted:

> Not only does it not check, the design of the function means that there is no possible way for it to check safely. s and t are both pointers to characters? How long are the strings they might represent supposed to be?

strlen

> This leads into the second problem and one that is more subjective: this code is incredibly dense and relies on enough quirks of C that it's almost never going to be clear to a beginner reader what they are supposed to take away from it.

Most "nice" C functions are much terser than this.
I haven't touched C in years, but here's my descending "wtf" list:

1. Returns pointer to stack-allocated data, which immediately becomes invalid. Instead, it should be using some sort of allocation (e.g. 'malloc'), or taking in a destination pointer.

2. 'r' is arbitrarily set with length 100. Smaller strings don't need all that space, and larger strings definitely will overrun.

3. The function signature is really awkward. Without any of the surrounding textbook content, I'm not sure what behavior is supposed to happen. At first, I expected something like 'strcat', which takes two char* and appends the second one to the first one. But that isn't happening here and instead it seems to require dynamic allocation. (Hiding allocations inside a function is generally kind of weird. Usually the caller should be responsible for passing in a handle to the destination.)

4. There's no sensical limit on the loop iteration. If the input 't' doesn't have a null terminator, this is going to throw a ton of garbage into the stack space (because 'r' is stack-allocated to a fixed size). And also maybe run for a really long time.

5. 'strcpy' should usually be replaced by 'strncpy', which performs the same function but also requires you to provide a limit ("copy this string, but at most 'n' bytes"). That prevents a class of exploitable errors known as "buffer overruns". I don't know when the 'n' string functions were added to C or became popular, though.

This is a teaching exercise, so the fact that this is implemented as a separate function instead of calling 'strcat' from <string.h> doesn't seem like a big problem.
What's a PIP?
> the fact that a Swift iOS developer would now need to still learn some Android with Java to write the Android native code for the feature complicates things greatly. Now you need to know three languages to do a feature on your own.

Can't put it more clearly as you have said.

This is like back in the days of doing cross-browser development where there are 3 of them: IE, Chrome(webkit), Firefox.
> x and y are improperly initialized

How so?
> And? Most civil forfeiture is from small town cops, not the feds

The significant civil forfeiture crisis has been driven by federal law forfeitures (particularly related to the War on Drugs), executed by local agencies, because federal law authorizes local agencies to conduct forfeitures and allows local agencies to keep (a share of) proceeds of such forfeitures, while most state forfeiture laws dedicate the proceeds of forfeitures to state general funds. This provides a strong incentive for local agencies to use federal law forfeitures as a revenue stream for the agency, an incentive which does not exist for state law forfeitures in most states.
I mean... even today I'd take rsync over dropbox every day. Dropbox certainly fills a need for some people... but not for everyone.
Private Plaintiff Lawyers Are Actively Targeting ICOs
Make sure to click the link at the end of the article for code samples with potential for Segmentation fault:core dumped in 4 lines.

Even more concerning is the book seems to have some positive reviews on Amazon(!), and just one shredding it.
Taking HN threads into flamewar is not allowed here. We ban accounts that do this, so please don't. The effects on the community are destructive and basically always the same.

https://news.ycombinator.com/newsguidelines.html
Yes. That's quite a good deal, the trustee has already secured cash backing for the cash value of your claim.
> If the input 't' doesn't have a null terminator

Then it's not a string.
> a consensus of users who are biased and relatively uneducated on the topic would do a particularly bad job anyway

That's why you build the system with an incentive scheme with the contributors having something at stake, that over time weeds out the incompetent contributors, similarly to a PoS scheme.
There are multiple problems with that code:
1) return(r) He is returning pointer to temporary! When you declare and initialize variables on stack after that function, they will overwrite memory pointed by r.
2) He is assuming size of string pointed by s(including 0) is less than 100 and also the combined sizes of s and t are less than 100. Stack Overflow!
3) Not an errors, but would not pass my code review: Inconsistent Variable declaration, using signed integer for loop where you don't need signed.
Also I would have used strcpy 2 times, or loop 2 times, not two different ways. Beside that, you should not use strcpy, but strncpy to avoid stack overflows.
> When was the last time anyone went on a date to an actual fine dining establishment? Let alone gone to one with friends.

Anyone? I'm going to take zero risk of being wrong and say “within the last hour”. To both questions.

This may not be something that happens in your social circle, but it is certainly something that happens regularly.
strlen is not safe and the design of this function does not permit it to ever be safe. That is my point.

Most "nice" C functions are also not used as teaching examples. There's a difference in how one writes C code for production use and instructive use.
The example given at the top of the article can cause a segmentation fault. See the other comments here for how.
Correction: 500 grams -> ~ 1.1 pounds, not 2.

I've also done a substantial weight loss, while staying healthy (you can check my 1st-level comment in this same discussion).

I guess the "random internet know-it-all" is supposed to be me. I am in no way anonymous, btw (you can check my profile for links, in case you want to learn more about me), so maybe you can search for something that I have EVER posted that you are 100% sure was a lie and then try to label me? I find your comment rude and your username appropriate, Ms./Mr. AnIdiotOnTheNet.
It's not so great on the other end, either. My house has a gate to get to the front door. The gate is very easy to operate and never locked. A driver (I have to assume Flex) instead _threw_ a 20lb box with an ice maker in it over the fence and into a rose bush that was clearly visible (the fence is just wrought iron). It crushed a lot of roses and thankfully didn't damage the ice maker. My wife was literally 20' away in her office when it happened and says the driver simply drove up, threw it over, and drove away.
"I'm surprised Amazon or even etsy hasn't been able to destroy them yet"

About 8 years ago I used Amazon to sell a bunch of my old books. Worked great.

Last year I tried to start doing it again, and it's a giant pain. Yesterday I tried setting up a new account and they aren't letting me add anything for sale to inventory because of some supposed undescribed problem with my credit card (which works fine for purchases).

So.. Amazon has its own problems.
The Habits of Highly Productive Writers
Performance Improvement Plan, a process whereby an employee is formally told he has to do better.
I am curious as for why they would use https for that. It sounds like something that should be better stored in DNS. Unencrypted but your MX entries are not more encrypted.
It is wrong in many ways.

It copies s and then t to a fixed size buffer, without any checks. That will write to invalid memory (probably smashing the stack) if len(s), len(t) or len(s) + len(t) > 100.

It returns a stack allocated buffer (r) pointer to the caller. The array will be invalid when the function returns, as the automatic variables only live in the function scope (during the call), they are deallocated when the function returns.

To do this right you have various strategies.

1. Allocate a buffer of len(s) + len(t) + 1 with malloc, copy the strings and return it. Have the caller free it when it's done. It can be inapropiate because of the dynamic allocation.

2. Have the caller pass a destination buffer and its size. If you know the char *'s are zero terminated, check if you have space for them in the dest buffer. If not, truncate or error out. Most of the times, this is the prefered solution.

3. Use a static local buffer, and return it to the caller. You may need to truncate the copy too. Not recomended. This is not a good solution as the function also will not be reentrant (unsafe with multiple threads).

You can use libc functions like strncpy (C89+), snprintf (C99+) etc to make a "size-checked" copy with various automatic truncation semantics. You can refer to their man pages for details.

Edit: to the downvoters, please point out what is wrong in the comment.
How to get users to ask for more email newsletters
Ex-Googler pawns her 24-karat gold jewels to launch her startup
You can sign up to get notifications for an entire domain, meaning that you can get notifications for any email with the "example.fastmail.fm" domain.

See here: https://haveibeenpwned.com/DomainSearch
I'm still rooting for him. It looks bad, but honestly isn't that different than any other assembly line.

Once upon a time I worked as an 'aircraft mechanic' for both L3 communications (US Navy contract) and Boeing (US Airforce contract) out in Texas. Both jobs required the removal of the wings of larger aircraft (P3 orion, 737).

Some times we had a hanger and sometimes not. It was pretty brutal, but back then in my youth I'd take the 110* heat over the cold winter. You were miserable and sun burnt in the heat, but the cold low humidity winter was PAIN. Skin on your hands would start cracking open, along with the skin on your mouth and you'd be getting blood everywhere. A lot of our time was spent inside the wings. Hard enough with just a t-shirt on, but really difficult with large down jacket on... Usually I'd have to just leave the jacket off and bare it out. Even worse was inside the wing was considered a 'confined space' by OSHA so that mean you were supposed to have a duct in there with you blowing fresh air. But in the winter I'd take breathing in fumes and sanding dust over cold air blowing on me...

All in all, we'd pull the wings, disassemble large portions of them depending on the contract and then reassemble with replacement spars, ribs, etc. We did it, and the planes are still flying (I guess) so I don't see why something similar can't be done in the auto world. Of course I guess the difference is the government was paying the company about $180/hr and the company gave us $22/hr, so they had money coming in..
> Maybe the DoTA code can be optimized x2 for self play?!

Please don't. Every time they change something, several other things break.

Ok, just kidding.

But their fix logs are really look like the game logic is built by adding a hack on top of a hack with no automatic testing. Everything seems to hold on the playtesting.
A parser combinator is a function that takes one or more parser as argument and returns a parser with the same API as result.

combine-regexp is a parser combinator lib backed by regexps.

Traditional parser combinators are just a recursive descent parser DSL, with a 1:1 translation between both representations.
Machine Learning – ML.NET – Solving Real-World Regression Problem (Bike Sharing)
Yeah, we were also told it’s what rape would look like. Instead, rape looks a lot more like our teachers, bosses, or husbands.

When a terrorist detonates a nuclear weapon in the U.S., the bomb is likely to have been made on American soil by Americans.
Show HN: A dark themed Ping.gy
2 months back I launched Ping.gy in HackerNews https://news.ycombinator.com/item?id=16974877

Today I am launching a new visual redesign of Ping.gy. This new design features a dark theme which goes easy on the eyes. It is dark and yet it is colorful.

https://ping.gy
When google initially invested in Boston Robots I thought was to try and solve this problem.
I take it you come from a higher level language, where null termination would seem risky. In C, however, strlen is considered safe (as opposed to say strcpy, strcat, etc. which do have "safe" replacements). As for terse examples being given to beginners, here's the example The C Programming Language gives for strcpy:

void strcpy(char *s, char *t) {
while ((*s++ = *t++) != '\0') ;
}
The brains of men contain stronger front-to-rear connections while those of women are better connected from left to right.

https://www.the-scientist.com
/the-nutshell/male-and-female-brains-wired-differently-38304
I really like reading old mags & BASIC+ASM sources. Often there are interesting things to be found there; the old computers had very limited memory and a lot of tricks had to be used to make things fit. And the BASIC memory was even smaller than the machine memory. It was really amazing what some devs did and do. I got into firmware development for devices with the same kind of restrictions (our MCU has 24kb of usable memory) because I like this kind of bit fiddling.

My favorite mags are http://www.msxcomputermagazine.nl/ and, even more, but more unorganized, https://www.msx.org/forum/msx-talk/general-discussion/msx-gi... .
A "billion per year" is clearly unsustainable, given the world population. I mean, shouldn't we step back and observe that clearly if they're selling at this rate, some grave defect in human behavior is being exploited to the extent that something will dramatically collapse soon? Also keeping in mind the end of Moore's law as people have mentioned.
Well that is a dumb and inaccurate statement if ever I've read one. I mean I'm sure there might have been some nugget of truth back in the 70s in that it might have been frustrating to teach C or FORTRAN to BASIC programmers but it has as much relevance these days as any of the other memes people like to quite from yesteryear. I certainly managed the transition from BASIC to Pascal with ease and definitely follow good programming idioms. I also know a lot of others followed similar path of learning to myself.
My parents went to such a presentation to prove to my younger sister what scams they are. They won the car.
If the wait staff had smartphones with Square, they could save two roundtrips to the table. Those readers aren’t even expensive.
How it looks, how it behaves, how it performs. If they implement it, I will finally be able to break the addiction, and will probably sell off my 11 year old account.
The smartwatch that begins where the Apple Watch ends
Eh, if we want to look at mechanical complexity increasing reliability, I'd point at exhaust valves. Have you owned a vehicle with valves you had to adjust? man, life was different before hydraulic lifters. Adding a fancy complex part means I don't have to fiddle about adjusting my valves every so often. (except on my motorcycle... Perhaps BMW of the '90s thought adjusting your valves built character or something.) And valve timing has gotten a lot more complex during my lifetime, at least last time I looked, was mechanical/analog. I came of age as VVT-I/VTECH variable valve timing was hitting the mass market, and I'm pretty sure those systems were not electronically actuated. (I can't say I really have looked at this sort of thing in the last decade, so they might be electronically actuated now) I'm sure there's a bunch of other mechanical bits that got both more complex and more reliable.

I do like the example of fuel injectors vs. carburetors. The carburetors were a lot more mechanically complex, and quite difficult for a non-expert to get right. Fuel injectors are easy. a good example of just how much a simple micro-controller can make a system seem a lot more simple.
yes... but not all together at the same time in the same pint, right ?
They haven't shown sympathy towards Russia, they just don't view Russia as the sole bogeyman responsible for all troubles. Like the Trump-Russia scandal, they have reporters on the case but also point out there is similar or more damning evidence of collusion with Israel or Saudi Arabia.

Your post illustrates why they take these positions. Even an unsourced insignificant link to Russia is used to discredit anyone.
Your outrage would be misdirected, as I have not patronized Starbucks in many years. But among friends who do, they absolutely feel pressure to tip, especially when they see the same barista every single day. I'll trust them over you, thanks.
Ask HN: Best books/blogs on Business strategy you have read?
Recently I read two articles, https://www.gwern.net/Complement and https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/ and Learned the idea of "COMMODITIZE YOUR COMPLEMENT". This was really fascinating and a leaves me with a thought what other strategies buissness applies to capture the market. Are there any books/blogs where I can read more stuff like these?
Many of the technologies that we have today are no less developed by trial and error than were done in previous generations and societies. Certainly, we have various mathematical theories that give pointers and direction for development and it is very unlikely that those theories and mathematical techniques were used or available in the past.

But as to our modern theories allowing us to actually understand the nature of the universe around and how to manipulate it according to our theories, they don't really do all that well. They can certainly give direction but when the rubber hits the road, reality generally requires modifications because reality is far more complex than our theories lead one to believe.

It was three decades thirties to the fifties. As far as nuclear fission is concerned, that would have developed without quantum mechanics and its ilk. That kind of technology arose out of the experimental work of the late nineteenth and early twentieth century. if you look at the trial and error processes that were undertaken, researchers died because they did not understand what they were playing with. Just a pointer, energy-mass equivalence arises out of both classical electromagnetics as well the work done by Einstein and others in the quantum mechanics field.

I agree we are communicating on a world wide information network. It is so fragile that entire nations have lost external communication pathways in recent times. The technological basis for this network is entirely dependent on many choke points around the world. If some of those are attacked in any way or are destroyed by natural or even human caused events then that network will go down. For some of those events, a rerouting of communications may be possible. For others, it may required a large reconstruction process to occur and for others it may not be salvageable at all.

Our telecommunications networks require many things to work for it to stay up and operational. This is true for many of the technological pathways we use today. Our technological systems are very fragile today and it won't take much to strip our society of its technological edge. There are so many points of failure that most of the population is unaware of.

Get a single forest fire and the power transmission system can be decimated. A single earthquake can do the same. Start a war and see how long the technological infrastructure is maintained.

But back to the main point, just because we have a particular technological stand doesn't mean that other societies that have come before us were "primitive" because they had a different technological stand.
The main problem with this is that STARTTLS is not anywhere near good enough, but if it sees high adoption, nobody may bother with something better in the future because they'll all think "Mission Accomplished."
I’ve never before seen the term kobayashi maru used in the wild. Now that I have, I think, it should be more widely used.
> For example, the work determining sexual orientation from images (https://osf.io/fk3xr/).

> The problem with this approach is you get predictive ability, but no insight.

Is it not possible to take one specimen and tweak it just a little at a time until it classifies as a different category, and that way find the border between categories?
I can imagine that many of the things we throw into landfills will be quite well preserved 2000 years from now.
I assume the problem is that most domains don't have DNSSEC. So if you can MITM the SMTP stream you can MITM the DNS request.
I remember reading about this system in some business class. They're generally well-received by staff, prevent arbitrary termination, and give feedback to manager who may not know what the realities of the job are. Is Amazon's version of it any good? I don't know, but I do know there's literature on it. I can appreciate the cynicism of Amazon trying to manipulate things in their favor, but you're forgetting that this is a check on the authority of managers to empower workers. Without such a system the person would have just been fired and they would have had no recourse. It's like giving a homeless man a dollar and he goes "what, you can't spare 5?"
This is why you take linear algebra and calculus before doing machine learning.
Correct on all points. There is also the issue that the pricing models themselves need to be able to stand up to some form of regulatory scrutiny (depending on the state and the nature of the insurance product).