sayedjustetc 0 Newbie Poster
sayedjustetc 0 Newbie Poster

Several steps: one way:

Need to identify the card first
Need scanning device and analyze the acct number is right
then interface to type the pin

--
there should be a server program that can handle request from the ATMs. ATMs will create a socket connection to the server and communicate messages
--
First connect to server [can use Java socket classes for the purpose]
scan card and send the text to the server
Server sends response OK/Failed
Collect PIN then send to the Server using the socket
server will respond with fail/success.
[A local ATM database and asociated server program can also does the verification, may be insecure]

May use encryption for data communication
---
can keep a DB in the server side to keep information.
Each sent records can be matched with the db.

For the purpose, you need your logic to verify, DB connection logic is required and then query and verify is required. Decryption may be required if you use encryption

balances can be kept in db then you need to deduct the withdrawn amount

you should also, use the transaction management concept

So you see lots of issues to consider.

sayedjustetc 0 Newbie Poster

Ok you can try running javac command with a redirection to a file with > both in linux and windows

javac .......java > error.txt

If you use an editor the error list you can easily see after compilation

use textpad for the purpose..search google for textpad

install java first then install textpad

use ctrl+1 to compile...u will see error list

sayedjustetc 0 Newbie Poster

You can check a video tutorial from on creating java development enviornment - it covers basic to advanced
http://www.justetc.net/knowledge/multimedia_training/index.php?table=TrainingVideos&categoryID=1&category=Struts&subCategoryId=47

Check the first two lessons

sayedjustetc 0 Newbie Poster

Use an ArrayList or Vector [synchronized though]

sayedjustetc 0 Newbie Poster

You can an example:
http://www.dreamincode.net/forums/showtopic56030.htm

This may contribute to your conference centre

sayedjustetc 0 Newbie Poster

You should use classes for NumberFormat or DecimalFormat. You have to create an instance of these. then call the format method I guess with your number and format. Check the class references and search google for example. The idea is you need to define a format and then apply that format to a number.

In your print function, you can manually provide $ sign.

Just ideas--not the exact solution.

sayedjustetc 0 Newbie Poster

Trying to answer quickly: I think you can write a class for Rectangle - what you define/mean for a rectangle---can write some methods to determine that it is a rectangle - check the length of the arms that each pair are equal. Check for angles [90 degrees] between arms.

for any object check, it is an instance of rectangle object... : 'instance of' is java built in.

You can also, execute the test method to determine it really is a rectangle...

Just tried to give some ideas...

sayedjustetc 0 Newbie Poster

Q1. I have a web-site on Business and Computer tutorials and video training. Until now, I am the only contributor. I want other industry/academic experts to contribute. How can I go for that?

Q2. I am from Canada. What are the different ways to get IT projects? For consultant work (from my own office), and for outsourcing?

sayedjustetc 0 Newbie Poster

Or what you can do, if you know a RSS feed that provides, current stock price...you can parse that feed and collect your information.
You need to understand RSS feed format..and examine how that feed changes over the time.

Just parse it and collect the right information.

sayedjustetc 0 Newbie Poster

Some possible ways:

Use google webmaster tools to submit your sitemap , submit all urls

Submit to search engines in a regular basis

Update your contents regularly

Make your web-pages keyword rich and having keyword related contents

Join social networking sites, increase your friend connection, tell them about your web-site, tell them to tell to their friends [better tell in related discussions]

Using manual TrafficExchanges can give you instant traffic but not parmanent...you have to be on it continuously

use kijiji, craigslist, other classified sites

Pay directories to list your site

Pay for a press release in some good news site

Also, publish articles in other article web-sites

sayedjustetc 0 Newbie Poster

Ok, For your problem
First you need a service who provide a directory/service/database for current stock market price.

Then you have to query it. You may need to register with the service provider. Search first for such directory service or web-service.

I will check if I find anything for u or not.

Not sure yet, I got your question

sayedjustetc 0 Newbie Poster

I think the update commands with three column update should work fine. But you can check what are the values you are supplying, what are the table column data type, check are you sending null values or not, you may need to convert data to the right type.

Try to print the query with
echo $query_string_variable

Then execute the query in the database by itself [not from PHP .
] and see if it runs or what kind of errors it provides


You can also try the other way....try to write a query by providing static values and run the query into the database. if the query runs take it and use variables to provide the values. See what it does. Also, print these query and execute in the backend database .

sayedjustetc 0 Newbie Poster

I saw many tutorials here with Read Me. I tried to do similar. Though wondering is it the right place or not?

sayedjustetc 0 Newbie Poster

By Sayed, June 25th, 2008

* Single tier applications are easier to design. Single tier applications mix data, presentation, business logic altogether. It is easier design but workload distribution becomes difficult. Moreover, software maintenance becomes a big headache.
* Multi-tier applications can address these challenges. Here, the application, hence, the workload is divided into multiple modules - tiers. The presentation, data, business logic can be separated from each other. This provides well organized software development. The workload can be divided among several developers more effectively. Also, software maintenance becomes easier.
* Multitiered Applications Benefits:
o Availability: Accessible at all times - more accessible. Move parts of your applications into separate machines
o Extensibility: Ability to add more capabilities. Can add more capabilities without breaking the systems
o Scalability: Support more users: Add extra computing resources to each layer,
o Reliability: Maintain the accuracy and integrity of the data. Separating business logic from the rest of the applications, grouping operations into transactions
o Maintainability: Ability to update software code
* Design considerations for Distributed Applications/Systems
o Event handling: Generation and notification of distributed events
o Persistence: How distributed objects are stored and accessed
o Concurrency: Acquiring and releasing locks in distributed environments
o Security: Mechanisms to provide distributed authentications, authorization, encryption, and auditing
o Transactions:
o Language dependencies
o Platform dependencies : Provide seamless operations irrespective of the underlying OSs or processors
* Distributed …

sayedjustetc 0 Newbie Poster

Also check: reading from console is right:

Console c = System.console();
if (c == null) {
System.err.println("No console.");
System.exit(1);
}
String login = c.readLine("Enter your login: ");
sayedjustetc 0 Newbie Poster

The task: Write a program that asks the user for a file and counts the number of characters, words, and lines in that file. Then the program asks for the name of the next file. When the user enters a file that doesn't exists, the program prints the total count of characters, words, and lines in all processed files and exits.

So far, when I run my code, my exception handling does not kick in if I try a random input name. When I input a correct file name, nothing happens.

My code:

import java.util.Scanner;
import java.io.FileReader;
import java.io.FileNotFoundException;
/**
  * A class to count the number of characters, words, and lines in files.
  */

public class FileCounter
{
   /**
      Constructs a FileCounter object.
   */
   public FileCounter()
   {
    words = 0;
    lines = 0;
     
   }
   
   /**
      Processes an input source and adds its character, word, and line
      counts to this counter.
      @param in the scanner to process
   */
   public void read(Scanner console) throws FileNotFoundException
   {
       String input = console.next();
       FileReader reader = new FileReader(input);
       Scanner in = new Scanner(reader);

   }

   /**
      Gets the number of words in this counter.
      @return the number of words
   */
   public int getWordCount()
   {
     while (in.hasNextLine())
     {
     
     for(int i = 1; i <= in.nextLine().length(); i++)
     {
         int j = 0;
         if (in.nextLine().substring(j, i).equals(" "));
         words++;
         j++;
        }
    }
     return words;
   }

   /**
      Gets the number of lines in this counter.
      @return the number of lines
   */
   public int getLineCount()
   {
      
      while (in.hasNextLine())
      {
          lines++;
      } …
sayedjustetc 0 Newbie Poster

Hello:

I was implementing payment processing through Moneris. I set some information in session variables. Then I go to moneris hosted page. After I come back from moneris, my session variable values expire.

What am I doing wrong?
If increasing session timeout variable will work or not?

I am using JSP/Servlet/Struts.

Thanks
Sayed

sayedjustetc 0 Newbie Poster

Hello:

I was implementing payment processing through Moneris. I set some information in session variables. Then I go to moneris hosted page. After I come back from moneris, my session variable values expire.

What am I doing wrong?
If increasing session timeout variable will work or not?

I am using JSP/Servlet/Struts.

Thanks
Sayed