All Questions

2
answers

Validate range of dates in php or jquery

How can I condition PHP 5 (or jquery) if I am within a range of dates? For example I want to condition the range of dates If it is within the range send a message "Within Period" Otherwise "Out of Period" The fact is that the date I want to v...
asked on 26.12.2016 / 20:31
1
answer

Return Object JSON in Java

I have a layer repository in my application Java that has a method to return all the authors: public Stream<Author> getAllAuthors() { return StreamSupport.stream(authorRepository.findAll().spliterator(), true); } A...
asked on 27.07.2018 / 17:08
1
answer

Modifying some Django admin behaviors regarding their generated forms

I have a model which I am manipulating through the Django administrator. The model and "its business logic" requires me to establish a specific behavior regarding its form to enter data. What I need to do is the following: I have the follo...
asked on 01.02.2016 / 22:24
2
answers

Display data in a table with PDO

I HAVE PROBLEMS WHEN SHOWING THE DATA I DO NOT KNOW HOW TO DO IT WITH PDO ALREADY LOOK AT VARIOUS EXAMPLES BUT I DO NOT FIND ONE THAT SERVES ME <?php $conexion=new PDO("mysql:host=127.0.0.1;dbname=eladeria","root",""); $busqueda=$co...
asked on 02.08.2018 / 03:31
1
answer

Android: Activity with rounded edges

I am trying to make my main activity, which handles fragments, have rounded edges, a clear example is this image How could I do that? I was trying with this that I found on the same page LINK . <?xml version="1.0" encoding="utf-8"...
asked on 16.08.2018 / 21:53
3
answers

Determinant of a 3x3 matrix

Hello good night I have a question about how to do the operation to obtain the result of a 3x3 determinant, I have been looking for ideas on how to put it in my code but I can not understand it: /, until now I only have the matrix printed, I jus...
asked on 03.08.2018 / 03:20
1
answer

mousePressed with Android - Processing

I'm making a mobile application with Processing 3.0.1 (latest version) for Android (the tablet I'm using is the Galaxy Tab 3 with Android 4.4.2 to run the code) When I run the code in Java Mode it goes perfectly. But when I put the Android Mo...
asked on 25.01.2016 / 20:32
1
answer

htaccess rewrite directory url to file.html

Hi, I'm trying to redirect and / or rewrite a set of URLs. Example: misitio.com/categoria1 --> misitio.com/categoria1.html For now I have this, which correctly rewrites this first level: RewriteRule ^categoria1/(\w+)$ $1.html [QSA,L...
asked on 30.01.2016 / 21:52
3
answers

EmailValidator using apache.commons.validator does not correctly validate email

index.xhtml file where I specify the tag When I execute the application and enter the data and a correct email and click on save the validator tells me that it is an invalid format When I do not enter email (which should not be) the val...
asked on 16.01.2016 / 02:48
1
answer

Context must not be null

You see, I have a class which works properly for me, but, the images that are not seen on the screen are happening as if I were looking for the correct one, so I added the library of Picasso : Picasso.with(context) .load(Estadisticas...
asked on 17.01.2016 / 08:26