Posts

Learning : 2 Years : EXAMZ (2)

Image
About 2 years have been passed in the university and I have learned a lot in these two years. By "learned a lot" I don't mean only the academic learning but it also involves non-academic learning. When I was in my college, I read in my English book, that you had less number of classes to attend and less number of books to study in the university, but this is not the case, NOT AT ALL! This is true that courses are less in number but they are much in content... So coming back to the learning point, let's have a look at the list below: Always try to do your own work by yourself, never ask for help to other people a lot , people might help you in the beginning but when you ask them a lot then they will   be annoyed of you. So, do your work by yourself till the end point, and when you try your best, when you give your best, the best will come to you. No matter how much is the task difficult, if you are trying but are not succeeding in it, you will witness ...

Github : EXAMZ (1)

Image
You can visit some of my codes here . I will add more code in the coming days Insha'Allah. That's it for today? Yes, for today's post that's it ! EXAMS SEASON....

GDG Islamabad : DevFest GDG 2018

Image
On 17th November, 2018, there was a 4th session of GDG Islamabad naming DevFest GDG 18 , at NUST  NICE  H-12 , Islamabad Pakistan. The event commenced at 1100 hours. The whole hall was full of business owners, entrepreneurs, developers and students. A boosting music was playing in the background.  In the beginning, community co-manager of GDG Islamabad introduced GDG. He said that digital wellbeing is the main focus of Google technologies.  Saad Hamid is a manager at GDG Islamabad. Muhammad Bin Masood is its co-manager. In the session the audience were told about different technologies of Android P mobiles. Some of these technologies and applications are: Gesture Navigation (Much needed Application) Wind down Notch support Lock-down Mode Smart Notification Auto-Rotate Button Media Panel Digital wellbeing Disconnect at night Time spent on app MOTO OF DIGITAL WELLBEING: " GREAT TECHNOLOGIES SHOULD IMPROVE LIFE, NOT DISTRACT FROM IT " ...

Pintos : Series : Part3 : Project 1 : Alarm Clock

Image
The PintOS project has 27 test cases that we need to pass. In the first project we are just going for the five test cases related to alarm clock that are as under: alarm_multiple alarm_single alarm_simultaneous alarm_negative alarm_zero But before jumping into the code, let's first understand the basic structure of PintOS and how it runs. Consider the following diagram: Here QEMU is an emulator on which pintOS runs. Test cases are the processes that we run on the PintOS (Operating System). So we only need to modify the PintOS code, we are not allowed to make any change to the test cases code as this would be a cheating. When you open up the PintOS directory, in tests/threads/tests.c all the test cases are declared. And in the tests/threads/ directory you can observe files with the extension " .ck " and " .c ". So the " test_Name.c " files are the files in which test cases are defined, while " test_Name.ck " file...

Commitments...

Image
First I would like to thank you all for respecting that I didn't post on Thursday, as I said to do so... But due to a lot of tasks I couldn't post on Thursday... You may have heard of :" Nothing's happened without a reason ". So by not posting, I also learned something that I want to share with you.. Learning: We all have different priorities, and we all try to cope with them. But most of the time we couldn't. The reason that I found is, we set our priorities wrongly. To do, what you have committed, is a foremost task but it demands a lot of will power and strong believe. You must divide your day or time into small chunks so that you can get your tasks done. Just concentrate on what you are assigned to do (by yourself or by someone else). Have peace and calmness in your mind. Stay consistent. Have faith and believe. Do not ask for help a lot . (to other people) Try to give your best. Don't waste your energy in any manner, but use i...

PintOS : Series : Part 2

Image
I hope you have installed PintOS . Now it's time to move forward... In the first assignment we need to check and pass first six test cases of alarm. These are as under: alarm-single alarm-multiple alarm-simultaneous alarm-priority alarm-negative alarm-zero You will find them in " /tests/threads " directory. You need to make changes to " timer_sleep() " function in " timer.c " file under " devices " directory, to pass these tests. But first you should start learning from : here also I have a paper :  here After reading and understanding the reading material, you will be able to start coding! (exceptional cases are always there...) I also need to read it first, so I will let you know more later (after understanding it fully..) So, let's jump right into it (I mean let's start reading!)

Pintos : Series : Part 1 : Installation

Image
PintOS is an Operating system, but this is not a complete OS. There are many kernel level functions implemented but we need to modify it to implement it correctly. So, if you are taking OS course or interested in Operating Systems then you can follow my PintOS Series. As installation of PintOS is the most important and tedious task, so we need to do it first! Actually I have learnt about the installation steps from various sites, I will share their links side by side. What I grasped from there, I will compose it into this post. I know you might be thinking if the installation steps are already available on-line, then why am I writing them for you? The reason for this is that, when I installed PintOS, I found a lot of problems initially but then it worked. So, what I understood from my experience and from the sites, I will share that. I believe that if learning is done through mutual cooperation,  then this will benefit everyone . So, let's learn together.... First Mist...

News Website Layout

Image
I had a web Engineering lab, in which I need to make a website layout as that of BBC News . So, I made a Banana News Network website layout. Before going towards the code, I want to tell you that I mostly did the work using division tag <div></div>.  The same work can be done using tables, but div provides you more flexibility and responsiveness. So, I used both the div tags and tables. Now, below is the code of that website layout. I am sharing it because the lab has been marked. CODE: <!DOCTYPE html> <html> <head><title> bbc </title> <link rel= "stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" > <style> @media screen and ( min-width : 480px ) { li { display : block ; text-decoration : none ; text-align : left ; color : red ; padding : inherit ; font-size : 17px ; margin : auto ; bor...

Let's write a Story..

Image
HTML provides us the opportunity to write stories by using beautiful background and themes. Let us write a story using HTML (do not ignore CSS) (NOTE: I took the story from here ) HTML Code with Internal CSS: (The code within <style></style> tag is CSS code. This is used for styling.) <!DOCTYPE html> <html> <head><title></title></head> <style> body { background-image : url(https://ubisafe.org/images/leaf-transparent-gif-3.gif) ; } header { background-image : url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTtDfPZ1vWpRDFkDl8dZ7h1IYsNolC3Mqos_7DitiaztuzI-8yi0w) ; width : 100 %; /*background-repeat: no-repeat;*/ text-align : center ; height : 100px ; padding-top : 0.1px ; padding-bottom : 17px ; } #header { } #container { background : white ; width : 50 %; padding : 20px ; text-align : justify ; margin-left : 25 %; border : 10px solid orange ; box-shadow: -...

Guess Number GAME : HTML

Image
Python is pretty good language but HTML is pretty web language... so, in first semester I wrote a python code for guess number game, but, now we will learn how to make a guess number game using HTML... so below is the code for it, I will try to upload all my codes on github... and will share a link with you. But for now consider the below mentioned code, in HTML and styling using internal CSS. Code: <!DOCTYPE html> <html> <head><title></title></head> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ></script> <style> body { background : url("https://cdn.pixabay.com/photo/2015/01/08/15/54/lines-593191_960_720.jpg") ; } h1 { margin-top : 10px ; font-family : cursive ; color : black ; background : white ; } table { padding-top : 20px ; border : 10px solid purple ; padding-left : 60px ; padding-bottom : 20px ; } td { width : 20 %; heig...

webpage image

Image

Form : Coming Fast..

Image
Form is one of the significant method for data collection. If you want to make forms for any society or for some other work, then you are at right place.  In this blog post we will learn to make a simple but useful form.  First of all: Open any text editor like notepad, then save the file as "form.html"..... Now start coding.. Write the below mentioned code into the form.html file using a test editor. Code: (HTML) <!DOCTYPE html> <html> <head> <title> Form </title> <link rel= "stylesheet" href= "style.css" type= "text/css" > </head> <body> <div id= "container" > <h1> Fill In The Form.. </h1> <div id= "formBody" > <form> Name: &nbsp; <input type= "text" placeholder= "enter your name.." ><br><br> Class: &nbsp;&nbsp; <input type= "text" p...