All Questions

2
answers

Doubt - Logic of numbers that change places

I'm trying to put together an algorithm in C to find integers that change places by multiplying by another. I did not find problems like this on the internet, I do not even know if I can do this with integers. But a brief example with fractio...
asked on 04.06.2015 / 16:52
1
answer

Alternative to http_response_code in lower versions than php5.4

You can get HTTP status in versions prior to PHP 5.4 ( http_status_code is only supported in PHP5.4 +)? I'm creating a custom error page system, it's not going to be a system for a specific project, but as a matter of compatibility...
asked on 29.05.2015 / 00:27
2
answers

Update the information on the page when making a change in the DB

Let's say I have button value="+1" on my page, and every time I click on this button an update is made to the database, the page refreshes and displays a message of success or error. This update process is simple! Only when returning from...
asked on 02.06.2015 / 04:19
2
answers

How to connect Mariadb with python3?

Friends, is there any way to connect Python 3 with MariaDB? Also, could you indicate any material in English or Portuguese? Thank you in advance!     
asked on 03.05.2015 / 20:01
1
answer

Dividing integers in MS Excel (exact division)

I have a problem in Excel that I thought would be easy to solve, but so breaking your head is this: I have a request grid, for example, 2,010 pairs, and the production control and production order is 10 in 10, I need to calculate how many produc...
asked on 29.05.2015 / 20:14
1
answer

What is the maximum limit of PHP / MySQL / Nginx in a request before giving error 504 Gateway Time-out

And if possible how can I extend this time for large queries / requests?     
asked on 13.05.2015 / 17:38
1
answer

How do I set a char in a PreparedStatement?

My FuelType variable is a char how to set this in the PreparedStatement? PreparedStatement ps = conexao.prepareStatement(sql); ps.setString(1, veiculo.getTipoCombustivel());     
asked on 02.06.2015 / 19:18
3
answers

SQL query in PHP and date format

I have a function in PHP that interacts with my SQL Server. It looks like this: public function buscaRelatorioHospedagem($nome,$de,$ate){ // TODO Essa função pode ser aproveitada pra aba nova $de--; $de++; $ate--; $ate++;...
asked on 25.05.2015 / 21:09
1
answer

Reading entire file

I'm trying to read a simple file, which contains only two lines, but the program only shows one. The program: #include <iostream> #include <fstream> using namespace std; int main() { string str; ifstream myfile; myfile....
asked on 29.04.2015 / 20:46
2
answers

Error # 1062 - Duplicate entry '1' for key 'PRIMARY'

I was trying to put one of my tables as primary key . As soon as I try, the message appears:    # 1062 - Duplicate entry for key 'PRIMARY' The data is populated and looks something like this: I tried to put Sub_Id as t...
asked on 27.04.2015 / 16:01