Wednesday 20 August 2014

Remove contact unfriend from Linkedin

Today alot of social media and networks sites are growing up in the world.

Like

gmail.com

facebook.com

yahoo.com

tagged.com

linkedin.com

and others

the people want to someone to remove from their contact list or want to someone unfriend .

in this situation the procedure of linkedin is different from the other social sites.
In others social site we go to the required person profile and from ones profile we can make that person unfriend or remove from contact.

So these are steps through which can remove or unfriend any of our friend list.

Step 1: Sign In in to your linkedin account through the given link . Linkedin

Step 2: click on the Connections as in the given picture.




Step 3: In the below page you will see the all your friend list and contacts

Step 4: Select the friend or contact that you want to delete or remove from the contact list.

Step 5: When you will hover mouse on the contact person name you will show the options in below line.  Click on the More button below that contact name line as shown in the picture.






Step 6: Then click on the Remove from Contacts.

After that you will see that person name will not be in your friend list.

If thing needs to please let me know.

Stay blessed!!!








Friday 8 August 2014

Beautiful Song Pashto

Pashto

 
A beautiful and awsome voice 
 A big tallented Girl
Listen 

 

Saturday 19 July 2014

Pak Iran agree to continue gas pipeline


 TEHRAN: Prime Minister Muhammad Nawaz Sharif and President of Iran Hassan Rouhani on Sunday agreed to continue with the Iran-Pakistan gas pipeline project, as it was beneficial for the people of both the countries.



Prime Minister Nawaz Sharif informed the Iranian president that he was there with his finance, petroleum and interior team to resolve all matters which were a hindrance in the project.Both leaders reiterated their commitment to enhance bilateral trade during the meeting held at Saadabad Palace.

Nawaz said there was a lot of scope for increasing the trade volume and they wanted to enhance it to new levels of $5 billion. He said Pakistan-Iran relations were bound by historical and religious linkages.

“I am here to open a new chapter in the Pakistan-Iran relationship,” he said, adding, “As prime minister, I visited Iran first in 1999 and have always found the Iranians more affectionate on every visit.”

The prime minister told the Iranian president that some miscreants were trying to sabotage the brotherly relations between the two countries and they would be dealt with sternly.Premier Nawaz said: “We want security for development and development for security”.

President Rouhani also affirmed his government’s support adding that peace in the region was their common goal. He said they would support Pakistan to develop and become more secure. Both the leaders also discussed border security matters between the two countries.

They agreed that better border management and improved security measures would result in increased bilateral trade and an enhanced relationship and cooperation between the two countries.

Prime Minister Nawaz Sharif extended invitation to President Rouhani to visit Pakistan which was accepted by the President.Later, the Iranian president hosted a luncheon in honour of the prime minister and the visiting delegation.

Earlier upon arrival, the prime minister was given a warm welcome at Mehrabad International Airport. The prime minister was received by Minister for Economic Affairs and Finance Ali Tayyabnia. The official welcoming ceremony was held at Saadabad Palace where a smartly turned out contingent presented guard of honour to the prime minister.

The prime minister also held a meeting with First Vice President of Iran Eshaq Jehangiri in which matters of mutual and bilateral interest were discussed.

Online adds: Pakistan has requested Iran to soften penalties concerning the gas pipeline project besides seeking Iranian financial assistance for the project.



According to sources, Federal Finance Minister Ishaq Dar endeavored to convince Iranian officials on the gas pipeline project because Iran had offered such financing to former PPP-led government; however, when the PML-N government tried to carry the initiative ahead, Iran excused itself citing its economic crisis.

The Pakistani delegation would also be trying to coax Iranian officials to waive off time limit for completion of Pakistan’s part of pipeline by Jan 1, 2015, failing which Pakistan would be fined in accordance with gas volumes due to Pakistan.

Pakistan could be liable to fines up to $3 million daily if it fails to honor its part of pipeline construction.Pakistan and Iran have signed eight agreements and memoranda of understating in different fields to further strengthen relations between the two countries.


Prime Minister Nawaz Sharif and Iranian First Vice President Eshaq Jahangiri witnessed the signing ceremony held in Tehran on Sunday.These agreements and MOUs include: Agreement on Transfer of Offenders, MOUs on Anti-Money Laundering, Statistical Cooperation, Renewal of the Cultural Exchange Programme, Sports Cooperation, Cooperation in Preventing and Combating Pollution from Ships, and Establishment of Joint Border Commission.

Wednesday 16 July 2014

Socket programing in java

create two file one for client and one for server

for client you will have to code like this



/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jsocket;

/**
 *
 * @author jawadmahmood
 */

import java.net.*;
import java.io.*;
import javax.swing.*;

public class JSocket {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try{
           
            Socket s = new Socket("localhost", 2222);
            InputStream is = s.getInputStream();
            InputStreamReader isr = new InputStreamReader(is);
            BufferedReader br = new BufferedReader(isr);
            OutputStream os = s.getOutputStream();
            PrintWriter pw = new PrintWriter(os, true);
            String msg = JOptionPane.showInputDialog("Enter your name");
            pw.println(msg);
            msg = br.readLine();
            JOptionPane.showMessageDialog(null, msg);
            s.close();
           
           
           
           
        }
        catch(Exception ex){
           
            System.out.println("The error is " + ex);
        }
    }
   
}






























then create the server socket like this 


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package echoserver;

/**
 *
 * @author jawadmahmood
 */
import java.net.*;
import java.io.*; 
import javax.swing.*;
public class EchoServer {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try{
             ServerSocket ss = new ServerSocket(2222);
             System.out.println("Server started");
             while(true){
             
                 Socket s = ss.accept();
                 System.out.println("Connection request received" ); 
                 InputStream is =s.getInputStream();
                 InputStreamReader isr = new InputStreamReader(is);
                 BufferedReader br = new BufferedReader(isr); 
                 OutputStream os = s.getOutputStream();
                 PrintWriter pw = new PrintWriter(os, true);
                 String name = br.readLine();
                String  msg =  "Hello "+name+ "from server";
                pw.println(msg);
                s.close();
                 
             
             }
             
             
             
        
        }catch(Exception ex){
        
            System.out.println(ex);
        }
    }
    
}























































when you start the program it will open the input dialog box when you enter the name or something else it will return the text with hello in dialog box .

as shown in the pic



 

Thursday 10 July 2014

Surah Yaseen The Rewards and Benefits

Surah Yaseen is the “heart” of the Quran. Why is it known as the heart of the Quran? In our bodies, the heart is considered to be the most important organ. It supplies the entire body with blood to keep us functioning. Without the heart, the body cannot live. It is to emphasize the great importance of Surah Yaseen that it is called the “heart” of the Quran.



1. Reading Surah Yaseen at the beginning of the day causes Allah to fulfil all your needs for that day.

Hadhrat ‘Ataa’ bin Abi Ribaah (Radhiyallahu Anhu) says that Prophet Mohamed (Salallahu Alaihi Wasallam) is reported to have said, “ Whoever reads Surah Yaseen in the beginning of the day, all his needs for that day are fulfilled.”


2. Reading Surah Yaseen is equivalent to reading the whole Quran 10 times.

“Everything has a heart and the heart of the Glorious Quran is Surah Yaseen. Whoever reads Surah Yaseen, Allah records for them a reward equal to that of reading the whole Quran 10 times.”


3. Reading Surah Yaseen and memorizing Surah Yaseen invokes the blessings of Allah.

It is said that Allah recited Surah Yaseen and Surah Taha 1000 yeards before the creation of Heaven and Earth, and upon hearing this, the angels said, “Blessing is for the ummah unto whom the Quran will be sent down; blessing is for the hearts that will memorize it, and blessing is for the tongues that will recite it.”


4. Reading Surah Yaseen invokes the mercy of Allah to forgive your sins.

“Whoever reads Surah Yaseen for the pleasure of Allah only, all his earlier sins are forgiven. Therefore make a practice of reading this Surah over your dead.”



5. Reading Surah Yaseen benefits the reader in this life as well as in the Hereafter.

According to one hadith, Surah Yaseen is named in the Torah as “Mun’imah” i.e. Giver of Good Things. This is because it contains benefits of the reader both in this world and the next. It removes from them the afflictions of this worlds and the next. Surah Yaseen also takes away the dread of the next life.



6. Reading Surah Yaseen exalts the status of the believers both in this world and the next.

Surah Yaseen is also known as “Raafi’ah Khaafidhah” i.e. that which exalts the status of the believers and degrades the unbelievers. According to a riwayat, Prophet Mohamed (Salallahu Alaihi Wasallam) said, “My heart desires that Surah Yaseen should be present in the heart of everyone of my ummah.” So memorize Surah Yaseen to reap its benefits.



7. Reading Surah Yaseen causes you to die as a shaheed.

According to one hadith, if anyone recites Surah Yaseen every night and then dies, they die as a shaheed (martyr).




8. Reading Surah Yaseen wipes out your sins, alleviates hunger and guides the lost.

“Whoever reads Surah Yaseen is forgiven; whoever reads it in hunger is satisfied; whoever reads it having lost their way, finds their way; whoever reads it on losing an animal, finds it. When one reads it apprehending that their food will run short, that food becomes suffient. If one reads it beside a person who is in the throes of death, these are made easy for them. If anyone reads it on a woman experiencing difficulty in child-birth, her delivery becomes easy. ”



9. Reading Surah Yaseen abolishes fear from your heart.

Maqri (Rahmatullah Alaihi) said, “If Surah Yaseen is read by one who fears the ruler or an enemy, one gets rid of this fear.”





10. Reading Surah Yaseen makes your dua’s to be answered.

According to one hadith, if somebody reads Surah Yaseen and Surah Was-Saaffaat on Friday and begs Allah something, their prayer is granted.


11. Read Surah Yaseen in the night for all your sins to be forgiven.

The Prophet said, ‘Whoever recited Surah Yasin in the night seeking Allah’s pleasure, Allah would forgive him’






Tuesday 8 July 2014

Java meta data

Here is the program to get the table count columns.

the program is starting from here.





/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jmetadata;

/**
 *
 * @author jawadmahmood
 */
import java.sql.*;

public class JMetaData {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try{
            Class.forName("com.mysql.jdbc.Driver");
           
      //Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8889/jrecords", "root" , "root");
        Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8889/jrecords", "root" , "root");
         
            String sql = "Select * From post ";
            PreparedStatement pStmt = con.prepareStatement(sql);
            ResultSet rs = pStmt.executeQuery();
            ResultSetMetaData rsmd = rs.getMetaData();
           
            int numColumn = rsmd.getColumnCount();
           
            System.out.println ("The total column in the jrecods are " + numColumn);
            String cName;
           
           for (int i = 1; i <= numColumn ; i++){
         
               cName = rsmd.getColumnName(i);
               System.out.print(cName);
               System.out.print("\t");
           }
           con.close();
           
           
        }catch(Exception ex){
           
           System.out.println("There is conection error or " + ex);
       
        }
       
    }
   
}
























































when you will run the program the out put will be like as