Posts by Eduardo Binotto • 2,640 points
73 posts
-
1
votes2
answers1766
viewsA: Very Slow Loading (Angular 4)
Good morning Duilio, as you are generating your versions in production. Is using ng build --prod ?? If that’s not the problem. If so, how was your application built? Are you using the "Lazy loading"…
angularanswered Eduardo Binotto 2,640 -
2
votes1
answer396
viewsA: Delphi Error or Bug in Procedure Creation
Good morning Ailton, this problem usually occurs when we ask the IDE to create the Procedure automatically and there is some code error, for example a missing period and comma. I hope I’ve helped.…
-
1
votes3
answers3857
viewsA: Angularjs take a data from the input that was filled in by a JS
Good morning Celso, why don’t you change this algorithm that fills the html, and instead of the same sector the value for the DOM input you don’t make it set the value directly to your javascript…
-
3
votes3
answers480
viewsA: How to load an ng-controller through ajax and inject it into the DOM
Good morning, to work what you are wanting to do, you must use $compile() angular. Example: var mainMod = angular.module('MainApp', []); mainMod.controller('MainCtrl', ['$scope','$compile', var…
-
-1
votes1
answer331
viewsQ: Mobile Application making calls in Delphi
I was wondering if it is possible to make calls with a mobile app built in Delphi ? If it is possible to show an example of how to implement.
-
0
votes1
answer331
viewsA: Mobile Application making calls in Delphi
Yes Delphi built applications allow us to access api’s like PhoneDialer to make calls for example. But there are numerous other libraries that allow us to perform other operations with the device. A…
-
5
votes2
answers17150
viewsQ: How to create an Anonymous Thread in Delphi
I would like to know how to create an Anonymous Thread in Delphi, if you can show an example I would be grateful.
-
12
votes2
answers17150
viewsA: How to create an Anonymous Thread in Delphi
Anonymous Thread in Delphi are often used to perform parallel processing. A good reason to use Thread is when we need to run one or several relatively heavy processes, but we do not want our…
-
3
votes1
answer80
viewsA: Showmessage presents the message 2 times
The problem is in your for, is passing 2 times, thus showing 2 messages; Do it this way: boolean existeCamposVazio := false; for i := 1 to form1.variavel do begin if…
delphianswered Eduardo Binotto 2,640 -
6
votes1
answer2941
viewsA: Add an if with 2 conditions
There was one left ) in his comparison: change your code for this: if (En_var.Text = inttostr(3)) and (En_raster.text = inttostr(1)) then
delphianswered Eduardo Binotto 2,640 -
0
votes2
answers321
viewsA: Write a new html with js or jquery
Yes, it is possible. With Js Puro: document.getElementById("ID_DIV").innerHTML = "<input type='text'> </input>"; And with Jquery: $("#ID_DIV").html("<input type='text'>…
-
6
votes3
answers3580
viewsA: How to use double and single quotes?
The problem is in your bars, which are reversed. Test like this: $color = "red"; echo ("<button onclick='change_background(\"red\");'>$color</button>"); Change the bars from "/" to "\".…
-
1
votes1
answer694
viewsA: Spring JPA XML error
The error happens because there is a duplicate annotation, that is, it is added twice. Remove the following line that will work perfectly: http://www.springframework.org/schema/context…
-
2
votes3
answers97
viewsA: How to make "Adapter.getItemPosition" take only part of the String and hide the other part when presenting Listview?
You can save the entire object in your Adapter, in your object you implement the toString which is the method that the Adapter will use to show on ListView, and when you need to get the code for…
-
0
votes2
answers66
viewsA: Place a value inside the jquery val
If it is a input you must do this way: $("#rastreo").val('TESTE'); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type="text" id…
-
1
votes1
answer103
viewsA: Motion sensor
To get the values, you can use 3 shapes, and here they are: Declare let motionKit = MotionKit() And so get the data in the following ways: Data from the accelerometer:…
-
1
votes1
answer1159
viewsA: Import sqlite database already populated
Good afternoon Fabio, I believe that do the Insert with insertOrThrow no problem no. I built an application that first synchronization it inserts about 40 thousand records. I haven’t even found a…
-
1
votes1
answer487
viewsA: Change the scroll of spring-security by bean
To solve your problem you will have to implement HandlerInterceptorAdapter and validate by the called url’s. Para isso adicione em suas configurações: <mvc:interceptor> <mvc:mapping…
-
3
votes1
answer10995
viewsA: How to read a json file using Delphi
Here’s an example of how you make the Delphi call to your url and get the json values function TForm3.getTemp: TTemp; var lHTTP: TIdHTTP; lParamList: TStringList; LJSONObject : TJSONObject;…
-
1
votes3
answers797
viewsA: How to consider an empty Edittext as "0"
To get the value of your EditText use this function by passing it as parameter private int getValorEdit(EditText edit){ int ret = 0; if (! edit.getText().toString().equalsIgnoreCase("")) { ret =…
-
2
votes3
answers3091
viewsA: Ordering select in alfábetica order with jQuery
Use this function to sort your select function ordenarSelect(id_componente) { var selectToSort = jQuery('#' + id_componente); var optionActual = selectToSort.val();…
-
2
votes3
answers467
viewsA: What is the best method for exceptions?
To validate unfilled fields, you will not be able to do this with try catch because the empty field will not generate an exception. Use the following command to check that the field is empty: if…
-
2
votes2
answers884
viewsA: What to write in an Exception Class (Exception)?
Correct, so if at some point in your system, that is, in some part of your code you need to raise an exception, then it would raise an exception already known to you. Say you want to validate if the…
exceptionanswered Eduardo Binotto 2,640 -
7
votes2
answers860
viewsA: What are the Exceptions?
Exception means something that is not common, that is not part of the rules. The exception occurs when something happens outside the common rule, an unprecedented fact, which was not done or known…
-
6
votes3
answers7988
viewsA: How to put an animated GIF in an APP on Android?
The android natively has no resource for .gif lively. For you to do this effect we will have to have all the animation images available to be added in one xml. Then create an xml called…
-
1
votes1
answer95
viewsA: How to add multiple numbers in Sharedpreferences and always keep the instance of Sharedpreferences?
To keep the old data you must enter a new key. Here is an example of generating a GUID-based key, where this key will never be repeated. Import: import java.util.UUID; and do the following: UUID…
-
2
votes1
answer37
viewsA: Loop Loop on Tmemo
Comes to insert into position [10], [11] for example, use: Memo1.lines.add('linha adicionada'); So you’ll always add on the next line. And to clean up your Edits use: edit1.clear;…
delphianswered Eduardo Binotto 2,640 -
1
votes1
answer1693
viewsA: Add lines in a certain place of Tmemo
You can use the following command to write on a certain line of the TMemo: Memo1.Lines[3] := 'asd'; Or you can do so too: Memo1.Lines.Insert(3, 'asd'); If you need to delete a specific line use:…
delphianswered Eduardo Binotto 2,640 -
4
votes2
answers3731
viewsA: Like killing lawsuits with Delphi?
Use this function: function KillTask(ExeFileName: string): Integer; const PROCESS_TERMINATE = $0001; var ContinueLoop: BOOL; FSnapshotHandle: THandle; FProcessEntry32: TProcessEntry32; begin Result…
-
4
votes2
answers199
viewsA: I’m not able to exbir a listview that uses an Arrayadapter<String>
The problem is in the method @Override public View getView(int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub return null; } It should not return null, but it…
-
0
votes3
answers121
viewsA: How to avoid connection from stopping the application?
You must perform this connection process with the server within a AsyncTask, because if you delay the connection is running inside another Thread and not in the main. Example: Create a class that…
androidanswered Eduardo Binotto 2,640 -
1
votes1
answer205
viewsA: Jboss AS 7 using proxy with HTTPS
You need to add the certificate in the key storage file used in the JVM and located in %JAVA_HOME%\lib\security\cacerts. First you can check your certificate is already in the key storage file by…
-
2
votes2
answers701
viewsA: Create Tedit Array at Runtime;
Your ArrayEdit is an array of Objects of the type TEdit then you just access it in the position that will have a Tedit, then just access the property Text of the same. for x := 1 to…
delphianswered Eduardo Binotto 2,640 -
2
votes3
answers1050
viewsA: Increasing the size of a Textview, according to the amount of data entered in it
To solve your problem add one scrollView first of all, as the example shows: Remembering that after a scrollView there can only be one element, so I put a LinearLayout, there inside this…
-
4
votes3
answers9781
viewsA: How to make a "Submit" in javascript?
You can use pure Javascript to solve your problem by being very simple. Example: document.getElementById("myForm").submit(); Button: <a href="#"…
-
5
votes1
answer266
viewsA: How to create a scan sequence in the Postgres database?
With varchar you will have to create a tigger and increase its field. Example: CREATE FUNCTION update_transaction_id() RETURNS trigger AS $BODY$ BEGIN NEW.userid := 'id' || nextval('seq_name');…
-
2
votes2
answers223
viewsA: SELECT sort by the quantity of another SELECT
Use a left Join to relate the 2 tables and make a ORDER BY SELECT * FROM conta C LEFT JOIN produto P ON P.idconta = C.id and p.status = '3' WHERE apelido_usuario <> '' AND conta.id IN (SELECT…
-
1
votes3
answers373
viewsA: Reset button on the form
You can use pure Javascript to solve your problem by being very simple. Example: document.getElementById("myForm").reset();
cakephpanswered Eduardo Binotto 2,640 -
1
votes1
answer2819
viewsA: How to put a text box in javascript
Here’s an example of what you’re trying to do: <!DOCTYPE html> <html> <head> <style> table, td { border: 1px solid black; } </style> </head> <body>…
-
3
votes1
answer36
viewsA: Select by selecting the attendant below the call media
You’ll have to use having for this, here is an example: SELECT count(a.adminID), a.adminID from os JOIN cadastroCliente cc ON cc.cadastroClienteID = os.idcliente JOIN administrador a ON a.adminID =…
mysqlanswered Eduardo Binotto 2,640 -
3
votes6
answers65532
viewsA: Sum in 2 inputs and appear in real time - Javascript
Here is an example of the sum of 3 inputs, as the user is typing he is already calculating total, as shown in the example below: <div id="qtde_elementos"> <form action="" method="post">…
-
8
votes2
answers1853
viewsA: How to convert an html string to jQuery object?
You can use innerHTML native. Example var objeto = '<div id="minhaDiv"><span id="meuSpan">Span</span></div>'; document.getElementById("ID_DIV").innerHTML = objeto ; Or you…
-
1
votes2
answers107
viewsA: How to prevent an Activity from being created again? Is calling it once?
I believe you try to alter the life cycle of Activity will not be very successful. What you can do is save your information in a static variable, so independent of the Activity be created or not the…
androidanswered Eduardo Binotto 2,640 -
0
votes2
answers3435
viewsA: Compile multiple java files in the same folder
Just do the following command: javac diretorio/*.java
-
2
votes2
answers1351
viewsA: Check if a record came back-end null in Angular
Just you check the return of loginAPI.getBeneficiario(usuario.cpf);. try to do it this way: $scope.getBeneficiario = function(usuario){ loginAPI.getBeneficiario(usuario.cpf).success(function(data){…
-
42
votes3
answers30862
viewsA: When to use Stateful or Stateless
The difference between Stateful and Stateless is that one will save the state of the objects(Stateful) and the other will recognize each request as a new request(Stateless). Stateless: no record of…
-
2
votes3
answers189
viewsA: Handling items from an Action Bar outside the onCreateOptionsMenu()
You can’t manipulate your Menu before he was even created. The way I believe it is most correct is for you to perform your AsyncTaskafter the method onCreateOptionsMenu() be executed, and pass the…
-
7
votes4
answers3477
viewsA: Principle of Delegation, what is it?
It’s another mechanism for code reuse. It is usually used in languages other than use the concepts of classes (Actor and Self). In these languages the objects are called prototypes (prototypes) and…
oopanswered Eduardo Binotto 2,640 -
3
votes2
answers599
viewsA: Click on a Menu, and change the icon of the others
You can create a global menu variable and initialize it in onCreateOptionsMenu()and then use it to swap the image as follows: Create the global variable: private Menu menu; in his…
-
-1
votes3
answers238
viewsA: Prevent an action from being intercepted by the Interceptor Handle
Instead of using request.getRequestURI()use request.getServletPath()