Linux head and tail are basic commands for displaying file contents. In this post we’re going to show how to do that on many examples!
Linux cut command by example
The Cut command is a great utility to select parts of lines. In this post we’ll show many example of how to use it.
MongoDB 3 Replica Set configuration consists of a few steps and can be done even on a localhost. In this post we show how to configure two node replication.
MongoDB 3 array query operations are very helpful and simplify digging in nested structures. In this post we’ll show how to create queries that match array elements in various ways.
Towers of Hanoi is a well known puzzle, very often used to teach recursion. In this post we will show how to solve this puzzle recursively.
Top 10 sites to practice programming
Java read XML using DOM
Java DOM API is comfortable to work with not big XML documents. They can be easily loaded and modified in runtime. In this post we show how to do it.
Java create XML using DOM
Java allows to work with XML in many different ways. In this post we show how to use Java DOM API to create a document and write it as XML file.
Prime numbers – Sieve of Eratosthenes
A prime number is a natural number with only two divisors: 1 and itself.
In this post we’re going to show how to find prime numbers using Sieve of Eratosthenes and explain how it works.
Java Singleton – enum implementation
Singleton as enum is very simple to implement and very safe at the same time thanks to language guarantees for enum instantiation and serialization.