All Questions

1
answer

Problem with ng-change checkbox in Angular

I am using a checkbox that executes an AJAX request to change the state of a record from 1 to 0 and vice versa. This is the code that renders each site: <div class="col-xs-12 col-md-3" ng-repeat="site in sites">...
asked on 07.11.2016 / 00:58
2
answers

Validate a user within the database

Good morning, I am working as Windows Forms and user controls within C #, which I am working with an application that acts as a clock watch. This first screen acts, like the main screen. Which all users have access to now. Inside...
asked on 28.08.2018 / 00:17
1
answer

Form String with single quote. Error ORA-01756

I am running a ORACLE statement from C++ and I receive this error:    ORA-01756: quoted string not properly terminated (OCI_ERROR) I form the string sentence as follows: sprintf(sentence, "INSERT INTO \"TABLA\".\"...
asked on 11.11.2016 / 09:37
1
answer

Jquery function that allows N numbers of inputs to increase / decrease by means of mousedown

I have this script that allows you to increase / decrease the value of an input by dragging up and down with the click pressed. But I need to make it work to be able to add this functionality to any input also with a minimum and a maximum value...
asked on 16.11.2016 / 22:14
1
answer

Static methods vs. instance method in testing java

I have a class SystemPropertyHelper in the web service layer, which has only static methods to recover objects from the core of the application, this in order not to mix functionalities between layers, and the handling of exceptions among...
asked on 14.11.2016 / 21:25
1
answer

My BroadcastReceiver does not work in my Activity

I want to receive an alert when I get a sms and I intend to create it in the following way: public class MainActivity extends Activity { BroadcastReceiver receiver = null ; IntentFilter intentFilter; @Override protected vo...
asked on 07.11.2016 / 16:55
2
answers

Update with IF - SQL MySQL

I have to change the value / state to an ENUM ('0', '1') of a field in a table. I'll do it with an UPDATE query with if included. cambiar_estado.php: <?php //Dormimos el proceso unos segundos... sleep(3); //Consulta para act...
asked on 15.11.2016 / 13:26
2
answers

Generate JSON array object from a list type Object

I am first generating a dynamic object with: dynamic objetoTabla = new ExpandoObject(); , which I add the properties dynamically according to the data I generate with LINQ , until then everything is fine, then that created object I store...
asked on 10.11.2016 / 05:20
5
answers

An arrangement that does not give the same result 1 to 2 times in a row

My program in js. What I want to do is that every time a button with a function is pressed, this is activated, but the problem is that the result is repeated often and is annoying. var Loot = ["manzana", "pera","melon","sandia","limón","durazn...
asked on 12.10.2016 / 20:38
1
answer

I'm experimenting with javascript and css rotating divs with letters because some rotate well and others abruptly

The code that rotates the divs with the letters: if(tipoTransformacion[i]==0) $("#t_"+i).css("transform","rotate("+rotar+"deg)"); if(tipoTransformacion[i]==1) $("#t_"+i).css("transform","rotate("+rotar2+"deg)");...
asked on 28.09.2016 / 08:02