All Questions

2
answers

How to loop with while using array

Hello, I would like to know if it is possible to loop using while so I need the values of the $newsmedias1 array to be placed in while in order to make the appearance of the items with the given IDS in the Array as lo...
asked on 22.10.2015 / 15:41
1
answer

What is Browser Link?

When I use Visual Studio (I am using the 2013 version, I do not know if the previous ones have) with Browser Link enabled, there is always a GET request in the browser (F12) console. What would this request be? XHR finished loading: GET "htt...
asked on 10.11.2015 / 14:48
1
answer

How useful are indexers?

I was watching and Csharp has indexers. Second definition on the microsoft: site    Indexers allow instances of a class or structure   are indexed only as vectors. Examples: internal class Indexador<T> { private T[]...
asked on 27.05.2015 / 19:46
1
answer

Is there any way to add css rules by javascript?

If I have the following tag style : <style> body{ color:red; } </style> Would it be possible to add a new css rule as within that style through Javascript ? For example, I want to add this to the end of...
asked on 14.12.2015 / 17:54
3
answers

Replacement of variables in the body of the message

I am creating a message profile system, when the system performs a certain action it picks up a certain profile and triggers the message as email , however I would like it in the message body when writing {{variavel}} would like it to t...
asked on 16.05.2015 / 21:47
3
answers

Check if variable is a positive integer

To check if a variable is a positive integer , I'm resorting to a regular expression: #!/bin/bash id="$1" regNumTest='^[0-9]+$' if ! [[ "$id" =~ $regNumTest ]]; then echo "Parâmetro #1 deverá ser um inteiro!" exit 0 fi Wil...
asked on 25.03.2015 / 16:08
1
answer

How to convert a JavaScript array to array in PHP?

The system gives me a JavaScript matrix to work on the page. I can get this array with PHP, but I do not know how to convert from JavaScript to PHP and work using PHP. This is an example of the JavaScript array: <script type="text/...
asked on 02.03.2015 / 04:04
1
answer

How to customize the Auto_Increment numbering in MySQL?

I have a Contrato column in my MySQL database, it is as Auto_Increment, numbering the contracts as 1 , 2 , 3 in> ... But I needed, if possible, to organize these numbers in the actual format of contract numbers. It works lik...
asked on 28.02.2015 / 20:37
1
answer

How to put autocomplete in Sublime Text 3?

I use Sublime Text 3 to program only that autocomplete is not working. I already installed the plugin Sublime Intelcode but it still does not work. The suggestions do not appear when I write the code. How to solve?     
asked on 01.03.2015 / 01:18
2
answers

Add attribute to an element

In JavaScript we can add attributes to a given element in at least two ways: var div = document.createElement('div'); div.id = 'meuId'; or var div = document.createElement('div'); div.setAttribute('id', 'meuId'); Is there any differenc...
asked on 02.04.2015 / 16:47