Posts by DiegoAugusto • 8,694 points
325 posts
-
0
votes0
answers20
viewsQ: What would be a good practice for updating Tokens to avoid a 401 return
Guys, I have a problem where the token ends up expiring at the time of a request POST. I currently update the token on expiry of the token: keycloak.onTokenExpired = async () => { await…
-
0
votes1
answer48
viewsA: Is it possible to use native components in web programming?
There is no way. Native components are different from web-rendered ones. In React-Native this is only possible because of bridge calling the native components of each platform. For the web you would…
-
2
votes1
answer925
viewsA: How do I compress an image in React?
You can use the React-Native-image-Resizer. npm install --save react-native-image-resizer react-native link react-native-image-resizer Example taken from the documentation: resize() {…
react-nativeanswered DiegoAugusto 8,694 -
0
votes1
answer25
viewsA: Endpoints using Vraptor
Hello, you need to set on Get what you want to pick up, example. @Get("/{todo}") public void getOne(Todo todo) { result.use(Results.json()).withoutRoot()…
-
1
votes0
answers57
viewsQ: Delay in scroll impende to click on a component using Selenium in Chrome
I have some components on my screen in a Section that has a scroll. When I try to click on a component where it is necessary to use the scroll to find the component. But apparently the scroll has a…
-
5
votes1
answer462
viewsQ: Schema modularization using Adonisjs and Graphql
I have a project where I am using Adonisjs and Graphql, I created the schema and defined the darlings, mutations, types. But everything was centered on just one file, so I decided to modularize the…
-
1
votes1
answer112
viewsA: Error running app directly on IOS device
Problem solved, I had to delete the contents of the folder Keychains rm -rf ~/Library/Keychains Then I downloaded the certificates and keys again.
-
0
votes1
answer112
viewsQ: Error running app directly on IOS device
I have an app that runs perfectly in the simulator, the same is already signed with my dev account. But when I try to build to run on a "physical" device some errors happen, I already tried to…
-
-1
votes2
answers1087
viewsA: IONIC 3 - error generating build - Ionic Cordova build android --Prod --release
This is a very boring problem to analyze, possibly there is inconsistency of library versions specifying Play Services. Try logging into your project.properties file and checking the library…
-
2
votes1
answer256
viewsA: Push Notification with Firebase + business rules
Try the following, the moment the user register has to generate a token fcm for him: this.fcm.getToken().then(token => { console.log(token); //Aqui você pode armazenar esse token em algum lugar…
-
0
votes1
answer102
viewsA: Ionic Framework - Web service or Mysql
No, you cannot. You need a web service, in which case it will be the layer that will be in charge of the persistence of your data.
-
0
votes2
answers356
viewsA: Angular 5 + Ionic 3: I can’t send headers in API requests
From what I understand, the HttpHeaders is immutable. Try this way: Example: const headers = new HttpHeaders(); headers = headers.set('Content-Type', 'application/json'); or: const headers = new…
-
1
votes1
answer363
viewsA: Error while building on IONIC 3
A solution to this problem would be to increase the memory of the same, you can do this by adding a new environment variable _JAVA_OPTIONS with the value -Xmx512M. Another alternative is to set the…
ionic3answered DiegoAugusto 8,694 -
4
votes1
answer876
viewsA: Delay on application startup
To improve the performance of your app you can use a ancient secret technique calling for LazyLoading (Lazy cargo). No Ionic the application of this model consists of loading the necessary modules…
-
1
votes1
answer459
viewsA: Centralize div content in Alertcontroller
You need to define a css class for your Alertcontroller: Example: let alert = this.alertCtrl.create({ message: '<div><img height="80"…
-
0
votes3
answers434
viewsA: Synchronous query in Sqlite using Ionic
You can use the async and await which is present since the typeScript 2.1. Example: public async requisicaoXPTA() { return new Promise((resolve, reject) => { this.database.executeSql("SELECT *…
-
1
votes1
answer137
viewsA: How to check the console of an Ionic app running on your smartphone
You can use Chrome to scan the console, debug the app, and other features. If you prefer to use a physical device instead of an emulator you need to enable developer mode and enable USB debugging.…
-
0
votes1
answer137
viewsQ: How to check the console of an Ionic app running on your smartphone
How do I open the console of an application running on a device? I’d like to review the logs I put in the app.
-
1
votes1
answer116
viewsQ: Why does each browser interpret/format a poorly formatted HTML differently than the others?
This week I came across a bug on a system. This system was developed in Asp Web Forms and on a given page has a input that’s like hidden. While performing a Post I realized that in Chrome and…
-
1
votes1
answer770
viewsA: How to remove a page from Ionic 2 / 3 navigation
Try subtracting -1 from the navController ex: this.navCtrl.push('CheckoutPage').then(() => { const index = self.navCtrl.getActive().index - 1; self.navCtrl.remove(index, 1); }); When you push on…
-
3
votes2
answers4622
viewsA: What command using *ngIf to do a larger and smaller check
I recommend using ngClass instead of ngIf to dynamically stylize its components. Let’s imagine a scenario where you have multiple styles, you would have to make multiple components equal by just…
-
5
votes2
answers1584
viewsQ: How to avoid infinite recursion without using the Jsonignore annotation in Springboot
I have a relationship @OneToMany amid Produto and TipoProduto where a TipoProduto may have several Produtos and a Produto may have only one TipoProduto. I’d like to list all the Produtos of a…
-
0
votes2
answers312
viewsA: Ionic 3 build error
I have seen this problem happening to some people on forums. I still don’t know the cause of the problem but here are some possible solutions: Install Ionic again in version 3.15.0 which seems to be…
ionic3answered DiegoAugusto 8,694 -
1
votes1
answer464
viewsA: Ionic - save latitude and longitude on firebase
To get your position in Latlng from the maker you need to implement a Listener that will be called every time you drag your marketing. Note that in the function I am waiting for the event of…
-
1
votes1
answer121
viewsA: Ionic 2 Onesignal IOS
Try to install the Cocoapods and then remove and add again the plugin onesignal. Cocoapods makes it easy to implement libs in Xcode. sudo gem install cocoapods pod repo update If even after the…
-
3
votes1
answer119
viewsA: Redeem user phone number
You can use the lib YES of ionic-native. Example: getInformacoesSIM() { this.sim.requestReadPermission().then(() => { this.sim.getSimInfo().then((info) => { console.log(info); }, err => {…
-
2
votes1
answer415
viewsA: How to download PDF file from server in Ionic 2?
This way you are not downloading the pdf, only recovering the path of it. To download the file you can use the Filetransfer of ionic-native. import { FileTransfer }from…
-
0
votes1
answer682
viewsA: Ionic 3 - Ion-Item Clickable
Try using ionFocus instead of clicking. <ion-input type="email" formControlName="email" (ionFocus)="doSomething()"></ion-input> There are several open issues about this problem, and I…
-
1
votes1
answer99
viewsA: Importing 'Loadingcontroller' into Ionic 3
The imports continue in the same way, but I believe it is necessary for you to update these libraries as well. Take a look at your package.json and check their version.…
ionic3answered DiegoAugusto 8,694 -
2
votes1
answer335
viewsA: App stop working after firebase push notification on Ionic 3
The problem was happening by conflict between libs. A lib phonegap-plugin-push was conflicting with another lib cordova-plugin-request-location-accuracy. In the plugin.xml file that is generated…
-
2
votes1
answer335
viewsQ: App stop working after firebase push notification on Ionic 3
I’m trying to make a push notification using the cloudSettings with firebase, but when I send a message the app stops working and the following message appears: app.modulets.: const cloudSettings:…
-
7
votes2
answers2995
viewsQ: How the Parallel hint works
One of the first things I see a crowd suggest to boost the performance of a query in the Oracle is the use of hint Parallel. What benefits/risks the use of this hint can bring, I may have problems…
-
1
votes3
answers896
viewsA: Webpack not updating Bundle.js
One solution is to use the package webpack-dev-server, in addition to solving his problem he has a very legal remedies. Well, in your package.json you can create a script as follows: "scripts": {…
-
7
votes2
answers1292
viewsQ: What are the differences between client-side and "Rendering" server-side?
Lately I’ve seen a lot of the term server-side rendering, especially with the popularization of some frameworks and libraries, but I still can’t understand what improvements this can bring to a…
-
1
votes1
answer430
viewsQ: Method being called several times in the change event of a p:ajax
I have a table with a p:inputText with a p:ajax inside, the same holds the event change, when I fill that inputText with a value a query and some validations are performed. The problem is that when…
-
0
votes2
answers203
viewsQ: Communication between Code Behind and Viewmodel Xamarin
I have two pages created on Xamarin.forms, on the first page I have a list and on the second I have the details of each item selected previously. I send the selected item from the first page to the…
-
3
votes1
answer275
viewsA: JSF: How to Reference Managed Beans
Note that in this example the name of the bean is PerfilUsuarioBean, the view can see Bean by its name only without Camelcase. In your case you can make the input Binding with the bean as follows:…
-
2
votes1
answer1159
viewsA: Search box in Java
What I found closest to this was the use of lib Swingx to decorate a JComboBox. AutoCompleteDecorator.decorate(combobox); Example: public class ExemploCombo { JFrame frame = new JFrame("");…
-
4
votes1
answer68
viewsA: Error when registering user
Try to change Id = new Guid() forId = Guid.NewGuid(). The new Guid will create a new key with zeros, and as you must already have a registered user happens to duplicate primary key Exception. See…
-
3
votes1
answer342
viewsQ: File upload inside webapp folder
I have a Rest API with Jersey where I upload files. If I set the path to anywhere else, ex: C:\\uploads works, but would like to save these files inside a webapp directory: Currently I do so: @POST…
-
4
votes1
answer1780
viewsQ: Remove characters from a field in Mysql
I have a table where I have several codes, I would like to get all the codes that start with the following sequence 1170 and remove the same. Example, the following code 11701287871 would be…
-
4
votes1
answer171
viewsQ: How to map two equal entities with Hibernate
I have a scenario where I have the entities Pedido and Usuário. The Pedido is composed of some attributes, among them the requester that is mapped as follows: @ManyToOne(fetch = FetchType.EAGER)…
-
2
votes2
answers153
viewsA: Many to One Hibernate Java
The mistake StackOverflowError happens because you are entering an infinite loop. Think about me, you want to display the additives, but within additive you have a contract that in turn also has a…
-
1
votes1
answer332
viewsA: Beginner with firebase
You can upgrade the version of angular-fire, probably the version you are using does not support the $firebaseArray. Try to change the import of your libs to these: <!-- Firebase -->…
-
24
votes3
answers13327
viewsQ: What is the difference between vertical and horizontal scaling?
I’ve recently seen some things about cloud, BD’s, etc. In some of these subjects I see quite the term scheduling. Faced with this theme I have the following doubts: The difference between vertical…
-
1
votes3
answers210
viewsA: How to create tables when starting Sisitema with JSF and JPA?
In your case I would create a class that implements Servletcontextlistener which is a Listener that checks when the start and end of an application, when implementing this class two superscript…
-
0
votes1
answer71
viewsA: Annotation @Get does not work in controller
To customize your URL in Vraptor you need to define the path in the annotation @Path Example: @Get @Path("/listar") public void listar() {..} More explanations about the Path: Javadoc Vraptor…
-
3
votes2
answers228
viewsA: Where to store the information?
There is no "best" way to save data with AngularJs, everything will depend on your needs/projects. The MongoDB works yes on Linux servers and to use it with php you need to install a driver Already…
-
7
votes1
answer765
viewsQ: What are the advantages and disadvantages of using Baas
Yesterday I attended a lecture where I was presenting some things about BaaS(Backend as a Service). After that some doubts arose: Following this model the need to create a back-end for complete is…
-
9
votes3
answers301
viewsA: How to make the if-Else instruction work for reading integers
The problem is that you are using the same number scanner in your answer. That way it will always fall into the else because you already have the value of the number you typed. Create a new class…
javaanswered DiegoAugusto 8,694