Saturday, 31 December 2011
Sub-interface configuration on cisco Router
Friday, 30 December 2011
Khud apne liye baith k sochein ge kisi din
Khud apne liye baith k sochein ge kisi din |
Khud
Apne Liye baith K Sochein Ge Kisi Din
Youn Hai K Thujhe Bhool K Dekhein Ge Kisi Din
Youn Hai K Thujhe Bhool K Dekhein Ge Kisi Din
Bhatake huwe Phirate hain kai lafz jo dil mein
Duniya ne diya Waqt to likhein ge kisii din
Hil jayein ge ik baar to arshoun ke Dar-o-Baam
ye Khaak nashein log jo bolein ge kisii din
Aapas ki kisi baat ka milta hi nahein Waqt
Har baat ye kehte hain k baithein ge kisi din
Aai jaan teri yaad ke be-naam parinde
shaaKhoun pe mere dard ki utarein ge kisi din
Jaati hai kisi jhil ki gehrai kahan tak
Aankhoun mein teri Doob ke dekhein ge kisi din
Khushbu se bhari shaam mein jugnu ke qalam se
ik nazm tere vaaste likhein ge kisi din
Soyein ge teri Aankh ki Khlvat mein kisi raat
saaye mein teri zulf ke jagein ge kisi din
Khushbuu ki tarah, asl-e-sabaa Khaak numa se
Galiyoun se tere shehar ki guzarein ge kisi din
Mian hai yehi ab ke kafan baandh k sar se
Us Shehar-e-Sitam gar mein jayein ge kisi din
Amal Sey zindagi bangi hai Jannat bhee jahannam bhee
Yeh Khaki apni fitrat mein.........na noori hai....na
naari hai.
*Hamey apney amaal ko bihter krna hoga, q k *AAMAAL
KA DAR-O-MADAAR NIYYATON PER HAI*, agar hamari niyet he kharab ho to duaa kya
asar rekhey gi? * Hum sab muslims ko Quraan aur Hadees ko apni zindagi me shamil
kr k he zindagi aur aakhirat ko sanwaarna chahiye. Quraan-e-paak ko samajh kr
parhna chahiye, agar is ko samajh kar na tilawat kiya jaye to hum kese jan sakty
hain k ALLAH kya hukam de raha hai apney bandon ko. Is k sath sath Hadees aur
uswah-e-Rasool (PBUH) ke perwi b zaroori hai Q k is k bina to hameyn na to
duniyan me aur na aakhirat me nijat aur kamyabi milsakti hai. Isiliye to Allamah
Iqbal Ney kya Khoob Fermaya hai:
"KI MUHAMMAD (PBUH) SE WAFA TOO NE TO HUM TEREY
HAIN
MATLAB k agar hum hukhm-e-Ilahi aur sunnat-e-Rasool(PBUH) ko
apnayen gey to ALLAH TAALA fermata hai k phir looh bhee teri hogi aur kalam bhee
tera hoga, jo chahe likh apne aamaal me. *Hum sab log itney sary firkon me
ghir chukey hain k kuch pata nhi chalta k kon sa molvi right hai aur konsa wrong
hai* Iski wajah kya hai? mere khiyal me to yhi hai k hum log study
nhi krty, agar kuch study krty han to usko samajh kar nhi parhtey k kya kaha ja
raha hai. agar hum khud AHADEES ka mutaliya(study) kryn to khud b apni
correction kr sakty hain. Quraan Majeed k bad SAHIH_MISLIM_BUKHARI SHAREEF Ki
ahadees ki kitab hai jis me her cheez biyan hai, kon sa kam RASOOL-E-KREEM
(PBUH) ne krny ka hukam diya aur kis tarah krna chahiye yeh bataya, aur kon sey
kam krny se mana farmaya. Agar kisi b problem ka solution na pata chalta ho ya
koi confussion ho molvi ki bat me to BUKHARI SHAREEF me search kro. Aur ALLAH se
hidayet ki har waqt dua krni chahiye. ALLAH fermata hai k me wahan wesa he
hukamraan ponhchata hun jesi wahan ki awaam ho, jese log wesa he unka sardar. is
se yehi result nikalta hai k sabse pehley logon ka acha ya bura hona samne ata
hai, agar AWAAM(people) achey hon to unka sardar acha aye ga, aur agar Awaan he
buri ho to un par ALLAH ne bura sardar he mussallat krna hai. >> Pehle
hamey apney aap ko perfect bana hoga phir hamey dosron tak yeh peghaam ponhchana
hai<<
**ALLAH HUM SAB K LIYE HAZRAT MUHAMMAD (PBUH) K SADKEY AASANIYAN ATTA FERMAYE**
**ALLAH HUM SAB K LIYE HAZRAT MUHAMMAD (PBUH) K SADKEY AASANIYAN ATTA FERMAYE**
By: Digital Communication
Thursday, 29 December 2011
CS604 Operating Systems assignment 3 Fall2011
Operating
Systems (CS604)
Assignment
# 3
Fall 2011
IDEA SOLUTION:
# These three
are mutexes (only 0 or 1 possible)
Semaphore
contractorReady = 0 # if 1, at
least one contractor is ready
Semaphore
ministerReady = 0
Semaphore
accessWRSeats = 1 # if 1, the # of
seats in the waiting room can be incremented or decremented
int
numberOfFreeWRSeats = N # total
number of seats in the waiting room
def
minister():
while true: # Run in an infinite loop.
wait(contractorReady) # Try to acquire a contractor - if
none is available, go to sleep.
wait(accessWRSeats) # Awake - try to get access to modify
# of available seats, otherwise sleep.
numberOfFreeWRSeats++ #
One waiting room chair becomes afree.
signal(ministerReady) # I am ready.
signal(accessWRSeats) # Don't need the lock on the chairs
anymore.
# (Enter Door 1.)
def
Contractor():
while true: # Run in an infinite loop.
wait(accessWRSeats) # Try to get access to the waiting
room chairs.if numberOfFreeWRSeats > 0: # If there are any free seats:
numberOfFreeWRSeats-- #
sit down in a chair
signal(contractorReady) #
notify the minister, who's waiting until there is a contractor
signal(accessWRSeats) #
don't need to lock the chairs anymore
wait(ministerReady) #
wait until the minister is ready
# (Finish the meeting here.)
else:
# otherwise, there are
no free seats;
signal(accessWRSeats) #
but don't forget to release the lock on the seats!
# (Leave without a meeting with
minister.)
if minister=busy
close D1;
CS605 Assignment No - 03 - Fall2011
CS605 Assignment
No. 03 - Fall2011
Question:
Let us assume that you are working as a Team
lead in a renowned multinational company. The software project has 80 planned
work tasks that are estimated to require 415 person-days to complete. At the time you have
been asked to compute the Earned Value Analysis, 8 tasks have been completed.
However, the project schedule indicates that 18 tasks should have been
completed. The following scheduling data in person-days are available:
Compute the following:
1)
SPI
2)
Schedule variance
3)
Percent scheduled
for completion
4)
Percent complete
5)
CPI
6)
Cost variance for
the project.
Wednesday, 28 December 2011
Tuesday, 27 December 2011
Monday, 26 December 2011
CS602 – Computer Graphics Assignment 3 Fall2011
|
Assignment
No. 03
Fall 2011
CS602 –
Computer Graphics
|
Total Marks: 20
Due Date:
December 28,
2011
|
Question 20
marks
In the handouts of
CS602 – Computer Graphics many examples are given in which GRAPHICS.H Header file
is used. If you compile the given code in Dev-C++ IDE / Compiler the errors
are reported because the given code is using GRAPHICS.H which is originally
provided by Borland (www.borland.com). But there are ways to compile that
code on Dev-C++. For this purpose you can consult the following tutorials:
You are required to compile the given
code after following the above tutorial and submit the following files in zip archive:
Source
Code:
#include <graphics.h>
#include <iostream>
#include <conio.h>
#include <math.h>
float round(float x){
return x+0.5;
}
class Table{
private:
int xc, yc;
int xp, yp;
int x1, x2, x3, x4;
int y1, y2, y3, y4;
int legLength;
int sfx,
sfy;
public:
Table(){
xc=320, yc=240;
xp=0; yp=0;
x1=-10, x2=10, x3=10, x4=-10;
y1=-7, y2=-7, y3=7, y4=7;
legLength=10;
sfx=1, sfy=1;
}
void translate(int tx, int ty){
xp+=tx;
yp+=ty;
}
void rotate (float angle){
int
tempx=x1;
x1=tempx*cos(angle)-y1*sin(angle);
y1=tempx*sin(angle)+y1*cos(angle);
tempx=x2;
x2=tempx*cos(angle)-y2*sin(angle);
y2=tempx*sin(angle)+y2*cos(angle);
tempx=x3;
x3=tempx*cos(angle)-y3*sin(angle);
y3=tempx*sin(angle)+y3*cos(angle);
tempx=x4;
x4=tempx*cos(angle)-y4*sin(angle);
y4=tempx*sin(angle)+y4*cos(angle);
}
void scale(int sx, int sy){
x1=x1*sx;
x2=x2*sx;
x3=x3*sx;
x4=x4*sx;
y1=y1*sy;
y2=y2*sy;
y3=y3*sy;
y4=y4*sy;
legLength=legLength*sy;
}
void draw(){
int xc=this->xc+xp;
int yc=this->yc+yp;
line (xc+x1, yc+y1, xc+x2, yc+y2);
line (xc+x2, yc+y2, xc+x3, yc+y3);
line (xc+x3, yc+y3, xc+x4, yc+y4);
line (xc+x4, yc+y4, xc+x1, yc+y1);
line (xc+x1, yc+y1, xc+x1,
yc+y1+legLength);
line (xc+x2,
yc+y2, xc+x2, yc+y2+legLength);
line (xc+x3,
yc+y3, xc+x3, yc+y3+legLength);
line (xc+x4,
yc+y4, xc+x4, yc+y4+legLength);
}};
int main(){
//clrscr();
//it is not needed in DevCPP
int gdriver
= DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "c:\\Dev-Cpp\\lib");
Table table;
table.draw();
setcolor(CYAN);
table.translate(15, 25);
table.draw();
table.translate(50, 0);
table.scale(3,2);
table.draw();
table.translate(-100, 0);
table.rotate(3.14/4);
table.draw();
getch();
closegraph();
return 0;
}
|
||
|
CS604 Operating Systems Assignment 3 Fall2011
Operating Systems
(CS604)
Assignment
# 3
Fall 2011
Total Marks: 20
Assignment
Statement
A
chief minister office is designed in such a way that there is a waiting room
adjoining the minister’s office. Waiting room has two doors D1 and D2, D1 opens
inside the minister’s room and D2 is used for entrance from out side. Waiting
room has N chairs for some contractors who have to see chief minister. If the
minister is busy, the door D1 is closed and arriving contractor sits in one of
the available chairs. If a contractor enters the waiting room and all chairs
are occupied, the contractor leaves the office without meeting. If there are no
contractors in the waiting room, the minister goes to rest (sleep) in the chair
with the door D1 open. If minister is asleep, the contractor makes the minister
awake by ringing the bell and gets meeting with him.
While
keeping in mind the given scenario, you have to write the pseudo code OR code
fragment using semaphores to define synchronization scheme for the contractor
and chief minister.
Imran Khan -PTI
BOLO Awaam.............me sun raha hun |
Who should be changed??? |
Point to Ponder..........!!
For All Pakistanies.
Sunday, 25 December 2011
MTH 301 Graded Discussion Board
MTH 301
Topic:
Discuss the difference between line, surface and volume
integrals and exemplify with their applications.
Comments:
1)
Line integral is an integral
where the function to be integrated is evaluated along a curve. The function to
be integrated may be a scalar field or a vector field. The value of the line
integral is the sum of values of the field at all points on the curve, weighted
by some scalar function on the curve. The line integral finds the work done on
an object moving through an electric or gravitational field. It is evaluated on
curve, x=(t), y=(t) and z=z(t).
Line integral of a scalar field:
Subscribe to:
Posts (Atom)