Saturday, December 19, 2009

ALERT








A
: Attention
L : Life
E : Emergency
R
: Rush up

T : Think about it...!

Friday, 18-Dec-2009, about 9:00 am, in Rimpa Plaza, Karachi, Pakistan.....

There was load shedding our laptops bettry became low so we decide to take tea from outside. But when we came out from our office & go towards stairs some peoples were ran upstairs & said there is fire on 6th floor in a store-room exactly next over our office room. Some of our friends immediately rush up out from the plaza & the other were return to office & shift our laptops to our head office. In th mean time all channels team, police, rescue, ambulance, fire brigade reached & try to stop the fire as soon as possible. Thanks to Allah no one was injered except the 6th floor & the fire became cool after a great efforts. Then after Jumma pray we deside to go back to our home.


Conclusion:
I think that was happened only due to poor security & safty precautions which should be taken by the Plaza owner.
And also office owners must have to choose those place to setup their business where all facilities are available like transport should available for (all) employees & similarly other facilities to face such accidents like on Friday.

Opinion:
In Karachi i think the best location to setup once business is from NIPA to Hassan Square because NIPA is the center to all routs.


Excuse:
There may be some English mistakes so please forgive it.

Thanks.

Friday, November 20, 2009

Create subdomain on localhost in linux

Question: Let suppose i have a web site www.webspot.com. Now I want to create a subdomain sub.domain.com, and when I enter it in my browser, I want to go to the same web site (www.webspot.com).
Answer: Simply on terminal type
  • sudo gedit /etc/apache2/sites-available/your-web-site
file will open now make some little changes like this
ServerName webspot.com

DocumentRoot /var/www/your-website/public
ServerAlias sajid.webspot.com
ServerAlias naveed.webspot.com
ServerAlias nasir.webspot.com
ServerAlias ihsan.webspot.com
ServerAlias zeeshan.webspot.com

Options FollowSymLinks
AllowOverride All

ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined

then type:
  • gedit /etc/hosts
file will open now make some little changes like this
127.0.0.1 localhost

127.0.0.1 webspot.com
127.0.0.1 sajid.webspot.com
127.0.0.1 naveed.webspot.com
127.0.0.1 nasir.webspot.com
127.0.0.1 ihsan.webspot.com
127.0.0.1 zeeshan.webspot.com

127.0.1.1 sajid-laptop

now restart apache2 by using:
  • sudo /etc/init.d/apache2 restart
Enjoy :)

Monday, September 14, 2009

OpenID


OpenID is a standard for user authentication. OpenID allow users to get access to different web services with the same digital identity. By using one OpenID we does not need to create different accounts for different web services.

An OpenID is a unique URL and authenticated by user's OpenID provider. The OpenID protocol does not work on a central authority for user's identity authentication.
OpenID reduce frustration associated with maintaining multiple usernames and passwords and is the safer and easier method to joining new sites.

How to get OpenID:
You may already have an OpenID. If you are using Google, Yahoo, Facebook etc , you does not need to create a new one. OpenID authentication is provided by several large websites. Several organizations either provide or accept OpenIDs, including Google, Facebook, Yahoo!, Microsoft, AOL, MySpace, Sears, etc.

How to login with OpenID?
1. When you visit a site that support OpenID and need authentication, you will see a form like this.
2. Enter your OpenID or your OpenID provider URL (for example yahoo.com) into the form.

3.
Your browser will send you to your OpenID provider login form.

4.
Login to your OpenID provider site with your username and password.

5.
Tell your provider that the original web site can use your identity. You are then sent back to the original website as authenticated user.