Questions tagged as 'string'

0
answers

Problem sending files larger than 23 MB per socket

I have a class that inherits from Process that takes advantage of a connection SSH to do a port-forwarding to a remote machine and send a certain number of bytes. import socket from multiprocessing import Process,Pipe class SshC...
asked by 14.11.2017 / 23:42
1
answer

Check value String in SQL

I am creating a trigger in SQL, in which I use the UDFs to invoke a JAVA code. This Java code returns a string, from which I have to check the value to allow an action or not. What SQL function can I use to check the contents of that String in a...
asked by 11.08.2017 / 13:50
1
answer

HashMap shows me duplicate elements java

My question is How can I show only the records I have in my hashmap without repeating them? Ex: I have a arraylist<String> loaded with data, I also have a text file loaded with data inside. File content .txt : 25, Argenti...
asked by 03.09.2017 / 04:34
2
answers

Some func / class to create class instances by a char * or string in C ++

It is possible to create a instance of a class by searching for char * or string in c ++ 11 strong>: ex: class MyClass:basic_class{}; basic_class* m = (basic_class*)new(typer("MyClass")); I do not know if it's "typer" something li...
asked by 25.05.2017 / 13:33
2
answers

Python - Convert float to string

I have a matrix of floats of 3000 by 17, the theme is that in the first column I want to save strings. With the following code: tabla = numpy.empty((3000, 17)) nombres = ['i0{i}_0{d}_{n}.bmp'.format(i = imagen, d = distorsion, n = nivel)...
asked by 10.04.2017 / 20:52
0
answers

Exception in thread "main" java.lang.NumberFormatException: For input string: "through"

I need some help with this error and I have tried many things but I do not know what D can be: Here I leave the code to see if you can help me: package Modulos; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; im...
asked by 05.03.2017 / 02:54
2
answers

I compare two Strings and I do not get into the IF

System.out.println("Dime el tablero al que te quieres conectar :"); tablero = sc.nextLine(); // AQUI LO LEO COMO UN STRING EN EL CLIENTE tablero = tablero.trim(); byte buffer_tablero[]; buffer_tablero = tablero.getBytes(); DatagramPacket men...
asked by 13.12.2016 / 20:00
3
answers

Problem obtaining data from EXTRA_TEXT [closed]

In the design company for which I work we try to create a private messaging application which allows us to share different URLs from different applications such as social networks, so that when we share it, it is added in the body of the message...
asked by 18.11.2016 / 13:54
0
answers

GUI Delete Fix when Selecting

Thinking that you enter 4 or more values and I try to eliminate any line of those 4 values by selecting the line and pressing a "Delete" button, which method I must implement in < strong> "Delete" , in this case occupy "Hide" . I need yo...
asked by 05.05.2016 / 17:06
2
answers

Android Studio - Convert a String field to Date

Good morning, I am using a String field called "fecha_ini" and it contains a date in the following format "01-02-2018". What I need is to add one day to this date, but for that first I have to cast it from String to Date if I'm not mistaken. To...
asked by 29.11.2018 / 15:19