skysight-inc/HackerNews huggingface dataset:
You do list quite a few allegations against protestors. Let me remind you that the level of police brutality is unprecedented during this 86 days.[1] All these events have made meeting the five demands becoming the least HKSAR govt. aka CCP can do to calm the society down. Asking Hongkongers to take it as is now is not constructive and to some degree immature. I urge the govt please grow up and take responsibility.

[1]: https://en.wikipedia.org/wiki/Allegations_of_Hong_Kong_Polic...
Assemblyscript targets webassembly, while Static Typescript is designed for ARM microcontrollers. The main sell for static typescript seems to be that it provides a compiler, linker, and SDK for arduino-alikes that can be hosted on a client-side webapp for easy cross-platform distribution
Ask HN: Best software to recover deleted files from old drives?
I found my old laptop from college in the attic (Windows 2000) and wanted to run a recovery tool on it to see what I can find. The software I see when searching all looks very...questionable. Does anybody have a good recommendation? Ideally something that I could run from my Linux machine now but I’m open best recommendations for Windows.
FIPS ready with curl
Yes, you don’t hear the hundred or two times they start correctly, as they typically are tested quarterly to monthly. A good test is where you island the datacenter (run it only off the generators) so you can also make sure all the switchgear works.
Hey HN, I work at MSFT on MakeCode.com [5] which is the primary user of Static TypeScript. Happy to answer questions. Michal and others who worked on STS more directly will probably be online in a couple hours.

One important clarification:
So far STS has been built specifically to target microcontrollers/MCUs. Initially it was targeted at the BBC micro:bit [0] for educational purposes and has since grown to support many more targets ([1],[2],[3],[4],[5]). The other dominant languages in this space are MicroPython and the AVR/Arduino language. The advantages of STS are beginner friendliness (makecode is a CS EDU platform), low-memory, small size and performance (relative to MicroPython). It's worth noting that in general STS is NOT faster than running JS in V8.

How does it compare to MicroPython?

- Error reporting: Because STS is statically typed and compiled, most program errors are caught in the editor before the program is loaded on the device. Furthermore, STS comes with a simulator that runs in the browser and so programs can be tested there before they run on hardware. For educational purposes, we found diagnosing issues on hardware to be really hard for students, so we try to catch and present errors as early as possible.

- Performance: [3] is the best example of this. Usually we notice STS is ~10x faster than uPython while having a smaller flash and memory footprint. This makes running a game loop at 30FPS feasible on a 120x160 display (e.g. this [6] $25 device).

How does it compare to AVR/Arduino/C/C++?

- Modern language: STS, like TypeScript, heavily uses type inference, supports advanced types constructs like algebraic types (i.e. sum/union and product/tuples), supports ducktyping, has easy to use lambdas, has a light-weight syntax, and favors event-based programming.

- Teachability: Because of the heavy use of type inference, most beginner programs have no type annotations and it looks just like Javascript. So we essentially teach JS to users after they want to move on from blocks.

- In general STS is not faster or smaller than AVR code!

Happy to answer other questions!

[0] https://makecode.microbit.org

[1] https://makecode.adafruit.com

[2] https://maker.makecode.com

[3] https://arcade.makecode.com

[4] https://makecode.mindstorms.com

[5] https://makecode.com

[6] https://www.adafruit.com/product/3939
"somebody looking over your shoulder" can see a lot more than you ads, like your private messages, bank info, medical info, etc.
Their "Trusted Root Catalog" is a total fiasco as well. They were one of the AWS IoT launch partners and they apparently repeatedly failed to including AWS root authorities in their catalog. They were responsive in acknowledging, but typically took a month plus to actually update the SDK, (released quarterly,) to address it.

https://e2e.ti.com/support/wireless-connectivity/wifi/f/968/...

They did finally provide a method to use a custom root CA for SSL a year later, https://e2e.ti.com/support/wireless-connectivity/wifi/f/968/....

They seemingly failed to comprehend why anyone would not want to use TI's chain of trust, that is not manufacturer customizable, on proprietary IoT devices. This was explicitly an issue for code signing as well, as it required obtaining a third-party code signing certificate from any number of CA's instead of using our explicit root CA.

[edit] spelling, clarity
Another alternative is patreon. Remove all ads on your site other than ones to your crowdfunding page. Users are happy, the site makes money in proportion to it's quality.
> YouTube earned millions of dollars by then using this information to target ads to the children, according to the complaint.

How many millions?

Because if it's $500m then I'm going to pissed off because Google's just going to consider the fine a cost of doing business and continue about their merry way.

But if they only made, like, $2m from this information, then the fine seems like a legitimate tool to stop this sort of shitty behavior.
There's another dish made from manioc leaves in Amazon region called Maniçoba and I have a hard time understanding how it exists. https://en.m.wikipedia.org/wiki/Mani%C3%A7oba

It's made by boiling the plant leaves a whole week to remove the toxins.

Doing it by on a stove today is extremely time consuming, imagine doing this in the middle of the forest with heavy rain falling every couple of hours.
Herbivores evolved to be able to deactivate it, or host other microorganisms able to deactivate it.

Carnivore stomach is short and very acid to be able to dissolve bones and horns. Most complex molecules wouldn't survive to be dipped in acid two times in two different stomachs and be taken in the intestine by the blood vessels later.

Terrestrial mammals are safe to eat normally if not rotten (not so much safe to kill them). Plants are unsafe to eat by default, except domesticated species and some wild species. Ripped fruits like 50/50, often safe to eat but not always.
I thought this was kinda neat so I taught a computer how to do it: https://github.com/lvh/regex-crossword/blob/master/src/lvh/r...

Right now, it works using a logic programming engine (core.logic, essentially miniKanren), generating a bunch of strings that match the regex, and then applying them as constraints.

If I were to improve it, I'd parse the regex, walk the parse tree, and assign constraints that way. (There's already a regex parser in there: that's how the string generation works.) That was my first thought, but that's more complex than what I want to tackle before work :)

Right now there's a bug where if e.g. a regex AB|CD will get applied character-wise, so it might erroneously try AC or BD. The way to fix that is to make sure the answers actually match the regex all the way at the end.

Using a constraint engine has the cool feature that it can show you multiple answers if they exist. (That's not true for my current implementation, because the string generation is randomized, so there's no guarantee it will visit each possible string.)

Someone else has pointed out that there are a lot of clues in the titles, e.g. that the answers are palindromes. That would be easy to add:

(map (fn [vars] (l/== vars (reverse vars))) (concat rows cols))

(Read: "for each row and col, create a constraint that the row/col must be equal to itself reversed".)
Can I just break down how ridiculous this sentence is?

> creating and keeping up

So, creating,

> a global surveillance-capitalism system

As opposed to just the regular old global surveillance system in place by Five Eyes and other governments' espionage agencies,

(funny how privacy advocates are more upset about Amazon knowing your secrets than the government, who have an actual incentive to use it against you),

> where billions of people are tracked,

Aka, global,

> stripped of their privacy

What would be the point of surveillance with privacy? A bit like a wet suit you wear in the desert

> and manipulated,

As in... they used the data?

> thus disrupting democracy and civic society

So we went from "Adidas is spying on people just like the government" to "democracy and civic society has been eroded".

No, Adidas knowing your favorite shoe style does not undermine democracy or civic society. Your government spying on the world, however, does. I suggest pointing your ire at the right target.
What Is Tribal Knowledge, and Why Should You Care?
Hatetris, then: https://qntm.org/files/hatetris/hatetris.html
Honest question: under which law? Does anything actually prohibit companies from employing people from going on forums and shilling? I think it's perfectly fine for the third party platform to have a policy forbidding this, but the government enforcing something like this would not be ok.
Top Django Concepts
The Remote Guide to Team Communication
China's cultural revolution occurred at a very different time geopolitically. Currently, China is attempting to establish itself as the new bipolar alternative to the United States.

This cascades into a lot of different things, but ultimately collapses down into trust. Just as the Cold War did.

Counterparties and potential allies are less likely to ally themselves with you, if they see you're intractable even with your own people. What does that say about how you would treat an ally or trading partner?

Furthermore, China is also attempting to integrate itself into the existing multinational trading and governance frameworks. That depends on votes from non-Chinese-controlled sovereign states. Being an international pariah makes that a lot more difficult.

Additionally (although somewhat tangentially), China would really like Taiwan back without having to invade it. It doesn't matter much in the global scheme of things, but it's been a splinter in the CCP's claim to legitimacy and supremacy ever since it was created as an independent government.

Oppressing Hong Kong makes peaceful Taiwanese reunification increasingly unlikely. On a decades / generations time-frame.
I've seen UK banks (to be fair not just banks even wireless service providers) charge for a phone call to their customer service number! (the equivalent of a U.S. toll-free service).
Yet another day, yet another incomplete and immature language comparison blog !

I really wish to see some mature blog post which in depth covers the merits of languages in comparison by writing a large enough and workable piece of code solving the identical problem and utilizing all features of individual languages in their specific codebase.

If the author would have been really unbiased about TypeScript he must have mentioned at least 2 (but not exhaustive) following things.

1. Advance TypeScript Types

https://www.typescriptlang.org/docs/handbook/advanced-types....

2. Number of existing JS libraries TypeScript already supports

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/mast...

Most people are just stuck with ES5 and callbacks. I have conducted many (about 12 so far) meetups here in India on new features of ES6/ES7/ES8 and using them to build small full-stack JS/TS assignment with TDD for various kind of senior devs coming from Go, Java, Scala, Python and Ruby.

Common reaction from them I receive very often "We never knew that JS/TS can do that"
Google earns money anyway
You can use a generic OSS bug bounty market place, eg. Bounty Source.

https://en.m.wikipedia.org/wiki/Open-source_bounty
Thanks for trying. I just tried, looks like working. Could you help me with your OS and firefox version, please.
Aha, my bad - though fair to say, it was born out of marketing and darn good marketing at that (worked on me).
Accelerator-Level Parallelism
I mean what did he expect? A 5 min resolution? 4 days sounds like a very reasonable investigation time to figure out why something complex failed.
This article is made worse by the opening hostilities.
For translation, you can set DuckDuckGo as your default search engine and then type !translate at the beginning (or end) of the URL bar. If you don't want to change your search engine, make a bookmark with the URL "https://translate.google.com/#view=home&op=translate&sl=auto... and the keyword "translate". Then you can just type "translate" before the URL and it will send you there.
I can attest to that as when you point of things like Google gets caught stealing IP from a MIT student they invited for an interview (a popular thread here on HN) it gets downvoted voraciously.

Either its employees, hired guns and or something...
Rant time..

Revenue and business impact are ALL that matter.

Good, clean, scaleable, and testable code only exist to rapidly support the above. The moment you choose tech value over buisness you are a risk not asset to a company.

I sware sometimes I see so many delusional software "engineers" who care more about building technically excellent systems that are either delivered late or dont solve a/the real problem... it disgusts me.
Quite from the top down your comment, but okay.

> Mozilla is not a democracy.

Obviously not, no. But as a user and a society we can still democratically decide how to handle companies and how they do business. And we can express our opinions just like I did and some people seem to have the same opinion, that's nice.

> You donate towards their mission and you are probably not informed enough about the back-stage politics of their foundation.

What is this? Some kind of "Our savior knows better than you, so keep your mouth shut, sheep!" didactics? From what little I can see from the front, I really don't want to get to know their back-stage politics.

And why back-stage politics after all? What's wrong about a clear "let's build the best, privacy-focused browser and best mail program" as a company mission? Actually that would be a great mission in this day and age. No need for back-stage politics and a more complicated mission.

> It’s like donating to Wikipedia [...] The issue is that you are donating towards infrastructure [...]

Especially this is not correct for Wikipedia/Wikimedia. They are doing _lots of_ stuff with that money that has absolutely nothing to do with keeping Wikipedia up and running. See [0] or [1] for lots of examples.

[0] https://www.theregister.co.uk/2012/12/20/cash_rich_wikipedia...
[1] https://www.wikimedia.de/de/themen
YMMV, but I solved the convenience issue by putting that arm on a flange mount (not a clamp) and that alone made things a lot easier. It also makes people think you're more serious, which is a nice side effect.

I have a bunch of studio mics, too, but I've found that teleconference is easier with a cheap but tight-pattern dynamic. Check out the sE V7. It's tremendous for exactly that.
OneTab has been fantastic for killing and restarting Firefox to flush the memory usage without having to reopen the entire session all over again or taking the time to pore through open tabs to pick which to close.
I deliberately stayed away from claiming a cause in my post, because I don't know the cause. I only know the result of the system as a whole; every cell phone camera I've had in the last 10 years does not actually take pictures at its claimed resolution, even in broad daylight. (I can also say it can't solely be over-aggressive JPG-ification, because the result doesn't match that; the 'blobs' I refer to cross the JPEG DCT boundaries freely. I can't say bad JPEG-ification isn't part of the problem, though.)

I tend to buy last year's midgrade phone because I don't really need the latest and greatest. Maybe the top end really does take the full photos they claim, but that still leaves a lot of cell phones that are lying.

Most of the recent cell phones take perfectly adequate pictures, considering the amazing disadvantages they are laboring under. It's just that if you downsample the pictures to 2 or 4MP, you're basically losing no information.

(There are similar effects with video. The aforementioned 10+ year-old camera I had suffers from this as well. It has a "720P" and a "1080P" video mode, but based on my experimentation, both modes get real video out at about 400-500 "real" lines of vertical quality. I can squeeze either video's source down to that size and when I compare the full screen result to the original, I can find no difference whatsoever. I imagine more modern real cameras probably do a better job here; this thing is pretty old now, obviously.)
This is trying to be too clever by a half with the semantics. When people say they're going to Uber somewhere, they're not saying they're going to use a post-paid software to connect with individuals offering rides. The fact they've skirted the labor laws to technically not be the employers is neither here nor there.
Anyone have a recommendation for a small, decent camera, OR one with a good carrying case you can strap to a belt that doesn't look awful?

I used such a camera on my travels years back and loved being able to instantly capture any moment in high quality. It was even faster than a smartphone, and it had a decent looking leather case with a magnetic lid.

I tried getting one small enough to put in a pocket but I couldn't find one small/good enough. I know carrying one on my belt looks ridiculously, but I'm hoping to make it just passable enough that I could carry it everywhere.
What an absolutely terrible idea.
Thanks for the detailed reply! I suspected the US culture+regs as well. The Swiss banks being too large for the country is something I didn't realize. I guess it's a similar problem as Iceland had.
I too have learned not to believe in government solutions to problems.

As a result I stopped searching for... Well unfortunately I'm one of those, "nothing to hide" people.

Life as usual.

If I needed to use google without anyone knowing, either use a public computer, or a stack of layers to remove IP, browser id, cookies, etc... Unique URLs would not trace far.
Is it? Remember how the FCC got millions of anti net-neutrality comments from some group using stolen identities of people?

https://gizmodo.com/how-an-investigation-of-fake-fcc-comment...
Crypto is not a zero sum game, because money is being printed in the Forex markets all the time, which bleeds into the crypto markets. There is a lag time, called the Cantillon effect, between when money enters circulation, and the arrival of downstream purchasing power inflation.
In my experience that's mainly in Germany. I've paid with my spanish debit card in many countries without any problem.
Sure, that's their weakness. Exploiting it for profit is still immoral.
What is the issue with merlin? Are you referring to https://github.com/ocaml/merlin? I have been using it (with OCaml) without any problems.
My wife takes a LOT of photos. She's not an amateur photographer or anything like that. She's just always wanted to have photos of people (particularly our children), events, etc. for memories. Even she doesn't care too much about the quality boost of photos vs modern smartphones. She used a dedicated camera up until recently. We always had semi-expensive high end point and shoot cameras for their simplicity, ease of use, and transportability.

Now that she has the Google Pixel, all bets are off. Not only has she not used the very nice point and shoot we had been using for most photos, but she completely stopped even bringing it anywhere! She absolutely loves the Pixel's portrait mode and HDR features. And it's hard to argue with. They look stunning and you pretty much never have to even change a setting on the phone - nearly every single thing is automatic and they look utterly fantastic.

So fantastic that I installed a ported version of the Gcam app to my non-Pixel Android and wow - what an improvement.

The camera world is quickly on its way to becoming a hobbyist-only endeavor. I see no reason to buy a standalone camera anymore.

On a similar note - does anyone anywhere buy standalone music players anymore? Hell, do they even sell them? I can't imagine all but a few die-hards buying them when every smartphone now comes with significant storage and most have expandable slots as well. And that's for people that even have mp3s. Most just stream everything now (spotify, youtube, etc.).
I think that's more a Germany thing than a European thing. In Sweden cash has almost been completely eliminated from their economy to the point that some retail banks no longer deal in cash.
Agreed, I see this often.
To be honest if the devil is far more powerful in a given situation, I find it distasteful to fight for him against the hurt party.
> I can't imagine what kind of lunacy

That would be racism.
This is interesting, how can someone contribute? Also what is the experience needed? I would love to volunteer time for this.
Don't believe in her word yet. Her word is "move a motion" when the Legislative Council resume in October, and the Security Minister, John Lee Ka-Chiu, submit the withdrawal to LegCo.

At that point, the pro-Beijing LegCo member can reject such motion and continue the third reading of the bill and Beijing win.

The other possibility is where we, the Hongkonger, continue demanding the rest of the four major demands, and CCP and Lam got so annoyed and trying to order a curfew. Again, this is not something any of us want.
Every company I've worked at has had an explicit policy of not commenting on that company's business on the internet.
It’s fairly common in Europe. At least it usually means it’s technically illegal for them to put you on hold.

For airlines, I know Europeans that will pull up Skype and call their airline’s US number if they have one.
> In order to interopt, you're going to be using `any` a lot of places.

This is not true. Types may be complex and out of laziness (which we do suffer from) there may be `any` types laying around. But you can set up eslint rules that forbid this and turn off implicit `any` at the TypeScript compiler level so you aren't bit by the defaults (which are not nice, for sure).

We have very few `any`'s now in our code and aim to get rid of all of them.
That's crazy. How does the risk:reward make any sense? Wouldn't he get totally and completely destroyed by legal systems when caught?
I think every teenager on the Internet routinely does that.
Is there something special about the USB-C connector on the Switch?
If it wants the people to be friendly, it should probably start pumping a lot more money into jobs programs, addressing income inequality, and building a helluva lot of housing.

Happy people don't protest as frequently. People who feel they have dim future prospects do.

(Simply from a realpolitik perspective)
Yea, look a little closer. A lot of that stuff they are playing with is sponsored content. The toy maker is paying for the kid to play with that toy.

Further, no matter what you kid starts watching, the recommendation algorithms always head you down the path to this content.

Start with sesame street or some known A+ content, 5 mins later its "learn colors with Mattel car" x 1000.

You really need to whitelist things, to avoid the "Billys toy review" and the 10,000 clones.
I also notice trend of adding some ridiculous/controversial paragraphs to the bill that you can "give up" later. When people are tired after first couple of rejections and general public is annoyed by same bill being constantly mentioned, new one gets thrown into the spotlight and latter one passes without much attention.
Customers wish many things, that doesn't mean they're relevant selling points. It just sounds bad judgment to me to tie yourself that way, unable to take advantage of the RDBMS to the full. And have you even tested running your (hypothetical) application in a distributed Oracle cluster across two continents? If not, how will you support it?

Absolutely not worth it, in my experience.
The Big Short’s Michael Burry says he has found the next market bubble