All Questions

2
answers

How to version front-end projects?

How to version front-end projects? Semantic versioning has the following approaches: MAJOR - when you make incompatible API changes MINOR - when you add functionality backward compatible PATCH - when making bug fixes backwards compa...
asked on 07.09.2017 / 17:23
6
answers

Success message after completing PHP form

I'm trying to create a simple form to record a visit in one place. However, I'm not able to put a "Successfully submitted data" message on the same page as this form. The validation of this form, before sending to the Database, I did in PHP, acc...
asked on 04.10.2017 / 17:01
1
answer

Create a patch from a commit

When you run the command git apply you can create a commit with changes from a text file: git apply ~/Downloads/patch.txt How do I create this patch file from an existing commit ?     
asked on 13.06.2017 / 22:09
1
answer

Delay Sending Email with Attachment

I'm trying to send an email with an attachment, without an attachment, the email sends quickly, without any problems, but when I put the attachment, it takes a lot of minutes, and it hangs, and it does not send. I wonder if there is some way I...
asked on 13.07.2017 / 13:26
2
answers

How to separate tags from a variable in PHP array

I want to separate tags in a array in PHP, but I could not find an efficient way yet. I want to turn this: $variavel="<div><div>texto1<a>texto2</a><b>texto3</b></div>texto4</div>"; i...
asked on 13.06.2017 / 17:23
1
answer

Temporary variable performance within loop

During college a teacher commented to me that declaring a variable before a loop and reusing it was an economical and more interesting way to do it. For example (in Java): String str; for(Pessoa p : pessoas){ str = p.getNome();...
asked on 13.06.2017 / 22:21
1
answer

Operation with lists of very large sizes

I have a code that calculates the area of the intersection between two polygons and for this I use lists to save the coordinates of the vertices of the polygons, however they are many polygons and it takes an average of 6h to run the whole code....
asked on 14.06.2016 / 05:54
1
answer

Riding an arena on canvas

I'm building an arena using resources of HTML/JS with canvas . I have the following code: function montarArena() { var canvas; var heightCanvas = 498; var widthCanvas = 598; var qtdLinhas = $('#larguraCa...
asked on 28.07.2016 / 07:28
1
answer

VueJS: how to create a condition from one v-for to another

My problem is as follows, I have two separate checkboxes, where the list of the first box is loaded through a json . And I need to load the second checkbox depending on the value selected in the first box, with the contents of the two b...
asked on 30.08.2017 / 19:25
1
answer

Timeout when using httr: POST ()

Expensive, I'm trying to do a log conference in the website CREA-RS , but every time it is giving the following error: Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached Does anyone know what might be happen...
asked on 12.08.2016 / 15:29