Header menu

_________________________________________________________________________________

Sunday, 3 September 2017

Multiplication in C

#include<stdio.h>
#include<conio.h>
int main()
{
    int i=14;
    int j=15;
    int k=i*j;
    printf(" The product is %d",k);
    getch();
    return 0;
    }

Saturday, 2 September 2017

Hello World !! in C++

#include<iostream>
#include<stdio.h>
#include<conio.h>

using namespace std;
int main()
{
    cout<< "Hello World! Welcome to C++";
    getch();
    return 0;
    }

Tuesday, 21 April 2015

Error when trying to access XAMPP from a network in windows


Error when trying to access XAMPP from a network in windows

Access to the requested object is only available from the local network. This setting can be configured in the file  "httpd-xampp.conf".

This solution will work in latest version of XAMPP

1.) Go to C:\xampp\apache\conf\extra
2.) Open httpd-xampp
3.) Look for 


#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
4.) Remove them
5.) Restart Xampp

You are done 

Tuesday, 30 September 2014

Auto-click function for facebook login button using javascript


  

Auto-click function for  facebook login button using javascript

(Function to initialize facebook login process)


I have added facebook sign button on my website. On clicking on it i can make user to login in my application using facebook account.

Now i want to click on some other button and want to initialize facebook login functionality .

To do so i need 2-3 lines of code / a function to start login process.

function facebookLogin() {
    FB.login(function(response) {
        if (response.authResponse) {
        statusChangeCallback(response);
        //    console.log('Authenticated!');
            // location.reload(); //or do whatever you want
        } 
    },
    {
        scope: 'email,user_checkins'
    });
}
facebookLogin();


Auto-click function for google sign button using javascript


  

Auto-click function for  google sign button using javascript

(Function to initialize google sign process)

I have added google sign button on my website. On clicking on it i can make user to login in my application using google account.

Now i want to click on some other button and want to initialize google sign functionality .

To do so i need 2-3 lines of code / a function to start login process.

var myParams = {
    'clientid': 'your client-id',
    'cookiepolicy': 'single_host_origin',
    'callback': 'onSignInCallback',
    'scope': 'email'
};
gapi.auth.signIn(myParams);