All Questions

1
answer

Is it possible to make a condition within a Select?

I'm running a query using Select , to select only the required fields and consequently to have higher performance. In my View user can choose certain fields to load My ViewModel public class CliViewModel { public b...
asked on 03.11.2015 / 18:18
5
answers

Induction type for any type of object

I want to make a method of a given class accept an object as a parameter. But this object could be of any type. Example: class classeExemplo { public function meuMetodo(Object $objeto) { // Seguiria aqui o bloco de código }...
asked on 24.11.2015 / 20:59
2
answers

Web scraping with pure Javascript

I want to do a web scraping that reads an XML page and takes a certain value that is in "name", but I'm not sure exactly if it's possible - I just found out how to do with NodeJS - is it possible to do with pure JS? No external libraries and / o...
asked on 05.11.2015 / 18:29
2
answers

Check two null fields with Data Annotation

I have two properties: public int? Inicio {get; set;} public int? Final {get; set;} Both accept nulls and are not required. I wanted to check if the two are null using Data Annotation . The operation would look something like Compare...
asked on 03.12.2015 / 21:11
2
answers

How to not serialize a given element type with jQuery

I have a form and I do not want to "serialize" the input's type of checkbox , so I tried some options such as below: var form = $('#service-item-form :not(:input[type="checkbox"])').serialize(); But unfortunately it does not work! I would...
asked on 19.11.2015 / 16:51
1
answer

How to sort a Triangle

I want to classify a triangle on the sides, and a triangle with all equal sides is called Equilateral, with all sides different from each other called Scalene, and if it has only two equal sides, it is called Isosceles. p> I tried to do this:...
asked on 12.12.2015 / 16:48
3
answers

Is it possible to develop mobile cross-platform using Java?

I'm migrating the development of my Java applications to build native apps for Android. I would like to expand my applications to other platforms, such as iOS and Windows Phone. Is it possible to do this with Java ?     
asked on 13.01.2016 / 18:07
2
answers

How to generate code before entering data in the database

I need to generate a code that is equal to id which will be auto-incremented in the database. It will be a routine that checks the last id generated and generates a code that will be id later before inserting the data. Fo...
asked on 19.11.2015 / 21:40
1
answer

How to find out the version of my C / C ++ in the Linux operating system?

I would like to learn how to find out the version of my C/C++ in the Linux operating system. How could I do this through Terminal ?     
asked on 06.01.2016 / 12:29
1
answer

#if DEBUG always runs, even in release mode

I'm trying to use the #if directive so that a given method runs only after it is published (in release mode). The code is something like #if !DEBUG AlgumMetodo(); #endif I've also tried to add ConditionalAttribute to th...
asked on 27.01.2016 / 13:11