All Questions

2
answers

Show current date in input type date with JavaScript

I need to show the current date in a date type input instead of "dd / mm / yyyy".     
asked on 24.05.2018 / 19:14
2
answers

Problem with if else

When executing the code the result always prints the statement of else , even if the condition of if true. function Calculate() { var planetsList = { "Mercurio": 0, "Venus": 0, "Tierra": 1,...
asked on 03.04.2018 / 14:45
3
answers

How to convert a ComboBox from String to Int?

I need to converge a ComboBox to which I call cmbmes . The reality is that it does not work with Convert.ToInt32() or with Int.Parse() . The error that gives me in specific is System.FormatException . What I want to a...
asked on 30.05.2018 / 15:13
1
answer

Difference between \ r and \ n JAVA

are known as escape sequences. I have been testing some, and I have seen that \ r and \ n generate new lines, although they have different definitions and as I have read, also different functions. Does anyone know the difference? System.out.pr...
asked on 11.06.2018 / 16:31
4
answers

What does (string) $ max! = 'INF' mean?

Does anyone help me understand this? I was practicing with PHP, I came across this code. I'm trying to solve it: function float_max( $mul = 2, $affine = 1 ) { $max = 1; $omax = 0; while( (string) $max != 'INF' ) { $om...
asked on 02.07.2017 / 06:27
2
answers

How to make a hairline in Swift

Sketch a bit in Swift I find that I do not know which is the control to make the following type of model so far I have My question would be how to imitate the image above Add as you told me a view of 1 height but the view...
asked on 05.04.2018 / 12:24
2
answers

How to know if a file has data in php?

I would like to know what is the correct way to know when a file has information inside it. Current code: $myfile = fopen("app/vista/html5/encabezado/encabezado.html", "r") or die("Unable to open file!"); if ($myfile == false) { echo "No...
asked on 27.03.2018 / 18:02
4
answers

create a variable of type class

Sorry if my question is wrong, but I have the following question, I am just learning java and I know the variable types are int double String , etc .. but I have noticed that you can create a variale of type 'name of the clas...
asked on 20.04.2017 / 22:51
3
answers

Error with PHP and MySQL

I have this connection <?php # Conexion con la Base de Datos $userdb = 'administrador'; $passworddb = '1234567'; $dbhost= 'dbserver'; $dbname = 'sk_modular'; ?> and I have I'm calling the database to bring me some data...
asked on 11.04.2017 / 01:09
3
answers

use the trim () function within an array

It happens that I have a select where the options are generated from a query to a database. Sometimes there are repeated options because at the beginning or at the end of each option you have blank spaces. I have the following code where I try t...
asked on 19.04.2018 / 15:51