Posts

Showing posts from October, 2010

Authentic Sunnah Part-7

1.Going early to Jumuah prayer: It is narrated on the authority of Abu Hurayra (may Allah be pleased with him) that he said the Messenger of Allah sallallahu 'alayhi wa salam said: "When Friday comes, at each door of the mosque there are angels who write down the first ones to come to the mosque. The one who comes early is like who sacrificed a camel, then those who come after him are like one who scrificed a cow, then one who sacrificed a horned ram,then one who sacrificed a chicken, then like one who offered an egg. Thenwhen the imaam sits down they close their books and come to listen to the sermon." [Agreed upon: 929 & 1964] 2.Sitting in prayer area after dawn prayers (fajr) until the sun rises: It is narrated on the authority of Jaabir bin Samra (may Allah be pleased with him) that he said the Prophet sallallahu 'alayhi wa salam used to sit in his prayer area when he prayed fajr until the sun had rose well [Muslim: 1526] 3.Performing voluntary prayers in...

Array comparison

If an array arr contain n element,then write a program to check if arr[0]=arr[n-1],arr[1]=arr[n-2] and so on. #include #include #define max 20 void main (void) { clrscr(); int *fp,arr[max],i,n; printf("Enter a series of numbers(MAX lenght is 20):"); for(i=0;i<20;i++) { printf("\nEnter the %d element",i+1); scanf("%d",&arr[i]); } fp=&arr[19]; for(i=0;i<10;i++) { if(arr[i]==*fp) printf("\nMatch"); else printf("\nA mismatch"); fp--; } getch(); }

Milk thread

Understanding Anti-Virus Software

Produced by: US-Cert Anti-virus software can identify and block many viruses before they can infect your computer. Once you install anti-virus software, it is important to keep it up to date. What does anti-virus software do? Although details may vary between packages, anti-virus software scans files or your computer's memory for certain patterns that may indicate an infection. The patterns it looks for are based on the signatures, or definitions, of known viruses. Virus authors are continually releasing new and updated viruses, so it is important that you have the latest definitions installed on your computer. Once you have installed an anti-virus package, you should scan your entire computer periodically. •Automatic scans - Depending what software you choose, you may be able to configure it to automatically scan specific files or directories and prompt you at set intervals to perform complete scans. •Manual scans - It is also a good idea to manually scan files you receive from an...

Authentic Sunnah Part-6

1.Praising Allah after eating and drinking: It is narrated on the authority of Anas bin Maalik (may Allah be pleased with him) who said the Messenger of Allah sallallahu 'alayhi wa salam said: "Indeed Allah is pleased with the slave who eats food and then praises Him for it or drinks a drink and then praises Him for it." [Muslim 6932] 2.Saying 'bismillaah' at the start of eating: It is narrated on the authority of Abu Salamah (may Allah be pleased with him) I was in the room of the Messenger of Allah sallallahu 'alayhi wa salam and my hand was flying around the plate. So he said to me: "O young man, mention the name of Allah, eat with your right and eat what is nearest to you." [Agreed upon: 5376 & 5269] 3.Starting wearing the shoe with the right: It is narrated on the authority of Abu Hurayrah (may Allah be pleased with him) who said that when the Messenger of Allah sallallahu 'alayhi wa salam said: "If one of you puts on shoes, l...

Reverse array

Write a program to copy the contents of one array into another in the reverse order. #include #include void main(void) { int arr[10],i,*fp; for(i=0;i<10;i++) { printf("Enter the %d element:",i+1); scanf("%d",&arr[i]); } fp=&arr[9]; for(i=0;i<10;i++) { printf("%d",*fp--); } getch(); }

Top reasons why bodybuilder fail to achive results

Introduction: The most frequently asked question in Bodybuilding by the beginners to me is "Why I'm not getting results?" And I asked them how much do you know about bodybuilding?They start say,"Well,Monday:Chest &  Biceps,Tuesday:Lats & Triceps and the list goes on and on...Bodybuilding is not about it at all.Its actually about the combination of three thing. 1.Workout Plan. 2.Diet. 3.Rest and Recovery. In these articles we'll be discussing each thing indivisualy.Before that let me tell you the mistakes that most people make. 1.Bodybuilding without setting goals: This is one of the most important thing.A proverb says: "If you don't know to which port you are sailing,no wind is favourable", So first of all set your goals,How to do that?I'll be discussing it in later articles.It is better that you subscribe so that you can have an alert. 2.Not having sensible bodybuilding program: Another thing that should be focused ,a good bodybuilding ...

Improving Your Vertical Jump

I’ll admit it: I’m an average sized guy, well at least as far as height is concerned. I’ve bulked myself up considerably through weight training using many of the tips I’ve shared with you in this blog but I’ve always wished I was a bit taller. Unfortunately, there isn’t any magic pill that can help us add a few inches to our height. Luckily though, at least as far as sports and athletics is concerned, there *is* something we can do to overcome much of the burden of being an average sized or short guy: improve our vertical jump. Actually, even if you’re already a tall dude, improving your vertical leaping ability is something that will increase your performance in sports such as basketball, football, volleyball, and a whole host of others. For years, I’d tried to improve my vertical jump but, despite diligent adherence to what I thought was a great training regimen, I was making very little overall progress. Then I noticed this guy at the gym. This dude was stacking aerobic STEP blocks...

DataBase Program

Write a progarm to take the input of an employee and show it again. #include #include void main(void) { struct employee { long int salary,phno; int code; char name[30],fname[30]; float height; }; struct employee vc; printf("Enter your name:"); gets(vc.name); printf("Enter your father name:"); gets(vc.fname); printf("Enter your code:"); scanf("%d",&vc.code); printf("Enter your phone number:"); scanf("%ld",&vc.phno); printf("Enter your salary:"); scanf("%ld",&vc.salary); printf("Enter your height:"); scanf("%f",&vc.height); printf("\t\t\tEmployee Data"); printf("\nName:%s\nFather Name:%s\nCode:%d\nPhone number:%ld\nSalary:%d\nHeight:%.2f",vc.name,vc.fname,vc.code,vc.phno,vc.salary,vc.height); getch(); }

Authentic Sunnah Part-5

1.Persistence on a righteous action even if small: It is narrated on the authority of 'Aa`ishah (may Allah be pleased with her) that she said: The Prophet sallallahu 'alayhi wa salam was asked what action is most beloved to Allah. He said: "The most constant even if small." [Agreed upon: 6465 - 1828] 2.Intending reward by spending on family: It is narrated on the authority of Abu Mas'ood al-Badri (may Allah be pleased with him) that the Prophet sallallahu 'alayhi wa salam said: "If the Muslim spends upon his family expecting reward for it, it is charity by him." [Muslim 2322] 3.Avoiding anger: It is narrated on the authority of Abu Hurayra (may Allah be pleased with him) that a man said to the Prophet sallallahu 'alayhi wa salam: "Advise me." He said: "Don't get angry." He repeated it a number of times. He said: "Don't get angry." [al-Bukhari: 6116] 4.Caring for orphans: It is narrated on the authority ...

Choosing and Protecting Passwords

Produced by: US-Cert Passwords are a common form of authentication and are often the only barrier between a user and your personal information. There are several programs attackers can use to help guess or "crack" passwords, but by choosing good passwords and keeping them confidential, you can make it more difficult for an unauthorized person to access your information. Read More> Why do you need a password? Think about the number of personal identification numbers (PINs), passwords, or passphrases you use every day: getting money from the ATM or using your debit card in a store, logging on to your computer or email, signing in to an online bank account or shopping cart...the list seems to just keep getting longer. Keeping track of all of the number, letter, and word combinations may be frustrating at times, and maybe you've wondered if all of the fuss is worth it. After all, what attacker cares about your personal email account, right? Or why would someone bother with...

Cyber Security Tip

Produced by: US-Cert Why is Cyber Security a Problem? You've heard the news stories about credit card numbers being stolen and email viruses spreading. Maybe you've even been a victim yourself. One of the best defenses is understanding the risks, what some of the basic terms mean, and what you can do to protect yourself against them. Read More> What is cyber security? It seems that everything relies on computers and the internet now — communication (email, cellphones), entertainment (digital cable, mp3s), transportation (car engine systems, airplane navigation), shopping (online stores, credit cards), medicine (equipment, medical records), and the list goes on. How much of your daily life relies on computers? How much of your personal information is stored either on your own computer or on someone else's system? Cyber security involves protecting that information by preventing, detecting, and responding to attacks. What are the risks? There are many risks, ...

Some Great Videos

Zakir Naik(Jihad aur Dahshatgardi)

Authentic Sunnah Part-4

1.Sitting when drinking: It is narrated on the authority of Anas (may Allah be pleasedwith him) who said the Prophet sallallahu 'alayhi wa salam prohibited a man drinking whilst standing. [Muslim 5275]. 2.Not criticising food: It is narrated on the authority of Abu Hurayrah (may Allah be pleased with him) that he said the Messenger of Allah sallallahu 'alayhi wa salam did not ever criticise food. If he liked it, he ate it and if he disliked it, he left it. [Agreed upon 5380 & 5409]. 3.Drinking Zamzam water and using it as a cure: It is narrated on the authority of Abu Dharr (may Allah be pleased with him) that he said the Messenger of Allah sallallahu 'alayhi wa salam said about Zamzam water: "It is blessed and a food that nourishes" al-Tayaalisee adds, "And a cure for sickness." [Muslim 6359]. 4.Eating on Eed al-Fitr before going to the prayer area: It is narrated on the authority of Anas bin Maalik (may Allah be pleased with him) that he said...

Half-Diamond

Write a program to print out the half-diamond of the given input. #include #include void main(void) {  clrscr();  int a,b,n,i,j,k;  printf("Enter No =");  scanf("%d",&n);  for(a=1;a<=n;a++)  {     for(b=a;b>=1;b--)     {     printf("%d",b);     }     printf("\n");  }  for(i=n;i>=1;i--)  {     for(j=i;j>=1;j--)     {     printf("%d",j);     }     printf("\n");  }  getch(); }

49 Ways to keep your-self motivated!

Image
Image by DVIDSHUB via Flickr Write down your goals. Create a fitness action plan. Devise a desirable reward. Set a completion date. Enter a competition. Enter a competition amongst your friends. Write "Every Day is a New Battle" on your bathroom mirror. Post your favorite fitness role model Practice core strength Read some "how to" fitness articles. Join a fitness web blog. Pray and thank Allah for the amount of weight you've already lost. Make a supportive fitness group. Hang around fit friends. Surround yourself with people and things that promote a healthy lifestyle. Document your progress: weight, body fat, and blood pressure. Talk to competitors and pros that live for fitness. Ask your role models what motivates them. Take a chance and email your role model off their web site. Become a trainer. Humble a trainer by knowing more stuff than him/her. Look like a trainer. Buy new athletic shoes. Buy a new workout outfit. Buy clean, new, and comfortable socks. W...

Authentic Sunnah Part-3

11. Going to the prayer with dignity and tranquility: It is narrated on the authority of Abu Hurayrah (may Allah be pleased with him) that the Prophet sallallahu ‘alayhi wa salam said: "When the Iqama is pronounced for prayer, do not go to it running but go walking with [calmness and] tranquillity. Pray however much [of the prayer] you are in time for, and make up whatever you miss." [Agreed Upon: 1359-908] 12. Making dua'a upon entering and leaving the masjid: It is narrated on the authority of Abu Humayd al-Saa'idee and Abu Usayd (may Allah be pleased with them both) that the Prophet sallallahu ‘alayhi wa salam said: "When any of you enters the masjid, he should say, 'O Allah, open the gates of Your Mercy for me,' [1] and when he leaves he should say, 'O Allah, I ask you from Your Favour.'[2]" [Muslim : 1952] 13.The Forenoon Prayer (Salaat al-Duhaa): It is narrated on the authority of Abu Dharr (may Allah be pleased with him) that the P...

ASCII codes using for loop

Write a program to print all ASCII codes using a for loop. #include #include void main(void) { clrscr(); int n; for(n=0;n<=255;n++) printf("%c = %d\n",n,n); getch(); }

Blogger’s block

Image
Blogger’s block. Some of you may already know that kind of feeling. These are times when you feel that you cannot seem to start blogging anything. That everything is so clustered and you cannot begin to write one single word. How could this happen when you were so good at blogging before? Why is it that you cannot get one word written? And the more you think about blogging, the more you are not able to blog. What is the best thing to do when you find yourself situations like this? Below are ideas that you might find helpful during your “cannot seem to blog” days. 1. Do some blog visitation. Go to some blog sites and read what is posted there. If possible, trace back blogs that were past favorite. Or you could also visit some least favorite ones. By doing this, you will be able to get ideas on what to write about. Maybe one or to things that you come across will tick something on your brain and remove the big block there. You might be able to find a topic that you want to blog about b...

Diet Strategies for Ectomorphs to Gain Weight

Simply put, you are going to have to eat a lot to grow! There is no way around that. The primary factor that determines whether you gain or lose weight is your caloric intake (how many calories you eat). If you eat more calories than you burn (hypercaloric diet) you will gain weight and if you burn more calories than you eat (hypocaloric diet) you will lose weight. When you eat exactly the same amount of calories as you burn, it is called a maintenance caloric diet. Ectomorphs trying to gain muscle need to eat a hypercaloric diet like anyone else who wants to gain weight. A simple calculation to determine your maintenance caloric intake is to take your body weight and multiply it by 15; this gives you your total calories to be consumed each day. For example, a 200 pound person would consume 3,000 calories a day. Now this is a very basic way to determine your maintenance caloric intake. A good starting point for ectomorphs is to set your calories to 500 calories over maintena...

Mr.Pakistan Bodybuilding contest 2010

Image
Congratulations to the Fazal Elahi winning the Mr.Pakistan Bodybuilding contest.Its is the biggest achievement of his life. Fazal Elahi coming back to his city holding a  Mr.Pakistan Bodybuilding contest cup.

Fill the screen alternately with heart and diamond

Write a program to fill the screen alternately with heart and diamond the ASCII code for heart and diamond are 3 and 4 respectively. #include #include void main(void) {  int a=1;  while(a<2001)  {  printf("\x3\x4");  a++;  }  getch(); }
Write a program to fill the screen alternately with heart and diamond the ASCII code for heart and diamond are 3 and 4 respectively. #include #include void main(void) {  int a=1;  while(a<2001)  {  printf("\x3\x4");  a++;  }  getch(); }

Authentic Sunnah Part-2

6 . Two ruk'ah prayer after ablution: The Messenger of Allah, sallallahu 'alayhi wa salam said: "Whosoever performs ablution like that of mine, then prays two ruk'ah without having any other concern on his mind, all of his past sins will be forgiven." [Agreed upon: 159 & 539] 7. Repeating the words of the adhan after the mu'adhdhin then supplicating for the Prophet (salla Allaahu 'alayhi wa sallam): It is narrated on the authority of 'Abdullah ibn 'Amr (may Allah be pleased with him) that he heard the Prophet sallallahu 'alayhi wa salam say: "When you hear the mu'adhdhin (caller to prayer) make the adhaan, then say what he says, and then supplicate for me, for whoever supplicates for me once, then Allah will do so for him ten times." [Muslim : 849] *N.B. The dua to be made after the adhaan is: ‘O Allaah, Owner of this perfect call and Owner of this prayer to be performed, bestow upon Muhammad al-waseelah and al-fad...

Congratulations to Winner of Mr.Olympia 2010

Image
AGE 37 HEIGHT 5'9" CONTEST WEIGHT 270 COUNTRY OF BIRTH United States CURRENT RESIDENCE Las Vegas, Nevada OLYMPIA HISTORY 1999, 15th; 2000, 8th; 2001, 2nd;2003,2nd; 2004, 2nd; 2005, 2nd; 2006; 1st; 2007, 1st; 2008,2nd; 2009, 1st

Blogging Made Easy

Most of the time bloggers find some qoutes to place or replace them in HTML codding,and the most difficult part is looking all the codding up and down just to replace it. The easy way is just press CTRL+F,there will be a bar appear named;Find. Just write down whatever you are looking for and you will have it in front of you. Enjoy the tip.

Protein: The Key to Anabolic Happiness

Proteins • These nutrients serve as structural building blocks and the “work horses” in body chemistry. • They are only used as a source of energy when alternative sources are not adequately available - very inefficient conversion to glucose! • Functions of Protein in the Body:      o Structural Components of Body (esp. Muscle, Bone).      o Enzymes (“workhorses” of body chemistry).      o Hormones (communication).      o Antibodies (immunity).      o Emergency source of energy.      o Help maintain body fluid balance. • Made up of NITROGEN containing subunits called AMINO ACIDS. • There are 20 total amino acids. • 9 of the 20 amino acids are essential: Histidine, Isoleucine, Phenylalanine,Methionine, Leucine, Threonine, Valine, Lysine, and Tryptophan. Protein Quality—Complete vs. Incomplete • COMPLETE PROTEINS      o C...

Explanation on Phenotypes: What Makes a Mesomorph a Mesomorph?

The term phenotype is defined as “The observable physical or biochemical characteristics of an organism, as determined by both genetic makeup and environmental influences.” (dictionary.com). Ones body type/structure can be placed in three phenotypes: • Ectomorph—Naturally skinny, narrow bone structure, has a hard time gaining weight. • Mesomorph—Naturally built, broad shoulders, can gain or lose weight relatively equally. • Endomorph—Naturally heavy, wide bone structure, gains weight easily. There is a clear visible physical distinction between the three phenotypes, but what is not visible and often ignored is the biochemical and metabolic differences between the three phenotypes. Mesomorphs tend to be in the middle when it comes to metabolic rate. While ectomorphs struggle to gain weight and endomorphs have trouble gaining too much weight (specifically fat:muscle ratio), mesomorphs seem to have the best of both worlds; they can gain muscle with limited fat gains. Mesomorphs ...

Explanation on Phenotypes: What Makes an Endomorph an Endomorph?

The term phenotype is defined as “The observable physical or biochemical characteristics of an organism, as determined by both genetic makeup and environmental influences.” (dictionary.com). Ones body type/structure can be placed in three phenotypes: • Ectomorph—Naturally skinny, narrow bone structure, has a hard time gaining weight. • Mesomorph—Naturally built, broad shoulders, can gain or lose weight relatively equally. • Endomorph—Naturally heavy, wide bone structure, gains weight easily. There is a clear visible physical distinction between the three phenotypes, but what is not visible and often ignored is the biochemical and metabolic differences between the three phenotypes. I’m sure everyone has a friend that seems to have the ability to eat endless amounts of junk food and never gain an ounce of fat. On the other hand, you may feel like you gain fat just from smelling cake or pizza. Why is your friend able to pig out and  not add weight while you gain weight so ea...

Authentic Sunnah Part-I

1. Sleeping on Wudoo`. The Prophet, sallallahu 'alayhi wa salam told al-Baraa` bin 'Aazib, radiallahu 'anh, If you go to your bed, then do your wudoo` (ablution) as you would do it for prayer, then lie on your right" [Agreed upon, No. 6311.] 2. Reading Soorat al-Ikhlaas, al-Falaq and an-Naas before sleeping: From 'Aishahradiallahu 'anha, the Messenger, sallallahu 'alayhi wa salam used to recite "Qul huwallahu ahad", "Qul a'oothu birrabilfalaq" and "Qul a'oothu birrabinnaas" every night when he went to sleep, then wiped his face and whatever he was able from his body, beginning with his head and face, and what faces him from his body, three times". [al-Bukhaari: 5017] 3. Doing takbeer and tasbeeh when going to sleep: 'Ali, radiallahu 'anh narrates that the Messenger of Allah, sallallahu 'alayhi wa salam said when Faatimah asked him for  a servant, "Shall I not lead you to that which is better fo...

Table

Write a program to print out the table of the number input through the keyboard. #include #include void main(void) { int a,s,d; printf("Enter the number:"); scanf("%d",&a); for(s=1;s<11;s++) { d=a*s; printf("%d * %d = %d\n",a,s,d); } getch(); }

How to make a New folder Invisible

If you wanna make invisible folder and play trick with your friends and family or even you can use this for secruity purpose,if you wanna do so just simply do the following steps: Make a new folder on desktop. Right click on it. Hit RENAME. Now,Press ALT+0160 and then,let the ALT go. Congrats!The name is removed. Now,go into its PROPERTIES>CUSTOMIZE. Select Change Icon.  In icons there is a icon that is invisible. Select it. Enjoy the trick.Keep checking for more Tips and Tricks.

Prime Number

Write a program to take a number as input and show weather the number is prime or not. #include #include void main(void) { clrscr(); int n,num,rem; printf("Enter number = "); scanf("%d",&n); for(num=(n-1);num>1;num--) { rem=n%num; if (rem==0) { printf("%d=Not Prime",num); break; } } if(rem!=0) printf("%d=Prime",num); getch(); }

Miswaak: Sunnah of the Tooth Stick

Usage of Miswak The use of Miswak is a means of purifying the mouth and is pleasing to Allah (The Exalted). Sunnah of All The Prophet’s (upon them all be peace) The Miswak is a stick by which a person cleans the mouth. This is a great Sunnah of the Messenger of Allah (may Allah bless him and grant him peace). It is also a Sunnah of all the Messengers of Allah (upon them all be peace), for they used the Miswak. Abu Ayyub Ansari (may Allah be pleased with him) narrates that four things are the Sunnahs of all the prophets (upon them all be peace) 1) Circumcision, 2) To apply fragrance (Itr), 3) To use Miswak, 4) Marriage. Seventy Extra Rewards For One Salaah ‘Aisha (may Allah be pleased with her) has reported that,“The prayer before which the Miswak is used is seventy times more excellent than that before which it is not used.” Ibn Abbas, ‘Ali and Ata (may Allah be pleased with them all) state that, “But it increases to 99 or 400 times.” This reward is based on sincerity, the...

Sunnats of Sleeping

Sleeping is similar to death. That is why sleeping has been linked to death, and waking with life. When preparing to sleep we should fear that may be our eyes close and do not open again. This has happened many times ; hence we should ask Allah (The Exalted) for forgiveness of our sins as it is not good to do so without. The pious would sleep little as the time spent in sleep is of no use. Only if we are successful and able to understand to reality of our life. For instance if someone has a life of 60 years and sleeps for 8 hours a day then we would have spend 20 years in sleep, that's 1/3 of the life spent in sleeping. In these 20 years we did not achieve anything, however, if we spend our sleeping in the way of the Prophet (may Allah bless him and grant him peace) then Inshallah we will gain some benefit as this will become worship. Imam Ghazali (may Allah have mercy upon him) states that those who can not stay awake and worship and are engaged in si...