All Questions

1
answer

IOS - how to make the app screen always lit?

I'm making an app for IOS that I already have ready on Android, I wanted to make a method that would leave the screen always on, but I'm not able to On Android I did it this way: MainActivity: PowerManager pm = (PowerManager) getSystemSe...
asked on 01.02.2016 / 12:58
1
answer

C # Parallel.ForEach equivalent in JavaScript

I'm trying to write methods with behavior similar to Array.prototype.forEach and Array.prototype.map , but using multiple threads. For Array.prototype.parallelMap , I did the following: Array.prototype.parallelMap =...
asked on 19.01.2016 / 21:24
1
answer

Use LINQ aggregator dynamically

I'm trying to create a function to use Linq aggregator functions (sum, average, count) and I'm not succeeding. I have the following code: private double AgreggateDynamic<T>(IEnumerable<T> list, string propertyName, string func)...
asked on 22.01.2016 / 20:24
1
answer

Problems to add values using Angular JS

See the final result: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras chaves--> <meta name="keyw...
asked on 31.12.2015 / 14:43
1
answer

When to use distributed database?

I would like to know an example in which situation I would need to use a distributed database?     
asked on 21.01.2016 / 20:55
1
answer

How to dynamically create events in VBA?

The code below creates Labels dynamically and now I need to control the mouse action (Click event) on each Label. For example, move the text font (Caption) to bold if you are regular (not blacked out). How to create the "Click" even...
asked on 24.05.2016 / 18:04
1
answer

How to decode html (entity) entities?

I have a string that returns me from the bank in the following format:    Received by Stake & amp; amp; amp; amp; amp; amp; I would like to convert it to the format without the accent markings and conversions, thus:    Received by...
asked on 01.05.2016 / 23:38
1
answer

Using the Consumer Interface

What is the advantage of using the Consummer interface of java in this way? Example: UsuarioConsummer have a class that implements the interface%% Consummer and calls their method acept % following example: public class UsuarioCo...
asked on 27.03.2016 / 04:13
3
answers

How to test Filters that verify Claim data?

I have a ActionFilter for some controllers and actions that make use of the user information that is in claims . The filter itself gets the user's claims information and performs the authorization validation process: public vo...
asked on 23.11.2015 / 12:59
1
answer

How to prevent the contents of an element from being copied after Ctrl + A and Ctrl + C?

I have a page and I want to allow copying normally, but I would like specific elements not to be copied after using Ctrl + A and Ctrl + C , for example forms, navigation menus and banner ads. This is because the content is usually what...
asked on 08.04.2016 / 20:53