All Questions

2
answers

Error inserting new column with MySQL

I have a small script in which I want to insert a new column into a table in the database. This is the content of the file myscript_ddl.sql : START TRANSACTION; ALTER TABLE e1qxp_productos ADD COLUMN 'cierre_venta' TINYINT(4) NULL DEF...
asked on 17.05.2018 / 13:23
2
answers

What is the difference between these two types of pointers?

What exactly is the difference between these two pointers if both are pointing to a function. The truth is that I have seen many programmers using them but I still do not see the difference. int(*function)(int,int) and int*function(int,...
asked on 06.05.2018 / 17:10
2
answers

What does .map do for an http?

I was doing a test service and from my component when calling the service and wanting to add ".sucribe" it gave me an error that the method was not an observable ... Searching on the internet I managed to solve the problem if in my service I...
asked on 17.04.2018 / 16:39
1
answer

fatal: The current branch NOMBRERAMA has not upstream branch

I am doing a game and I corrected some bugs in a branch that I created especially for it called "FixBugs", I made a commit in this branch when I already managed to correct them. But I find the following message when I want to do the push:   ...
asked on 13.12.2018 / 15:03
1
answer

Problem with several && in jFrame

I have the following code where I have to control if a food has x ingredients, the thing is that if you meet the ingredients but you select one more, you also consider it good because the code is as follows if(radioLentejas.isSelected()){...
asked on 17.04.2018 / 09:52
2
answers

Fragment of static code

I am translating a Java code to C # and I found this code snippet: static { for (int i = 0; i < 64; i++) TABLE_T[i] = (int) (long) ((1L << 32) * Math.abs(Math.sin(i + 1))); } From what I read, java lets you define stati...
asked on 17.04.2018 / 18:21
2
answers

How can I use std :: basic_filebuf from fstream to write to a file in c ++

I have been looking for both English and Spanish, and I do not get information that I understand about it; I try to do the following: #include "stdafx.h" #include <fstream> #include <iostream> using namespace std; int main() {...
asked on 17.04.2018 / 04:46
2
answers

'key' in dict vs. dict.get ('key')

What is the main difference between: >>> dic = {} >>> existe = dic['key'] if 'key' in dic else None >>> existe None Y: >>> dic = {} >>> existe = dic.get('key', None) >>> existe None...
asked on 05.04.2018 / 18:05
1
answer

Copy an object so that it is another instance than the original one

I have the following data: data: { usuario: { nombres: 'name', email: 'cor', telefono: 'tel', fechan: '2018-10-15', rol : 3, idTarget: 0 }, lista...
asked on 18.10.2018 / 19:36
2
answers

Help with PHP array

I have an array with numbers and I have to check if they are ordered from lowest to highest. In case they are well ordered, show that they are ordered or not if they are not. The fact is that I have it almost but I get the following warning: No...
asked on 28.10.2018 / 18:17