All Questions

1
answer

keypressevent does not detect the enter key pyqt

A simple question I am trying to detect the enter key of my keyboard by pressing it but it does not work. this is the code I use: import sys from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import QtCore from PyQt5 import Qt...
asked on 21.03.2018 / 00:51
1
answer

Center content of an HTML table for mail

I am going crazy trying to center the content that is inside the table, since it is for mail and the compatibility is scarce. I can not find a way to center it, or to make the account number not a line break. Thank you! <table s...
asked on 21.03.2018 / 18:59
1
answer

How can I send files from an html to javascript

Well I have a code in c ++ but I want to pass it to html and javascript what I want to do is that with three inputs that will be on the page enter numbers and that are passed to javascript and there to do mathematical operations and that I retur...
asked on 23.03.2018 / 17:03
1
answer

Ask for data with prompt () and store it in mysql with php

I am working a sales system but when a product has a unique serial number I need you to show me a prompt () to write the serial number and then store it in a php variable and store it in mysql. This is my code: <?php if($tProducto == "...
asked on 25.03.2018 / 09:40
1
answer

Connect to an instance of Google cloud

The Google cloud platform provides a command line to manage the instances or virtual machines that are created, through this command line, which is the command to connect to a particular instance, I have created instance 1, 2. 3, So there must b...
asked on 12.02.2018 / 23:51
1
answer

How to show different messages when entering duplicate data to the database? Php / MySql

Hello! I am trying that, when the user enters the name of a region, if the same one is repeated it will be shown in the screen "An error occurred", but I can not. Region.php: class Region { private $regID; private $regNombre;...
asked on 24.03.2018 / 19:02
3
answers

Create invoice number in java

I want to create a method that generates an invoice number. I do not increase it in the DB because it is not recommended and I have decided to create a char varying field where I store or add 1 to the query in postgres. public Cliente numOr...
asked on 21.03.2018 / 15:15
1
answer

What is the reason for the error Uncaught TypeError: Can not read property 'addEventListener' of null?

Hello, could someone please explain me because I get this error in the line:      btnInicia.addEventListener("click", tiempo); This is my code for my juego.js : var canvas = document.getElementById("canvasAl"); var context= ca...
asked on 22.03.2018 / 03:32
1
answer

Relate twig template with php controller in symfony

I have a method in the controller used to change data in a table. public function bajaServicioAction($idservicio, $idcliente) { codigo para hacer el cambio en la base de datos } On the other hand I have a template ficha.html.twig...
asked on 12.03.2018 / 16:59
2
answers

Problem redirecting laravel

I have a page where I store images in a project folder and the name of the image file I store in the DB. So all right, I can save and delete the images in the folder and at the same time delete the data stored in the database. My problem comes w...
asked on 26.03.2018 / 01:31