Posts by Fernando josé • 437 points
22 posts
-
-1
votes2
answers192
viewsA: Change HTML during AJAX request
Try to take out the Hidden class <div class="modal-footer"> <p id="sensorName" style="text-align: left;"></p> </div>
-
1
votes1
answer54
viewsQ: How to update a column in the auto increment database and taking into account a sort
I need to update a database table by changing a column with the auto increment value but I must take into account a sort, I managed to update with the following code with auto increment but not able…
-
0
votes1
answer47
viewsA: Execute javascript function on a specific page
First capture the URL of the browser with window.location.pathname javascript function, then check whether the url equals the specified url: var urlEspecifica = window.location.pathname == "sua url…
-
0
votes2
answers343
viewsA: Check equal values in an Array and add them
First create a function to group the fields: function groupBy(array, f) { let groups = {}; array.forEach(function(o) { var group = JSON.stringify(f(o)); groups[group] = groups[group] || [];…
-
1
votes4
answers52
viewsA: Is my char checking logic wrong?
Use break instead of continue for (int i = 0; i < line.length(); i++) { if (line.charAt(i) == ' ' || line.charAt(i) == '=') { break; } instruction += line.charAt(i); }…
javaanswered Fernando josé 437 -
1
votes0
answers51
viewsQ: How to block part of a method to be processed only once per request with . net core
i have to increment a column in the database and this increment may depend on the situation, for example increment according to the user, I am using Jmeter to send 100 requests at the same time, but…
-
1
votes1
answer326
viewsQ: How to consult Reinf-2099 - Inquiryreceipt event2099
I am trying to query the Receiptent2099, however I do not know the correct form in the documentation speaks the URL and the method and also the parameters, I created an xml with the parameters and I…
-
0
votes2
answers646
viewsQ: What is wrong with my Thread ultilizando Synchronized - Java
I started to study tread I saw some examples of java7 and java8 ultilizando lambda, I arrived in part to ultiliza the Synchronized that and to leave kind a wait list of threads where the next one is…
-
3
votes0
answers301
viewsQ: How the installment of the plot works with Pagseguro
I am implemented the payment part with credit card however when I will put the installments it returns me the following error: HTTP 400 - BAD_REQUEST [THE REQUEST CANNOT BE FULFILLED DUE TO BAD…
javaasked Fernando josé 437 -
2
votes0
answers148
viewsQ: Gradle build error in Secure Paging API - Java
I’m trying to implement the Secure Pag API on my system, I was looking at the step by step that it asks to download the repository on Github, then access the folder source and then execute the…
-
2
votes2
answers775
viewsQ: How to save user session by logging in using Java +Angularjs
I was doing a search of how to save the user’s session after he was logged in to the system, I found several examples with cookies, however I am using java + Angularjs, and in the examples I found…
-
1
votes0
answers225
viewsQ: Fileupload java saves files to an inappropriate folder
I found an example of fileupload on the internet and added it to my project. However, it moves the files up to a folder inside the glashfish server. This folder is named after /config, and all the…
-
2
votes3
answers1626
viewsQ: It is possible to collect data of the whole month in postgresql
How do I so that from a specific month I can get all data saved in the database: I think you should spend the year / month as parameter for example variable = "2016/10"; remembering that the data…
-
8
votes3
answers10321
viewsQ: select from date in postgresql database
As I make a select in the postgresql database for it returns the data from a specific date, for example I have a field of type timestamp with name data_interview, I want it brings me the data…
-
-3
votes1
answer65
viewsQ: Solution for Getrange error when accessing elements outside the list
By calling the GetRange of a list, where it calls 10 out of 10 values from the list at a time, but the following error: Offset and length Were out of Bounds for the array or Count is Greater than…
-
1
votes1
answer315
viewsQ: Selected html filter single fields
I have the following Selected, how do I make it Filtre the single fields for example it is repeating the same option <option value='967'>GOIANIA - GO</option> several times I want it to…
-
1
votes1
answer160
viewsQ: Return with multiple json with jquery . net
I need to return to ajax a json, or rather several json, being city,neighborhood,state,parents, each being a json in the same method, however as not possible to make several return put the list of…
-
3
votes1
answer1470
viewsQ: How to get value from a variable in the controller with ajax(jquery)
I have to take a value from a variable within a method in the controller on . net, the method is in homeController and returns a json, up to there everything well the code is running and returning…
-
0
votes1
answer68
viewsQ: Jsf pages from entities class net Beans Foreign key
When I send jsf pages from entities class by net Beans, it generates crud automatically from the database even in primefaces if I prefer, but when I put some table that has foreign key relation, at…
javaasked Fernando josé 437 -
2
votes1
answer66
viewsQ: Fill Serie xls with java POI
I have a code inside a for that takes a certain column and insert the value, and assigns the amounts of lines defined in for, for example Rows =1 ; Rows<=10, put the setCellValue("10/02/2012") so…
javaasked Fernando josé 437 -
2
votes1
answer2729
viewsQ: How can I browse and edit a txt file in Java
I have a txt file with a text in it I searched on the internet I found some methods for writing and reading, but I have to edit a file that is standard thus changing only some parts of the file.…
javaasked Fernando josé 437 -
0
votes1
answer119
viewsQ: Generate Url through form
I have the following url: www.teste.com/username=xxxx I have to type the name of Usario in xxxx, I am creating a form in html with the username field, I want that when the user type his name in this…