All Questions

3
answers

While repeat structure to recalculate in C

I solved this exercise below and thought about putting a while repetition structure, so the person recalculates. But when I put 's' to return and recalculate, the exercise sums up the values of the 10 numbers I previously calculated and a...
asked on 11.09.2015 / 23:44
1
answer

Error $ HTTP_RAW_POST_DATA is deprecated

After upgrading PHP to version 5.6, I started to receive the following message:    Deprecated : Automatically populating $ HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate...
asked on 17.02.2015 / 14:46
1
answer

Saving Colors in the Database

I have a simple form, and a TYPE=color . These colors are passed in hexadecimal, but I can not save them in the database. Because it gives the following error:    Warning: pg_query (): Query failed: ERROR: input syntax is invalid for in...
asked on 18.11.2014 / 23:40
1
answer

What is reflection?

We are creating a website about computer history from the 1970s to the 1990s, and to a certain extent I found the reflective paradigm. Has this last any thing to do with reflection , what now what is it?     
asked on 06.11.2014 / 21:25
1
answer

How to make dynamic animations with CSS3?

I can do animations with transition, rotate +: hover or triggering class change with JS. But what if I want an animation in CSS3 that when rendered makes more than one movement without being 'limited to a pair of keys'? ps: At the moment I...
asked on 07.12.2014 / 02:59
1
answer

Why does the primary key group_concat (integers) generate a BLOB as a result?

Trying to answer this issue (such as AP I tried to use group_concat it returns me the object of type BLOB . Table: CREATE TABLE 'teste' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 'nome' varchar(45) DEFAULT NULL, PRIMARY KE...
asked on 14.10.2014 / 12:17
1
answer

How to generate Mega-Sena results by ignoring some numbers?

I want to generate some games for Mega-Sena using JavaScript, so that I can skip a list of numbers and indicate the total number of games to be generated. Knowing that each game will have 6 numbers, what is the best way to generate these games?...
asked on 22.11.2014 / 17:31
1
answer

What is Bind (Include="Property") used for?

When we create a CRUD with scalfold in ASP.NET MVC, in the POST methods, we have the following code: public ActionResult Create([Bind(Include = "Id,Nome")] Grupo grupo) {...} What is this [Bind] used for? When we use Gru...
asked on 29.12.2014 / 23:31
2
answers

How to send and receive a file via Socket?

I need to send files via Socket in Linux C ++, as the file may have extensive content I will need to send it to pieces. In this case, I need to create a kind of protocol to send a file (in pieces) through Sockets and be able to join again on the...
asked on 05.01.2015 / 13:45
1
answer

Loop with array + string

I'm trying to do something like: a = {move1="oi", move2="oi2"} for x=1, #a do print(a.move..x) end I can not explain very well, but what I'm trying to do is this: print(a.move..x) getting print(a.move1) and next print(a.move2...
asked on 02.11.2014 / 02:20