All Questions

2
answers

How to send an Array via POST to a PHP controller

I need to pass an array via POST to my PHP controller, the only way I have in mind is not to pass an array, but to pass the information through a separator (,; |), but I did not want to have to keep blowing up the other side (Controller). At...
asked on 27.02.2014 / 22:06
2
answers

How to adjust div height according to text?

I created a div with a defined width, but when I insert a very large word, the text continues to come out of the div, how do I continue on the bottom line?     
asked on 11.02.2014 / 18:19
2
answers

REST Secure Authentication

I searched and found no solution to the following problem: How do I track requests in a given REST service? For example, if I have a blog in which I access my services (insert post, remove post, update post, for example) as follows local...
asked on 22.03.2014 / 19:32
3
answers

How to transform a query into a json?

I'm trying to transform the data returned from a database query in Json format, so far it's almost right, but I believe the format is being created incorrectly! json is being generated as follows! [{"codigo":"1","nome":"Lucas Marioano Perei...
asked on 17.04.2014 / 15:38
2
answers

Manipulate price in inventory control

I'm doing a stock control system in Java and I came across a question about how to store prices. I've been reading that double and float are not good for storing this type of data and for a data loss when doing calculations with th...
asked on 26.03.2014 / 22:58
1
answer

How to select categories and count number of products of each category?

I'm trying to select the categories of the database and count in the same query the number of products registered in that category. So far so good, the problem is that I can not return the category when there is no product registered, for exampl...
asked on 05.05.2014 / 22:09
3
answers

What is the name of the modeling / code notation?

I know the question was kind of strange, but it's this: It has a type of notation that is not any language, but it serves as the basis to implement in some language. for example the algorithm of Dijkstra is represented as: enquanto Q ≠ ø...
asked on 20.05.2014 / 20:22
4
answers

When to implement functions in the header?

I often split the program into small modules, each with its own header and implementation. In general, the level of abstraction used allows the implementation to be completely changed without breaking the rest of the module-dependent code. In...
asked on 30.01.2014 / 16:58
1
answer

When to use a unique constraints vs unique indices in Oracle?

Is there some kind of good practice and / or recommendation when creating unique indexes vs. constraints in Oracle? When should I use one and when should I use the other? Is there a situation where I should use both? ALTER TABLE t ADD...
asked on 17.12.2013 / 11:44
1
answer

How to use escape character in CSS?

I'm trying to insert a special character in the :before of my links so they look like this: ➔ This is the link The problem is that this character is written in hexadecimal and when I try to put it in content:'➔'...
asked on 12.02.2014 / 23:50