All Questions

4
answers

Get TAG value from external HTML link

I need to get the value (or values, if I have more than one) of TAG <link> of an HTML from another site. Attempt: $url = 'http://localhost/teste/'; $content = trim(file_get_contents($url)); preg_match("/<link(.*?)>/i",$co...
asked on 11.02.2014 / 20:28
3
answers

What is the difference between Full Text Search and LIKE?

I've heard a lot about Full Text Search (FTS) lately, and they told me that I should use this instead of writing queries with LIKE . But how to use Full Text Search ? What are the advantages and disadvantages? And when is it really better...
asked on 21.03.2017 / 16:51
1
answer

What do these words mean in Git / GitHub: fork, clone, track?

I have just started using Git and until this week I only used the Visual Studio interface. After several problems with Git through the interface, I started solving some things on the console, so now I'm really having to learn Git. I find several...
asked on 29.07.2016 / 20:26
3
answers

How do I know if I am on an anonymous or normal chrome page?

I'm making a page html to use locally on my PC with Windows , but I needed some way to know how I'm in the browser Chrome . I wanted to present a phrase that would change depending on the way I was. Example: Incognito...
asked on 02.08.2017 / 12:09
1
answer

Detect AdBlock and display a message

What I'm trying to do is to detect Adblock Plus and display a message.     
asked on 20.09.2015 / 09:35
2
answers

Actual difference between operator point (.) and operator arrow (-) in C?

What is the real difference between the two operators. I know that the (->) operator is used when the variable is a pointer, and that it is equal to (*ptr).membro . Well, if I declare a pointer of the type of a structure, I mu...
asked on 19.02.2015 / 03:29
3
answers

Is there any equivalent of "$ (document) .ready ()" with pure Javascript?

In jQuery, we need to use $(document).ready() to know if the document has been loaded and then safely run our jQuery script. According to the jQuery documentation    A page can not be manipulated safely until the document is "ready....
asked on 29.06.2016 / 21:31
5
answers

What is the shortest and most performative way of writing fibonnaci in Javascript?

Javascript is a language that allows you to write the same thing in several different ways. The best answer should describe the syntax features used to arrive at the goal which is a shortest possible function and a very performative one regar...
asked on 20.03.2014 / 17:27
2
answers

Grouping and adding array with PHP

I need to know how to group and add array , but I'm not sure how to do it. $array = array("vermelho", "vermelho", "vermelho", "verde", "azul", "azul"); I wanted a return like this 3 1 2 That is, it will group and add up the amoun...
asked on 08.01.2014 / 00:06
1
answer

What can be done to improve the performance of a very large CSS (384KB)

My site has a style sheet, already mined, with a total size of 384KB. If possible, what can I do to improve performance? I thought about compressing with GZIP, which would leave the sheet at 59KB, and even split that sheet into 2 sheets of...
asked on 17.12.2014 / 03:08