All Questions

1
answer

Different syntax for throw

I have a question that has come up to me using the keyword throw of JavaScript. According to the documentation the syntax is:    throw expression; Now, I've seen several examples using throw as if it were a call to a function, that i...
asked on 02.01.2017 / 16:05
1
answer

Problem when using the AudioManager if other app open

Good morning everyone, I have an application that plays a radio in streaming through a service. The service works perfectly, I can close the application and continue listening to the radio. Even if they call me on the phone, the radio stops a...
asked on 21.12.2016 / 11:41
1
answer

Improve performance by obtaining multiple Mysql records

I want to know what is the best way to get several records of a mysql database, I leave a simple example of my situation. I have a static method that queries a database and converts the result into an object that I have defined. class Persona...
asked on 01.03.2017 / 18:04
1
answer

C ++ Initialization of an arrangement of structures

this is my code: struct objeto { string etiqueta; string tipo; string descripcion; int codigo; int cantidad; bool existe; } articulo[21]= //Obviamente todos tendran datos diferentes { articulo[0]={"Atlas Humano","Li...
asked on 18.02.2017 / 22:32
4
answers

Get a value from a set of rows in Excel

I have a table in Excel that represents the purchase orders. Ex: pedido | linea ped. | estado línea ----------------------------------- 1 | 1 | Cumplido 1 | 2 | En progreso 2 | 1 | Cumplido...
asked on 21.02.2017 / 12:21
4
answers

How to connect phonegap / Apache Cordova to SQL Server?

I have just started in the world of hybrid applications, with Apache Cordova the detail is that it is only HTML, CSS and JS; the problem is that I do not know how to connect direct JavaScript with SQL. Does anyone know how to do it, or any al...
asked on 28.12.2016 / 04:16
3
answers

Search for words within another

I want to know if you have entered a domain or an ip. I have already tried several things: addr = raw_input('Introduce la ip o el nombre de dominio: ') addrs= [".com", ".es"] if addr in addrs: print "es un dominio" else: print "e...
asked on 24.02.2017 / 18:30
1
answer

Encrypt data sent by url

I am sending a id by url to the index.php page that loads certain data respectively of the id that it obtained through a session variable, the detail is that if the user 1 with id 1 changes the id 1 to id 2 in the url will consult data t...
asked on 22.02.2017 / 20:33
4
answers

Go through an ArrayList of Items

Good morning, I can not go through an ArrayList that is made up of Items. Inside these Items I keep different information such as game name, launch date, URL, etc ... With a foreach loop I can enter each Item, but I can not get specific in...
asked on 27.02.2017 / 11:35
1
answer

JButton with round edges

My question at this time is whether there is any method or class predefined in java to be able to create a button with round edges.     
asked on 22.04.2017 / 01:24