What is Ragging and Its Effects in Colleges

Rashmi Iyer
Updated on 30-Jul-2019 22:30:24

6K+ Views

Ragging is a practice in colleges, hostels and other educational institutes where the senior or an influential person tends to demoralize and defame the juniors through the means of verbal or physical abuse and harassment. The term ragging is more prominent in the countries of India, Pakistan, Sri Lanka, and Bangladesh. In other countries, the same practice has different terms associated with it.Different forms of ragging exist due to the following key reasons:Considered as a form of entertainmentThe senior who have stayed for a slightly longer time in the system of the college have an extraordinary sense of superiority. This ... Read More

Programming the 8257

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:24

343 Views

We know from the study of the description of 8257 that it consists of 40 pins and the condition when it works in Slave Mode and Master mode. From the microprocessor point of view, the I/O port is a chip which is used exclusively for DMA control application and is not used for interfacing I/O devices for the purpose of data transfer with the processor. This chip is only used to control the DMA data transfer for four I/O ports. For every I/O port there exists a corresponding DMA channel. This chip provides all the features which are needed for ... Read More

8085 Program to Convert ASCII to Binary

Anvi Jain
Updated on 30-Jul-2019 22:30:24

5K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will convert ASCII to binary values.Problem StatementWrite 8085 Assembly language program to convert ASCII to binary or Hexadecimal character values. DiscussionWe know that the ASCII of number 00H is 30H (48D), and ASCII of 09H is39H (57D). So all other numbers are in the range 30H to 39H. The ASCII value of 0AH is 41H (65D) and ASCII of 0FH is 46H (70D), so all other alphabets (B, C, D, E, F) are in the range 41H to 46H.Here the logic is simple. We are checking whether the ASCII ... Read More

Implement HorizontalScrollView Like Gallery in Android

Ankith Reddy
Updated on 30-Jul-2019 22:30:24

3K+ Views

Before getting into an example, we should know what is Horizontal Scroll View. Horizontal Scrollview provides by android.widget.HorizontalScrollView class. It is used to scroll child views in a horizontal direction.This example demonstrates how to use horizontal Scroll view.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.                                                       ... Read More

Show Shaking Wobble View Animation in Android

Chandu yadav
Updated on 30-Jul-2019 22:30:24

980 Views

This example demonstrate about How to show shaking / wobble view animation in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         In the above code, we have taken button to show shake animation for image view.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.view.animation.ScaleAnimation; import android.view.animation.TranslateAnimation; import android.widget.Button; import android.widget.ImageView; import android.widget.LinearLayout; public class ... Read More

How to Hack WhatsApp: Easy Tricks

Divya Agarwal
Updated on 30-Jul-2019 22:30:24

3K+ Views

The most popular smartphone messaging app, WhatsApp has reportedly been found to be prone to hijacking. This is the worst because it could be done without unlocking or knowing target's device password, which is making hundreds of Millions of users vulnerable to, which is not just limited to hackers but can be done by non-technical people as well.The following trick allows anybody to get the control over your WhatsApp account, and they just need your phone number and a device for few seconds, even if it is locked, not a problem for attackers.Here is the trickThe process starts by setting ... Read More

FTP pwd Function in PHP

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

74 Views

The ftp_pwd() function returns the present working directory i.e. the current directory.Syntaxftw_pwd(con)Parameterscon − The FTP connectionReturnThe ftp_pwd() function returns TRUE on success or FALSE on failure.ExampleThe following is an example −

Check for File or Directory in Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

487 Views

The method java.io.File.isFile() is used to check whether the given file is an existing file in Java. Similarly, the method java.io.File.isDirectory() is used to check whether the given file is a directory in Java. Both of these methods require no parameters.A program that demonstrates this is given as follows −Examplepublic class Demo {    public static void main(String[] args) {       try {          File file = new File("demo1.txt");          file.createNewFile();          boolean fileFlag = file.isFile();          if (fileFlag) {             ... Read More

Display Hour with SimpleDateFormat HH in Java

Samual Sam
Updated on 30-Jul-2019 22:30:24

289 Views

To work with SimpleDateFormat class in Java, import the following package.import java.text.SimpleDateFormat;Now, set the format with SimpleDateFormat(“hh”) to display hour −Format f = new SimpleDateFormat("hh");Now, get the hour in a string −String strHour = f.format(new Date());The following is an example −Example Live Demoimport java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; public class Demo { public static void main(String[] args) throws Exception { Calendar cal = Calendar.getInstance(); SimpleDateFormat simpleformat = new SimpleDateFormat("dd/MMMM/yyyy hh:mm:s"); System.out.println("Today's date = "+simpleformat.format(cal.getTime())); ... Read More

Traverse a Collection of Objects Using the Enumeration Interface in Java

Samual Sam
Updated on 30-Jul-2019 22:30:24

1K+ Views

All the elements in a collection of objects can be traversed using the Enumeration interface. The method hasMoreElements( ) returns true if there are more elements to be enumerated and false if there are no more elements to be enumerated. The method nextElement( ) returns the next object in the enumeration.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Enumeration; import java.util.Vector; public class Demo { public static void main(String args[]) throws Exception { Vector vec = new Vector(); vec.add("John"); ... Read More

Advertisements