NumPy in Python. Part 3

Foreword of the translator


 
Hello again! We continue our series of articles on translating mana about numpy. Enjoy reading.
 
 
 
Part 1
 
Part 2
 
The original
 
 

Comparison operators and testing of values ​​


 
Boolean comparison can be used for elementwise comparison of arrays of identical lengths. The return value is an array of Boolean True /False values:
 
 
a = np.array ([1, 3, 0], float)
b = np.array ([0, 3, 2], float)
a> b
array ([True, False, False], dtype = bool)
a == b
array ([False, True, False], dtype = bool)
a <= b
array ([False, True, True], dtype = bool) ...[/False][/False][/True][/h][/h]
+ 0 -

How to prevent Windows 10 from rebooting after

How to prevent Windows 10 from rebooting afterupdates.Hello.  Surprisingly, the answer to this question (more precisely, "how to make everything so that it was like before") is poorly lit in runet. And in general, the ready solution still needs to be looked for. However, the problem requires a solution. the system does not restore all applications after a reboot. So:   We go to the configuration of policies. This will work even on a local machine without a domain. To start the policy editor, run: Start -> Run (or Win + R), gpedit.msc On the left side of the tree, select: Computer Configuration, Administrative Templates, Windows Components, Windows ...
+ 0 -

Curiosity discovered the organics on Mars, which billions of years

Curiosity discovered the organics on Mars, which billions of years
 
 
The Curiosity rover continues to explore Mars and to please us new data about it. Now Rover conducted a chemical analysis of sediments in the Gale crater, which, apparently, are lake. NASA reports that the results of the analysis confirmed what scientists suspected long ago: the rocks of the Red Planet are rich in organic matter. In particular, they contain aromatic and aliphatic hydrocarbons and thiophene .
 
 
Curiosity scientists published their results in the authoritative scientific publication Science...
+ 0 -

A wireless power system has been developed for all electronics in the human body

A wireless power system has been developed for all electronics in the human body  
 
Every year, medicine is moving forward - and offers new types of prosthesis, artificial organs and electronic devices that are implanted in the human body. Accordingly, more and more people can afford an electric "upgrade". But the main problem of implanted electronics is how to ensure a constant and stable power supply of devices built into the body?
 
 
Different variants of are considered. Extraction of energy from the environment: piezoelectric elements (vibration), ...
+ 0 -

We get acquainted with the hackerspace of Nizhny Novgorod, CARD. Part 2

We get acquainted with the hackerspace of Nizhny Novgorod, CARD. Part 2  
 
We continue the interview with the founder of the Nizhny Novgorod hackerspace CARD - Artem Poptsov (see also
? first part
).
 
 
What equipment is there? And in general, how much space?
 
Hackerspace can be divided into four main zones: installation and computer zone, computer-assembly area, presentation area and kitchen. According to the zones, the following equipment is distributed:
 
 
3D-printers: RepRap, ToyREP.
 
Computers: 3 workstations, several laptops, single-board computers (Raspberry Pi, CubieBoard)
 
Laser printer and scanner.
 
Machine tools: drilling machine, emery.
 
Hand tools: drills...
+ 0 -

[Анонс]Hubs for competition at CodinGame.com in seven cities of Russia

[Анонс]Hubs for competition at CodinGame.com in seven cities of Russiatl; dr:
Contour for the second time organizes off-line sites for the online competition for programming game bots on CodinGame. The sites will be in 7 cities: Yekaterinburg, Izhevsk, Innopolis, Novosibirsk, Perm, Rostov-on-Don and St. Petersburg.
 
 
All will pass on June, 16th, on Saturday (in Innopolis - on June, 18th, on Monday). Come, if you want to get away from work tasks and program something unusual. The link for registration is at the end of the post.
Hello! I like to participate in programming competitions. For example, I'm engaged in sports programming - recently as part of ...
+ 0 -

Google published 7 principles of ethics AI &lt;{short}&gt; &lt;{full}&gt; <div class="post__text post__text-html js-mediator-article"> <div style="text-align:center;"> <img src="https://habrastorage.org/getpro/habr/post_images/489/182/57f/48918257fb3

<{full}>
Google published 7 principles of ethics AI          
 For several months, Google has been fighting with Microsoft and Amazon for  the multimillion-dollar contract of the Pentagon  on cloud services and artificial intelligence systems (see          
 For several months, Google has been fighting with Microsoft and Amazon for  the multimillion-dollar contract of the Pentagon  on cloud services and artificial intelligence systems (see
 
For several months, Google has been fighting with Microsoft and Amazon for
the multimillion-dollar contract of the Pentagon
on cloud services and artificial intelligence systems (see <{short}>  For several months, Google has been fighting with Microsoft and Amazon for the multimillion-dollar contract of the Pentagon on cloud services and artificial intelligence systems (see  For several months, Google has been fighting with Microsoft and Amazon for the multimillion-dollar contract of the Pentagon on cloud services and artificial intelligence systems (see ? leakage of internal correspondence of top managers). Unfortunately for the management, stick in the wheel insert own employees. In March 2018 they started collection of signatures against the development of ...
+ 0 -

Secure interaction in distributed systems

Secure interaction in distributed systems
 
 
Hello Habr!
 
 
My name is Alexey Solodky, I'm a PHP developer at Badoo. And today I will share the text version of my report for the first Badoo PHP Meetup. Videos of this and other reports with the mitapa can be found here .
 
 
Any system consisting of at least two components (and if you have both PHP and the database, it's already two components), encounters whole classes of risks in the interaction between these components.
 
 
The platform department in which I work integrates new internal services with our application. And solving these problems, we have accumulated experience, which I want ...
+ 0 -

Protected smartphones: who needs it and how do they differ from each other?

Hello! Today we propose to talk about protected smartphones. Our experience in this matter is very wide, and therefore we decided to start with this.
 
 
Protected smartphones: who needs it and how do they differ from each other?  
 
The topic is topical and quite fashionable, and there are a lot of protected gadgets. Manufacturers of smartphones, laptops, tablets and even electronic books realized that security can act as an advantage over competitors, and in every possible way "push" it in advertising. However, the problem is that the consumer in the nuances is not particularly versed. He understands "security" as "absolute" and, having bought the device with a sticker ...
+ 0 -

Computer game: protection of intellectual rights of developers

Computer game: protection of intellectual rights of developersThe video game includes many components - it's the source code of the program, graphics, music, script, characters, etc. All these objects can be protected by intellectual rights. We'll figure out what rights are at the developers of computer games and how to protect them.
 
 

What can be protected


 
In the legislation of the Russian Federation there is no indication of a computer game as a separate object of intellectual rights. In practice, computer games are referred to computer programs and /or composite works (which include several objects of intellectual rights). And in that, and ...[/h]
+ 0 -