Tuesday, 7 July 2015

URL shortening : Removing .php - file extension


Most of the times when we are browsing php based website,  there we can see .php - file extensions associated with each page names ( Ex: http://yourdomain.com/about.php ). if you think this make your URL bit ugly, don't worry we can eliminate these extensions from our URL ( Ex: http://yourdomain.com/about ) . Here writing the procedure for removing ".php"  file extensions from URLs where our files are in Apache server.


Follow These steps for removing  ".php"  file extension from URLs

Step 1:
Create a .htaccess file (create a file and save this named " .htaccess").

Step 2:
Open this .htaccess file and paste the below code.

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}.php -f

RewriteRule ^(.*)$ $1.php

Step 3:
Save and move this file to the root directory of your website or application.

Step 4:
Done that's it.Now you can use files without extension in your Website.



How to Use the above feature in your existing Website

If you are already using files with .php extension in website (<a href=" http://yourdomain.com/about.php " > About </a> ) then you need to edit all the links appear in page without ".php"   file extension ( <a href=" http://yourdomain.com/about ">About </a>  ) .
Continue Reading →

Thursday, 25 June 2015

How to make select elements required in HTML5 ?




The <select > element is a form-control in HTML and is used to create a drop-down list in web pages.The <option > tags inside the <select > element define the available options in that drop-down list.

 HTML5 supports form input-attribute required="required" for input-type "text" to check the required input-fields.But its not applicable in case of select field. The following code showing how to make select elements required.

<select required>
<option value="">select an option</option>
<option value="value1">Value 1</option>
<option value="value2">Value 2</option>
</select>

View Demo on : http://jsfiddle.net/88rXX/
Continue Reading →

Wednesday, 24 June 2015

How to "unsend" a sent email in Gmail



After we composed and send an email to anyone, we can't change the contents of that email before receiver get this. But some times the sender needs to make some additional edits [ say     he/she notices a mistake in email after clicks send button ] to the email after they send.
Then how it will be achieved ?

Gmail introduces a "unsend" option in their settings for overcome this situation. Through this facility a gmail user can edit his/her sent email within maximum of  30s after he/she clicks send button.

When a user click send button to send a composed email, there appear a toast message showing "Your message has been send" with "undo" and "view message" option. By clicking undo user can edit the sent email again. This is because Gmail will not send mails when a user clicks send button, it waits a certain time that we already set through Gmail settings. if user will not make any impressions on "undo" option within this time, the mail has been sent.

Follow these steps to see how this feature works:




1 .Login to your Gmail account. https://gmail.com .

2. Click the Settings icon (icon that looks like a gear).

3. From the Settings menu, choose the option for Settings.

4. From the Settings window, make sure the General tab is selected.

5. Find for the setting that says Undo Send.(See Image)

6. Click the check box to Enable Undo Send.

7. Click the drop-box to set the Send cancellation period, meaning the number of seconds you have to prevent the email from being sent. You can choose 5, 10, 20 or 30 seconds.

8 . Scroll to the bottom of the Settings screen and click the Save Changes button.

Follow below steps to test this feature:




1. Click the Compose button in your Gmail .

2. Compose a message and then click the Send button.

3 . At the top of the screen, you'll see a message that says: "Your message has been sent" . with "Undo". and "View Message" option.

4 . To prevent the message from being sent, click the Undo link.

Gmail stops the message from going out and displays it in case you wish to make any changes and then resend it. If not, you can simply close the message, and it's moved to your Drafts folder where you can keep it or delete it.


Continue Reading →

Sunday, 21 June 2015

How to enable two-step verification in your Facebok account


Facebook starts two-factor authentication a tiny late, but they smooth out the setup method. Enabling two-factor authentication for your Facebook account is a snap. log in to Facebook & click on the blue gear icon in the top-right corner, then click on your Account Settings menu. Next, select the Security section from the navigation bar on the lefthand side of the screen, & switch on the Login Approvals feature (Facebook's term for two-factor authentication) by clicking the appropriate checkbox. Facebook will walk you through the method from here, explaining how to get & type in a distinctive alphanumeric code every time you need to access your account.


To get that code you will require to either download a mobile authenticator app that generates codes every time you log in, or give Facebook your mobile phone number so it can send you authentication codes by SMS. I recommend going the authenticator app route. It is simple to make use of, & you do not must wait for Facebook s servers to text you your code. And, you can also add a mobile phone number as an additional backup if the app fails to work.


In its mobile app, Facebook built in a tidy Code Generator feature that generates TOTP codes for your account, but you can use any elderly TOTP authenticator app in case you are willing to subvert Facebook's setup process. In case you are using Google's mobile authenticator app to manage two-factor authentication across multiple services, for example which is a great idea you can set it up to provide authenticator codes for your Facebook account . Basically start the Code Generator setup process click the Set up Code Generator link under Login Approvals in your Facebook security settings and when the time comes to open the Facebook mobile app, click the Having trouble? link. Facebook will ask you to click a giant blue Get Key button and enter the provided 16-character key in to your Facebook mobile app, but you can enter it in to any authenticator app including Google s and it will still work.

Continue Reading →

Wednesday, 17 June 2015

How to enable two-step verification in your Microsoft account


Microsoft started two-step verification process(also known as two-factor authentication or two-step authentication) to secure their user accounts from early 2013. Enabling two-step verification on your Microsoft account will enable it across all Microsoft services that currently support two-step verification, like Windows, Outlook, Office, and Onedrive. Here explains how we can add it in our accout.

Enable two-step verification



Step 1:

Go to this : Account Settings page, and look for both an email address and phone number under the section titled "Security info helps keep your account secure." If either piece of information is missing, click on the Add security info link and follow the prompts. The SMS functionality of two-factor authentication relies on your phone number being connected to your account, so don't skip it. Otherwise you'll need access to your email account to receive your secondary log-in code.

Step 2:

Click on the "Set up two-step verification" link.

Step 3:

Follow the setup process until you reach the end, then click "Done." You may be asked to provide a verification code, sent to either your phone via SMS or to your alternate email address, before you can complete the two-step setup. Once it's complete, you should receive an email confirmation from Microsoft sent to your alternate email address.


Pair an authenticator app with your Microsoft account

You can get security codes by email, phone call or SMS, but an even easier way is to use an authenticator app on your mobile device. Authenticator apps, like Google Authenticator, run locally on your device and work even if your device doesn't have an Internet connection. To use an authenticator app, you first have to pair it with your Microsoft account.

Step 1:

Download the authenticator app of your choice to your device. Android, iOS, and BlackBerry users can use Google Authenticator, while Windows Phone users can use Microsoft Authenticator.

Step 2:

Go back to your Microsoft account security info page, and you should see a prompt to set-up an mobile app. If not, click on "Set up identity verification app" link under the Identity verification apps section.

Step 3:

Launch your preferred authenticator app, then scan the bar code on the screen.

Step 4: 

When the security code appears in the authenticator app, enter it in the box, then click on the Pair button.

Using two-step verification

Once you've enabled two-step verification on your Microsoft account, logging in to your Microsoft services will require your account password and a security code. Fill out the required information (usually the last four digits of your phone number, or a portion of your email address) to trigger the security code being sent to your device. Otherwise, launch whatever app you used to set up verification codes (Google Authenticator, for example) and then enter the code in the text field.

Lastly, some apps and devices don't support security codes. In those instances, you can go to the security info page and create an app password to log in.

Continue Reading →

Popular Posts

Categories

browser (1) examples (1) facebook (1) Google (3) How to? (4) html5 (1) Microsoft (1) tutorials (2) VLC (1)

Follow My blog

Contributors

Ajesh VC . Powered by Blogger.