Posts by Daniela Morais • 4,687 points
91 posts
-
1
votes1
answer530
viewsA: Paging springBoot
Why specify the total number of items? Note that we can create a pagination where each page has 10 elements inside, or each page can contain 20 elements inside or as many elements as you want to…
-
1
votes1
answer145
viewsA: JSON to POJO returning Null
As quoted in the comments, your return JSON has the following structure: { "count":61, "next":"https://swapi.co/api/planets/?format=json&page=2", "previous":null, "results":[{..}] } Note that…
-
0
votes1
answer1575
viewsA: Receiving object by parameter
Yes, just use the @Requestbody and create a POJO class that contains a String id attribute. Note that you will not be able to pass the href of the link, so you will have to create a request…
-
3
votes2
answers287
viewsQ: How to avoid Lazyexceptions?
My application faces numerous Lazyexceptions problems and what causes a "mess" in the server log. I understand that they occur because the connection to the database has already been closed and I am…
-
2
votes1
answer525
viewsQ: Implications of @Autowired on and off
When working with Spring I realize two patterns of using the @Autowired, declare inside the manufacturer and outside. Builder @Service public class myService { private final PartnerRepository…
-
1
votes1
answer1496
viewsA: How do I get the share list for a Facebook post?
This occurs in any well-modeled API, imagine the scenario where some Apis are ordered more than 1 billion times a day (Twitter’s API only in 2010 had to deal with 6 billion requests per day): Return…
-
2
votes1
answer2589
viewsA: How to test the Restful API?
There are several ways to test Apis, an easy and practical way is to use frameworks and for automated testing to develop scripts. Postman and Swagger The Postman and the Swagger are free tools where…
-
1
votes1
answer533
viewsA: How to store data from Arduino in a Java string?
The biggest problem in the case is not getting the data coming from Arduino but how to better control the flow of serial communication. The system is critical enough that it cannot wait 1s to…
-
5
votes1
answer901
viewsQ: Store password in database
I have an application that needs to store passwords and get them again, this is not just for login check because the stored passwords will be used to provide access to another system (there is no…
-
1
votes0
answers159
viewsQ: Optimize slow heap deployment
The goal of my program is to implement a heap of limited size, whose entries are just numbers. To set the priority of each element, it is necessary to search when it will repeat again for the first…
casked Daniela Morais 4,687 -
2
votes3
answers6535
viewsQ: Sequence reading of space-separated numbers
It is necessary to read only a line with a space-separated set of integers, each space-separated item will be inserted in a linked list: 1 41 2 15 6 7 87 4 2 1 9 0 List would be something like = [1,…
casked Daniela Morais 4,687 -
16
votes3
answers652
viewsQ: Development process with Docker
I understand the basic concept of Docker and its advantages but I doubt how it is used in the development process, these doubts are: Technically Docker generates "machine snapshot" so all developers…
dockerasked Daniela Morais 4,687 -
1
votes2
answers212
viewsQ: How to escape special characters?
I need the output to be a special character of an arrow pointing to the right ( ) for example, whose Unicode code is U+1F812. I tried to write in various ways always with the \ or % preceding…
luaasked Daniela Morais 4,687 -
2
votes1
answer448
viewsQ: Return list of Jsons
On the path /getAll wish to return a list of Jsons but get one 'list' Object is not callable, why this occurs and how can I return to my JSON list? Formerly, Mylist was called list and after reading…
-
2
votes1
answer719
viewsQ: What are Ttys for?
I use Fedora 23 and CTRL + ALT + F1 up to the CTRL + ALT + F6 I access these terminals, I only need to use them when the graphic mode hangs and I need to restart the gnome and I have the definition…
linuxasked Daniela Morais 4,687 -
8
votes2
answers16188
viewsQ: How to compare two lists in Python?
I have two lists whose contents refer to a arquivo1.txt and the other one arquivo2.txt, there are differences in the contents of the files and wish to search only the data that is in file2.txt and…
-
6
votes1
answer551
viewsQ: Sorting with heapsort
When ordination is done with the heapsort and the candidates for the tree root are equal, the priority order is given to the highest or lowest index element in the vector original or is given by the…
classificationasked Daniela Morais 4,687 -
6
votes1
answer867
viewsQ: Internet of Things and Remote Access
I have a prototype of home lamp automation using Arduino in case I want to control my sensors off the local network which the appropriate solution nowadays? There are some other options besides…
arduinoasked Daniela Morais 4,687 -
1
votes2
answers279
viewsQ: Error including library using Linux
I’m just trying to compile examples from the book and I get fatal error: No such file or directory trying to include conio. h, io. h and even curses. h. I read in the Soen and it was suggested just…
-
2
votes1
answer1889
viewsQ: Break line when typing entries
I have a vector of structs with 10 people and I want my registration function to receive only one person at a time. In the terminal, the register of the first person is made correctly but then I get…
-
4
votes1
answer229
viewsQ: Segmentation fault when accessing pointer content
I need to declare a pointer vector, which will point to types float, and make a simple reading of values. The program compiles but after typing 4 values I get a Segmentation fault (core dumped). Why…
-
6
votes2
answers704
viewsQ: Error replacing occurrence in string using replaceAll
I extract the text from several lines of a PDF, at the beginning of each line I have a configuration of the font size and family used on that line, but then I need to remove this information. First…
-
1
votes1
answer123
viewsQ: Packet traffic on the network
A long time ago, I had knowledge of a technique that basically all the data that is sent or received by the router, is "duplicated" and forwarded to a specific address and the obvious original…
networksasked Daniela Morais 4,687 -
7
votes1
answer1641
viewsQ: Set up domain on Amazon with Route 53
I started using AWS recently in the free version and bought a domain in Go Daddy, after I moved up my instance I tried to configure the domain with this tutorial I basically allotted an IP with…
-
5
votes2
answers825
viewsA: Algorithm to return the point of intersection
The main problem is in the formula in question, both the table test and the program returned the same results. This formula is reversed so it was obtained λ = |5/25| instead of λ = |25/5| which is…
-
4
votes2
answers825
viewsQ: Algorithm to return the point of intersection
I need to return the relative positions between two straight lines, at this point in the program I’m sure they are competitors. My method performs the following equation to avoid the use of linear…
-
0
votes3
answers366
viewsQ: Get URL paths
The API is structured something similar to http://localhost:8181/api/collections/{id}, my question is: Sometimes I need to get this {id} and I’m doing a replace. Is there any way to set up this url…
-
4
votes2
answers363
viewsQ: Error in Javascript code
I have a code snippet that searches a Json for the field called campo, and inserts it into an array, which cannot have repeated values. My array always returned Undefined and it took me a while to…
-
5
votes1
answer1853
viewsQ: Add new element to the array
I have a record of multiple contacts, in which each contact can have one or several dynamic fields. It is possible to define the name of these fields, and they are different between contacts. For…
-
1
votes1
answer62
viewsA: Array de Requests
Solution I make all the requisitions I need only once with the $q.all, which returns me an array with the return of each some requests. To make this data accessible in HTML and not occur crashes, I…
-
2
votes1
answer62
viewsQ: Array de Requests
I own a list of contacts, each contact has its agency reference and I can only access the data of this agency by making a request. For each contact I have to access the agency to return the complete…
-
9
votes2
answers8501
viewsQ: Synchronous requests
I need to make requisitions, but the first must be a GET (getByNome) and then run the rest because they depend on it. It turns out my code is sending a Undefined because the requisitions depend on…
-
6
votes1
answer558
viewsQ: Try/catch on JS
I own a array called agenciasUri, which format the data before inserting into it. After that, I mount JSON jsonObjto send a request. What I found strange is that it is working properly. Why can I…
-
3
votes1
answer588
viewsQ: Repeat element with ng-Repeat
I have a form, which can be inserted another group of "Name" and "Agency" just by clicking the button. I am using Angularjs and ng-Repeat to repeat the fields the moment I click on +. However, the…
-
20
votes1
answer1876
viewsA: Requests for Rest API
It was very difficult for me to solve my problem because I had no knowledge needed to deal with Spring Data Rest, then I will explain in detail: Spring Data Rest Spring Data Rest is used to…
-
20
votes1
answer1876
viewsQ: Requests for Rest API
The application uses Spring Rest in which the paths of a CRUD are automatically generated for each entity, I have the entities Vehicle, Contact and Agency and each one with its respective…
-
6
votes1
answer856
viewsQ: How to separate HTML files into a MVC architecture?
I have an application that uses Angular.js, which I started using now and never understood how to apply the concept of MVC to a project. I have two HTML pages, veiculo.html and index.html, both are…
-
2
votes1
answer455
viewsQ: Microservices with Springboot
I started to develop an application using the concept of microservices and I still have a lot of doubts. I have repositories and their respective entities, requests submissions work correctly but…
-
1
votes1
answer1364
viewsQ: Add widget in an Array
I need to add lista.get(i) in an array, will be added in the array with the value of key spec_linha-criativa changed. However, in my code I always lose the reference and when j = 1 My list has the…
-
7
votes1
answer2555
viewsQ: Stream() and parallelStreams()
I saw that the performance using Amble and streams is much better than using repeat loops, so I try to use as much as possible. My question is when should I wear Streams or Parallelstreams? How does…
-
2
votes1
answer77
viewsQ: Code snippet in Try
I was making corrections in a class and I came across the following code, I didn’t know it was possible and I never stopped to think, but why is this valid? I mean first line of the Try. For me…
-
4
votes2
answers243
viewsQ: Design in different versions of Android
I only played a few times with Android and always had problems due to test on a smartphone with Android 4.0, for example, I had to use another Ratingbar because of the incompatibility. Since…
-
0
votes1
answer320
viewsA: Server ping and email sending questions
One solution is to develop a script that makes requests at a certain time, according to the type of return send the email. For ease, it can be configured as a job in Jenkins. It is essential that…
pinganswered Daniela Morais 4,687 -
1
votes1
answer200
viewsA: How to return the value according to the received parameter?
It was necessary to refactor the getPlanilha to make a search for id instead of the whole object public Planilha getPlanilha(String id) { return mongoCollection.findOne("{validacaoId : #, tipo :…
-
15
votes1
answer357
viewsQ: How to use Bilge and stream?
I can understand expressions lambdas perfectly in simple cases such as: () -> 42 // Não recebe nada e sempre retorna "42" x -> x*x // Recebe algo e retorna seu quadrado (x,y) -> x + y //…
-
11
votes1
answer395
viewsQ: Continuous integration and agile methodologies
Continuous integration is obligatorily related to agile methodologies? My question is: Is it possible to integrate in order to enable continuous delivery even though there is no agile methodology in…
-
2
votes0
answers260
viewsQ: Automated interface testing with Jenkins
I’m using Casper.js to test the interface of my application and wish to integrate with the Jenkins, but in one of the tests it is necessary to upload and download files (.xlsx and . zip). How do I…
-
23
votes3
answers1923
viewsQ: What is a microservice architecture?
I read that "microservice-based architecture" basically makes system requirements specific and independent services. In this article, right after the definitions says that it is possible to separate…
-
3
votes2
answers2051
viewsQ: Develop integration tests correctly
We are writing several tests for the application, there are testes unitários and we started testes de integração. All communication with DAO is mocked, but when I test the API I should re-test the…
-
5
votes1
answer1433
viewsQ: Check server uptime with Node.js
I am making several HTTP requests at a certain time and wish to check only the return status. There are paths that require login to the application but as it is a very basic script and is not…