Python3:ImportError: /usr/lib/python3.7/cv2/cv2.so: undefined symbol: PyInt_Type

I have installed opencv2 with ‘pip3 install opencv’ command. After that, I’ve opened the python3 terminal from ‘python3’ command. Then typed import cv2 to test installation. Command-line gave me an error.

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.7/cv2/__init__.py", line 3, in <module> from .cv2 import * ImportError: /usr/lib/python3.7/cv2/cv2.so: undefined symbol: PyInt_Type 

Can I fix this. Anyone can help me?

Which is the correct XOR Gate Symbol

I’m confused between 2 XOR gate symbols, they have a minor difference but I’d still like to know if they truly are identical.

One looks like – this

The other, like this

Notice, how for one of them the input lines are connected all the way and for the other, it’s not. Are they both identical, as I suspect or is there something I’m not aware about?

Which is the correct XOR Gate Symbol

I’m confused between 2 XOR gate symbols, they have a minor difference but I’d still like to know if they truly are identical.

One looks like – this

The other, like this

Notice, how for one of them the input lines are connected all the way and for the other, it’s not. Are they both identical, as I suspect or is there something I’m not aware about?

Server error when entering a percent symbol in search?

Fuzzing a website and came across an odd behavior. The site has a search bar, it sends queries via a GET request with the standard ?q= parameter. When I try the standard XSS payloads such as <script>alert(1);</script> I get a 403 error.

When I type a percent symbol in the search bar it just sanitizes it to ?q=%25 however when I enter the percent sign in the URL directly it doesn’t seem to sanitize it (e.g. ?q=%).

When I send this query to the server it responds with an error page saying Uh-oh! We've got a problem on our end. When I enter %00 directly in the URL it gives me a page back with a blank search term.

Any ideas on what’s going on?

Server error when entering a percent symbol in search?

Fuzzing a website and came across an odd behavior. The site has a search bar, it sends queries via a GET request with the standard ?q= parameter. When I try the standard XSS payloads such as <script>alert(1);</script> I get a 403 error.

When I type a percent symbol in the search bar it just sanitizes it to ?q=%25 however when I enter the percent sign in the URL directly it doesn’t seem to sanitize it (e.g. ?q=%).

When I send this query to the server it responds with an error page saying Uh-oh! We've got a problem on our end. When I enter %00 directly in the URL it gives me a page back with a blank search term.

Any ideas on what’s going on?

Выдает ошибку “cannot find symbol” Помогите пожалуйста

public class GuessGame {     Player p1;     Player p2;     Player p3;      public void startGame() {         p1 = new Player();         p2 = new Player();         p3 = new Player();          int guessp1 = 0;         int guessp2 = 0;         int guessp3 = 0;          boolean p1isRight = false;         boolean p2isRight = false;         boolean p3isRight = false;          int targetNumber = (int) (Math.random() * 10);          System.out.println("I'm thinking of a number between 0 and 9...");          while (true) {             System.out.println("Number to guess is " + targetNumber);              p1.guess();             p2.guess();             p3.guess();              guessp1 = p1.number;             System.out.println("Player one guessed " + guessp1);              guessp2 = p2.number;             System.out.println("Player two guessed " + guessp2);              guessp3 = p3.number;             System.out.println("Player three guessed " + guessp3);              if (guessp1 == targetNumber) {                 p1isRight = true;             }              if (guessp2 == targetNumber) {                 p2isRight = true;             }              if (guessp3 == targetNumber) {                 p3isRight = true;             }              if (p1isRight || p2isRight || p3isRight) {                 System.out.println("We have a winner!");                 System.out.println("Player one got it right? " + p1isRight);                 System.out.println("Player two got it right? " + p2isRight);                 System.out.println("Player three got it right? " + p3isRight);                 System.out.println("Game is over");                 break;             } else {                 System.out.println("Players will have to try again.");             }         }     } } 

Can the “$” symbol be safely considered as universal when making a graphic depicting money?

Want to get a sense of any best practices of using the “$ ” dollar sign in the context of an image in order to depict a universal idea of money.

UPDATE: My task was to create an icon/graphic used in an e-commerce checkout process which depicted the idea of an ‘invoice’. It had to make sense in a global context (not just USD). Here is the exploration I had done: enter image description here

And here is the icon I ended up picking (without a symbol): enter image description here

Thanks for all the insights and weigh-ins everyone offered. VERY helpful!