All Questions

2
answers

Include HTML content without adding it in REACT classes

I have a somewhat simple doubt, maybe others have had it before. I'm starting with react and, as we know, the main thing is to change content segments through the components. Now, I have a specific doubt. If when updating a segment, I would like...
asked on 15.01.2017 / 14:35
2
answers

MySQLWorkbench-How to concatenate numbering of lists that are re-enumerated when changing the value of a field with values of a field of another table?

Good morning, my question is somewhat complex. I have the following code (Very grateful McNets for the help with the formula). : select @cid := case when @poblacion = poblacion then @cid + 1 else @cid := 1 end as cid, @poblacion...
asked on 13.01.2017 / 19:24
1
answer

Go through adjacent positions of a matrix

I'm making a game that aims to fill all the squares of the same color (in this case the numbers will be the colors selected by the user who is playing, and in a matrix with dimensions of 9x9). The fact is that I have already done how to generate...
asked on 04.01.2017 / 14:12
1
answer

Get the stack trace in Java without printing it

How can I get the stack trace at a position in the code when no exception was generated? I come using try { // código } catch (IOException e) { e.printStackTrace(); } or even e.getMessage() within an exception, but I am interest...
asked on 06.01.2017 / 04:19
3
answers

What is the correct way to sort the css and the js?

As I understand the order of css and js affects and it is not just an aesthetic issue and order of the code, but it has relevance in the time of loading the page and in the user experience while carrying out said loading. Said What...
asked on 05.01.2017 / 19:19
2
answers

Correct way to display array

Which way is the most recommended to show an array in a function? typedef int TVector[10]; with const : void MostrarArray(const TVector &v){} ^^^^^^^^^^^^^^^^ directly: void MostrarArray(TVector v){}...
asked on 16.08.2016 / 02:01
2
answers

Go through an Array with a PHP Rand

I have 4 buttons which must have options (unique options, that is, they can not be repeated) The options are in a bd of mysql, and everything works fine except that the options are repeated The other functions that I have are so that the s...
asked on 07.08.2016 / 23:49
1
answer

can session_start () be used in constructors of various classes?

I have a big doubt about security, I'm using session_start() as follows: public function validar() { session_start(); if(@$_POST) { foreach($_POST as $campo => $valor) { $asig = "$" . $campo . "='" . html...
asked on 11.08.2016 / 15:42
3
answers

How to securely store the base64EncodedPublicKey key of an Android app?

In Android Developer, when we want to integrate the In-app Billing Version 3 library, we find the recommendation that the base64 keys of the application should not be stored flat in the code:    / * base64EncodedPublicKey should be YOUR APPLI...
asked on 04.07.2016 / 18:53
1
answer

Allow special characters such as @ #% & - + () / * "':;!? | ~ {} [] _ in password

What regular expression can I use to allow characters like these @#%&-+()/*"':;!?~|{}[]_ in php?     
asked on 03.07.2016 / 08:00