All Questions

1
answer

Wait for the result of a function to save

How to execute a function and wait for a result to save the data: I have if (!_.isUndefined(image)){ upload(image).then(function(response) { if (!response.success) return res.status(202).send(upload); image = respon...
asked on 12.09.2016 / 13:41
1
answer

Using Ninjet to do the injection

I am working on a windows forms app, in which I work with EF, ninject. With ninject injecto Interface and class. Bind(typeof(ISaProveedor)).To(typeof(SaProveedor)); My problem is not that, I am illustrating how my app works The problem c...
asked on 28.05.2016 / 13:42
2
answers

How to implement a singleton class in C # Windows Forms to store data in a list

Implement the following classes: Singleton class named AlmacenDatos with read-only properties to store the list of: Ejecutivos Use the singleton class in data manipulation. Add 2 objects through one of the properties...
asked on 14.09.2016 / 03:59
2
answers

Is there an equivalent to lastInsertId () for an UPDATE?

I am using PHP and MySQL with PDO; I would like if there is an equivalent to the lastInsertId () method that returns the last ID of a row that has been inserted, but that returns the last ID of a row that was updated.     
asked on 25.05.2016 / 21:33
2
answers

Contact form, the mail does not arrive

My problem is that I have a form made with HTML, PHP and AJAX that I went up to my page does everything like "should" but my email does not get the message, I leave my code for review: HTML: <h3>Formulario de Contacto</h3>...
asked on 21.05.2016 / 05:05
1
answer

access descendant properties of mySQLi in php

Dear   I have extended the class mysqli in php but when doing print_r the public properties that I have added to the class are not shown: here is an example: <?php // define una nueva clase class miClase extends mysqli{ public...
asked on 21.05.2016 / 09:02
1
answer

Iframe from youtube does not work with onclick function and cancels javascript in safari

Hi, I have this problem: I have a button that calls a function using onclick and opens a div where there is an iframe from youtube. In all the browsers it works correctly less in safari, in the iphone it shows the iframe without giving the botom...
asked on 21.02.2017 / 10:04
1
answer

Error Code: 1265. Data truncated for column 'Record_id' at row 1 0.109 sec

I have the "registry" table defined in this way in my database: create table registro( Id_registro int not null auto_increment, fecha date, financiero int not null, clientes int not null, procesos_internos int not null...
asked on 25.05.2016 / 01:54
1
answer

Get data from a string in Python

You can help me with the next problem I have. I have the following chain: Tip:1-Cli:337|Neg:695|Pro:7558|Nom:802|Esq:1|Rub:None|Con:None|Emp:None|Com:1,Tip:1-Cli:337|Neg:695|Pro:7558|Nom:850|Esq:1|Rub:None|Con:None|Emp:None|Com:1,Tip:1-Cli:...
asked on 24.02.2017 / 23:03
1
answer

how to fill a directive fact combo, from angular

I want in a dynamic form to be able to set a value to a Combo (Select), however when the dynamic controls are rendered, the combo, which is a directive, does not preload the value that is sent to it. I would like to know how to resolve this i...
asked on 22.02.2017 / 23:38