All Questions

1
answer

Authorization in Asp.Net MVC

I'll try to be clear. In most instances of authentication and authorization of access in ASP.NET MVC, I see that the authorization control is usually done in Controller , with the decoration of the class itself inherited from Control...
asked on 24.11.2015 / 19:16
1
answer

Catch the parent element in hover

Good Morning! Is it possible to change the parent element by hovering on the child? For example, I have the following: nav {border:2px solid red} nav ul li {color:#fff} nav ul li a:hover {background-color:#ccc} nav ul li a:hover...
asked on 14.04.2015 / 14:06
1
answer

Add property in relation to N-N

How to add properties (columns) in an N-N relation using EF? For example, I have class Produto : public class Produto { [Key] public int ProdutoID { get; set; } public string Descricao { get; set; } public decimal Valo...
asked on 12.03.2015 / 14:10
2
answers

Normalize comma-separated values for new table

The idea is to stop having the column with the comma-separated values and pass them to an intermediate table: Source table Assuming a table named press with the following fields: id, tag_id Containing records type: ┌───────...
asked on 07.04.2015 / 17:28
2
answers

How to use blocks in Ruby

I'm having a hard time understanding blocks in Ruby. Could someone explain to me why we use it?     
asked on 10.04.2015 / 22:53
2
answers

How to retrieve specific parts / values from a string?

I have ArrayList where I am adding a custom list that is displayed in a ListView . What I need is to pass the value of the selected item to another screen. See below the method that will call the other screen: public void onIte...
asked on 18.05.2015 / 22:18
1
answer

How do I export table in R in txt or csv?

I would like to know how do I export a generated data table within R to txt or csv format?     
asked on 27.04.2015 / 17:11
1
answer

How to compare "set" images in Imagebuttons?

How do I compare if the drawable image "set" in an ImageButton is equal to null for example, or the other Image contained in another Imagebutton? ImageButton q1 = (ImageButton) findViewById(R.id.q1); ImageButton q2 = (ImageButton) findV...
asked on 02.05.2015 / 15:21
1
answer

How to make a query that returns data of the last 7 days without considering Sunday

I need some condition in SQL SERVER to return the result of the list of elements taking into account the last 7 days of creation of the same. However he can not consider Sunday as a valid day in the query. Inquiry: Select SearchId, g...
asked on 24.03.2015 / 19:25
2
answers

Which standard to use: HTML5 or XHTML5?

Why should not we mix both and which of the patterns is most useful these days?     
asked on 25.03.2016 / 13:53