All Questions

3
answers

How to simplify this comparison?

I often fall into the following situation: For example in C #: string variavel= "x"; boolean b = (variavel == "a" || variavel == "d" ||.....|| variavel== "y");    Is there any way to simplify something like b = ("a" || "b" ||   .... "an...
asked on 28.01.2016 / 18:47
2
answers

Search Products via API or Web Crawler

I want to develop software that displays product information. I would like to know if the great ecommerce used here in Brazil (American, Walmart, Submarine, Extra) provide some API to look for the information of its products. Another doubt. W...
asked on 29.12.2015 / 11:27
3
answers

Obtain the class name of an object

I want to get the class name of an SVG element. I have the following example, but I do not get your name: class_obj = document.getElementbyId("id").className; console.log(class_obj); Jsfiddle example: link     
asked on 27.01.2016 / 16:22
2
answers

How to know in JAVA that ResultSet result is empty?

I am searching the database, and I have problem with SQL returning an empty value. In fact it is possible that this happens and for this I must keep prepared for it. What method to identify that no record was found with that parameter?...
asked on 01.02.2016 / 12:08
1
answer

REST - Http x Json

I did some research and I have some questions about REST: Http is Rest? Is JSON and XML just the return format of a Rest operation? REST x Web Services: are the same things? SOAP would be the opposite of HTTP? Thank you for helping...
asked on 28.03.2016 / 14:34
3
answers

JavaScript Method Overload Function

I'm reading a book called "Secrets of the JavaScript Ninja" and in it, I came across a method overload function. So far so good, I understood what it does, I understand that it makes depending on the amount of parameters passed to the function a...
asked on 02.10.2015 / 18:22
2
answers

How to protect a decompilation assembly?

Nowadays there are a lot of changers and recompilers for .NET Framework, the guy goes there, makes an application and everyone who has a decompiler (for example IL Spy) can go there, select the Assembly and see all the source code of the applica...
asked on 10.03.2016 / 20:09
1
answer

Does every processor use the same set of instructions?

I was researching on machine language, but all I found on the Internet is very little and only theoretical so I wanted to know if it's possible for me to create a simple machine language program. What should I study to create a very simple machi...
asked on 24.01.2016 / 10:04
1
answer

Adding data from a column

   id .. product ... value ... sales_id ... total value       01 .. Pen .... 2.00 .... 1 .......... 30.00       02 .. Rubber. 4.00 .... 2 ........... 25.50       03..Lapis ...... 5.00 .... 1 ........... 10.00       04 .. Pointer 9.00 ... 1 ....
asked on 05.01.2016 / 19:07
2
answers

How hibernate.hbm2ddl.auto works?

What values can I use in this property? ex: Update <prop key="hibernate.hbm2ddl.auto">update</prop> How does it work? When should I use it? is it a good practice?     
asked on 05.10.2015 / 17:15