Posts by Ronald Araújo • 305 points
17 posts
-
0
votes3
answers7082
viewsA: You uploaded an APK with an invalid signature
For those who are looking for an output where the scenario is the use of the Ionic framework, I was able to fix this by changing in the config.xml file the id of my property. <widget…
androidanswered Ronald Araújo 305 -
0
votes1
answer30
viewsA: Error when obtaining token in Interceptor - Type 'Promise<void | Observable<Httpevent<any>>' is not Assignable to type 'Observable<Httpevent<any>>'
The answer came from a stackoverflow.com user. intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { var promise = this.storage.get('token')…
-
1
votes1
answer30
viewsQ: Error when obtaining token in Interceptor - Type 'Promise<void | Observable<Httpevent<any>>' is not Assignable to type 'Observable<Httpevent<any>>'
I’m creating an Interceptor to send the token along with the requests for the Api. I use @ionic/storage to store my user information. However, when I try to get the token in the constructor to store…
-
0
votes2
answers1098
viewsA: Redirection of php pages
Do the following: if ($usuario == 1) { header('Location: leticia.php?id=1' .$usuario); } else { header('Location: barbara.php?id=2' .$usuario); }
phpanswered Ronald Araújo 305 -
-1
votes1
answer343
viewsQ: How to perform an auto-update on a local web system?
Talk, you guys, blz? I have developed a web system (in Codeigniter) for a customer and the same runs on a local machine inside your office. Whenever I need to update the system, I perform the…
-
-1
votes3
answers227
viewsA: randomly generate for a period of time in php
How about scheduling the PHP script on Cron? Behold here how to do this.
-
6
votes2
answers306
viewsQ: How does Facebook write color on the browser console?
I need to do something similar to the image below: You can see it when you enter the browser console by going to any Facebook page. I tried to insert HTML into the function console.log(), but it was…
-
-1
votes2
answers32
viewsA: Create a PHP Script by pulling data from Excel
Have fun! The top 30 PHP classes for Excel One of these classes will surely help you.…
phpanswered Ronald Araújo 305 -
0
votes2
answers1041
viewsQ: How to optimize plot calculation on "broken" values
I have an application that, depending on the format of the portion that the user selects, the system will return the amount of that portion. For example: Assuming an order of R $ 50.000,00 in two…
-
0
votes1
answer121
viewsA: What is the best way to update the token using refresh_token at the angle?
For my problem, the best way I could find was to create an "Interceptor". Below, follow the elaborate code. I hope you help someone. .factory('settingsService', [function() { var…
-
0
votes1
answer121
viewsQ: What is the best way to update the token using refresh_token at the angle?
I’m developing an App (Ionic v1) that, when communicating with the server (implemented with Oauth), returns a token and a refresh_token. What would be the best way to intercept a request, understand…
-
3
votes1
answer101
viewsQ: Algorithm for popular tables in Postgressql
I am writing an algorithm to popular all tables in a database in Postgres. I already get popular all tables who have no relationship, as follows: I get all tables with the following query: SELECT…
-
1
votes2
answers401
viewsQ: Request problem with jQuery ($.ajax) and Angular ($http)
I am trying to get some data from an API in the fastest and most direct way. Using Postman I can easily get it just by giving a GET to the url (http://www.wsfebracis.com.br/Json/ListarGrupos), so I…
-
1
votes2
answers720
viewsA: Store query content in an array
If the query will occur several times and if the data of this query does not change easily you can also store in a session. For example: $_SESSION['OBRAS'] = $itemObra->listarItensObra($id, 0);…
phpanswered Ronald Araújo 305 -
0
votes0
answers277
viewsQ: Permission problem with XAMPP
I installed XAMPP in Ubuntu, but I can’t do a simple installation of wordpress. I already pointed out the project folder that in the case was: /opt/lampp/httdocs to (personal folder):…
-
3
votes1
answer283
viewsQ: Java JNLP Application and Database
I will start developing a client/server application and in my searches I found Java JNLP. I searched some forums but did not find the answer to this question: Knowing that the application will have…
-
5
votes2
answers592
viewsQ: How to convert a Std::string to a Qstring?
I’m trying to make a simple dialog box display my name. See the code. Pessoa *p = new Pessoa("Ronald Araújo", "[email protected]", 23); QMessageBox msg;…