skysight-inc/HackerNews huggingface dataset:
Let's have more food-related threads on HN now and then, people :)

I have been wishing there were more of those here for some time. They can be pretty interesting, not just to read but to try out the stuff. I remember one of the earliest ones I saw here, titled something like "What are your food hacks?" [1]. It was a good one. IIRC, PG also chipped in with a recipe for rice and beans for ramen-profitable (or yet to be that) startups. The punch line was "put <the stuff> in the cooker and forget about it" :)

- where <stuff> was rice and beans, and some condiments, like salt, oil, pepper, whatever.

[1] Probably can still find that one via hn.algolia.com or the search box at the bottom of the HN page (which uses algolia).
I have a brother in-law (20yo) that's also on the spectrum (aspergers).

In an attempt to help with general anxiety that's associated with Aspergers, we introduced him to marijuana (as it has a relaxing effect), but that just mainly causes more anxiety.

However, it turns out that microdosing on psychedelics has been quite the panacea. I'd highly recommend reading the book "A Really Good Day" that goes over the safety aspects, myths and such.

In a span of 4 months, the kid is completely changed. Far more sociable. He's communicated that his anxiety is gone. He has become more thoughtful and far more self-sufficient. His ability to communicate/articulate his needs & desires, relay stories from his day are new behaviors that have presented himself since this regimen has started. In a sense, he has gone from "more autistic" to "more typical teenage/young adult boy" in a span of 4 months. He still does say that his condition is still apparent and that his ability to intuitively react to emotion/facial expressions/body language hasn't necessarily developed, but with the anxiety removed, now he can read body language cues with ease as he is not debilitated by the anxiety of the interaction and move forward in the interaction rather than recusing himself and living in his own bubble.

The reason this appears to work is because psychedelics increasing brain plasticity/neurogenesis. Even after the doses stop, the benefits will continue to remain as new neural connections have become established. A regimen can be used for say a month or two and be stopped with the benefits derived, so it's not something one necessarily needs to engage in for the rest of their life.

His immediate family doesn't know that this regimen is taking place, but everyone in the family during gatherings attributes his demeanor change to his "summer job" which "opened" him up, and are so "proud" of him and his growth. Of course, spending 12 years in a social school environment did nothing to open him up, but a 3 month summer job did the trick. chuckles

Of course there are stories of people who have taken very large tripping doses and have had catastrophic effects, so it isn't without risks, however, it appears that the risks are pretty minimal and also very manageable at microdose quantities.

So far in my microdose experiment, n=5 have had absolutely no ill effects and has been tremendous boon to mental state/cognition/clarity in general.
Absolute vs. Relative Imports in Python
It can be used for escaping values for example

var query = sql`select * from user where id=${id}`

Similar for html, preventing injection. You just need to implement the corresponding functions.

For example https://github.com/felixfbecker/node-sql-template-strings
I remember doing stuff like this as well when I was younger. I think it should be a collective responsibility of parents to instill in their children that safety is important. I don't let my children ride their bikes without helmets and that's the norm where I live, not the exception, and I think a great deal of it has to do with the fact that the parents around here are very involved in their children.
Owned by Paddy Power. Not surprised they are welching on the bet, they make a great play on what good sports they are in their advertising but will ban you if you show signs of not being a complete mug.
Same with Chrome and Firefox in Win10. Even Chrome's device/touch emulation doesn't work. It does work on iOS Safari. Can't say I've seen such weird event handling in a while.
They tried 500$ and 3 Giants tickets, which he declined in favor of getting a lawyer.

I think they should bite the bullet, pay it out, turn to their software engineers, and say "it's worth 82,000$ to this company to ensure that never happens again."
> he doesn’t want accountability. Accountability results in conservative decisions.

Not just conservative decision-making, but politicisation: it may cause employees to base their decisions on perceptions ('optics', if you prefer) rather than real merit.
I don’t want to work for a company that only bolts together off the shelf components, although talking to me a few times you might get the idea that this is precisely what I want.

I hate working at a place where people are so busy being clever that they reinvent everything. You steal from the younger devs an opportunity to learn, and you externalize the cost of your poor documentation and interface consistency onto your coworkers instead of spreading it out over the entire industry. This is NIH.

What you should do is pick a segment of your problem space that has mediocre tools and make something much better. The 80/20 Rule seems to work quite well here, when I see it applied, which is not often enough.
- Taught me a lot.

- Treated me like an equal.

- Offered me a ton of new opportunities which resulted in lots of salary bumps.
I would think that most people who use Gmail as part of their job would use a mail client just like most people who use Office365 for email use Outlook. Considering how much email is done on mobile, I don’t see too many people using gmail on mobile phones on the web.

Do you get notifications for new email from gmail in the browser or meeting reminders?

And all project management software on the web sucks in its own special way. That’s not something to aspire to.

As far as gsuite, I only use Google Sheets for simple stuff but can GSuite really take the place of Office for complex workloads?
There could be a liability angle, regarding patents.
Maybe because they found a knive and not a wrench as the first somewhat interesting thing? It's not clear to me they intentionally highlighted the knife because it was a knife, or just because that's what they found.
Ask HN: Any way to program Siri Shortcuts in iOS 12 besides drag-and-drop?
The Shortcuts app in iOS 12 seems really powerful, comparable to a minimal weakly-typed scripting language. So I'm wondering whether there is an AppleScript-like way to program it, instead of dragging and dropping those blocks.

If not, will anyone be interested in some sort of tool that converts source code (in, say, a subset of Python or Bash) to Shortcuts program?
He doesn't just call people names. He explains what his problem is.
It says there's the ability to make them public, but it doesn't mention that they'll be public by default. Maybe it's different if you sign up first before adding the tracking code, but it's odd that I can use the tracking code without signing up for the trial.
What do you mean by “make it very, very costly for people to bully me?” That sounds to me like a strategy that can easily and frequently backfire.
They (the attackers) owned the domain. What more is Comodo supposed to do? LetsEncrypt would have done the same thing.
> sidestepping labour regulations

The beauty of digital "self" publishing is that there are no labor regulations for Amazon to be side stepping. It's likely that the Amazon engineers and VPs that made self publishing possible are compensated more highly than their EU / French counterparts.

Now, maybe a Kindle isn't manufactured and shipped up to EU/French regulations or norms; but that isn't even directly involved; and I'd suggest that some of the traditional publishers do similar side steppings when sourcing or delivering hard copies. (And in the case of paper vs digital, there is simply much more labor to sidestep - if for instance, we assume 50% of Amazon's sales will be to existing Kindle owners)
My best manager allowed me to be both right and wrong. He'd give honest feedback about what he thought would or wouldn't work and why, but if I disagreed I was free to prove him wrong or right. I can't remember him ever forbidding me from taking an a specific approach, and I can only remember one time going against his advice and being wrong (mostly because I learned from that experience, not because I think I was usually right).

In contrast...

I worked as a computer operator and most of the time was "down time" waiting for jobs to finish. We had little bits of busy work that none of the operators did, so I did cleaned out the backlog and kept us up-to-date. Documentation hadn't been touched since it was originally written years before I started. I rewrote it, updating it and fixing errors.

Then I tackled rewriting the Microsoft Access application we used to schedule jobs. This was only something we used internally so we knew what jobs needed to run on what nights. It wasn't up-to-date, so we had to manually change the schedule every night, and it wasn't user-friendly, so our FNGs always made errors that required programmers or DBAs being called at 3:00 am to clean up mangled data. I rewrote it to model our current processes and even added some color coding and included recommendations to help FNGs.

My boss "caught" me doing this and told me I had better things to do with my time. I was young, so I asked him, un-politically, "Like what?" He told me to rewrite the documentation. I told him I had done that months ago. He opened it up, looked at one random piece of it, and found a flaw that wasn't really a flaw. I probably rolled my eyes, wrote a macro to make the change to all the pieces of documentation, and then started working on the Access application again.

He "caught" me again, and startled me by basically sneaking up behind me while I was working on it. He said, "I thought I told you not to work on that." I was like, "No, you told me to rewrite the documentation, which I did." Then he told me he didn't want me working on that at all because it was a 'security issue'. Two things about that. The first is that I was told when I was hired that this was a great place to move up the ranks, that other operators had moved into programming after showing what they could do.

The second is that I had access to the entire network, compilers, home directories, everyone's email, all company sales data, payroll, server room, you name it. I ran the backups. I was often alone in the building for periods of over 12 hours. There was all kinds of equipment and merchandise I could have easily stolen, etc.

Now that I'm closer to his age and have more experience, I just see that he was grossly incompetent, in way over his depth, and just trying to coast until his retirement and any changes I made felt threatening to him, despite all the actual improvements I made.
It's a nice feature when used appropriately. Article says at the bottom in bold: "It’s a nice-to-know feature, good for impressing others, but my suggestion is to use this only if it’s the clearest way to express your concepts."
It's easy to extend Bresenham's algorithm (and probably Wu's too) to work in a 3D voxel space. But I don't know if it would solve the problems in TFA or whether the speed penalty of working with voxels would be worth it. Might be an interesting experiment.
Camille's run wasn't particularly remarkable--about 10% slower than the men's 100 mile record.

Much more amazing to me is that this 10% performance difference holds remarkably steady for men and women's performance in a great range of distances, both running and swimming[0].

[0] - https://sportsscientists.com/2007/10/women-vs-men-part-ii-th...
Empathy. A drive for understanding technical issues (not part of their domain). Challenging the team to do their best through gamification/incentives. Wholly available to talk, for any and all issues both personal and business.

All in all, just being a good person, first and foremost.
How I'm planning to make 1M people smile
What's obvious about that? To me the obvious thing is that bookies have to honor the bets they sell and get to eat their delicious mistakes.

It's within their power to improve their automated system to not offer stupid bets.
> unnecessarily track users without their consent

Regardless of your intentions, you are collecting enough data to track users.

> I am transparent about what I collect ([URL])

That page doesn't mention that you are also collecting (and make no claim about storing) the globally-visible IP address (and any other data in the IP and TCP headers). This can be uniquely identifying; even when it isn't unique you usually only need a few bits of additional entropy to reconstruct[1] a unique tracking ID.

In my case, you're collecting and storing more than enough additional entropy to make a decent fingerprint because [window.innerWidth, window.innerHeight] == [847, 836]. Even if I resized the window, you could follow those changes simply by watching analytics events from the same IP that are temporally nearby (you are collecting and storing timestamps).

[1] An older comment where I discussed how this could be done (and why GA's supposed "anonymization" feature (aip=1) is a blatant lie): https://news.ycombinator.com/item?id=17170468
"Them's fightin words"?

Why, what's wrong with Jordan Peterson? He's rather the celebrity these days, I saw his book in the number 2 position at the bookstore only a few days ago.

Your post doesn't seem to have any substantive in it. Just a vaguely threatening implication that referring to Peterson by way of example will attract some sort of retribution.
Ask HN: What convinced you to apply for the current job and why?
> as humans, we understand and allow for the possibilities of mistakes.

Yes, but corporations aren't humans. If the mistake went the other way, it likely wouldn't matter. The human would have to deal with it. I say give him the $80k+ and learn to deal with your mistakes.
Coraline subscribes to a specific kind of liberal politics that requires everyone to speak and act according to specific rules (not say/do other things). The way they push the CoC's is they apply to all mediums a person uses instead of just the project. The language being used by her and some here is that it's about stopping suffering and protecting minorities. Millions of minority members disagree with them by supporting civil, free speech. Those would be censored, too. They don't really care about anything but enforcing conformance with their views. And they need generally-worded rules with like-minded people in control of moderation to accomplish that.

So, in the Opal thread, a maintainer disagreed with trans peoples' claimed identity... a common belief of tens of millions of people who support biological view... in a comment on Twitter (not the project itself). Coraline and a crowd of similarly-thinking people stormed into the project demanding the maintainer be removed for the political statement plus adoption of a CoC.

https://github.com/opal/opal/issues/941

These people, who didn't contribute anything to the project, wanted a major contributor removed. Their attacks got more and more aggressive with both Coraline and another associate eventually setting the project rep up to look like he or she supports child rapists. They get down to name calling and talking about "burning bridges" in the end. A defender rightly asks what bridges they're talking about since most FOSS and business developers aren't radical, political activists like them. The whole thread shows how ideological, controlling, and vicious those kind of people are.

So, I fight against these Codes of Conduct on any forum they're presented on since they're designed to be a tool of political subversion by radical, leftist activists. They always mislead people, too, just highlighting the worst stuff that we might all agree should be blocked. Once CoC is in place and they're in control, they begin censoring all the little things we don't agree on which violate their beliefs. Instead of all that crap, I just push for rules where conversations stay on topic, we stay civil just to be nice, no personal attacks, and people are judged on their contributions. Open-minded moderators, too, that don't filter most people based on activist, minority's views.

EDIT: You can actually see this in action right now. malvosenior just linked to specific attempts to enforce political conformity by the author of Contributor Convenent who authored it to do exactly that. The comment is already grey at this moment. Some of the kinds of people it describes are apparently trying to make it go away so you don't see what they do. While we're at it, Slate Star Codex has an excellent article about their misdirections and weaponization of words:

http://slatestarcodex.com/2014/07/07/social-justice-and-word...
If travel is your worry a more protective backpack or hard shell case might serve you well. Every "rugged" laptop I've seen is under-specd and over priced.
A Week on the Wrist: Apple Watch Series 4
My favorite managers are the ones that made me better at what I do. The ones that I was able to learn incredible amounts from. I joined the company to learn from them, I delivered on what I promised (solving the problem their hired me to solve / filling their need), and they delivered on helping me build my skill set and career.

That's the most important thing for me personally. If they can also be friendly and we have a friendly working relationship (can joke around and grab a beer once in a while) that is also great. However that's absolutely secondary to the first point. In theory I'd be fine with having a boss who I don't really click with personally at all but am still able to learn from.
I presume Mr. Prince's idea of a "positive interaction" is to get his $82k.
>I never view Go as a competitor to C

I think it is in the sense that you (usually) should never write network-facing C code.
While I get that this discussion is taking place in the context of contentious CoC debates in other projects, what I don't understand is why this is a big deal in the Linux case.

Yes, people have been complaining about Linus' occasionally unambiguously abusive behavior for a long time, this genuinely seems like Linus had a bad few days, was pulled aside by some subset of the maintainers, and came to the conclusion that he should make some changes to his behavior and to the community of the project he controls.

I didn't see any threats or endless contentious debate derailing the project, so I'm genuinely struggling to understand why people are upset about this. If his previous behavior was acceptable, surely his new behavior will be acceptable as well?
Very few parents are sociopaths - so let's go with 99.9% of parents care about their children and their future - but most of us don't have credible people standing in front of us geeing is on to take the right actions at the right time

Have "parent trainers" for a school and i expect a massive increase in engagement - and pupil outcomes.

This of course comes at a cost.

And where parents are working 3 jobs to get buy, then yes, there is another extra cost to society - which is to ask why have we arranged society so some people are in that situation ? cf tax regieme, welfare state etc etc
Many comments celebrate this "good news". I hate to be the downer, and I dont want to say this article made me sad, but this is more "stopping some bad news". That's still good, and it's better than more bad news, but true good news is when we improve upon the norm, not when we stop one aspect of making things worse.

It is great when we can do things like cure diseases and genetic defects and reduce suffering, but I cant celebrate the same way when we are reducing suffering we created through sheer stupidity.

Humans cause a lot of suffering by accident, or by dint of competing with other species, and that sucks but isnt what I'm talking about. Cases where we know better and do the harmful stuff anyway are the ones that really get me. Stopping that is "good news" the way someone no longer punching me is good news.

[Edit: "computing" -> "competing"
Really? Because it seems like it lists standards that are expected in actual professional environments.
Is the new CoC responsible for Linus's turn around? What part of the new one would help deal with Linus better than the old one did?
> It's pretty obvious what should happen here because, as humans, we understand and allow for the possibilities of mistakes.

If a better makes a mistake, they still lose their money.

The same should apply on the other side.
Wtf is that design, looks horrendous on a high res display.
The BBC really has lost it's way with digital design.
https://gcc.gnu.org/onlinedocs/gcc/Function-Multiversioning....
I guess you have never heard of a sales team before? Every sales team in the country works mainly on commission, and most executives have most of their compensation based on meeting performance metrics. So what are you even talking about?
> There's no need for uncertainty about what Zig is going for. Rust code blows up when the heap runs out regardless of how carefully you write it unless you want to forego the standard library and whatever depends on it. Zig gives you control over memory allocation and hence at least the potential to write correct code.

I hope that's not it. Talk about throwing out the baby with the bathwater.

It's true that Rust's standard library panics on ENOMEM, but not only is this not inherent to the language, it's possible to extend the standard library, and folks are doing so. See https://github.com/rust-lang/rust/issues/48043 for support of "fallible allocations".
It's a nice feature, when used for template strings. Looking at the library, it just looks awkward:

sq.from`book`
.return`distinct author`
.where({ genre: 'Fantasy' })
.where({ language: 'French' })

I can already hear the questions:

"Why do some functions require parenthesis and some don't?"
"When do I need to use parenthesis?"

It's just unnecessarily confusing.
This is what I do as well. I'm usually working on remote linux servers, but if I need to do something locally I ssh to a VM.
How to build a REST API in 15 seconds
> That really depends on what you want out of your workplace.

In order for it to be a workplace, one needs not to be fired/let go/reorganized out of the workplace.
In Zig:

const ComplexType = union(enum) {
Ok: u8,
NotOk,
};

It's recommended to use destructuring syntax to unpack it, but you have the option to use fields directly which invokes runtime safety checks.

This matches the syntax for normal unions, which do not have tags, but still have runtime safety checks. Rust does not have this feature - unions must always have tags - where as in Zig the state that determines which tag is active in a union could be somewhere else.

> What would happen if I wanted to be able to print a custom type for instance?

const std = @import("std");

pub fn main() void {
const ComplexType = union(enum) {
Ok: u8,
NotOk,
};
var ct = ComplexType { .Ok = 123 };
std.debug.warn("{}\n", ct);
ct = ComplexType.NotOk;
std.debug.warn("{}\n", ct);
}

Outputs:

ComplexType{ .Ok = 123 }
ComplexType{ .NotOk = void }

This is all implemented in userland in the standard library. Last time I checked, in Rust the equivalent code is implemented with a macro hard coded in the compiler.

> why are things like "@clz" or "@intToFloat" compiler builtins, surely they could be implemented as part of the stdlib using a generic method?

They could be implemented in userland, but then they would possibly not lower to the LLVM primitives that they represent. In the case of the casting functions, it's more to do with semantics of the language, making it hard to accidentally shoot yourself in the foot. Shooting yourself in the foot on purpose, however, is always allowed.