All Questions

3
answers

How to identify regions of heat in thermal images?

I'm developing a project where I need to process photos taken from a thermal camera. The idea is to try to identify fires in these images. I would like to know what techniques I can use for this purpose, if they know anything, or something that...
asked on 08.03.2014 / 18:32
5
answers

Add all the latest commit changes to git

Whenever I make several changes to files in Git, I quit by adding the changes one-by-one through git add . It is a rather annoying process, I wonder if you have a command to add all the changes "not staged" at one time.     
asked on 26.07.2016 / 18:51
4
answers

Why use the using block in ASP.NET MVC?

Does the using {} block work in the same way in both web and desktop applications in the sense that when we use it in controller ? It is a good practice to declare it in actions that there is contact with database Follow exam...
asked on 21.10.2015 / 18:09
4
answers

mount a regular expression

I would like some help from you to put together an expression to check if there are more than 3 bars inside a url in javascript. example: link , this one it does not catch. link , This one it catches. I will use the expression in the test () m...
asked on 13.10.2015 / 06:29
4
answers

Different ways to count record numbers in MySQL

There's a difference in performance if you do: //seleciona todos os itens da tabela $cmd = "SELECT * FROM produtos"; $produtos = mysql_query($cmd); //conta o total de itens $total = mysql_num_rows($produtos); instead of executing a query:...
asked on 23.01.2015 / 14:42
3
answers

Recursion to return numbers from 0 to n

I'm trying to do a recursive function that returns the n numbers from 0 to n , my code looks like this: #include <stdio.h> int imprimenumeros(int n){ if (n==1) return 1; else return imprime...
asked on 28.10.2014 / 23:04
3
answers

Why declare properties twice in a class?

When declaring a property in a class, they usually declare twice, one public and the other private. What is the purpose? private int _years; public int Years { get { return _years; } }     
asked on 17.05.2017 / 18:39
4
answers

Why an if can be redundant?

Using a method that returns a boolean the system would determine whether a number is positive or negative. So I did it this way: public boolean isPositive(float num) { boolean positive; if (num >= 0) { positive = tru...
asked on 19.04.2016 / 21:02
5
answers

Return null in method?

I have a method in which the function of it is, read a file and store the value written to the file in a variable and return the variable, here's the method: public String addItemCreative(File f){ String line = null; try{ Buffe...
asked on 24.11.2015 / 11:57
2
answers

Selecting a value from a row / column of the ListView populated by LINQ to SQL

Through the double click event I need to pull a value from a row / column in a ListvView populated by LINQ to SQL. For example, when the user needs to select a row / column value from this ListView, after the double-click event, this informati...
asked on 23.01.2016 / 21:43