All Questions

3
answers

Show list of 6 in 6 items

I have a menu listing with the following HTML: .menu ul { height: 115px; width: 960x; } .menu li { font: 900 22px/22px"open sans"; color: #16232e; width: 160px; text-align: center; text-transform: uppercase; margi...
asked on 27.02.2015 / 14:52
1
answer

What size of a large considerable query?

What size of a large query ? I need to make a function to send query to the server but I can not exceed the limit to not crash the server: public function sqlExecute($sql_code) { if ($sql_code != "" && strlen($sql_code) &...
asked on 05.04.2015 / 01:37
2
answers

data.frame with hierarchy for nested list in R

I have the following data.frame d : x <- data.frame(a=letters[1:3], b=letters[4:6], c=letters[7:9], stringsAsFactors=F) d <- tidyr::expand(x) d Source: local data frame [27 x 3] a b c 1 a d g 2 a d h 3 a d i 4 a e g...
asked on 22.01.2015 / 14:13
3
answers

Generate sequential number within one month

How to generate sequential numbers consisting of year, month, 5-digit sequence. with the digits reset when changing the month? Example: 14 // ANO 11 // MÊS 00000 // SEQUÊNCIA QUE AO MUDAR O MÊS ZERA Getting: 141100000 .. 141100...
asked on 17.11.2014 / 16:57
3
answers

Colo allocate a memory based on the size of what the user entered

How can I make the program count the number of 'x' characters of the string and give X bytes to it immediately after the user enters a string? I am not able to do this, I tried for example to make after the user type the string, this: ponte...
asked on 04.01.2015 / 17:10
1
answer

Vector within vector. What does he do in that context?

40 students were asked about the quality of food in the student canteen, on a scale of 0 to 10. (1 meaning awful and 10 mean excellent). Put the forty responses into an entire array and summarize the search results. public static void main...
asked on 29.01.2016 / 20:10
2
answers

Simplify LINQ Query with Contains

I have two questions regarding LINQ queries below: { //lista de itens do orçamento var ids = itensOrcamento.Select(p => p.Id); //Produtos - todos produtos cadastrados var produtos = Produtos.Where(p => ids.Contains(p...
asked on 31.12.2015 / 21:36
2
answers

What is and what is php.ini for?

It may even be a simple question but I wonder what is the php.ini and its use for a site / system. If possible, I would like good references (not always the meeting) that can help in the explanation as well.     
asked on 19.11.2015 / 14:28
2
answers

how do I return two times using the COUNT (*) function

SELECT COUNT(*) AS contador, hora_efetivada FROM minha_tabela WHERE status=2 I have a counter that returns the total value of status 2 in the database, but in my column named hora_efetivada there are several times. How do I make...
asked on 26.11.2015 / 19:43
1
answer

Application of more than one design pattern

I've been studying design patterns and thought it was cool, but there was one thing I did not understand. Regarding design patterns , can I apply more than one of them in the same project? Regardless of which one (eg, Singleton, Observer, Bui...
asked on 20.11.2015 / 14:10