All Questions

2
answers

How to get the elements of a list by pairs in python [closed]

I have this list in python [a,b,c,d,e,f,g,h] How can I get the elements by pairs stored in a list of tuples. In this way: [(a,b),(c,d),(e,f),(g,h)]     
asked on 04.09.2016 / 20:54
1
answer

Error with the file paths in PHP when doing require ()

I am working with PHP and a problem has arisen that I have been looking for and I have not been able to solve. The problem comes when in a class I try to require another class in this way: require 'DAO/usuario.php'; But when it comes to the...
asked on 02.03.2017 / 09:52
2
answers

Restart or close a program by entering a word in C?

I have this code, the program does its thing and when it ends it indicates that to continue the 0 is entered or to close any other number, what I want to do is that to continue enter the word 'continue' or follow 'and to close the word 'leave'...
asked on 29.03.2017 / 20:22
1
answer

Increased memory usage of my program in JAVA SE

I have created a simple program in JAVA SE with NETBEANS where I have 3 buttons and every time I press a button I send information to my database, at all times I have the connection open and every time I press the button //Creo la conexión st...
asked on 27.03.2017 / 11:49
1
answer

Does the method (Copy ()) of the lists in python make sense? (Python)

The method copy() makes a superficial copy of the list, but I do not see any sense to use it, if I want to make a copy of the list I simply do: lista2 = lista1 Instead of: lista2 = lista1.copy() What is the copy() metho...
asked on 17.03.2017 / 23:29
1
answer

Are there differences between access using charAt or bracket?

As of this another question on the site and its answers, I had a question about how to access the characters of a chain. On the one hand it is suggested to use charAt (eg cadena.charAt(0) ) to access the character that is in...
asked on 25.04.2018 / 19:27
2
answers

Intent.ACTION_CALL fails on android 6+

MY CASE I have this method to make direct call from android: public void Llamar(String Numero) { Intent Llamada = new Intent(Intent.ACTION_CALL).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Llamada.setData(Uri.parse("tel:" + N...
asked on 14.03.2017 / 04:39
1
answer

Get the values of each cell of an HTML table with String.Split in vb.Net

Previous information: I'm making an application in which I copy part of the code of a web page (from a table of this to be exact) in order to put the information of this in a database. For that, he had thought about dividing the chain that the u...
asked on 26.04.2018 / 11:15
2
answers

Show a field considering 10% of another column using SQL Server

I would like you to help me with this query, I want the costs that are greater than 1000 to show me in another column increased to 10%. At the moment I only have: SELECT * FROM tarifa The result is the following: I hope you can...
asked on 22.03.2017 / 23:00
1
answer

What is the difference between using a field validator or validating the model using clean?

Assuming I have a Django model like the following: class Comprobante(models.Model): punto_venta = models.IntegerField(blank=True) And I want to validate the model and particularly that punto_venta is a value from 1 to 9999. I und...
asked on 01.05.2018 / 06:18