All Questions

1
answer

Variables in global python 3

In a cash register program, I have defined the variable "price" as global in a function. In another function I read it and it works well, but at the time of modifying it, it tells me that the variable is referenced before the assignment. How do...
asked on 30.03.2018 / 18:32
1
answer

Group 2 count () in a query in PostgreSQL

These are the tables in my database: animal _________________ |id_animal | zona | |__________|______| | T1 | 01 | |__________|______| | B1 | 01 | |__________|______| | C1 | 01 | |__________|______| | C2 | 01...
asked on 18.04.2018 / 23:33
2
answers

Linq adds a nonexistent column to the SQL query

I'm having a problem with LINQ, using EntityFramework 6 First, to enter the context, I leave the Problem Model .. [Table("Datos_Garantizados")] public partial class Datos_Garantizados { [Key] public long Version { get; set; } public decima...
asked on 28.03.2018 / 14:18
1
answer

I need to treat an enumerated as if it were an array in a jsp with jstl

For now I am loading the elements of the list manually, but I would like to know if you can go through any of the components provided by JSTL ( c:forEach for example), because in the enum I have 3 options, but imagine if there are 500 opt...
asked on 27.03.2018 / 18:24
1
answer

Array is not updated

I am working with NodeJS, I create a Array and then I make a query to my database. When I get results, I do push to add elements to the array, however when I want to print the elements there is nothing. function sendMessageToUser...
asked on 29.03.2018 / 03:31
2
answers

Put the time to input text in view html with jquery (not Php)

How can I put today's date by default to an input text when executing my view in html with jquery javascript? The only thing I have achieved is this code, which works but does not print in the input but in the body of the view: <s...
asked on 01.04.2018 / 09:56
1
answer

doubt with do while not printing correct numbers

Good I'm doing some tables that print parimpar numbers and 5 in 5 but I already did them in for and while but when I try to do it in do while I throw another result I do not know what is due this is with the for: <!DOCTYPE html> &...
asked on 02.04.2018 / 07:41
1
answer

How can I remove the hidden attribute to a java file?

package com.resolvethis.nio; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; import java.nio.file.Paths; public class MakeFileHidden { public static void main(String[] ar...
asked on 08.05.2018 / 21:44
1
answer

Subgrilla in jqGrid

I'm starting with jqGrid and I'm guiding myself with jqGrid Demos What I need is very similar to the example that appears in Advanced - > Master Detail , only that I need the "Invoice Detail" table to be displayed on another page and I...
asked on 02.04.2018 / 05:04
1
answer

How to assign dynamic ids

How can I assign a dynamic id to a button that I print in a while? I need to assign a dynamic id to make the insertion, since I do not have a form. here the code while($fila=$consulta->fetch(PDO::FETCH_ASSOC)){ $this...
asked on 07.05.2018 / 15:50