All Questions

2
answers

How does the sort method work?

I'm starting to learn javascript and while looking for examples of sort I came across the following code: var numeros = [1,2,3,4,5,6,7,8,9,10]; numeros.sort(function (a, b) { return (a % 2 !=0); }); console.log (numeros); The console ou...
asked on 22.10.2017 / 16:56
2
answers

View or temporary table?

Looking at a code problem I came across different approaches to similar problems, where one has a view for data access, and another uses a > temporary table . I've been searching and found this question that deals specifically with...
asked on 10.09.2018 / 18:41
4
answers

Regex for Site Cifras as CifraClub

I need a Regex that works fine, and in JS, to get only the chords of a cipher like this: link The problem is that I never mess with Regex. Any ideas?     
asked on 14.01.2014 / 01:56
4
answers

Return Array with name of all files in directory

I need my HTML5 page to return a Array with all file names and extensions in a directory within my site. I can do this in other server-side languages, but I'd like to do it in JS. is there such a possibility?     
asked on 16.12.2013 / 19:33
2
answers

What is the shortcut in NetBeans to close all "+" functions?

I remember I had this function in NetBeans. It is a shortcut that closes all (+) of the functions or divs .     
asked on 27.05.2017 / 12:07
4
answers

How to split a string every 2 characters?

I'm trying to split a string every two characters, but I do not have a delimiter and need to use the entire string. Example: String exemplo= 99E65A78 String ex1= 99 String ex2= E6 String ex3= 5A String ex4= 78     
asked on 22.11.2017 / 12:38
2
answers

What are the differences between a code editor, text editor and an IDE?

What's the difference between a code editor, a text editor, and an IDE? People claim that Visual Studio Code is a code editor and not an IDE. I really see that the difference between VS Code and VS is unparalleled, it's as if VS was a God i...
asked on 13.02.2018 / 07:01
2
answers

echo is printing HTML tags

I made a script for newsletter subscription, the user sends the email to cadastre.php and from there the script receives an echo in a message with a button, the problem is that the button does not appear, what appears is the tag, see : Script...
asked on 28.12.2018 / 13:41
2
answers

What is the function of this "= &" operator in PHP?

If I have the code below: $x = 1; $y = 1; if($x =& $y){ echo "ok"; }else{ echo "não"; } No matter what value I put in $x or $y , it always falls in echo "ok" . Now if I do not define one of the variables, it fal...
asked on 07.05.2018 / 01:18
4
answers

Copy from txt file to the other

int main(void) { void copiaConteudo(FILE *arquivo, FILE *arquivo1); FILE *arquivo = fopen("tmp/exercicio.txt","r"); if (arquivo == NULL) { printf ("Não foi possível abrir o arquivo"); return 1; } FILE *arq...
asked on 31.08.2017 / 21:50