All Questions

2
answers

PHP value rounding error

I have a problem, after assigning a variable a float value as below, 4.85, after multiplying by 100, 48500 and when I will print out the value of 00000000484. $variavel = 4.85; $valor = $variavel * 100; echo sprintf("%011d",$valor);     
asked on 30.06.2014 / 14:02
1
answer

Reflection Emit, what's the use?

Passing a code to MVC, I saw that there was a Label label= new Label(); that was underlined with red, when clicking to see the suggestions, I saw the following: using System.Web.Ui.WebControls using System.Reflection.Emit I was won...
asked on 07.07.2014 / 18:00
3
answers

PHP Execution via Ajax jQuery

I'm putting some instructions inside a same PHP file that are executed according to the value of the send variable received, at least that's what I thought. In this code you have two of these instructions, one that receives send == 'bu...
asked on 02.08.2014 / 15:54
1
answer

What's the difference between using SaveChanges () only once after adding data through a foreach and using inside the foreach?

I'm inserting an average of 50,000 records into the database via Entity Framework. And I had a question regarding the following code placements: in the first (1) placement, I use foreach creating objects with their data and adding them (...
asked on 30.06.2014 / 17:00
1
answer

Assembly and Architecture Compatibility

I have no experience with the assembly low-level language. What does it take to get the most out of cross platform with this language? I mean, if I focus only on AMD64 (x86-64) will I get compatibility with all current computers?     
asked on 29.06.2014 / 19:27
2
answers

How to check if a class implements an interface, in C #?

How to check if a class implements an interface? For example, I want to include an if that checks whether an object is of type IDisposable. How to do? I tried something like: MinhaClasse meuObjeto = new MinhaClasse(); if...
asked on 25.08.2014 / 15:58
1
answer

Find the key of an array by the given value?

I would like that through a given value I could return the array key. Example: $array = array("primeiro" => 1, "segundo" => 2, "terceiro" => 3); To find out if the value exists in the array there is the in_array(); function,...
asked on 11.08.2014 / 02:45
1
answer

How to execute a method in a certain time?

I need at certain scheduled times, to execute a method even if the user is outside the application.Why do I research I will have to use services? I did not quite understand how to program the time, I just left the class created here: public cl...
asked on 23.07.2014 / 07:23
1
answer

Using hexadecimal as ID in the database

From the navigation bar, we notice that Google uses hexadecimal values to identify records:    print above has been removed from GMail, but the same is true for other services like Google Drive. What is the advantage of using hex...
asked on 08.07.2014 / 17:56
2
answers

How to give fadeIn () at different times in an img and id

I'm trying to make the text appear with a time and the image appears with a slightly longer time difference, to give a more interesting effect. The html code and js I will provide. The problem is that where the images are in the same block as th...
asked on 06.08.2014 / 14:43