All Questions

2
answers

How to show only the date without the time with Date ()

I'm setting a date to be displayed in an input, this will be today's date minus one day, but I need only the date and you're showing me Date and Time, how can I do it? What I have so far is this: var Hoje = new Date(); Hoje.setDate(Hoje.ge...
asked on 24.11.2017 / 12:50
2
answers

How to use echo in a query with prepared statement?

I would like to know how to use echo in a query with prepared statement, to be able to see how it was mounted by php before it was executed, thus facilitating visualization of the error when bind_param is done ... Example: $Apagar = $conn-&...
asked on 11.03.2014 / 19:43
2
answers

Using JSP and JAVA

I'm starting to mess with JSP. But I've been using JAVA for some time. I have the index.jsp file which is my page and I have my indexJava.java which is the program itself. I would like to know how I can unite the two. For example, when I clic...
asked on 26.06.2014 / 17:16
4
answers

Problem to find prime numbers

Today in college I learned about for and while . However, the code I am trying to formulate does not spin. It compiles but "buga" after it puts the value. The code is simply for verification whether the number is prime or not. #in...
asked on 24.03.2014 / 21:53
2
answers

Hide the keyboard

As soon as the user clicks on one of the EditText of my Android application, the keyboard appears, however, it does not disappear when it finishes typing and clicks off of it. I would like to know which method would be appropriate, kno...
asked on 14.05.2014 / 16:20
2
answers

How to access the elements of a set?

I'm studying about sets ( set ) in Python because I'm going to use an algorithm to find paths in a graph, it's for a college discipline I'm having. I created two assembly examples using two different notations. Look at the illustration...
asked on 06.09.2018 / 20:59
2
answers

How to check if a type is numeric in C ++?

Let's suppose I have a function: template<class T> T soma(const T& x, const T& y) { static_assert(/*O tipo é for numérico?*/, "Tipo de argumento inválido, O argumento precisa ser numérico"); return x + y; } Can you tel...
asked on 09.08.2018 / 23:27
3
answers

How to access a selector inside another in jquery?

I'm trying to access the div's of the specific '.contentParagraph' class of each of the '.content' divs, so that the events of one div do not interfere with the event of the other, link If you look, the paragraph in the first div '.conten...
asked on 31.08.2014 / 01:07
2
answers

Implement this

There are several divs with class .categorias and I need to display the .nav-a element only in the div category that I have with the mouse on it at the moment. What's happening now is that when I hover over any of the% d and...
asked on 10.07.2014 / 19:16
1
answer

Why does "int ('1111', 2)" return "15" in Python?

Why this output? Code: a = int('1111', 2) print(a) Output: 15     
asked on 21.11.2017 / 13:01