ERP Software at Glance

In 2011, the financial well being of companies is a hot topic. Companies and businesses have failed at an alarming rate. Were they a result of a poor market or was their failure due to financial mismanagement. At this point, most companies rely on an ERP software solution that provides all encompassing support to your financial status. Access to your financial information anywhere and view real time performance indicators from various sources.

Business, Software , Leave a comment

HTACCESS 404 redirect

A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn’t be found on their server. If a visitor comes to your site and sees a standard 404 error message it’s unlikely they will make the effort to see any part of your site. Therefore it is very important to create a 404 page on your site and redirect traffic from incorrect urls.

Once you have create your 404 page, all you need to do is send visitors to incorrect url’s to this page. To do this just add the following line to your .htaccess file :
RewriteEngine on
ErrorDocument 404 /404.php

Google, Web , , , Leave a comment

What is a microprocessor

A microprocessor or processor is the heart of the computer and it performs all the computational tasks, calculations and data processing etc inside the computer. In the world of personal computers, the terms microprocessor and CPU are used interchangeably. At the heart of all personal computers and most workstations sits a microprocessor. Microprocessors also control the logic of almost all digital devices, from clock radios to fuel-injection systems for automobiles.

Three basic characteristics differentiate microprocessors:

Instruction set:
Instruction set is the set of instructions that the microprocessor can execute.

Bandwidth:
Bandwidth is the number of bits processed in a single instruction.

Clock Speed:
The clock speed determines how many instructions per second the processor can execute. It is given in megahertz (MHz).

The speed of the microprocessor is measured in the MHz or GHz.  The processor is also known as the CPU (Central Processing Unit).   It contains the control unit and the arithmetic unit and both works together to process the commands.  CPU is used in every computer whether it is a workstation, server or a laptop.  CPU is a complete computational engine that is designed as a chip.  It starts the work when you turn on your computer.

CPU is designed to perform the arithmetic and logical operations inside the computer.  Common operations inside the computer include adding, subtracting, multiplying, comparing the values and fetching the different numbers to process them.  The higher the CPU clocks’ speed the more efficient will be the performance of the computer.

Computer’s performance is also influenced by the system bus architecture, memory used, type of the processor and software program being running.  Pentium 4 is the fastest type of the Intel’s processor that contains 125,000,000 transistors and operates at the speed of 3.6 GHz.

Hardware, Microprocessor , , , Leave a comment

Fiber Distributed Data Interface (FDDI)

Standard is ANSI X3T9.5 . Topology is ring with two counter rotating rings for reliability with no hubs. Cable type is fiber-optic. Connectors are specialized. The media access method is token passing. The maximum length is 100 kilometers. The maximum number of nodes on the network is 500. Speed is 100 Mbps. FDDI is normally used as a backbone to link other networks. A typical FDDI network can include servers, concentrators, and links to other networks.

Devices called concentrators provide functions similar to hubs. Most concentrators use dual attachment station network cards but single attachment concentrators may be used to attach more workstations to the network.

FDDI token passing allows multiple frames to circulate around the ring at the same time. Priority levels of a data frame and token can be set to allow servers to send more data frames. Time sensitive data may also be given higher priority. The second ring in a FDDI network is a method of adjusting when there are breaks in the cable. The primary ring is normally used, but if the nearest downstream neighbor stops responding the data is sent on the secondary ring in attempt to reach the computer. Therefore a break in
the cable will result in the secondary ring being used. There are two network cards which are:

1. Dual attachment stations (DAS) used for servers and concentrators are attached to both rings.
2. Single Attachment stations (SAS) attached to one ring and used to attach workstations to concentrators.

A router or switch can link an FDDI network to a local area network (LAN). Normally FDDI is used to link LANs together since it covers long distances.

Data Communication and Networks , , , Leave a comment

Network Protocols – Data Communication and Networks

  • ethernet – Provides for transport of information between physical locations on ethernet cable. Data is passed in ethernet packets
  • SLIP – Serial line IP (SLIP), a form of data encapsulation for serial lines.
  • PPP – Point to point protocol (PPP). A form of serial line data encapsulation that is an improvement over SLIP.
  • IP – Internet Protocol (IP). Except for ARP and RARP all protocols’ data packets will be packaged into an IP datapacket. Provides the mechanism to use software to address and manage data packets being sent to computers.
  • ICMP – Internet control message protocol (ICMP) provides management and error reporting to help manage theprocess of sending data between computers.
  • ARP – Address resolution protocol (ARP) enables the packaging of IP data into ethernet packages. It is the system and messaging protocol that is used to find the ethernet (hardware) address from a specific IP number. Without this protocol, the ethernet package could not be generated from the IP package, because the ethernet address could not be determined.
  • TCP – A reliable connection oriented protocol used to control the management of application level services between computers.
  • UDP – An unreliable connection less protocol used to control the management of application level services between computers.
  • DNS – Domain Name Service, allows the network to determine IP addresses from names and vice versa.
  • RARP – Reverse address resolution protocol (RARP) is used to allow a computer without a local permanent data storage media to determine its IP address from its ethernet address.
  • BOOTP – Bootstrap protocol is used to assign an IP address to diskless computers and tell it what server and file to load which will provide it with an operating system.
  • DHCP – Dynamic host configuration protocol (DHCP) is a method of assigning and controlling the IP addresses of computers on a given network. It is a server based service that automatically assigns IP numbers when a computer boots. This way the IP address of a computer does not need to be assigned manually. This makes changing networks easier to manage. DHCP can perform all the functions of BOOTP.
  • IGMP – Internet Group Management Protocol used to support multicasting.
  • SNMP – Simple Network Management Protocol (SNMP). Used to manage all types of network elements based on various data sent and received.
  • RIP – Routing Information Protocol (RIP), used to dynamically update router tables on WANs or the internet.
  • OSPF – Open Shortest Path First (OSPF) dynamic routing protocol.
  • BGP – Border Gateway Protocol (BGP). A dynamic router protocol to communicate between routers on different systems.
  • CIDR – Classless Interdomain Routing (CIDR).
  • FTP – File Transfer Protocol (FTP). Allows file transfer between two computers with login required.
  • TFTP – Trivial File Transfer Protocol (TFTP). Allows file transfer between two computers with no login required. It is limited, and is intended for diskless stations.
  • SMTP – Simple Mail Transfer Protocol (SMTP).
  • NFS – Network File System (NFS). A protocol that allows UNIX and Linux systems remotely mount each other’s file systems.
  • Telnet – A method of opening a user session on a remote host.
  • Ping – A program that uses ICMP to send diagnostic messages to other computers to tell if they are reachable over the network.
  • Rlogin – Remote login between UNIX hosts. This is outdated and is replaced by Telnet.
Data Communication and Networks , , Leave a comment

Data Encryption in Data Communication

Privacy is a great concern in data communications. Faxed business letters can be intercepted at will through tapped phone lines or intercepted microwave transmissions without the knowledge of the sender or receiver. To increase the security of this and other data communications, including digitized telephone conversations, the binary codes representing data may be scrambled in such a way that unauthorized interception will produce an indecipherable sequence of characters. Authorized receive stations will be equipped with a decoder that enables the message to be restored. The process of scrambling, transmitting, and descrambling is known as encryption.
Custom integrated circuits have been designed to perform this task and are available at low cost. In some cases, they will be incorporated into the main circuitry of a data communications device and function without operator knowledge. In other cases, an external circuit is used so that the device, and its encrypting/decrypting technique, may be transported easily.
Data Communication and Networks , Leave a comment

Download Java Free

Here you can download java for free. Download java for windows firefox.

Click Here to Download

Java Programming, Science and Technology, Software , , Leave a comment

Data Structure Sequential Searches

Let’s examine how long it will take to find an item matching a key in the collections we have discussed so far. We’re interested in:

  1. the average time
  2. the worst-case time and
  3. the best possible time.

However, we will generally be most concerned with the worst-case time as calculations based on worst-case times can lead to guaranteed performance predictions. Conveniently, the worst-case times are generally easier to calculate than average times.

If there are n items in our collection – whether it is stored as an array or as a linked list – then it is obvious that in the worst case, when there is no item in the collection with the desired key, then n comparisons of the key with keys of the items in the collection will have to be made.

To simplify analysis and comparison of algorithms, we look for a dominant operation and count the number of times that dominant operation has to be performed. In the case of searching, the dominant operation is the comparison, since the search requires n comparisons in the worst case, we say this is a O(n) (pronounce this “big-Oh-n” or “Oh-n”) algorithm. The best case – in which the first comparison returns a match – requires a single comparison and is O(1). The average time depends on the probability that the key will be found in the collection – this is something that we would not expect to know in the majority of cases. Thus in this case, as in most others, estimation of the average time is of little utility. If the performance of the system is vital, i.e. it’s part of a life-critical system, then we must use the worst case in our design calculations as it represents the best guaranteed performance.

Data Structures , Leave a comment

Binary Search on int Array using Java

import java.util.Arrays;

public class BinarySearchIntArrayExample {

public static void main(String[] args) {
//create int array
int intArray[] = {1,2,4,5};

/*
To perform binary search on int array use
int binarySearch(int[] b, int value) of Arrays class. This method searches
the int array for specified int value using binary search algorithm.
Please note that the int array MUST BE SORTED before it can be searched
using binarySearch method.
This method returns the index of the value to be searched, if found in the
array.
Otherwise it returns (- (X) – 1)
where X is the index where the the search value would be inserted.
i.e. index of first element that is grater than the search
value or array.length, if all elements of an array are less than
the search value.
*/

//sort int array using Arrays.sort method
Arrays.sort(intArray);

//value to search
int searchValue = 2;

//since 2 is present in int array, index of it would be returned
int intResult = Arrays.binarySearch(intArray,searchValue);
System.out.println(“Result of binary search of 2 is : ” + intResult);

//lets search something which is not in int array!
searchValue = 3;
intResult = Arrays.binarySearch(intArray,searchValue);
System.out.println(“Result of binary search of 3 is : ” + intResult);

}
}

/*
Output would be
Result of binary search of 2 is : 1
Result of binary search of 3 is : -3
*/

Java Programming , , Leave a comment

Binary Search Data Structure

There is quite obviously no way to speed up a search, unless more information is available about the searched data. It is well known that a search can be made much more effective, if the data are ordered. Imagine, for example, a telephone directory in which the names were not alphabetically listed. It would be utterly useless. We shall therefore present an algorithm which makes use of the knowledge that a is ordered, i.e., of the condition

Ak: 1≤k < N : ak-1≤ak

The key idea is to inspect an element picked at random, say am, and to compare it with the search argument x. If it is equal to x, the search terminates; if it is less than x, we infer that all elements with indices less or equal to m can be eliminated from further searches; and if it is greater than x, all with index greater or equal to m can be eliminated. This results in the following algorithm called binary search; it uses two index variables L and R marking the left and at the right end of the section of a in which an element may still be found.

L := 0; R := N-1; found := FALSE ;

WHILE (L≤R) & ~found DO

m := any value between L and R;

IF a[m] = x THEN found := TRUE

ELSIF a[m] < x THEN L := m+1

ELSE R := m-1

END

END

The loop invariant, i.e. the condition satisfied before each step, is

(L≤R) & (Ak : 0≤k < L : ak < x) & (Ak : R < k < N : ak > x)

from which the result is derived as

found OR ((L > R) & (Ak : 0≤k < L : ak < x ) & (Ak : R < k < N : ak > x))

which implies

(am = x) OR (Ak : 0≤k < N : ak≠x)

The choice of m is apparently arbitrary in the sense that correctness does not depend on it. But it does influence the algorithm’s effectiveness. Clearly our goal must be to eliminate in each step as many elements as possible from further searches, no matter what the outcome of the comparison is. The optimal solution is to choose the middle element, because this eliminates half of the array in any case. As a result, the maximum number of steps is log2N, rounded up to the nearest integer. Hence, this algorithm offers a drastic improvement over linear search, where the expected number of comparisons is N/2.

The efficiency can be somewhat improved by interchanging the two if-clauses. Equality should be tested second, because it occurs only once and causes termination. But more relevant is the question, whether – as in the case of linear search — a solution could be found that allows a simpler condition for termination. We indeed find such a faster algorithm, if we abandon the naive wish to terminate the search as soon as a match is established. This seems unwise at first glance, but on closer inspection we realize that the gain in efficiency at every step is greater than the loss incurred in comparing a few extra elements. Remember that the number of steps is at most log N. The faster solution is based on the following invariant:

(Ak : 0≤k < L : ak < x) & (Ak : R≤k < N : ak≥x)

and the search is continued until the two sections span the entire array.

L := 0; R := N;

WHILE L < R DO

m := (L+R) DIV 2;

IF a[m] < x THEN L := m+1 ELSE R := m END

END

The terminating condition is L≥R. Is it guaranteed to be reached? In order to establish this guarantee, we must show that under all circumstances the difference R-L is diminished in each step. L < R holds at the 36 beginning of each step. The arithmetic mean m then satisfies L≤m < R. Hence, the difference is indeed diminished by either assigning m+1 to L (increasing L) or m to R (decreasing R), and the repetition terminates with L = R. However, the invariant and L = R do not yet establish a match. Certainly, if R = N, no match exists. Otherwise we must take into consideration that the element a[R] had never been compared. Hence, an additional test for equality a[R] = x is necessary. In contrast to the first solution, this algorithm — like linear search — finds the matching element with the least index.

Data Structures , , Leave a comment