Comparing NPM vs Yarn speed

A long time ago, an analogue of npm appeared, Yarn is another client for managing npm packages, which was positioned as a super fast Facebook brand to replace npm.
If you are working on a large project, then the package recovery time is an important factor in the speed of development and the build project of ci.
It was decided to check whether to use Yarn as a replacement for Npm. since there are a lot of packages on weak build agents, recovery can take up to 2 minutes.
Comparing NPM vs Yarn speed
So, the test script is quite simple:
- Parallel launch of two[npm i и yarn inatall]restorations. from the same packages.json.
3r330. Co...[/npm]
+ 0 -

Advanced multi-stage build templates

 3r33338. 3r3-31. 3r3333317. Advanced multi-stage build templates
3r33333.  3r33338. 3r3333317. The multistage assembly feature in Dockerfile files allows you to create small images of containers with a higher level of caching and a smaller amount of protection. In this article, I’ll show several advanced templates — something more than copying files between build and execute steps. They allow you to maximize the effectiveness of the function. However, if you are a beginner in the area of ​​multi-stage assembly, then first, probably, it will not be superfluous to read r3r38. 3r3325 usage guide .
3r33333.  3r33338.
Compatible versions ...
+ 0 -

Optimization of relational databases without downtime on the example of the most loaded database in Badoo

3r3-31. Optimization of relational databases without downtime on the example of the most loaded database in Badoo 3r33333.  
Under highload conditions, the complexity of optimizing relational databases increases by an order of magnitude, since buying even more powerful hardware is expensive and it is no longer possible just to turn off the application at night for a long DB alter process and data migration. 3r33333.  
We recently told how we are optimized the PHP code of our application . Now came the turn of the article about how we completely changed the internal structure of the most loaded and important database in Badoo, without losing a single query. 3r33333.  
+ 0 -

The story of one experiment with Cython and C ++ vector

 3r33424. 3r3-31. 3r33333. One
warm r3r3255. on a cold winter evening, I wanted to warm up in the office and test the theory of one colleague that the C ++ vector could cope with the task faster than the CPython list. 3r33232.  3r33424. In the company we are developing products based on Django and it so happened that it was necessary to process one large array of dictionaries. A colleague suggested that the implementation in C ++ would be much faster, but I had the feeling that Guido and the community were probably a little steeper than us in C and probably already decided and avoided all the pitfalls...
+ 0 -

Saving data from a Linux partition

 3r3118. 3r3-31. Hello! 3r3105.  3r3118. I recently launched one toy in wine on my laptop with Kubuntu ???r3r3105.  3r3118. Everything was stuck and a file system error appeared on restart. 3r3105.  3r3118. There were important data on the laptop, so you need to get it somehow. 3r3105.  3r3118. Welcome under the cut! 3r3105.  3r3118.
3r3105.  3r3118. What comes first to mind? 3r3105.  3r3118. We have 2 ways to solve the problem:
 3r3118. 1. Try to repair the FS and get a working OS
 3r3118. 2. Copy the data and carry Linux
 3r3118. I chose option ? but I will tell about 1 too)
 3r3118. Restore ...
+ 0 -

 [Пятничное]ASCII graffiti on retro monitors and other surfaces

3r3-31. If a person who likes pixel art is old, then a person who understands ASCII aesthetics is a superstar! Of course, this is a joke, and the age is most likely irrelevant. My son, for example, likes to play ASCII games that I make. At least he says so.
However, in order to perceive some things, such as the composition of the three canvases in the picture below, you need to have experience interacting with a certain software and hardware.
 [Пятничное]ASCII graffiti on retro monitors and other surfaces
Under the cut you will see many ASCII tracks on monitors of ancient computers and terminals, as well as on other surfaces, for example, on a postage stamp...
+ 0 -

Apple patent for electric cars

Apple patent for electric cars “Before you think about solving future problems, learn to cope with today's for the shortest time and with greater efficiency.” (P. Drucker) 3-33114. 3r3117.  3r3125. 3r3117.  3r3125. charge current 3r3109. This is not an unimportant moment. 3r3117.  3r3125. 3r3117.  3r3125. Of course, this principle of charge will be useful for an ordinary electric car, but for a start it is better to use it on less maneuverable vehicles. For example, on trucks at
3r3117.  3r3125. 3r3117.  3r3125.
The use of the principle of energy transfer in motion can be called only on motor vehicles. 3r3117.  3r3125...
+ 0 -

Nuclear power before the appearance of nuclear power plants

3r3-31. 67 years ago, on December 2? 195? the experimental fast EBR-1 reactor became one of the first nuclear power sources. The photo shows ??? W bulbs that he “lit” that day. Before the launch of the first-ever nuclear power plant in Obninsk, about 3 years remained. 3r3105.  
By the memorable date, a small story about the appearance of this reactor, a photo of what is with it now, and an explanation of why it is not considered a full-fledged nuclear power plant. 3r3105.  
Nuclear power before the appearance of nuclear power plants 3r3105.  
The first electricity from the EBR-1 reactor in 1951. Photo: ...
+ 0 -

Biohacker Joshua Zeiner's public letter

3r3-31. Biohacker Joshua Zeiner's public letter  
I always come back to the question: “Would you go to prison to save someone's life?” As you can see, I receive a lot of messages from people who seek medical help. I try to convince myself that I cannot help them, but the reality is that the system broke us. We must be ready to do everything to save lives. We must treat everyone as a loved one. Instead, people are left to die and suffer, because we, as a society, are too afraid to take responsibility for the riskiest or most modern treatment methods.
I remember the first time someone emailed me. I was shocked for several months, thinking ...
+ 0 -

Compiling and running C # and Blazor inside

Compiling and running C # and Blazor insidebrowser. 3r33333. 3r3-31.Introduction 3r33333. 3r33333. 3r33333.If you are a web developer and are developing for a browser, then you are definitely familiar with JS, which can be executed inside a browser. There is an opinion that JS is not very suitable for complex calculations and algorithms. And although in recent years JS has made a big breakthrough in performance and breadth of use, many programmers continue to dream of launching a system language inside the browser. In the near future, the game may change thanks to WebAssembly. 3r33333.Microsoft is not standing still and is actively trying to port ...
+ 0 -