-
How to Set $JAVA_HOME environment variable on Mac OS X
In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX.
Date: 2019-08-18 View: 2652
-
Due to limitations of the BasicDBObject, you cant add a second $and
Using Spring data and Mongodb, below is a function to find data within a date range.
Date: 2019-08-18 View: 4720
-
Maven, JAVA_HOME is not defined correctly on Mac OSX
Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :
Date: 2019-08-18 View: 3741
-
How to set environment variables on Mac OS X
In Mac OS X, you can set the environment variables in one of the following files :
Date: 2019-08-18 View: 3278
-
How to install MongoDB on Mac OS X
A guide to show you how to install MongoDB on Mac OS X.
Date: 2019-08-18 View: 3430
-
MongoDB : couldnt open /data/db/yourdb.ns errno:13 Permission denied
Starting MongoDB server, it shows error “Permission denied” on one of the database and shutdown the server automatically.
Date: 2019-08-18 View: 3804
-
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: 3324
-
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: 3337
-
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: 3742
-
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: 2961
-
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: 2905
-
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: 3124
-
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: 5898
-
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: 2475
-
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: 2112