Hacker News new | past | comments | ask | show | jobs | submit | dieulot's comments login

“<file foo” is POSIX: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V... (see the absence of mention that redirection needs to be after the command)


What would a specific table of contents element bring over a <nav> inside your <main>/<article>?

(As demonstrated in the first example of https://html.spec.whatwg.org/multipage/sections.html#the-nav...)


I'd look to what Wikipedia provides as a document reading experience. The problem with nav is that there weren't enough tags so developers will rightly use them for other things, such as breadcrumbs. I'm looking for exclusive ToC that will allow reader mode to go further.


Where is said track record of the main author being an ass to people who aren't willing to be marginalized, or anything along those lines?


> If we become too insular, then we doom our larger economy to the same mistakes France, Germany, UK, and Japan made.

What are those? (Besides Japan’s which you’ve answered here https://news.ycombinator.com/item?id=40143090)


The exact same mistakes as Japan - deciding to concentrate on their large local market which is protected via tariffs, but then completely outsourcing IP in non-target markets via JVs (eg. Renault's JVs in India, Volkswagen's JVs in China, Dassault and Thales JVs in India, Airbus JVs in China), but also failing to attract enough talent from abroad to innovate in these countries.

The Eurozone crisis also completely destroyed Western Europe's competitiveness (like the Asian Financial Crisis and Black Thursday did for Japan).

American companies make JVs abroad as well, but will also help transfer promising employees to the US, give them a competitive salary, and sponsor their visa process.

If you're smart enough to become a MechE for Dassault in India, you're also smart enough to become a MechE for Ford R&D in the US or India. Going from earning €25k in India to €45-50k in France or Germany isn't worth it, compared to moving to America and earning €90-110k.

Germany's automotive industry is a great example of this. In the 1990s-2000s, they began a MASSIVE expansion into China. Chinese consumers ditched their bicycles and motorbikes for the VW Jetta. But while VW continued to concentrate on ICE vehicles, Chinese challenger brands in the 2000s began researching EV technology as they were already the goto suppliers for batteries. Fast forward to today, and now German companies are dependent on Chinese EV R&D in order to build European EV platforms.


This is not exactly the fault of VW/Renault etc. China has quite explicitly encouraged technology transfer as an important strategic imperative for their local firms, so if these companies wanted to play in the (obviously growing) Chinese market, technology transfer was the price to be paid.

(Another example of this is the high-speed trains in China - the first generation was built by JVs with Siemens/Hitachi/etc with an explicit policy of technology transfer, but the newest trains in China are now local, built on top of the technology that has been acquired.)


And they're doing the same in India.

There's a reason I mentioned Renault and Dassault - to show that it's not just a China thing.

Every country pushes for JVs, but it's up to the individual companies themselves to defend their IP, or at least integrate the host country's talent base with the home country's innovation system so that it's mutually beneficial (eg. What Japanese companies did in Korea in the 1970s-80s).

American companies do that (eg. L1/2 transfers and O-1 visas) but European and Japanese companies don't as often.


US companies haven't had any more success in protecting their IP in China and avoiding "tech transfer" than European companies; it's endemic to operating in China ("somehow" your tech leaks from your JV to your Chinese competitors, who in some cases may even be owned by the same group of people through a web of shell companies). (The solar panel industry is a good example of this.)


Actually Germany's and Japan car industry are more innovative than American one's (and much more sucessfull on the international level)


You can `set +e` before and `set -e` after every such command. I indent those commands to make it look like a block and to make sure setting errexit again isn’t forgotten.


But you probably still want an error if the input file does not exist. To handle grep correctly in a robust manner requires many lines of boilerplate, set +e, storing $?, set -e, distinguishing exit values 0, 1, and 2.


For a more complete view, the HTTP Archive tracks general site weight over time and gives you percentiles (click Show table): https://httparchive.org/reports/page-weight#bytesJs

The median JS bundle is 600kB on desktop. p90 (“high 10%”) is 1830kB.


Weird spike in March 2021 in the `Other Bytes` graph. Wonder what went on then; or if there was a glitch in their data.


That spike is only visible when Drupal/Magento/WordPress lenses are selected, and disappears with the top ~1M websites, so I assume it is a very long tailed behavior.


It’s an additional abstraction.

On Windows/Linux closing an app requires doing the obvious thing. Press the big X, you’re done. You’re back to the previous app instantly.

On Mac after closing a window what you see on the screen is a lie (besides the ever subtle menu bar and shades of gray); you’re still in the visually-hidden app.


But why would closing a window close the program? If my program has many windows open which big X should close the program? Why shouldn't I be able to run a program without any windows open?


> If my program has many windows open which big X should close the program?

The last one, obviously.

> Why shouldn't I be able to run a program without any windows open?

Because 99% of the time window IS a program. If a program has no windows, it is a process.


Why should a process and a program be different things? Sounds like an additional abstraction to me


> For GFW reasons, the Chinese users will fail to connect to github.

Since when has GitHub been blocked in China? I thought the government reluctantly let it pass.


America means “french-door” as in https://fr.wiktionary.org/wiki/French_door


yup. it's the doors themselves. wr took that to describe the doors on a fridge.


That piece of news is about only a week of pause for a version that’s even buggier than usual. Toss your Snow Leopard dreams.


“Okay, you got a week to fix all the bugs in a system whose installer is 12 gigs compressed”.

This is surely going to go well and deliver!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: