All Questions

1
answer

Ajax Synchronous XMLHttpRequest

What should I do in this situation. I have a script where I have to disable in the AJAX function the option: async : false . I do this because it returns a variable in the wrong way, previous to the last one that was requested. If I put...
asked on 30.04.2015 / 22:49
1
answer

Smaller image than original uploaded on canvas when drawing drawImage ()

I'm developing a system for filtering images with html5 canvas, however, as I'm at the beginning I've had some doubts and errors. In this "beginning" I want the size of the canvas to be the same as the one of the chosen image, so that it occupie...
asked on 07.05.2015 / 21:06
1
answer

Hide a column from a WebGrid

Good afternoon. I have a WebGrid and would like to leave a column invisible. How could I do that? This is the grid: @{ Layout = null; WebGrid grid = new WebGrid(Model); } @grid.GetHtml(columns: new [] { grid.Column("ID_PARAMETER"), gri...
asked on 18.05.2015 / 17:29
1
answer

How to compile this code in Assembly on Windows?

I was seeing a creation of a basic little window in Assembly that displays a message, I already installed the NASM compiler but the error to compile. .386 .MODEL FLAT, STDCALL INCLUDE windows.inc INCLUDE kernel32.inc INCLUDE user32.inc INC...
asked on 28.04.2015 / 23:19
4
answers

Extract decimal part of a Decimal

I'm having trouble formulating a good way to extract the decimal part of a decimal variable, so far the existing implementation on the system is this: public static bool getCasasDecimais(decimal val, out int result) { string[] split...
asked on 14.05.2015 / 14:08
1
answer

Why use IEnumerable?

I have the following code in a Controller: var carro = new List<SelectListItem> { new SelectListItem {Text = "Pegeout", Value = "Pegeout"}, new SelectListItem {Text = "Chevrolet", Value = "Chevrolet...
asked on 15.05.2015 / 03:34
2
answers

Filtering records of a String Array by space-separated words in Java

How do I filter the records of a Array by using the search terms separated by spaço ? Example: I have a% of String% with the following records. bottle opener box with blue padlock 30mm brass padlock with 03 keys 100mm scre...
asked on 07.05.2015 / 20:34
1
answer

Stream - findFirst vs findAny

The Stream class has two very similar methods, findFirst and findAny . Both return a Optional<T> with an item (or empty if Stream is empty). The findFirst returns the first found item. In prac...
asked on 13.05.2015 / 16:43
1
answer

Class creation that returns a String

Hello everyone, I'm a beginner in Java and I'm having a problem, I'm trying to create a class that returns a String . I create the file .java and paste my code but it gives the following error in the declaration String : Sy...
asked on 18.05.2015 / 21:09
1
answer

Failed to execute goal org.apache.maven.plugins: maven-compiler-plugin: 2.5.1: compile (default-compile)

When I click on the install in any of my three MVC parts, it references the error quoted. ================================================================================ Scanning for projects... [INFO] [INFO] Using the builder org.ap...
asked on 19.05.2015 / 14:45