-
MongoDB Authentication example
This guide shows you how to enable authentication in MongoDB. The authentication is disabled by default. To configure it, you must first add a user to the “admin” database.
Date: 2019-08-18 View: 3064
-
Download JDK Source code for Mac OS X
The JDK source code is packaged in a src.jar, and should be in the JDK/Home folder. However, some JDK versions in Mac OSX didn’t include the source code or Javadoc.
Date: 2019-08-18 View: 3123
-
Java HttpURLConnection follow redirect example
The HttpURLConnection‘s follow redirect is just an indicator, in fact it won’t help you to do the “real” http redirection, you still need to handle it manually.
Date: 2019-08-18 View: 3524
-
Spring Data MongoDB : Save binary file, GridFS example
In MongoDB, you can use GridFS to store binary files. In this tutorial, we show you how to use Spring Data’s GridFsTemplate to store / read image in / from MongoDB.
Date: 2019-08-18 View: 2728
-
MongoDB import and export example
In this tutorial, we show you how to backup and restore MongoDB with the commands : mongoexport and mongoimport.
Date: 2019-08-18 View: 2687
-
Display a list of countries in Java
In this article, we show you how to use the Locale class to play around the list of countries.
Date: 2019-08-18 View: 2811
-
How to read and parse CSV file in Java
A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally it is a comma “,”).
Date: 2019-08-18 View: 5440
-
Spring asm dependency issue in Spring Data
Using Spring Data MongoDB 1.2.1.RELEASE and Spring core 3.2.2.RELEASE, while system is starting, it hits some weird spring-asm IncompatibleClassChangeError errors :
Date: 2019-08-18 View: 2325
-
New Relic for PHP, with cPanel + VPS
Here’s my journey to install “New Relic for PHP” to monitor my WordPress’s blog performance. Below is my server environment :
Date: 2019-08-18 View: 1829
-
How to count the depth of xml document (DOM example)
To get the depth of a XML, just loop the node recursively, and compare the level, that’s all.Here is a DOM parser example to count and show the deepest level of an XML file.
Date: 2019-08-18 View: 1373
-
ASCII Art Java example
A funny Java example to create an ASCII art graphic. The concept is simple, get the image’s rgb color in “integer mode”, later, replace the color’s integer with ascii text.
Date: 2019-08-18 View: 1479
-
According to TLD, tag form:input must be empty, but is not
Developing a search form with the Spring MVC framework.
Date: 2019-08-18 View: 2060
-
How to automate login a website Java example
In this example, we will show you how to login a website via standard Java HttpsURLConnection. This technique should be working in most of the login form.
Date: 2019-08-18 View: 2769
-
Apache HttpClient Examples
This article shows you how to use Apache HttpClient to send HTTP GET/POST request.
Date: 2019-08-18 View: 1213
-
How to send HTTP request GET/POST in Java
In this article, we will show you two examples to make HTTP GET/POST request via following APIs
Date: 2019-08-18 View: 1151