All Questions

4
answers

Get complete number of an input

In <input> , I have the following value:    00001545455 When I retrieve the same with Javascript , it comes without the first 4 zeros. Can anyone help me? I'm already passing it on to the function I'm using. The problem...
asked on 12.03.2015 / 17:18
2
answers

Why can not f-strings be used as a docstring?

According to PEP 257 , you have:    A docstring is the literal string that occurs as the first statement in a module, function, class, or method definition. Such a docstring becomes the __doc__ special attribute of that object....
asked on 17.08.2018 / 20:00
1
answer

Delphi property

I have a component that has the function of connecting to a specific hardware. It connects through the network or serial port. Something like the code below: TConexao = (conRede, conSerial); THardware = class(TComponent) private FAt...
asked on 21.10.2014 / 12:44
2
answers

Object Comparison

The code below generates a false , but the objects have the same attribute values, is there any method that compares the objects, but their attributes, not the object itself? Produto P5 = new Produto(1, 0, 10,1000.0,"Samsung","smartphone...
asked on 08.02.2014 / 19:10
1
answer

Rotate an arrow on a canvas

I need to draw a stream dynamically based on the user's choices. In this flow I want to draw the chosen hypotheses (blue circles with numbers) and the direction between the choices (lines with arrows). For example: node 1 for node 2. JSFiddl...
asked on 16.01.2015 / 11:13
1
answer

Invalid parameter error while doing PDO take action

I'm trying to learn how to use PDO, so I've already gone VERY looking for everything to understand it. So I'm at a point that left me pretty confused. I have the following code, it is the: _conecta_banco.php <?php class conectar_banco...
asked on 12.06.2014 / 05:42
1
answer

How to get the complete zip using reverseGeocodeLocation in xcode?

I am using reverseGeocodeLocation to fetch the zip code and it works fine; however, it only has 5 digits of zip code. How to get the full ZIP code? Here is the code: - (void)locationManager:(CLLocationManager *)manager didUpdateToLo...
asked on 16.04.2014 / 00:15
2
answers

Consuming C # Functions (dll) in a C / C ++ project

I need to call / reuse some functions I have in a DLL, developed in C #, within a project made in C. I've already looked for some things and what I managed to make legal work was this project: link This step-by-step article describes how...
asked on 30.04.2014 / 13:24
1
answer

How to know the "size" (quantity of properties / attributes) of an object in JavaScript?

Assume an object as follows: vendas = { obs1:{ Venda1:{Regiao:"Norte", Valor: 200}, Venda2:{Regiao:"Sul", Valor:100} }, obs2:{ Venda1:{Regiao:"Norte", Valor: 50}, Venda2:{Regiao:"Sul", Valor:20}...
asked on 07.05.2014 / 16:56
3
answers

Prevent user from pasting special characters

I am creating a system in which the user must type in an input the name of the mother with only alphanumeric characters. I'm using the code below that is working, but I noticed a flaw. Even allowing not to enter other special characters, if th...
asked on 06.01.2015 / 21:50