Posts by João Paulo Silva • 15 points
10 posts
-
0
votes2
answers800
viewsA: How to perform two functions, both containing infinite loop, simultaneously in Python?
In addition to @Anderson’s reply Carlos Woss, mysql is kind of boring for mutual database access, it can return some error with two threads accessing it at the same time. In this case, I had to…
pythonanswered João Paulo Silva 15 -
0
votes2
answers800
viewsQ: How to perform two functions, both containing infinite loop, simultaneously in Python?
I have in the file Connections.py two functions, one where I am reading the 'status' field of a table every 1 second. I also have another function in this same file doing the same process, but in…
pythonasked João Paulo Silva 15 -
1
votes1
answer82
viewsA: How to do a duplicate email check in the Put (update) method when some other user already has the same email registered?
I was able to solve :) I used sequelize.op, where I declared a variable: const Op = db.sequelize.op The section I used was like this: id:{[Op.ne]: req.body.id} Below is a list of all possible…
-
-1
votes1
answer82
viewsQ: How to do a duplicate email check in the Put (update) method when some other user already has the same email registered?
In the back-end of the application in Ode, I want to do an e-mail check when some other user already has the same email registered. Already works well when using with the POST method, however, when…
-
0
votes1
answer204
viewsA: Ionic 4 page does not load record listing update after any change
Worked out here guys. Just use the ionViewWillEnter event. The ionViewWillEnter event is triggered by entering a page before becoming active. Use it for tasks you want to do every time you enter the…
ionicanswered João Paulo Silva 15 -
-3
votes1
answer204
viewsQ: Ionic 4 page does not load record listing update after any change
Next people, I have two components in Ionic, one that lists users and another that shows the details for modification. All navigation in my app is done through routes. It turns out that after I add…
ionicasked João Paulo Silva 15 -
-2
votes1
answer76
viewsQ: How to declare a function in the form of Arrow Function?
How to declare the function below as Arrow Function in javascript Ecma 6 and then call it? Currently I use it like this and do not know how it leaves working without the "Function" in front.…
-
-1
votes1
answer173
viewsQ: How to subtract a date and time from another date and time in Ionic 4?
I need to pick two dates and time, already defined in the template like this: <ion-datetime name="ent" [(ngModel)]="ent" displayFormat="DD MMM, HH:mm"></ion-datetime>, In the class I…
ionicasked João Paulo Silva 15 -
0
votes1
answer219
viewsQ: How to store an ion-input value in a variable and pass it on the route?
Imagine the following scenario in Ionic 4: I have an ion-input for the user to enter a Ticket number. I want to store this value in a variable in the component class and then use it to pass as route…
-
1
votes0
answers54
viewsQ: Moving data from one page to another via a button in Ionic 4
In a scenario where I have a home screen with an "ion-input" and a button. When you enter the code in the input and click on the button, I want to be redirected to another page and, I want this…
ionicasked João Paulo Silva 15