All Questions

2
answers

How to number the alphabet and add your letters to get a result for each written word?

I wanted to get the result of words with their added letters ... Example: a=1 b=2 c=3 if I type the word "bac" the result would be "6". Because you have added the 3 letters a+b+c=6 . I tried this code but it d...
asked on 13.09.2016 / 01:55
3
answers

Responsive font according to text size

How can I make a responsive font according to the size of the text? I have a site: radioturn.com.br The name of the song is updated constantly, I would like to remove the mark and let it stop, however, some songs are too big and do not fi...
asked on 08.01.2017 / 20:16
5
answers

What is the best way to create elements? [duplicate]

for(var i=0; i< numTotalPerguntasDig; i++){ strInterface += "<ul>"+ "<li class=\"col-md-2 \">"+ " <button type=\"button\" class=\"btn btn-danger btn-info-bloco form-control\">"+...
asked on 17.08.2015 / 13:57
4
answers

View the last 5 lines of a file with PHP?

Through Shell , I can display the last 5 lines of a file using the tail command. So: > tail -n 5 public/index.php I'd like to do the same thing in PHP. But I did not want to load the whole file, but actually only display...
asked on 02.09.2015 / 21:48
3
answers

How can I check if the last position of the array has been filled?

How can I check if the last position of the array has been filled? I tried the array_pop function but it seems to cut the array element, I just want to check if at the last position of array there is something ...     
asked on 20.09.2016 / 21:06
1
answer

Code considered only at compile time may contain Undefined Behavior?

When designing a function that adds two values of any distinct classes, I can write the following generically: template <typename T, typename U> decltype((*(T*)0) + (*(U*)0)) add(T t, U u) { return t + u; } The interesting part is...
asked on 21.01.2015 / 16:42
4
answers

String manipulation - split ()

Is there any way to give split() to string and on the same line get the position I want? For example: String nome = "Dan Lucio Prada"; String sobrenome = nome.split(" "); //aqui quero pegar só o sobrenome [Prada]     
asked on 18.09.2015 / 22:01
1
answer

Form validation error in JavaScript [closed]

I'm having a validation error, when I hit the input of submit button it does not test the function of JavaScript and it goes right where action is going to go. <HTML> <HEAD> <TITLE>Cadastro...
asked on 29.11.2015 / 02:23
1
answer

dynamic url url

As I do for my url that is like this: detalhe.php?cat=1 stay type so detail / television my .htaccess : RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)$ index.php?ur...
asked on 29.10.2015 / 13:14
1
answer

How can Rule 110 be a good way of knowing if a language is Turing-complete? Because?

My question comes from the following implementation of Rule 110 in CSS (This! In CSS!). The doubt comes from the definition of Turing completeness, which says that a system is Turing-complete if it is able to solve any computational problem...
asked on 03.12.2015 / 10:50