1.0 Client-Server Paradigm
The Client-Server paradigm divides the software architecture of a system in two parts, the server and its clients. The server works in the background and maintains the system-wide database. Using the database, it provides the functions for system operation and responses to queries from the clients.… Read more
1.0 Datagram sockets
There are two major types of network sockets, viz. Stream sockets (SOCK_STREAM) and Datagram sockets (SOCK_DGRAM). The socket type defines the semantics of communication between this socket and its remote counterpart. Stream sockets provide full-duplex reliable sequenced data streams.… Read more
1.0 Client-server model
Client server model is a software architecture paradigm prevalent in distributed applications. A server has information resources and processes that provide answers to queries and other services to remote clients over the network. Some of the examples of these services are booking an airline ticket and/or a room in a hotel, sending a file to a client, sending a mail message to another person (client), etc.… Read more
Given an nginx web server log file, we might like to know who are the visitors to our website. One can go line by line through the log file, but that is tedious. It would be nice if we can get one line per client visiting the website, giving the IP address of the visitor and how many times that client has visited.… Read more
FIFOs are pipes with a name and are also commonly referred to as
named pipes. Pipes are common on Linux command lines but do not have a system-wide name. So, any two processes that wish to communicate using a pipe need to be related, either parent and child or, sharing a common parent, who sets up the pipe and passes its file descriptors to individual processes.… Read more
Git commands for common source code management use cases are listed.
2.0 Install Git
On a Ubuntu Linux system, Git can be installed with the command,
$ sudo apt-get install git
3.0 Set Identity
Before using Git, the user's identity (name, email) has to be set
$ git config --global user.email "firstname.lastname@example.org"
$ git config --global user.name "Joe Bloggs"
4.0 Initialize git repository
The first job for putting a project under source code management is to create a repository.… Read more