All Questions

3
answers

Margin in percent is relative to what?

I'm currently seeing a video on youtube on how to create a responsive website . He, at a certain point (minute 24.55), sets the margin of an image in percent rather than using the normal pixels. What I do not understand is what width or...
asked on 11.10.2014 / 12:51
3
answers

nullable on models?

What is the nullable in a model? For example: public int? ProjectId; If I put this way'm accepting null values, right? And if I put the annotation required on the property, is it required not to have the value be null or would it? Why...
asked on 11.09.2014 / 23:11
1
answer

Compile File .ly

I'm compiling a program in Haskell, but it came with a .ly file, and I can not compile it. I try ghc Grammar.ly   And I get the message: ld: warning: ignoring file Grammar.ly, file was built for unsupported file format ( 0x3E 0x20 0x7...
asked on 21.03.2015 / 01:17
2
answers

Multiple declaration of variables in Javascript

It has become quite common to declare variables in multiple lines in JavaScript. Primarily, when they are initialized later: var var1 = null, var2 = null, var3 = 0; The "normal" would look like this: var var1 = null; var var2 = nu...
asked on 15.11.2014 / 05:09
2
answers

Rotate applications in Android Studio via mobile phone via USB

Does anyone know how I can configure Android Studio to run applications on USB connected on the mobile? I currently use GenyMotion and wanted to know if there is any compatibility problem. I tried to change it inside "run configurations" where I...
asked on 28.12.2014 / 01:29
3
answers

Overlay a button to an img

The idea is to do a "tumbnail" where the play button is (centered) on the image ... <div> <img src='imagems/imagem1.png'> <button>Play</button> </div> Thank you for your suggestions and your availability.     
asked on 08.07.2014 / 15:15
2
answers

How to include a indent when using the tab key in a textarea?

I have a <textarea> that will work as a small source editor. I wanted you to press Tab to include a indentation in the text instead of focusing on the next element, which is the default behavior for the key. I wanted it to be poss...
asked on 15.12.2014 / 16:03
1
answer

Queries in asp.net mvc with entity framework

I'm starting a project in ASP.NET MVC 5 with Entity Framework 6 , along with mvc studies. This to have a better learning, and I came across the following doubt. In the controller I have the Index method, which literally returns a " se...
asked on 13.09.2014 / 01:06
2
answers

Simple comparison between dates

I need a simple comparison between dates in javascript so the end date can not be less than the start date. I found some scripts on the internet and tried to adapt to mine, but as I know practically nothing, it did not work. Follow the script...
asked on 06.05.2014 / 20:36
3
answers

How to get the value of a column corresponding to the maximum of another column?

I have a table with columns codigo , data and valor . I would like to get, for each code, the value corresponding to the most recent date. In what ways can this be done? And if there is more than one, which is the most efficie...
asked on 03.08.2014 / 19:57