This story began when I learned about existence bpytop ... I was amazed at the detail of the charts and I began to figure out how it was done. It turned out that Braille characters were used to display the graphs, which are a combination of 8 points: 2 points in width and 4 points in height. After looking for ready-made solutions using this approach, I found on reddit announcement such the project ... In the very first comment of the announcement, I read:
It's cool, but why don't people just rediscover ReGIS (vector graphics in the terminal) and sixel (pixel graphics in the terminal).Until this moment, I did not know anything about sixel. Digging deeper, I found out that in theory sixel should be supported by xterm. I ran xterm on my ubuntu 20.04 in vt340 emulation mode
xterm -xrm "XTerm*decTerminalID: vt340" -xrm "XTerm*numColorRegisters: 256"executed the following command (convert is a command from the imagemagick package)
clear && convert <(curl -s https://upload.wikimedia.org/wikipedia/en/7/7d/Lenna_%28test_image%29.png) sixel:-and saw this:
Wow, it works!
You are at an altitude of ten kilometers, and you fall without a parachute. You have little chance, but a small number of people, finding themselves in a similar situation, managed to survive.
6:59:00, altitude 10,000 m
You went to bed early yesterday and you had an early flight today. You fall asleep shortly after takeoff. And suddenly you wake up abruptly - cold air whistles around you and a noise is heard. Terrible and loud. Where I am? - you think. Where is the plane?
You are at an altitude of 10 km. One. And you fall.
PM - Project manager (project manager).
You say that only 5 kettle will boil. PM insists that the client is asking very much and this is extremely important to us, you bend under the onslaught and decide to think about something. You throw a bag into the kettle, fill it with water and wait for the water to turn brown. You clearly understand that you will have to remember to wash the kettle, because this will leave tea rings and possibly mold. You pour the resulting colored water for the client, the PM says with a happy face: well, you see, you can. And you think that you would not want to do that to you ... But circumstances demand. And as soon as you relax, the PM flies in and says: have you even tried this?
You realize that there is no taste for the campaign ... You try to justify yourself, but then the PM interrupts you and says: what does the taste have to do with it, it's not boiling water and you quickly start thinking what to do. You think about boiling for a long time and find a ready-made solution - an old boiler in the closet. You throw it into a mug, plug it into an outlet, it heats up, and the PM looks at you and says: hmm ... We can't leave such dependence on the cable ... And you understand that a good solution just needs to be finished, naively believing that you are went in the right direction. You find the battery, connect it, and everything works, even though even the PM realizes that something is wrong here. And then the intrigue arrives ... PM-but there is no hour, two ... You start to think that they are either discussing your dismissal, or PM-and lost somewhere, maybe he has already decided to finish. But then the PM flies in and without a drop of explanation says: the client is very satisfied, it is necessary to make pasta just as quickly. You are at a loss - they say, okay, it worked, you go and look at the kettle and think, what else can be done in it. But since it's Friday night, you think that you've had enough of such adventures and agree with the PM for Monday.
When humans settled in Central America (about 15,000 years ago), they didn't have to domesticate the avocado. Pick these wonderful fruits from the tree and eat. Save the bones and plant wherever you want. No fiddling around raising fruitful varieties from wild ancestors. These are not millennia-long attempts to domesticate corn.
But how did it turn out so well? The fact is that all the breeding work, even before people, was done by someone else, simple, but big. And people came to everything ready.
To understand how this happened, let's observe how natural selection works in plants. To win the competition, they have to come up with clever breeding methods. The task is to spread the seeds over a large area.
If your seeds just fell and rotted under the tree, there is little use. Part of it will certainly germinate, an even smaller part will survive to adulthood. But the population of such trees is at great risk, because the parent is competing with its own children in a small area. You need to spread in all directions and occupy free spaces, then the species will flourish.
Google said that community, bringing people together is at the core of their corporate culture and office spirit, so they are investing $ 7 billion in an existing office, as well as opening offices in Minnesota, Texas (the highest priority point for technological growth in recent years) and North Carolina. Also Google plans to double office expenses. This decision seems significant and even somewhat surprising against the backdrop of the triumphant march of the distance, which the companies became closely acquainted with in the "covid" 2020.
In a pandemic year, Google, like everyone else, slowed down recruitment, but now is the time to pick up steam. The company said it will add thousands of new employees at existing sites in Atlanta, Washington, DC, Chicago and New York, expanding the company's multi-year expansion beyond Silicon Valley. According to Alphabet, there were over 135,000 Google employees worldwide as of last year.
Hello, Habr! It so happened that my colleague and I today published a scientific article in BioEssays magazine devoted to the analysis of conspiracy theory, which was originally formulated in the form of a post on Habré. It seemed logical to me to publish the analysis not only on my blog, but also here, especially since kind people invited me here.
In early February this year, WHO specialists who visited Wuhan said at a press conference that they exclude  the version of the artificial origin of the SARS-CoV-2 coronavirus. The virus probably came from bats through an unknown intermediate host.
Indeed, during the epidemic, a lot of versions appeared in the media about the artificial origin of the coronavirus. Most of them suspected the Wuhan laboratory, but there were also accusations against the United States and even the Russian "Vector". It was argued that SARS-CoV-2 was made using the sequences of the HIV genome, human genes, that this is a coronavirus from a scientific publication in the journal Nature - all this was discussed in detail on the pages of my blog
For about a week, an Arctic storm raged in the United States. Atypically cold temperatures and snowstorms have covered half the country, but the worst is in Texas. The southern state's power grid failed to cope with the load, leaving millions of people without water, electricity and heat. Why did it happen?
First, the conditions are truly extreme. There has not been such a winter for almost 10 years, and in some places absolute records of negative temperatures have been set. Usually in Texas in winter there is a plus or a weak minus, and here in some places frosts are up to -20. Accordingly, the infrastructure and people are not ready for this. On the icy roads, dozens of dead, about 12 million people are experiencing problems with a shortage of water (pipes freeze), up to 3 million households were left without electricity and heat, people were forced to evacuate from their homes or warm up and spend the night in cars.
Those who have gas, but no electricity, warm themselves like this. Photo by Ashley Landis / AP
... According to statistics, 100% of the population of Mars are robots.
In recent days, only the lazy has not watched reports on the Perseverance rover (Perseverance, emphasis on the last "e"). On the Internet, you can even listen to the wind of the red planet, it barely breaks through the buzzer of the rover's mechanical joints.
Today we will change the focus a little and talk about more mundane things. What technologies enable the rover to work? How are cloud companies involved in space exploration? And in general - what are the plans of mankind for the Martian lands in the framework of an ambitious mission.
Cloud computing helps the rover stay on trackAmazon Web Services (AWS) recently talked about the role cloud computing plays in processing data from Perseverance.
During the entire mission, NASA is going to store and process arrays of information coming from Mars in the AWS cloud. For a moment, every day the rover sends a record number of photos, audio and video recordings.
AWS Representative Jaime Baker presents Cape Canaveral King's Ticket to Name the Mars Rover 2020 winner Alex Mather and his family. Photo: (NASA / Aubrey Geminiani) Recall that during 2020, a competition was held in the United States for the best name for a new Mars mission.
Hey! I work at Joom on the infrastructure team. In my practice as a code reviewer, I regularly encounter the fact that the author does not understand that the reviewer is not a magic black box into which you can throw any changes and get feedback on them. The reviewer, like the author, as a human being, has a number of weaknesses. And the author should (if, of course, he is interested in a quality review), help the reviewer as much as possible.
I want to tell you how the author of the code can simplify the work of the reviewer and thereby increase both the quality of the review and the productivity of the reviewer. This article may well be used in your internal corporate documentation as a guide for preparing changes for review. It, in fact, was compiled from such a guide.
Why do we do a code reviewYou probably know this without me. Therefore, I will tell you about the very basics, without going into details.
Recently, more and more news appears like "video chips are not enough", "processor shortage", "laptop supplies are under threat." And this is not just news, but a reflection of reality, which is even worse than it might seem. According to experts, problems in the semiconductor market will persist until the end of this year.
The main reason is the digitalization of everything and everyone, the transition to online, the increase in traffic volumes, etc. The industry turned out to be unprepared for the post-covid reality. As a result, we have a global shortage in the chip market that threatens the normal operation of many industries, from automotive to laptop and industrial systems.