All Questions

1
answer

Rebounding angle of two Circles

How can I calculate the bounce angle between two circles ... ?? I use the following code to check and resolve collisions. -- CHECK COLLISIONS BALLS AND RESOLVE ... function CheckCollisionResolve(a, b) local dx = a.x - b.x; local dy...
asked on 08.06.2017 / 16:30
1
answer

Problem with ExecutorService

I'm doing a project in which I'm going to do a large number of operations that can be done simultaneously, so I thought about creating threads. These operations will give a result that I want to store in a list so that when they finish execut...
asked on 26.05.2017 / 11:22
2
answers

Problems with the mozilla browser

I have a problem; I have a method to generate an excel from a table and it works but in Google Chrome, however I will try in mozilla and it does not work ... Any suggestions? CODE <title>Reportes Equipo</title> <meta chars...
asked on 17.05.2017 / 21:40
1
answer

How to use the functions of one script in another with unity

I have the following problem: I have a script in unity (C #) which establishes a connection with the bd. It provides it of only, in a GameObject and without a problem it works to me by placing the method with the name Start , I can see with...
asked on 30.05.2017 / 21:45
2
answers

Error executing when using scanf

I can not execute any program that carries calculation operations in all the compilers that I have installed in my Computer. #include<stdlib.h> #include<stdio.h> int main(){ int num,tot; printf("Ingrese un Numero:");...
asked on 22.05.2017 / 19:06
1
answer

How to make a correct if within a foreach?

I have an input of type text there is entered an id to verify if you existed or not. list.forEach(function(a) { if (b == a["id"]) { g["setstatus"](true, a["id"], f); return c(true) alert("Correcto!"); } g["s...
asked on 22.05.2017 / 21:52
2
answers

I have a problem with if, else python

# Viajes TI=raw_input("Tipo de autobus: "); KM=raw_input("Kilometros a recorrer: "); NPR=raw_input("Numero de personas: "); if TI:"A" CK=2000 else: CK=3000 if NPR<20 NP=20 else NP=NPR TO=NP*CK*KM CP=TO/NPR print("La persona pagara: "), CP prin...
asked on 19.05.2017 / 02:12
1
answer

Error in Javascript ternary operator

// Write JavaScript here (function() { var contador = 0; document.getElementById('play').addEventListener("click", identificar); function identificar() { contador === 2 ? play.disabled = true : contador++ } }); <!DO...
asked on 23.05.2017 / 17:31
1
answer

Components are not displayed in ReactJS

Hi, I was testing the export by default in reactjs , but when using the server that brings npm , it does not visualize me the components, or anything like that. This is the code I use in index.js . var React = require('react'); var...
asked on 19.05.2017 / 13:20
2
answers

fill in input from dropdownlist selection ASP.NET MVC5

Hello StackOverFlow colleagues, I have the following question, how can I load or give a value to an input when selecting an option in a select or dropdownlist? my create controller is as follows: // GET: Collaborators/Create publ...
asked on 17.05.2017 / 13:24