Posts

Translate

You can now send voice messages on Instagram

Image
Instagram now lets you send voice messages to other users. Given that voice messaging is a thing on virtually every other app of Instagram’s size and stature, this has been a long time coming. However, it also moves Instagram further away from its origins. How to Send a Voice Message on Instagram To send a voice message on Instagram, just open an existing conversation or start a new conversation. Then, press and hold the microphone icon, and record your message. When you’ve finished recording, your voice message will appear in the chat as a waveform. Voice messages can be up to one minute long, and you can send them in both private conversations and group chats. You’ll have to be very sure the message is appropriate for everyone in a group before sending it though, or you may regret recording it. Be warned that a voice message will be sent automatically when you release the microphone button. So, if you change your mind while recording it, or aren’t entirely hap...

Servlet Tutorial

Servlet - 1 - Introduction Servlet - 2 - Web Terminology  

Introduction to Servlets

Image
Servlet can be described in many ways, depending on the context. Servlet is a technology which is used to create a web application. Servlet is an API that provides many interfaces and classes including documentation. Servlet is an interface that must be implemented for creating any Servlet. Servlet is a class that extends the capabilities of the servers and responds to the incoming requests. It can respond to any requests. Servlet is a web component that is deployed on the server to create a dynamic web page. What is a web application? A web application is an application accessible from the web. A web application is composed of web components like Servlet, JSP, Filter, etc. and other elements such as HTML, CSS, and JavaScript. The web components typically execute in Web Server and respond to the HTTP request. CGI (Common Gateway Interface) CGI technology enables the web server to call an external program and pass HTTP request information to the external program to pro...

Java Tutorial

Java - 1 - Introduction

Introduction to Java

Image
Java is a programming language and a platform . Java is a high level, robust, object-oriented and secure programming language. Platform : Any hardware or software environment in which a program runs, is known as a platform. Since Java has a runtime environment (JRE) and API, it is called a platform. Application According to Sun, 3 billion devices run Java. There are many devices where Java is currently used. Some of them are as follows: Desktop Applications such as acrobat reader, media player, antivirus, etc. Web Applications such as irctc.co.in, javatpoint.com, etc. Enterprise Applications such as banking applications. Mobile Embedded System Smart Card Robotics Games, etc Types of Java Applications There are mainly 4 types of applications that can be created using Java programming: 1) Standalone Application Standalone applications are also known as desktop applications or window-based applications. These are traditional software that we need to ...

Asymptotic Analysis

Image
Introduction:- Asymptotic analysis of algorithm is a method of defining the mathematical boundation of its run-time performance. Using the asymptotic analysis, we can easily conclude about the average case, best case and worst case scenario of an algorithm. It is used to mathematically calculate the running time of any operation inside an algorithm. Usually the time required by an algorithm comes under three types: Worst case: It defines the input for which the algorithm takes the huge time. Average case: It takes average time for the program execution. Best case: It defines the input for which the algorithm takes the lowest time. Asymptotic Notations:- The commonly used asymptotic notations used for calculating the running time complexity of an algorithm is given below: Big oh Notation (Ο) Omega Notation (Ω) Theta Notation (θ) Big Oh Notation (O):- It is the formal way to express the upper boundary of an algorithm running time. It measures the worst case...

Algorithms in Data Structure

Algorithm:- An algorithm is a procedure having well defined steps for solving a particular problem. Algorithm is finite set of logic or instructions, written in order for accomplish the certain predefined task. It is not the complete program or code, it is just a solution (logic) of a problem, which can be represented either as an informal description using a Flowchart or Pseudo code. The major categories of algorithms are given below: Sort: Algorithm developed for sorting the items in certain order. Search: Algorithm developed for searching the items inside a data structure. Delete: Algorithm developed for deleting the existing element from the data structure. Insert: Algorithm developed for inserting an item inside a data structure. Update: Algorithm developed for updating the existing element inside a data structure. The performance of algorithm is measured on the basis of following properties: Time complexity: It is a way of representing the amount of ti...

Data Structure - Tutorial

DS - 1 - Introduction DS - 2 - Algorithms DS - 3 - Asymptotic Analysis  

Introduction to Data Structure

Image
Introduction:- Data Structure can be defined as the group of data elements which provides an efficient way of storing and organising data in the computer so that it can be used efficiently. Some examples of Data Structures are arrays, Linked List, Stack, Queue, etc. Basic Terminology:- Data: Data can be defined as an elementary value or the collection of values, for example, student's name and its id are the data about the student. Group Items: Data items which have subordinate data items are called Group item, for example, name of a student can have first name and the last name. Record: Record can be defined as the collection of various data items, for example, if we talk about the student entity, then its name, address, course and marks can be grouped together to form the record for the student. File: A File is a collection of various records of one type of entity, for example, if there are 60 employees in the class, then there will be 20 records in ...

Activity Lifecycle in Android

Image
Introduction:- Activity is one of the building blocks of Android OS. In simple words, Activity is a screen that a user interacts with. Every Activity in Android has a lifecycle like created, started, resumed, paused, stopped or destroyed. These different states are known as Activity Lifecycle. Activity Lifecycle:- onCreate() - Called when the Activity is first created. onStart() - Called just after it's creation or by restart method after onStop(). Here Activity start becoming visible to the user. onResume() - Called when Activity is visible to the user and the user can interact with it. onPause() - Called when Activity content is not visible because user resumes previous activity. onStop() - Called when Activity is not visible to the user because some other activity takes place of it. onRestart() - Called when user comes on screen or resumes the activity which was stopped. onDestroy() - Called when Activity is not in background i.e. it has been closed by ...

XML in Android

Introduction:- 1. XML stands for eXtensible Markup Language 2. Defined using custom tags (user-made tags) 3. In android, it is used to define the structure of an Activity using pre-defined layout types (or View-Group) such as Linear Layout, Relative Layout, Frame Layout, Table Layout. Types of XML files in Android:- 1. activity_main.xml:- You get this xml file while creating Android Project, along with its corresponding java file. 2. styles.xml:- Present in "res/values/" folder, this file contains the current App theme and custom themes for the created Activities by the user. 3. dimens.xml:- This xml file is used to define the dimensions of the View’s. Suppose we need a Button with 50dp(density pixel) height then we define the value 50dp in dimens.xml file and then use it in our app from this file. From 2.3, the default Activity layout templates have a ConstraintLayout as their root element with no margins applied to it. In the old templates, this used to...