All Questions

2
answers

What are the advantages and disadvantages of storing session variables in the database?

As of Rails 4.0, the ActiveRecord Session Store , which saved session variables in the database, was deleted by "performance issues." But the functionality continues to work through a gem . Today Rails uses the Cookie Session Store .    A...
asked on 03.11.2014 / 11:52
1
answer

What is the difference between Collation UNICODE_CI_AI, UNICODE_CI and UNICODE

Is there a difference between UNICODE_CI_AI , UNICODE_CI and UNICODE ? What are and what does each one interfere with in the database?     
asked on 17.04.2018 / 19:17
2
answers

Sort styles with prefixes in CSS

Sometimes when I see CSS prefixes like -webkit , -moz and even -ms . So I had some questions about them: Why do some styles do not need prefixes (like background , for example)? Is there a correct (or recommended)...
asked on 13.10.2017 / 18:39
1
answer

Long Polling performance with PHP, Mysql and Ajax

I'm developing a PHP site, and using Long Polling techniques for real-time notifications. I'm getting the script to wait 50 seconds for a response, and not getting one, in 2 seconds it asks again, to give greater turnover of connections, as t...
asked on 29.04.2015 / 21:36
2
answers

jQuery validate submitHandler does not work in firefox

With the following function below, I can send the data via ajax quietly in Chrome, but when testing in Firefox, no error occurs and data is not sent. $('#form_lista_amiga').validate({ rules : { cpf: { required: true, cpf: true }...
asked on 26.02.2015 / 18:36
1
answer

How to use deep-learning to parse forms with addresses?

I have an application for which I need to import personal data. I often get excel or csv / txt files with fields like name, address, email, phone, etc ... The formatting of the files varies, the order too, and sometimes there are blank fields. W...
asked on 14.05.2017 / 06:27
1
answer

How to center a binary tree?

I need to properly center this binary tree template. jQuery or JavaScript can be used. I'm going to need to generate the code with PHP , so you need to have some logic in html . Another detail is that you need...
asked on 09.01.2015 / 04:23
2
answers

How to check data range?

When requesting a vehicle reservation, the system enters the expected departure and return time code (we prefer to work with fixed codes instead of schedules to facilitate scheduling). What happens is that when the reservation is made at times a...
asked on 14.12.2015 / 13:09
3
answers

Protect folder against direct access

The user needs to log in to access a list of documents. All documents are in the "/ uploads" folder. When the directory is known, it is easy to access it, just type in the browser 'domain.com/uploads'. What can I do to protect files fro...
asked on 04.03.2015 / 12:55
1
answer

What if the end user does not want to collaborate? [closed]

After reading extensively about agile methodologies and domain-driven design, I was convinced that it is vitally important for the development of software that the domain specialist (who is often the end user) to participate in the process, talk...
asked on 26.12.2016 / 18:04