skysight-inc/HackerNews huggingface dataset:
JAMOW – Civilization (Official Video)
As a designer 2 things going through my mind since the moment the story broke the EMS system fired a statewide alert due to a wrongly clicked HI element:

1) How in the name of everything holy did this monstrosity of an interface for such an important system get approved in the first place?

2) Given a monstrosity of a interface: Why are there, apparently, ZERO safeguards in place to make sure the human error rate at least has a HUGE chance to get close to zero?
I warned you once in this thread already (https://news.ycombinator.com/item?id=16161338), but you've managed to break yet another HN site guideline with this comment, the one that reads as follows:

Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize.

Obviously Cadran was talking about making Leap inclusive within the scope of being a forum for women—that's what the question was about. You don't have to agree with any particular view to see that, it just takes basic respect. If you can't or won't abide by the rules here, please stop commenting until you can.
Open your browser console and find an input that works:

function test (a) {
try {
return !!(typeof a === 'undefined' && a(1) && a[2])
} catch (e) {
return false
}
}

It is possible to get it to return true.
Why the Former President of Nickelodeon Joined Mitú as CEO
No. Add blockchain somehow.
You don't have to do anything. Just drop TypeScript in as a replacement for babel. Whenever you find yourself wondering if a type annotation or definition would help, then do it. Leave it optional; no commitment required.
Best solution would be something like SDNV. Short strings (up to 127 characters) have no length penalty and you can handle strings of any length.

I don't think these were invented back when K&R were designing C, but it feels like something any smart computer language designer could invent if the need arose.
> I mean, before cars, streets tended to be narrow and generally ad hoc.

It's also worthwhile to consider all that cars have added to our society. People stayed in the streets because that's as far as they could go. Vendors came to the streets because that's where their customers could get to. Travel was limited, the movement of goods was basically nonexistent compared to today and "moving for a job" was not even a possibility for the majority of Americans.

We introduced cars, then made them faster because that enabled more of what we wanted for ourselves, and sure, we made a sacrifice in that trade but I don't understand this modern trend of decrying our future for love of navel gazing through the past.
- Get autocompletion for everything: object properties (eg. user.[firstname, lastname, etc]), type-specific methods (eg. thisIsAStringButYourEditorCantKnow.[list of string methods provided by your editor since you told him it's a string]), etc

- Detect bugs and errors early, removes some kind of bugs (eg. typo errors: user.fisrtname, your editor will tell you fisrtname is not a property of user)

- Help to refactor (eg. 'Rename Symbol' in VSC can't work on everything if your code isn't typed, eg. (X => X.someProperty), someProperty isn't renamable automatically since your editor doesn't know what's X)

- Reduce extra error handling (eg. if (a === undefined || b === undefined || a is not a number || b is not a number) throw new Error(...))

- Reduce extra unit tests (eg. expect(add(5, undefined)).toThrowAnError(); expect(add(5, 'foo')).toThrowAnError();)

- etc...
In C++ this is easy, assuming that 'a' is a value of a custom class.
The block reward is not the only incentive to mine. Users also pay miners with a transaction fee.

The whitepaper is short and very approachable ;)

https://bitcoin.org/bitcoin.pdf
The interesting thing is that this is what a real free market looks like.

This is what any market would look like without being rigged by governments and government backed institutions.

Bitcoin may be the best proof yet of how deeply flawed the libertarian free market ideology really is.
If all the miners go away the difficulty requirement will drop on its own to maintain the 10min block rate. No need to fork anything: https://en.bitcoin.it/wiki/Difficulty
Actually Bitcoin has transaction fees for exactly this purpose. The idea is that once all the coins are mined the primary way that miners make money is from the fees that people pay to miners to get their transactions recorded in the blockchain.

For reference a lot of times you currently have to pay a fee of >$10 to get your transaction recorded in the blockchain, and estimates of around $10 million a day in transaction fees go to miners.

Of course its questionable whether fees can actually support the ecosystem, but it is designed into the system.
So proptypes can be inspected at runtime. Does anyone have any success with tools that can turn Typescript types into runtime walkable datastructures or do code-
generation / execute macros based on them as part of the build process?

I use typescript quite a bit and am starting to hit some patterns that could be abstracted nicely if metaprogramming tools were in the shed.
can you just overload the operators '==' and '&&' to mean something else?

Like, set 'a' to contain a string like '0123456789' and then overload '==' to just mean "check if this number is in the string" then it works.
I see my problem now, I don't see @supports as a query like in terms of media queries.
That's not the real question, you're pretending context doesn't matter. What's your argument? Women say "I enjoy having a place to communicate with other women in a place that feels safe from male interference," and your response is "Let me into the women's bathroom"?
> NUL is not a character

Somehow NUL is still an assigned character in the ASCII code table. Strange, hmmm?
I think you are obligated to stop a crime that is being committed.

Imagine this is a typical company/employee relationship. Your boss isn't paying you correctly, instead of bringing it up with him (or HR, or state labor group) and resolving it you begin to collect information that is unrelated to your issue at hand (pay). You notice that your boss is selling trade secrets and paying off competitors. Instead of telling someone (at Waymo, Uber, Telsa, the police etc), you continue to collect information about your boss, including his sex toys in his closet and use that information against him to resolve your unrelated HR complaint. This would not go over well in a traditional employee relationship, let alone a nanny type situation.

Maybe nothing is illegal there, but it's definitely unethical. I could be swayed on her tactics if the info she collected was things like "he also doesn't pay his gardener and housekeeper" but the fact that she hung around so that she could get the license plates of people showing up to his door is incredible unethical. It doesn't make what he did right, but she acted in a totally inappropriate manner.
You mean when he relays a conversation he had with one of the company's VP's?
That's more of a "open source library" goal of mine: https://github.com/paragonie-scott/public-projects/issues/6
The two interfaces are the same. The new one has more colors and smaller buttons. I'll trade larger buttons for the colors.

I'll trade everything for being able to see as many messages as I'll always did. Not another Skype like redesign with lots of useless white space around messages, thanks.
Boris, thanks for answering questions here.

One more: has this raised any doubts that the Black Death was a Bubonic Plague?
NUL is a character in the ASCII character set. That is a problem because you cannot create all the strings composed of ASCII characters in C.

But C never claimed to support all ASCII strings. C doesn't even have strings. C just has char arrays, which are byte arrays. When strings were formalized by convention in the stdlibs, clearly the supported strings are 1-255 strings, NUL excluded. That's the character set available for strings in the stdlibs. If you insist on using stdlib strings for some other kind of strings, that's your own problem.
That poster didn't seem offended to me. More curious. It's not obvious if the person is male or female or feeling left out.

If some women feel that way anyway, are you suggesting that making more people feel that way helps or makes it not sexist?

Tech pushes many people out, male and female. Even if the men in tech are the same, what about the men who would like to be in tech but were pushed out? Or are all men the same?
...therefore the answer is to increase gender division?

Should we also end racial violence by increasing racial violence?
Nothing right now, but have two unfinished books in my backlog. First is Spring Snow by Yukio Mishima and the other is Code: The Hidden Language of Computer Hardware and Software.
Favorable to shareholders.
The Public Domain Starts Growing Again Next Year
My college degree was in classical piano, while I've mostly emphasized pop and jazz since then. I honestly don't really understand the study they're writing about here, but I have to say I don't really identify with Keith Jarret's quote here. Jazz is just another way to do music and it requires a different way of thinking, but I've never really looked at it as requiring any kind of "rewiring" or context shift.

In general when playing classical I miss the playfulness and individuality of jazz, and when playing lead sheets I miss the narrative sweep of classical music. At least with my pop songwriting I can try to bring in a little of both.
No need for Mozilla to make server software for this; Thunderbird/Lightning do CalDav and CardDav just fine, right? Seems that cs702's problem isn't with Thunderbird, it's with Google supporting CalDav and CardDav for sync.

If you want to self host, just host any CalDav or CardDav server software.
Still, it would be a fun exercise to imagine how e.g. Facebook, Twitter, Google, Microsoft or Apple would have designed this screen :)
Yup. Im a little intimidated by sending it right now - I'm not a crypto "expert". So I'm looking for some informal review and then probably submit it.
touche, I don't suppose the old non commercial websites mentioned in the article suffer the same problem though right? Maybe an accidental robots.txt file was mistakenly left around?
> I'd expect something like Groom Lake to be surrounded by an impenetrable wall of interceptors and SAM sites

The whole idea of the SR-71 was that it went so fast that SAMs could just barely not catch up to it before they ran out of fuel. Any other plane couldn't outrun them, but the Blackbird? Well, Mach 3.4 will give you some breathing room.
Please don't ask trick questions in interviews. It's never a good idea.
Do you have any data or facts to back up your argument that there is no zoning issues in central valley?

Legislators seem to disagree with you and passed a bill to require relevant cities to zone for farmworker housing https://leginfo.legislature.ca.gov/faces/billTextClient.xhtm... and there is another one proposed this year.

Everything I read attribute this to a lack of housing supply. https://www.mercurynews.com/2017/09/19/housing-affordability... and http://capitolweekly.net/crisis-affordable-housing-grips-cal...

For instance, Stockton leads California rent increases with a 10.4 percent increase in rental price between July 2016 and July 2017 and their home prices have increased 92% in the last 5 years. In a supply balanced market this would not happen as the landlors do not have leverage to increase rent this much, and developers/owners don't have the leverage to sell housing for this much more.
I see Dogecoin is no longer at it's 2 billion dollar market cap. When my dad asked me if I thought BitCoin was in a bubble, I told him that the fact that a parody coin had a market capitalization of two billion dollars seemed to indicate that something was off.
Google shares how they handled Meltdown and Spectre
Well, there is a lot of rational thought (and frankly human lives) sacrificed at the altar of the personal automobile. Limousines with 200 hp, huge trucks with bull bars but can't see the pedestrian to the right, sound systems, entertainment systems, licenses that expire never, are checked never, 20% percent of space in SF for storing huge heaps of metal for >90% of the day but "there is no space" and people can't make rent, ..
https://i.redd.it/twe79v68sea01.jpg

Will the history show the future again?
yes. for those confused- where you put things relative to the metronomic beat (center of the beat) matters hugely. depending on styles and settings, bass will be slightly ahead, drums behind, guitar right on top etc. its cruical to hear everyone else in the band the way they hear themselves, relative to the beat. otherwise people think they are being rushed or dragged and it just doesnt congeal. and the feeling when it congeals is like being weightless, its truly great. it may sound trivial to the uninitiated, but its maybe the most important thing for bands, at least in my experience
I can’t fathom what the problem could be when using private key encryption to create stateless tokens.

I do this to create bearer tokens without JWT.

Anyway, you can find a lot of his comments about JWT by searching ‘tctapek JWT site: ycombinator.com’
Fair comment.

Levandowski made it clear on more than one occasion of his admiration of some explicitly sociopathic tendencies. More than a few people noticed and talked about it. I'm not sure anyone did anything -- except, perhaps, his nanny apparently.

There's a bigger conversation in there I'd like to have, but I haven't sorted it out in my own mind, and I'm sweating even writing this much.
Are they still worth $25k? Or are they now back until to being over $300k?
Reminds me of my all time favorite programming talk-- (4:17) https://www.destroyallsoftware.com/talks/wat
I'd normally be extremely critical of pointless tech interview questions, but this one is excellent.

It tests both debugging skill (not taking innocuous code for granted) and defensive programming (writing robust code that won't be affected by environment).

The obvious example of the latter on Javascript is being aware of how closures and scope work and avoiding global namespacing. If you're even vaguely aware that the kind of trickery in the SO question is a possibility you're much more likely to practice safe coding in that context.
Very enforceable. You clicked accept, you accepted. If you didn't read it, that's on you.

According to the American Bar Association's wording on "Best Practices for Ensuring Enforceability" [0]

> There is a check-box that users must click adjacent to an affirmation similar to, “By clicking on the box, you are indicating that you have read and agree to the Terms of Use”;

> The webpage is designed so that if the user does not check the box manifesting assent to the terms, the user cannot proceed in the transaction;

> In addition to a check-box that users must click, the terms of use are available either in a nearby scrolling text box or a nearby hyperlink;

> Any hyperlink of the terms is obvious, e.g., “Terms of Use” is underlined and has decent size lettering and visible coloring (not small lettering and not obfuscatory coloring);

> Any hyperlink of the terms has a central or obvious location on the webpage, e.g., the hyperlink is directly below the “I Agree” button (not relegated to the bottom of the webpage, which would require the user to scroll down to a submerged portion of the webpage);

> Any hyperlink of the terms immediately displays the terms (instead of requiring the user to click on a series of hyperlinks to view the terms);

> The terms of use are evident in every webpage on the website (rather than visible on only one webpage), in addition to requiring users to attest that they have read the terms of use;

> The terms are in readable font (at least 12 point); and

> The agreement contains all requisite elements of an enforceable contract (e.g., consideration, sufficiently definite material terms, etc.).58

[0] https://www.americanbar.org/publications/communications_lawy...
quicktype (https://app.quicktype.io/) can generate TypeScript types from JSON, Schema, and GraphQL, and it also emits a runtime type representation to do dynamic typechecking. Perhaps this isn't exactly what you're looking for but you could easily modify it to generate whatever code you'd like. We have an experimental Handlebar-based templating feature to make customizing the generated code easier.
Most CPUs have a flags register, and typically have a "zero" flag which is set when the result of the last operation was zero. Zero is special in the vast majority of hardware designs. Checking for null (zero) instead of another specific value often saves a few cycles. That's where the optimization of having all FOR loops count down towards zero comes from, the check saves a cycle or two each iteration on some CPUs. The same thing happens when reading from a buffer, the load instruction will set the Zero flag when the terminating null is read.

The difference doesn't matter much on modern (non-embedded) processors, but it did make sense at the time C was designed. It matches the most common hardware design pattern better than the alternatives.
You might be interested in this: https://github.com/gcanti/io-ts and many related projects by Giulio.
It works pretty well with Exchange if you use Thunderbird with davmail. But I would really like built in support that works well.
I was just about to laugh at JS, when I realized you can do the exact same thing in Java also. a.equals(1) && a.equals(2) && a.equals(3) can evaluate to true, if you overload the equals method with a particularly dumb interpretation. I believe the same principle will also apply to any language that supports operator overloading, such as C++.
Hi,

Are transgender females allowed?
Is concurrent javascript a thing?
Just like every other study. And then there are the statistical trends: as video games trended up, violence has trended down.
Hmm, like what?
In all your posts you write "scarring". I think you mean "scaring," if you refer to what which will scare. Scarring somebody means they are being scarred.
> Is this exact thing what's being considered in some of the more recent Supreme Court cases? https://www.npr.org/2017/10/06/555862822/no-class-action-sup.... -- but that's still being sussed out.

(Not a lawyer.) It's the same issue, but a different context. The issue currently before the Supreme Court is whether the National Labor Relations Act, which provides workers the right to unionize and engage in concerted activity, prohibits class-action waivers. The (eventual) outcome of that case will not be relevant to the Dropbox agreement at issue here, because the Dropbox agreement is not an employment contract.
I have seen research that women who go to all female colleges tend to do better career-wise. So I don't think the idea of a female enclave as a means to inoculate women against problematic social norms is without merit.

If you have never done this before, let me suggest that if you like the culture it currently has, you need to be really leery of making significant changes, such as deciding you will welcome men at some point after starting out as exclusively female.

I have been a member of predominantly female groups. If there is a single man in them, they fail to be some kind of female empowerment zone. He will have the largest influence any time he posts and he will be backed by vicious female allies who will have a huge problem with any woman standing up to him. It is bizarre stuff.

The one group I briefly belonged to that was initially exclusively female due to happenstance promptly crashed and burned when the first man joined. After ugly stuff went down, the list basically died. It was eventually disbanded, even though he quickly left because of the drama. The group never recovered from the debacle.
Blazor is an experimental web UI framework using C#/Razor and HTML, running client-side via WebAssembly.

Blazor : https://github.com/SteveSanderson/Blazor
Any ride sharing trip is going to be Driver Start > Pickup > Drop-off which is by necessity longer than pickup > drop-off.

The only possible benefit is if people take public transit more or take fewer trips, which is not something you can see from ride sharing numbers.
Disclaimer: not in any way attempting to diminish your experience. Only adding my own, to broaden the conversation.

It can be a similar experience for men (although it's definitely not something talked about). I've had a female coworker walk up behind me repeatedly and give me unsolicited back rubs and ask me if I wanted to go to an empty office. I've been flirted with and hit on repeatedly. I've had a group of women at work, some of whom were in positions of power, socially shun me because I wasn't romantically interested in one of their friends, another coworker.

Most of this happened when I was younger, and I probably would respond differently now that I have more experience (I just kept my mouth shut back then). But, I still can't help but feel that I wouldn't be taken as seriously by HR, because I'm a man.

I'd like to see us move past the current narrative of "Men do this to Women" and get to a place where we recognize that People shouldn't do this to other People.
As a Leader, Can You Learn to Embrace Healthy Conflict?
if any of the jitsi devs reads this: I JUST TRIED TO GET THE CLIENT.

org.osgi.framework.BundleException: Unable to resolve net.java.sip.communicator.shutdowntimeout
org.osgi.framework.BundleException: Unable to resolve net.java.sip.communicator.plugin.simpleaccreg
…
Elaborating on the NUL bytes on the command-line, e.g. find -print0 | xargs -0:

Using find -print0 etc. is a good idea not so much because NUL is an uncommon character (the various record separators / vertical tab / ... are no more common), but because UNIX - being a C system through and through - allows any character to appear in a file name except '/' (path separator) and NUL. Thus, NUL makes a perfect separator between filenames.
I disagree that something a manager should be chastening developers for at a product company is missing a deadline.

When your only stakeholder is the user, deadlines are all artificial. It might be different at a consulting company.

I'm not saying companies shouldn't estimate and schedule work, but missing estimates is almost never an individual developer's fault, it's systemic and/or a failure in management.

If a developer isn't productive enough for their seniority level overall... that's something a manager has to address. But if a developer misses a deadline, it's probably the manager's fault. It's probably the manager who needs to be working on their estimation and tasking methods.
> I suspect we can find a place for them outside of our most densely populated urban cores.

That seems unconstitutional and a bit like North Korea where they restrict cars to specific areas and ban it in others.
A bug in an early XCom game led to character's becoming so fast that they couldn't leave the landing zone.

Stats were stored in an 8-bit field and were incremented at some (variable, depended on other factors) rate as the character leveled up. Once they hit 255 in a stat, the next time they leveled up their stat would be back to single digits.

This sort of behavior is silent in C so you have to have bounds checking yourself to make sure you don't cause underflow/overflow.

Also, be careful with enumerations. Any integer can be stored into the enumerated type and, at best, the compiler will warn you (an error if you use the right compiler flags) that you haven't cast it to the enumerated type. But nothing guarantees that it's actually in the range of the enumeration.
>but this one is excellent.

Not really. You'll give the impression this quality of code is part of production code and send them running for the hills.
If the success of a product depends on shifting blame, that difference is very blurry.

See uber's "but taxis are evil/medallions are a monopoly!"
Seems absurd to me. Companies could claim they put whatever they want in that text and the burden of proof would lie with the end user.