skysight-inc/HackerNews huggingface dataset:
Don't forget, however, that for the exact same excuse, the NSA approached american companies who complied with voluntary backdoors for years, until someone betrayed and exiled to Russia.

Not saying both are right, just that this is done from New Zealand to Finland, and it's not very easy to understand why we in Hong Kong are suddenly oppressed by that.
A lot of pimps are women. Underage girls from smaller towns are attractive to pimps because they are greedy and naive and fall for the scam of modelling in a big city. And they can also be easily separated from their otherwise conservative parents or bullied. This is pretty much the entire scam of the porn industry and modelling industry and by extension hollywood and the music industry.

Sexually inexperienced or frustrated "tricks" will gawk at the first model they see and will pay a lot of money for a date. This includes a lot of tech/finance folks.
It can easily be argued that a lot of these services are a net negative and it would have been better for everyone if they never got off the ground in the first place.
At one time, I think that Steve Jobs wanted Java to be a native language for Apple development, but it ended up getting sidelined by Objective-C.

Developers had a difficult time, adjusting to ObjC. It’s very different from C, whereas Java was familiar to almost everyone.
I agree to a small extent, but this is very field dependent.

Social sciences, where you're taking a bunch of data and running a Python, R, or Julia script against it? Sure. Require the PI to archive the data (or anonymized version where PII is an issue) along with the script and a quick description of the method.

When you cross over to more STEM oriented fields, tacit knowledge (e.g., the 'experience' or stuff you pick up from your colleagues) becomes much more important. Reproducibility is still important, but you can only expect the PI to provide so much knowledge before it becomes untenable.
Property based testing would blow this persons mind, so many of these issues are resolved by them.
You can find the other 3 articles here:

https://www.brainstobytes.com/db-replication-i-introduction-...

https://www.brainstobytes.com/db-replication-iii-replication...

https://www.brainstobytes.com/db-replication-iv-replication-...
I guess we're back to 'All are equal, but some are equaler.' then.
Tesco coupons easily faked to save £750 on Hotels.com bookings worldwide
You folks do realise that in every nation, Media is a protected industry? Just like finance and telecoms?

It's practiced everywhere, especially China.

Why do you think there is no 'CNN China?' or 'Disney China - Digital Entertainment China?' Or that China only allows X number of Hollywood films every year of course, subject to censorship? [1]

Or that Canada has rules over media ownership and content [2]

What do you think would happen if China tried to buy the 5 largest American Banks or Telecoms? Or visa versa?

TikTok is a media company, it should be treated as such.

If China wants to buy/promote a media company in the US, partly as a means to advocate CCP propaganda, then it can be subject to controls.

And FYI the conversation is moot from a trade perspective, since China wouldn't allow any such thing remotely to happen over there, there's simply no reason to allow it here.

And of course Google, Facebook, Twitter, WhatsApp, Snapchat etc. etc. are all banned in China, why on earth the US allows Chinese social media companies in America? Purely from a trade perspective makes utterly no sense.

The US should fairly and simply enact China's own media policies for foreign apps tit-for-tat: straight up bans, censorship, rules on ownership, make it impossible for them to compete. That would be fair.

When China wants to allow Snapchat unfettered access to China, then possibly TikTok can have unfettered access to the US.

[1] https://en.wikipedia.org/wiki/Film_censorship_in_China

[2] https://en.wikipedia.org/wiki/Canadian_content#:~:text=For%2....
Big Tech Loves Big Oil
It's also fascinating how many people back then had almost no background in computer science. Many had al sorts of weird backgrounds, they just found computers interesting and feel into different roles and learn everything they need on their own.
Yet another blatant marketing piece in the frontpage. I wonder if the pro-adblock HN crowd is becoming more open to these things.
There are a lot of dark patterns. The most common stuff I am seeing (and its basically everwhere) are:

1) Accept being brightly coloured and decline as white so its less prominent.

2) Having accept all be a simple thing but decline being a more information that requires turn lots of individual things off.

3) Requiring the decline to be individual across hundreds of individual cookies.

4) Clicking accept all is stored and used forever but decline is asked everytime you come back to the website.

5) Having the decline process take minutes to complete as if significant processing is required.

6) Having the default be acceptance.

I think breaches of GDPR are the normal, 95% of the websites I see these popups on is breaking the law in some way or another and at this point have been doing so for years.
Tired of boring playlist cover on Spotify? Get started with Coverify today
I thought most EDA companies put a stop to that with geographic licensing restrictions.
As a young person I was given "The Millennium Whole Earth Catalog" and, leaving aside the pornographic pages and creepy through-running comic that upset me, I didn't and to this day - despite just reading the Wikipedia page for Whole Earth Catalog - don't understand what it's FOR and what you're supposed to DO with it. "It's, you know, ecology mannn". Am I supposed to order products from it? Hippy solipsism.
The lengths some people go to for religion... smh
While it is true that the author is saying, tests provide a mechanism to check if your code behaves in a different way than before if some tests suddenly stop working. That is different than a proof that you software doesn't contain bugs.

I would love to have a decent solutions for unit tests on embedded systems with "bare-metal" firmware. There are some approaches, but the situation is certainly not optimal.
They are quite radioactive for a household item indeed. The dust is a good point I keep that one double bagged for that reason, although they aren't as fragile when they're new.
Thank you. I've forgotten some of the terminology, since I haven't thought about real math in a few years. :(
The things that serve the slack gui over the browser.
There is nothing wrong with having a computer running on Shabbat if it is scheduled before Shabbat. (If you are worried about electricity generated on Shabbat by a Jew, use AWS ect that isn't in Israel)
And some of the sites it links don't appear to be very "kosher".
There's a rumor going around that a lot of published economic results the 1990's are invalid because of an issue in an old version of STATA (or a STATA plugin, idk).

Whether it's true or not, I don't know, but it wouldn't surprise me.
The payment processing overhead has nothing to do with rules and everything to do with Mastercard and Visa having decided to not compete on fees.
Better: it's a way to pull it away from a money-losing market without spooking investors: "Oh it's not that we failed in a Chinese city, it's that new law you know"...

It's absolutely ridiculous a Chinese company would be the first to actually close down the service to protect users, don't you think ?
I'd argue that tests can also be a tool for improving your architecture (e.g. separation of concerns) and for communicating intend and usage.

Tests can be a tool for documenting expected behaviour, intended use, and edge cases. In contrast to written documentation, they have to be up-to-date by their very nature, which is an advantage over code comments or external docs.
How the Pandemic Has Tested Behavioral Science
Not all students are from countries with great internet access. If you're a Chinese student, you might not have access to many apps professors might assume you'd have access to. The living situation you go back to might not be conducive to studying. Time zone changes will pose a challenge for keeping jobs, maintaining friendships, and doing job networking.
Thanks for the compliment Peter, if I can inspire others like yourself to get building, I'm happy :)
You’re talking about integration tests, not unit tests. Unit tests should focus on a single method. Integration tests can combine methods/objects/APIs/etc for business rules.

Your best bet is a combination of unit tests, integration tests, and e2e tests (there’s some old advice about a 70/20/10 split but this is pretty arbitrary).
Ask HN: Are you optimizing your company for eventual IPO?
When you're working on developing your company, do you keep in mind you'll eventually make it a public company?
Do you have for example a checklist for this? Would you share it with us?
What happened to koogle? It used to be a thing now it’s a parked domain.
Snapchat Detection on iOS (2019)
The crucial difference between tests and implementations is that implementations have to satisfy all of the requirements at once, while tests can check a single thing at a time. As a simple example, if we need to test a 'sort' function for lists, we might write a whole bunch of tests like this:

"Sorting" should "preserve length" in {
forAll() { (l: List[Int]) => assert(sort(l).length == l.length) }
}

"Sorting" should "be idempotent" in {
forAll() { (l: List[Int]) => assert(sort(l) == sort(sort(l))) }

"Sorting" should "put elements in order" in {
forAll() { (l: List[Int]) =>
whenever(l.nonEmpty) {
sort(l).foldLeft((true, l.min))({
case ((result, max), elem) => (result && max <= elem, elem)
}) match {
case (result, max) => assert(result && max == l.max)
}
}
}
}

"Sorting" should "not change elements" in {
forAll() { (l: List[Int) => {
val sorted = sort(l)
assert(l.all(elem => sorted.contains(elem)))
assert(sorted.all(elem => l.contains(elem)))
}
}

Each of these tests can focus on one aspect of sorting and ignore everything else. Each on its own is not enough to give us confidence in the 'sort' function (e.g. the identity function would pass the idempotence test, the same-length test and the same-elements test; returning an empty list would pass the elements-in-order test; etc.), however together they are pretty good.

In contrast, we can't implement the 'sort' function in such a piecemeal way. It needs to take every requirement into account, in case a step which satisfies one requirement invalidates the others. That's also why writing a whole new implementation to test against is best seen as a last resort.
Do you work for Airbus?

Research, design, printing, assembly...it's all there in the article. I find it thought-provoking that an extremely complex machine can be represented in great detail with so mundane a material.

The re-creation of a 3D form from a non-rigid, non-ductile 2D material requires a surprising intuition for topology and projection.

Even if you just see this model as a low-tech knick-knack, I don't see what's pretentious about appreciating a model of one of the world's best-known aircraft, made of one of the most ubiquitous and accessible materials on earth. You could show this to a group of children in the countryside of a third-world country and they, too, would be amazed by it.

Nobody cares if you don't want to visit HN any more because you don't like the articles that are collectively upvoted here.
Not exactly. Trump and his base do not care about Universities, which are seen as "liberal." Universities becoming fully open does not help his base or the economy as a whole, and thus his re-election chances.

This is a move aimed at destabilizing or collapsing the higher educational system. If safety from the virus continues to be a concern (as seems likely for the foreseeable future), universities cannot just resume fully, no matter what. Caught between the Trump order and the virus, things will start going downhill.
Show HN: I built a programming language for beginners
That's a lot of effort to do nothing.

Does anyone know if there is some significance to it being calculated on Tuesday? Since Shabbat is from Friday to Saturday I would have picked Sunday or Monday.
Multiplayer Gaming Architecture and Design
Some people live their lives for the God of Abraham, Isaac and Jacob. Some live their lives for the gods capitalism. I'd say the former is a lot less pernicious.
This is not required for Judaism at all.
Hello. A few weeks ago, I had posted a very basic version of a programming language that I put together, called Dip. I was blown away by the kind and honest feedback given by the community, and have worked on it, adding examples of Dip code so users can get to know the language, adding a learning path for beginners so that they can learn how to code in a streamlined fashion, and also changing the site to match the language’s identity.

So now, I (re)introduce you to Dip, a small project I’ve been working on, which also happens to be a programming language targeting beginners. I’ve tried to make the syntax easy to understand, and also tried to make the language easy to read and write for complete beginners. I've tried to eliminate a few issues the Python language has (such as indentation and error messages), though it is up to you to see to what extent Dip succeeds. I’ve also tried to allow Dip to communicate with Python, so users are not limited to Dip’s features, because the way I see it, Dip is not meant to compete with Python, and does not aim to, but I think Dip’s simpler syntax and error messages might be useful to beginners in some cases and get them up the learning ladder, and I would love to see Dip being used as a stepping stone by the Python community, learning the ropes using Dip, and then moving on to Python.

You can look at Dip’s website at dip-lang.org.

I would love your feedback on how I could improve the language.

Also, if you wish to contribute to this small venture of mine, feel free to help me with the core language or the site on Github.
My comment is not asking anything of anyone. It's pointing out that trying to convince new PhDs, who might see the distortions in their field for what they are, that it's all in their mind and everything is OK, is only perpetuating the awful situation.

Anyway it's more complicated than what you make it sound. For instance, if you don't like the culture at Google, you have a choice to not work for Google. And if you don't like the culture in some field of research you also have the option to not join that field of research. For sure, you don't know _exactly_ what you're getting into before you get into academia, but students who are interested in doing a PhD already have some experience -often, substantial experience- of how things go and even of the behaviour of the professors they choose as their advisers, with whom they may have done a Master's project etc. Some have publishe papers, presented posters and joined conferences already from their Master's or degree. And so on. Very few people just stumble into a PhD by mistake.
They charge per byte and per request if I remember well, which can be really expensive for serving both small API call and large files.

Another limitation is that the ELB only works in AWS to AWS instances in the same location. Gotta use something else for geographic load balancing and for other datacenters.
I agree that it would massively help, but I don't think it would solve the entire problem. A lot of my interests online were cultivated as a kid where even a 10 cent charge would've made me click away. I'm sure it wouldn't have been an issue in highly developed countries, but it would've been a limiting factor for me.
In 3. It looks like anyone taking any in person classes will be allowed to take more than 3 credit hours online, not vice versa
Why ingress traffic to “the cloud” is free
Then why don't you go into competition with them and undercut them on fees, if the rules make it so easy? Why doesn't anybody?
I'd like to remind you and everyone else about Firefox reader mode. Solves like 99% of this user-enslaving shit.
It's not an axiom. We can see plenty of successful realizations of carousell pattern for touch screens. Most famous is Instagram stories
The latest trend in dark UI GDPR patterns is presenting an endless list of things that will track you.

It starts with "allow necessary cookies" enabled, and the rest disabled, and presents 3 buttons, a 2 small gray ones and a big green one, and unless you're REALLY careful, you'll end up accepting all cookies.

The text is something along the lines of "Cancel", "Save Changes", and finally the big green one is "Accept all cookies".

The trick here is that the small gray "save changes" button is actually the one you want, as the "accept all" effectively enables ALL cookies.
I tried your website Metomic and I really like the preview example! The preview, overlay, etc. is very well done.
You can always start with black box testing so you check that bit of the program matches some expected input/output pairs, and then add more white box integration tests if the code is important/fiddly. It’s an easy way to get some validation on a particular subset of the system for a small amount of effort.
I never understood the hangup on screen refreshes - I mean, why is it important that the screen doesn't refresh?

And if it's that important that EVERYBODY deploys JS to render client side to avoid the refreshes, why isn't this handled at the browser level in the first place (i.e. declare "ExtendDisplayTime"-something on your document and the browser should replace the screen content only AFTER the new page is completely painted).

But at the core of it, the web is a document-display system, and back-hammering and shoe-horning apps that masquerade as documents will always be painful.
You're trying to portray these requirements as transparent and easy but they are incredibly hard to be met by most people yeah, especially compared to the requirements for American Immigration system.

The only reason why America is hard to immigrate to is because far too many people in line ahead of you. You can immigrate to America without being educated, be able to speak English, to have ever worked anywhere.

I know a Canadian girl who wanted her American boyfriend to move to Canada but it was incredibly hard because of Canadian immigration process requirements, so instead she moved to the US.

The Canadian job requirement is essentially a prerequisite for anyone to be able to hire you in Canada because Canadians are very risk-averse (what other Canadians told me), there are stories and stories on quora about Indian immigrants getting 4-5 interviews in a day, the day they qualify for the tn1 Visa as opposed to essentially being unemployed during the time they were in Canada.

All the things your listing are paper requirements, but they don't match the reality, as I'm experiencing with trying to get my own brother to Canada.
https://github.com/google-research/google-research/commit/40...
As I commented elsewhere, this is really a move aimed at destabilizing the higher educational system. Trump and his base see do not care about Universities, which are seen as "liberal."

Universities cannot just resume fully as long as the virus keeps raging, no matter what. Caught between the Trump order and the virus, things will start going downhill.
Grades Are Grease
Palantir files for stock market listing
I'm not sure where you got the impression that the EU would have a problem with bio engineering. The European public in general is very critical of GMO in to-human products, but that's about where it ends. Almost all the crops grown in Europe have been bio engineered in some way, and GMO isn't even that rare as long as it's for animal consumption.

Maybe the fact that there isn't a market for GMO consumer products is where you got it mixed up? Hell even the worlds leading GMO company Monsanto is owned by a German company.
The government doesn't even have to ask ISPs to block things. Optus does it >for free.
I dunno, it sounds more like they just got caught with their pants down not finishing a migration to some new shiny.

Also looks like they do blue green but dont confirm the replacements are live before considering the greens new blue.
While I also preferred Windows 2000 once available, most likely he was using Windows 98 SE, I remember it being quite reliable as Windows goes, especially compared to the nightmare that was ME.

On install of Windows 98 SE I would always turn off Active Desktop and the fancy looking information left-hand side pane in Windows Explorer.

Both used IE to work and would just make everything feel really slow and sluggish. It's also possible that them being disabled improved system stability.
> You need to be quite confident to do this as it can often result in car drivers honking, shouting or overtaking recklessly and nearly clipping you.

Actually, the opposite is true. When you ride in the center of the lane, motorists will typically make a full lane change to pass you. If you ride near the edge of the lane, motorists will try to squeeze between you and the lane line.

A full lane change definitely allows for more distance between the cyclist and motorist.
Just checked spaCy's NER demo and it seems to be working fine now. :)
Really dislike these things. Hoping that we eventually get a good browser extension that handles them automatically.
Twitter had hashtag #labswithoutvisas going on few weeks back where some professors have posted images of what their labs would look like without people on visas [1]. And this would be true for way more labs than what you will see on twitter. Most likely within couple of years, number of research papers coming from US would decline drastically.

[1] https://twitter.com/hashtag/labswithoutvisas

[sarcasm]
Oh wait! All these research positions can go to Americans now, damn those pesky Indian, Chinese, Korean... etc kids who have been snatching these opportunities from deserving Americans. I don't see why Americans won't fill in these positions and MAGA.
[/sarcasm]
I don't know why, but I find it absolutely hilarious, in a good way. It's such a weird thing to build, but it gives you that fuzzy old-school internet vibe.

It's awesome.
Thanks! This is the first proper breakdown I've seen.
U.S. Supreme Court bolsters law banning 'robocalls'
also if they stopped[1] sharing it indicates that they did so until now (including during the protests):

> And another one. Twitter just confirmed that it stopped all data and info requests from Hong Kong authorities as soon as Hong Kong’s national security law went into effect. That leaves Apple and Google...

What were they handing over last year when many protesters were relying on Facebook products for secure messaging?

[1] https://www.nytimes.com/2020/07/06/technology/tiktok-google-...
The article sounds very much like the author is writing tests after, so writing tests for the code already written.

I had very similar experience when writing tests after.

And it turned around completely when I started writing tests first.

Now the tests are not aiming at specific properties of the code, nor are they duplicating the thought patterns in the code. They are simply examples of what the code should do, and as such are documentation and formal/informal specification. Formal in that code is a formal system, informal in that they aren't actually trying to be a complete specification.

So if you're suffering the same symptoms as the author, I suggest you try test first, it's a world of difference.

(And of course all the comments about safety for refactoring, programming over time etc.)
using ad ad blocker
hmm, and here i was thinking that the Shabbat is to disconnect and unwind... you know get away from the constant notifications and such.
The 9% is probably people trying to opt out by selecting the minimum amount of cookies and hitting the big green "Accept all cookies" button instead of the small gray "save changes" button.