Posts by Luan Naufal • 517 points
14 posts
-
0
votes1
answer45
viewsA: Vector Struct Looplex
Lucas, I looked and tested your code, and I found some problems in it: In your branch BRC_Operacoes, you tried to use directly <clientePF.nome> and <cliente.razaoSocial> (lines 352 and…
lawtexanswered Luan Naufal 517 -
5
votes1
answer137
viewsA: Doubt about Neural Networks
For this, we are entering a definition that is conceptual time and situational time. From a concept point of view, the output 0.406 can mean anything, and the only thing it defines is what the model…
-
1
votes1
answer1185
viewsA: How to request on a server using digital certificate for Python/Django authentication
@Gabriel Santos, I see you’ve mixed some different concepts in your code: 1) When adding verify = True, you’re telling for the lib requests use the SSL certificate for the request, but in that case…
-
1
votes2
answers71
viewsA: How to make a condition based on the multiplicity of elements of a vector in the lawtex language?
It is unclear if you are trying (1) to print the |vectorX| has more than one element, or (2) if a specific author appears more than once in the vector. If this is the first option, you can use tube…
lawtexanswered Luan Naufal 517 -
0
votes2
answers94
viewsA: Error closing browser in Selenium-webdriver
The problem here is that your code finally will rotate no matter what happens before. It would be important to look at the output of your code in detail to better understand what is happening. But…
-
1
votes2
answers70
viewsA: Override de Propriedade
@Matheussaraiva, I see two problems in your code, and they relate to the concept of getters and setters. First point, is that you’re calling in your init the hidden variable to make the assignment,…
-
3
votes1
answer143
viewsA: Selecting different ranges on a giant dataframe in Rstudio
One way to do this would be (I don’t know if it’s the most efficient, but it’s possible and it works): Know where your separators are DataFrame, that is, which rows have empty text values for each…
-
1
votes1
answer232
viewsA: Lawtex - how to use logic based on the field of a struct vector?
You can perform several logics, in different positions and syntax of the code, according to your wishes, using the value of this Boolean. I will explain 3 possibilities of operation: (1) To create…
-
3
votes3
answers115
viewsA: Why doesn’t this equation compile?
@Giovaneramos, your code has some problems: 1. As the staff has already mentioned, you need to update in f(x) the multiplication to math.cosh(2*x) 2. When analyzing your code, I see that there is an…
pythonanswered Luan Naufal 517 -
3
votes2
answers48
viewsA: I’m having trouble creating a database and relating 3 tables
I made a comment to better understand your goal. But one clear thing is that you are accessing the fields wrong: You should write SELECT Cliente.Nome, Cliente.Sobrenome, Cliente.Bairro,…
-
1
votes1
answer41
viewsA: How could I reduce this code?
@user133264, your question is vague, when you ask how to reduce the code. Because reducing can mean doing in fewer lines, reducing processing time, reducing number of loops (which ends up relating…
-
2
votes2
answers61
viewsQ: Lawtex - Changing the default print of a struct
I have the following struct in my program: +<vara>: struct[Vara] { name = "Dados da Vara" request = "Preencha os dados da vara" fields { +[numero] : Integer { name = "Número" request =…
-
2
votes2
answers57
viewsA: Lawtex: How do I send a PDF of the piece by email?
The problem with your code is that you’re using <docInfo.link> on the call of DocumentInfo. As it expects a struct and you passed only one text field, it returns empty, and so its result is…
-
6
votes2
answers399
viewsA: Is there a method in Python similar to x.find(string), but which returns all occurrences?
You have two ways to do this. One using regex, to create an iterator with all occurrences. The other is using brute force in a function, which in case would be something like: inicio = 0 termo = "a"…