Legislative initiatives, especially in the United States, have often become the subject of irrepressible controversy and sincere misunderstanding. So today I want to tell you about bill 246 - a legal act that was considered in the Senate of Indiana in 1897.

imageThree years earlier, rural physician Edward Goodwin (1825-1902), who considered himself a good mathematician, published an article in the American Mathematical Months in which he claimed to have solved the problem of squaring the circle.
Papay 2 april 2021, 17:08

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.
Papay 23 march 2021, 13:13

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.

imageThose who have gas, but no electricity, warm themselves like this. Photo by Ashley Landis / AP
Papay 19 march 2021, 17:30

image
The moon is the closest neighbor of the Earth, and now mankind continues to actively study our satellite. Not so long ago, the Chinese sent a station to the moon, which completed a number of scientific tasks. Now the European Space Agency plans to join the direct study of the moon. Only not its surface, about which a lot is known, but caves.

Yes, there are caves on the moon, and quite a few. Some of them can serve as a reliable shelter for lunar colonists, which will allow them to avoid a number of dangers that threaten on the surface. ESA collected lots of ideas proposed by scientists and engineers and selected the five most promising. Then another stage of selection followed, so now the agency has three ideas that are planned to be implemented. They are all interconnected.
Tags: moon, Robots
Papay 13 march 2021, 13:07

Usage example:

#include "print.h"

int main() {
print("number:", 25,
"fractional number:", 1.2345,
"expression:", (2.0 + 5) / 3
);
}
number: 25 fractional number: 1.2345 expression: 2.33333 Generic calls are not only easier to type than standard printf (), but there will be no more compiler warnings that the format character after% "is of the wrong type.

Genericprint, can print all major C types, integers, signed and unsigned, floating point and pointers:

char *s = "abc";
void *p = main;
long l = 1234567890123456789;
unsigned char byte = 222;
char ch = 'A';
print("string:", s, "pointer:", p, "long:", l);
print(byte, ch)
string: "abc" pointer: 0x402330 long: 1234567890123456789
222 <0xDE> 'A'65
Different types are displayed in different colors, the palette can be customized, or the color can be turned off altogether.
Tags: printf
Papay 10 march 2021, 16:00

image

Finally, in the topic of navigation interference, we got to the coolest and most interesting. Moreover, this interesting turned out to be not so difficult technically.

This is interesting - spatial processing of signals from antenna arrays. In ordinary, especially amateur, radio communication and radio navigation practice, this is still rare. This is due to the additional multiple costs for the number of radio paths. But sometimes this is perfectly acceptable. For example, in mobile communications. Spatial processing, MIMO, is widely used here. Even a regular WiFi hotspot has had it for a long time.
Papay 5 march 2021, 22:03

To increase the attractiveness of smartphones, manufacturers put as many different programs on them as possible. This is clear. Just take and delete the unnecessary ... Stop.

It turns out that some programs cannot be removed. For example, on selected Samsung models unable to delete Facebook (there is only the 'disable' option). They say that the Samsung S9 also comes with Microsoft's "non-removable" apps preinstalled.

These smartphones are for example. The same problem with other models. Many have non-removable programs from the manufacturer itself.
Papay 26 february 2021, 11:10

Hello, Umumble.

A couple of days ago this tweet caught my eye:
C++ - Stateful TMP#cpp #cplusplus #Cpp20https://t.co/Q3sh3XtiHC pic.twitter.com/AkCRB2zvrT
- Kris Jusiak (@krisjusiak) October 21, 2019


In short: once again, in C ++, they found some kind of crap that appeared there on its own, emergent-convergently, like the slime from a short science fiction story I read as a child, which accidentally appeared in the city sewer and grew to a universal organic solvent.

Let's figure it out, since it won't be long (according to the text of the Standard, I jumped no more than a couple of hours). And fun, referencing the Standard is always fun.
Tags: C++, C++20
Papay 13 february 2021, 14:25

imageApple has filed a patent for a charging cable that does not break at the connector thanks to the use of materials of varying hardness in the protective layer, according to the website of the US Patent and Trademark Office.
Apple admits that bending the cable near the connector causes unnecessary stress in the wire connection, causing the cable to fail. To prevent this, the company has developed a special design, which provides for the presence of a sleeve in the cable sheath, consisting of three layers of different stiffness. In the patent application,
Papay 11 february 2021, 10:47

image
Honestly I warn: take this text with a certain amount of skepticism. I just recently started to get acquainted with the internals of PHP, but I would like to tell you about what is happening behind the scenes bug # 75237 .
Papay 20 november 2017, 13:25
1 2 3 4 5 ...