## Error cannot find symbol

Tengo la clase Persona y la Formulario y la persona tiene usuario password edad y telefono y me encuentro en el main error cannot find symbol cuando intento settear los valores.

Como veis están todas las variables, ahroa os pongo el main

public class Tarea1SF {      /**      * @param args the command line arguments      */     public static void main(String[] args) {         File miFichero = new File("c:\lista.dat");         Formulario f = null;         if (!miFichero.exists()) {             f = new Formulario();         } else {             f = deserializa();         }         Scanner entrada = new Scanner(System.in);         boolean salir = false;         int opcion; // Guardaremos la opcion del usuario          while (!salir) {             System.out.println("*********************************************");             System.out.println("1. Anadir un nuevo usuario");             System.out.println("2.Listar usuarios");             System.out.println("0. Salir");             System.out.println("*********************************************");             System.out.println("Elija una de las opciones");              opcion = Integer.parseInt(entrada.nextLine());              switch (opcion) {                 /*                  solo introducimos los datos que no forman parte de la reparacion                  */                 case 1:                     Persona p = new Persona();                     System.out.println("Introduzca el nombre de usuario: ");                     p.setUsuario(usuario);                     System.out.println("Introduzca la password: ");                     p.setPassword(password);                     System.out.println("Introduzca la edad: ");                     p.setEdad(edad);                     System.out.println("Introduzca el telefono: ");                     p.setTelefono(telefono);                     f.aniadirPersona(p);                     System.out.println("\nPresiona Intro para continuar....");                     entrada.nextLine();                     break;                 case 2:                     System.out.println(f.toString());                     System.out.println("\nPresiona Intro para continuar....");                     entrada.nextLine();                     break;                 case 8:                     salir = true;                     serializa(f);                     entrada.close();                     break;             }          }     }      private static void serializa(Formulario f) {         FileOutputStream miFos = null;         ObjectOutputStream miOos = null;         try {             String miFichero = "PilaDePartes.dat";              miFos = new FileOutputStream(miFichero);             miOos = new ObjectOutputStream(miFos);             miOos.writeObject(f);             miOos.close();             miFos.close();          } catch (Exception ex) {             Logger.getLogger(Tarea1SF.class                     .getName()).log(Level.SEVERE, null, ex);         } finally {             try {                 miFos.close();              } catch (IOException ex) {                 Logger.getLogger(Tarea1SF.class                         .getName()).log(Level.SEVERE, null, ex);             }             try {                 miOos.close();              } catch (IOException ex) {                 Logger.getLogger(Tarea1SF.class                         .getName()).log(Level.SEVERE, null, ex);             }         }     }      //Deserializamos el Objeto ArrayList desde un fichero     private static Formulario deserializa() {         FileInputStream miFis = null;         ObjectInputStream miOis = null;         Formulario f = null;         try {             String miFichero = "PilaDePartes.dat";             miFis = new FileInputStream(miFichero);             miOis = new ObjectInputStream(miFis);             boolean seguir = true;             while (seguir) {                 try {                     f = (Formulario) miOis.readObject();                  } catch (ClassNotFoundException ex) {                     Logger.getLogger(Tarea1SF.class                             .getName()).log(Level.SEVERE, null, ex);                 } catch (EOFException endOfFileException) {                     seguir = false;                  } catch (IOException ex) {                     Logger.getLogger(Tarea1SF.class                             .getName()).log(Level.SEVERE, null, ex);                 }             }             miOis.close();             miFis.close();          } catch (IOException ex) {             Logger.getLogger(Tarea1SF.class                     .getName()).log(Level.SEVERE, null, ex);         } finally {             try {                 miFis.close();              } catch (IOException ex) {                 Logger.getLogger(Tarea1SF.class                         .getName()).log(Level.SEVERE, null, ex);             }             try {                 miOis.close();              } catch (IOException ex) {                 Logger.getLogger(Tarea1SF.class                         .getName()).log(Level.SEVERE, null, ex);             }         }         return f;     }

}

## What is a symbol code?

I am a physicist learning a bit of Information theory.

I have encountered a word (“Symbol codes”) on Wikipedia and cannot find what it means.

Please let me know what does a symbol code mean.

## PR ? Symbol not changed in fresh links

I have disabled page rank checking..
Also cleared PR cache.
But the fresh links also showing PR ?
I did the bugreport.
I dont want PR metric in “Last verified URLs dash board.
How can I stop it.

## Binary Search Symbol Table

Hi I’m attempting to self teach myself from Algorithms (Sedgewick) and ran across the following problem:

3.1.15: Assume that searches are 1,000 times more frequent  than insertions for a BinarySearchST client. Estimate the  percentage of the total time that is devoted to insertions,  when the number of searches is 10^3, 10^6, and 10^9.

As stated in the problem Searches (S) = 1000 * Inserts (I)

• $$S = 10^3 \to I = 1$$
• $$S = 10^6 \to I = 10^3$$
• $$S = 10^9 \to I = 10^6$$

At this point in the book we are using simple arrays and linked lists to back symbol table (not efficient hash maps, trees, etc). This would mean searches take ~log2(N) time and insertions take ~N/2 time (assuming a uniform distribution on where inserts are placed).

Am I correct in calculating the % of insert to search time would approximately be:

$$\frac{Inserts \times N/2}{Searches \times \log_2(N)}$$

Using $$Searches = 10^3 \times Inserts$$ this reduces to

$$\frac{N/2}{(10^3 \times log_2(N)}$$

This would mean the percentage depends heavily on the initial size of the symbol table and is not a steady percentage that we can use to answer the question.

Any suggestions for what I am overlooking, should I be making an assumption about the initial size of the table?

## Awk statement to not working for colon symbol

I am working on a AWK script which should replace the value of 3 column from an excel csv sheet to a particular value and the awk should ignore the first and the last line. The problem is with the string i am trying to update is causing issue, Below is the command i am using:

awk -v sq="'" -F, '     t{print t} {a=t=$0} NR>2{$  3=sqops_data<dbms=Teradata::instance=idw-prod>sq;t=\$  0}     END {print a} ' OFS=, test1.csv

But, it is giving me syntax error at :: .

## How to show currency symbol and price in separate elements?

I want to show currency symbol and amount in separate html elements such as: BD18.00

into this:

<span>BD</span><span>18.00</span>

is it achievable?

## 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 –

The other, like

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 –

The other, like

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?