Friday, September 2, 2011

Ten Foods that fight disease

Certain foods fight diseases such as heart attacks, strokes and cancer. Here's how the antioxidants in fruits and vegetables improve heath and build immunity.

1. Leafy greens: A diet rich in greens such as spinach, lettuce can protect against gastric cancer, heart attack, and stroke. Leafy greens can lower your risk of cataracts and protect your eye health.
2. Tomatoes: The lycopene in tomatoes helps maintain healthy bones and regulates blood pressure. Lycopene fights disease by neutralizing free radicals, which damage normal cell growth. Tomatoes also provide cancer protection and guard against heart disease.
3. Calciferous Vegetables: Broccoli, Cabbage and Cauliflower also guard against cancer development and increase your body's detoxificaiton enzymes. These veggies help to protect against stroke and add valuable Vitamin A, folate, and calcium to your diet - and are natural ways to get healthy.
4. Berries: Blackberries, blueberries, cranberries, strawberries and rash-berries are super foods that fight disease because they're a great source of Vitamin C, fiber and antioxidants to improve your heath. Berries are a natural way to get healthy because they guard against muscular degeneration, various cancers and brain cell loss.
5. Onions and Garlic: These foods fight disease such as arthritis, heart disease, diabetes and certain cancers. Onions, Garlic and Chives are natural ways to get healthy because they are high in Vitamin C, Selenium, Potassium, and Chromium.
6. Orange Vegetables: Carrots, Sweet Potatoes, Pumpkins and Squash provide vitamin A. This Vitamin is essential for healthy growth, a strong immune system, and normal vision. Beta carotene makes these veggies orange , which is a powerful antioxidant.
7. Citrus Fruits: Grapefruit, Oranges, Tangerines and Lemons may protect against skin cancer. These foods fight disease by helping your body detoxify or get rid of toxic substances. Citrus fruits protect you from cancer and stroke, and build up you immune system.
8. Whole Grains: Foods that fight disease include whole wheat, brown rice, oatmeal and wheat berries. These foods improve health and build immunity by protecting your heart, reducing inflammation, and fighting diabetes.
9. Fish and Seafood: Salmon, Char, Haddock, Shrimp, Rainbow trout and Sardines are foods that fight disease because of their high Omega-3 fish oils. Omega 3's protect your brain, heart and blood pressure, and are associated with lower risks of various disease.
10. Legumes and Soy Foods: Black Beans, Soya beans, Split Peas and Tofu are among the 'bean and pea' foods and that fight disease. Legumes and Soya foods are low in fat and high in protein, which help ward off heart disease and prostrate cancer.

Monday, August 29, 2011

Mastering in Red Hat Linux

Mastering in Red Hat Linux
Red Hat Certified Technician
Module I: RH033 Linux Basics

Unit – 1: Introduction
Unix History
Unix was created by Dennis Ritchie and Ken Thompson in the year 1969 in AT&T Bell
Laboratories. There are various distributions of Unix such as: AIX from IBM, XENIX from
Microsoft, Solaris from Sun Microsystems, IRIX from SGI and HP-UX from HP.
Unix Principle:
• Everything is a file, including a hardware. The Unix security model is based around the
security of files.
• Configuring data stored in text. Storing configuration in text makes moving the
configuration from one machine to another very easy.
• Small single purpose program. To perform complex task, these small purpose programs can
be chained.
GNU Project/ FSP
• GNU project was started in the year 1984. Its goal was to create free UNIX clone.
• By the year 1990, almost all the user required applications were developed.
• Free Software Foundation (FSF) manages GNU project. It is non-profit making organization.
• The softwares are distributed under General Public License ( GPL)
• GNU refers to GNU is Not Unix.
Linux Origin
• A Finnish college student named Linus Trovalds created a Linux Kernel in the year 1991.
• When Linux Kernel combined with GNU applications, a complete Unix-like operating system
became possible.
Red Hat Linux
• It distributes the latest version of Linux.
• It distributes the commonly used applications with its package.
• Established in 1995 by Bob Young and Mark Ewing.
• In 1996, Red Hat 4.0 Linux was named desktop operating system of the year.
• In 1997, Red Hat 5.0 Linux was named network operating system of the year.
• In 1998, Red Hat's market share increased from 6.8% to 17.2% out of total Unix based
operating system.
• In 1999, RHCE Certification was introduced.
• In 1999, Red Hat's market share increased upto 28% out of total Unix based operating
system.
• Since 2002, RHCE Certification stands as the best professional computer based certification.
Note: The Research was conducted by Info-World magazine.
Recommended Hardware Requirements (Red Hat Linux 9)
• Pentium III or higher
• 128 Mb RAM or higher
• 5 Gb Hard Disk partition or higher
• Bootable CD-ROM
• Floppy Disk Drive.
2
By Akhil Mathema
Unit – 2: Quick Tour
Run Levels
0 - halt
1 - single user
2 - multiuser
3 - multiuser
4 - unused
5 - GUI (Graphical User Interface) or X window
6 - reboot
Shutting down the system
$ halt
$ poweroff
$ init 0
$ shutdown -h now
Virtual Console
There are total 6 virtual consoles:
tty1 --> Alt+F1
tty2 --> Alt+F2
tty3 --> Alt+F3
tty4 --> Alt+F4
tty5 --> Alt+F5
tty6 --> Alt+F6
The seventh one is for the X window (GUI based) for that Ctrl+Alt+F7. And to return back to
virtual consoles from X window, user Ctrl+Alt+F1/2/3/4/5/6. X window system's terminals are
called pseudo terminals.
User Login
When logged as root (superuser) the prompt at console seems like:
[root@localhost root]#
When logged as local user the prompt at consosle seems like:
[localuser@localhost localuser]$
Adding User and assigning password
# useradd {name}
# passwd {name}
Type New-Unix Password: *******
Re-type New-Unix Password: *******
passwd: all authentication tokens updated successfully
Listing Files:
“ls” command displays files & subdirectories of the current directory.
Color code for file:
white - normal file
green - execute file
blue - directory
yellow - device file
cyan - link file
magenta - image file
3
By Akhil Mathema
Creating file
$ cat > {filename}
----
Ctrl+d (to save and exit)
$ cat {filename} (to view the file)
$ mkdir {directory name} (to make directory)
$ cd {directory name} (to change directory)
Unit – 3: File and Shell Basics
Running Commands:
syntax: command [option] [argument]
• each block is separated by a space
• option modifies the behavior of command
• argument may be filename or other information needed by command
Command “pwd” is used to print the current working directory.
Command “ls” displays the contents of current or specified directory.
Syntax: ls [option] [directory]
options:
-a lists all the contents of the specified directory including hidden, current
directory(.) and parent directory(..). Files/directories whose name begin with “.” are hidden
-A is same as of -a, except it doesn't display . & ..
-l displays the long list of the contents of the directory
Command “cd” is used to change directory. While changing directory to other subdirectories, full
path name is to be given.
$ cd /directory/subdirectory
note: here the first “/” stands for the root directory like “C:/” in Ms-dos.\
$ cd ---> only enables the user to reach user's home directory.
$ cd - ---> reaches to the previous directory
$ tree ---> displays files and directories in tree structure
File names
• filenames can be up to 256 characters long
• filename that begin with “.” are known as hidden files
• special characters need special handling
Checking free space
command “df” displays the free space for the file system
# df -h (disk free in human readable form)
command “du” displays the disk usage
# du -h /var/log (to view the disk usage of /var/log directory)
4
By Akhil Mathema
File Manipulation
command “mv” is used to move a file
syntax: mv [source filename] [destination filename]
• if the source filename and destination filename is same, the file will be renamed
• if the destination filename exists, the file will be overwritten
command “cp” is used to copy file from one location to another inside the same or different
directories.
command “touch” is used to create an empty file. But if the filename already exists, the access
time will be modified.
Command “rm” is used to delete a file
options:
-i ---> interactive mode, asks confirmation for the removal of file
-r ---> to remove a non-empty directory
-f ---> to remove file or directory forcibly without asking any confirmation
command “rmdir” is used to delete an empty directory
Running multiple commands on the same command line
syntax: first command ; second command
syntax: first command && second command
Here, “;” causes to run the second command only after the successful execution of the first
command while “&&” causes the commands to be executed sequentially independent of each
other.
Example:
$ mkdir dir1; cd dir1
Viewing text files
$ cat [option] filename
options
-s ---> squeeze [replaces the multiple blank lines by a single blank line]
-n ---> displays the line number
-A ---> displays all including control and non-printable characters like spaces, return, etc
Command “less” displays the contents of a file, one screen at a time either forward or backward.
Syntax: less {filename}
d ---> moves half screen forward
d ---> moves half screen backward
spacebar ---> moves forward by one screen
enter/return ---> moves ahead by a line
note: the above options are not command line options
options:
-s ---> squeeze [replaces the multiple blank lines by a single blank line]
-c ---> clear the screen before displaying the file
There are also other commands like “more”, “pico”, “joe”, etc to view files.
5
By Akhil Mathema
Viewing first and last few lines of a file
Command “head” displays first few lines of a file which is 10 lines by default.
Command “tail” displays last few lines of a file which is 10 lines by default.
Example:
$ head -n 5 /etc/passwd ---> displays first 5 lines of /etc/passwd file
$ tail -f /var/log/messages ---> it is used to view constantly growing (updating) log file
File Globbing
It helps to replace the same pattern on multiple filenames. In MS-DOS it is known
as wild cards, whereas in Linux, it is known as metacharacters
? ---> matches any single character
• ---> matches any number of character
• [a-z] ---> matches into the range
• [^a-z] ---> matches all except the range
Example:
$ rm a??? ---> deletes all files of 4 characters starting with “a”
$ rm a* ---> deletes all files preceeding with “a”
$ rm [a-c] ---> deletes all files proceeding from “a” to “c”
$ rm *.* ---> deletes all files with “.” extension but not directory
Home Directory
Tild i.e. “~” represents home directory
$ ~ --->displays the path of the current user's home directory
$ dirs
~$
touch ~user/file1 ---> makes a blank file file1 on user's home directory

Saturday, July 2, 2011

Artificial Inteligent

We homo sapiens call ourselves the best creature on this beautiful planet, Just because of our mental capacities. We have tried to understand how we think; that is how a mere handful of stuff can perceive, understand, predict and manipulate a world far larger and more complicated than itself.

In today's scientific and Technological world, AI is one of the newest science. It is generally the attempt to build machines that think, as well as the study of mental facilities through the use of computational models.The research and work of AI had only started after the world war two, and the name itself was coined in 1956, along with molecular biology.

As it is the science of making machines do things that would require intelligence if done by men. It includes reasoning, learning, planning, speech recognition, vision, and language understanding. These machines are being used today in a wide variety of applications, such as monitoring credit card fraud, making autonomous decisions on space missions, watching for attacks from computer network hackers, diagnosing faults in aircraft, enabling human machine speech interfaces, and making the characters in video game behave in a more human like way.