All Questions

1
answer

How to get the HOST IP through the domain in PYTHON?

In PHP, to get the ip of a given domain, I usually use the gethostbyname function. PHP example: gethostbyname('www.google.com'); //201.17.165.210 What about Python? How can I do this?     
asked on 20.07.2016 / 18:19
2
answers

How to use the IN clause in Lambda?

There was a doubt that I thought would be easy, but the content I found I could not understand. Good is as follows: I have the tables    "Customer" and    "ErrorsProducao_Ciente" where they relate 1 to N, that is, 1 error can af...
asked on 12.09.2016 / 19:43
1
answer

How to receive external data via XML

I'm creating an android app and I need it to receive and display on-screen information from the tide board of the site below: link     
asked on 15.08.2016 / 16:09
2
answers

The contenteditable attribute does not work

<input type="email" name="email-empresa" id="email-empresa" placeholder="ex: seuemail@domínio.com" class="txt-input" contenteditable="false" value="[email protected]"> I'm having trouble making the input content not editable, because la...
asked on 29.08.2016 / 16:07
1
answer

Check click position on a ListView

I have a screen that has ListView inside it, I need to identify which line was clicked to point to the correct location. How can I do this?     
asked on 12.09.2016 / 13:47
1
answer

Hangman Game in Python

I'm doing a hangman game in Python. Every loop the program asks the letter or the word: #Jogo perguntarNovamente = True game_on = True while game_on: palavra_secreta = palavra() senha_list = [l for l in palavra_secreta] chances =...
asked on 17.09.2016 / 05:03
1
answer

Is there any risk in using mysqli_insert_id?

Let's suppose a website with a relatively high flow rate. A user X inserts a record into the database at the same time as another user Y inserts another record. Considering that the procedure of this insertion of user data X and user Y is:...
asked on 09.07.2016 / 18:25
1
answer

Replace point by comma in Javascript

Good evening In the example below add the values of 3 text boxes, and the result comes out in the fourth, how to make this result appear with a comma and not a dot? <html> <head> <script type="text/javascript"> func...
asked on 11.08.2016 / 23:10
1
answer

input effect using jQuery

I'm making a input with an effect equal to Android. Well here in this example I put input and select . input is working perfectly, when it is with the focus it turns blue. But select does not turn blue, can any...
asked on 11.08.2016 / 12:57
1
answer

Is there any way to validate an input in angular JS without using form?

I have input that I want to validate via AngularJS. But this input is not inside a form. So when trying to access the form's validation information, I was not successful: <div class="form-group"> <input name="nick" type="te...
asked on 11.08.2016 / 19:54