All Questions

1
answer

What is attr_accessor in Ruby?

I'm learning Ruby on Rails and in the content I'm studying I could not fully understand what attr_accessor is and how it works.     
asked on 13.05.2015 / 14:13
2
answers

Why is this ResultSet returning null?

If I run a query in the database returns result, however, when I run the code in java, assigning the result to a ResultSet, it appears to be empty. Can you help me? PreparedStatement ps = conectar.con.prepareStatement("select colaborador.codig...
asked on 12.07.2015 / 19:17
3
answers

Unsigned int does not work?

Next, my program keeps compiling even after I have assigned a negative value to an unsigned variable, why does this happen? Using the IDE Code :: Blocks 13.12 unsigned int numero1 = -1;     
asked on 09.05.2015 / 20:05
2
answers

C # - How to make a lambda filter with more than one field?

My List: public class Carro { public int Ano; public double Valor; } List<Carro> Fiat = new List<Carro>(); Fiat.Add(new Carro {Ano = 2000, Valor = 5000 }); Fiat.Add(new Carro {Ano = 2000, Valor = 6000 }); Fiat.Add(new Carro...
asked on 22.07.2015 / 16:47
2
answers

Logical ports in SQL

Is there a command that represents the XNOR or NOR logical port in SQL? Something that for example denies the XOR output     
asked on 12.06.2015 / 21:14
2
answers

Expando Object for Bson

How can I build a parse Expanding Object to Bson? (Vs 2013 - C # - MongoDB)     
asked on 29.04.2015 / 16:04
1
answer

Verify if it is palindrome (No instance for (Eq a) arising from a use of '==')

I got the second error in the code: No instance for (Eq a) arising from a use of '==' Code: --Verifica se a lista é um palíndromo palin :: MList a -> Bool palin(x) |x==reverter(x) = True --Reversão de lista na cauda reverter:: (M...
asked on 25.05.2015 / 00:49
3
answers

SQL of tables with multiple relationships

How would the SQL representations of creation and correct insertion of the tables below be so that it is possible to have / store the total number of videos of a genre in such a way that it is possible to take, for example, all the films of use...
asked on 17.04.2015 / 16:02
1
answer

Verify that the completed email already exists in the database without refresh

I need to fill in an email in the email field, search the database and return a message telling me if this email is already registered in the database. We developed jQuery + PHP according to the answers posted in a question that we sent, but in...
asked on 26.07.2015 / 01:47
2
answers

How to remove a link from a string in javascript?

I would like to know how I can do to remove the link from a string in javascript. str = "hey olha isso http://google.com.br, legal né?" var test = str.description.replace(/.*?:///g, ""); Expected result:    Hey look at this, cool huh?...
asked on 28.08.2015 / 20:21