Search More About Above Topic Here

Custom Search

How To Change IPAddress of Linux/Ubuntu ?

Links to this post
Recently I needed to change the existing ipaddress of a linux machine. Since we migrated to our machines in to new cloud servers.

Just follow the steps defined below:

  • On terminal window type the following command.
           sudo vi /etc/network/interfaces
                or 
           sudo gedit /etc/network/interfaces

Is It Possible To Define All The Methods In An Abstract Class?

Links to this post
  • It is possible create an abstract class with all concrete methods. But this class can’t be instantiated. Since it is an abstract class. 
  •   We may have situations where we don’t want to instantiate a class which is the base class for all the classes in the system or application.This base class may have lot of methods used for different modules in the application and we do not want to instantiate the object of the base class and want to use only the reference of the class.
  •  An abstract class without any abstract methods should be a rare thing and you should always question your application design if this case arises. Normally you should refactor to use a concrete super class in this scenario.
  •  One specific case where abstract class may justifiably have no abstract methods is where it partially implements an interface, with the intention that its subclasses must complete the interface.

Creating a Docker Group

Links to this post
The docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can access it with sudo. For this reason, docker daemon always runs as the root user.

To avoid having to use sudo when you use the docker command, create a Unix group called docker and add users to it. When the docker daemon starts, it makes the ownership of the Unix socket read/writable by the docker group.

Note: The docker group is equivalent to the root user;

To create the docker group and add your user:

Log into Ubuntu as a user with sudo privileges.

What is Docker? How To Install Docker on Ubuntu 14.04?

Links to this post
Docker is an open source container based software framework that automates the deployment of applications inside a software contains by providing an additional abstraction layer and automation of operating system level virtualization on Linux. Docker uses resource isolation features of the Linux kernel such as cgroups and kernel namespaces to allow independent "containers" to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines.

How to Install:

Open Ubuntu Terminal Window and login as a root. Follow the below steps.

Are Java Constructors Inherited ? If Not, Why Not?

Links to this post
You cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it's super classes. One of the main reasons is because you probably don't want to override the constructor of super class', which would be possible if they were inherited. By giving the developer the ability to override a super class constructor you would erode the main feature of encapsulation abilities of the java programming language.
Custom Search
Related Posts with Thumbnails