All Questions

3
answers

What is SQL injection and how can I avoid it?

I have found many questions in StackOverflow about web programs or forms that store information in a database (especially in PHP and MySQL) and that contain serious security problems related mainly to the SQL injection . Normally I leave a c...
asked on 20.05.2016 / 06:13
3
answers

Complement to 1 and complement to 2

Why in this code: int a = 2, b = 0, c = 0; c = -a; // resultado c = -2 c = ~b; // resultado c = -1 Why in the first case c=-2 and in the second c=-1 ?     
asked on 15.07.2016 / 12:11
4
answers

Work with dp on Android

My question I think should be simple to answer, but I really do not know the answer so it goes there: I am trying to subtract the original height of a layout 50 dps . Right now I do it in the following way: v.getLayoutParams()....
asked on 20.01.2017 / 21:57
3
answers

Website hacking with a script that references another site

Recently my site was hacked, the attackers managed to upload a webshell to the site, however everything was controlled and the site is safe again. Now eset nod32 I detected a trojan fakejquery , investigating a bit I could see that in t...
asked on 17.10.2016 / 23:59
5
answers

How to make my input text have a separator of thousands and decimals in jquery?

I am trying to make a coin format for my input, which I want to be formatted automatically with thousand separator (",") and decimals; try with several plugins but they do not work for me. function addCommas(nStr) { nStr += '';...
asked on 09.09.2016 / 18:30
1
answer

How to border shadow an image when you click on it?

I am making a form to select the type of card at the time of payment and I want that when you select the image of the type of card it is marked with a shading around it. my template is: <form> ... <div class='formulario-tarjeta...
asked on 28.03.2018 / 13:58
7
answers

Differences between x ++ and ++ x

In the code I see many times x++ in loops, but sometimes I find ++x . Is there any difference between these two expressions?     
asked on 03.12.2015 / 18:04
2
answers

How to generate a dynamic menu with NavigationView that contains a notification counter?

I am developing an Android application that contains a menu that is generated dynamically, so the menu is generated by programming: private void cargarAvisosMenu() { // Menu final Menu menu = this.mNavigationView.getMenu(); // C...
asked on 10.12.2015 / 10:25
3
answers

Difference between input () and raw_input ()

I am informing myself with the functions to interact with the user. I'm with the basics: raw_input() e input() . I have read that input() only takes the intenger data, which does not accept strings, and that we use raw_inp...
asked on 09.12.2016 / 02:38
1
answer

Use CONCAT or CONCAT_WS in MySQL?

As we already know, MySQL has two functions to concatenate strings: CONCAT and CONCAT_WS . Responding to a question, I saw that CONCAT does not yield the expected results when at least one of the values equals NULL ....
asked on 13.07.2017 / 16:12