All Questions

1
answer

Goal score with a bouncing ball

I'm doing a simulator of a bouncing ball and I wanted to add things like a goal and that if you get scoring goal and points. But in the case of the "Red team" it marks two points because the if cycle is done twice, which I do not understand h...
asked on 08.03.2018 / 22:04
3
answers

Authentication with another laravel table 5.4

I have a project in Laravel 5.4 and I want to use the authentication system that it brings, but with the information that is found in another table that has already been created through the migrations. The truth is that I have surfed all over...
asked on 07.06.2017 / 21:38
1
answer

How to add a new item within an array property in an object?

Hi, I'm trying to use the for in function to find the name of an array-like property that I have inside an object and if there is an item stored inside the property. But the problem is that it is saving the item in all the arrays and what I want...
asked on 15.03.2018 / 22:04
2
answers

Capture a group without capture or group capture with capture

Today answering a question on this site I found myself with a very interesting possible solution, because I accidentally deleted a part of the solution and that solution worked although it did not make sense for me. Without further ado:...
asked on 03.03.2018 / 17:32
1
answer

Browse, compare and assign dictionaries and lists

I have an array called labels such that: labels Out[15]: array([ 0, 1, 2, ..., 7, 10, -1]) I also have a dictionary called IDnodes which contains for each key an array of Boolean type and each array is of a different length...
asked on 08.05.2017 / 09:00
1
answer

Nusoap and symfony3

Problem to connect with web service. My code is as follows: $client = new \nusoap_client('clientesoap', true); $param= array('parametro1'=> value1, 'parĂ¡metro2'=>'value2'); $result = $client->call('metodo', array('parameters' => $p...
asked on 18.05.2017 / 10:15
1
answer

Configure Spring Boot with two DataSources

I am using Spring Boot 2.X with Hibernate 5.X to connect two MySQL databases (Bar and Foo). I want to be able to list the different entities, with all their attributes (ID, Name and relationships @OneToMany/@ManyToOne ), of each of the...
asked on 07.03.2018 / 16:31
1
answer

How do I use the ajax mode of select2 with optgroup and option?

Following the documentation I try the following: var data = { "results": [ { "text": "Life Good", "children": "[{\"id\" : 1, \"text\" : \"Lg Prueba 1\", \"element\" : \"HTMLOptionElement\"}, {\"id\" : 2, \"text\"...
asked on 09.05.2017 / 08:09
8
answers

Center an img-responsive bootstrap

I know it's probably easy, but I can not focus the image. Using HTML5 and Bootstrap; <div class="col-md-6 "> <img src="../img/012.jpg" class="img-responsive" alt="titulo"/> <div class="h-30"></div>...
asked on 25.05.2017 / 21:50
1
answer

Configure error pages from web.config or IIS with a subdomain

I can not show my error page when in url I have a subdomain and this page does not exist. In the configuration of my web.config I have the following: <system.web> <customErrors defaultRedirect="~/ErrorPag/Error500"...
asked on 15.05.2017 / 20:39