Saturday, July 20, 2019

My Lover

بن تیرے با خدا نہیں آتا ..!!!
لفظ جس کو قرار کہتے ہیں۔۔۔!!!🔥 





تم کیا جانو اللہ سے میرا رشتہ کیا ہے...؟

میں جیسا بھی ہوں وہ میرا اور میں اسی کا ہوں.

..💖



روح ترپ سی گیا ہے
دل مچلنے لگا ہے۔
مدینے کا شوق جب سے لگا ہے۔
کاش میں چڑیا ہوتی 
دل کرتا ہے میں اڑ کر مدینے چلی جا و 

اے رسولِ امیں، خاتم المرسلیں تجھ سا کوئی نہیں
ہے عقیدہ یہ اپنا بصدق و یقیں تجھ سا کوئی نہیں



ندامت کے چراغوں سےبدل جاتی ہیں تقدیریں
اندھیری رات کے آنسو
خدا سے بات کرتے ہیں




ویسے تو میمحبت جھوٹ نہیں صاحب
معراج کی رات گواہ ہے💞ں امن کا قائل ہوں.
وقت گزرنےپر طوفان بن جاوں گا.
انگلی اگر اٹھی میرے نبی کریم پر.
میں قلم چھوڑ کر تلوار بن جاوں گا


ویسے تو میں امن کا قائل ہوں.
وقت گزرنےپر طوفان بن جاوں گا.
انگلی اگر اٹھی میرے نبی کریم پر.
میں قلم چھوڑ کر تلوار بن جاوں گا

Assignment No 3 cs301 solution

  • HTML
  •    Q:1


    Character Frequency Character Frequency Character Frequency  
    NL                           1              R                  1                  T               2  
    SP                            3                S                  1                      O               3  
    L                            2                I                  2                  H               1  
    E                           4               N                   3                  G               1  
    A                             2               U                    1                  Y               1  
    D                              2               C                    2

    Q:2

    Frequancy Wise node 

    4 3 3 3 2 2 2

    2 22 2 1 1 1 1

    1 1 1

                                                                        Tree:

                                                                  32


                                                        22                       84
                                                    12      10
                                                              4      6
                                                 10
                                     6 4 4         4 2 2 2          4       

    CS403 assignment no 3 Complete Solution | How to create database and tables

  • HTML



  • CS403 ASSIGNMENT NO 3 SOLUTION SPRING 2019
    you are required to enter your id in database name if you didn’t enter your id your marks will be zero. Just replace the Enteryouridhere with your Virtual university id i.e (mc111111111)
    Q1:

    Query for CreatingDatebase:

    CREATE DATABASE Enteryouridhere

    Screenshot of Query Execution:



    Q2:

    Query  forCreatRoleTable;


    CREATE TABLE Role ( Role_idvarchar(255) NOT NULL PRIMARY KEY, Name varchar(255))

    Screenshot of Query Execution:


    Query  toCreatUserTable;

    CREATE TABLE Users ( User_idvarchar(255) NOT NULL PRIMARY KEY, Name varchar(255),Role_idvarchar(255) FOREIGN KEY REFERENCES Role(Role_ID))

    Screenshot of Query Execution:




    Query  toCreatTask Table;
    CREATE TABLE Task ( Task_idvarchar(255) NOT NULL PRIMARY KEY,
    titlevarchar(255),
    creation_date date,
    dead_line date,
    assign_tovarchar(255),
    )


    Screenshot of Query Execution:


    Query  toCreatDiscussionThread Table;

    CREATE TABLE DiscussionThread(Thread_idvarchar(255) NOT NULL PRIMARY KEY,
    Task_idvarchar(255) FOREIGN KEY REFERENCES Task(Task_id),
    titlevarchar(255)
    )
    Screenshot of Query Execution:



    Query  toCreat Message Table;

    CREATE TABLE Messages(Msg_idvarchar(255) NOT NULL PRIMARY KEY,
    Tread_idvarchar(255) FOREIGN KEY REFERENCES DiscussionThread(Thread_id),
    message_body text,
    sender_idvarchar(255)
    )
    Screenshot of Query Execution:






    Q3: After creation of tables in database you are required to add the following records into the Taskand DiscussionThreadtables by writing the appropriate SQL Query.

    Query  for Adding Data into Task Table;

    INSERT INTO Task (Task_id, title,creation_date,dead_line,assign_to)
    VALUES ('T0001','Computer Science','2019/01/01','2019/01/15','1');

    INSERT INTO Task (Task_id, title,creation_date,dead_line,assign_to)
    VALUES ('T0002','Management Science','2019/02/02','2019/02/16','2');

    INSERT INTO Task (Task_id, title,creation_date,dead_line,assign_to)
    VALUES ('T0003','Mass Communication','2019/03/03','2019/03/17','3');

    INSERT INTO Task (Task_id, title,creation_date,dead_line,assign_to)
    VALUES ('T0004','Bio Informatics','2019/04/04','2019/04/20','4');

    Screenshot of Query Execution:



    Query for Add Data into DisscussionThread Table:

    INSERT INTO DiscussionThread (Thread_id,Task_id,title)
    VALUES ('Th001','T0001','BSCS');

    INSERT INTO DiscussionThread (Thread_id,Task_id,title)
    VALUES ('Th002','T0002','BBA');

    INSERT INTO DiscussionThread (Thread_id,Task_id,title)
    VALUES ('Th003','T0003','MSC zoology');






    Screenshot of Query Execution:



    Q4: query for retrieving a record from the Task table whoseTask_id is T0003.

    Query to Select Data From Task Table:

    SELECT * FROM Task WHERE Task_id='T0003'

    Screenshot of Query Execution:


    Q5: Alter the table of the DiscussionThread and include the “Status” column in the DiscussionThread table.

    Query  to Alter DisscussionThread Table;

    ALTER TABLE DiscussionThread
    ADD Status varchar(100);
    Screenshot of Query Execution:

    CS304 Assignment no 3 Solution Spring 2019

  • HTML
  • CS402 (Theory of Automata) Assignment No. 3 Solution Spring 2019

  • HTML

  • Please Discuss here about this assignment.Thanks
    Our main purpose here discussion not just Solution
    We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>
    Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.


    Share below link with friends for solution & Discussion. A Single link for help in your education.

    Full Solution CS411 Assignment 3 Spring 2019 100% Correct with Source Co...

  • HTML

  • Visual Programing (CS411)
    Assignment#03Spring 2019(GRADED)
    Total marks = 20
                                                                                           Deadline Date = Wednesday, July 24, 2019
    Please read all the instructions carefully before attempting the assignment.
    You are required to create a WPFC# applicationusing Visual Studio.
    Problem Statement:
    First Design interface in WPF as given in the gif file, the application will let the user browse an image and after the image shows up user can zoom in and zoom out the picture in a separate dock panel with seek bar mouse movement.
    GUI:
    Layouts:
    Parent Layoutis DockPanel , inside DockPanel there are 2image Views with one image of original and other zoomed imageand a Stackpanel which is docked at the bottom.
    1 Button and seek bar is inside StackPanel
    Image View: Image View will be used to set image recourse that will be browsed with button.
    Browse button will be used to browse and JPG Image file and set that image to Image View.
    Seek Bar(+ (Zoom in),- (Zoom out)) +will be used to zoom in the opened picture- will be used to zoom out the picture. When seek bar value reached at 50% it will change its back ground color of seek bar from green to blue.
    Your ID: Instead of “mainWindow” there should be your own VU id i.e. bc123456789
    Output.gifhas been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.
    Submission details
    Following Files Must be submitted in a single zip or rar file.
    ·         .CS code file
    ·         .XAML File (Front End file)
    ·         A .gif file which shows working of your Application(For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
    You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc or txt file you will be awarded 0 marks. Make sure to write your own VU ID in the assignment file(s) otherwise assignment will not be accepted.
    If you do not submit any of the above mentioned file 25% marks per file will be deducted.

    Friday, July 19, 2019

    CS101




    CS201

    design

    <html>
    <head>
    <style>
    ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background-color: #333;
    }

    li {
      float: left;
    }

    li a, .dropbtn {
      display: inline-block;
      color: white;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
    }

    li a:hover, .dropdown:hover .dropbtn {
      background-color: red;
    }

    li.dropdown {
      display: inline-block;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
    }

    .dropdown-content a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
      text-align: left;
    }

    .dropdown-content a:hover {background-color: #f1f1f1;}

    .dropdown:hover .dropdown-content {
      display: block;
    }
    </style>
    </head>
    <body>
    <li><a href="dropbtn" href="https://vucs01.blogspot.com/2019/07/html.html">HTML</a></li>
    <ul>
    <li><a href="https://www.blogger.com/blogger.g?blogID=5121907092947578316#news">CSS</a></li>
    <li><a href="https://vucs01.blogspot.com/2019/07/java.html">JAVA</a></li>
    <li><a href="https://vucs01.blogspot.com/2019/07/php.html">PHP</a></li>
    <li><a href="https://vucs01.blogspot.com/2019/07/php-and-mysqli-database.html">PHP and MYSQL</a></li>
    <li><a href="hhttps://vucs01.blogspot.com/2019/07/c-tutorial.html">C++</a></li>

    <li class="dropdown">
        <a class="href="https://vucs01.blogspot.com/2019/07/vusolution.html">VU Solution</a>
        <div class="dropdown-content">
          <a href="https://vucs01.blogspot.com/2019/07/full-solution-cs411-assignment-3-spring.html">

    Solution CS411 Assignment 3

    </a>
          <a href="https://vucs01.blogspot.com/2019/07/cs402-theory-of-automata-assignment-no.html">

    CS402 Assignment Solution

    </a>
    <a href="https://vucs01.blogspot.com/2019/07/cs304-assignment-no-3-solution-spring.html">

    CS304 Assignment no 3 Solution 

    </a>
    <a href="https://vucs01.blogspot.com/2019/07/cs403-assignment-no-3-complete-solution.html">

    CS403 assignment no 3 Complete Solution 

    </a>
       <a href="https://vucs01.blogspot.com/2019/07/assignment-no-3-cs301-solution.html">

    Assignment No 3 cs301 solution

    </a>
    <a href="https://vucs01.blogspot.com/2019/07/cs401-assignment-no-3-complete-solution.html">

    CS401 assignment no 3 Complete Solution

    </a>
    <a href="https://vucs01.blogspot.com/2019/06/general-knowledge.html">

    General Knowledge

    <a/>
        </div>
    </li>
    </ul>
    </body>
    </html>

    VUSOLUTION




    Solved Pass Paper

    CS101 CS201 



    Assignment Solution

    CS101 CS201 




    CS201 Viva



    PHP

    https://vucs01.blogspot.com/2019/07/java.html

    JAVA

    JAVA

    HTML5 Geolocation


    HTML5 Geolocation


    The HTML Geolocation API is used to get the geographical position 
    of a user.Since this can compromise privacy, the position is not a
    vailable unless the user approves it.

    Using HTML Geolocation

    The getCurrentPosition() method is used to return the user's position.
    The example below returns the latitude and longitude of the user's position:

    Example

    <!DOCTYPE html>
    <html>
    <body>

    <p>Click the button to get your coordinates.</p>

    <button onclick="getLocation()">Try It</button>

    <p id="demo"></p>

    <script>
    var x = document.getElementById("demo");

    function getLocation() {
      if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition);
      } else { 
        x.innerHTML = "Geolocation is not supported by this browser.";
      }
    }

    function showPosition(position) {
      x.innerHTML = "Latitude: " + position.coords.latitude + 
      "<br>Longitude: " + position.coords.longitude;
    }
    </script>

    </body>
    </html>



    OUTPUT


    Click the button to get your coordinates.


    Handling Errors and Rejections

    The second parameter of the getCurrentPosition() method is used to handle errors. It specifies a function to run if it fails to get the user's location:

    Example

    <!DOCTYPE html>
    <html>
    <body>

    <p>Click the button to get your coordinates.</p>

    <button onclick="getLocation()">Try It</button>

    <p id="demo"></p>

    <script>
    var x = document.getElementById("demo");

    function getLocation() {
      if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition, showError);
      } else { 
        x.innerHTML = "Geolocation is not supported by this browser.";
      }
    }

    function showPosition(position) {
      x.innerHTML = "Latitude: " + position.coords.latitude + 
      "<br>Longitude: " + position.coords.longitude;
    }

    function showError(error) {
      switch(error.code) {
        case error.PERMISSION_DENIED:
          x.innerHTML = "User denied the request for Geolocation."
          break;
        case error.POSITION_UNAVAILABLE:
          x.innerHTML = "Location information is unavailable."
          break;
        case error.TIMEOUT:
          x.innerHTML = "The request to get user location timed out."
          break;
        case error.UNKNOWN_ERROR:
          x.innerHTML = "An unknown error occurred."
          break;
      }
    }
    </script>

    </body>
    </html>

    OUTPUT


    Click the button to get your coordinates.



    Location-specific Information

    This page has demonstrated how to show a user's position on a map.
    Geolocation is also very useful for location-specific information, like:
    • Up-to-date local information
    • Showing Points-of-interest near the user
    • Turn-by-turn navigation (GPS)

    The getCurrentPosition() Method - Return Data

    The getCurrentPosition() method returns an object on success. The latitude, longitude and accuracy properties are always returned. The other properties are returned if available:
    PropertyReturns
    coords.latitudeThe latitude as a decimal number (always returned)
    coords.longitudeThe longitude as a decimal number (always returned)
    coords.accuracyThe accuracy of position (always returned)
    coords.altitudeThe altitude in meters above the mean sea level (returned if available)
    coords.altitudeAccuracyThe altitude accuracy of position (returned if available)
    coords.headingThe heading as degrees clockwise from North (returned if available)
    coords.speedThe speed in meters per second (returned if available)
    timestampThe date/time of the response (returned if available)

    Geolocation Object - Other interesting Methods

    The Geolocation object also has other interesting methods:
    • watchPosition() - Returns the current position of the user and continues to return updated position as the user moves (like the GPS in a car).
    • clearWatch() - Stops the watchPosition() method.
    The example below shows the watchPosition() method. You need an accurate GPS device to test this (like smartphone):

    Example

    <!DOCTYPE html>
    <html>
    <body>

    <p>Click the button to get your coordinates.</p>

    <button onclick="getLocation()">Try It</button>

    <p id="demo"></p>

    <script>
    var x = document.getElementById("demo");

    function getLocation() {
      if (navigator.geolocation) {
        navigator.geolocation.watchPosition(showPosition);
      } else { 
        x.innerHTML = "Geolocation is not supported by this browser.";
      }
    }
        
    function showPosition(position) {
        x.innerHTML="Latitude: " + position.coords.latitude + 
        "<br>Longitude: " + position.coords.longitude;
    }
    </script>

    </body>
    </html>


    OUTPUT


    Click the button to get your coordinates.