All Questions

3
answers

Pick letters from the name string

I need to get the first letter of the name and the first after the space, in case it would look like this: $string = 'Renan Rodrigues'; Expected result: 'RR'; How to do this?     
asked on 03.01.2017 / 16:49
3
answers

Difference between attr = val, attr="val" and attr = 'val' in JavaScript?

Is there any difference in using the selector in the following ways, or one that is "correct"? [name="val"] [name='val'] [name=val]     
asked on 06.03.2018 / 19:01
6
answers

Regular expression to accept numbers and letters, regardless of sequence

I have the following problem, I need to validate a password field with at least 8 characters, being at least 2 numbers and the rest letters, they can be in any position. 12abcdef abcdef12 The expression I made works in the cases above: f...
asked on 14.07.2017 / 19:54
4
answers

How to change the color of a select when selecting an option

I have a select and I am trying to change the color of it when selecting an option (for example I'm changing the color to red ). Using some attributes like hover , focus , active and checked I can even do what I w...
asked on 24.01.2017 / 14:05
2
answers

How to pass parameters to an Array in javascript?

How can I dynamically pass information to array below? Example: I have a list of 40 coordinates in a text file, for example, or in a Access database, how do I pass these coordinates to the variable locations below? > v...
asked on 09.11.2016 / 01:11
2
answers

How do I create local domains to test my sites and applications?

For my tests, I'd like to create a redirection of any domain to localhost:porta on a local computer under Windows. I thought it would be possible for the hosts file in C:\Windows\System32\drivers\etc\hosts doing something like:...
asked on 10.12.2016 / 16:19
3
answers

How to execute .sh file on button

It is possible to execute a file that .sh in a button , example: /bin/importa.sh   in a <a href""></a> is also good.     
asked on 21.10.2016 / 21:02
2
answers

What is happening in my C program?

I just have to add the lines but the values do not make sense: Hereisthecode:#include<stdio.h>#include<stdlib.h>intmain(){intmatriz[6][6],i,h,somalinha[6];for(i=0;i<=4;i++){for(h=0;h<=4;h++){printf("Digite os valores de uma...
asked on 12.12.2016 / 04:56
3
answers

Size of a String

A char in the C language takes up 1 byte in memory.Ex: char ch;//a variável ch esta ocupando 1 byte na memória And a vector of char better known as string , its size in bytes will be counted according to the vector numbe...
asked on 30.09.2016 / 16:21
2
answers

What is an output parameter?

Consider the following example: appendFooter(s); Analyzing the function signature, we have the following: public void appendFooter(StringBuffer report) The s parameter is considered in the above function to be an output paramete...
asked on 11.10.2016 / 12:43