skysight-inc/HackerNews huggingface dataset:
Yes I've suffered the same - farsightedness making it hard to focus literally and a slight astigmatism where one eye focuses a little better than the other combine to increase fatigue and make prolonged writing very difficult

With glasses my whole mind relaxes and I can settle right into the zone
It was a client side thing, I did not used recent version of React but at that time from my memory the abstraction was not perfect, you had the idea that you have some html then your render function generates some new html and react using magic updates the old with the new. What was missing is the focus is not html (probably the same for selection and other document properties) so you could have problems and you had to understand what is happening under the abstraction.

From my experience though are bad abstraction that are not consistent, like we had a web project working untouched in 1 full year and some feature stopped working one day (nobody touched anything) but I could not reproduce it on my machine. I still have no idea what triggered it but the problem was that for some reason the PHP autoloader "searching" found a different file then before (maybe it was some caching/filesystem or other low level update on the VPS that triggered this)... anyway I had to read the code and understand how the magic happens so I can elucidate the bug.
In a React codebase, for example, I can look at the imports and see immediately where everything in play in that file came from. In real production codebases this is invaluable.
I don’t think it’s just German. When I started learning Russian, 95% of what I was taught was on вы (plural/formal you). When you’re a beginner you really lean on stock phrases and bits you learned in class, so when I moved to Kharkov everything I said was formal for about six months. It took a year before I really stopped speaking to children or pets formally. It makes sense I guess, if you’re not sure formal is probably safer than informal (although speaking to someone formally when you should be speaking informally can also be insulting.)

It’s not just knowing when to use formal/informal - native speakers often forget this but in languages with verbs that conjugate, a beginner learner may not be as good with the Du conjugations as they are with Sie. Again, when you are just starting with the language or you’re not confident you lean on repeating things you’ve learned and if you were taught Sie then that’s what you do.
> The car is indeed longer than the spaces are large

Assuming your native language is French, I think you mean “wide”, not “large”.
Why is this? Is there a brain drain going on?
I mean, how does one solve a problem with unknowns? You try different things until you make some progress and work from there. Turns out he didn't have to do more than registering the domain but just because the problem turned out to be simple to resolve, doesn't make solving it an accident.
His goal was to kill the malware. Registering the (unclaimed) domain in the binary was supposed to be step 0 to this. Such a domain would almost certainly act as a control center of some sort. You can claim it while it's still available and analyze the malware or even just the traffic reaching your domain to try and neuter it. Even if there's no killswitch, maybe sending invalid data will cause the malware to malfunction and effectively stop its spread for example.

The fact that just registering the domain killed WannaCry wasn't expected, but his intent was to kill the virus from the start, that's no accident.
Show HN: String Similarity Comparison in Google Sheets
Hi HN,

With the following function, you can compare the semantic of two strings in Google Sheet. It is essentially a wrapper around the Universal Sentence Encoder [1].

It will encode two sentences and return the cosine similarity between the two embeddings. It works with English, and 15 other languages. It can compare two sentences even if they are in different languages.

For example: SIMILARITY("Hacker News is a social news website focusing on computer science and entrepreneurship", "Hacker News est un site d'actualités sociales axé sur l'informatique et l'entrepreneuriat") returns 0.88
While SIMILARITY("Hacker News is a social news website focusing on computer science and entrepreneurship", "The site was created by Paul Graham in February 2007") returns 0.17.

I initially built it to align instructions in two different languages, and figured it could be useful for other people as well.

To load it into Google Sheets, you can open a Sheet, click on "Tools", "Script Editor" and copy paste the function. It should now be available within the Sheet.

Let me know what you do with it :-)

Maxime.

/**
* Multilingual semantic similarity between two string based on Google's Universal Sentence Encoder and cosine similarity.
*
* @param {string} str_1 The first text.
* @param {string} str_2 The second text.
* @return {float} Number between -1 and 1, where a number of 1 means the two texts are semantically similar.
* @customfunction
*/
function SIMILARITY(str_1, str_2) {
var data = {'str_1': str_1, 'str_2': str_2};
var options = {
'method' : 'post',
'contentType': 'application/json',
'payload' : JSON.stringify(data)
};
response = UrlFetchApp.fetch('https://neuralyst.io/string_similarity', options);
sim = JSON.parse(response.getContentText())
return sim["similarity"]
}

[1]: https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3
> Different strokes for different folks. If it worked out for you that's all that matters.

That sort of relativism is trite, specious, and insincere. If you don’t think it matters then why are you participating in the discussion?
Facebook is helping to set up a new pro-tech advocacy group
OK, very good point! My view of the upside is:

Yes, typically this is a well paid position that is acquired based on a track record of success in the organization, as it’s predicated on being finely in-tune with that organization’s specific needs more so than generic industry expertise or certification (though those help!). You tend to earn the position more often than be hired into it.

The above lends to the role having higher job security than rank-and-file engineers.

Similarly, your skills deepen and mature over time and are less at risk of becoming obsoleted by a new technology trend.

If you do it right you’ll be treated with a great deal of respect and admiration.

You get to take genuine credit for the success of the organization.

You are likely to have a great degree of autonomy in how you work.

It’s a challenge no doubt, but if you can do it, you are in Maslow’s self-actualization zone.
Lasers garage lab and physics to the core
I love those kinds of movies. It's a Disaster (2012) is a good watch.
> people working on similar stuff are physically proximate to one another in their workspace, and can get feedback on an idea they are working on now instantly from knowledgeable coworkers

Yeah, but the issue people arguing against open-space have, myself included, is that we explicitly don't want to have these interactions, at least not in unstructured form - because your request for feedback from me "now instantly" is actively preventing me from getting my work done.
I think programmers focus on aspects of the program - like memory optimisation, speed, accuracy, correct data processing, storage, database optimisation, etc.
Good software engineers focus on aspects of the system as a whole - like the technology with the best memory optimisation, fastest filesystem, most suitable database, etc.

Engineers look at the big picture as a whole, programmers make sure the detailed aspects of it are working in the best possible manner.

For example, a good programmer will tell you to never use nested for loops, but an engineer may go for it nevertheless, if he feels that there is not much difference in the speed and memory consumption. He will make some tradeoffs depending on different factors.
Art of Computer Programming. Just as a book(s), it is a great book. I'm always a bit puzzled by the degree to which it's intended audience seems to avoid reading it.
As far as I know the French government used a riot fork for their users but the changes are getting upstreamed. I think its not unrealistic that the Bundeswehr will go a similar way
Any fields that have anything to do with video, image, audio, games, machine learning.

Just to have a taste of use cases: compression, filters(image filters for de-noising, HP & LP filters for audio), encoding/decoding, computer vision techniques, cryptography, neural nets, computer graphics (this is where most people learn how to use it in real computer programs)
It's almost, but not quite entirely unlike HN

> We switched from MongoDB to thousands of Chinese children forced to memorize numbers, and you should too! (medium.com)
It's complicated: https://en.wikipedia.org/wiki/Microsoft_Corp._v._United_Stat...

There are absolutely companies who won't use Amazon due to concerns over things like that.
Certain things are so true they're tautological.

Science is observational. It doesn't give us rules we must follow, it describes the behaviour of things in the universe.

So if someone* says, "People do selfish things, that's science," true!

But if they also say, "Therefore, it's ok to kill your neighbour and take their house, see all of recorded history, colonialism, &c." I stop them. Science teaches us that people kill each other and take their land.

But science also teaches us that people coöperate and build rockets to Mars. Science is not prescriptive, and with respect to morality and ethics, science teaches us that there are many different strategies that people use to accomplish their goals, some of which may result in the replication of the information encoded in their genes.

Selfishness "Just is?" Yes.

Therefore "______ is ok and we must accept it?" No.

---

* I am not putting these words in your mouth or arguing with you, just picking up where your statement left off.
olfactory - we had a guy once with a food odor problem. HR had to step in.
I had a great office layout which was a large room with 10-25 developers and managers as the team grew. The key factors which made the office work well was: plenty of space per developer (L shaped desk about 8x8ft), generally courteous noise levels, and a a few other rooms for louder work or larger conversations (meeting room, lab, extra rooms).

Collaboration was great which was important for a new project. I think for an existing long running project less collaboration may be necessary and extra separation may be better for productivity.
Just don't respond to him?

You made your statement here, you can defend your statement here.
The same concept applies in 2D, which might help you build the intuition to understand it in 3D.

If you have a vector v=(1,0) that points to the right, you can scale this vector infinitely in that direction by multiplying it by a positive scalar.

5v = (5,0)

62.1v = (62.1,0)

Similarly, you can scale that vector infinitely in the opposite direction (i.e. left) by multiplying it by a negative scalar:

-987v = (-987,0)

If we call this scalar c, the expression cv allows us to represent any point along the X axis simply by varying c, meaning that cv defines a line along that axis.

Similarly, we can do the same for a vector w=(0,1) along the Y axis, scaling it by d.

Now we have a method for moving to any point on the XY plane simply by varying c and d in the linear combination: cv + dw, meaning that we've defined a plane using two vectors.

Two caveats:

- this won't work if v and w are parallel; for example, if v = -w (and neither are zero) then we can only move along a line instead of a plane

- it also won't work if either of the vectors are zero, because no matter what you multiply by, a zero vector can only represent a single point
That sounds incredibly dystopian. I hate it.
i totally agree. most of innovation is "i wonder if..." and then you do something and see what happens. him registering the domain was based on research, it killing wanacry was based on research and a bit of luck, just like most things
You drew a false dichotomy. As I noted, they learn the theory better too, just not by reading theory. I don't teach a vocational class, I teach project-based learning.
Great suggestion. This is one of my favorite books, and I enjoyed it more than Atlas Shrugged because I found it a bit more subtle.

Rand has a very distinct philosophy and is quite black-and-white, but even if you don't agree with everything hopefully you can appreciate the writing and storytelling in The Fountainhead (and others). It seems that a lot of the discussion about Rand is focused on her philosophy and if it's right or wrong. This is probably justified but also obscures the fact that she was a master at writing.

I read this book in my early 20s and loved it. Even though I've become much more liberal on many issues (proponent of universal healthcare, tax-payer paid higher ed, etc.) I can still appreciate the themes in her work.

Also just finished Anthem last night- I recommend checking it out. Super short but really gripping read.
A lot of the comments below indicate that that the Du/Sie distinction is something old fashioned and young people don't do this anymore. This is arguably false. Even though it might not be at the same level as it was 70 or 80 years ago, this distinction is still very much part of the German language and society.

With people my age I would probably always use the informal Du, but only in informal situations. In case of formal interactions, as part of a business transaction, etc. I would probably always go to the Sie if I didn't know the person and would expect the same in reverse. Anything else would probably be perceived as lacking respect. English doesn't have anything equivalent except maybe first name/last name basis, so it's always hard to explain to Americans.

Of course, as a foreigner things are always less strict and one gets some slack for not speaking the language perfectly.
Faster and more flexible pipelines with a Directed Acyclic Graph
Seconded, I’m doing this as well with airflow and EMR. Instance fleets makes the fallback logic to on-demand instances super easy (you set the price + time allowed for trying spot and then the on-demand instances you want to fall back to).
Yup: https://www.wired.com/2012/05/google-wifi-fcc-investigation/
Right, it would not and presumably does not work universally. Hopefully it works on a great enough majority to be useful.
Yes, the firmware had been configured for open logging and was slurping the packets and dumping them to a debug file.
Nice work! Is the orange outline on the left/right carousel (once you click, near "gradient controls") meant to be there? See: https://imgur.com/a/bEawxZz
There are a lot of companies that do this type of vehicle modification for you. It's common for a lot of professional-use vehicles also in construction / utility network maintenance etc.

As others said, the roof is fine. The suspension is quite easy to adjust a bit for the extra weight and that helps also in stability due to the weight being high-up. For vehicles commonly used in these kinds of things there are higher rated alternators and batteries that are drop-in replacements for the standard one.
Show HN: The Monty Hall Problem in JavaScript
Sure, Google or Microsoft might look at your stuff aswell - but why would they? Neither of them are in retail so they aren't competitors. If you're developing a new search engine that rivals Google, yeah, I wouldn't host that on Google's infrastructure. Have a serious contender for Microsoft's money cows? Maybe not put your code and issue tracking on GitHub.
That's not why every single recipe site has these stupid blurbs... it's that Google wants unique prose on the page in order to rank it highly on SERPs
IMO, the cartridges saved the N64; they were a differentiating feature with their own set of pros and cons (the big pro being the lack of loading times that plagued CD-based consoles, and the big cons being the limited capacity and high unit cost).

Besides, in terms of longevity, I feel like the cartridges I've got lying around have aged a lot better than the scratched-to-hell-and-back discs I've similarly got lying around.
Hetzner is a cloud, as per their own literature but my point being if you buy Hetzner you’re not getting a complete platform. You are buying into a platform just less of one. Hetzner also advertises themselves as thrifty, not exactly instilling confidence for critical infrastructures. My point remains though, buying a VPS is equivalent to an EC2 and this is not how things are built these days. Also note the posters name is WilliamEdwards, I know if you called me a she (I’m a he) it would be very offensive to me. It’s best to use gender neutral or pay attention to sex/identity if possible (not really here) and use the correct pronoun.
I'm a huge fan of Mr Puckette. I don't particularly like PD or Max (or the limitations of the LOM) either, but I love the fact that he's aware of the criticisms and even agrees with them, and has spent a lot of time thinking about how to solve these problems.

Music turns out to be an incredibly hard problem. It's easy to make superficial but limited tools that do maybe 50% of the job to make boring 50% music. But the kind of general score management he talks about is still an unsolved problem - far more challenging in its way than DSP audio synthesis.
Where do you find numbers like that? It would be interesting to see other companies.
Should be. The salary disparity in US and EU is immense.
Git Internal Architecture
Iyashikei: Japan’s Genre of “Healing Games” (2018)
> the coronavirus response is close to war-time level focus.

Which is strange, because coronavirus primarily impacts the elderly and those with higher risk factors, and the death rate increase is only slightly above the death rate floor, while climate change impacts all 7 billion+ world citizens, which will be closer to 10 billion by 2100.
As a user of Julia for 2-3 years, is there any guidance for someone looking to help with the compiler?
MSSQL does this with a two pronged approach.

If a dead record is encountered in a scan, it is queued up to cleaned up by a background task, that runs every 5 seconds. This typically happens soon enough that the record is still cached, so no extra read I/O is needed, and in any case the location of the record is already known, so no extra scans are needed.

To handle other records, it maintains a bitmap of pages with ghost records. Each time it is awakened, it cleans up the queue, and then does up to 10 pages indicated in the bitmap. Then it goes back to sleep, and only wakes up again 5 seconds later.

This super slow cleanup of dead records that have not been recently scanned helps to avoid overloading the system, but does ensure cleanup will eventually occur, even if the table never gets scanned.

Pedantic note: (Technically it is a bytemap, as the bit is part of a larger structure, that holds other flags about a page.)
Junkie - The definitive text of junk.
You know the game and the meta game better in your own country. Plus, there is nationalism, solidarity, proximity, proudness, language barrier, favoritism, etc. that all enter in consideration.
I don't know about the street view cars, but the waymo vehicles have cooling and power run through the pillars to the camera, because the camera has to be cooled.

This information was disseminated to fire departments so that if rescuers have to cut somebody out of one of waymo's cars, they don't accidentally cut through a pressurized coolant line.
Thanks! Nope, it's not. And I've never seen it before so I don't know where it could come from. What browser are you using?
Show HN: Writing for Software Developers
This sounds reasonable and it is also surprisingly similar to the past of education, e.g. apprenticeships in guilds.
> tl;dr: Censorship resistance is a feature, not a bug. Names are registered for a year at a time. Existing TLDs and the top 100,000 Alexa websites are reserved for existing DNS registrants.

This doesn't make it any less incompatible with many countries law system.

And yes sadly this means that systems compatible with most countries law are also prone to corruption by secret service/government order. Even if you are limiting it to "democratic western" countries.

Through it's at least worth a try as law can be changed and as long as it doesn't come closer to replacing the current system as main solution it likely to be tolerated giving it time to convince people to allow the change.
Piece includes thoughts from:

- Chen Zhiwu, Director of the Asia Global Institute, economics professor at the University of Hong Kong, and a former adviser to China’s cabinet

- James Galbraith, Professor of government at the University of Texas

- Stephen Jen, former economist at the International Monetary Fund and Morgan Stanley who now runs Eurizon SLJ Capital, a hedge fund and advisory firm

- Kathy Matsui, Chief Japan equity strategist at Goldman Sachs Group Inc.

- Ray Dalio, Founder and co-chief investment officer of Bridgewater Associates

- Alan Patricof, Venture capitalist and managing director of Greycroft who helped build and grow companies including Office Depot, Apple, and Audible

- Mike Corbat, Chief executive officer of Citigroup Inc.

- Susan Lyne, Managing partner at BBG Ventures

- Joe Lonsdale, Partner at 8VC and co-founder of Palantir

- Peter Gleysteen, CEO of AGL Credit Management

- Bill Stromberg, Chairman and CEO of T. Rowe Price Group Inc.

- James Gorman, CEO of Morgan Stanley

- Jim Chanos, Founder of Kynikos Associates

- Sam Zell, Founder of Equity Group Investments
if you're in Bangkok
try the chicken from
https://www.instagram.com/phonjaroen/ behind the Thai boxing stadium.