skysight-inc/HackerNews huggingface dataset:
Your view is correct but irresponsible in practice. Validating the schema of all parameters of every method call (because you can never trust the caller in dynamic languages) would be prohibitively expensive. A compiler which injected these checks into every method preamble would have incredible correctness, but would create functionally useless code (if performance is a feature).

> C++

What happens when you call main(argc, argv) with the incorrect argc parameter? There the exact same problem that TypeScript faces at the start of every single C/++ program.

Validate your payloads with JSON schema if you don't trust the server/backend. JSON schema is designed to type-check at runtime and is therefore the correct tool for the job.

Don't curse the hammer if it is unable to loosen bolts.
Well, exactly. You don't have to have a Ph.D to be an expert, to be a good lecturer, etc..

But having a Ph.D is nonetheless a demonstration of a particular high-level of learning, research, and technical ability.
I would like to know if you think the problem is AirBnB or the lack of building new houses. I find a lot of people who complain AirBnB drives up rent, but also believe building more units won't push down rents.
The Worst Thing about Cars Is That Nobody Is Even Happy
Austerity: When It Works and When It Doesn’t
Mypy 0.710 Released: New Semantic Analyzer
It's true, putting the TOTP in a synced app actually removes the "something you have" aspect of the second factor. Now you've created a way to intercept the "something you have" factor without touching either the user or the authenticating service, so it's just an extension to the "something you know".
After 4 weeks with a touchbar macbook I’m still trying to unlearn “finger rests near escape key”, mostly because I only use the built in keyboard occasionally and that’s where that finger belongs.
get over it
https://z.cash/technology/jubjub
Well the solution is communal living in these large homes. I'm doing just such a thing with extended family and children and its quite nice.

I get not everyone loves being around their family, so its not for everyone, but it makes things far more affordable, and the house you can get by pooling money together can be quite amazing compared to what you can get by splitting the pot. There are fewer people wanting to buy these homes which means the deals you can get are quite good.
I wonder how often Western people browse for information that is considered taboo in their countries. My guess is not very often.
Well, first you slow the content stream by imposing a rate limit per-user, and users who post things that violate the policy are stopped from posting for a longer time.

Second, you do better at automatically detecting duplicate content that’s already been banned.
>use the the abundance of extremely well-done and educational videos on Youtube that beat the crap out of your regular western media in both objectivity and healthiness

Any recommendations?
I wonder how much of this study is permanently skewed by being on HN and it's specific audience - as well as all the redos.
It's worse than Chrome in every way. For example the privsep system is a joke.

That's not to say that Chrome can't have an RCE but of course you don't have the same chances if the browser is much more secure. And if you work in an environment like Coinbase's you really should not take chances.
Does this website hijack scrolling? It really feels like it does. If it does, please reconsider; this shouldn't still be happening in web development.
Are you saying that black people are incapable of fixing infrastructure without help from white people?
Norwegians attempt to create first time-free zone
Circuit Breaker Pattern: Migrating from Hystrix to Resilience4J
What’s Wrong with Modern Buildings? Everything, Starting with How They’re Made
Alternative history time: what if MIPS R4000 hasn't been killed by Pentium? Would we be running R10000-compatibles now?
You're speaking of storage units, correct? Not habitable structures?
AirBnB causes damaging housing economics more rapidly than building more units can alleviate them. Is building more units a (long term) solution? Yes. Is banning AirBnB a solution? Also yes.

What seems strange to me is the idea that tourists and small time local economic actors profiting handsomely from short term rentals should take priority over a majority of local citizens. If citizens don't like your plan, out your plan goes (very similar to how California residents keep killing upzoning).

If you're a local citizen and want to put a wrench in short term rentals, engage in the political process. Go to your representatives and tell them to enact legislation to do so if that's what you want, and if they won't you will assemble with other local citizen voters and vote them out. That's democracy.
The average amount of residential fires in the UK between 2017-2018 that actually required rescue services is around 83,000[0], so only 75 extra a year does seem a bit excessive to do a full recall on; I feel a stop-sale order until the problem was resolved and saving full recalls for very dangerous items would have been a better choice

[0]https://assets.publishing.service.gov.uk/government/uploads/...
I think what I’m saying is, to try to use your terms: small precise movements can be more tiring than bigger looser movements, because they require strong muscular control.

And, I’d argue, keyboards with deeper travel require less precise movements. You can rest your fingers on the keys so you know where you are, and it takes a comfortable longish movement to press a key rather than a tiny precise movement.
I have the same symptoms, I didn't know these were symptoms. Does it make me depressed?
I think the answer is that if you share seeds and lose a device, then you really need to invalidate and reprovision all of your remaining devices. If you use separate seeds and lose a device, you just invalidate the one device and move on.

From a user's perspective, it seems like a good feature; I'm fine with reprovisioning my 2-3 devices, no big deal, I'm in control of that. From an admin or business perspective, it's less acceptable because if I see something weird and need to invalidate a device, I'm actually preventing my user from authenticating altogether - and that could require more work to recover from depending on where my user is and what my provisioning process looks like.
You better not let this attitude shine through in a job interview, though :D
No ECC is supported in that configuration. If you're lucky, it works as normal RAM.

A few i3 CPUs support ECC, though.
I probably shouldn’t let it deter me from learning the language but what you’ve said exactly describes the feeling I got when a coworker was telling me about his experience with it.

Apparently there’s a way to have code execute at compile time (as an alternative to preprocessor macros I guess) and there’s some API in the compiler that either lets you change the grammar or interact with the AST in some way. This guy was using it to add something to the syntax (I think) to make something easier. It sounded awesome (this guy was always doing some of the neatest stuff for fun) but my immediate thought was “now you can’t really be sure other parts of the code aren’t doing this and that severly limits the assumptions you can make about code you’re interacting with.”

I probably should play with it anyway since they certainly have some neat ideas but some of the complexity the language allows sounds really bad for larger projects.
Iran's Revolutionary Guard shoots down U.S. drone amid tensions
So Apple should be required to license their cpu design to other companies?
Wow, that’s pretty horrible.
Google+ was a ghost town because every google user had an account but nobody used it so it felt strange being on there and not seeing any activity.
That's the point of the adage. The hypothetical committee was supposed to come up with a fast animal to ride (horse). But then everyone wanted it to address their specific concern. In the end, they created something good in many situations (camel), but at the cost of the overall gaol.
Here's how you perpetrate a wealth transfer from average homeowners to the rich:

1. Deregulate mortgage lending to cause a housing bubble.

2. When it bursts, bail out the banks, and let people lose their homes, resulting in the homes being transferred to banks and landlords, causing more speculation and price increases.

3. Meanwhile, make sure the proportion of economic growth going to workers is kept minimal, even as the stock market booms.

4. Now, these workers not only have to sell their labor to the rich for paltry returns, have their retirement (if any) invested by the rich, borrow from the rich to go to college, but also rent from them in perpetuity.

https://www.youtube.com/watch?v=RRh0QiXyZSk
Well, irccloud.com must be doing something wrong if they're using a pre-existing protocol, have solved its problems and yet Slack is the company worth billions.
It’s always interesting what we volunteer ourselves to become experts in through our work in software. I respect any OSS developer that dedicates themselves to this type of thing.

I’m curious what google used to create that chromium bug report page (internal framework or a custom job). The internal tools targeting devs with good browsers will always have the most advanced stuff it seems.
Doesn't Chrome follow w3 standards though?
Russian outlets are the only valid source of information.
This could be a candidate, I'll need to figure out how to make 2 separate notebooks. Apart from that, it looks really promising.
Yeah, just sold our home this month in the Midwest and moved into a townhouse that we rent for now. We did end up making a little money (bought in 2016) due to the great market we were in but I think that was just luck for the most part.

The issue with fixes gets even worse when you live in an older city and most of the homes are 80+ years old. It was a nightmare when you start to think about all the little things that are eventually going to need repaired/replaced in the not so distant future.

For now I am happy not having to do any yard work and only having to pay and electric and internet bill. The simplicity is great but I do miss having a little more space for storage/hobbies.
Probably because 85% of the browser market it's Chromium-based, while the rest is not. Hence, a smaller attack surface.
> The new thing is that it can be just be switched on/off on an existing install.

Is that only true for Arch, or is that also working on other distros?
This looks cool but there's not a lot of documentation about how this works or how the bot reads in the training data.

There's the example file here:
https://github.com/olivia-ai/olivia/blob/master/res/intents....

But trying every variation of "hi" doesn't return any of the correct responses from the online demo. And Olivia doesn't seem to do text normalization (stripping out punctuation), so saying "Hey." instead of "Hey" or "Hey!" doesn't work.
From the article:

> The fire report states that it's an internal wiring fault in the machine, and all of this was caused - approximately £8,000 worth of damage - when the machine was turned off

Am I understanding this right? This dryer can catch fire while not even running, just by standing there connected to the power socket? That's insane. How in the world can someone mess up some internal wiring this bad?
It hurts Apple brand
No. The author thinks people anchor value assessment in their local currency without factoring in short term currency fluctations. Which they do.
Are we forgetting that Chrome had a zero-day literally three months ago?

https://securingtomorrow.mcafee.com/other-blogs/mcafee-labs/...

> Google is aware of reports that an exploit for CVE-2019-5786 exists in the wild.
Personally, I prefer something written in a relaxed style rather than a formal-voice only in most cases, especially for blog posts.

Formal only generally comes across, to me, as cold and distant. Great for a persuasive essay or other mediums where you want to remove the topic from the author, not so great for communicating with your audience and wanting to come across as sincere.

If anything, a strict formal-voice only blog post would come across, to me, as contrived.

To each their own.
It's also not true. Lenders don't give a shit who they lend to so long as the loan qualifies for insurance by the government or can be sold to a GSE.
It's similar to a telecommunications giant - as the customer, you need to pay a cost of switching (moving expenses, hookup fees etc.).

So it's in their best interests to try to squeeze customers when possible, even with the occasional person that moves out, they'll net a lot more from tenants who just don't bother to dispute the increase.
So it must be a visual comparison. They also say that camels have poor temperament.
Yeah, you're right, and since vanilla javascript does have runtime type validation that's a reason not to use Typescript. /s

The documentation, tests, breaking run attempts when developing, and flipping back and forth between different source files it replaces, almost painlessly, are 100% worth it.

And you can trivially "nope" out of it anywhere you want if it's getting in your way too much, and congrats, you're back to lovely, pain-free, JS. /s
I built a house last year, and had to work with a few different banks to finally get a construction loan. One of the fist ones said to me "1900 sq-ft? You shouldn't be building a house that small".

We made it work, but would have gone with a manufactured home before we would have built something with 3k+ square feet just to make the bank happy.
> vec![] => exclamation mark squeezed between what appears to be a keyword "vec" and an array syntax

vec![1,2,3] declares a vector of [1,2,3]. But it isn't `keyword` ! `array`, it's more like vec(1,2,3) where vec is a variadic function. But instead of being a function, its a macro so its done at compile time using AST transformations.

Basically, `vec` isn't special, `!` is. `anything!()` or `anything![]` are ways to call macros.

I don't recall the exact transformation, but vec![1,2,3] is basically equal to

let v = Vec::new();
v.push(1);
v.push(2);
v.push(3);

It's not quite equal because it might initialize with Vec::with_capacity(N) where N is the number of args, but you get the point.
The road to hell is paved with XSLT. It was a good idea, but early 00s X-everything were terrible implementations.
You accidentally send one-time passwords to other people? Good job that's not the only factor.
Since Haswell, ECC support has been on (Core-based desktop) Celerons, Pentiums, i3s, and Xeons. It's quite straightforward, when they pulled 2C Xeons off the market they added it to the consumer processors instead, but they still want to retain Xeon sales for the higher-end products so they lock it off on the i5s/i7s/i9s.

Of course you need to know what you're looking at, the suffix of the number matters a lot (eg 7100 vs 7100U), but that is nothing Intel-specific. A Ryzen 2700 and a Ryzen 2700U are very different processors as well.
I bought a theme and used it for this site. The javascript in the theme might hijack scrolling. I will check and fix it. Thanks for letting me know!

Update: Fixed it! There was smoothscroll.js (v1.3.8) in the theme that was causing it. Note to Self: Don't blindly include all theme files :)
> goofy ideas [...] back in the day

Do you mean they looked goofy back then, or only in hindsight? My point is not about chess or racism but how we justify things, and the implied question of why we have to justify things to make ourselves look good.
As an upgrade thought, that box should be able to handle dual X5675's, which are fairly cheap on Ebay.

There's a very noticeable performance improvement from (eg) the E5645's, let alone the E5620's.

Saying that as I used to use a self build box (Supermicro motherboard) with dual E5645's as my desktop, but it always "felt" a bit slow. :/

Had the opportunity to upgrade to X5675's, and now it "feels" fine interactively due to the higher base and boost clock.

The highest model, X5690's, from all reports are literally no faster in use than the X5675's (maybe thermal throttling?). So not worth the extra spend. ;)
Armenian is an Indo-European language, Basque is not, so I am not sure how they can be related.
Google Maps is filled with false business addresses pretending to be nearby
TypeScript Interface into Swagger Spec?
Are there any libraries for generating swagger specification based on typescript interface?
One of the best works of fiction I've read as a child and still re-read today.
If you want to prep for interviews, it may be most efficient to look through lots of hacker rank problems and learn them in an ad-hoc function, looking up solutions online after you've tried them. If you actually want a good understanding of fundamental data structures and algorithms, I very much recommend reading Cormen et al. First 4 sections (17 chapters) plus Chapter 22 (Elementary Graph algorithms) are the absolute essentials (obviously some people may have some small level of disagreement with this but I think it's fairly accurate). By then you'll have enough knowledge to skim the introductions of the other chapters and decide whether you care about reading them now or just keep the basic premise of what that chapter addresses in the back of your head so if something requiring it comes up later you'll know you can refer back there.

Edit: hah, I type very slow on my phone evidently. strikelaserclaw's advice here is very similar to this :)
> The project was initiated as a response to the lecture
held by James Gosling at the 50th anniversary of Simula
in Oslo on 27th September, 2017.

This made me realize that I actually have never read any articles or seen any contalks by James Gosling. Surely the guy behind Java must have some interesting thoughts and ideas to share. Will give that presentation a listen later!
Open Clip Art Library Offline, due to DDoS, for 2 Months
If I were a crypto startup I'd be more worried about insider threat than anything sophisticated.

Protecting against a rogue employee also adds defence against employee computer compromise.
Replacing cheap hotels with Airbnbs is like replacing buses with cars. Pretty soon you run out of room on the road. The problem isn't that we aren't building more roads or cars, the problem is the cars are space-inefficient. By using buses, we decrease the amount of road used per person, which eases congestion, and lowers cost (buses are much more cost-effective per person per mile than cars). So we don't need more houses, we need more (and cheaper) hotels. This would reduce demand for Airbnb, and thus reduce the number of homes bought explicitly to rent out.

But of course, who's going to pay for them and run them well? The nice thing about Airbnb is it created a competitive market, mechanisms to eliminate bad actors, customer service, price adjustments, insurance, and so on. You wouldn't get those things with a couple of hyper-efficient hotels. So it almost seems like we need the state to build the structure, and then allow people to bid on owning the rooms, and then renting them out on Airbnb. That way there could still be competition that drives all the useful features of Airbnb, but in a much more efficient form than the completely inefficient use of land that buying houses results in.
How taboo?

Basically everyone watches porn which is mildly taboo.

I'm sure there's some people that listen to far right podcasts (which is taboo local to this crowd) but they won't tell obviously.
You almost make it sound like Chrome weren't written in C++, or that the typical Chrome install weren't hosted on a few 10s of millions of lines of C/C++
Senators receive classified briefings on UFO sightings
Just curious - whats the stack you guys run ?

I'm wondering what do you use to call these external processing APIs. I assume these are blocking calls.
Citibank Colonized the Caribbean
These declarations of valuation should be followed by a little note explaining what multiple of earnings (or, failing that, sales) this represents, and how fast it is growing.

Is that high? Low? about right?

Well, it depends if Slack made $100 million in sales and is flat, or if it did $2B in sales and is doubling every year.

(I assume that it doesn't have earnings because its still growing and plowing all that money back into the business)
I think it means Individual Contributor (level) 6 - which is described as "Staff SWE" by https://www.levels.fyi/?compare=Google&track=Software%20Engi...
It’s also used in marketing to describe what happens when a buyer’s expectations are not met by the product, and is entirely used to fault the seller and the seller’s marketing.
After an unplanned Wikipedia binge about Armenian history, I stumbled upon this interesting fact: in antiquity (~300 BC to ~600 AD), there was a kingdom established near the location of present-day Armenia called the Kingdom of Iberia.

https://en.wikipedia.org/wiki/Kingdom_of_Iberia_(antiquity)

Iberian peninsula in the west, and a Kingdom of Iberia in the east? Yet another very strange coincidence, it seems.
I don't get this argument at all.

If you look at a typical call stack - in any language - going from the frontend all the way to the database, there will be hundreds of lines. Two, maybe three of those will be remote jumps.

Every one of those calls is an opportunity for a contract mismatch. Even if static type checking misses a half-percent of your calls, it's still working to enforce 99.5% of your contracts. The value of that is hard to oversell.
Not anytime soon. Tech folks understand the privacy and ethical implications. Good luck explaining that to the layperson.

In many developing countries, FB is how many, if not most people get all their news and interact with family and friends.

Can't take that away. Because there's no real alternative to it.
I've had my 6850k stable at 4.2ghz and I'm not finding it too slow, but I've also got a pair of servers I offload anything I can to, so that has definitely had an impact on my perception of how fast it is.

But I'd say it's far from being too slow. The boot times and load times for most software is fine for my use cases.

It was just too expensive of a build to justify an upgrade so soon.
The "Warn users not to save their QR codes" was to address the issue of users who might "Screenshot their TOTP QR codes and leave them lying in their Downloads folder". I don't see how that is necessarily applicable if, say, I print the QR code and save it in a safe deposit box, where I also have my FileVault recovery key and my 1Password Emergency Kit.

I also don't really understand the "Tell users to only provision one device" point. If the device is one like the gemalto thingy that we use at work to login to AWS, then sure, I can see why having more than one is bad for a given login. That shows the code to anyone who presses the button. If you had two, you'd need to keep both of them under your control at all times, and then there would be a decent chance then that if you lost one or destroyed one, you would also lose or destroy the other at the same time, so having two might not even gain you much in reliability.

But what if the devices are my iPhone and my iPad and my Apple Watch? They have pretty strong protections to prevent a third party from using them if I lose them. The consensus seems to be that unless I'm targeted by a government, a lost modern Apple mobile device with a long passcode is not going to cough up its secrets.

(Well...at least an iPhone or iPad. I think Apple Watch defaults to automatically unlocking if you are wearing it and unlock your iPhone. That might be exploitable if the person in possession of your watch can put it on and arrange to be close to you when you unlock your phone. I wonder what the range is for that? Would it work through a typical office wall?).
It was an interesting moment, though there was a higher chance we would have been running SPARC or POWERPC. The architecture was top notch, but the company was too focused on being "MIPS Computers" not "MIPS Technology" at the time.