All Questions

2
answers

Data entry without echoing on the screen

entrada = input("digite a senha") If I use the input function, what the user types will be echoed on the screen. How to make sure nothing is shown on the screen?     
asked on 10.08.2016 / 17:36
2
answers

Know idle mouse time

I have an intranet system, which sellers attend some classes. Sometimes they leave the window open at that URL for days. The system via ajax has a counter, so if the page is open, it will be requesting and recording on the bank that the fa...
asked on 05.12.2016 / 18:56
1
answer

Effect of bypassing a div's border, as if drawn by "hand"

I want to make a border effect, which in the hover of a square div, the border is "drawn", leaves the top left of the div, fills to the upper right, descends to the right side, returns to the left through (as if you were drawing the border with...
asked on 04.09.2016 / 21:00
1
answer

Equation of second degree in Python

The following code computes roots, vertices, and delta of second-degree equations. The code runs clean the first time, but when I loop it to restart it gives an error: Traceback (most recent call last): File "python", line 58, in <modu...
asked on 10.09.2016 / 19:07
2
answers

Hide error messages

Consider the following shell script: ping 8.asd.8.8 -c1 -q > /dev/null if [ $? == 0 ] then echo 'ok' else echo 'erro' fi This ping will return an error and this error is handled in else just below. But even using the -q pa...
asked on 16.09.2016 / 02:24
3
answers

Redirect page if it has resolution less than 767px [duplicate]

Searching the internet, I found this question here in SOpt: Redirect to mobile site In the question was a code that redirects a page if it is accessed by some mobile device. I'm using here and it works normally. I thought it would...
asked on 28.10.2016 / 01:50
1
answer

Mask for monetary values

I wanted to create a mask for monetary values, where the person would enter and enter the scores and separations of the decimal places automatically. Ex:    $ 1       R $, 11       $ 1.10       $ 11.00       $ 110.00       $ 1,110.00...
asked on 11.11.2016 / 18:10
2
answers

Compare words from a text with a list of Enum's

I have an Enum that contains a list of values. I have a method where I get a text as a parameter. This method, besides going through Enum, breaks the text by words. The main function of the method is to see if there is any word in the text that...
asked on 16.11.2016 / 15:48
3
answers

Format output type double with dot instead of comma

I have a collection of coordinates to popular repeater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = [ <asp:Repeater ID="rptMar...
asked on 22.09.2016 / 18:37
1
answer

mysqli_result Object ()

I spent the last 3 hours trying to find the error ... maybe it is sleep, but I will put my script very complicated so someone gives me a light. $query_passaporte = "SELECT num_compra, data_compra, plano, passaporte_paypal FROM paypal WHERE 'em...
asked on 13.08.2014 / 19:13