Java 9 Modules Tutorial – Getting Started

Learn how to start using modules in java 9 – a beginner tutorial.

“A man who dares to waste one hour of time has not discovered the value of life.” ― Charles Darwin, The Life & Letters of Charles Darwin

1. Introduction

A major enhancement of Java version 9 is the Modules facility. Modules have been designed to be especially useful in building and maintaining large systems.

Continue reading “Java 9 Modules Tutorial – Getting Started”

How to Generate Bitcoin Addresses in Java

Learn the technical aspects of bitcoin address generation.

“You can’t be happy unless you’re unhappy sometimes.” ― Lauren Oliver, Delirium

1. Introduction

Let us learn how Bitcoin works by implementing various aspects of the technology, shall we? The technology includes the following aspects.

Continue reading “How to Generate Bitcoin Addresses in Java”

How to use Docker to Deploy Jupyter with Nginx

Become a Datascience Pro – Host your own Jupyter Notebooks

“To say goodbye is to die a little.” ― Raymond Chandler, The Long Goodbye

1. Introduction

Docker is pretty cool when it comes to deployment of software. It isolates the deployed software from the host system. It does this by running a lighter version of an OS inside a container and deploying the software on top of this OS.

Continue reading “How to use Docker to Deploy Jupyter with Nginx”

Run Python Web Application in Docker using Nginx and uWsgi

Learn how to configure these components to host a python web application

“Pressure is something you feel when you don’t know what the hell you’re doing.” ― Peyton Manning

1. Introduction

Developing a web application is a major task by itself. It has many pieces that need to fit together – front-end HTML, styling in CSS and browser scripting in Javascript. In addition, the back-end also needs to be developed in a suitable server-side framework.

Continue reading “Run Python Web Application in Docker using Nginx and uWsgi”

Nginx Inside Docker – Website Root Configuration

Check out ways of setting up website root outside the docker container.

“What the mind can conceive and believe, and the heart desire, you can achieve.” ― Norman Vincent Peale

1. Introduction

In this article here, we have described how to use Nginx with SSL enabled inside a docker container. Not discussed in that article is the aspect of the website root. Once the web server is installed inside the docker container, it has looks for the web site root within the container OS file system. This is controlled by this Nginx clause in the file /etc/nginx/sites-available/default.

Continue reading “Nginx Inside Docker – Website Root Configuration”

Nginx Inside Docker with Ubuntu 16.04 HOWTO

Run Nginx inside a Docker Container with Ubuntu 16.04

“Live boldly. Push yourself. Don’t settle.” ― Jojo Moyes, Me Before You

1. Introduction

Docker is a very cool technology for running whole operating systems inside a process. You run a command on the host system and a whole new virtual system springs into existence, ready to operate as you have configured it. This capability offers unprecedented power and flexibility to build and throw away infrastructure as you wish. You could use this capability in test environments, running applications with differing system requirements in the same host, and a lot more.

Continue reading “Nginx Inside Docker with Ubuntu 16.04 HOWTO”

Python Regular Expressions Tutorial – Part 2

Learn about Character Classes in python regular expressions.

“Anyone who says he can see through women is missing a lot.” ― Groucho Marx

1. Introduction

New to regular expressions? Start here.

In the last article, we covered some beginning aspects of regular expressions in python. We now continue to examine details of character classes.

Continue reading “Python Regular Expressions Tutorial – Part 2”

Python Regular Expressions Tutorial – Part 1

A Gentle Introduction to Python Regular Expressions

“Suspect each moment, for it is a thief, tiptoeing away with more than it brings.” ― John Updike, A Month Of Sundays

1. Introduction

Regular Expressions are a powerful mechanism for specifying a pattern to match a string. You can target specific segments you are interested in, and specify what it should include or exclude. In spite of all the power it provides, regular expressions are rather easy to pick-up and master. Almost every modern programming language, including python, perl, java, c/c++, javascript, etc. provide support for string manipulation using regular expressions. In this article, we show you python’s regular expression syntax with examples.

Continue reading “Python Regular Expressions Tutorial – Part 1”

Python Crypto Basics for Building a Blockchain

Basics of building a blockchain using python, part 1

“Even if you are on the right track, you’ll get run over if you just sit there.” ― Will Rogers

1. Introduction

A Blockchain is all the craze right now. With the Bitcoin price on a runaway track, everyone wants in on the bitcoin bandwagon. While buying and selling bitcoin and other cryptocurrencies is good (or bad, depending on your finances!), let us learn the basics of the technology behind these cryptocurrencies. In the process we will also attempt to come up with the building blocks of the technology starting from scratch.

Continue reading “Python Crypto Basics for Building a Blockchain”

Using SSL to Secure Tomcat with HTTPS

Learn how to configure the Tomcat web server with SSL.

“Help someone, you earn a friend. Help someone too much, you make an enemy.” ― Erol Ozan

1. Introduction

After covering SSL-enabling the Apache web server and the Nginx web server using an SSL certificate, let us now find out how to secure Apache Tomcat with HTTPS. Tomcat is an open-source java web server intended as a reference implementation of Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. For the sake of this article, we shall install version 8.5.28 of the Tomcat web server. This version is the latest in the 8.0 series of the server. Installation of the next version, 9.0, should be similar.

Continue reading “Using SSL to Secure Tomcat with HTTPS”