All Questions

2
answers

Change color to a single element

What I want to do is that, when I move the mouse over a div between several with the same class, it changes color and the others stay with their initial style values. .cunitario{position:relative;float:left;margin:0.5% 1.5%;height:250px;...
asked on 04.06.2017 / 07:51
1
answer

problems to validate with preg_match and filter_var

I have a problem trying to validate input with preg_match and filter_var it does not validate me. I append the code to see what I'm failing. <?php include_once "conexion/conexion.php"; if(isset($_POST['guardar'])){ $nombresyapellidos...
asked on 01.06.2017 / 03:57
1
answer

Make a MySQL query from Inno Setup

I'm doing an installer, which needs to send a query at the end of the installation and after mounting the sMySQL service. I have no idea how this is done, this would be in the CODE section in PascalScript. Once the installation is finished, a...
asked on 30.05.2017 / 22:26
1
answer

Error with the format of a foreach cycle, web service

I am creating a client in php, which consumes a web service in php, when trying to execute the client in the browser a message appears, Warning: Invalid argument supplied for foreach () in C: \ xampp \ htdocs \ 04_soap_mysql \ index.php on li...
asked on 05.06.2017 / 01:09
1
answer

My promise does not call then () on a karma test

I have a problem making mocks with promises for a test with karma: When I execute the "resolve (value)" of my promise, it does not jump to the then , does nothing, does not go to the "error", does not go to the "resolve" and the test is it r...
asked on 06.06.2018 / 15:22
2
answers

How to change the underline color of a TextView in Android?

I'm adding the underline to TextView like this: TextView register = (TextView)findViewById(R.id.txt_register); SpannableString content = new SpannableString(getString(R.string.text)); content.setSpan(new UnderlineSpan(), 0, content.leng...
asked on 05.06.2018 / 23:23
1
answer

Collect JSON from an API with Angular 2

I try to pick up the JSON provided by an API that I have created in a service, but I do not receive it for whatever reason. getLibro(id: string){ return this._http.get(this.url + 'libros/' + id) .map(res => {...
asked on 05.06.2017 / 11:18
1
answer

Pipe malfunction, fork

I am studying how to make pipes to child processes; I wrote this test code that creates a series of children (4 in this example), and opens pipes between them and the parent process (at least I would like that): #include <stdlib.h> #incl...
asked on 12.06.2018 / 10:13
1
answer

Center graph Pertersen in jupyter

I would like to know how I can make the graph go straight and not tilted as it is. I'm doing it with the IDE Jupyter and Python 3.6. This is the code: import networkx gP = { 1: [2,5,6], 2: [3,1,7], 3: [4,2,8], 4: [5,3,9], 5: [1,4,10],6: [1...
asked on 07.06.2018 / 13:27
1
answer

Spring boot security http basic with oauth2 resource server

I am trying to configure a spring boot web application to use the basic http security which will be used for the web pages, and additional I need to implement OAuth2 security for an android application to connect. The problem I have is that t...
asked on 06.06.2018 / 00:44