All Questions

5
answers

How to manage a SQLite connection between multiple concurrent threads?

So I'm having some problems with my connection to SQLite, where I'm not finding a workaround. Scenery My scenario is as follows: I synchronize the data of my application with a legacy system through a WebService; Synchronization is...
asked on 20.02.2014 / 14:35
1
answer

QVideoWidget does not display anything

I'm trying to use the QMediaPlayer and QVideoWidget to display a video on a system I'm producing. Except that these class rays do not work as expected. QVideoWidget simply does not appear, does not display the video, do...
asked on 23.06.2016 / 01:06
1
answer

Are all HTTP methods / verbs accepted by APACHE and NGINX?

In a recent lecture, one of the speakers commented that the only methods that the APACHE and the NGINX accept / support are the methods / verbs GET and POST . The speaker further clarifies that when other methods such as PUT...
asked on 04.07.2017 / 20:41
5
answers

Currency formatting to save in the database as DECIMAL

I am using a mysql database, the field format is Decimal (7,2) and it receives the salary value. Based on what the user types I store in the bank like this: str_replace(',','.', $_POST['txtSalario']) Substituting the comma by period....
asked on 06.02.2014 / 13:21
1
answer

Code First versus Database First?

I'm used to creating projects in ASP.NET MVC with Entity Framework Database First. From a modeling, the database and the system are created. However, I see a lot of programmers prefer Code First, where the database depends on the system. W...
asked on 10.11.2014 / 21:51
6
answers

Re-write and close array of a file

How do I open a configuration file, re-write the value of an array, and close and save the file? Example: config.php return Array { 'DB_TYPE' => 'mysql', 'DB_USER' => 'root' } config.php (After the function is executed): ret...
asked on 30.08.2015 / 22:53
1
answer

How to do SQL query that ignores uppercase, lowercase and accents?

I have a database with multiple movies, and would like to create a SQL query that ignores the presence of uppercase, lowercase, accents, and รง. For example when searching for "brave heart" I would like the query to return the record of the movie...
asked on 08.11.2015 / 04:16
3
answers

Number of characters of CPF, CNPJ and RG

I am doing a program that needs to validate a series of documents - CPF, CNPJ and, if possible, RG. My questions are as follows: Are there valid CNPJs with a number of characters less than 14? (eg, old companies). Common format: xx.xxx....
asked on 04.04.2016 / 23:21
1
answer

The order function in R

I do not understand what happens. Please note > x<-c(-2,4,-6,5,9,7) > x [1] -2 4 -6 5 9 7 > order(x) [1] 3 1 2 4 6 5 I do not understand why the x-vector is not ordered. Look, when I give order(x) add 7 And in...
asked on 18.04.2014 / 18:43
1
answer

jQuery does not use the HTML5 dataset on date?

When modifying a certain initial value of data of jQuery, I noticed that the value of dataset is not modified. Then I wrote the following test: HTML: <div data-value="initial value" id="div-test-1"></div> <di...
asked on 11.02.2015 / 18:38