All Questions

1
answer

Connection Node Js Mariadb

Hi, I'm trying to make a connection between nodejs and mariadb through Xampp, but when I run it does not return anything, I should return the 1 generated by the query, but nothing else does not send me anything. Does anyone know where I'm fying?...
asked on 14.12.2018 / 20:25
1
answer

Serialize and deserialize objects and properties in Java

I have a problem with the serialization and deserialization of objects in Java, and I think it's because I do not really understand how it works. My program consists of some spreadsheets as in Excel, but by console. I have a class "Book" and a c...
asked on 08.12.2018 / 17:57
1
answer

Android 2.3 send direct mail to GMail, Outlook, Yahoo

I am developing an application where there are registered users in a MySQL table where there is a "mail" field. In the App, there is a button "I forgot my password", when the user clicks, he receives a "message" with his password in his mail...
asked on 21.03.2017 / 08:09
1
answer

Simplify method using lambda expressions

I have this simple method: public void setComboBoxItems(List<User> users, List<Client> clients) { for (User user : users) { usersIds.addItem(user.getId()); } for (Client client : clients) { clientsIds.a...
asked on 15.12.2018 / 16:49
1
answer

Open a file with Java from a server that requires authentication

Good, I am trying to make an application in java, in which the program asks for the name of the document (in my case a pdf) and searches inside a shared folder remotely, if it exists, opens the pdf document . I am currently doing this as follows...
asked on 20.03.2017 / 20:00
2
answers

Add 0 on the left - PHP [duplicated]

My problem is as follows: When creating a new client, I need 6 digits to be stored in the database, starting with 000001 . The problem is that when I save it, in MySQL I keep only 1 and I need you to keep all 6 digits. The fiel...
asked on 18.03.2017 / 21:14
2
answers

Count occurrences followed by a value in a table

Hello, I have a table that has a value ID and other values among which is nombre . ############### # ID # Nombre # ############### # 4 # Juan # ############### # 3 # Juan # ############### # 2 # Juan # ############### # 1...
asked on 17.03.2017 / 04:51
1
answer

NPC creates a file instead of a directory

What is the reason why npc creates a file .ebextensions. instead of a folder .ebextensions. I try to use excec and mkdir simple .ebextensions. Command and it does not work. ncp('package.config', './build/.ebextens...
asked on 17.03.2017 / 19:39
2
answers

Convert Map to POJO

I have a map like the following: Map<MiObjeto, List<OtroObjeto>> and I want to convert it to a POJO that is defined in the following way: public class UnObjetoMas { private MiObjeto miObjeto; private List<OtroObjeto>...
asked on 22.03.2017 / 23:56
2
answers

Create a branch without files from an existing repository.git

I want to create a branch without files for an existing repository. What I have done, is this: make a new branch erase everything (less .git and .gitignore , that is, the files of my project, not those of control or those...
asked on 14.03.2017 / 18:16