Posts by Leo Lamas • 126 points
7 posts
-
4
votes1
answer74
viewsA: How do I delete a commit in the Github remote repository?
I think you got confused there. This command you posted works, but it is to delete branches, nay commits. If you want to delete specific commits, you can use the interactive rebase: git rebase -i…
-
0
votes1
answer15
viewsA: Trade an image with Kotlin?
Supposing: x is your counter you have a Button with ID avancar and another retroceder You can make the x is incremented in the method proximo() and decreasing in the method anterior(), followed by…
-
1
votes1
answer38
viewsA: How to send files to a static website on S3
When uploading images you need to configure the ContentType as image/jpeg, otherwise they rise as binary/octet-stream and do not behave as you wish. let params = { Bucket: req.body.bucket, Key:…
-
1
votes2
answers39
viewsA: Taking values from a for
You can use the value you have already extracted as a key in the dictionary: fruits = {"apple":"123", "banana":"456", "cherry":"789"} for fruit in fruits: print(fruits[fruit]) or ask the values of…
-
0
votes2
answers36
viewsA: help already tried everything to solve my problem with mysqli
Here is a valid example: // prepare and bind $stmt = $conn->prepare("INSERT INTO MyGuests (firstname, lastname, email) VALUES (?, ?, ?)"); $stmt->bind_param("sss", $firstname, $lastname,…
-
0
votes1
answer29
viewsA: I’m not able to read strings with space and store them
By default the function fscanf will read until you find a space " ". You need to specify that your string is in quotes in Pattern: fscanf(dados, "\"%[^\"]\" %f %f %f", &cidades[i].cidade,…
-
2
votes1
answer86
viewsA: How does async/await work in Rust?
When you use async in a function in Rust: async fn teste() { ... } is the same as saying that this function returns a Future. By "down" it is as if it: fn teste() -> impl Future { ... } and Crate…