Linux tar command examples

tar is one of the most common commands in Linux. We usually use it to package files. You can also compress files to save disk space during packaging. I will show you how to use it in this tutorial. Maybe you can't remember all parameters at one time. The more you practice the more skillful you will become.

Remove Google redirection

When I google something and click the search result I found google redirect my request to a long google link https://www.google.com/url?sa=t&rct=j&.... I don't want waste time wait google's second response(maybe it's only few millisecond). The most important is I don't want google know what I click. I google this question and found a resolution.(use google beat google, LOL) If you use chrome you can write a javascript plugin to forbid google redirect your request.

The Program can't start because MSVCR110.dll is missing

When I run XShell after installing it I got this error message

Install Kafka on Linux

Kafka is a high-throughput distributed publish-subscribe messaging system that can handle real-time data feed. In this series tutorials I will show you how to use Kafka step by step. The first one is how to install Kafka on Linux. This tutorial assumes there is no existing Kafka or ZooKeeper data on your computer.

Spring Boot @ConfigurationProperties example

In Spring you can use @PropertySource and @Value to load value from properties file. You can also use them in Spring Boot. But Spring Boot provide a easy way to get value from properties file. In this page I will show you how to use @ConfigurationProperties to get the value in properties file.

Use Mybatis in Spring Boot

In this tutorial I will show how to use Mybatis in Spring Boot. Spring Boot can help you build RESTful project quickly, Mybatis is one of the best ORM framework. Use Mybatis in Spring Boot can help you build persistence layer of your project quickly and easily. I will provide a complete example for using MyBatis in Spring Boot step by step.

Install and configure PostgreSQL on linux

PostgreSQL, simply "Postgres" for short, is an object-relational database management system (ORDBMS). PostgreSQL is able to run on many operating systems including Linux, FreeBSD, OS X, Solaris, and Microsoft Windows. In this blog I will show you how to install and configure PostgreSQL on Linux(CentOS 6 x86).

Java parse string to date

We use SimpleDateFormat to parse string to date in java. It allows you formatting(date -> string) and parsing(string -> date). Before using SimpleDateFormat you have to choose user-defined patterns for date-time formatting. The following pattern letters are defined (all other characters from 'A' to 'Z' and from 'a' to 'z' are reserved). You can use them define different patterns.

Java date format

We use SimpleDateFormat to format date in java. It allows you formatting(date -> string) and parsing(string -> date). Before using SimpleDateFormat you have to choose user-defined patterns for date-time formatting. The following pattern letters are defined (all other characters from 'A' to 'Z' and from 'a' to 'z' are reserved). You can use them define different patterns.

Difference between @Controller and @RestController

Annotations of Spring Framework greatly simplifies the RESTful project developing process. @Controller is used to indicates that an annotated class is a "Controller". In Spring documentation "Controller" defines as follow

The easiest way to transfer files between Windows and Linux

There are many ways to transfer files between Windows and Linux, but they are not satisfactory.

Build a restful spring project in 1 minute.

If you want build a spring project you have to download servlet container(tomcat, jetty, glassfish etc.) write some spring config file. But now you can throw them away! In this tutorial I will show you how to build spring project in one minute with "spring boot".