All Questions

3
answers

What is the $ () [dollar sign followed by parentheses] in BASH?

I have seen some code examples in BASH where $() is used to execute a command. For example: sudo chown -R $(whoami) . What does this dollar sign followed by the command encapsulated by the parenthesis, ie $(comando) ?     
asked on 05.09.2018 / 16:40
3
answers

Array sequenced within dropdown

Folks, I have a code that starts the arrays if I set the values, but I would like this sequence to be automatic. Let me show you to get clearer. <?php $busca_produtos = new Produto; $produto = $busca_produtos->busca_todos_produtos()...
asked on 04.09.2018 / 14:35
3
answers

How to list the properties of an object in php using foreach?

I have the following class: class Usuario{ private $nome; private $profissao; function setNome($nome){ $this->nome = $nome; } function getNome(){ return $this->nome; } function setP...
asked on 02.08.2016 / 16:26
1
answer

Is there any way to exclude the automatic space that appears after the comma in python?

A brief example: zero = 0 print('exemplo',zero) The program shows:    example 0 I wanted without the space:    example0     
asked on 26.09.2017 / 11:25
2
answers

Palindrome check function

I have the challenge of writing a code to check if a text is a palindrome or not. I have not finished the code at the moment, it's like this: function checkPalindrome(str) { var direita = []; for(var i = 0; i<str.length; i++){...
asked on 15.07.2018 / 20:40
2
answers

Is it necessary to open and close a connection when entering data?

In% insert% in an Excel spreadsheet is it necessary to open and close the connection? I have analyzed the following, depending on how much logging can take up to 1h30 to make *loop* que faz .    Example : The procedure returned 44...
asked on 11.10.2017 / 15:09
2
answers

How to fix this error "Can not convert from 'int' to 'char []'

Why is this error displayed? I believe the logic is right.     
asked on 07.10.2017 / 23:04
2
answers

"Share on WhatsApp" link

Based on this code <li><a class="whatsapp" title="<?php esc_html_e( 'Compartilhar no WhatsApp', 'grandmagazine' ); ?>" target="_blank" href="whatsapp://send?text=<?php the_permalink() ?>&url=<?php echo get_p...
asked on 04.08.2018 / 18:26
3
answers

The null value automatically changes to 0

I'm doing a vehicle registration, I need it to register that whenever a vehicle is registered to zero instead of the value null, I tried by default, but it does not record the information. I'm using SQL Server along with C # in visual studio....
asked on 28.08.2017 / 20:00
1
answer

I could not quite understand the encapsulation in OOP [duplicate]

I did a programming logic course and now I'm doing logic OO, but it came in the encapsulation part and I'm having a little trouble understanding. What would it be and how is it used?     
asked on 25.09.2017 / 02:31