Tuesday, October 21, 2014

UBPAS

UBPA

Title: Implementation Universal Branch PIN Allocation (UBPA) System.
Problem statement: Developing efficient way for bank account holders in order to get the ATM pin from any branch of particular bank at the time of account opening/renewal of ATM card
Objective: The aim of our projects is to developing efficient way so bank user can get there ATM PIN from any branch of particular bank. So user has no limitations to go their home branch for getting PIN for new ATM. Even user should also get pin if user forgot his/her PIN.
Action Plan:
Now day’s most of bank users of different banks using the Automated Teller Machine (ATM) service. Most of bank provides the ATM‘s in rural and urban sectors in India. This is one of the best services provided by almost all banks in India. To get ATM a bank user follows following steps,
1.     User request for ATM service online or manually from home branch by filling the ATM card form.
2.     ATM will be delivered in 10 days to user’s permanent address.
3.     After 10 day of delivering ATM user must collect the PIN from bank’s home branch.(home branch: The branch where user is having his/her account)
User can apply online for ATM from web portal of particular bank. But user is restricted to get the new ATM pin from his/her home branch. Due to this user is facing many problems like student who are studying in other city as well the employers who are working in different cities.
Even if user forgot his/her PIN user must go to home branch to collect the new PIN. So this is not efficient way for getting PIN.
So, the solution is that user can get his/her ATM PIN from any branch of particular bank.
For this solution is that developing a web application which will allow getting the ATM PIN from any branch. The PIN will be sent to user's mobile number which must be verified by the officer of the bank. User must verify them by passbook and ATM card. And must carry the registered mobile number
For this web application we need the server side scripting language like JSP,PHP and ASP. To storing the essential data we need relation databases like oracle and my SQL.
UBPA approach to get PIN:
1.     After getting new ATM go to the nearest branch of your bank along with your ATM and passbook.
2.     Then request for PIN to officer of that branch.
3.     Officer can access the web application from computer via Internet.
4.     User will provide ATM Number and mobile number to officer. Mobile number must be verified.






Your verification Id is 2432(Two Four Three Two), please use within 5 minutes.




5.Its necessary that user must verify the mobile number by auto generated verification code which will immediately sent to mobile after clicking send verification code.
6. The session will redirected to step 2 of verification of number.
7. Now the mobile number of user is verified successfully. After clicking on send PIN user will get the PIN as text message on mobile number which previously verified.
User will get the PIN on mobile number which is previously verified.


How verification system works?
            1. Check if a mobile number is live or invalid
            2. Identify the home network of a mobile number
            3. Check if a mobile number has been switched on recently
            4. Identify fake or inaccurate mobile numbers
            5. Work in real-time via our API for web form validation or use our fully
               Managed service.

       

REAL TIME VERIFICATION VIA API (STRAIGHT FORWARD HTTP)
An invaluable mobile phone validation service that is both fast and reliable allowing real time validation of mobile phone numbers.
5.        Make your data capture more accurate at the time of submission
6.        Encourage the web user to give you their real phone number
7.        Increase the value of the data you capture
8.        Ensure the primary contact number is accurate
9.        Fast response time - normally less than 2 seconds in returning data
10.   Submit multiple requests simultaneously
11.   High availability - over 99.9% up time
12.   Submit from multiple locations or servers using the same account
13.   Tells you the mobile network the phone is contracted to


            Requirement:
1. Server side scripting language. (PHP, JSP)
2. Apache server.
3. Macromedia Dream viewer 8.0


Conclusion:
UBPA system is efficient way get the ATM PIN. It will not restrict to user to get the PIN from home branch. It increases the reliability of the PIN allocation.


Friday, October 3, 2014

Index and query with mongo author JK

Indexing and querying with MongoDB using suitable example.
import com.mongodb.MongoClient;
import com.mongodb.MongoException;
import com.mongodb.WriteConcern;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import com.mongodb.DBCursor;
import com.mongodb.ServerAddress;
import java.util.Arrays;
import java.util.List;
public class IndexQuery{
public static void main( String args[] ){
try{
// To connect to mongodb server
MongoClient mongoClient = new MongoClient( "192.168.5.122" , 27017 );
// Now connect to your databases
DB db = mongoClient.getDB( "te3355db" );
System.out.println("Connect to database successfully");
String user="te3355";
String password="te3355"; // returns 'l'
char[] c_arr = password.toCharArray();

boolean auth = db.authenticate(user,c_arr);
System.out.println("Authentication: "+auth);
DBCollection col=db.getCollection("Feedback");
System.out.println("Collection is selected successfully!!!");
System.out.print("----------------------------------------");
DBCursor cursor=col.find();
int i=1;
System.out.println("\n INSERTED DOCUMENT IN Feedback COLLECTION");
      while(cursor.hasNext())
      {
            System.out.println(cursor.next());
            i++;
      }
BasicDBObject ob=new BasicDBObject();
ob.put("Roll", 1);
ob.put("Name", -1);
col.ensureIndex(ob);
List<DBObject>indices=col.getIndexInfo();
int th=0;
System.out.println("\n INDEX INFORMATION:");
for(DBObject dbo: indices)
{
      System.out.println("["+ th++ +"]"+dbo);
     
}

//create the collection
//db.createCollection("Example_sample3", ob);
System.out.println("----------------------------------------");
System.out.println("Collection is created suucessfully!!!");
System.out.println("----------------------------------------");
//inserting in the Exmple_sample
DBCollection  collection=db.getCollection("Example_sample3");
BasicDBObject doc=new BasicDBObject("TITLE","MOVIE");
      doc.append("Name", "Avtar");
      doc.append("Category", "Motion Making");
      doc.append("Rating", "8.5");
     
      collection.insert(doc);
DBCursor cur=collection.find();
int v=1;
while(cur.hasNext())
{
      System.out.println(cur.next());
      v++;
}

//updating the document
BasicDBObject ex=new BasicDBObject();
ex.put("Category", "Animation and motion making");
BasicDBObject searchQuery = new BasicDBObject().append("TITLE", "MOVIE");
collection.update(searchQuery,ex);
System.out.println("Document updated successfully");
System.out.println("Updated document.");
System.out.println("----------------------------------------");
DBCursor curs=collection.find();
int s=1;
while(curs.hasNext())
{
      System.out.println(curs.next());
      s++;
}
//REMOVING THE FIRST DOCUMENT.

DBObject myob=col.findOne();
col.remove(myob);
DBCursor cursorl=col.find();
int k=1;
System.out.println("\n INSERTED DOCUMENT IN Feedback COLLECTION AFTER REMOVING FIRST DOCUMENT");
      while(cursorl.hasNext())
      {
           
            System.out.println(cursorl.next());
            k++;
     
      }

}
catch(Exception e)
      {
      System.err.println( e.getClass().getName() + ": " + e.getMessage() );
      }
     
}
}


OUTPUT:
Connect to database successfully
Authentication: true
Collection is selected successfully!!!
----------------------------------------
 INSERTED DOCUMENT IN Feedback COLLECTION
{ "_id" : { "$oid" : "541bff0c532a2e5b3a4ff99d"} , "Name" : "Jakir Patel" , "Branch" : "Computer Engineering" , "Roll" : "3355" , "Comment" : "PICT is good college."}
{ "_id" : { "$oid" : "541bff0f532a2e5b3a4ff99e"} , "Name" : "Riya Shaikh" , "Branch" : "Computer Engineering" , "Roll" : "2568" , "Comment" : "All resources are available in PICT"}
{ "_id" : { "$oid" : "541bff11532a2e5b3a4ff99f"} , "Name" : "Madina Kalideva" , "Branch" : "Information Technology" , "Roll" : "5897" , "Comment" : "Its quite good."}
{ "_id" : { "$oid" : "541c00fa532a2e5b3a4ff9a0"} , "Name" : "Madina Kalideva" , "Branch" : "Information Technology" , "Roll" : "5897" , "Comment" : "Its quite good."}
{ "_id" : { "$oid" : "541c00fc532a2e5b3a4ff9a1"} , "Name" : "Riya Shaikh" , "Branch" : "Computer Engineering" , "Roll" : "2568" , "Comment" : "All resources are available in PICT"}
{ "_id" : { "$oid" : "541c00fd532a2e5b3a4ff9a2"} , "Name" : "Jakir Patel" , "Branch" : "Computer Engineering" , "Roll" : "3355" , "Comment" : "PICT is good college."}

 INDEX INFORMATION:
[0]{ "v" : 1 , "key" : { "_id" : 1} , "name" : "_id_" , "ns" : "te3355db.Feedback"}
[1]{ "v" : 1 , "key" : { "Roll" : 1 , "Name" : -1} , "name" : "Roll_1_Name_-1" , "ns" : "te3355db.Feedback"}
----------------------------------------
Collection is created suucessfully!!!
----------------------------------------
{ "_id" : { "$oid" : "541c011b8314e16dfe8fcc64"} , "Category" : "Animation and motion making"}
{ "_id" : { "$oid" : "541c013f83144ecf2554d9a2"} , "Category" : "Animation and motion making"}
{ "_id" : { "$oid" : "541c01568314221e117b5bc7"} , "Category" : "Animation and motion making"}
{ "_id" : { "$oid" : "541c0158831419be5f1a0855"} , "TITLE" : "MOVIE" , "Name" : "Avtar" , "Category" : "Motion Making" , "Rating" : "8.5"}
Document updated successfully
Updated document.
----------------------------------------
{ "_id" : { "$oid" : "541c011b8314e16dfe8fcc64"} , "Category" : "Animation and motion making"}
{ "_id" : { "$oid" : "541c013f83144ecf2554d9a2"} , "Category" : "Animation and motion making"}
{ "_id" : { "$oid" : "541c01568314221e117b5bc7"} , "Category" : "Animation and motion making"}
{ "_id" : { "$oid" : "541c0158831419be5f1a0855"} , "Category" : "Animation and motion making"}
 INSERTED DOCUMENT IN Feedback COLLECTION AFTER REMOVING FIRST DOCUMENT
{ "_id" : { "$oid" : "541bff0f532a2e5b3a4ff99e"} , "Name" : "Riya Shaikh" , "Branch" : "Computer Engineering" , "Roll" : "2568" , "Comment" : "All resources are available in PICT"}
{ "_id" : { "$oid" : "541bff11532a2e5b3a4ff99f"} , "Name" : "Madina Kalideva" , "Branch" : "Information Technology" , "Roll" : "5897" , "Comment" : "Its quite good."}
{ "_id" : { "$oid" : "541c00fa532a2e5b3a4ff9a0"} , "Name" : "Madina Kalideva" , "Branch" : "Information Technology" , "Roll" : "5897" , "Comment" : "Its quite good."}
{ "_id" : { "$oid" : "541c00fc532a2e5b3a4ff9a1"} , "Name" : "Riya Shaikh" , "Branch" : "Computer Engineering" , "Roll" : "2568" , "Comment" : "All resources are available in PICT"}
{ "_id" : { "$oid" : "541c00fd532a2e5b3a4ff9a2"} , "Name" : "Jakir Patel" , "Branch" : "Computer Engineering" , "Roll" : "3355" , "Comment" : "PICT is good college."}
Home Java Python PHP