Posts by fabiohbarbosa • 403 points
15 posts
-
3
votes2
answers117
viewsA: Detect if the site has crashed
I think this site should check port 80 of the site you type. If you want something for control use the Nagios, with it is possible to monitor the status of any service, be it database, website, ftp,…
serveranswered fabiohbarbosa 403 -
1
votes1
answer184
viewsA: Clone an object (deep copy)
There are several ways to do this, but there is a lib called Commons-lang (very famous by the way), which makes it very easy. Clone your object using the command:…
javaanswered fabiohbarbosa 403 -
1
votes3
answers763
viewsA: Configure angular with php server
The best way to communicate with back-end servers (your PHP application) using Angularjs is by using $http. You could give a better study in Angularjs, and Restful. For Angularjs to study taking the…
-
1
votes3
answers1312
viewsA: How to install Angular JS modules?
The way to "install an Angularjs module" using Node.js (Bower is a Node.js middleware), is to use Bower install or npm install. However, as you are not getting it this way the other way is to do it…
-
2
votes1
answer1474
viewsA: How to persist a record in the database through Java restful webservice?
I advise you to use Angularjs, it is very practical and easy to learn, I made an example for you on Jsfiddle. In this example I showed you how to consume a REST API by the GET method, I know you…
-
6
votes1
answer4629
viewsQ: Option "keep connected" / "remember me" on login screens
I am implementing a login screen and my client asked to add a checkbox "Keep logged in" below the login credentials. Okay, adding is easy. But what is the correct behavior for this feature? Is there…
-
3
votes2
answers636
viewsA: Mention HTML code in Wordpress post
I decided to partially follow the @henriquedpereira tip, who gave me the URL: https://codex.wordpress.org/Writing_Code_in_Your_Posts To resolve I inserted the HTML code inside the tag ```html and…
wordpressanswered fabiohbarbosa 403 -
2
votes2
answers636
viewsQ: Mention HTML code in Wordpress post
I’m writing a new post in Wordpress, this post gives several examples of HTML code where I explain all the behavior of the HTML page. The problem is that Wordpress allows posts' texts to be written…
wordpressasked fabiohbarbosa 403 -
0
votes3
answers580
viewsA: How to keep a web project in sync with a remote server?
I do this with a project using git, just keep syncing with the repository. If you prefer make a Schedule on your server to sync from time to time. There are languages like Node.js that you can set…
-
3
votes2
answers25433
viewsA: Disable Access-Control-Allow-Origin in Chrome and Firefox
I had the same problem as you. The problem is of CORS, by default a web server only accepts requests from the same server, you are probably accessing from outside your backend server (even though…
-
1
votes2
answers918
viewsA: Problem creating Maven project on Eclipse Mars
I would try a mvn clean install -U. If it doesn’t work, try deleting the dependencies in your user’s . m2 folder and run mvn clean install again.
-
3
votes2
answers1104
viewsA: Doubt how to configure Spring Data with Hibernate
Wellington, If the project is still early, I strongly advise you to use Spring Boot with Spring Data JPA, it abstracts a lot the settings of Spring and it is very easy to configure Spring Data JPA,…
-
0
votes3
answers1850
viewsA: How to test the Service layer in a web service application, using mockite and junit
Use the Spring Mockmvc, with it you can test your REST endpoints, it is interesting that with it you can receive the JSON in return. Nor need to climb the server, this framework does the abstraction…
-
0
votes2
answers949
viewsA: Insert the json format into mysql and recover in Java
BLOB type fields we use to save files like image, documents, etc. If you want a large text field use CLOB. Beware of CLOB, as it is a very heavy field and can harm you in querys that bring many…
-
1
votes1
answer847
viewsA: Put WS Restful Project into Production
Dude, I don’t know if this can help you, but there’s a tutorial where I explain how to have a webservice (json) project in a java project using Maven. The tutorial also explains how to configure…