Tuesday, 15 November 2016

Pakistan First Film Festival in New York

Known as the city of dreams, New York is all set to host its first ever Pakistan Film Festival next month between 3rd to 4th December 2016. The show will be 'first' of its sort that will take place in the busiest city of the world and in that festival, all top films of Pakistan will be showcased. The venue for the Pakistan Film Festival will be the prestigious Asia Society, New York. During two days, audiences will be shown some of the finest films coming out of Pakistan at a time when cinema is undergoing an extraordinary revival in the country. The films include two brand new ones, which will premiere in New York, Dobara Phir Say and Lahore Say Agay. Others will include Actor in law, Pakistan’s Oscar nomination, Mahe Meer, Oscar award winner Sharmeen Obaid’s animated film, 3 Bahadur, Dukhtar, Dance Kahani and Ho Mann Jahan. If you're living in NYC or have friends/relatives there, don't forget to keep them in this loop. They can watch these films too without spending too much!

Next Daughter in Law of The Royal Family of Britain

All happy and excited to welcome her 'devraani' to be. Kate Middleton is reportedly very proud of Prince Harry for dating Meghan Markle. She believes that actress will be around for a long time since she only wants the best for her 32-year-old brother-in-law. According to insiders, she has stated that she only wants the best for the flame-haired prince and thinks that seems like Meghan Markle fits the bill. And it is believed Catherine (also known as Kate Middleton), who married Prince William in 2011 and has two children with him (three-year-old son Prince George and 18-month-old daughter Princess Charlotte) remembers how it feels to be in the spotlight. And despite all rumors about her "silent war" with Meghan that are circling online, she wants to share her experience and tips to help the actress cope being in the limelight. Kate remembers what it was like to date a prince and be the most gossiped about girl in the UK. In short, Meghan will be trained by Kate in future about how to 'face the limelight' of getting married in The Royal Family of Britain.


Saturday, 5 November 2016

The XML schema document

Schemas are more powerful when validating an XML document because of their ability to clarify data types stored within the XML document. Because schemas can more clearly define the types of data that are to be contained in an XML document, they allow for a closer check on the accuracy of XML documents. Following example  illustrates an XML schema for a sample purchase order.

<?xml version="1.0" encoding="UTF-8"?>
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:PO="http://www.plastics_supply.com/PurchaseOrder" targetNamespace="http://www.plastics_supply.com/PurchaseOrder">
<!-- Purchase Order schema -->
 <xsd:element name="PurchaseOrder" type="PO:PurchaseOrderType"/>
<xsd:complexType name="PurchaseOrderType"> 
<xsd:all> <xsd:element name="ShippingInformation" type="PO:Customer" minOccurs="1" maxOccurs="1"/>
<xsd:element name="BillingInformation" type="PO:Customer" minOccurs="1" maxOccurs="1"/> <xsd:element name="Order" type="PO:OrderType" minOccurs="1" maxOccurs="1"/> </xsd:all> </xsd:complexType>

<xsd:complexType name="Customer">
<xsd:sequence> <xsd:element name="Name" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"/> </xsd:simpleType> </xsd:element> <xsd:element name="Address" type="PO:AddressType" minOccurs= "1" maxOccurs="1"/> <xsd:choice> <xsd:element name="BillingDate" type="xsd:date"/>
<xsd:element name="ShippingDate" type="xsd:date"/>
 </xsd:choice>
 </xsd:sequence>
 </xsd:complexType>
<xsd:complexType name="AddressType"> 
<xsd:sequence>
 <xsd:element name="Street" type="xsd:string"/>
 <xsd:element name="City" type="xsd:string"/> 
<xsd:element name="State" type="xsd:string"/> 
<xsd:element name="PostalCode" type="xsd:decimal"/> <xsd:sequence> </xsd:complexType>
<xsd:complexType name="OrderType">
 <xsd:sequence> <xsd:element name="Product" type="PO:ProductType" minOccurs= "1" maxOccurs="unbounded"/>
 </xsd:sequence> 
<xsd:attribute name="Total"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:fractionDigits value="2"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> <xsd:attribute name="ItemsSold" type="xsd:positiveInteger"/> </xsd:complexType>
<xsd:complexType name="ProductType">
 <xsd:attribute name="Name" type="xsd:string"/> 
<xsd:attribute name="Price"> <xsd:simpleType>
 <xsd:restriction base="xsd:decimal"> 
<xsd:fractionDigits value="2"/> </xsd:restriction> 
</xsd:simpleType> </xsd:attribute> 
<xsd:attribute name="Quantity" type="xsd:positiveInteger"/>
 </xsd:complexType>

It depicts a purchase order for various items. This document allows a customer to receive the shipment of the goods at the customer’s manufacturing plant and billing information to be sent to the customer’s headquarters. This document also contains specific information about the products ordered, such as how much each product cost, how many were ordered, and so on. The root element of an XML schema document, such as the purchase order schema, is always the schema element. Nested within the schema element are element and type declarations. For instance, the purchase order schema consists of a schema element and a variety of sub-elements, most notably element complexType and simpleType that determine the appearance of elements and their content in instance documents. These components are explained in the following sections. The schema element assigns the XML schema namespace ("http://www.w3.org/ 2001/XMLSchema") as the default namespace. This schema is the standard schema namespace defined by the XML schema specification and all XML schema elements must belong to this namespace. The schema element also defines the targetNamespace attribute, which declares the XML namespace of all new types explicitly created within this schema. The schema element is shown to assign the prefix PO to the targetNamespace attribute. By assigning a target namespace for a schema, we indicate that an XML document whose elements are declared as belonging to the schema’s namespace should be validated against the XML schema. Therefore, the PO targetNamespace can be used within document instances so that they can conform to the purchase order schema. As the purpose of a schema is to define a class of XML documents, the term instance document is often used to describe an XML document that conforms to a particular schema.

XML Document Structure, Introduction to Web Services

XML(Extensible Markup Language) 
XML is an extensible markup language used for the description and delivery of marked-up electronic text over the Web. Two important characteristics of XML distinguish it from other markup languages: its document type concept and its portability. An important aspect of XML is its notion of a document type. XML documents are regarded as having types. XML’s constituent parts and their structure formally define the type of a document. Another basic design feature of XML is to ensure that documents are portable between different computing environments. All XML documents, whatever language or writing system they employ, use the same underlying character encoding scheme. This encoding is defined by the international standard Unicode, which is a standard encoding system that supports characters of diverse natural languages. An XML document is composed of named containers and their contained data values. Typically, these containers are represented as declarations, elements, and attributes. A declaration declares the version of XML used to define the document. The technical term used in XML for a textual unit, viewed as a structural component, is element. Element containers may be defined to hold data, other elements, both data and other elements, or nothing at all. An XML document is also known as an instance or XML document instance. This signifies the fact that an XML document instance represents one possible set of data for a particular markup language. The example in Listing 3.1 typifies an XML document instance. This example shows billing information associated with a purchase order issued by plastics manufacturer. We assume that this company has built a business based on providing “specialty” and custom-fabricated plastics components on a spot and contract basis.

Example of an XML document instance
<?xml version="1.0" encoding="UTF-8"?>
 <BillingInformation> 
<Name> Right Plastic Products </Name> 
<BillingDate> 2002-09-15 </BillingDate> 
<Address> 
<Street> 158 Edward st. </Street> 
<City> Brisbane </City>
 <State> QLD </State>
 <PostalCode> 4000 </PostalCode>
 </Address>
 </BillingInformation>


Muhabat Kar Nahi Sakta

Irada Roz Karta Hon,
Magr Kuch Kar Nahi Sakta
Mai Peshawar Frebii Hon, Muhabat Kar Nahi Sakta.....

Bury Ho Yah Ke Achy Ho
Mjhy Is Sy Nahi Matlab
Mjhy Matlab Sy Matlab Hai, Mai Tum Sy Lar nahi Sakta......

Yahan Har Dosra Insan
Khuda Khud Ko Smjhta Hai,
Khuda Bhi Woh Jo apni Jholi Bhar Nahi Sakta....

Najany Aadmi Q Aadmi Sy Khof Khata  Hai
Jo Apny Rab Sy Darta Hai
Kisi Sy Dar Nahi Sakta....

Mai Us Ghar Ki Muqeemi Hon
Jisy Ooqaar Kehty Hain,
Mai Apni Had Mai Rehta Hon
So Aghy Barh Nahi Sakta....

Abhi Kuch Sahir Rehty Hain
Magar LIkhny Nahi Hargiz,
Kisi KI laaj Bhi Rakhni Hai, So Zaahir Kar Nahi Sakta.....




Friday, 4 November 2016

Smog in Pakistan


What's SMOG? It's not fog.
The current smog with toxic air is very unusual in Punjab with main concentration in Faisalabad & Lahore. This smog contains toxic air, compressed of ground ozone also called bad-ozone. Ground Ozone is not emitted directly into the air but is created by chemical reactions between oxides of nitrogen (NOx) and volatile organic compounds (VOC) in the presence of sunlight.
Lahore falls among the worst smog affected cities in the world. After effecting Lahore now smog hits Islamabad. 
Main Sources of Smog
NASA Reveals the real culprit behind the smog in Pakistan is India
According to New York Times, the farmers in those areas burn the left over straw instead of getting rid of it through other means. The left over straw is as much as 32 million tonnes, which would explain the cause of the smog. The farmers say that they cannot afford to buy expensive equipment to clear the land so they resort to burning it instead."
Emissions from industries & motor vehicle exhaust are the main sources of NOx and VOC. Breathing ground Ozone can trigger a variety of health problems, particularly for children the people of all ages who have lungs diseases such as asthma. Due to stable atmosphere (persistent dry weather) during day dry winter months, Ground Level Ozone is very common in New Delhi (INDIA) and Shanghai (China) but first time observed in Lahore.
Wear Mask & glasses while traveling. It's better to avoid traveling.



Surah Duha & struggling with low mood & depression

Most of us know this Surah by heart. It was revealed to the Prophet (peace be upon him) at a time when he had not received any revelation for six months. He was in a very disturbed state of mind, feeling negative and depressed and believing that Allah was displeased with him, had forgotten him...
Don’t we have similar feelings in our lives? Times when our level of imaan is low, our khushoo in salah wavers and we feel a drop in our connection with Allah?* We feel like our duas are not being answered, our salah is not having a positive impact on our hearts, and worst of all the feeling that we’re horrible human beings, that Allah doesn’t love us or doesn’t care about us anymore.
Surah Ad-Duha was revealed to the Prophet (sallalahu aleihi wa sallam) to relieve him of these negative feelings and to give him hope, positivity, and the assurance that Allah is with him no matter what.
So what does this surah say?
Wad duhaa— By the morning brightness
This is the first thing you need to hear when you’re depressed: Wake up, look at the sunshine! Everything in life is not doom and gloom– you just have to look up!
Wal laili iza sajaa— And [by] the night when it covers with darkness,
A reminder to us that the night is meant to cover and give us comfort and rest. Generally when we’re depressed, we tend to get into a very bad sleep pattern by staying up at night and sleeping all day, thereby worsening our state of mind. This aayah reminds us to use the night as a comfort to ease our distress.
Ma wad da’aka rabbuka wa ma qalaa -Your Lord has not taken leave of you, [O Muhammad], nor has He detested [you].
This is a very powerful verse from Allah telling us that He doesn’t hate us and hasn’t forgotten us– reminding the depressed person that He is always by his or her side!
Walal-aakhiratu khairul laka minal-oola— And the Hereafter is better for you than the first [life].
Many times when we’re depressed we think: Is this all my life is going to be? Is it never going to get better? This aayah serves as a perfect answer to those questions, reminding us that life in this world is temporary and that Aakhira is certainly a better, more permanent place for us than this world could ever be. This makes us look forward to attaining our place in Jannah and helps us look at any problems in our lives as temporary tests of our faith from Allah.
Wa la sawfa y’uteeka rabbuka fatarda— And your Lord is going to give you, and you will be satisfied. A promise from Allah that very soon he will give us a massive reward (Jannah) and we will be happy! Subhanallah! Isn’t this the best thing to hear when you’re depressed and fed up with this worldly life and the problems you’re facing?
Alam ya jidka yateeman fa aawaa – Did He not find you an orphan and give [you] refuge?
Now many of us may think: how would this aayah about orphans relate to the majority of us? Think about it– weren’t there many times in your life when you were sick or lonely and felt like you had nobody who cared about you? Who was the only one by your side at that time? Allah! It was He who took care of you and guided you out of that stage in life.
Wa wa jadaka daal lan fahada— And He found you lost and guided [you].
How many of us, despite being born Muslims or even reverts after some turbulent events, have found ourselves misguided and straying away from Islam in the past? It was Allah who gave us that hidaya and brought us back to the straight path and to Him and made us practicing Muslims. Alhamdulillah!
Wa wa jadaka ‘aa-ilan fa aghnaa— And He found you poor and made [you] self-sufficient.
Many of us have probably gone through many periods in our lives when we have been short of money and wealth. Now when we look back we realize that it was only Allah who gave us that rizq in some form and got us through those tough financial times. When a person is depressed, giving him or her examples of how Allah has helped them in the past will strengthen their conviction and belief in the promises Allah makes in this surah for their future.
Fa am mal yateema fala taqhar — So as for the orphan, do not oppress [him].
Depressed people are mostly consumed with their situation and feel that nobody could possibly be in a worse situation. This aayah reminds us to look at people who are in far worse situations than ourselves when we’re feeling hopeless and depressed— Look at the orphans, who have no family or loved ones and nobody to care for them. We have families and parents who love us, a roof over our heads and food on the table and we still think we’re in a bad situation? Subhanallah!
Wa am mas saa-ila fala tanhar— And as for the petitioner, do not repel [him].
Another example is of the beggar – to once again remind us of the many material blessings that Allah has given us that we take for granted – food, clothing and shelter. How many of us have ever gone to sleep hungry? How many of us don’t have clothes to wear? Or don’t have a home to go to? These examples of the orphan and the beggar are ones we should constantly remind ourselves of to be thankful for the numerous blessings Allah has given us, get over our depression and feel connected to Allah again, out of gratitude.
Wa amma bi ne’mati rabbika fahad dith – But as for the favor of your Lord, report [it].
This final aayah is about maintaining that renewed faith and bond with Allah – by pondering, glorifying and talking about the blessings of Allah! Either in terms of halaqas, discussions with family and friends or even da’wah! Dhikr, reading quran and listening to lectures are also great ways to keep the remembrance of Allah close to your heart!
So the next time you feel disconnected, disheartened or depressed with your level of Imaan and your connection with Allah – read Surah Ad Duha and ponder over its meanings – in-sha'-Allah it will restore your faith and increase your belief in the greatness of Allah.