Getting started with Spring

This is our first lesson for getting started with Spring boot. We will cover setting up your environment by downloading and installing the software we will need. One of the fastest and easiest ways to get started with Spring boot is to download Spring Tools Suit. Download and install it from this website https://spring.io/tools STS …

Tomcat 8 run on port 80 instead of 8080

By default Tomcat 8.5 runs on port 8080, there are multiple ways of making Tomcat accessible on port 80. Today we will cover the most simple way to do this. The examples below are related to Tomcat 8.5 running on Debian 9. Please make adjustments related to your Linux distribution. I always recommend to take …

Managing wireless connections on Linux command line

Basic setup This is based on Debian/Ubuntu but with some minor modification should work on any Linux distribution First let’s install some tools so we can manage our wifi adapter we can now scan for available wifi connections by running the following command If you get the following error wlan0 Interface doesn’t support scanning : …

Increase number of files open for Pgbouncer

Pgbouncer is a lightweight connection pooler for Postgresql. It reduces the overhead of creating a new connection every time, instead it keeps a pool of connections open at all times which greatly reduces overhead. If you are doing a lot of connections per second, then Pgbouncer may complain that the open file limit has reached. …

Setting up Postgresql for the first time

If you have just installed Postgresql you may want to do the following things if you want to use psql(a command line utility for managing Postgresql) First let’s connect to our freshly installed Postgresql server by executing the following command Next let’s give a password to the postgres user, we do that by executing the …

Checking “open files limit” on Linux

Linux has a limit on how many files can be opened. Each process also has limits on how many files can be opened. You can check the limits of the process by doing the following steps Checking the file limits of a running process first you need to find the process id. You can do …

Binding local IP to Apache HttpClient 4

If you have more than two network cards on your machine and you would like to pick which one you would like to use with Apache HttpClient 4 then this guide will show you how to achieve it. We can set which NIC to use by constructing a RequestConfig object. Here is an example below …