Questions tagged as 'funciones'

1
answer

Function of postgres executed from java

I have a function in PostgreSQL that takes 6 values, the first one character varying , the next one an integer and the remaining 4 are of type numeric . I call it from Java in the following way: preStmt=con.prepareStatement(...
asked by 25.09.2017 / 22:02
1
answer

Difference between HMAC and hash functions

I have not been very clear about the difference between HMAC and hash functions like SHA. I think the main difference is that HMAC uses a key and uses a hash function.     
asked by 19.07.2017 / 04:55
1
answer

I have a problem with re defining columns and rows in an array only once and when I use it again I leave it the same

public static void main (String args[]) { int f = Integer.parseInt(JOptionPane.showInputDialog("Cuantas filas")); int c = Integer.parseInt(JOptionPane.showInputDialog("Cuantascolumnas")); int [][]mat = new int[f][c];int cont = 0; while...
asked by 13.08.2017 / 22:42
2
answers

random in javascript

I would like to know how I do for javascript to execute the following, the program shows me what I put literal (EXAMPLE random_text2 () taking into account that the random is 2) but I want to run the random text function <!DOCTYPE> <...
asked by 13.06.2017 / 00:28
1
answer

List of functions in Haskell

How can I define a list whose elements are functions? What would be the type to define if I have a data type?: data Usuario = UnUsuario String [**--que tipo pondria aca--**] deriving Show     
asked by 04.06.2017 / 23:57
0
answers

Friendly function between classes

Good morning, I have a problem with the declaration of a friendly function: #ifndef _TABLERO_H_ #define _TABLERO_H #include "matriz.h" #include "jugador.h" class Tablero { friend int Jugador::escogePosicion(Tablero& tab); ......
asked by 03.06.2017 / 20:47
0
answers

Return text in plpgsql?

I am doing an exercise for class in which they ask me the following:    Create a function that returns a text with a list of the notes of a   student indicated by parameter. The input parameter is mandatory.   You have to return null if the p...
asked by 29.03.2017 / 16:49
1
answer

Error in function within object

module.exports = { post: (title, body, autor) => { this.title = title this.body = body this.autor = autor }, search: function(search, arr , call){ var result = arr.find(a => a.title == search) call(nu...
asked by 05.11.2016 / 18:39
1
answer

PHP functions in ajax

Good, I'm with a little drama in my front end. Well, I'm wanting to show with all the records of a table, what happens is that two fields are ID of another table, but when I insert inside the concatenation the function to make the change of text...
asked by 26.09.2016 / 03:41
1
answer

An idea of how to create an array using functions

well I am a newbie and I am learning for python and I want to know if someone can help me with the creation of a matrix, that is, how could the code be if I want a matrix with functions, I have created it in this way easy : m=[[1,2,3], [4,5...
asked by 20.10.2017 / 10:03