Posts by Cláudio Hilário • 123 points
6 posts
-
2
votes2
answers148
viewsQ: String handling with Regex
I have the following string: const string = 'Isto é uma frase $[var_test["aaaa"].bbb], mais coisas $[var_test["ccc"].ddd].eee.fff mais coisas.' The dynamic elements are: var_test | aaa | bbb | ccc |…
-
1
votes1
answer1269
viewsA: How to return the id of the user in the session
To access the session variables you created, use the keys you used to put data into the session: $_SESSION['logged_in'] $_SESSION['userid'] $_SESSION['username'] $_SESSION['usernivel'] If you do:…
-
1
votes3
answers2206
viewsA: How to push an object into another object
let objeto = [{titulo1: [ { id: 'id'} ], titulo2: [{ id: 'id' }]}]; //Adicionar key ao objeto existente objeto[0].titulo2[0].key1 = 'teste'; //Faz o push de um novo objeto…
-
2
votes1
answer33
viewsQ: How to ensure data entry and update in different databases
I’m developing an application with a microservice architecture and a question has arisen. Each application functionality will have an isolated API, how can I ensure that when making an Insert/update…
-
5
votes1
answer124
viewsQ: Async methods - return string from UDP
I am developing a code whose goal is to send a package with a string in broadcast and then read the answer (if any), however I want to create a method that just returns the string of the answer. I…
-
1
votes0
answers46
viewsQ: Develop Plugin for Windows Desktop
I am developing a Cordova plugin for windows desktop and need to use some native functions, I will have to use Windows Runtime. I started by following a tutorial and I have the following structure:…