All Questions

2
answers

How to delete a character written by console in Java?

Is there a way to delete a character written by console with System.out or System.err ? For example, if I have a process that loads for a while, simulate an animation with the 3 ellipsis ... . Something similar to this...
asked on 15.12.2015 / 17:33
2
answers

Primary Key formats

I have some doubts that I would like to clarify, I have had bosses who have never wanted to work with ID Identity created by the same database manager, for the following reason that the correlative is lost. In my opinion the ID is not shown to t...
asked on 03.04.2016 / 04:20
1
answer

Scanner.nextLine () does not act correctly after Scanner.nextInt ()

I have this code: Scanner scan = new Scanner(System.in); String s2 = scan.nextLine(); int i2 = scan.nextInt(); System.out.println("natural= " + i2); System.out.println("cadena = " + s2); scan.close(); That works correctly:    This...
asked on 02.09.2016 / 11:45
3
answers

Is it advisable to include classes as nested classes, or is it better to keep them separated one per file?

When creating the classes in a project you have the option to have nested classes. Based on your development experience you should create nested classes in some particular cases or it is preferable to always maintain classes independently....
asked on 22.02.2017 / 15:12
3
answers

Quit a function from a $ .each

I'm using the $ .each function of jQuery to run a JSON , and given some validation I want to show a alert() , leave the $.each and the function that contains it, I know that return false; leaves the function $.each...
asked on 08.12.2015 / 16:40
2
answers

How and when are isset () and empty () used correctly?

I have seen on many occasions when receiving the data of a form the following check: if (isset($_POST['campo1'])) { // Resto de código } What happens if the $_POST['campo1'] value is empty? Or on many other occasions I have se...
asked on 06.11.2016 / 13:51
3
answers

Transform document docx to html

I have a document docx already saved in bytes[] and I need to pass it to html to be able to display it on a page. I'm using Visual Studio with .NET to develop it in C #. Currently I already work from pdf that is easy to trans...
asked on 30.06.2016 / 16:57
1
answer

How to right an image in python

I've been looking for a way to straighten a scanned image, more accurate a form, I need a function that automatically straighten it, I've tried with import numpy as np import numpy as np import argparse import cv2 img = cv2.imread('D:/Consecu...
asked on 27.02.2018 / 15:35
1
answer

Timeline Google Chart, add slider / picker

Is there a way to insert a picker or slider to capture the time? Example: I should update parameters from the date selected with the picker. google.charts.load('current', { callback: function () { var dataTable = new google....
asked on 27.11.2017 / 16:10
2
answers

What is the use of the operator% in printf of variables in C language?

I am starting a course on YouTube from C. And they show that to print the values of the variables it is necessary to use this operator % . example: int suma, a, b; a=2; b=3; suma=a+b; printf("El valor de la suma es %i", suma); I...
asked on 31.03.2017 / 21:03