All Questions

5
answers

How to get the points of the coordinates near me on android?

I have an android application that has some georeferenced points and shows certain points that the user requests with a spinner, it is a query to the local base. The question is: How to show the points that are within a radius of 1km from my loc...
asked on 14.09.2018 / 23:58
6
answers

Alert JavaScript with Timer

How can I create an Alert in JavaScript that can be seen for 2 seconds and then close automatically (only) without the user clicking accept?     
asked on 23.08.2016 / 22:31
2
answers

Difference between annotations @Component, @Repository and @Service in Spring?

The previous entries are very related, so my questions are as follows: 1- Can the annotations @Component, @Repository and @Service be used interchangeably in Spring or do they provide any particular functionality besides...
asked on 21.06.2018 / 02:49
3
answers

Difference between FOR and FOR EACH [closed]

A colleague and I have just had an interesting debate: What is the difference between For and For Each ? I already know how it works in code, but from behind? Really what is the most advisable? In which cases should we use one...
asked on 15.09.2017 / 12:30
4
answers

How to replace the session in web asp.net c #?

Let's see, I'll explain in more detail what happened. I have a texbox and a button; what I want is to enter data to the texbox and when I click on the button I redirect to another page getting the value of that texbox. For that I am session to s...
asked on 02.05.2018 / 19:55
2
answers

How to import classes in JavaScript

When using Node.js to import a serious class: var Comprobador = require('./comprobador.js'); let comprobador=new Comprobador(); But in pure JavaScript on the client side, how would it be?     
asked on 24.02.2018 / 06:03
2
answers

Start the "count" of an array with 1 and not with 0

The fact is that I have the script done, which executes a loop to generate a series of sentences. I want the array account to start with 0 and not 1 , so that it makes sense. var colours = ["White", "Red", "Black", "Purple", "Grey", "Ye...
asked on 08.01.2018 / 19:20
1
answer

Is this class correct?

I'm new to PHP, an instructor did this Controller class, it's an MVC, and he put __Hospital(){} without using it, is that necessary? class Hospital{ private $cod; private $nom; private $dir; public function __Hospital()...
asked on 11.04.2018 / 20:30
2
answers

Show content through POO

I'm trying to understand how Object Oriented Programming works and as an exercise I was going to try to make a kind of video store using this concept and not SQL. The question is that I made the code below and if I did not understand wrong. I...
asked on 04.03.2018 / 22:54
2
answers

Templates for different data in C ++

I'm using templates in C ++ and I'm new to this, so I do not quite understand how to "reuse" functions regardless of the type of data. I have the code shown below: template<typename T> const T &min(const T &a, const T &b)...
asked on 25.05.2018 / 12:43