All Questions

2
answers

How to save program, database, or configuration file settings?

In my application, the admin user can make some settings, for example: Set whether you want to use certain product templates, or leave it open for the end user to type. Configure whether to use TIPE table, or whether NCM will be open for t...
asked on 18.10.2016 / 12:19
1
answer

How to generate a graph with a curve similar to "sine" in jquery flot?

Friends, I'm using the flot for a project of ECG (electrocardiogram) simulation , and I was faced with a problem, which I think is more of mathematics than programming > ... So sorry if I'm explaining bad. Good, my problem is to make th...
asked on 21.11.2016 / 02:01
2
answers

Simple SQL Query

I have a proc that gets the ID of a product. If it gets NULL, then it should list all products. If you get the specific ID, you should only list that product. Is there any way to do this without having to create a dynamic query?     
asked on 06.11.2015 / 14:16
4
answers

Problem with functions being executed multiple times

I'd like to know how to fix this problem. Example: I have a fadeIn / fadeOut function. The event that triggers the function is the onclick on some element. The question is: How do I prevent when I double clicks or more, the function runs ever...
asked on 13.10.2016 / 13:09
1
answer

How to optimize this code?

Is there a faster (performative) way of comparing the current value with the previous value (of the bank) with Entity Framework ? Instead of selecting Id by Id (as Discount property of the code below), check the array...
asked on 18.11.2015 / 20:08
2
answers

Functioning of variables by reference

I know that the reference variables in java serve to provide a memory location for a certain object. However, how does this mechanism work? Is it the same as the C language, where referenced types store exactly the memory address you want to fin...
asked on 07.12.2015 / 15:19
1
answer

What are the advantages of passing a function on the jQuery "html" function?

I discovered by accident these days ago that in jQuery it is possible to pass a callback function to the html function. See: $(function () { $('body').html(function () { return [1, 2, 3, 4, 5]; }); }); &l...
asked on 26.11.2015 / 19:57
2
answers

Failed to compare dates before writing to bank

I'm trying to do a date validation, if the date DataInicial is less than DataAtual , ie it can not be retroactive the script should return me an error message with json_encode not allowing the stream continue, which is not ha...
asked on 12.11.2015 / 18:29
1
answer

How to change the color of the buttons when selecting an input radio?

I have this form WhenIdialthe"Accounts Payable" radio input, I need the buttons to turn red. I'm using AngularJS, so I used ng-if , but the code was pretty extensive. How could you do this in a simpler way?     
asked on 13.12.2016 / 10:20
2
answers

How to add a font to a select?

I have the following link: <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"> And I would like to add it to a select....
asked on 12.11.2015 / 13:41