Showing posts with label ankit desai. Show all posts
Showing posts with label ankit desai. Show all posts

Tuesday, May 9, 2017

How can your bank account with internet banking facility can be compromised (hacked)?

How can your bank account with internet banking facility can be compromised (hacked)?
Worth reading...
1. Attacker accesses your name and date of birth from  Facebook.
2. With these details he goes to the IncomeTax site and updates them. From there he obtains the pancard and mobile numbers.
3. Then he gets a duplicate pancard made.
4. After this he lodges a mobile theft complaint in a police station.
5. With the duplicate pancard he gets another simcard from the mobile company.
6. Through internet banking he is now ready to access your account.
7. He goes to the site and uses the forgot my password option.
8. Now he easily gets past other options and gets the  Internet banking pin on his simcard.
All those who used Net Banking are requested to edit Facebook profile and delete the birth date and mobile no. as a safety measure.

Thursday, July 21, 2016

Pokemon GO versus Augmented Reality


“Augmented Reality is a technology that superimposes a user's real world view with a computer generated virtual text or image on the user's viewing screen, monitor, helmet face mask, glasses, goggles, head mounted display, a window, or an automobile windshield, etc in real-time.” Virtual text or image can be superimposed on selected objects in the real world view of the user, where the virtual text or image is about that selected object.

People in world are busy collecting cartoon characters using their mobile application which is just launched in mid 2016. App uses camera and GPS to super impose a cartoon character on near by scenes in realtime. 

From the definition of augmented reality it makes it clear that Pokemon GO is not an Augmented Reality based game. Rather it can be better classified as Geo-location based entertainment.

By simply super imposing characters on user's screen based on GPS coordinates, and integrating them with surrounding to make it feel real is not Augmented Reality. This article is not at all for criticizing Pokemon GO. Adding to that it surely opens lots of door of research in the field of computer science and augmented reality how it can be visualized in future.  

Google glasses can be categoried as Augmented Reality device as it floats information of the object which comes in its vicinity. There are some camera apps which showcases the location information based on location and GPS points, that can also be considered as Augmented Reality based camera apps. 

There is a term used in Augmented reality world: we call it a perception of reality. The object that is visible from my wearable device is also visible to a person seating next to me. Then both of us will share the real world perception with respect to the reality. This gives wing to Augmented Reality. 

There is a term called Mix Reality, which mixes user's personal experience with Augmented Reality world. Moreover, here it is hard to put a line between Mix reality and Augmented Reality so We can not put Pokemon GO in this category as well. 

I remember, Ingress has launched some other similar game to pokemon go before 2-3 years but it hardly got user's attraction. With respect to that other game Pokemon GO has already collected a lot of attention of users. 

Its Augmented Reality or Virtual Reality or Mixed Reality. Whatever it may be. Who cares???  

Go and Pick your Pokemon and Enjoy Playing!!! 

Be safe!!! Its a rare game in which people met real accidents.  


Tuesday, May 14, 2013

Tutorial 17: Introduction to Interfaces


 

Code:

SamsungElectronics.java
package InterfaceDemo;

/**
 *
 * @author Ankit
 */
public interface SamsungElectronics {
    void play();
    void stop();
    void pause();
}

SamsungLEDTv.java

package InterfaceDemo;

/**
 *
 * @author Ankit
 */
public class SamsungLEDTv implements SamsungElectronics{

    @Override
    public void play() {
        System.out.println("LED TV is playing now");
    }

    @Override
    public void stop() {
        System.out.println("LED Tv has Stopped now");
    }

    @Override
    public void pause() {
        System.out.println("LED Tv has paused now");
    }
   
}

SamsungLCDTv.java

package InterfaceDemo;

/**
 *
 * @author Ankit
 */
public class SamusungLCDTv implements SamsungElectronics{

    @Override
    public void play() {
        System.out.println("LCD Tv is playing now");
    }

    @Override
    public void stop() {
        System.out.println("LCD Tv is stopped now.");
    }

    @Override
    public void pause() {
        System.out.println("LCD Tv is paused now");
    }
   
}

MainSamsung.java

package InterfaceDemo;

/**
 *
 * @author Ankit
 */
public class MainSamsung {
    public static void main(String[] args) {
        SamsungLEDTv s1 = new SamsungLEDTv();
        s1.play();
        s1.pause();
        s1.stop();
       
        SamusungLCDTv s2 = new SamusungLCDTv();
        s2.play();
        s2.pause();
        s2.stop();
    }
}

Thursday, May 9, 2013

Tutorial 12: Inheritance Getting Started


Tutorial 12: Inheritance Getting Started
Code:

Mom.java

package Inheritance;

/**
 *
 * @author Ankit
 */
public class Mom {
    private String strSkinTone;
    private String strEyes;

    public String getStrEyes() {
        return strEyes;
    }

    public void setStrEyes(String strEyes) {
        this.strEyes = strEyes;
    }

    public String getStrSkinTone() {
        return strSkinTone;
    }

    public void setStrSkinTone(String strSkinTone) {
        this.strSkinTone = strSkinTone;
    }
   
   
}

Child.java

package Inheritance;

/**
 *
 * @author Ankit
 */
public class Child extends Mom{
   
}

MainInheri.java

package Inheritance;

/**
 *
 * @author Ankit
 */
public class MainInheri {
    public static void main(String[] args) {
        Child John = new Child();
       
        John.setStrEyes("Brown");
        John.setStrSkinTone("Fair");
       
        System.out.println("John inherited eyes color from his mom: that is:"+John.getStrEyes());
        System.out.println("John inherited skintone from his mom and that is: "+ John.getStrSkinTone());
    }
}

Wednesday, May 8, 2013

Tutorial 11: Method Overloading


Tutorial 11: Method Overloading

Code: 

MethodOverloading.java

package Package2;


public class MethodOverloading {
    void printData(int a){
        System.out.println("value of a is:"+a);
    }
    void printData(int a, int b){
        System.out.println("value of a is:"+a);
        System.out.println("value of b is:"+b);
       
    }
    void printData(int a, int b, int c){
        System.out.println("value of a is:"+a);
        System.out.println("value of b is:"+b);
        System.out.println("value of c is:"+c);
    }
}

Tuesday, May 7, 2013

Tutorial 10: Constructor Overloading


Tutorial 10: Constructor Overloading
Code: 

MainConstOverloading.java 

package Package2;

/**
 *
 * @author Ankit
 */
public class MainConstOverloading {
    public static void main(String[] args) {
        MethodOverloading o1 = new MethodOverloading();
        o1.printData(10);
        o1.printData(20, 30);
        o1.printData(40, 50, 60);
    }
}

Monday, May 6, 2013

Tutorial 9: Introduction to Constructor for Rectangle class


Tutorial 9: Introduction to Constructor for Rectangle class
 Code:

MainRectangle.java 

package tutorial;
import tutorial.Rectangle;
/**
 *
 * @author Ankit
 */
public class MainRectangle {
    public static void main(String[] args) {
        //nameofclass objectname = new nameofclass();
        //instantiating the class
        Rectangle rectFirstRectangle = new Rectangle(10,20);
        Rectangle rectSecondRectangle = new Rectangle(50);
        Rectangle rectThirdRectangle = new Rectangle();
       
        //initialization of the data members of the Rectangle class
        //objname.datamembername;
        //rectFirstRectangle.setiLength(10);
        //rectFirstRectangle.setiWidth(20);
       
        //calculate area
        //access the methods of the class
        //int iAreaOfRectFirst = rectFirstRectangle.calcArea();
       
        //print out
       
        //System.out.println("area of my first rectangle is:"+ iAreaOfRectFirst);
        System.out.print("Area of my first rectangle of dimention:"+rectFirstRectangle.getiLength()+"*"+rectFirstRectangle.getiWidth());
        System.out.println(" is:"+rectFirstRectangle.calcArea());
       
         System.out.print("Area of my second rectangle of dimention:"+rectSecondRectangle.getiLength()+"*"+rectSecondRectangle.getiWidth());
        System.out.println(" is:"+rectSecondRectangle.calcArea());
       
         System.out.print("Area of my third rectangle of dimention:"+rectThirdRectangle.getiLength()+"*"+rectThirdRectangle.getiWidth());
        System.out.println(" is:"+rectThirdRectangle.calcArea());
    }
}

Rectangle.java

package tutorial;


public class Rectangle {
    //data memebers
    //variables of the class
    private int iLength;
    private int iWidth;
   
    //member functions
    //functions of the class
   
    int calcArea(){
        return (iLength*iWidth);
    }

    //constructors
    //two argument constructor with (int, int)
    public Rectangle(int iLength, int iWidth) {
        this.iLength = iLength;
        this.iWidth = iWidth;
    }

    //one argument constructor (int)
    public Rectangle(int iLength) {
        this.iLength = this.iWidth = iLength ;
    }

   
    //no argument constructor
    public Rectangle() {
        this.iLength = 0;
        this.iWidth = 0;
    }

    //do nothing constructor
//    public Rectangle() {
//    }

Monday, April 29, 2013

Tutorial 5: command line arugument


Tutorial 5: command line arugument

Code: 

CommandLineInput.java

package tutorial;

public class CommandLineInput {
    public static void main(String[] args) {
        String strTemp1 = args[0];
        String strTemp2 = args[1];
        System.out.println(strTemp1 + "\n" + strTemp2);
    }
}

Sunday, April 28, 2013

Tutorial 4: char, boolean data types


Tutorial 4: char, boolean data types

Code: 

PrimitiveDataType.java 

package tutorial;


public class PrimitiveDataType {
    public static void main(String[] args) {
        //UNICODE = 65535;
        char chChar = 'A';
        System.out.println("our char variable is holding the value:"+chChar);
        boolean booFalse = true;
        System.out.println("our varible of type boolean is:" + booFalse);
        //int, float, double, long, char, boolean - primitive datatypes
    }
}

Saturday, April 27, 2013

Tutorial 3: float, long and double data types


Tutorial 3: float, long and double data types

package tutorial;

public class Fractional {

    public static void main(String[] args) {
        //3.14 double
        //3.24f float
        float fNum = 3.24f;
        double dNum = 1.09999999999;
        long lNum = 222222222L;
        System.out.println("Value of Float number is:" + fNum);
        System.out.println("value of double variable is:" + dNum);
        System.out.println("value of long varialbe is:" + lNum);
    }
}