All Questions

2
answers

Problems Embarrassingly parallel?

I was looking for problems called "embarrassingly parallel", problems that do not exist dependencies between tasks, and can be divided in parallel. Could you give me some suggestion of some algorithm?     
asked on 11.11.2014 / 17:25
2
answers

How to put an input submit inside the input text?

I have this HTML: <form action="" method="post"> <input type="text" name="pesquisa" placeholder="O que você procura?"/> <input type="submit"> </form> And I have this CSS: body>header form{ margin:25px...
asked on 10.12.2014 / 04:22
4
answers

Filtering td with PHP

I have several <td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td> I wanted to split these...
asked on 18.12.2014 / 20:17
2
answers

Doubt about pointers

This code creates array, initializes and prints, as well as adding, subtracting and multiplying arrays: typedef struct{ int nl; int nc; int **elementos; }MATRIZ; void criar_matriz (int, int, MATRIZ *); void inicializar_...
asked on 11.03.2015 / 23:46
1
answer

Querying RG in database ignoring scores

I have a mysql database where I need to make a comparison of registered RGs with another one provided by the user through an input, to see if the same RG is already registered in the database. The problem is that since you have records with s...
asked on 29.10.2014 / 22:02
2
answers

How to make Vector / Array of integers indexed by strings?

How do I make a vector / array of integers with strings as index? Something on the Moon would be: vetor = { ["eu"] = 10, ["voce"] = 11, } ps: It will be dynamic, so it will not have a fixed size. ps²: Struct or enum do not wo...
asked on 14.02.2015 / 09:28
2
answers

In Python, is there any way beyond 'numpy' and 'float (' nan ')' to get the special constant 'nan'?

I've been reading the Underhanded C Contest site, where the goal is to write subtly malicious code that looks normal the first View. One of the common techniques mentioned was the use of not a number , or nan , which has some special pr...
asked on 26.11.2018 / 19:32
2
answers

Full return of Date type

How do I get this return? 2014-08-05 18: 29: 47.757 Using Date . Date data = new java.sql.Date(new java.util.Date().getTime()); Using this my return is only 2015-02-03 and does not return the hours. NOTE: I need to get...
asked on 03.02.2015 / 15:14
2
answers

Format number for only 2 digits

I have a script that returns: 4.499999999999999 But I wanted it to return only 4.4 or round to 4.5, so I do not want it to be more than 1 digit after the comma, how to do it?     
asked on 19.03.2015 / 22:41
2
answers

How to make the jQuery toggle function in pure javascript?

I discovered a little time and found the toggle function very interesting using functions: $('body').toggle( function(){ alert('A') }, function(){ alert('B') } ); (In the example I put only 2 functions, I wanted...
asked on 11.02.2014 / 22:37