Showing posts with label apps. Show all posts
Showing posts with label apps. Show all posts

Friday, 2 May 2014

How to Test Website across Multiple Browsers and Devices Synchronously


Welcome back!  I, Anubhav Sachan, am here again with another guide “How to Test Website across Multiple Browsers and Devices Synchronously”.


Responsive Web Design (RWD) is now a common approach in building a mobile friendly website. But building a responsive website can be quite irritating when you have to test the website in multiple devices and screen-sizes.

Say you have three devices to run the test on, you may end up having to constantly refresh each browser in every of those devices, which is cumbersome, to say the least.

So the idea of “synchronized testing” has emerged to address this situation and make the workflow more streamlined. There is a Grunt plugin called Browser Sync  to perform this, and Iam going to show you how to deploy it in your project, in this post.


 Why use Browser Sync?
First off, I’m not saying that Browser Sync is the perfect tool. There are also a number of GUI Applications such as Adobe Edge Inspect and Ghostlab which are great tools as well. They both have a nice GUI, but here’s why I think Browser Sync is better than these Applications:

1) Browser Sync (as well as Grunt) is free which helps if you have little to no budget to work with.

2) It is open-source. Depending on your JavaScript and Node.js proficiency you can extend it to cater to your own specific requirements.

3) It is cross-platform. You can use it in Windows, OS X and Linux. Ghostlab, on the other hand, is only available in OS X and Windows.


Installation
 To start off, you would install the Grunt plugin called Browser Sync. I’m sure the name says it all; this plugin syncs a number of interactions that occur on the website including page scrolling, populating form fields, and clicking on links.

All these actions will be reflected in the other browsers and devices as they are happening. Type the following command to install Browser Sync in your working directory:


npm install grunt --save-dev
npm install grunt-browser-sync --save-dev



Configuration

Once installed, Browser Sync can be loaded within the Gruntfile.js, this way.





  module.exports = function(grunt) {  
     grunt.initConfig({  
         browser_sync: {  
             dev: {  
                 bsFiles: {  
                     src : 'navbar-fixed-top.css',  
                 },  
                 ghostMode: {  
                    clicks: true,  
                    scroll: true,  
                    links: true,  
                    forms: true,  
                 },  
             },  
         },  
     });  
     grunt.loadNpmTasks('grunt-browser-sync');  
 }; 



This configuration will monitor the navbar-fixed-top.css file and automatically refresh the browser when it’s changed. We should also enable ghostMode to keep track of interactions on the website.

Note: Browser Sync also provides a number of other configurations, you can check them out in detail on this page. For the time being, the above configuration should suffice for the project example in this article.

Once the configuration is set, go to Terminal (or Command Prompt) and run the task using the following command:

grunt browser_sync

After running the command, you will be prompted to add three line of scripts within the <head> tag.

Also, when you view your website in multiple browsers, it also records those browsers, and notifies you in Terminal. In this case, I opened the website in Chrome, Safari, and Mobile Safari (through iPhone Simulator).


Check It Out

Now, as you can see from the following animated GIF, all updates, changes, and interactions are synced in real time in all the browsers.

I would be happy to hear from you. You may send your Suggestions,Advices etc. on contac ifo at Developers page.
Thank You !

Monday, 28 April 2014

How to Click a Quality Selfie?


These days smart phone users are developing the interest on “Selfie”. Selfie fever is not mere an affliction which has spread among youth but even U.S. President Barack Obama, Vatican’s Pope Francis, and BJP’s Prime Ministerial candidate Narendra Modi are afflicted with it. All the Selfies are popular and have the tendency to find place in News Headlines. 
 
Earlier it wasn’t easy to capture your photo but the introduction of front camera in the smart phone has made it really very easy to capture a Selfie. So I,Anubhav Sachan, am here to give some tips on clicking a good Selfie.

To capture a great photograph of yours the first thing which needs to be best is the Camera. If your camera is not so advanced you can use some of apps for iOS, Windows and Android’s AppStores. More are the Pixels of your camera, quality of image will be more. Camera should have a light sensor, Flash or LED. If these are not available then it’s not possible to click a good Selfie.Love them or hate them, Selfie’s are here to stay.

Oxford Dictionaries named Selfie the Word of the Year 2013. Selfie is defined by Oxford as “a photograph that one has taken of oneself, typically one taken with a smartphone or webcam and uploaded to a social media website.”

1. Check your lighting
Pictures in general turn out better when the subject is facing the light. Avoid the creepiness below by taking a selfie in good lighting.

2. Be genuine
If you’re happy, smile! If you’re sad, frown. Whatever you do, don’t pretend to not be looking at the camera when you are clearly aware that you are taking a photo of yourself.

3. Avoid/Don’t Avoid Photobombers
Intentional photobombers can ruin a very cute, bestie Selfie. They can also turn a not so special ‘don’t’ I look good today Selfie’ into a piece of socially shareable magic.

4. Keep your hand still
Avoid the total amateur move of a blurry Selfie. Using the photo timer on your phone is a big help. It removes the accidental blurry image, caused by pressing your camera button too hard.

5. Make it interesting
We’re past the plain Selfie. Get creative! Selfie on the ground, Selfie on a swing, Selfie with a Selfie, give people a reason to click that ‘Like’ button.

6. Get a great front facing camera phone.
A great front facing camera will ensure the best quality selfie. The front facing camera also helps you frame yourself so you avoid the super close up. 

7. Above all else, embrace the Selfie.
You didn’t get that new high res camera cell phone for nothing! Don’t be ashamed that you want to get in on the Selfie game.

  Sorry Readers I was at New York sometime ago for a short piece of work but i will not disappoint you again.

Tuesday, 15 April 2014

How to Force the Browser to Remember the Username and Password



We all know that e merchant’s websites like Paypal,American Express etc  are not saving passwords but you have the tendency to forget the passwords , so I’m  here for The Best within Everything with another How To Guide.
When you enter your username and password to log into a website, Google Chrome will prompt you to remember the password. If you accept, Chrome saves the password internally and the next time you open that site, it will auto-fill the username and password fields for you.

The password-saving feature is available in all modern browsers but some websites, maybe for security reasons, disable this option for their login forms. For instance, the PayPal website doesn’t allow the browser to remember your password and thus you are forced to enter the password every time you open PayPal. Some banks websites do that as well.


— Use the Remember Password extension for Chrome and it will force the browser to remember passwords even if the site has disabled the option.





How Websites Disable Password Saving

Websites can easily disable the auto-fill option for login forms by setting autocomplete=off for the password field. For instance, if the login form is written as below, the browser will never prompt the user to save the password field because form autocompletion is turned off.


1.  <form>
2.   <input type="text" name="username">
3.   <input type="password" name="password" autocomplete="off">
4.  </form>

 

Force the Browser to Remember Password

Now that you know how websites turn off the option to remember passwords, getting around this problem is simple.

You can set the autocomplete attribute of the password fields on a web page to on (if they are off) and you’ll be able to save passwords. Here’s a piece of JavaScript that will automatically turn on autocomplete for all password fields on a web page.


1.    var fields = document.querySelectorAll('input[type="password"]');
2.    for (var i = 0; i < fields.length; i++) {
3.      fields[i].autocomplete="on";   
4.    }
 
No, you don’t have to worry about the code as there’s a simple extension for Chrome – Remember Password – that does it automatically for you.

Install the Remember Password extension and then open a site like PayPal that does not allow you to save passwords. Login with your username & password and the browser will now prompt you to remember the password.

Most importantly I've referred many websites before publishing this post & would like to tell that this post may contain copyrighted material which has been reproduced under permission and general licence.

Thank You !


Contact Me (Anubhav Sachan)
On – Facebook, Twitter, Google+.
Via – anubhavsachan@outlook.com

Thursday, 27 February 2014

HOW TO SET PASSWORD ON ANY APPLICATION IN PC

STEP 1:
First of all download a software named Password Door to your pc [Download: 594.85 KB]
STEP 2:
Now install it to your pc, while installing , it will ask you to enter a password which will be used to open the password protected softwares.
STEP 3:
Now open Password Door with the help of password which you have entered while installing
Now Click on protect a program.
STEP 4:
Now You’ll see a list of all program on which you can set password.
Select the app from the list and make it password protect.
Now whenever you or any other user open password protected app, app will ask for the password. if you know the password only then you can access the application.
You can remove password from apps anytime.
NOTE: If you are thinking, your little bro or sis uninstall Password Door to access the application, then they can’t do it, because this program will ask for the same password to uninstall it from pc.

Tuesday, 18 February 2014

How to Create a Facebook App for your Page

This tutorial is all about How to Create a Facebook App for your Page.
Just follow these simple steps to get desired result.



Step 1: Open Google Sites and create a new site. Choose “Blank Slate” for the theme and, under Site Settings,   set the width as 100% so your content occupies the entire width of the Facebook Canvas. Also disable the Header and Sidebar since we don’t want this stuff to appear on our Facebook Page.
Step 2: Compose a new page in Google Sites and add some content to this page using the built-in WYSIWYG editor. If you are an experienced coder / designer, switch to the HTML view and add HTML code directly to your page. You may insert images, maps, videos, spreadsheets, gadgets, tables and everything else just like a regular HTML page.
Step 3: Open the Facebook Developers page at developers.facebook.com and, if this is your first Facebook App, click “Go to App” to add the Developer app to your Facebook Profile. Next click on the button that says “Create a new App” and give your app a name (you can skip the other fields).

Step 4: Expand the “Page Tab” option under Basic Settings and set the URLs for “Page Tab” and “Secure Page Tab” the same as your URL of your Google Site’s page. The Page Tab URL should point to the http version of the Google Sites page while the Secure Page Tab URL should use the https version.
Step 5: You should also upload a 111×74 pixels thumbnail image with your Page Tab as it will show up in the header of your Facebook Page. Use bigger fonts inside the image for better readability. Save the changes and your Facebook App is now ready.
Step 6: Now we need to add this custom Page Tab to our Facebook Page. That’s easy. Copy the App ID of your Facebook App that you just created and replace XZY in the following URL with that App ID. Open the modified URL in your browser and you should see an option to add the app to your Facebook Pages.
https://www.facebook.com/dialog/pagetab?next=http://facebook.com&app_id=XYZ


That’s it. You can add more apps /tabs to your Facebook Page using the same technique and it is also possible to alter the order of these tabs in the header.

If you ever need to update the content of a Facebook tab, just update the corresponding Google Sites page and your Facebook tab will update automatically because internally, you are just serving the same Google Sites Page to your Facebook Fans.

Hope you like this post !
Don’t forget to like us on Facebook.