Java · Web Technologies

Power of Gson

JSON (Java Script Object Notation) is a widely used data-exchange format in web services. It is an easy format for humans to read and write, meanwhile is easy for machines to generate and parse. For Java language, Gson is an open source Java library – developed by Google to serialize and deserialize the Java objects into… Continue reading Power of Gson

Java

Exception – is a blessing? or a Curse?

For computer programmers, exceptions arise frequently when they do programming. During the morning sessions on IT organisations the buzz word is “There were such & such  exceptions in the code when we left yesterday”, where the mindsets of programmers say that “Exceptions are devils”. But for me, the exceptions are blessings and curses depending on… Continue reading Exception – is a blessing? or a Curse?

Java

equals() Versus ‘==’

I have seen lot of discussions on ‘==’ versus equals() for objects in Java and most of the discussions are based on String class, which led me to post below discussion. Before diving into deep concepts,first let’s understand basic rules on ‘==’ and equals(). The rule of  ‘==’ The ‘==’ (equality) compares whether the references (pointers… Continue reading equals() Versus ‘==’

Java

Behind the ‘new’ keyword

Java – one of the most popular programming languages in use, as it leads on web,mobile and desktop based applications. The language focuses on the Object-Oriented-Programming (OOP), easier  for human beings as they think and see the world. The post is not about Java programming, it is all about what is underlying inside. Before diving… Continue reading Behind the ‘new’ keyword

C Programming · Linux

File System Monitoring in Linux

File Synchronization is one of the powerful terms used in today’s computer world,where people want to keep their important files in cloud storage whenever they need. The Dropbox application installed on my Ubuntu 14.04 laptop led me to think what is happening behind the scenes – when files/directories are modified or created/deleted inside the Dropbox… Continue reading File System Monitoring in Linux

Networking · Web Technologies

Simple Port Scanner

Network security is an important chapter in current information world, where hackers try to grab information illegally. One of the techniques used by hackers is – Port Scanning. Port scanning can be used to either harm or protect the web server based on intention through identifying the opened ports on a web server. The post focuses on… Continue reading Simple Port Scanner

C Programming · Linux · Web Technologies

Simple HTTP Server

World changed when the Internet came – people were talking about World-Wide-Web and were eager to search information around the world. Who catered their requests ? Answer is – HTTP server. Generally HTTP server listens on port 80 for incoming requests. According to request URLs the server replies with relevant responding codes and response messages. On initial… Continue reading Simple HTTP Server

C Programming

Socket Programming

Present day operating systems provide the networking facilities through their underlying architectures. For a programmer socket programming is an essential concept of networking in an operating system – where it is the spinal cord of networking applications. What is Socket? Socket is a communication point between different processes or different devices in networking. In other… Continue reading Socket Programming

Linux

Signal Handling in Linux

When you drive on your vehicle, if the opposite direction vehicles signal through their head lights, what will you do? according to the situation you will act – what should be done on next, it can be on traffic block,landslide or whatever. Even signal lights are another good indicators – what should be done next,… Continue reading Signal Handling in Linux

C Programming · Linux

Half-Duplex Pipes (Unix/Linux)

Process management is one of the major tasks in an operating system. During its processing period, sometimes a process needs to communicate with other processes – also known as Inter-Process-Control (IPC). IPC between processes is achieved  using methods of Piping Locking Signalling Shared memory What is Piping? Piping – yes, sending water from one place… Continue reading Half-Duplex Pipes (Unix/Linux)