skysight-inc/HackerNews huggingface dataset:
Partially inspired by this post (I was already convinced), I finally finished adding typescript to a javascript project I recently inherited. I'm an experienced backend developer but relatively new to frontend javascript stuff. Short term, I need to own this until we can expand our team.

Errors that a compiler would normally save me from when doing Java/Kotlin are a major PITA when you are dealing with a foreign code base in Javascript. Over the past few weeks I've slowly gotten comfortable with the code base, the build system (rollup, babel, less, and a few other things etc.), and the frameworks we use (redom, mainly). After updating everything to their latest versions (e.g. babel 6 -> babel 7) and getting that working; I figured adding typescript should be straightforward.

Turns out this is super easy and delivers instant value. The hardest part was figuring out what part of our somewhat convoluted build.js script to modify so that it processes ts files as well. After finding the relevant for loop and adding the rollup plugin for typescript that seemed to be working out of the box. I added a tsconfig.json file to support some ecmascript2017 stuff we apparently are using.

After that it got easier. I fixed a few hundred lines of javascript code to have types. That's in my first hour of using typescript. VS Code and tslint are very helpful. I also found and fixed the first type bug that slipped through earlier: instant value.

Kudos to MS. Vs Studio Code is a game changer. I've been shying away from doingb frontend stuff for years for reasons of it seeming to be backwards to be coding blindfolded with your hands behind your back. VS Studio Code changes that. Autocomplete, quick fixes, refactorings, import organizing, etc. So much better than my browser telling me I messed up by not loading the page.

I renamed several js files. Worked my way through the clearly marked warnings. Mostly quick fix works reasonably well. You do need to replace the any type with something more appropriate usually (like e.g. string). Anyway, free of warnings and vs studio code also found and added a redom type definition for us. Awesome. Very impressed with how easy that went.

Typescript only for me going forward. Opting out of a perfectly good type system seems silly.
If I'm senile I'll probably trust all software.
This major security breach had nothing to do with the core Amadeus system, which the TechCrunch article described as "an outdated and archaic passenger record system." This breach was in the web-facing interface that has been layered on top of the core system, which is modern and undoubtedly implemented using the same standards and methods as any other web application.
Non-sequitur. How does changing language solve homophobia? That requires major education well beyond some language change.
It seems like he gets traction by posting quality content. I got hooked onto him via his excellent posts on switching from Mac to Windows and iPhone to Android.

Since, he's posted some good stuff on various Windows and Android gear. He seems fairly straight-up and calm with his opinions, which I appreciate.
If we are already talking about redefining the language, one term that always bothered me was homophobic. As in

> two thirds of the LGBTQ community have frequently or often heard homophobic comments

It sounds weird to use the suffix phobic for something other than a fear. I doubt that the comments that 2/3 of them hear was something along the lines of "don't get close to that gay person or else you'll get AIDS". I'm guessing what they were referring to was comments like "I'm going to continue to call you he even though you insist that you are she". A better word would be antihomo or homo-hating.

I assume homophobic is used to make fun or degrade those people. Similarly to how terrorists are called cowards (even though I don't know of many people with enough guts to die for what they believe in) or calling kids suffering from cancer as brave (what else should they do? Die?).
Can U.S. Make Staff Work Without Pay? Judge Could Force Its Hand
They're in a controlled environment, not being baked and frozen. This is a test of the gravity only.

Test one thing at a time.
GPU mining is making a comeback with Grin
Driverless car laser ruined camera
Honestly this seems a bit disappointing to me. Reading the issue description scp sounds like the following pseudo-code:

sock = connect(server)
sock.do_crypto()
sock.send_filelist(commandline.list)
cd(commandline.targetdir)
while not sock.eof:
write_to_local_disk(sock.receive_file())

i.e. blindly create and change files the server tells the client about. Complete lack of client-side verification.
It's interesting to me how often this story shows up on HN:

https://hn.algolia.com/?query=insect&sort=byPopularity&prefi...

Edit: a lot of down votes, I'm not saying it's bad that it's frequently posted or isn't a very serious or alarming problem, or that it's showing up here so often due to some conspiracy or something.

It's just interesting, given the non-technical nature of the topic. I wonder if environmental Armageddon is of particular interest to engineers/hackers, or whether it's just an alarming story to humans generally, or what.
Tech companies finally care about helping older people
That other system always screws someone, and its never them.
Comparing 3 open source databases: PostgreSQL, MariaDB, and SQLite
That's an excellent breakdown, but Channel 4 would be very wary of highlighting the animosity towards gay people in Islam.
Even with certificate pinning?
This is from mid 2017. "First notified Tesla on 31/08/2017 ..
Tesla vehicles produced from June onwards use a new key fob". Not sure if the new fob is significantly better as the presentation is not clear there.
IMO, the Wikivoyage link is a better one:
https://en.wikivoyage.org/wiki/Avoiding_travel_through_the_U...

In general I'd recommend Wikivoyage over Wikitravel - the material seems fresher and it is run by a community rather than a corporation with heavy-handed policies.
My car, the Grand Cherokee, can get OTA updates. Not sure if the 2014 Cherokee is able to get them. According to autoweek Cherokee owners could download the update themselves and install from a USB stick.[1] Chrysler issued the TSB to try and force people to come in and get an update who couldn’t or wouldn’t do it themselves.

[1]https://autoweek.com/article/car-news/your-jeep-cherokee-vul...
On the plus side, other automakers do not have remote access as such. All the other automakers "hacks" have required physical access as a result, although a few researchers (2 teams only) have managed remote attacks.
What makes the state of “agile” processes in modern software development so depressing is that actual agility is worthwhile and – if anybody were actually to adhere to actual agile project management principles – achievable. However, I’ve been through at least a dozen agile “transformations” over the past 20 years or so since XP kicked off this whole trend and they all end up going like this: management hires some “agile consultants” who don’t have much (or sometimes any) actual software development experience, so they see software development as sort of an assembly line process to optimize, Taylor style. Under that model, software developers are skilled (or semi-skilled) widget assemblers, and management creates tickets for the software developers to “assemble”. The agile consultant’s role, then, is to make that happen as fast as possible. Since it’s just a matter of assembling some “computer stuff”, every task is predictable: an experienced assembly line worker with one or two years of experience ought to be able to look at a widget/ticket and estimate +/- 5% exactly how many hours it should take to complete. Any widget/ticket that’s estimated > 1 day can be broken into multiple smaller tickets of < 1 day each. If this isn’t the case for any of the tickets, the whole model breaks down and, since we don’t want the model to break down, this must a priori be true: if one of the assembly line workers takes too long on a task, the fault must lie with the assembly line worker, because, the assumptions have already been established to be accurate.
Nonsense. You'll have to find another argument to fix the cognitive dissonance of the statements "I want the best for people" and "Markets(people trading with each other) are evil"
Not much payoff for the article. Did it work?

But in a general lottery (random) it makes more sense to put $50 into a single lottery than $1 in 50 lotteries. That's the only way to improve your chances.
Let's try it with x = 2, y = 5:

S(2) add 5 (i.e. 3 + 5)
=> 2 add S(5) (i.e. 2 + 6)
=> S(1) add 6 (i.e. 2 + 6)
=> 1 add S(6) (i.e. 1 + 7)
=> S(0) add 7 (i.e. 1 + 7)
=> 0 add S(7) (i.e. 0 + 8)
=> 0 add 8
=> 8 (base case)

I agree that your rule would work too though:

S(2) add 5
=> S(1 add 5)
=> S(S(0 add 5))

Seems more sensible to me, and by adding the same rule to the right hand side we end up only needing a single base case (that 0+0=0)

=> S(S(S(0 add 4)))
...
=> S(S(S(S(S(S(S(S(0 add 0))))))))
=> S(S(S(S(S(S(S(S(0))))))))
= 8 (that is the definition of 8)
I think the hating on OOP and the love for functional is a red flag.

If you look at Rich Hickey's book you will see it is possible to implement complex operations in a way that is reasonably efficient.

It requires thinking, however, in a way that people find alien and often I see "functional teams" that design around the lack of knowledge by avoiding things that they don't know how to do, finding ways to say they met the sprint goals on a technicality, and the devil may care about the long term.

I spoke with Rich myself years ago when I was involved in Hadoop where often the bottleneck is data serialization and that I knew that the functional style of writing deserializers was maybe half the speed of the conventional style.

He agreed with that and told me that most people wouldn't care about that.

It reminded me of a conversation I had with a professor years ago about why they were still writing scientific codes in FORTRAN, when FORTRAN was saving only 30% on execution time relative to an alternative. After all, you are running a job that takes a month on half of a supercomputer. What difference does it make?

He told me that it had to be as fast as possible precisely because he was running a job that took a month on half of a supercomputer.
It happens when you have addthis.com blocked - that's a facebook logo. You can hide it with the developer tools.
I'm sure the Huawei executive was aware of this and actively avoided transiting through the US. She probably didn't assume Canada would also do the US's bidding.

The charges against her work with Iran had made headlines nearly 5+ yrs before she was arrested, so she must have known there was a risk travelling there.
Even beyond all that, I assume what will be missing from this contest is someone hacking Tesla's servers to send malicious updates to the cars.

I don't think something like this would be allowed in the contest, which is a shame, because it's probably what most of those who want to "hack Teslas" in the real world will attempt to do.
Thank you, the aspect about dust and dirt would be an easy overlook (as I did) and one which could affect quality. Though I'm sure an issue that can be engineered away.
I have no idea what i-shirt is but it's likely that if an user uses copyrighted material for his i-shirt, you'll have to pay because it's your platform. Bonus points for not using a censorship filter in trying to do this.
If you're a Malaysian, it's a no brainer.

A senior tech job pays about US$1000-$2000 per month. Maybe $3000-$6000 for managers/VP of listed companies. Conditions can be poor. Long hours at work, long hours in traffic, 14 days of vacation. Aggressive people. Pay is often late with startups, and the norm is paying on the 5th of the month.

The trick is to work foreign jobs. I make about US$35/hour freelancing, which is a very comfortable amount for me personally, and also well below the usual rates internationally. I can live in a comfortable area away from the city with good food, good traffic, and fast internet.

If I can just make an international SaaS thing at $1000/month, that should be enough spare change to buy a family house.
Here is a concrete thought experiment you can try at home: simply use the opposite pronoun that would be applicable. Watch people's reactions to your incorrect usage. Feel the power and wrath of individuals collectively trying to correct your usage.

Now take all that effort from all those other folks trying to correct you, and imagine it's all bundled up into one person. One person corrects each of those strangers. Because that person's pronoun may not be the one correctly used by the others. That power and wrath you were subjected to still applies to this one individual, of course. It's not reversed. That's a shit ton of effort and resistance against power and wrath for one person. Every day. For the rest of their life.

So maybe it is a little less about politics, and being a little more empathetic to people who have to struggle daily through this.
Guide into Static Site Generators
Sure but they'd do that whether you used contactless or not.
I think nothing has that capacity from incomplete information alone.

One would think primitive lifestyles would produce less pollution. They would surprisingly be wrong - biomass cooking fires scale worse than petroleum ironically. Similarly the reason hunter gathers were nomadic was because they were like a plague of locusts stripping food capacity - it is no wonder humans caused so many mass extinctions with spear and arrows alone.

Given the sheer difficulty of predicting technology I don't think it is very possible beyond "Don't put lead in gasoline you morons!".
Yeah, sorry, though, I realized after I posted that I failed to properly acknowledge that you hit the nail on the head -- I picked that response to Gettier specifically because it matched your criticism.
>> "The United States does not allow sterile transit, which means that even if you have an immediate connecting flight, you have to pass through Customs and Immigration. This is time-consuming and tedious"

The history behind this isn't as simple as politics. Many US airports have evolved without the physical separation between local and international departures areas. So all of the airport is "in" the US. That makes perfect sense given the geography involved. The bulk of US flights are local. Even with Canadian flights it is normal to clear US customs and immigration within Canada prior to boarding the flight to the US. So, rather than politics or protectionism, there simply was no practical need for separate terminals. Starting from that history, it is far easier to screen all passengers as they land rather than retroactively divide an airport into zones.

LAX is notable for having separate local and international terminals, but iirc everyone is still screened on landing.
I was under the impression that international flights connecting through the US put travellers in what is technically international territory, and doesn't involve any of the difficulty associated with entering the country. Is this no longer the case?
Apple loses bid to undo $440M judgment in VirnetX patent case
I agree. You do have players like Kaiser that show success on vertical integrations, but that is a slow business.

The core key to achieve this is to separate insurance from the employer, and make health services truly compete with each other. Most people would probably end up with High deductible plans, and they will be very price sensitive to basic care costs.
the question doesn't just have to be about politics. If you're talking about a person but you don't know if they're male or female, what do you call them?
What bothers me most about critiques of the Enlightenment is the critics usually fail to convincingly answer the following:

1) Was it better than what preceded it (e.g. the divine right of kings?

2) In what way(s) are the ideas that followed an improvement?
Well considering the problems caused by human overpopulation, I think we need to release enough tigers to eat about 100million humans a year.
And why should I trust CF any more than I trust my ISP? The latter is a European company which is bound by all kinds of privacy protection laws, and which I have to trust to at least some degree because I pay them. The former is an entity which is largely unknown to anyone who isn't tech savvy.
English at least applies gendered pronouns primarily to living things that have a sex. There are odd exceptions that don't matter much. Sailors will refer to their boats as female.

You look at something like german and dogs (Hund) are neuter, unless you use a female version (Hundin). Boys (Jünge) are male. Girls(Mädchen) are neuter. Fork(Gabel) is female.
We are talking about a company that made electrical vehicules economically realistic in a oil-addidcted world.

I think it's safe to think they have considered that already :)

Would you say it's unlikely they just maxed out what they can do internally and want new eyes to work on it ?
I'm worried about this development.

One the one hand, ubiquitous encryption is simply required for security on the internet. Things like lets encrypt and warning on http are great improvements.

On the other hand, the owner of a network has some right to look into the packets on that network. Especially if the owner of the network also owns the end-points of that traffic.
My main use-case here isn't corporate networks, snooping there makes me uncomfortable.

Really, my issue is stuff on my own network. I want to see what my TV sends home. Same with an amazon-echo, or really any IoT thing. Yet, if they all use SSL and don't allow me to add a root CA, I can't look at what they run.

A user has no control over an amazon echo. You can't modify the software because the bootloader is locked down. You can't inspect the traffic because it is SSL cert-pinned. Amazon can push updates to it at any time.
All a user gets to do is decide whether it is turned on, and whether it gets a network connection.

Really, what I would want to see is the option to install a CA cert on any device I own.
At the same time, that is a terrible idea. Every 14 year old with google is going to find some stack-overflow answer that'll tell them to MitM their TV to do some simple thing.
Deep packet inspection seems to be alive and well, even outside of corporate networks.

My ISP uses the User-Agent header in outgoing requests to guess how many computing devices I have at home, and tries to charge money if it's more than an undisclosed limit. This of course only works for plain HTTP, but there are still enough unencrypted sites out there that my ISP has an opportunity to intercept a request at least a couple of times a day.

Meanwhile, my country is just beginning to roll out a system that detects the SNI hostname in encrypted connections, in order to block illegal sites that hide behind Cloudflare. Fortunately they can't spoof certificates on the public internet, so users just get a connection error. Too bad Cloudflare supports ESNI now ;)
Mars is a better space body for a colony. I suggest reading "A case for Mars" by Robert Zubrin.
I feel like it's to explicitly allow b-roll for media.
Alphabet's Loon forms advisory board to score internet balloon deals
Recently I was sent a blackmail email that contained a password that I used to use in the past and the sender was claiming that they had also gained to my laptop's camera and had recordings of me watching porn or other "embarrassing" stuff. They threatened to send these recordings to my contacts on email and/or facebook etc, unless I paid them $1082 in bitcoins (apparently they read that if you ask for a non-round number you have more chances of getting it :P).

Covering your camera is supposed to protect you from this kind of things, especially for younger ages or for people less technologically inclined.
Where do you fall on autonomous cars? It’s okay to be anti. I’m just curious
>>The biggest risk is Javascript. You are literally blindly executing code somebody else wrote on your compute for a website you may or may not trust.

I understand why you used this language, but I think it's worth noting that, unlike blindly executing a program on the operating system itself (such as by running an .exe file you receive via email, torrent, download, etc.), you are executing a script inside a program that is, or should be, sandboxed. So, even though something can still go wrong, the potential impact is a lot smaller.
Reminds me of the 90s when there was a plethora of independent net radio stations. We ran a icecast server at work (in the 90s) with a multiperson playlist, the test lab had speakers so it would be the same music playing in my office an the lab. Fun stuff.
American Express Acquires Japan’s Pocket Concierge
1 May 2018:

"Soccer Pools is being AXED after paying out a $1.49 million prize because it was the least popular lottery game in Australia"

https://www.dailymail.co.uk/news/article-5677449/Soccer-Pool...

Also: https://en.wikipedia.org/wiki/Lotteries_in_Australia#Soccer_...
That's never been the case. US airports do not have sterile international zones.
Arguably the Gettier example of the cow falls into the same realm. Cows move, eat grass and go 'Moo. Did the observer see it do these things, or just go on the silhouette? Then they were not rigorous enough to have a justified belief.

But then we can get back to a better Gettier case if we suppose that Boston Dynamics happens to be testing their new Robo-Cow military infiltration unit in the field at the time.
Surprisingly reasonable & well written.

I wonder who wrote this, sounds like a person with extensive experience with contractors that sell themselves as 'agile' but really have no idea what the term even means.

EDIT: These actually seem like great questions to ask at an interview to a potential employer
Out of curiosity, which library are you referring to?
Or wget.
How does it work and how is it different from the usual webcam cover?
C++ : if constexpr isn't broken
> Are you objecting to “our” on the grounds that we didn’t build it

I'm objecting that we own the Earth and that somehow we can kill it.

> people use “our house” to mean the one they occupy, not limiting it to only what they built

The Earth isn't being occupied by us, we are simply part of the Earth. So I don't mind the use of "our", but implying that we are killing the planet is the bit I think people should take a step back from and think about.
Ways to Calculate a Running Total with SQL
Using the kardashev scale, we aren't even a level 1 civilization and nowhere close to be an advanced one.

We might destroy the ecosystem and ourselves because we reach the first level of the kardashev scale.

It's simply human hubris to think we are an advanced civilization and our pride may be our downfall.
DNA in its somatic state is a a 3-dimensional dynamical system. Not only does the 3-dimensional structure of DNA change with time, but in some cases, the very encoding of the DNA itself. Can you produce a simple state machine than can replicate that kind of behavior. You are aware that how DNA, transcription, translation, and cellular behavior work are still areas where we only understand the barest mechanisms (although we do know quite a lot), in an incredibly few number of systems where we know these mechanisms to exist, yes?

Based on my reading of your comment it seems like you would consider cellular behavior to be a kind of linear program, which really only shows a fundamental lack of understanding of the nature of the system and biology.