♥_ mE and oNLy mEh_♥

♥_ mE and oNLy mEh_♥
♥ wAz laNg ♥

Tuesday, June 30, 2009

MVvs.DataF

Characteristics:Memory Variable vs Data Field



Memory variable

The memory of a computer is organized into a regular pattern of containers for information. These containers for information are called "words". Each one has a numeric address and each one is the same size as each of the others. For most applications, it is inconvenient to refer to portions of memory by their numeric addresses, so programming languages allow us to allocate portions of memory by name. When we store information in the memory of a computer we need to decide on how much we need for various purposes and on how it will be organized. Programming languages provide mechanism for "types" of information in memory. They also provide mechanisms to identify repetitive arrays of items of the same type and to aggregate possibly heterogeneous types under a common name.Definition: A variable is a way of referring to a memory location used in a computer program. This memory location holds values- perhaps numbers or text or more complicated types of data like a payroll record.
Operating Systems load programs into different parts of RAM so there is no way of knowing exactly which memory location will hold a particular variable before the program is run. By giving a variable a symbolic name like "employee_payroll_id" the compiler or interpreter can always work out where to store the variable in memory.
VariableYou will learn more about variable and arrays, these are the smallest components of a programming language.
What is variable?

Every computer has internal memory (read as RAM)
You need to use RAM of a computer writing a Perl program
As shown in following figure memory is series of separate memory cells i.e. RAM is divided into several locations. Each location has got its own address
Each storage location holds a small amount of information
In oder to store or retrieve information from a memory location, you must give that particular location a name. This is commonly know as memory variable
So variable is a character of group of character assigned by the Perl programmer to a single memory location and used in the program as the name of that memory location in order to access the value stored in it (or assign new value to it)
For example in expression Y=10, Y is a name of memory location (variable) where 10 is stored.
Under Perl a variable can be created at anywhere (any point) in the code. Perl variable divided into three basic categories:
Scalar
Array
Hash

Data Field


In the structure of a database, the smallest component under which data is entered through data capture or data entry. All data fields in the same database have unique names, several data fields make up a data record, several data records make up a data file, and several data files make up a database.
A data field is the smallest subdivision of the stored data that can be accessed. A data field can be used to store numerical information such as price, count or a date or time, or even a data and time. A pair of data fields can be used in combination to hold a geo-spatial coordinate. Also, a data field can be used to hold a block of text. A data field takes up permanent storage within the data-store.
The data-store is composed of a number of data records which are, in turn, composed of a number of predefined data fields. Each of these data fields must be defined within the Load Definition File with a unique name.
Variables and Memory
5 distinct areas of memory
--Code space: This is where the executable instructions of the program are kept.
--registers: are part of the CPU that take care of internal housekeeping. Among other things, they contain an identifier that points to the next line of code that is to be executed, and the stack pointer.
--Global Name Space: contains objects allocated by the linker which will persist for the duration of the program.
--Stack: contains local variables, whose persistency is defined by their scope.
--Free Store, or Heap is explicitly created and destroyed by issuing new and delete commands.

Monday, June 22, 2009

_Mycontrast_

Information vs. Data.
• Information is knowledge derived from study, experience (by the senses), or instruction. It is communication intelligence. It is any kind of knowledge that is exchangeable amongst people, about things, facts concepts, etc., in some context." Information is interpreted data.

• Data are facts, statistics used for reference or analysis. Numbers, characters, symbols, images etc., which can be processed by a computer. Data must be interpreted, by human or machine, to derive meaning. It is a representation of information. The Latin word "datum" which means "that which is given. Data is any sort of raw fact.

Data Storage vs. Computer Storage
• Computer storage is the holding of data in an electromagnetic form for access by a computer processor. Primary storage is data in ramdom access memory (RAM) and other "built-in" devices. Secondary storage is data on hard disk, tapes, and other external devices.

• Data Storage device is a storage medium. Most often the term is used with computers. Data storage devices can permanently hold data, like files. Common data strorage devices are: USB flash drives, Hard disk drives, Compact discs, DVDs. A storage device may hold information,process information, or both. A device that only holds information is a recording medium.

Operating system vs. Computer System
• Operating system (commonly abbreviated to either OS or O/S) is an interface between hardware and user; it is responsible for the management and coordination of activities and the sharing of the resources of thr computer. The operating system acts as a host, one of the purposes of an operatting system is to handle the details of the operation of the hardware. This relieves application programs from having to manage these details and makes it easier to write applications. Almost all computers (including handheld computers, desktop computers, super computers, video game consoles) as well as some robots, domestic appliances (dishwashers, washing machines), and portable media players use an operating system of some type. Some of the oldest models may however use an embedded operating system that may be contained on a compact disk or other data storage device.

• Computer system includes not only the computer, but also any software and peripheral devices that are necessary to make the computer function. Evry computer system, for example, requires an operating system.

-= Memory Classifications =-

Two types of memory:
*Primary storage
*Secondary storage

Primary storage:
1. RAM(Random Access Memory)
>>this is power dependent,which means that if there is a power loss, the data that you've just saved will not be found if ever the current gets back. RAM is in a form of 'integrated circuits'.

2. ROM(Read Only Memory)
>>both data and instruction.This RAM is in a form of integrated circuits.

3. Cache memory
Acts as a buffer. It can be found inside the IC's.

4. Virtual memory
-extended memory
-dependent upon hard drive
-temporary
>>it is located inside your hard drive is set on operating system.

Secondary storage
1. Hard disc
>>it runs through a magnetic media
>>it is called 'hard' because it is "metallic"

2. Flash drives

3. CD and DVD's
>>There is also what we called Tertiary memory storage aside from primary and secondary memory storage.

Tertiary Storage
>>these are portables
•flash drive
•external CD-ROM drives
•external drives
•external hard disc- smaller hard disc
•flash memory card
•memory sticks