All Questions

4
answers

How to generate random numbers in Python?

I'd like to know how to generate random numbers in Python. I'm with version 3.4.     
asked on 24.07.2015 / 02:02
9
answers

Search via ajax during typing in input text (autocomplete)

I made a search using ajax that when clicking a button triggers a request with the searched term and returns with data that fills combobox html ( select ). So far so good. However, I found it interesting to change this behavi...
asked on 02.01.2017 / 17:39
4
answers

How to sort the data of a query by default values?

Using as an example, I have a certain table of users, where the city of that user is, is a reference to another table. I need the order of these users in a query to be given according to the location of the current logged-in user. For example...
asked on 14.09.2015 / 21:53
6
answers

Function that lists letters of the alphabet

How to convert the letters of the alphabet into an array of numbers according to its sequence? The array should start from # 1, not zero. So the letter A would be 1 , B would be 2 , C would be 3 , an...
asked on 15.03.2015 / 17:01
7
answers

Count elements on the screen

I would like to know if there is a possibility that I can count the elements on the screen, for example a function that lists the amount of <li> on my webpage. How could I do this? And how would function work?     
asked on 01.12.2015 / 14:54
5
answers

How to change the value of two variables in Java?

Is it possible to create a function in Java that changes the value of two variables without having to declare a temporary variable? For example: int a = 8, b = 3; if(a > b) { // algo aqui, sem declarar uma variável "tmp" } // agora a...
asked on 04.02.2014 / 13:04
3
answers

Session limitation for saving data

I have a slow query in Oracle to list all accesses for a user, so I thought of writing the result to a Session , the average of records returned is 600, with%? Would you have any other better way to save this data?     
asked on 30.09.2015 / 21:29
4
answers

What is the difference between '==' and '===' operators in JavaScript? [duplicate]

I would like to know the difference between the two operators that would be: (1): == (2): === If possible, I would also like to understand the use of their opposite operators in this case: (3): != (4)...
asked on 30.01.2014 / 17:01
2
answers

Serialize object list for JSON: A circular reference was detected while serializing an object of type

I'm trying to Serialize a list of objects to Json and I have received the following error: An exception of type    'System.InvalidOperationException' occurred in   Microsoft.Web.Extensions.dll but was not handled in user code   Additio...
asked on 07.10.2014 / 15:36
1
answer

Fullscreen Video on Android Webview

I have an application made in Android Studio that uses webview and runs a remote web application. The video is displayed perfectly in the webview. However, the fullscreen option is not available in the embedded player on the page. See the...
asked on 10.08.2017 / 17:53