skysight-inc/HackerNews huggingface dataset:
One thing people don't realize is that a lot of web analytics software already do "session recording". So it can playback every wiggle of your mouse, every scroll, every keystroke, etc.

You can see some creepy demos here:

https://www.inspectlet.com/

https://www.fullstory.com/
I'd say the elvis operator would make things worse, especially wrt the parent post.

The problem isn't that `user && user.username` style validation is verbose, but that it's very error-prone. Making it less verbose just means you'll more likely use it before you reach for a better validation strategy, like a declarative validation library.
Wouldn't that break the concept of pipes though, that is the concept that you read from the previous program/keyboard/file and write to the next program/screen/file?

It's pretty easy to use a Unix socket for what you were describing.
Here is one example of a case where tracking even to Florida just mysteriously stopped working: https://trackings.post.japanpost.jp/services/srv/search/dire...

"Item out for physical delivery" and then... nothing. Usually it should show "delivered" at the end.

Some countries were unusual such as Bahrain, but then the same thing would sometimes happen even for Canada or Norway.
Can the world’s first AI ski instructor beat the real thing?
NAT is not something that should be preserved, it is 100% a hack that fundamentally breaks the nature of ipv4 and introduces a shitload of statefulness in an otherwise stateless protocol. You can achieve (effectively) identical security semantics with a network firewall, NAT is not something that should be propagated forward.

How about some specifics, rather than rhetorical noise about HOW exactly do you propose that converting any network should have been easier. No matter what it would involve upgrading every network service, and every endpoint. This problem is not avoidable, if it was we could just use the same mechanism to make ipv4 last longer.
>I'm personally financially benefiting from other's misfortune.

and why's that bad? honest question. you're not the cause of the misfortune. I see it as no different than a roulette game where you bet on red, someone else bets on black, and you end up winning.
Labor has virtually no pricing power in the U.S. except in a few industries. Minimum wage laws and licensing laws are the cause of U.S. labor markets not being a truly free market.

Did you read the article? The author clearly paints a picture of too much pricing power in the hands of corporations and consolidations in business. Your counterpoint is the minimum wage is what prevents labor from being a truly free market? I can’t see how getting rid of one of the few protections for workers would make the labor market more free.
The only people willing to do an entire video for a free sample are people without a monetisable audience. The only people willing to do a video for free are people who are most interested in receiving free stuff. The key to influencer marketing is in the name. You must identify people who can influence your market, your goal is to use _their_ brand to add value to yours. Nike don't sponsor people who play for their local pub football team, they sponsor word class players.

I'm sure you'll find that almost every one of the YouTubers chosen for this experiment are churning out video after video of candy box samples they've received to an audience of nobody.
Henry S F Cooper's book _The Evening Star_ describes similar solar-system-scale distance debugging of a race condition on the Magellan Venus orbiter. Pretty tense stuff; the stakes are high, the tools and insight to the actual problems are poor, and if you screw up badly enough you wind up with a dead spacecraft.
TwitchCon 2018 Live Stream
Then it doesn't seem like a great perk, I can trade my post-tax salary for NFLX stock too...
Hanlon’s razor.
Made a site that lets you see all ethical Kilimanjaro climbs by locals. Helpful?
If you think I was complaining about being old without actually being old, then you lost my actual point somewhere in the urge to say "get off my lawn."
I understand why it’s being downvoted, but I too find it very funny.
Anthropocene: why the chair should be the symbol for our sedentary age
Two million calls to 311
The military’s obsession with energy drinks is contributing to PTSD
I've heard of bus bombs and random unexplained groups of police casualties in Xinjiang but the Chinese Communist Party needs to maintain the facade of stability or else it would be breaking it's "promise" to the people.
Ask HN: I'm good at coding but bad at competitive coding
I'm a computer science student and I consider myself good at coding, that is, designing the structure of programs, utilizing abstraction, managing states, and other OOP concepts(that's what I'm familiar with, I've started looking into functional programming). But I'm not very good at competitive coding.

Some of my classmate are good at competitive coding but the 'software' they create is just horrible (nested if/for/while blocks which are 5 levels deep, overly complicated code, stuff which can be simplified by just throwing in some POJO's).

Is the fact that I'm bad at competitive coding a symptom of something serious (weak foundations in algorithms/data structures)? Am I missing out on something?
Indeed. A government regulated economy does not need a public market.
You're right but there is something funny about there being youtube influencer consultants and how not using them is "naive".
Cool, laid-back &amp; smooth but nothing to play with
In philosophical terms UNIX, IMVHO, have few wrong concept: LispMachines demonstrate how well work a fully integrated system, unix on contrary choose to be a "platform" of independent component communicating via simple IPCs. At first win because if far simple to develop, in the long term it loose. As a comparison try standard unix environment vs Emacs.

Another concept is a certain separation between users and programmers, in both LispM, Xerox Alto and even Plan9 users can smoothly program their environment easy, so users have the maximum flexibility possible and a usable a effective systems thanks to high level of integration and freedom. As actual comparison try Squeak, few Scheme implementation, Emacs itself with elisp config they are not, of course, integrated and effective like ancient LispM or Alto however demonstrate enough how powerful can be such paradigma.

Last thing the everything is a file that's really limited in unix, well implemented in Plan9. Everything is a file is a super-nice concept, but everything must be really everything.
As for me I just want to let you know that I've signed up. I remember seeing this on youtube before (probably not unboxing, maybe ad at one of the rare moments I don't have adblock?) but kinda forgot about it. This post (interesting read btw) reminded me that I wanted to sign up. So I guess "advertising" on hacker news works as well :)

Anyway, looking forward for the first box!

Have a nice day :)

PS: Someone else here mentioned if part of the stuff could be something beside candy, dunno, could be interesting too.
It amazes me that they are still in contact with the voyager probes. NASA does some amazing stuff.
It seem inevitable that YouTube will always drive creators revenue down to 'subsistence' level, where 'subsistence' is just enough to keep them making videos. From a shareholder's point of view, anything more is giving away money.
As a marketing analytics & research person, I think the biggest issue here is that the WHY of choosing to reach out to cosplay YouTubers isn't clear. Why would people watching cosplay videos like to order candy from Japan? As opposed to say people who show food recipes from other cultures etc. In this kind of marketing (basically word of mouth on steroids), the context and content I have observed from watching brands really take off are much much more important than the mechanics.
That reads worse that it actually looks like: https://www.youtube.com/watch?v=ZqokxZRbJfw
Nothing to do with education; it’s all about operating procedures. Hubble has a large and well funded team behind it that generally operates on much longer timelines. Everything is engineered and documented to a tee. Hubble mission spans around 30 years now, from concept and until today; very possible that for some people, Hubble is the only thing they experienced in their profession.

Obviously such measures would be very much impractical outside of NASA.
Bing makes it clear when a site is promoted by prepending "ad" to the search result. Other search engines such as DuckDuckGo and Google do the same.

It is near impossible for Bing to manually review every advert so perhaps it would be beneficial for search engines to provide a way for users to report rouge promoted links, similar to how YouTube allows you to report its sidebar ads.
How do you go about reading codebases? I once fired up a debugger to go through ExpressJS and I learned some things from it. At the same time I wonder how I can do it efficiently.
> Would you accept the same logic for the software in a car? I don't think it would be acceptable if e.g. Tesla, a company that relies heavily on software in the car, would stop fixing security (and safety) issues after three or even five years after you bought the car.

yeah, i would be pretty mad if my car stopped getting critical updates after three years, but there are a lot of reasons why this is not an apples-to-apples comparison. software defects in a car directly risk your physical safety. vulnerabilities in a phone can also have severe consequences, but it's a very different kind of risk.

let's also not forget that a new car costs at least fifteen times as much as a new phone, and cars are regularly driven for ten to twenty years before they are scrapped. during this time, the manufacturer is getting a steady stream of revenue from selling replacement parts that they can use to offset the cost of providing safety recalls for old models. and even car companies aren't obligated to do recalls after fifteen years.

> To prevent this problem and the waste of resources that goes with it, it would even be okay for me to have laws that sanctions abandoning software like this.

do you really think the typical consumer cares about updates or security? they don't buy a new phone because the old one isn't getting updates. they buy a new one because they've smashed the shit out of their old one or they just want a new thing. i'm not sure what "resources" would be saved by forcing phone manufacturers to support old models that consumers don't want anyway. you would just end up deleting the $100-200 range of phones.
His example is talking in aggregate, not specific students. Sure, you might have an art history major find a job quicker than an engineering student, but who will end up getting more jobs, 100,000 art history majors or 100,000 engineering students?

The loan market in the US IS improperly distorted right now - it treats all loans as having the same repayment risk...which is absurd. What we need is a loan system that offers interest rates based on majors. Computer science major? 4% interest. Comparative women’s studies major? 25% down and 12% interest.

“That will just make it MORE difficult for liberal arts majors to repay their loans!” — Yes, exactly. It’s a market signal to re-evaluate their decision, or skip college entirely.
In D, we call the two functions "assert" and "enforce". The point is that assert is the wrong term; to say "assert(condition)" says "I assert that condition should hold here". If there's an input event that causes condition to be false then your assert is not just false but wrong, since you assert something that is not necessarily true.
It creates an environment where the attorney is incentivized to protect his/her own investment in the company, above and beyond representing the company's interest and the interest of the law.
I think the reasoning could be that most people who like cosplay have at least some interest in Japan.. which sounds like something I would expect to be true.
Who the actual fuck cares about native byte swapping instructions. We're talking about DHCP code, there is no computer in the universe on which parsing of DHCP packets is even noticeable as a blip on the performance chart.
3-6% of the world's population died from Spanish Flu in 1918/1919
My Parents Give Me $28,000 a Year
This is exactly the thing we need fixed. I get that Angular has one way of doing it, but I still feel like it's going in the wrong direction (too Java-like).
Thank Bucklescript.
> I have not seen any evidence that they violate their own policies, even when I worked there a while ago and had internal knowledge.

Whether Google violates their policies today is the wrong question to ask. Nothing about these policies is long-term legally binding for Google and they can be changed on a whim.

While Google includes this language:

> We will not reduce your rights under this Privacy Policy without your explicit consent.

I'm not sure that covers them increasing their own rights to collect, share, and sell data.

Remember - nothing lasts forever. One day Google will be in a financially desperate situation and their investors will demand that they do anything they can to stop the losses. Meanwhile they will have a valuable trove of data on millions of people.

This is not just hypothetical. When Google decided that Google+ was a priority and only real names should be allowed many were forced to de-annonymize formerly anonymous Youtube and Gmail profiles or be removed from the service.

The only real way to assure the security and privacy of data is to not collect it. The only way ensure that the likes of Google/Apple/Facebook won't collect the data is through legislation that gives privacy policies real teeth when they're violated and gives users power to choose to reject changes to these policies in whole or in part.
Take a look at one of their hubs: https://imgur.com/a/PQJB09X. Maybe around 300+ meals stuffed in there? Back-of-the-enveloping the amount of time people are opening and closing those doors, I'm a little dubious they're staying at refrigerator temperature the whole time. I'm not surprised someone looked at this and thought, "That's an e. coli outbreak waiting to happen."
Personally, I am thinking very hard about buying rural land in Canada, as global warming and mass migration may cause the price of land to go up substantially over time. I haven't run the numbers or pulled the trigger yet though.
Sounds like interpreting from an instance of the AST. Pretty easy but there are gotchas; like handling break/continue in loops. It’s an interesting excercise everyone ought to try IMO.
Additionally, I don’t think it’s reasonable to extrapolate from the mess that is systemd to all C/C++ code. Some fantastically reliable systems have been developed with them.
> which has bounds checking in hardware.

x86 has bounds checking in hardware. it's called a page fault.

[edit: formatting]
There are some “layer 2” protocols which could allow Bitcoin to achieve that scale. Most notably https://lightning.network.
> it's provably much faster than Ruby, Python, PHP

This is simply not true. Ruby + Sinatra/Roda/Hanami + Sequel even performs better than Elixir + Phoenix + Ecto in some cases. It's basically dead-even. For example: https://www.techempower.com/benchmarks/#section=data-r16&hw=...

BEAM has the benefit of being a register-based VM vs the stack based VM of CRuby but the immutable semantics of Erlang/Elixir negate a lot of the VM and GC advantages.
this is probably off topic, but I've waited before asking until I found the closest topic from my perspective:

A while back (order months or years but certainly within last 2 years) someone mentioned a paper, I believe it was here on HN either as the topic or in a comment, but perhaps it may have been on IRC.

I am no longer able to find back this paper, and have only a vague recollection of it (I had read the abstract and the introduction and then postponed reading until I forgot about it).

It dealt with the problem of say 2 peers each having their own list or set, and part of their list is in common, but both may also have entries the other doesn't have. The problem was finding the most efficient way such that both end up with the union of both lists or sets. A brute force way would be to each send a copy of their list to the other, a slightly less brute way would be to have only one send a full copy, and have the other return his difference. But the paper detailed a more efficient method, which obviously I can't remember...

Does this description ring a bell? Does anyone know the paper I am trying to locate?
"so we just gave it a shake et voilà!"

- some NASA scientists, probably
From my past C experience I had developed a distaste for clever pre-processors tricks that a lot of people love showing around.

However while easing myself into typed languages after multiple years of using ruby and erlang exclusively, I have found myself needing a pre-processor to eliminate the boilerplate often required to satisfy type systems. In addition I wanted to create a project to generate type definitions (and associated tests) for multiple languages (esp. Typescript, bucklescript and Nim) having js targets for library authors.

The approach I settled in was a very simple template driven pre-processor that would inject the generated code right into the source files between annotated comment directives. I expect this, along with an explicit focus on non-composability, to discourage people from using templates where normal language features would do just as well.

This project (written in typescript) is available at https://github.com/lorefnon/InGenR and any feedback and contributions are welcome.
If you go back to trolling HN again we will ban you again. No more of this, please.
Nike sponsors plenty of unknown clubs. https://www.nike.com/help/a/nikeinc-donation
There was no need for him to be harsh. Good on you for doing this for so many years!
> the current lakefront is built on fill

If you'd like to take home a piece as a souvenir, head over to 12th Street Beach (immediately south of the Adler Planetarium). The stuff piles up on the south end of the beach every time there is a storm on the lake. Lots of pieces of bricks, terra cotta, porcelain, etc. Tons and tons of beautiful colored glass that has been tumbled smooth by the waves. Go in the morning and you'll see treasure hunters picking out the best stuff. Rumor has it there every once in a few years someone finds a diamond - it is definitely true that the Great Lakes have plenty of diamonds from northern Canada that were deposited by glaciers in the last ice age.
The shipping costs did him in. I'm sure it works better for digital products.
It isn't wrong if that was the order the bytes were packed on the sending side.
I can see the owner trying to discourage those who use Yelp to find places to eat - it's probably a different kind of patron than those who are aware of the restaurant and looking for information on it.

To that end, it's 3.5 stars on Yelp (137 reviews), but Google reviews shows it as 4.5 (52 reviews). That difference alone seems that Yelp could be specifically targeted.
"the US needs more programmers and STEM grads" can always mean "we wish we could hire programmers for $45,000 a year, but due to supply and demand we have to pay them more than that"
Oooh wonderful! I wrote hundreds of games as a kid in QBasic and have had the idea for years to write a QBasic to JavaScript transpiler so I could actually showcase some of them online. With Go adding its WASM support, I’ve actually been considering a Go interpreter as an option.

This is super inspiring. Nice work.
BOLLYWOOD-MIX-DILBAR and PROPER PATOLA
Freedom is the right to choose. Minimum wage laws restrict someone from choosing to enter into a contract to sell their labor below a rate set by the government. Licensing laws restrict someone from choosing to purchase the labor of someone not accredited by the government. In both circumstances the individual’s right to choose is curtailed. The headline of the article was “Labor Markets Aren’t Truly Free”. That the author chose to focus on employers is beside the point. The fact that labor markets aren’t “truly free” is transparently obvious.
Ask HN: Best book/course to get started with PyTorch?
I'm relatively new to ML, it would be nice to have a simple straightforward introduction to PyTorch. Can you recommend me something good and reasonably easy to get started with?
File descriptors inherited by child process by default.
100% agree with this. If you're using redux the boilerplate of Typescript is huge. To do that all that work and still have the compiler miss problems at the state level deemed Typescript pointless to me.
>>CEO Reed Hastings is described as a dedicated adherent to the culture

It really isn't culture unless it applies to yourself. Does Mr Hastings hold himself to the same standards himself as does to everybody else?

>>Kill or be killed seems to be accepted as a mode of operation.

A pathetic excuse for a toxic work environment than anything else. This will lead to non-existent to negligible co-operation inside and across teams. Stealth political projects and alliances to sabotage internal projects. Cartel style power structures, purges and internal power dynamics. You usual ala carte toxic political power play.

Of course this happens in all companies. But the speed is low. Here it feels like the CEO derives please pouring a catalyst into a run away chemical reaction.

>>It’s also led to culture shock as the company rapidly expands, takes on bigger loads of debt, and faces stiff competition.

Based on everything I've read so far. I wouldn't be surprised if Jeff Bezos eats these people for lunch in a few years.

Bezos isn't known to be employee friendly either, but he is also not a fool.

There is a always a fine line between working hard towards a purpose, and pointless busyness just for the heck of it.

>>One executive said he was fired because he did not inform others about another employee’s medical condition out of respect for their privacy. Netflix saw this as not being “forthright with us around a major employee issue.” But Jonathan Friedland, former chief communications officer was a little too forthright and open when transparently talking out issues. He was fired this summer

Damned if you do, damned if you don't situations happen in processes where people want to screw you regardless, and not exactly because of the merit of your case.

Here the cartel boss seems to maintain early communism-esque purge lists.
Getting people to switch to R (or Julia) from excel is to balance two competing goals.

First, you need to establish that scripting is far superior to point-and-click interfaces via reproducibility and legibility. This is the fight worth having, as it gets to the core of what it means to do science and share results.

Second, you need to convince them that they don't have to sacrifice the tractability and ease of use of excel. Jupyter notebooks, for all their faults, really sell this idea well. But the first goal should dominate the second. Nteract and shiny are great, but I they are big tools that are difficult to teach beginners to code up. We shouldn't say "use R because you can still use point-and-click interfaces", we should argue against point-and-click interfaces all together in this context.

I also agree with the poster below that running a script again with a new parameter changed is super super easy, and you dont need a GUI to explore data like that.
Here's another colorful retelling:

199X: We have proxies that show 1998 is the warmest year in history, and things are warming so fast that we're in serious trouble. Give us power!

200X: OK, luckily 1998 was an outlier but we're still warming too much on average. The sea is going to rise and the Arctic is going to be ice-free. Give us power!

201X: OK, the Arctic still has some ice but the Northwest Passage is opening up. The seas are still rising a bit, and here are some scary local flooding and erosion stories. Coral reefs are all going to die. Give us power!