BattleField
Monday, January 12, 2015
Wednesday, September 26, 2012
CREATE DATABASE permission denied in database 'master'
CREATE DATABASE permission denied in database 'master'. This is what i typed in Google to solve the my problem. But Unfortunately, no results gave me the perfect answer. But what i was able to figure out is that i need sysadmin rights in sql server studio. So then i searched for add current user to sql server sysadmin role. And Bingo !!! I got the answer on first hit. And guess what, i found a script and i simply had to run it.
Here is the link for script :
http://archive.msdn.microsoft.com/addselftosqlsysadmin/Release/ProjectReleases.aspx?ReleaseId=3954
Run the script and it will ask you for the SQL Server instance name. If you don't know the name then just hit the enter.
Here is the link for script :
http://archive.msdn.microsoft.com/addselftosqlsysadmin/Release/ProjectReleases.aspx?ReleaseId=3954
Run the script and it will ask you for the SQL Server instance name. If you don't know the name then just hit the enter.
Saturday, December 10, 2011
Puzzle
Question : 2 bottles(A and B) of 10L,each containing 10 liter water is given to you.You also have 2 empty bottles of 5 liter and 4 liter respectively.Fill the empty bottles with 3 liter water without wasting any water.
Answer : You can get answer by trial and error method.But rather than that you should try to get answer more intuitively.
You can achieve the solution by posing the problem like this..
1)Get 3 liter water in 5L bottle and Keep 9 liter in one 10L bottle.So you can empty 1 liter from full 4L bottle hence measuring 3 liter in 4L bottle.From above discussion 2 question arises.
1.How to get 3 liter in 5L bottle?
2.How to get 9 liter in 10L bottle(A)?
Answer to 1st question :
To get 3 litter in 5L bottle,you need to get 2 liter in 4L bottle(I hope you got this idea.).
How to get 2 liter in 4L bottle?
Pour 5 liter to 5L bottle from 10L bottle(A). You can get 1 liter in 5L bottle by emptying 5L bottle in 4L bottle.
Now pour 1 liter water from 5L to 4L bottle.(Before that empty 4L to 10L bottle(A). ( 10L bottle(A) now contains 9 liter water.Answer to Question 2 )
Pour 5 liter from 10L bottle(B) (not the one we used before) to 5L bottle. Empty full 5L bottle to 4L bottle(which contains 1 liter water). So,5L bottle contains 2 liter.
Empty 4L bottle to 10L bottle(B). Pour 2 liter to 4L bottle from 5L bottle.
Pour 5 liter from B to 5L bottle.Empty 5L bottle to 4L bottle.So,5L bottle now will contain 3 liter water.
At last,Pour 1 liter water from 4L bottle to 10L bottle(A).
Tuesday, September 27, 2011
The Alladin 1992 movie's scene-dialogue(Aazadi)
Ali : Hmmm...teen icchaaye.....achi se achi honi chahiye. Jini, tum hote to kya mangate?
Jinni : Main??? Aaj tak kisine pucha hi nahi. Main hota to......chodo bhi...
Ali : kya?
Jini : Ab kaise bataoo?
Ali: Are chalo batao bhi..
Jini : Aazadi...
Ali : Tum quaid ho?
Jini : Jin duniya ki yahi to rit hain,Power aur Takat bahot par rehane ke liye itna(chota) sa makaan....
Ali : Oh!Jini! Ye to jyadati hain.
Jini : Aazadi...Jahan na karna ho...Ji Mere Malik...Haan Mere Malik...Agar hota apni maraji ka malik to sach Zindagi hoti kisi Jadoo se behatar,Khajanon se behatar,Duniya se behtar......par mein ye kyun bak raha hoon??
Ye sab kaise ho sakta hain?Jago jini pyare.
Ali :Kyu nahi?
Jini : Kyuni ki agar mere Malik chahe to hi mujhe aazadi mil sakti hain..Aur tumhe to maloom hain aisa koi nahi karega..
Ali : Main karoonga,ek bar meri 2 icchaye puri ho jayen to meri teesari iccha hogi tumhari aazadi..
Jini : Chalo dekhenge...
Wednesday, July 13, 2011
Puzzle/Question asked in Interview/Placement Paper with sollution
Classic 25 Horse Race Problem :
You have 25 horses and a race-track on which you can race among at most 5 horses.Outcome of a race only tells you the relative speeds of the horses in the race.At least how many races are required to find 3 fastest horse?
Ans : 7 races
- Divide the horses into 5 groups of 5 horses each.(Randomly)
- Make a race among each group.(Total 5 races.)
- Now you can eliminate 2 horses from each group which came 4th and 5th in their group race.(Reason : Horses which are 4th and 5th fastest in their group can't be in top 3 among all horses.)(15 horses left)
- Make a race between winners of each group.(6th race)
- The winner of the race will be the fastest horse among 25 horses.(14 horses left - fastest horse has been decided)
- Now you can eliminate horses which came 4th and 5th in race and their respective group also.(8 horses left - fastest horse has been decided)
- The horse which came third in the 6th race is the only candidate from its group.(Reason:It is the fastest in its group.It came third so others in the group will not be fastest 3 horses.)(6 horses left - fastest horse has been decided)
- The horse which came second in the 6th race and its successor in its group are only candidate,the third horse of this group will be eliminated.(5 horses left - fastest horse has been decided)
- Make a 7th race between Second and third fastest horse of a group whose fastest horse came first in 6th race,Runners up of 6th race and second fastest of its group,Second Runners up of the 6th race.
- The result of the 7th race will decide the second and third fastest horse.
Saturday, June 18, 2011
Links for download/watch online Movies and TV Shows/Serials
Download/Watch online Movies :
1) Video247
2) DesiTVForum
3) YouTube Movies
4) YouTube Movies
Download/Watch online TV Shows/Serials :
1) DesiTVForum
YouTube Channel link of popular TV Shows/Serials :
1) Tarak Mehta ka oolta chasma
2) Comedy Circus Ke SuperStar
3) Comedy Circus Ke Tansen
4) Crime Petrol
5) Roadies 8.0
6) Office Office
YouTube Channel link of TV channels :
1) SetIndia
2) Star TV
3) Zee TV
1) Video247
2) DesiTVForum
3) YouTube Movies
4) YouTube Movies
Download/Watch online TV Shows/Serials :
1) DesiTVForum
YouTube Channel link of popular TV Shows/Serials :
1) Tarak Mehta ka oolta chasma
2) Comedy Circus Ke SuperStar
3) Comedy Circus Ke Tansen
4) Crime Petrol
5) Roadies 8.0
6) Office Office
YouTube Channel link of TV channels :
1) SetIndia
2) Star TV
3) Zee TV
Saturday, July 17, 2010
Harsha Bhogle one liners
These are some Harsh Bhogle one liners...
1) Ind vs Nzl. (in nzl 2002-2003) Sehwag had many lucky escapes. When he was dropped once again ..
Harsha : " Its been that kind of a day that Sehwag can walk blindfolded across a busy highway and not get run over ."
2) T-20 World Cup Semifinals - Yuvraj hit a six (119 meters)of brett lee, which went outside the stadium in
durban...
Harsha : "Are there people working late in the offices....... we want our ball back"
3) Talent can open the first door, the second door, the third door but only attitude can open the last door for you !!!
4) India vs Eng in Natwest Series..When number of catches dropped in bowling of Zaheer Khan..
Harsha : "Zaheer is going to write BCCI a letter that Can i find a team that can hold on to catches??"
5) It is important to surround yourself with people who are better than you.
6) Ind vs Aus in Australia...It was rain affected match and australia got a new target of 225(dont remember exactly) in 32 overs.And Gilchrist was off to a flier.He was smashing indians all over the park.And Ganguly was changing his fielders continuously as and when ball was going to boundary.Then gilchrist edged one which went to the boundary.And Harsha then said....It seems like that gaps are moving depending on where Gilchrist is hitting the ball.
Some one liners from other commentators..
1) In IPL,Rajasthan Royal's opener Michale Lumb started off with 2 consecutive sixes and then got out on third ball,the commnetator : "He came like a thunder and went like a storm".
1) Ind vs Nzl. (in nzl 2002-2003) Sehwag had many lucky escapes. When he was dropped once again ..
Harsha : " Its been that kind of a day that Sehwag can walk blindfolded across a busy highway and not get run over ."
2) T-20 World Cup Semifinals - Yuvraj hit a six (119 meters)of brett lee, which went outside the stadium in
durban...
Harsha : "Are there people working late in the offices....... we want our ball back"
3) Talent can open the first door, the second door, the third door but only attitude can open the last door for you !!!
4) India vs Eng in Natwest Series..When number of catches dropped in bowling of Zaheer Khan..
Harsha : "Zaheer is going to write BCCI a letter that Can i find a team that can hold on to catches??"
5) It is important to surround yourself with people who are better than you.
6) Ind vs Aus in Australia...It was rain affected match and australia got a new target of 225(dont remember exactly) in 32 overs.And Gilchrist was off to a flier.He was smashing indians all over the park.And Ganguly was changing his fielders continuously as and when ball was going to boundary.Then gilchrist edged one which went to the boundary.And Harsha then said....It seems like that gaps are moving depending on where Gilchrist is hitting the ball.
Some one liners from other commentators..
1) In IPL,Rajasthan Royal's opener Michale Lumb started off with 2 consecutive sixes and then got out on third ball,the commnetator : "He came like a thunder and went like a storm".
Subscribe to:
Posts (Atom)