All Questions

1
answer

Input [number] accept only numbers in Firefox

How do I make the input [number] field accept only numbers in Firefox? In Chrome, Opera and Edge works perfectly, but in Firefox the [number] field accepts letters and spaces. <inputtype="number" name="EstoqueProd[]" class="form-control"...
asked on 01.11.2017 / 15:27
2
answers

How to do a search with Query Builder in Laravel?

I need to display the name of the doctor who requested a patient report, but with Laravel I tried to show this information in View like this: {{laudo->paciente->medico->nome}} Then I received the error message:    Trying to g...
asked on 01.11.2017 / 15:19
1
answer

How to select text columns in the editor?

I'm editing some files with VS Code and need to select an entire column of the file. For example: Insert Into Tabela (Data, Nome) Values (2017-07-05, 'Huginho') (2017-08-08, 'Zezinho') (2017-11-25, 'Luizinho') (2017-12-12, 'Donald') (2017-0...
asked on 30.10.2017 / 18:02
1
answer

Doubt when picking map value

Hello. When I print the values and keys of Map , it comes from the bottom up. I wanted to know how I can get it from top to bottom. import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; public class ClassDebug {...
asked on 10.01.2017 / 14:03
2
answers

What is the difference between echo, print, var_export in PHP?

A difference between var_dump and print_r you already have in this answer . But it does not give any details regarding the echo , print and var_export . What is the difference between echo , print , var_...
asked on 11.10.2017 / 07:29
1
answer

Copying text from one text file to another

I wanted to copy the text from one text file to another with a different name and add one - at the beginning of the line of the text file. For example: I have a text file with the following text "0000192" and when copying it to another tex...
asked on 19.10.2017 / 17:17
2
answers

Why do we pass an object to the statement lock?

I'm working with multithreading and fell into a competition case. More than one thread accessed an I / O operation on the same file and so an exception was thrown. To solve the problem, I did so: private static object padlock = new object(...
asked on 10.11.2017 / 12:21
1
answer

How does it work to use a vector of type struct? (C ++)

I would like help with understanding how to declare a vector of type struct. In the example of the code below I create the struct configcarros and would like to create a vector of the type of this structure and later access num_car and tempodevo...
asked on 28.10.2017 / 03:06
1
answer

Linear-gradient does not appear in CSS3

I'm trying to apply a linear-gradient to a DIV but it's not appearing in the browser. I've tested Opera, Chrome, Safari and FireFox but it does not appear at all. My CSS looks like this: .circular-progress{ width: 12rem; height: 12...
asked on 06.10.2017 / 12:52
3
answers

Convert JSON to EXCEL

I have a ajax query that returns a Json with an array of objects, how can I turn this json into excel? My json example: [ {idcancelamento: "383", idcliente: "2409", emailcancelamento: "1", financeiro: "1", suporte: "1"}, {idcancela...
asked on 23.10.2017 / 19:19