All Questions

1
answer

Listen from a different port SOCKET

I have the following program: Server import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; public class Professor { public static void main(String[] args) throws IOException { t...
asked on 03.04.2018 / 19:19
2
answers

Generate TreeView with Json

I'm generating a TreeView with a Json, the library I'm using is bootstrap-treeview.js. The structure of the Json that I receive is the following: data = [{ "Nivel": 0, "NombrePuesto": "Coordinador" }, { "Nivel": 1, "Nom...
asked on 05.04.2018 / 01:08
2
answers

How can I go to a specific commit and return it master?

I have errors in my code and I would like to be able to return to a commit specific and be able to return it master , how can I do it? this is my commit commit 70b0aecf7ee7bfb4864eab75e56ccd67426926f1 Author: emeery <...
asked on 05.04.2018 / 00:09
1
answer

Relational data bases: problem when entering data

I'm trying to create a database where two tables have a relation to an intermediate table. The idea is simple; a table stores user records, their passwords, emails etc, while the other stores levels. (The levels belong to a kind of videogame...
asked on 02.04.2018 / 21:48
1
answer

Problems iterating over a list within a class

Let's consider the following code. It has a class that contains a data and a list of elements of the other class, which houses its own data and a pointer of the first type to relate. It would be schematically like this: struct nodo { dato...
asked on 14.05.2018 / 23:38
1
answer

c # scroll txt from bottom to top

I have to go through a txt file but in the opposite direction to the usual, it would normally be something like this: using (var origen = new StreamWriter(rutaOrigen + "x.txt", true, System.Text.Encoding.Default)) { while ((lineaOrig...
asked on 31.05.2018 / 12:43
1
answer

Read / write char arrays in binary files

I am trying to binary save strings from static character arrays and then print them. The point is that, in spite of the fact that I assign them the value in a static way (so when creating them, they should be created with the %code% at th...
asked on 05.04.2018 / 10:54
1
answer

How to center the crosses in the box?

Hi, I have a problem in the html file, I'm trying to adapt a code that I found in Google of a game, all three in a row. The problem is that I change the original size and when it comes to centering the "X" I do not get it for laps I give it. The...
asked on 10.04.2018 / 13:09
3
answers

Scroll from one div to another div in angular

hello I have a button to which I want that when clicking on this scroll to a div that I have below <div class="barra_ver"> <input type="button" name="bajar" scrollTo="sectionB" > </div> the button is inside...
asked on 01.06.2018 / 18:18
1
answer

Javascript: The check 2 12 returns true

In a part of my code I have to check if a number entered by the user is greater than a maximum. I have this written: console.log("mod: "+ mod); console.log("max_mod: "+ max_mod); console.log("mod > max_mod: "+ (mod > max_mod)...
asked on 29.05.2018 / 10:11