All Questions

3
answers

Count elements of an XML file that contain a text

I would like to use PHP to show only the elements of an XML with the value <disponible>si</disponible> I have an .xml file with the following format: <?xml version="1.0" encoding="UTF-8"?> <libros> <OctavioP...
asked on 31.03.2017 / 03:19
1
answer

The for cycle in javascript, can you alter variables?

I have a question, I found the following code to calculate the factorial number of a whole number, but I am doing my desktop run and I can not understand the code because it is assumed that in the process of the factorial it multiplies by all th...
asked on 06.04.2017 / 19:36
3
answers

eliminate need for permissions on android

I am trying to publish my first app on Play, and it asks me to also provide a privacy policy since my app uses permissions that require a privacy policy:    (android.permission.CAMERA, android.permission.RECORD_AUDIO,   android.permission.REA...
asked on 03.04.2017 / 20:50
3
answers

Error adding sums with decimals in javascript

I'm trying to add N values with decimals with javascript, the problem is that it manages to add: example 53.113,20 + 12,50 = Unexpected number I have a function that converts my totals in currency format: Number.prototype.formatMoney...
asked on 08.04.2017 / 00:19
3
answers

Counting Java vowels

I'm doing a program with which you have to enter a sentence ending in point and you have to say for example the vowel "a" comes out in position 7 and so with all the vowels. The first part that is a finished sentence in point I have done well. B...
asked on 04.01.2019 / 14:19
3
answers

Remove string before a point in PHP

Is there any way to remove a string before a point in PHP? I have the following: 1. paqueteNombre.appNombre 2. paqueteNombre2.appNombre2 and I would like to have only the name of the app. I still can not find documentation on how to carr...
asked on 10.04.2017 / 19:31
1
answer

Connect an active directory or LDAP with PHP

I am trying to connect the active directory or LDAP of the window with an application ( GLPI ) made in PHP. Connection parameters: $ds = ldap_connect($host, $port) // me retorna verdadero @ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)...
asked on 10.12.2018 / 20:12
2
answers

accept numbers and character - in jquery

$('input[name="test"]').bind('keydown', function(e) { var keyCode = (e.which) ? e.which : event.keyCode return !(keyCode > 31 && (keyCode < 48 || keyCode > 57)); }); This code validates that the data entry contains only...
asked on 06.12.2018 / 21:39
2
answers

How to call a method that belongs to another class? JAVA POO

Hi, I'm doing a program on the weight of people and I have to do several methods one of them is: averageWe're in the class Statistics of People but my problem is that I do not know how to call a variable or the method getPeso () which is of the...
asked on 07.12.2018 / 03:50
2
answers

Restart Mysql before the maximum connections arrive

I have a MySQL DB running on a Debian machine in GCP, which sometimes reaches the limit of connections, which leaves the application stopped until it is restarted and then the application can be reconnected. Currently has a maximum number of...
asked on 12.12.2018 / 14:44