Posts by Lucas Anjos • 189 points
5 posts
-
3
votes1
answer1820
viewsQ: How to make a Join with Django?
I’m trying to run this SQL, using Django’s ORM SELECT * FROM test JOIN questionnaire q ON (q.id = test.questionnaire) WHERE q.discipline = 4; Models: Test, Questionnaire, Discipline…
-
4
votes2
answers448
viewsQ: How to use class variable as default value in php functions?
class Teste(){ public variavel; public variavela; function teste($parametro=$this->variavel, $parametro2->$this->variavela){ // code } } Returns me the following error: Parse error: syntax…
phpasked Lucas Anjos 189 -
0
votes0
answers44
viewsQ: Send e-mail with PHP, without human intervention
I have a doubt of PHP, but I do not even know the terms that I should research. There goes. I’m starting in PHP now, and I’ve come up with a problem I can’t solve. I need to send an email when…
-
7
votes2
answers2443
viewsQ: How to print a web page using the backend Rails?
It would be possible to do this? For example: I point a page to my application, and she keeps a image of the page indicated. A print.
-
4
votes3
answers7464
viewsQ: Round numbers in C# to decimal 0 or 5
I need to round up numbers in such a way that they only have a decimal value of 0 or 5. For example 1 -> 1 1.1 -> 1.5 1.4 -> 1.5 1.5 -> 1.5 1.6 -> 2 2 -> 2 Someone knows a simple…