President Asif Ali Zardari setting up Cell Phones Plant, a Telecom University

President Asif Ali Zardari Saturday called for setting up a Telecom University, a Telecom Research and Development Centre and a plant to manufacture and assemble mobile handsets in Pakistan.

Spokesperson to the President former Senator Farhatullah Babar said that the call was made when a delegation of Chinese Telecom conglomerate ZTE called on the president at the Presidency.

The five-member delegation that called on the president was led by Luo Pingfan, Dy Chairman ZTE and also included Ambassador of China Luo Zhaohui.

The president said that the government would provide land for the Telecom varsity in Haripur where the nucleus of telecom training facilities already existed and also offered facilities for establishing an R&D Centre in Islamabad and the mobile handsets manufacturing plant.

He said that the president appreciated the ZTE’s role in the development of Pakistan’s Telecommunication sector and said that Chinese companies had made significant contributions to Pakistan’s economy through direct investment.

The president called upon ZTE to develop technical skills of the local labour force. He said that Chinese investment and cooperation could help develop Pakistan as regional hub for manufacturing for which low cost labour force was available in Pakistan.

He also called upon the ZTE to develop a research and development centre in telecommunication and a plant for manufacture of mobile handsets in Pakistan.

He said that he was keenly awaiting his visit to China later this month to further consolidate the relations between the two countries which he said was “an important factor for peace and stability in the region and the world”.

The president underscored the importance of closer collaboration and coordination between Pakistan and China in view of complexities of regional and global situation.

He said that Pakistan would continue to support China on all issues of national importance to it.

The Chinese delegation thanked President Zardari and the government of Pakistan for providing it necessary back up and support to carry out its investment plan in Pakistan.

Secretary General to President Salman Faruqi, Special Assistant to Prime Minister on Water Resources Kamal Majidullah, Ambassador at Large Khalil Ahmad and senior official of the foreign office also attended the meeting.

Tags: , , , , , , , ,
permalinkRead More CommentComments (1) Cattelecom

FIRE RECORDS put Mag4You.com in fire

FIRE RECORDS put Mag4You.com in fire. owner of Mag4you arrested and picked from his home by police, Fire Records also being tracking other music sites.

Geo TV reported about illegal website (containing pirated music and copyright contents), was raided by FIA, and owner of the site arrested and office accessories ( Computer equipment etc) were also taken in custody.

Fire Records belong to Jang Group (Geo TV). According to some source that they have about 200 sites in their list of Pirated Music Sites.

Mag4You.com becomes the first and might be songs.pk or mp3pk.com and funmaza.com would be the next.

Internet users have mixed opinion about it, most of them were the view that why the webmaster of such websites warn to remove the illegal contents and pirated music.

snnbtio0e80

Tags: ,
permalinkRead More CommentComments (1) Catweb

Twitter suffers denial of service attack

Following over an hour of downtime today, micro-blogging site Twitter has reported on its status blog that it is ‘defending against a denial-of-service attack’.

While Twitter is suffering downtime, so too have social networking site Facebook and community blogging site LiveJournal been experiencing on and off outages throughout the day.

Without a full report available yet from Twitter and with no official word as of yet from Facebook or LiveJournal it is not yet known if the problems are associated.

Twitter cop-founder Biz Stone said on the official company blog: “On this otherwise happy Thursday morning, Twitter is the target of a denial of service attack. Attacks such as this are malicious efforts orchestrated to disrupt and make unavailable services such as online banks, credit card payment gateways, and in this case, Twitter for intended customers or users.

“We are defending against this attack now and will continue to update our status blog as we continue to defend and later investigate.”

Tags: , ,
permalinkRead More CommentComments (0) Catweb

Dates in PHP and MySQL

I see a lot of people on forums and on my training courses asking about the best way (or any way) to manage dates stored in a MySQL database and used in PHP. Three options follow, but first the problem.

PHP uses unix timestamps for all its date functionality. It has methods to convert these timestamps into pretty much any text format you could want but internally it uses the timestamp format. A timestamp is simply an unsigned integer. Specifically, it’s the number of seconds that have elapsed since midnight on January 1st 1970 (greenwich mean time).

MySQL has three date types for use in columns. These are DATETIME, DATE, and TIMESTAMP. DATETIME columns store date and time as a string in the form YYYY-MM-DD HH:MM:SS (e.g. 2006-12-25 13:43:15). DATE columns use just the date part of this format – YYYY-MM-DD (e.g. 2006-12-25). TIMESTAMP columns, despite their name, are nothing like the unix timestamps used in PHP. A TIMESTAMP column is simply a DATETIME column that automatically updates to the current time every time the contents of that record are altered. (That’s a simplification but broadly true and the details are not important here). In particular, since version 4.1 of MySQL the TIMESTAMP format is exactly the same as the DATETIME format.

So the problem is how to work with these two very different date formats – the PHP timestamp integer and the MySQL DATETIME string. There’s three common solutions…

  1. One common solution is to store the dates in DATETIME fields and use PHPs date() and strtotime() functions to convert between PHP timestamps and MySQL DATETIMEs. The methods would be used as follows -

    $mysqldate = date( ‘Y-m-d H:i:s’, $phpdate );
    $phpdate = strtotime( $mysqldate );

  2. Our second option is to let MySQL do the work. MySQL has functions we can use to convert the data at the point where we access the database. UNIX_TIMESTAMP will convert from DATETIME to PHP timestamp and FROM_UNIXTIME will convert from PHP timestamp to DATETIME. The methods are used within the SQL query. So we insert and update dates using queries like this -

    $query = “UPDATE table SET
    datetimefield = FROM_UNIXTIME($phpdate)
    WHERE…”;
    $query = “SELECT UNIX_TIMESTAMP(datetimefield)
    FROM table WHERE…”;

  3. Our last option is simply to use the PHP timestamp format everywhere. Since a PHP timestamp is an unsigned integer, use an unsigned integer field in MySQL to store the timestamp in. This way there’s no conversion and we can just move PHP timestamps into and out of the database without any issues at all.
    Be aware, however, that by using a unsigned integer field to store your dates you loose a lot of functionality within MySQL because MySQL doesn’t know that your dates are dates. You can still sort records on your date fields since php timestamps increase regularly over time, but if you want to use any of MySQL’s date and time functions on the data then you’ll need to use FROM_UNIXTIME to get a MySQL DATETIME for the function to work on.
    However, if you’re just using the database to store the date information and any manipulation of it will take place in PHP then there’s no problems.

So finally we come to the choice of which to use. For me, if you don’t need to manipulate the dates within MySQL then there’s no contest and the last option is the best. It’s simple to use and is the most efficient in terms of storage space in the data table and speed of execution when reading and writing the data.

However, some queries will be more complicated because your date is not in a date field (e.g. select all users who’s birthday is today) and you may lose out in the long run. If this is the case it may be better to use either option 1 or 2. Which of these you use depends on whether you’d rather place the work on MySQL or PHP. I tend to use option 2 but there’s no right or wrong answer – take your pick.

So to summarise, for those who’ve skipped straight to the last paragraph, most of the time I use option 3 but occasionally I use option 2 because I need MySQL to know the field contains a date.

permalinkRead More CommentComments (2) CatPHP Development

English skills of Japanese P.M

This is a true story from the Japanese Embassy in US!!!
Japanese-Embassy

A few days ago, Prime Minister of Japan Mr. Mori was given some Basic English conversation training before he visits Washington and meets president Barack Obama…

The instructor told Mr. Mori Prime Minister, when you shake hand with President Obama, please say ‘how r u’.
Then Mr. Obama should say, ‘I am fine, and you?’ Now, you should say ‘me too’. Afterwards we, translators, will do the work for you.’

It looks quite simple, but the truth is…

When Mori met Obama , he mistakenly said ‘who r u?’ (Instead of ‘How r u?’.)

Mr. Obama was a bit shocked but still managed to react with humor:
‘Well, I’m Michelle’s husband, ha-ha…’

Then Mori replied ‘me too, ha-ha.. .’.

Then there was a long silence in the meeting room.

permalinkRead More CommentComments (1) CatComic

Do not maximize the screen…‏

Do not maximize the screen… just leave it as it is after clicking the link and see what happens… wicked.

http://www.fareed.pk/comic1/

permalinkRead More CommentComments (0) CatComic

Important information from PTCL

his is to inform you that Pakistan Telecommunication Authority (PTA) has instructed to implement new Numbering Plan for Fixed Line Telephone Networks, effective from 1st July 2009. Incompliance to the instructions issued by PTA, fixed line subscribers numbers will be migrated from 7-digits to 8-digits, by inserting a preceding digit for the numbering in Karachi (NDC 21) and Lahore (NDC 42) cities, as detailed below:

(i) Digit “3” will be added to the number series starting from 2xx xxxx to 8xx xxxx.

(ii) Digit “9” will be added to the number series starting from 9xx xxxx.

(iii) Max / Min digit values will remain the same i.e. 6/14.

Both new 8-digit and old 7-digit numbers will run in parallel for a period of three months w.e.f. 1st JULY 2009 to 30th SEPTEMBER 2009. From 1st October 2009 to 30th December 2009, an announcement will be provided in order to facilitate the subscribers /customers. Rest of the Numbering will remain the same. Any change will be communicated later.

For further details, contact our helpline 1236.

ptcl-urduptcl-english

Tags:
permalinkRead More CommentComments (2) Cattelecom

Bachoon Per bhi TAX

bachon-par-tax

Tags:
permalinkRead More CommentComments (0) CatLead Story

Michael Jackson Died

Michael Jackson had been planning to start a series of comeback concerts in London and had been rehearsing in the Los Angeles area for the past two months. Promoters of the shows said in March that he had passed a lengthy physical examination.

Michael Jackson, the sensationally gifted child star who rose to become the “King of Pop” and the biggest celebrity in the world only to fall from his throne in a freakish series of scandals, died Thursday. He was 50.

Jackson died at UCLA Medical Center in Los Angeles. Ed Winter, the assistant chief coroner for Los Angeles County, confirmed his office had been notified of the death and would handle the investigation.

The circumstances of Jackson’s death were not immediately clear. Jackson was not breathing when Los Angeles Fire Department paramedics responded to a call at his Los Angeles home about 12:30 p.m., Capt. Steve Ruda told the Los Angeles Times. The paramedics performed CPR and took him to the hospital, Ruda told the newspaper.

Michael Jackson all videos on YouTube
http://www.youtube.com/profile?user=michaeljackson

permalinkRead More CommentComments (0) CatLead Story