All Questions

1
answer

Get mouse position in percentage by clicking on the image

I have an image on the screen and I need to click on the image and know the position of where I clicked in relation to the X and Y of the image. For example, I clicked the center of the image, so X would be 50% and Y 50%. I tried t...
asked on 04.05.2017 / 22:01
1
answer

Matrix of strings

How do I declare and start an array of strings ? I tried in many ways and I still did not succeed, I thought it would work fine but it did not work. #include <stdio.h> #include <stdlib.h> int main(void){ char matriz[2...
asked on 05.09.2017 / 14:38
1
answer

Can LINQ be considered a business rule?

Sometimes I pull active objects with LINQ expression. Using filtering with LINQ can be considered business rule and in a scenario like Domain-Driven Design (DDD))? What is the best place to use (in Domain services or in Infra repos...
asked on 28.01.2017 / 13:13
1
answer

Relation of Java types or another language with processor architecture

In Java you have the primitive types: int and float , which hold a maximum of 32 bits of information, and also have long and double types that hold 64 bits of information. Does this have or could have anything to do...
asked on 01.09.2017 / 16:11
2
answers

Canvas erase correct text

I go through a search and there is no way to make it work, the first attempt works fine, but the second does not, that is, does not delete the text that was there and replace it with the new one (in the corresponding field), I assume that my...
asked on 19.01.2017 / 15:48
1
answer

Scope, nested functions, function call

I am studying this answer and I came across a doubt in a test I am performing, it follows: <script> function x(a1="a1"){ // "x" tem acesso a "a" var a2="a2"; console.log("Consele fx =" + a1); console.log("Consele...
asked on 05.01.2017 / 21:37
1
answer

Animation div with Jquery does not recognize keys

<!DOCTYPE html> <html lang="pt"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> &l...
asked on 31.12.2016 / 19:57
3
answers

How do I search and save a single field?

How can I fetch a single field from the table change it and save this field without having to fetch all fields from the table? The reason for this is simple, I have some tables that have more than 30 columns and this has a high cost of proces...
asked on 22.10.2016 / 23:35
1
answer

What is head of the threaded list?

I do not understand what head or head ) of the list means, and what is the advantage in using it?     
asked on 08.12.2016 / 13:43
1
answer

How to filter logcat by command line?

I was reading the android documentation and saw that it is possible monitor logcat by command line, without necessarily having the IDE open. I installed a minimalist version of ADB (only what is needed for it to work on the command line) an...
asked on 12.02.2017 / 00:12