All Questions

1
answer

Regex javascript password

Good I have this pattern created /^(?=.*[a-zñ])(?=.*[A-ZÑ])(?=.*[áéíóúÁÉIÓÚ])(?=.*\d){2,4}(?=.*[\$\/\.])[a-zA-ZáéíóúÁÉÍÓÚñÑ\$\/\.\d]{7,15}(?=.*\d$)/; And I must control this: size 8,16, alphabetic characters 2 minimum, with a capital letter...
asked on 13.02.2018 / 19:09
2
answers

How to solve the spaces between the inline-block elements?

When I use elements with the inline-block property, a space appears between the elements: html, body { margin: 0; padding: 0; } .padre .hijo { display: inline-block; padding: 5px; background-color: red; } <div cla...
asked on 06.12.2017 / 20:22
1
answer

Reload the same URL with a different hash (fragment)

In response to an AJAX call: $.ajax({ type: "POST", dataType: 'json', data: { 'descripcion': descripcion }, url: "<?php echo site_url();?>"+"admin", succ...
asked on 24.01.2018 / 15:17
1
answer

Validate a JSON and print it formatted

Suppose I copy a string in a textarea, for example: var str = "{ hello: 'world', places: ['Africa', 'America', 'Asia', 'Australia'] }"; So with JSON.parse(str) I parsed the string in JSON format, but I would like to show the result i...
asked on 24.01.2018 / 12:58
2
answers

How to run Java applications (.jar) without installing JDK - JRE on the computer?

Good afternoon, it happens that I made a Java application that uses external .jar for reports and other functions of the application. Also use SQLite. NetBeans by default creates a folder called 'dist' that contains the executable nameapp.jar; a...
asked on 29.01.2018 / 00:05
1
answer

Swap items from one list to another

I have an example of these lists: <h2> Lista 1 </h2> <ul class="lista1" id="lista1"> <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4</li&g...
asked on 31.08.2017 / 19:06
3
answers

Effect blur on a banner with CSS

I have a banner and on it an avatar-like image. I have tried to add the blur effect to my banner but I have an error because the effect is done on my avatar and not on my banner. To understand what I want, I share my JSFiddle . This is my...
asked on 26.01.2018 / 05:02
2
answers

Operator test in a conditional

I'm starting to make simple scripts in Linux, and I have a doubt when sending parameters to one. The script is as follows: #!/bin/ksh if test $1 -lt $2 then echo "La cadena 1 es menor que la cadena 2" else echo...
asked on 25.07.2017 / 14:40
2
answers

Doubt binary search recursive unsorted vector

There is a solved recursive exercise that I do not understand:    Implement the method int rsearch (int i, int d, const T & x) of the vector_t class that performs the recursive binary search on an unordered vector, returning the position...
asked on 24.07.2017 / 15:28
2
answers

Keep the data when going from one select to another

I have the following situation, I want to pass data from select to another but keep it in the source. I leave the code to see if you can help me. Example: have the value 10203 T-03 T-Shirt at both the origin and the destination....
asked on 08.08.2017 / 21:20