All Questions

3
answers

Foreign key table - oracle sql

I have a table in Oracle SQL, and a field, I want it to be a foreign key of the same table, but Oracle gives me an error. create table Empleado_almacen ( cod_empleado_almacen int, dni varchar2(9), dni_jefe varchar2(9), nombre varchar2(30), dir...
asked on 09.06.2017 / 10:03
1
answer

Show text only once

I have the following code: // Re-usable var's var cc = []; // Main array var div = document.getElementById('array'); var t = ""; var w = ""; var c = ""; // End // Add element at first w/ push() for(let i=0; i<=10; i++)...
asked on 13.06.2017 / 02:40
1
answer

How to show the data of a database in a table in html and php

I'm new to php and html and I want to show the data in a custom table by bootstrap, this is my code <?php // Conectando, seleccionando la base de datos $link = mysql_connect('localhost', 'root', 'usbw') or die('No se pudo...
asked on 14.06.2017 / 00:57
1
answer

Send preferred data to MercadoPago with Django

I'm doing a page in Python 3.4 and Django 1.7, using MercadoPago's basic checkout, but I want to send more info from the buyer than what the basic proposes, but I get the error that is not serializable. I need to send the following information:...
asked on 20.01.2017 / 19:25
1
answer

How to use global variables in python

I'm trying to keep the value read in a webhook in the following webhook but the variable that takes the value does not keep it in the next webhook. from flask import Flask from flask import request import os from threading import Thread app =...
asked on 12.06.2017 / 16:43
2
answers

ASP.NET MVC - Models

I'm working with the MVC design pattern, I have a three-layer architecture, is it necessary to put the models in the Models folder ?, can the models go in another project?     
asked on 18.01.2017 / 03:49
1
answer

List the number of records in Java

How can I list the number of records that appear in a program? It is assumed that the user enters the number of records you want, once this is done, the data is output but they need to be listed. import java.util.*; public class practica1Labor...
asked on 13.01.2017 / 06:44
1
answer

Corrupt text file

Good afternoon, I'm doing a practice for the university, the program consists of the creation of a loop in which a child process, created by fork () sends a pid to the father through a pipe and then dies, The parent then enters the pid and a lin...
asked on 18.01.2017 / 18:21
1
answer

Attach (Render) text to a Drawable on Android

I've done some research on the net and found this class here: link public class TextDrawable extends Drawable { private final String text; private final Paint paint; public TextDrawable(String text) { this.text = te...
asked on 08.06.2017 / 15:38
1
answer

Delete options from different select

I have 3 selects , I want that when one is chosen, it is deleted from the other 2 but without deleting the first one. Is it possible? <select class="sel"> <option value="1"></option> <option value="2"></opt...
asked on 12.01.2017 / 21:09