All Questions

1
answer

How do I set default properties for a variable that start with a specific text?

Is there any way to set the properties of a variable by default to the initials of variables? Something like public string obsUsuario { get; set; } , all of which start with obs default to the IsOptional property, (or / and oth...
asked on 25.11.2016 / 17:11
1
answer

Alignment of precode elements in css

Example code without indent /*Exibindo trecho de código no HTML utilizando o <pre><code>*/ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </h...
asked on 23.11.2016 / 14:51
1
answer

How to return or extract more than one value from a function?

integerPower( int y ){ int base2; int base3; int base4; int total; base2 = pow( y , 2); base3 = pow( y, 3); base4 = pow( y, 4); When I call this function (I did not type return because that's the question) I...
asked on 13.12.2016 / 00:44
2
answers

How to resolve this 'java.lang.IllegalArgumentException: Unknown entity' when running this simple application?

I'm new to the Hibernate world and when I run this application, I get the following exception: java.lang.IllegalArgumentException: Unknown entity: com.nataniel.api.domain.User at org.hibernate.ejb.AbstractEntityManagerImpl.persist(Abstrac...
asked on 27.11.2016 / 02:42
2
answers

Simple Quotes vs. Doubles in PHP Regex

Considering that I have a path which I want to check with preg_match if it is the desired path, what is the difference between the two following operations? // Single quoted string preg_match('/\/path\/to\/folder\//', $path) //...
asked on 18.10.2016 / 14:38
1
answer

Assembly reference error [closed]

I'm trying to add a reference to my project, but when I add and execute the project it has this error:    Could not load file or assembly 'WaitWindow',   Version = 1.0.6164.26027, Culture = neutral, PublicKeyToken = null 'or a   of its depend...
asked on 18.11.2016 / 16:40
2
answers

Variable static and #define

What is the difference between defining a static variable and using #define in C? Apparently the two have the same function, right?     
asked on 10.11.2016 / 21:47
2
answers

Get Id and move to another function on the click button

Galera, I have the following problem, I have a table and every record I have a link. By clicking this link I get the ID as follows and call a modal. <script> $(document).on("click", "a", function(){ if ($(this).hasClass("cliqu...
asked on 22.11.2016 / 14:45
3
answers

How can I exclude the penultimate number of a period?

I'm trying to leave the period from 201601 to 20161 in SQL, but I can not do it at all! Can anyone help me? SELECT CONVERT(NUMERIC(5), CONVERT(VARCHAR(4), YEAR(Periodo_Mensal))+ CONVERT(VARCHAR(4), MONTH(Periodo_Mensal))) AS PERIODO...
asked on 01.11.2016 / 20:51
2
answers

How do I create a Library-Android using Android Studio?

I have some projects under development and I have several classes in common for these projects. I would like to know how to create and use a Class Lib so that I can reuse them whenever I need them without having to re-write these classes.     
asked on 01.11.2016 / 20:07