All Questions

2
answers

Convert string to DateTime in LINQ

I have a model where all fields are string . I want to convert to DateTime and Double For this I created a new model public class CPUStats { public DateTime Data { get; set; } public Double? Disco { get; s...
asked on 16.03.2016 / 14:41
4
answers

How to do select in 3 tables?

I need to do SELECT on two tables with relationship n to n , so I will have to make use of the middle table too, but I do not know how to do this. I'm using PHP and SQLServer database.     
asked on 23.11.2015 / 17:07
1
answer

What are the actions of a controller?

In this answer Gypsy says    This (example) is good here when you have multiple Actions on the Controller What are the Actions of a Controller ? Note: I would like some code example too, defining a controller with two or more a...
asked on 21.10.2015 / 18:35
2
answers

Linux 32 or 64 bits? [closed]

How do I know if the linux I'm using is 32-bit or 64-bit? I need to know what the architecture of my kernel is and I'm new to linux, I'd like to know how to figure it out.     
asked on 28.10.2015 / 00:39
3
answers

How to put a loading image inside a JavaScript function?

I have this function below: function consultarOcorrencia(number, sequence){ form = document.forms[1]; form.number.value = number; form.sequencial.value = sequence; form.submit(); } After submit , a Java Action is ca...
asked on 10.12.2015 / 17:27
2
answers

Difference italic and emphasis in HTML? [duplicate]

What's different about <i> and emphasis <em> tags in HTML? When to use each one?     
asked on 27.01.2017 / 12:13
3
answers

Similar types but with different objects. What is the best way to use it?

I had to create a new object but totally equal to that existing in the C # system. Since the objects are the same I tried to do: ObjetoOriginal.Propriedades = ObjetoClone.Propriedades; Unfortunately it does not work, does it? I tried the...
asked on 13.01.2017 / 00:17
3
answers

How does initializing fields in constructors work?

In the C # documentation it is written:    If a class does not have a constructor, a default constructor is automatically generated and default values are used to initialize the object fields. That is, if a class does not have a construct...
asked on 01.02.2016 / 20:39
1
answer

How to round off time?

I have the following function that treats a time that comes from the bank: SELECT f.chapa AS chapa, f.nome AS nome, f.secao AS cod_secao, f.nsecao AS desc_secao, c.codigo AS cod_funcao, c.nome AS desc_funcao,...
asked on 10.02.2017 / 14:47
1
answer

How to remove spaces leaving only one?

Considering a variable with a text in SQL Server . How can I remove 2 or more spaces within the text? In this case leaving only 1 space. For example: '1 tigre, 2 tigres, 3 tigres' Should result in: '1 tigre, 2 tigres, 3 tigres...
asked on 16.05.2017 / 15:47