Posts by Orlando Correa • 336 points
9 posts
-
1
votes1
answer442
viewsA: Send login and password in Javamail email
the problem is on the line: String htmlText = "<H3>Seu cadastro foi realizado com sucesso e seu login e senha…
-
0
votes1
answer31
viewsA: How can I create a query with alternate sorting in Rails 5?
Just use the "order" method your model already inherits from Activerecord: Produto.order("loja_id asc, nome asc")
-
1
votes1
answer60
viewsA: Cell phone form, auto complete phone
I use a jQuery plugin called jQuery Mask. In the link you will find an example called "São Paulo Celphones" which is probably what you search for.…
-
3
votes2
answers286
viewsA: How to avoid memory bursting with recursiveness
You need an output criterion for recursion.
javaanswered Orlando Correa 336 -
3
votes1
answer139
viewsA: Operator and Ruby
Your && is correct, the problem is in elsif. Notice this snippet: elsif (i % num1 == 0) && (i % num2 == 0) "elsif" is the same as "Else if", so this chunk of code only runs if the…
rubyanswered Orlando Correa 336 -
0
votes2
answers154
viewsA: Inheritance persistence, one-to-one relationship and manual primary key
@Id works for your case, as long as you use a Single table for the entire class hierarchy, i.e., @Inheritance(strategy=InheritanceType.SINGLE_TABLE) and a heading for distinguishing between classes.…
-
2
votes2
answers115
viewsA: When adding system function does not compile
The == operator in non-priminal types compares only the reference of the object, not its equality. When you do obj1 == obj2, you are only comparing if the obj1 pointer points to the same memory…
-
0
votes1
answer372
viewsA: Entering data automatically when loading the JSP page
Your JSP should only contain the form code, leaving the CRUD operations to, for example, a Servlet. The error in question occurs because at the beginning of the page you load a scriplet that…
-
1
votes1
answer359
viewsA: How to implement Rest application in production? (Web or cloud servers)
For hosting we have used the digital Ocean and we are very satisfied. Regarding urls, after deploying the application, change the android client settings, replacing the localhost with the server…