All Questions

2
answers

Save SharedPreferences by assigning a key using getDefaultSharedPreferences ()

I have a class to save the email and user that connect in the application with sharedpreferences , but I save the data without any key reference so when I want to save a different data without overwriting the previous one I do not i...
asked on 27.04.2016 / 00:32
8
answers

How to always get the same results when encrypting a chain?

I have this function that serves to encrypt strings: public function encriptar($string) { $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM); $encrypted = b...
asked on 12.11.2016 / 10:39
3
answers

How to verify if two data intervals have shared elements?

A few days ago I saw a question that among other things implied a problem similar to the one I am going to raise, I wanted to do it in a more general way, because I understand that the well-thought-out solution could serve as a reference to simi...
asked on 03.08.2017 / 04:55
1
answer

"Pulse" effect in CSS3

Hi, I am trying to achieve a "Pulse" effect on a circle, using only pure CSS3. Below I leave an example of what was expected. Is it possible? Expected Current #circle { width: 70px; height: 70px; backgroun...
asked on 19.10.2017 / 14:39
7
answers

How to know what if condition is being fulfilled in PHP

I have a statement IF with several conditions OR there is some way to know what condition is being met: if ($variables_tax_id_next == 201 || $variables_tax_id_next == 206 || $variables_tax_id_next == 211 || $variab...
asked on 18.10.2016 / 00:20
1
answer

Execute subqueries in materialized view

Query. The following is a query that uses three tables: (Everything from here on is anonymous, some involuntary error can slip) SELECT id ,id_dependencia ,descripcion_corta NOMBRE ,to_char(fecha_fallecimiento, 'YYYY-MM-DD') FE...
asked on 29.06.2017 / 19:23
2
answers

Should I use a DateTime or TimeStamp type field in mySQL?

I must save dates and times in different tables of a typical transactional application where I will store varied information, such as: Dates and times at which each transaction occurs (Invoice, Payment Receipt, etc.) Dates and times of fut...
asked on 02.11.2015 / 16:27
2
answers

Copy the contents of an element to the clipboard using JavaScript

How can I copy the contents of a div (or any element) to the clipboard using JavaScript / jQuery only without using Flash? For example, if I have this code: <p id="mi_parrafo"> Texto que quiero copiar </p> <...
asked on 07.12.2015 / 17:25
2
answers

Load an image when the loading of another

I have many images but loading them slows down the page, and what I need is that I upload the first image at 100% and then start loading the next one, and that the cycle repeats until all the images are loaded. For example: <div class="i...
asked on 13.03.2018 / 21:29
2
answers

Problems with AVD in Android Studio

I need a little help, the android studio emulator is presenting me with a particular error, when launching a avd nexus_5 with API 21 , this appears: and then the emulator starts but on the black screen ... what could it be?...
asked on 17.12.2015 / 20:57