≡ Menu

The first hands-on Linux sysadmin workshop for this year is here. This time it will be conducted in Los Angeles for 2 days.

(more…)

How to Use C++ STL Queue with an Example Program

If you stand in a queue at a grocery store (or anywhere else), the first customer in the queue will be served, and then the next, and so on.

In programming terminology, especially in data structure, this concept is called FIFO (first in first out) queue.

In C++, Queue is an important part of a STL (Standard Template Library).

Apart from the typical FIFO queue, there are few other types of queue. For example, priority queue.

In a priority queue, apart from the FIFO characteristics, certain customers (or elements in a queue) might have a higher priority, and they might receive immediate service irrespective of their location in the queue.
(more…)

If you are creating custom docker images for your enterprise, you have two choices on where to host your docker images:

  1. Docker Hub – This hosted registry service is free and provided by Docker Inc. They also have several enterprise level features where you can create multiple accounts for your organizations, setup automatic builds, etc.
  2. Self Hosted Docker Registry – You can setup docker registry within your organization that will host your own docker images.

This tutorial explains how to setup a a secure self-hosted docker registry.
(more…)

GNU BinutilsThe GNU Binary Utilities, usually called as binutils, is a collection of development tools that handle assembly files, object files, and libraries.

The new generation of programming languages that came in the last few years are really masking the functionality of these utilities, as they happen in the background. So, many developers are not exposed to these tools.

But, if you are a developer who is working on Linux / UNIX platform, it is essential to understand the various commands that are available as part of GNU development tools.

The following are the 12 different binutils commands that are covered in this tutorial.
(more…)

You can use Nginx as a loadbalancer in front of your web application.

For example, if your enterprise application is running on Apache (or Tomcat), you can setup an 2nd instance of your enterprise application on Apache (or Tomcat) on a different server.

And then, you can put Nginx at the front-end, which will load balance between the two Apache (or Tomcat, or JBoss) servers.

If you are new to Nginx, it is important to understand the difference between Nginx vs Apache, and Nginx Architecture.

Nginx supports the following three types of load balancing:
(more…)

Happy New Year 2017 – From Geek and the Dolls

Happy New Year from Me and My Daughters (Diya and Neha)

Happy New Year from Me and My Daughters (Diya and Neha)

Happy New Year to all TGS readers from Me and My Daughters (Diya and Neha).

We wish you and your family a happy, healthy, and joyful new year.
(more…)

babel-logoBabel will transform your javascript code from one format (or version) to another.

In this regard, Babel is a transpiler.

A Transpiler is a compiler which will transform source code from one version/language to another version/language.

The latest version of Javascript implementation standard is ECMAScript ES7 (which is also known as ECMAScript 2016).

Prior to ES7, we had ES6 (ECMAScript 2015) and ES5.
(more…)

MySQL LogoIf you have data in a text file, you can easily upload them to one or more tables in a database.

In MySQL database (or MariaDB), using “load data infile” command, you can upload data from a text file to tables.

The load data infile command provides several flexible options to load various formats of data from text file to tables.
(more…)