All Questions

3
answers

What's the difference between using inner join or for relationships in where

Good morning, I have the following doubt, I work in a company where the staff fills up when it comes to using inner join for efficiency and database processing, I wonder if the relationship between tables done no where is really "b...
asked on 23.12.2014 / 13:30
5
answers

How do I search for a particular object within an array?

I need to know if given Array has objeto with a certain value in its index. I tried to use indexOf , but I was not successful. arr = []; arr.push({id: 1, nome: 'Wallace'}); arr.indexOf({id: 1}); // -1 How can I do t...
asked on 31.07.2015 / 16:05
4
answers

Make an update with lambda

I have a query in lambda that returns me a list of data. I would like to know how do I update this DB table using lambda? Let's say, I have a Table called T_PDV and in it a flag field, where milestone LIDO = 1 and if it is not LIDO = 0. This f...
asked on 02.06.2014 / 18:51
2
answers

Trigger event only once

I'm doing an interface in Visual Studio 2015, how do I perform an event only once? For example: private void textBox5_Click(object sender, EventArgs e) { textBox5.ForeColor = Color.Black; textBox5.SelectAll(); textBox5.Text =...
asked on 08.04.2016 / 19:31
2
answers

Why does not Java add the numbers into expression? [duplicate]

public class Teste { public static void main(String[] args) { int x = 0; int y = 1; int z = 2; System.out.print(x + y + z); } } This returns: 3 public class Teste { public static void main(String[] a...
asked on 20.04.2018 / 19:20
3
answers

How to make the first two numbers of a Math.random sequence are not EQUAL

I made a lottery system in order to learn, I will not post the whole code here just the part that I am packed. It is as follows: The draw of the PC is a sequence of 6 numbers that I present in the DOM (it does not matter), so I want the first...
asked on 05.10.2014 / 07:02
2
answers

What's the difference between For, ForEach and Find in JavaScript?

What's the difference between the 3? For , ForEach , and Find     
asked on 24.01.2018 / 17:24
2
answers

"placeholder" of "textarea" does not appear

I have textarea with placeholder that according to documentation (English) is perfectly valid and should work: Example in JSFiddle Part of the form <?php /* Apenas o código referente à textarea */ $oc_message =...
asked on 23.01.2014 / 13:50
5
answers

Disable Save Password in Chrome in JavaScript

Would there be any way to disable the password saving option in Google Chrome, by JavaScript or jQuery? I mean the login password. When my client logs in he appears the option to save the password, and after he has enabled it, he always logs...
asked on 27.03.2014 / 16:13
2
answers

How to avoid conflict between jQuery and Mootools

What good practices to avoid conflicts between the jQuery and Mootools libraries? This example gives the error Uncaught TypeError: Object [object Object] has no method 'fade' //codigo Mootools $('sobreCamada').fade('in'); //codi...
asked on 21.12.2013 / 00:46