All Questions

3
answers

How to edit and load class only for a single element

I have the following HTML structure below. However, by clicking on one of the "items" the class (editing) is displayed for both elements. What should I do to make this happen only on the clicked item? Editing: Note: ng-click , is w...
asked on 02.06.2017 / 01:40
2
answers

PDF for text arranging the columns

I am doing scraping to extract .pdf files, and I need these files as an organized text, since for each line of text of the file there are 3 different columns. For example in this file, you can see the 3 columns in question. I can read...
asked on 24.04.2017 / 21:30
2
answers

What is the safest way to identify that the upload file is an image?

I'm making a system where I can receive an image upload. To check on the server if the file type is image, I thought of this code: if (strpos($upload->getClientMimeType(), 'image') !== 0) { throw new UploadException( sprintf...
asked on 20.01.2017 / 13:30
4
answers

Program that returns the non-common numbers of two lists (python)

I'm trying to make a program, in Python, that returns a list with elements not common between two other lists. I made the following code: def indice(a,b): ind = [] for i in range (len(a)): for w in range (len(b)): i...
asked on 30.03.2017 / 03:33
4
answers

Is there any way to comment Multiple lines in Python?

To comment on a line, we use # . I would like to know if you can comment on multiple lines in Python 3. If yes, how should I do it?     
asked on 22.01.2018 / 18:35
3
answers

Changing the data type of a sql column

Good morning. I have the CliTelCel char(10) column in the Clientes table, I need to change char(10) to char(11) . But this column already exists data, what would be the best way to proceed in this case, without losi...
asked on 18.05.2017 / 14:47
2
answers

Why does Google recommend inline CSS?

I was optimizing a client site that insists on wanting to get a high score on PageSpeed Insights, and I'm having trouble "removing JavaScript and CSS blocking rendering in content above the edge." Even after I'm minifying CSS, I'm still charg...
asked on 21.06.2017 / 20:10
6
answers

How to do an array subtraction

Assuming I have an array let arr1 = [ {nome: 'Fulano', idade: 19}, {nome: 'Ciclano',idade: 20}, {nome: 'João', idade: 20}, {nome: 'Maria', idade: 30}, {nome: 'Teste', idade: 52} ] I have another let arr2 =...
asked on 23.02.2018 / 20:56
2
answers

What are slots and "scoped slots" in Vue.js?

In Vue.js we can pass descendants to a component as follows: <meu-componente> <div>Um descendente</div> <div>Outro descendente</div> </meu-componente> How does this work and what is the relationsh...
asked on 25.08.2017 / 21:28
5
answers

What is CDN and how to enable it in my JavaScript files?

On a performance verification site I received the "Use CDN for all static assets" message for my JavaScript files. What are CDNs and how to implement them?     
asked on 29.11.2016 / 18:42