Posts by Geferson • 1,344 points
47 posts
-
1
votes0
answers1005
viewsQ: How to optimize the loading time of an Ionic2 project?
I made an application with Ionic2 from scratch, using by default the project "Blank" following the documentation. The project itself is running smoothly. But one thing that intrigues me a little is…
-
1
votes1
answer168
viewsQ: Angularjs is clearing the Url parameters
I have a system with Angular and Java. On the initial route I read the url parameters (some user information such as code, etc.) and saved in $rootScope to access throughout the application. If I…
-
0
votes2
answers796
viewsA: Error Installing Weblogic Oracle
You are trying to install the Weblogic server, but a prerequisite is having the JDK installed on the machine. The error message is accusing just that, that you have installed the JRE and not the…
-
6
votes1
answer1162
viewsQ: Deploy App Node.js on localhost(Production)
I developed an application with Angular + Node.js. The only detail is that there is no centralized server (Node.js), that is, each client will have its version of the server running on its network.…
-
1
votes1
answer327
viewsQ: How to effect the @Override of a Function in Angularjs?
I have an abstract controller with Angularjs. In it I have among other things, a research Toolbar. I would like to use this search input on all controllers that inherit from the parent controller.…
-
21
votes2
answers4047
viewsQ: What are the main differences between JSON and BSON formats?
I’ve been reading an article on Internet, where they commented on the format BSON(Json Binário), but I was left with some doubts about: What is the BSON? For what reasons he was created? There is a…
-
2
votes1
answer68
viewsQ: Is it possible to manipulate a template of an abstract route, in other routes, dynamically?
At the angle I created an abstract route using $stateProvider. This route is where you have the side navigation menu and two Toolbar, one with a few buttons, and the other search. I created an…
-
1
votes3
answers1314
viewsQ: How to read a . json file in the Angular module.config()?
I have a config.json file at the root of my project with some information that can be changed: folder path, etc.. I cannot create constants (angular.Constant) in the code, because as I said the…
-
0
votes1
answer33
viewsQ: How to correctly add more than one ion-radio to a template?
I’m having trouble adding more than one ion-radio to a template. I have a screen with an ion-radio that is working accordingly. However I need to add a few more and I am finding problems. When I…
-
1
votes1
answer375
viewsQ: How to finish a loading screen after running Presets in Angular?
Good morning. I have a question, I have a controller that searches some data of a webservice Rest, and persists them in the device database (Ionic), to perform the search of the data, I am using…
-
1
votes1
answer81
viewsA: Error with Hibernate when running server
The injection of CDI dependencies, works basically by linking "Producer" x "Dependent" in your DAO, in this line: @Inject EntityManager em; You were asking the server to inject an instance of…
-
3
votes2
answers1282
viewsQ: How to run a Function after entering the Controller in Angularjs?
I have the following problem, I have more than one state of navigation in the angular that uses the same controller, so: .state('app.estado-navegacao-1', { url: "/estado-navegacao-1", views: {…
-
1
votes2
answers753
viewsQ: How to extract values from fields of a javascript object (JSON)?
I have any Javascript object, ex: var pessoa = {nome: 'Carlos', cpf: '123', rg: '456'}; I need to list the fields that this Object has and the corresponding values. To list the fields I got the…
-
0
votes2
answers159
viewsA: How to pass the answer received by Volley to a Global variable?
In this case, just make the Object static, and it will be "global". private static JSONObject res;
-
2
votes2
answers396
viewsA: Navigation Drawer
The problem happens because you are using a relative layout with Listview inside, in which case the list will start from the top. Since You have only one list within the layout, a simple way to…
-
1
votes1
answer715
viewsQ: How to select field content when receiving Focus?
I have a problem that seems to be simple, but it has taken me a long time looking for possible solutions and so far I have not been able to solve. I need to select the content of an Input in an HTML…
-
3
votes1
answer299
viewsA: Error install Ionic on Ubuntu
Try to clean up previous facilities: sudo npm remove -g cordova ionic npm cache clean And finally install again: sudo npm install -g cordova ionic…
-
15
votes1
answer3815
viewsQ: What are the ideal use scenarios for Node.js?
The theme is broad, but I’ll try to focus on what I really need to understand. Lately I’ve been studying Node.js, and I’ve been surprised by the tool, in the comparative that I’ve seen, seems to be…
-
0
votes1
answer47
viewsA: Modified Android Studio Project name
The problem lies in that line: Caused by: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.Button Declared a component in xml(view) and retrieved otherwise…
-
0
votes1
answer82
viewsA: Error searching for Information in Sharedpreferences Android
I found the problem: In a system method, I was having a string saved instead of the Configuration Object, so I was throwing those bars and defacing my code. I was doing like this: String config =…
-
2
votes1
answer40
viewsA: How to change the title of Webview
Change the androidmanifest.xml file Tag: Application Tag: Application Property android:label <application android:label="NomeDaSuaAplicação"…
-
1
votes1
answer82
viewsQ: Error searching for Information in Sharedpreferences Android
I have an android application, and in it I keep some basic user information in Sharedpreferences, but started to show the following error parse JSON: java.lang.Illegalstateexception: Expected…
-
1
votes1
answer402
viewsA: Text in the Progressbar
Try to use it this way: ProgressDialog progress = new ProgressDialog(this); progress.setMessage("Carregando"); progress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);…
-
10
votes1
answer2752
viewsQ: What are the differences between Grunt and Gulp?
I’ve heard a lot about Grunt and Gulp, but I still don’t understand what they work for exactly. my doubts, are the following: What are they for? Is there any relationship between them? They can be…
-
1
votes1
answer238
viewsA: How to turn this query into a JPQL?
In HQL/JPQL Relational object queries, the query is based on the Classes and not on the tables of the database, without the name of the Classes/Fields it is difficult to pass you with accuracy, but…
-
2
votes1
answer212
viewsA: What would be equivalent to these two persistence.xml properties in Hibernate?
See if Resolve: <property name="hibernate.format_sql" value="true"/> <property name="hibernate.show_sql" value="true"/>
-
1
votes2
answers526
viewsA: How to do dialog with listview inside?
A simple way to do this is to use the Dialog setItems method, from it you arrow your list, and it is loaded automatically in the Dialog. Example: final CharSequence[] cores = {"Azul", "Preto",…
-
3
votes1
answer920
viewsA: Change Size Dialogfragment according to Android screen
A Solution can be to take the dimensions of the screen of the apparatus. Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); int largura =…
-
0
votes4
answers140
viewsA: Factory returns blank result
Try to use in this Format: angular.module('MeuModulo') .factory('MeuService', ['$http' function($http) { return { getAlgumaCoisa: function() { return algumacoisa; } } }])…
-
4
votes1
answer715
viewsA: Volley on Android
Well, let’s go in pieces. What is the Volley? Volley is a google library for android, which aims to make http implementation "easier and optimized". He is native on android? No, you need to download…
-
0
votes1
answer198
viewsA: Status 200 data Undefined Angularjs
Try something like that: .factory('MeuService', ['$http', '$q', function($http, $q) { var URL = "MinhaUrl"; return { getCinemas: function(){ var deffered = $q.defer(); $http({ method: 'GET', url:…
-
5
votes2
answers8025
viewsA: How to use variable in more than one controller in Angularjs
You have two options for this: $rootScope or a Service. If you want to make a global variable to use on all controllers, you can use $rootScope, which is the share scope between controllers. A…
-
4
votes1
answer182
viewsA: What is the best way to use Media Queries
Actually, the two ways are correct. there are no performance differences or anything else, they’re just different filters. There are both, because if you want to apply css within a range, you can…
-
1
votes2
answers1341
viewsA: Java coupon printing
Each tax printer manufacturer releases their sdk for developers. You will have to develop individually, because the functions depends on how each company set up. If you do it for Daruma and Bematech…
-
2
votes3
answers581
viewsA: What strategy to use to create website that sends information to Android app?
Yes, the idea would be to make a webservice for this process. I can recommend you two things, if you are going to do Webservice in java, generating JSON, you can use jersey, which is very simple,…
-
2
votes3
answers1243
viewsQ: How to select the content of an input in ng-Focus?
In an input I have a method that selects the content of the field when clicking on it. <input ng-click="selecionaTudo($event)"> That’s the job of: $scope.selecionaTudo= function($event){…
-
0
votes3
answers2318
viewsA: How do I zoom into a css or javascript page?
That should solve: <script type="text/javascript"> function ajustaZoom() { document.body.style.zoom = "67%" } </script> <body onload="ajustaZoom()"> </body>…
-
1
votes1
answer782
viewsA: Problem using Bootstrap Tabs
The libs were inverted, as bootstrap depends on Jquery, I put jQuery’s before and everything started working. <script type="text/javascript" src="lib/jquery/jquery.js"></script>…
-
0
votes1
answer782
viewsQ: Problem using Bootstrap Tabs
I’m trying to use the tabs component of bootstrap, but I’m not able to make it work, I’ve taken several examples, but I can’t make it work. <script type="text/javascript"…
-
2
votes1
answer280
viewsQ: Why is Broadcastreceiver called several times and always with the same "extra"?
I have an app that sends text messages on android, and a Broadcast to capture errors if I can’t send to the recipient. If you cannot send a message, I capture the object and write to the database…
-
2
votes1
answer1338
viewsQ: Help with Mask Directive for 4 decimal digits in Angularjs
I want to make a number directive in Angularjs with two features, one to format when typing a number in an html input. Example of how you would like : 1,200,0000 12.000,0000 120,000,0000 and the…
-
2
votes2
answers901
viewsQ: Colorize Selected Line Angular JS and Bootstrap
How do I color the selected line in a table? I have the following code: <tr ng-repeat="p in produtos" ng-click="info(p)" ng-class="{'info': ??}"> I’m just not able to find a condition to color…
-
0
votes1
answer347
viewsQ: Error calling REST with Angularjs
I’m using the angular $http to make REST calls on my server, but I’m having a problem: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not…
-
-1
votes5
answers6291
viewsA: Encrypt string based on a php keyword
Yes, I have some encryption done in java/Delphi/android a simple example I can give you is this: public static final String CHAVE = "PALAVRA_CHAVE"; public static String criptografia(String senha) {…
-
0
votes0
answers174
viewsQ: Doubt when generating REST of return of Procedure in jersey
I have a method where his return is a list, based on an execution of a trial in the bank StoredProcedureQuery spq = em.createStoredProcedureQuery("PROCEDURE"); .... The return of this query are some…
-
1
votes1
answer66
viewsQ: Strange behavior of Basedapter on android
I have a ListView with CheckBox, that one ListView is organized with two List in Adapter, one that would be all items, and the other only with the selected. I created a CheckBox to add the…
-
3
votes1
answer205
viewsQ: How do I know if there was a glitch in texting?
I have this method of sending SMS via app: public boolean enviaSMS(String fone, String mensagem) throws Exception { try { smsManager.sendMultipartTextMessage(fone, null,…