China ready to hit back at U.S. with rare earths

China ready to hit back at U.S. with rare earths

BEIJING (Reuters) – China is ready to use rare earths to strike back in a trade war with the United States, Chinese newspapers warned on Wednesday in strongly worded commentaries on a move that would escalate tensions between the world’s two largest economies. President Xi Jinping’s visit to a rare earths plant last week had sparked speculation that China would use its dominant position as an exporter of rare earths to the United States as leverage in the trade war. Chinese trade experts say if Beijing moves forward with new restrictions on rare earth exports to the United States, it will likely follow Washington’s example and use national security as a justification.

Source: www.reuters.com

Awk ‘ visited[$0]++’ or removing duplicate lines from files explained

Awk ‘ visited[$0]++’ or removing duplicate lines from files explained

To remove the duplicate lines preserving their order in the file use:

The script keeps an associative array with indices equal to the unique lines of the file and values equal to their occurrences. For each line of the file, if the line occurrences are zero then it increases them by one and prints the line, otherwise it just increases the occurrences without printing the line. Piping a bunch of commands we can overcome this issue:

Suppose we have the following file:

prepends the order number in each line.

Source: iridakos.com

I am a Web Dev And I am Burnt Out

I am a Web Dev And I am Burnt Out

Maybe web development as a career has some problems. I’m 37 which in web developer years mean’s I’m a dinosaur. I’ve slung gigabytes of data between MySQL, PostgreSQL, SQLite, and SQL Server and mish-mashed it all into XML, JSON, and YAML.

Source: www.reddit.com

Why Ice Lake is Important – a bit-basher’s perspective

Why Ice Lake is Important – a bit-basher’s perspective

This is a handy building block and would have been nice to have while building Hyperscan – we spend a lot of time working around the fact that it’s hard to move bits around a SIMD register (one of these double-shifts, plus a coarse-grained shuffle, would allow bit-shuffles across SIMD registers). One could also view GF2P8AFFINEQB as something where the 8-bit values are ‘fixed’ and the 64-bit values are unknown – this would allow the user to, say, extract bits 0,8,16… from a 64-bit value and put it in byte 0, as well as 1,9,17,… and put it in byte 1, etc. – thus doing a 8×8 bit matrix transpose of our 64-bit values. From an integer-focused programmer’s perspective, ICL/SNC adds a huge collection of instructions that allow us – in many cases for the first time – to move bits and bytes around within SIMD registers in complex and useful ways.

Source: branchfree.org

If the number of children is not growing, why is the population still increasing

If the number of children is not growing, why is the population still increasing

If there were few women in the reproductive age bracket the number of births will be low even when the fertility rate is high. This is what demographers refer to as ‘population momentum’ and it explains why the number of children in the world will not decline as rapidly as the fertility rate. The second chart in the panel below shows that the population growth over the last decades resulted in increasingly larger cohorts of women in the reproductive age bracket.

Source: ourworldindata.org

The after-party balloon effect

The after-party balloon effect

Several studies have focused on the impacts of balloon as marine debris. According to research of University of Tasmania, balloons are the number one mortality risk due to marine debris for seabirds: Ingestion of a balloon or balloon fragment is 32 times more likely to kill than the ingestion of hard plastic (Roman et al. 2019). Apart from seabirds, balloons also pose a high risk for marine mammals and turtles (Wilcox et al. 2016).

Source: envirobites.org

GNU Hyperbole 7.0.3

GNU Hyperbole 7.0.3

It adds many features not found elsewhere in Emacs, including Org mode, see:

Hyperbole includes its own easy-to-use hypertextual buttons and links that can be created without the need for any markup language. Hyperbole has an interactive demo to introduce you to its features as well as a detailed reference manual, as explained here:

For near instant gratification, try Hyperbole’s ‘implicit button’ capabilities (hyper-buttons that Hyperbole gives you for free by recognizing all types of references embedded within text such as pathnames or error message lines). Hyperbole can be installed like any other package with the Emacs package manager:

Then to invoke its menu:

The best way to get a feel for many of its capabilities is to invoke the interactive DEMO and explore sections of interest:

Source: www.reddit.com

New Causes of Autism Found in Noncoding DNA

New Causes of Autism Found in Noncoding DNA

Scientists can apply the same techniques used in the new study to explore the role noncoding mutations play in diseases such as cancer and heart disease, says study co-author Jian Zhou of CCB and Princeton. The researchers used their model to predict the impact of non-inherited, noncoding mutations in each child with autism. Noncoding mutations in many of the children with autism altered gene regulation, the analysis suggested.

Source: www.simonsfoundation.org

Food Delivery Apps Are Drowning China in Plastic

Food Delivery Apps Are Drowning China in Plastic

The astronomical growth of food delivery apps in China is flooding the country with takeout containers, utensils and bags. Scientists estimate that the online takeout business in China was responsible for 1.6 million tons of packaging waste in 2017, a ninefold jump from two years before. That includes 1.2 million tons of plastic containers, 175,000 tons of disposable chopsticks, 164,000 tons of plastic bags and 44,000 tons of plastic spoons.

Source: www.nytimes.com