• 0 Posts
  • 30 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle


  • There is no single person responsible for Cyrillic script. It is mostly believed to be created by mixing and changing Greek and Glagolic scripts by the scholars of Preslav Literary School, which was indeed in Bulgaria. After a while, Peter the Great changed it a lot. And then Stalin stomped out almost all the deviations in the usage of the script.

    The last part is mostly why it is considered Russian. A lot of languages suffered because of Moscow just forcing them to use the version of Cyrillic that Russians were using.




  • rand() generates a number from 0 to a constant defined in stdlib, which usually corresponds to the architechture of your compiler. So, for 32 bit systems (assuming all the software in the line is 32 bit, too) it will be 2^31-1 = 2 147 483 647, as 1 bit in integers is reserved for negative numbers and 1 number is 0.

    Though, by design it is guaranteed to be at least 32767, which is a value for 16 bit integers.







  • Probably not, if we’re speaking about the next adapter in the line. They both use 4 pins, and there are no active conversion in the adapter itself, it just connects the pins like this:

    USB ↔ PS/2
    +5V ↔ +5V
    D-  ↔ D
    D+  ↔ CLK
    GND ↔ GND
    

    So, as long as next adapter is not doing something funny with PS/2 signals, it should be ok for bare USB 2.0 connection.



  • Might depend on where you were learning.

    On paper, when I was learning Descartes’ coordibate system, we used Y as up and X as left-right. And when it was time to plot in 3D, we used Z to “extend” the plane into yourself and away from yourself.

    You just hold your sheet of paper perpendicular to the ground (or just use a whiteboard) and it all makes sense.







  • The point is that manufacturers can screw up standards and being a symmetrical connector does not cure idiocy in the heads if some people. Yes, the standard explicitly says you have to short opposing data lines for 2.0, but that does not mean everybody will comply with it. (The author of the video is not an idiot, they just demonstrated that it’s possible)

    The most common example of this I can think of right away is male-male connectors with type A USB. They are explicitly prohibited, yet many manufacturers create them and use in their products.

    That’s why I said that no standard can protect you, you’re just relying on people not being dumb and actually reading the paper you published.