Questions tagged as 'sintaxe'

1
answer

syntax error, unexpected (arg, expecting end-of-input)

I came across this syntax error:    syntax error, unexpected (arg, expecting end-of-input) larguraDaLinha = 40 str = '--> text <--' puts str.ljust larguraDaLinha puts str.center larguraDaLinha puts str.rjust larguraDaLinha puts str...
asked by 10.09.2017 / 00:13
1
answer

How to select greater number of records based on another SQL table

I have an IMOVEIS table ID | Tipo | endereço 1 | Casa | Rua teste 2 | Casa | Rua teste 3 | Apartamento | Rua teste And a sales table id | ID_do imovel 1 | 1 2 | 2 I need to know based on the sales chart, wh...
asked by 26.09.2016 / 14:21
1
answer

How to configure "gdb" for the syntax Intel

I'm trying to set gdb to syntax intel , however I'm getting the following message: Ambiguous set command "dis intel": disable-randomization, disassemble-next-line, disassembly-flavor, disconnected-dprintf... I'm tempted by the...
asked by 18.10.2016 / 18:03
2
answers

Map array on function return - PHP

Testing location (xampp), I get on the return of the function mapping an array. Example: <?php $res = $obj->Function()[0]['name']; ?> And on the production server (typical hosting) is an interpolated form has an error of type "Pars...
asked by 21.06.2016 / 03:32
1
answer

Underline between two variables

I have the following code in a .sh file: echo "$pasta/Dados/$MA/$ano\_$mes/$tabela" With all variables set correctly. However, there you run the script, echo results in data-integration/Dados/MA1/2015\_11/HT_MA1_ESS_SEG While I would...
asked by 12.02.2016 / 20:57
1
answer

Sort result with 4 different columns

I have a table with 4 different columns, 2 of them indicating the beginning (date and time) and another 2 indicating end (also date and time). Is there a way to sort the result so that it prioritizes the most recent event? for example: If the en...
asked by 27.02.2015 / 22:50
2
answers

Ruby Syntax

What happens in this part here? def permut(vet) return [vet] if vet.size < 2 perm = [] vet.each{ |e| permut(vet - [e]).each{|p| perm << ([e] + p) } } perm end The first few lines I understand, it will check...
asked by 17.08.2018 / 23:54
5
answers

Difference between single and double quotation marks in PHP

What is the difference between single quotes and double quotation marks in PHP? Yesterday I was working with a JSON string from google calendar I used explode('\n', .. to separate a string. When I used the explode in "Mon Jul 7,...
asked by 06.02.2014 / 20:24
1
answer

JavaScript escaping backslash \ as I do not let this happen!

Good morning, I have a problem, I wanted some help from you. Something is causing the content passed in the function to escape the control bar \, I need them not to escape because this function renders a diagram where all of them are part of ren...
asked by 23.05.2017 / 14:57
5
answers

Difference between single and double quotation marks in PHP

What is the difference between single quotes and double quotation marks in PHP? Yesterday I was working with a JSON string from google calendar I used explode('\n', .. to separate a string. When I used the explode in "Mon Jul 7,...
asked by 06.02.2014 / 20:24