skysight-inc/HackerNews huggingface dataset:
> China locks American companies out of its market

This is something that is often claimed, but it doesn't reflect reality.

China does not generally lock American companies out of its market. In fact, American companies have a far greater presence in the Chinese market than vice versa.

For example, take a look at the 2017 China sales figures for a few American companies: [1]

* Apple: $44.7 billion

* Intel: $14.8 billion

* Qualcomm: $14.6 billion

* Boeing: $11.9 billion

* Micron: $10.4 billion

If you walk into any mall in China, you'll see American brands everywhere. Starbucks, KFC, McDonald's, tons of fashion brands, and on and on. The basic fact underlying all of this is that for decades, foreign direct investment flowed essentially in one direction: from the US to China. That reflected the fact that the US had capital, while China had labor. It's only recently that Chinese companies have begun expanding abroad, and FDI has started to go in the opposite direction.

1. https://www.marketwatch.com/story/trade-war-watch-these-are-...
There are many more important things about Knuth and his work, but one of my favorite stories about him is that he showed up at Randall Munroe's Google tech talk [0], and, during Q&A, asked Munroe "Have you thought about animated cartoons?" and "What is your n log n algorithm for searching?"

I have a special respect for people who are both brilliant and humble, and Knuth is my poster person for that.

[0] https://www.youtube.com/watch?v=zJOS0sV2a24
I think the IR camera was more likely to have been looking for fever than drugs. I don't mean to say that Changi doesn't have drug-detection mechanisms, but the commonest use of IR cameras at international airport gates is to try to find passengers who are showing signs of infectious disease.
I think you always get the email, perhaps it went into your spam folder?

The first time I saw such an email I felt great!! Look for it.
She said that the internet is "Neuland"...
Why not make the proxy an opt-in fallback by default? I like my fails to be catastrophic. I don't want to touch any host I don't have to. Ever. And doesn't it leak metadata if you aren't careful? I remember a Go page to request data removal. A package named github.com/microsoft/clippy already makes my skin crawl.
Why are cyclists so prone to cheating?

See: https://www.bicycling.com/racing/a20020140/are-tour-de-franc...

and https://en.wikipedia.org/wiki/Doping_at_the_Tour_de_France
That seems like an increase in risk disproportional to the return on investment.
Replacing Ngrok with Ktunnel
Multiple Monitors and Brightness Controllers
The lotto ticket is a bad example because it has negative expected return. A better example would be a positive expected return but with a very high amount of risk. Something like $FAS should fit the bill there.
This is a great reverse engineering project.

What it points out to me, painfully, yet again, is that cool stuff can actually do everything its bought to do without a "monthly service fee." And yet here we are.
> Project Zero

> News and updates from the Project Zero team at Google

>For the last several years, nearly all iOS kernel exploits ...

Damn, Googlers... Still incapable of explaining things to people. What the hell is Project Zero? Why don't you explain it in your tagline? If not, why not at the beginning of the article?

Edit: this sentence in the "about" section does the job:

> Project Zero is a team of security researchers at Google who study zero-day vulnerabilities in the hardware and software systems that are depended upon by users around the world

I suggest you change the tagline to something like "Studying zero-day vulnerabilities at Google".
The security/operational issue may have been that the author was able to break production code, but the simplicity of the function is what made it extremely funny.
Very opinionated, and IMO without enough justification.

The assertions around short options with arguments - conjoining with other short options, for example - are actively harmful to legibility in scripts, since there's no lexical distinction between the argument and extra short options. I don't recommend using that syntax when alternatives are available and I deliberately don't support it when implementing ad-hoc argument parsing (typically when commands are executed as parsing proceeds).
Trying to move away from figures of any pantheon now!
Yeah, and they're a huge pain if you indeed actually need to use them, and often result in a non-working mess. This wasn't all that uncommon in the early days of .net core, which was particularly bad at this IIRC largely because many foundational libraries were split into packages that essentially could only ever be upgraded in concert. There are a few technical nuances that mean I'm sure this isn't quite the same as the rust case, but it's pretty bad nontheless. Even well thought-out transitions like .net standard weren't free from gotcha's particularly when mixed with multitargeting and deep transitive dependency graphs (which was pretty easy to get in the early .net core days).

The whole thing is clearly not great (not just in C#). In particular - many of these problems are entirely artificial. If the type system were sufficiently dynamic, or magically psychic - the problems often go away. E.g. in the rust example - void_c didn't actually change, it was just incompatible because rustc isn't psychic. Even seemingly serious problems like an interface (~ in rust a trait) gaining a new method aren't necessarily fundamentally breaking - as long as you're not calling it. Even truly breaking changes like "best-solution-finder returns a different result and has an incompatible API" might not be breaking between in the case of a diamond dependency pattern as long as the method's side effects allow running both versions - one for each transitive dependency requesting that specific version. Even cases where the break is "real" like a rename, it'd be trivial to consider a shim that allows old consumers to use the new api.

In the vast, vast majority of cases in my experience this kind of breakage is a problem due to technicalities. That doesn't mean I have a clue how to solve that, but it does beg the question: isn't it possible for a dependency resolution system to do fundamentally better, here?
Agreed completely. The degree of pressure that China applies outside of software is also very unsettling. The latest episode with the NBA allowing players to promote social causes on their uniforms for example...unless you’re supporting Hong Kong or Taiwan. It’s appalling.
The beauty of Python is in the fact than anyone can pick it up. It helps teach logic and programming constructs to people outside software as well.

With tech being a core part of many jobs these days it's essential that everyone knows at least the basics. Python is great for that purpose.
Show HN: Quantum Formalism Batch I Course
In every instance you said "gone" you should've said "going"
I can’t say for sure what OP meant; I know there are Instagram+ type apps on iOS and Android. There’s also this:

https://github.com/cloudrac3r/bibliogram
The solution to that is to produce more goods. There is no physical law that says that there is a fixed supply of housing. Currently, it is difficult to get approval to build in many urban areas, but if we eliminate that barrier, there is no reason somebody else can't jump in and undercut an extortionate landlord by offering housing at X + $999, etc. until the price is pushed back down.

UBI doesn't directly create more wealth, but it would spur demand for creation of more actual goods. After all, poorer people tend to spend much more of their income than wealthier people. And once that is done, society will in fact be wealthier in a concrete sense.
Lol... then it wouldn’t have happened!
> My question to you, gentle reader – are there any licences which compel the distribution or publication of the development history?

No, other than that any given project has to give proper credit to code used from other projects / copyright holders.

My understanding of why this is so is the following: A free software or open source software licence is based on copyright law. As such, it restricts what users can do with the source code, but it never restricts what the copyright holders can do with the software (assuming all the copyright holders collectively agree).

A user can never (theoretically at least, there may be a few edge cases) sue the copyright holders for anything, because there’s no warranty. No warranty on the code source history (or anything else). So code source history is always optional.
It is funny to see comments like “this will only strengthen the hostility of Chinese people against US” - the fact is most if not all Chinese see US as their arch nemesis.
Which is something that should be considered before writing this stuff and hopefully a T-Mobile engineer reads Hacker News to be encouraged to think about that and check it.
That isn't really "high tech", it's organic chemistry. We can split hairs about the meaning of "high tech" but that would be pointless.
Nice write-up. I second the endorsement of Loom. It's so much easier to record your screen and talk then to type out an email and take screenshots.
Apple removes thousands of game apps from China store: research firm – Reuters
> Also: if Africa industrializes and we don't have cheap fossil fuel alternatives, we should just start moving Miami and building the New York Sea Wall

Probably won't have to worry much. China's CO2 emissions per capita are still far below that of the US.
Doom emacs is really fast on booting! And you have to open it only once, rest of work you do through emacsclient. I like how fast doom emacs is that sometimes I do unthinkable - I close emacs - just to restart it again.
Worth noting that companies in the United States are subject to secret and forced surveillance by the US government (NSLs), and enforcing that surveillance also requires a degree of forced control as well. There is legal recourse for NSLs but it's ineffective and basically never works.

>The government can mandate spy code be inserted and any data they want.

Essentially true for US government with US companies too
It's probably because there is no known or proposed potential mechanism for how "vitamins could help [your] cancer". I bet most doctors try to keep up to date on scientific studies that show promise.

Rather than say "no", they say "there's no evidence". Probably because of the litigious nature of the job.

What do you expect them to do, if there isn't any evidence?
They're both tools for large power with supranational privileges for geopolitical interests. Which makes them directly comparable and functionally equivalent. Drawing up a list trying to label one group good and other group bad misses the point. Each group is bad for interest for the respective countries, that's all that matters.

Also, follow the news, Magnitsky was just applied to XinJiang paramilitary organization XPCC/Bingtuan. They had key XJ leadership on the list already like ChenQuanguo, but just slapped the act 24 hours ago on an organization with 2.4 million people. Prior to this they were threatening to ban all of CCP members and associates - 1/6 of the country. Before they labelled IRGC an terrist organization. US supranational instruments are being interpreted beyond their limits under this admin, especially Pompeo and his Chinahawk clique. China announcing their own supranational instruments is overdue, and all it does is target obviously anti-state actors, instead of something like the entire republican party, or entire US special operations command, which is downright restraint and responsible in comparison.
Sounds like classic Trump. Use the threat of a ban to force a policy change in American interests. Maybe bargain down Microsoft’s price for TikTok along the way.

TikTok’s user base deserves a parent company domiciled in the US and under American regulatory and financial purview.
Weapons rooms, fake windows, a $3m price tag: inside a luxury doomsday bunker
Coronavirus in Congress: 14 members have tested or been presumed positive
You know there is this movement called open source software right?
With it not only a lot of strategical pieces of software are available to anyone to modify, but it also allowed people all over the world to contribute to them.
This means that not only Europe but other parts of the world have people with enough knowledge to not only contribute, combine and use those things but also to 'push the envelope' in research and development.

BTW, a more decentralized, organic tech world, is something we should try to achieve, because as we are seeing now, there are no safe heavens for anything, anymore.

We should think more like human beings and less with nationalistic mentality, because all i've seeing til now, is nationalistic values being use not just to undermine other countries, but also undermine the nationalistic's own country.

If there's one valuable lesson history teach us, is that even the Rome empire, comparatively much powerful than anything we have now, started to fall when they corrupted the core values that served as a foundation of the Roman empire.

And nationalistic, the "we are better than everyone else", walls, stupid wars, etc..

But lets not forget an important difference here, right now all the achievements, the culture, the universities, the internet, the knowledge is widespread all over the world..

This is a pandora box effect, that once opened, cannot be closed anymore.

So even if the US totally closed itself to the world, im pretty sure the world would keep moving forward, and once this Donald Trump version of US lost it all and tried to become part of the world again, im pretty sure, it would be welcomed with open arms, and a catch up path would be offered to try to recover what was lost along the way. A sort of "Marshall plan" only that this time it would be to put the US back on their feet.

I hope the US dont keep going through this path that only leads to self-destruction..
Disconnect the pedals, attach electric motor, bam: cryptographically-signed leaderboard cheating.
Bear in mind Personal Finance is pretty conservative. Depending on how much time you have in the market you can take some more aggressive bets. I'm not suggesting r/WallStreetBets style investing but something like a risk parity adjusted pairing of 3X leveraged S&P with 3X leveraged treasuries can yield dramatically better returns over time [1]. I'm not recommending it per se, to each their own risk tolerance and research, but suggesting that if you have time in the market, consider being more aggressive.

I'd suggest something like this.

(1) Have 6 months of expenses set aside.

(2) Max out your tax-advantaged retirement accounts.

(3) Allocate some amount of capital to traditional or conservative investments, and some amount to more aggressive plays. The more time you have in the market, the more aggressive you can afford to be. Having both types of investments will give you the comfort you need during rough times that your riskier plays come through eventually.

(4) If you're looking at property, consider setting aside a down-payment. Keep in mind that if you're employed, buying a house in cash may not be the optimal strategy as you can deduct large quantities of your mortgage payments, giving you, with 20% down, a 5X leveraged investment in real-estate with deductible expenses and historically-low interest rates. Mortgage interest rates are just a hair over inflation, and when you deduct the interest from your taxes, you're actually saving money with a mortgage.

(5) Now that you have a large chunk of capital, you can consider financing some purchases yourself at extremely low rates by taking advantage of margin borrowing. InteractiveBrokers offer 1.5% interest margin loans, and you could, if within your risk tolerance, borrow some amount of money collateralized by your (safe) equity positions. This 1.5% interest is also tax-deductible. Obviously be careful, a margin call is something to avoid, but against a $450K portfolio, I personally wouldn't sweat borrowing $45K.

One thing I was able to do personally is borrow enough on margin to make a down-payment on a property. This allowed me to deduct the entire balance of my mortgage, beyond the $750K cap, and at 1.5% the margin interest is much lower than if I'd financed the whole thing.

[1] https://www.bogleheads.org/forum/viewtopic.php?t=272007
> Imagine telling Hemingway he has to release a new blog post every week instead of a book every couple of years.

Hemingway's fiction in particular aside, it is worth noting that many of the novel-length works now considered classics were actually created and released as a series of shorter works, often to fairly strict deadlines:

https://booksonthewall.com/blog/serial-novel-a-brief-history...
An escalator can never break: it can only become stairs. You should never see an Escalator Temporarily Out Of Order sign, just Escalator Temporarily Stairs. Sorry for the convenience.

Mitch Hedberg
I would add that if your employer allows for mega-backdoor, do that too.
The PAP is slowly losing popularity. A second political party gaining power could change things.

My take on the censorship and police state is that it's there so there aren't significant racial or religious tensions.
Nice! Thanks. Postgres is just amazing in so many respects. The work you guys do contribute to that.
That link is in the fourth sentence of the article.
Has enough time passed yet to acknowledge that the x86 ISA is a really bad design?
Well, getting EU passport sounds like a long-term plan and investment. Current travel ban doesn't look like long-term. also, what's the reason of getting into EU? Is there more opportunity for investment? The vast majority EU countries the purchase power is lower than it is in US.
This is a very undesirable conflict of interests when you find yourself victim seeking damages. Your insurer should represent your best interests, not the healthcare provider's.

I personally never choose KP when starting a new job if there's an alternative. You'll find yourself severely disadvantaged when the shit hits the fan under their care, speaking from experience.
If this article is to be taken at face value, the case against OOP is understated...

The author is in desperate need of an actual understanding of OOP, an understand of what OOP looks like in practice, and the most basic understanding of other programming paradigms (or at least a rudimentary understanding of what’s meant by procedural, structural and functional programming.)
Indeed, the Trump administration rolled-back an Obama era rule that financial advisors must be fiduciaries. I'm not sure most people realized that happened.
> what precise steps should I do to live off of my cash stack while doing absolutely 0 work other than sitting on my couch?

I would put X% in Vanguard 500 Index Fund[1], and in Y% Vanguard Total International Bond Index Fund[2].

X% should represent the amount of money you can afford not to touch during the entire economic downturn.

Y% should represent the amount of money you want to be able to cash out at any point during the economic downturn.

Another alternative to S&P-500 for putting X% in is Nasdaq-100[3]. It has performed much better over the years, but it's significantly more tech-focused:

> The table below and the charts above display historical performance figures for both the Nasdaq-100 TR and the S&P 500 TR between Dec. 31, 2007 and June 30, 2020. Despite recent overall market volatility, the Nasdaq-100 TR Index has maintained cumulative total returns of approximately 2.5 times that of the S&P 500 TR Index.

[1] https://investor.vanguard.com/mutual-funds/profile/overview/...

[2] https://investor.vanguard.com/mutual-funds/profile/overview/...

[3] https://www.nasdaq.com/articles/when-performance-matters%3A-...
Crew Demo-2 Departure
Ya large corps with the tools and resources are beholden to the most rigid of ethical standards and furthermore wholly unable to commit crimes systematically for very long due precisely because of their scale, amiriteamirite?! Yukyuk where my high fives at, guys? Yukyukyuk
i don’t think snap is dead. not sure why people keep lumping it in with vine.

that’s like saying twitter is dead
Then you didn't really read the context, because the context is a module for interacting with a french (but also internationally present) online dating site. It literally states so in big fat capital letters in the class definition.
Ask HN: Any advice for starting out as a contractor or freelancer
Hi HN,
I’m coming out as a fresh grad from college with a CS degree. I do have experience developing software and worked for companies as an intern but my long term goal is to start doing my own thing or spend some time at startups where i can have higher growth and then transition into freelancing or contracting.

I would love to hear from you guys
The best way to compete in Africa's fragmented markets is by deploying platforms
Don’t get me wrong. I admire any company that decides to be a “lifestyle business” - a profitable private company that seems to do right by their employees.

I listen to the ReWork podcast and he is the opposite of the HN VC Dundee hype. I also take his side in the Hey controversy.

But, when he calls himself an expert in the roll that Big Tech plays in society in front of Congress - my eyes roll.
“Zombie cicadas” infected with mind-controlling fungus return to West Virginia
Can you verbalize what significant thing you're missing from Evil that's present in vim?

As a vim user of 25 years before switching to Emacs+Evil, I can name only about two things.[1][2] And they're not nearly enough for me to go back to vim for.

[1] - vim's \zs regex pattern, which would let me position the cursor ahead of where the regex match would normally take me without it. This can be very useful for certain macros, but I don't encounter an absolute need for it very often.. but when I do, I wish this was possible in Emacs.

[2] - In my experience, vim has been much more performant on large files with long lines.. but, again, I don't edit such files often enough to make me want to back to vim... and, anyway, when relatively rare cases when I do need it I can fire up vim for that one use.
I am sorry for what you and your partner must be going through.

There might be other nations where this is less the case. My Italian father in law has lung cancer, and I am able to observe some of the healthcare system in Italy, in relation to cancer patients. My very anecdotal observation is that it seems far better than anything in the US (I live in SF, I assume you live in the US given your comments about in-network medical bills, etc).

This is just to say that your rage might be directed at one specific healthcare system (US), while other parts of the world might be doing better than that.
Learned Motion Matching
JavaScript tracking can provide much more personal and behavioral data than server logs can.
My experience with Kaiser is that they from time to time have a clusterfuck system for online payment, and they still charging me high fees for various tests that costs hundred of dollars.
Even after this? https://appuals.com/firefox-chrome-both-pull-stylish-extensi...
Hmmm. Both of you are getting me very close to pulling the trigger on the M3i. Just so I’m clear, you have to buy the “M Series Converter” bluetooth device as well so it can connect to 3rd party apps, correct? Or I could just record an Indoor Cycling workout manually on my Apple Watch, right?
Agreed vis a vis SHIFT.

cligen also has a global config file [1] to control syntax options like whether '-c=val' requires an '=' (and if it should be '=' or ':', etc.) which has been discussed here, various colorization/help rendering controls, etc. Shell scripts can always export CLIGEN=/dev/null to force more strict and/or default modes.

[1] https://github.com/c-blake/cligen/wiki/Example-Config-File