My Development Environment Setup on Linux

As I mentioned in my previous post Thinking of moving from Windows to Linux? I am moving from Windows to Linux. Setting up my development environment is a bit tedious because I have to hunt down the applications and execute various commands to setup. So I thought of make a note of them in a post so that it will ...

Read More »

Pre Java EE 7 alternative to JPA 2.1 unsynchronized persistence context

java-interview-questions-answers

Unsynchronized persistence context in Java EE 7 JPA 2.1 introduced the concept of unsynchronized persistence context which allows fine grained control over flushing of the JPA Entity Manager i.e. by explicitly calling EntityManager#joinTransaction. Previously, this was defaulted to end of JTA transaction e.g. in a typical Stateless EJB, the entity manager would flush its state to the DB at the ...

Read More »

Couchbase on OpenShift 3

OpenShift is Red Hat’s open source PaaS platform. OpenShift 3 provides a holistic experience of running your applications using Docker and Kubernetes. In a classic Red Hat way, all the work is done in the open source at OpenShift Origin. This also drives the next major release of OpenShift Online and OpenShift Enterprise. OpenShift 3 using Docker and Kubernetes for container orchestration makes it really ...

Read More »

Geometric Brownian motion with Java

The Wiener process is a continuous-time stochastic process named in honor of Norbert Wiener. It’s commonly used to represent noise or financial development with a random component. The geometric brownian motion can be calculated to visualize certain bounds (in quantiles) to hint about the absolute range. For calculation following parameters are required: µ (mu): mean percentage σ (sigma): variance t: ...

Read More »

Second-Level Thinking

Howard Marks is a well respected investor and the founder of Oaktree Capital Management. In a recent letter to investors, he introduced a concept that he calls ‘Second-Level Thinking’. In his words: This is a crucial subject that has to be understood by everyone who aspires to be a superior investor. Remember your goal in investing isn’t to earn average ...

Read More »

Using Apache Drill REST API to Build ASCII Dashboard With Node

java-interview-questions-answers

Apache Drill has a hidden gem: an easy to use REST interface. This API can be used to Query, Profile and Configure Drill engine. In this blog post I will explain how to use Drill REST API to create ascii dashboards using Blessed Contrib. The ASCII Dashboard looks like: Prerequisites Node.js Apache Drill 1.2 For this post, you will use ...

Read More »

Effective UI tests with Selenide

Waiting for miracles Christmas is a time for miracles. On the eve of the new year we all build plans for the next. And we hope that all problems will leave in the ending year, and a miracle happens in the coming year. Every Java developer dreams about a miracle that lets him become The Most Effective Java Developer in ...

Read More »