Category Archives: GBlog

A Group chat application in Java

In this post, a group chat application using MulticastSocket (Java Platform SE 7) class is discussed. A MulticastSocket is a (UDP) DatagramSocket, with additional capabilities for joining “groups” of other multicast hosts on the internet. Implementation Save the file as GroupChat.java and compile it using javac and then run the program using two command line… Read More »

Jar files in Java

A JAR (Java Archive) is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) into one file to distribute application software or libraries on the Java platform. In simple words, a JAR file is a file that contains compressed version of .class files, audio… Read More »

Working with zip files in Python

This article explains how one can perform various operations on a zip file using a simple python program. What is a zip file? ZIP is an archive file format that supports lossless data compression. By lossless compression, we mean that the compression algorithm allows the original data to be perfectly reconstructed from the compressed data.… Read More »

Real-Time Edge Detection using OpenCV in Python

The objective of the program given is to perform edge detection of images in real-time. In this article, the popular canny edge detection algorithm is used to detect a wide range of edges in images. OpenCV has in-built function cv2.Canny() which takes our input image as first argument and its aperture size(min value and max… Read More »

Working with csv files in Python

This article explains how to load and parse a CSV file in Python. First of all, what is a CSV ? CSV (Comma Separated Values) is a simple file format used to store tabular data, such as a spreadsheet or database. A CSV file stores tabular data (numbers and text) in plain text. Each line… Read More »

GET and POST requests using Python

This post discusses two HTTP (Hypertext Transfer Protocol) request methods  GET and POST requests in Python and their implementation in python. What is HTTP? HTTP is a set of protocols designed to enable communication between clients and servers. It works as a request-response protocol between a client and server. A web browser may be the client,… Read More »

Socket Programming in C/C++

What is socket programming? Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while other socket reaches out to the other to form a connection. Server forms the listener socket while client reaches out to the server.… Read More »

How to prepare for Infosys – The Complete guide

This article provides an insight of “how to prepare for infosys” from beginning to end. Question Paper Structure Online Test.( Duration – 95 Minutes.) Three Sections. Sectional Cut-off applied, No Negative marking. Sections are to be completed one by one, can’t switch in between. Auto saved once stipulated time is up for each section. Can… Read More »

Downloading files from web using Python

Requests is a versatile HTTP library in python with various applications. One of its applications is to download a file from web using the file URL. Installation: First of all, you would need to download the requests library. You can directly install it using pip by typing following command: pip install requests Or download it… Read More »

How to prepare for top MNCs?

This post was residing in my draft for quite long. I finally got some time out of my busy schedule to refine it. The first question quickly pops up on why am I writing this post at all. There are already tens of hundreds of similar compilations on web that talks about this. Well, following… Read More »

MongoDB: Getting Started

Introduction to MongoDB  Terminologies: A MongoDB Database can be called as the container for all the collections. Collection is a bunch of MongoDB documents. It is similar to tables in RDBMS. Document is made of fields. It is similar to a tuple in RDBMS, but it has dynamic schema here. Documents of the same collection… Read More »