All Questions

2
answers

How to get a json's length

I have a problem trying to traverse a json to get its length (length). This is my code: var parametros = { yMin: "0", yMax: "300", ySteps: "5", yLabel: "users", xMin: "1", xMax: "12",...
asked on 16.12.2016 / 06:18
1
answer

Centering elements with CSS in Bootstrap

I am trying to center the following without losing the responsive and there is no way: <div class="row"> <span class="col-md-1 text-right">Periodo:</span> <div class="col-md-2"> <input...
asked on 29.11.2016 / 10:20
2
answers

How to send two data with Laravel lists?

I want to send 2 values to the view with lists of laravel admin.horarios.create The question is this, I have this code: public function create() { $docente = Docente::orderBy('nombre','ASC') ->...
asked on 02.12.2016 / 04:56
2
answers

How to return data correctly

I am new programming and I am in the challenge of making an incremental file backup. I have been based on the paradigm of object-oriented programming and I tried to work using the good practice "DRY" (Do not repeat yourself) to avoid repeatin...
asked on 02.01.2017 / 23:22
3
answers

Basic c ++ program to return if a number is greater or less than 10

Hello I just started in c ++ and I want to make a program that takes a number entered by the user through the keyboard and returns if it is equal, greater or less than 10, to learn how the language works. The problem is that I had achieved it un...
asked on 19.12.2016 / 23:10
6
answers

C drawing patterns

I am doing the exercises before the programming exam and I can not do this: "Write a program that receives a natural number and paint approximately a square figure on a screen using a given drawing pattern, for example, if you read the number...
asked on 28.12.2016 / 17:06
2
answers

MENU: The arrow does not change down again

Here I get the arrow pointing up $('.menu').click(function(){ $(this).children('.menu-sub').slideToggle(); }); $(".sidebar-nav > li.menu > a").click(function(){ if($(this).siblings('ul.menu-sub').hasClass('in')){...
asked on 05.01.2017 / 16:41
1
answer

Find a character that is not a space or a letter, including accents and diacritics of Spanish

I want to include the space and only accept letters, numbers and accents and the special character > ñ . What I have done is the following: if (primernombre.length() == 0 || a.matches(".*[^a-zñáéíóúA-ZÑÁÉÍÓÚ].*")) { primerno...
asked on 04.01.2017 / 16:12
1
answer

Android: NullPointerException in .getIntent (). getExtras ()

I'm in an android class project and I have it almost finished but I need to pass some variables from one activity to another, it gives me NullPointerException and looking for I have not found anything.    Logcat       Caused by: java.lang.Nu...
asked on 11.01.2018 / 19:32
2
answers

Chinese characters are not printed when connecting to sql from java

I'm doing a function that all it does is print all the values of a field in a table, however I have Chinese letters saved in the database, and from sql server they look good, but when printed in java it shows only question marks, this is my func...
asked on 30.01.2018 / 21:32