Reinstall / Recover GRUB from Ubuntu live CD / USB


After installing Windows / Fedora your Ubuntu will not boot anymore and its grub may be wiped out. To restore it follow the steps below.

To Reinstall Grub

You need to have Ubuntu Live CD or Live USB. Normal session can be used to repair the grub. Boot using your Ubuntu Live CD or Live USB, while booting choose Try Ubuntu.

Once booted then open a terminal, and run the following command one by one to install the boot repair.

To add boot-repair to the repository,just add below two lines to “/etc/apt/sources.list”  according to your Ubuntu version:

Ubuntu 13.04:

deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu raring main
deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu raring main

Ubuntu 12.10:
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu quantal main
deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu quantal main

Ubuntu 12.04:

deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu precise main
deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu precise main

To Update your repository

$ sudo apt-get update

To install boot-repair

$ sudo apt-get install -y boot-repair

Once Installation complete run boot-repair on terminal by typing the following command or select it by

System->Aministration->Boot Repair.

$ boot-repair

NOTE: Update the Boot Repair if its newer version is available.

It will scan the System for few seconds and will show you the options Recommended repair and Create a BootInfo summary. By clicking the Recommended Repair it will start repair the grub. Check the screen shots below.

Once done click ok and restart your system, your grub should work now. If not run the boot-repair again using live cd / usb. Then follow the steps below.

Select the Advanced options, In Main options tab check whether the following options are selected or not. If not select it, the options are Reinstall Grub and unhide boot menu for 10 seconds. Check the screen shot below

Then select the GRUB locations tab and check the following options are selected or not. The options are OS to boot by default and place grub into, In “OS to boot by default” option choose the OS which you want to be default on boot. Then select the drive where you need to reinstall the grub in “place grub into” option and click apply. Check the screen shots below

Click ok and restart your System.

Advertisements

Auto_UrlOpener


Language: C++

#include<iostream>
#include<fstream>
#include <stdlib.h>
#include<string.h>
#include<windows.h>
void welcome(void);
void thanks(void);
using namespace std;
int main()
{
char file;
char s;
welcome();
printf(“Are you sure to run this? Y/Nn”);
scanf(“%c”,&file);

ifstream shadhin(“links.txt”);
char link[5000];
if(file==’y’ || file==’Y’)
{
if(shadhin==”)
{
cout<<“nn”links.txt” file missing.!!! First close the progarm then Put the file and run again.n”;
cout<<“Press CTRL+Z then Enter to exit.”<<endl;
cin>>s;
return 0;
}
cout<<“nProgram is now runnig…………………..”<<endl;
while(shadhin>>link)
{
ShellExecute(NULL, “open”, link,
NULL, NULL, SW_SHOWNORMAL);
Sleep(5000);
}
cout<<“nWork is done.”;
}else if(file==’n’ || file==’N’){
cout<<“nThank you! Best of luck for next time.n”<<endl;
}else{
cout<<“Oops!!!!!! You enter invalid key.Run again and give right key.”<<endl;
}
shadhin.close();
thanks();
cout<<“Press CTRL+Z then Enter to exit.”<<endl;
cin>>s;

return 0;

}
void welcome(void)
{
cout<<“Welcome!This is an auto urls opener program that Developed by H.R.Shadhin”<<endl;
cout<<“=====================>(@Z! C0d3r<==================nn”<<endl;
}
void thanks(void)
{
cout<<“nn************************************************”<<endl;
cout<<“Thank you for useing this program.”<<endl;
cout<<“Give feedbacks on:www.crazicoder.wordpress.com”<<endl;
cout<<“E-mail:hrshadhin.i386[AT]gmail[DOT]com or Facebook:”<<endl;
cout<<“www.facebook.com/crazicoder”<<endl;
cout<<“nn************************************************”<<endl;
}

Programming Languages are Like Women


 There are so many programming languages available that it can be 
very  difficult to get to know them all well enough to pick the 
right one for you.  On the other hand most men know what kind of 
woman appeals to them. So here  is a handy guide for many of the 
popular programming languages that describes  what kind of women 
they would be if programming languages were women.

 Assembler - 
A female track star who holds all the world speed 
records.  She  is hard and bumpy, and so is not that pleasant to 
embrace.  She can cook up  any meal, but needs a complete and 
detailed recipe.  She is not beautiful or  educated, and speaks in 
monosyllables like "MOV, JUMP, INC".  She has a  fierce and 
violent temper that make her the choice of last resort.

 FORTRAN - 
Your grey-haired grandmother.  People make fun of her 
just because  she is old, but if you take the time to listen, you 
can learn from her  experiences and her mistakes.  During her 
lifetime she has acquired many  useful skills in sewing and 
cooking (subroutine libraries) That no younger  women can match, 
so be thankful she is still around.  She has a notoriously  bad 
temper and when angered will start yelling and throwing dishes.  
It was  mostly her bad temper that made grandad search for another 
wife.

 COBOL - 
A plump secretary.  She talks far too much, and most of 
what she says  can be ignored.  She works hard and long hours, but 
can't handle really  complicated jobs.  She has a short and 
unpredictable temper, so no one really  likes working with her.  
She can cook meals for a huge family, but only knows  bland 
recipes.

 BASIC - 
The horny divorcee that lives next door.  Her specialty 
is seducing  young boys and it seems she is always readily 
available for them.  She  teaches them many amazing things, or at 
least they seem amazing because it is  their first experience.  
She is not that young herself, but because she was  their first 
lover the boys always remember her fondly.  Her cooking and  
sewing skills are mediocre, but largely irrelevant, it's the 
frolicking that  the boys like.  The opinion that adults have of 
Mrs.  BASIC is varied.  Shockingly, some fathers actually 
introduce their own sons to this immoral  woman!  But generally 
the more righteous adults try to correct the badly  influenced 
young men by introducing them to well behaved women like Miss  
Pascal.

 PL/I - 
A bordello madam.  She wears silk dresses, diamonds, furs 
and red high  heels.  At one time she seemed very attractive, but 
now she just seems  overweight and tacky.  Tastes change.

 C - 
A lady executive.  An avid jogger, very healthy, and not too 
talkative.  Is an good cook if you like spicy food.  Unless you 
double check everything  you say (through LINT) you can unleash 
her fierce temper.  Her daughter C++  is still quite young and 
prone to tantrums, but it seems that she will grow  up into a fine 
young woman of milder temper and more sophisticated character.

 ALGOL 60 - 
Your father's wartime sweetheart, petite, well 
proportioned, and  sweet tempered.  She disappeared mysteriously 
during the war, but your dad  still talks about her shapely form 
and their steamy romance.  He never  actually tasted much of her 
cooking.

 Pascal - 
A grammar school teacher, and Algol 60's younger sister.  
Like her  sister she is petite and attractive, but very bossy.  
She is a good cook but  only if the recipe requires no more than 
one pot (module).

 Modula II 
- A high-school teacher and Pascal's daughter.  Very 
much like her  mother, but she has learned to cook with more than 
one pot.

 ALGOL 68 - 
Algol 60's niece.  A high-society woman, well educated 
and terse.  Few men can fully understand her when she talks, and 
her former lovers still  discuss her mysterious personality.  She 
is very choosy about her romances  and won't take just any man as 
her lover.  She hasn't been seen lately, and  rumor has it that 
she died in a fall from an ivory tower.

 LISP -
 She is an aging beatnik, who lives in a rural commune with 
her hippie  cousins SMALLTALK and FORTH.  Many men (mostly college 
students) who have visited the farmhouse,-- enthusiastically 
praise the natural food, and perpetual love-ins that take place 
there.  Others criticize the long cooking times, and the abnormal 
sexual postures (prefix and postfix). Although these women seldom 
have full-time jobs, when they do work, their employers praise 
them for their imagination, but usually not for their efficiency. 

APL - 
A fancy caterer specializing in Greek food.  She can cook 
delicious meals for rows and rows of tables with dozens of people 
at each table.  She doesn't talk much, as that would just slow her 
work down.  Few people can understand her recipes, since they are 
in a foreign language, and are all recorded in mirror writing.

LOGO - A grade-school art teacher.  She is just the kind of 
teacher that you wish you had when you were young.  She is shapely 
and patient, but not an interesting conversationalist.  She can 
cook up delicious kiddie snacks, but not full-course meals.

LUCID & PROLOG - 
These clever teenagers show a new kind of cooking 
skill. They can cook-up fine meals without the use of recipes, 
working solely from a description of the desired meal (declarative 
cooking).  Many men are fascinated by this and have already 
proposed marriage.  Others complain that the girls work very 
slowly, and that often the description of the meal must be just as 
long as a recipe would be.  It is hard to predict what these girls 
will be like when they are fully mature.

Ada - 
A WAC colonel built like an amazon.  She is always setting 
strict rules, but if you follow them, she keeps her temper.  She 
is quite talkative, always spouting army regulations, and using 
obscure military talk.  You gotta love her though, because the 
army says so.

The Easiest Ways to Cheat in Your Exams


The Easiest Ways to Cheat in Your Exams (20 images)

Need to pass in your exams ? There are at least two easy ways how you can cheat and not be caught.

Check out some of the most creative and unique ways to copy in your exams .

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

The Easiest Ways to Cheat in Your Exams (20 images)

 Others ways…………………..

Black Light Method

  1. Get one of those black light pens that only show up under a black light and come with one attached.
  2. The day before the test, write some things that will probably be on the test on your desk.
  3. The next day, wear a hoodie and hide the pen in your sleeve.
  4. When no-one is looking, shine it on the area where you wrote before.

Locker Combination Method

  1. Group your answers and code them to look like a locker combination. For example, if my first set of answers were 135, 23, and 56, I would write something like Lock #1- 135,23, 56, so if someone looks through my bag or if someone looks at me while I am looking at my answers, they will only think that’s a lock combination of mine at school, or wherever; when its really answers to my first 3 problems on my exam that my teachers going to give back to me tomorrow!
    • If anyone asks about the big numbers, just say you accidentally misplaced a comma. Be sure to have your answers memorized before the test.

The Girls Only Method

  1. Ask to get out of an exam to go to the toilet. If they say no then say subtly to a woman invigilator you need to change your pad (make sure you’re not on your period that day, that’s a bit gross).
  2. Earlier on, you will have written down notes on a sanitary pad, and put this one on. If you need more notes then write them on a new pad and wrap it back up. When in the bathroom (if it’s a real exam the invigilator will probably escort you) look at the pad you have on and quickly memorize it. Then change it, put it in the bin, and replace it with the pad that has more notes. Memorize them quickly and then come out of the toilet as if nothing is wrong.
  3. Go back to the exam and scribble down the answers.
  4. Hide the answers in your bra. During the test, fiddle with your shirt and look down to see the answers or notes. No teacher will dare call you out!

Toilet Paper Method

  1. Write your notes on toilet paper, sneak it into your pocket, ask to go to the washroom. Take out your toilet paper and stick it to your shoe, but keep the written side facing down. When someone tells you about the paper, check your notes when no-one is looking then throw it out.

Position Yourself Method

  1. Sit next to someone smart in your class.
  2. Start out by sitting in your seat like a normal person.
  3. Later, pretend to be uncomfortable and position yourself so your sitting on your knees.
  4. While you are moving look over the smart student’s head and look at his/her answers.
    • Do not be too obvious, or he/she will find out you are cheating.

 Desk Writing Method

  1. You’ll need to get the spelling words, or the math answers that you need. (This works best on a spelling test)
  2. Write them down inside your desk or on the side (I have a cubby desk not a fold up desk)
  3. When it comes to test time, look inside your desk and look at your answers, but be sure to get something out like an eraser!