How to install angular js

By Deepak Sharma

Angular JS

Hello friend, today in this tutorial we talk about Angular JS and hwo to install it on windows. In easy and simply way helpful for learner's.

We are going to install Angular JS 8.2, before going to install it, let be know about angular js and why we need it.

AngularJS is a JavaScript framework.

Angular is an open-source, front-end web application development framework, it is TypeScript-based and led by the Angular Team at Google and by a community of individuals and corporations.

In this document, we will cover installation procedure of angular on windows 10 operating system.

Prerequisites

System requirements

  • Windows 10 OS
  • 4 GB RAM
  • 10 GB free space

Installation Procedure

  1.  To install angular cli we need nodejs and npm. First let’ us understand what is nodejsare and why we need them. Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to develop wide variety of applications like network applications, command line tools, web api, web applications. You need nodejs for dev tooling (like local web server with live reloading features) and dev experience, you do not need nodejs to run react in production.
  2. Firstly download nodejs, you can dowload from https://nodejs.org/en/download/?utm_source=myinboxhub.co.in. Click on windows Installer to download the latest version. 

  3. Now its a time to test you node js. Open cmd or command prompt and type node -v. As show in image below.

  4. Now install angual cli , just type npm install -g @angular/cli , show in image below.

  5. It take Some time to install.

  6. Now its time to check your angular js install successfully or not. just type ng version in cmd, show as in image below.

  7. Now its a time to run your first angular js project. now type ng new first-project here first-project is your project name you can change as per your requirment.

  8. After that press Y then enter for routeing. Then select css using arrow keys then press enter. It take some time to create successfully.

  9. Now its time to run you first angular js project. Firstly goto firsr-project directory by typing cd first-project  , then type ng serve -o to run you project as show in image.

  10. Now your project run successfully.

I hope you like to read this tutorial blog, video on this tutorial is available soon on https://www.youtube.com/c/YogendraTomar so do not forget to subscribe for latest video tutorials.

Continue Reading

how to create scramble password using substitution method in php

By Ankur Rajput

create Scramble Password

Hi guys this tutorial for how to create Scramble Password using substitution method in php.

Limits

I am showing encrypt only 10 digit alpha or numeric string.

Code(in PHP)

$start_time = microtime(true);

function ScramblePassword($ps){

$val = '';

$code1 = '1234567890aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ';

$code2 = 'r^7eYB0wa(Ac$GCnMqI6ZDS@zEt8OpFg%hHWRi5j3VX1J#kbvKxdyl*L9muNo!4P&sTU2fQ)';

//echo $code2; die;

for ($i = 0; $i < 10; $i++) {

$i = strlen($ps); $ps .= " ";

}

//die;

$val = substr($code2,strpos($code1,substr($ps,1,1),0) + 7,1). substr($code2,strpos($code1,substr($ps,5,1),0) + 10,1). substr($code2,strpos($code1,substr($ps,2,1),0) + 5,1). substr($code2,strpos($code1,substr($ps,3,1),0) + 1,1). substr($code2,strpos($code1,substr($ps,8,1),0) + 8,1). substr($code2,strpos($code1,substr($ps,7,1),0) + 9,1). substr($code2,strpos($code1,substr($ps,0,1),0) + 4,1). substr($code2,strpos($code1,substr($ps,4,1),0) + 3,1). substr($code2,strpos($code1,substr($ps,9,1),0) + 6,1). substr($code2,strpos($code1,substr($ps,6,1),0) + 2,1);

return $val;

}

$end_time = microtime(true);

$execution_time = ($end_time - $start_time);

echo " Execution time of script = ".$execution_time." Sec";

echo '
';

echo ScramblePassword($ps = 'testing');

I hope you like it. Video tutorial is a

Continue Reading

How to Activate Do Not Disturb (DND)

How to Activate Do Not Disturb (DND)

By Deepak Sharma

The Indian Telecom Industry has millions of subscribers, that allow the consumers to communicate with their loved ones by calling or messaging. At the same time, the telemarketing companies make indiscreet calls to consumers to sell their products and flood their inbox with promotional messages, which can be annoying at most times. To tackle this problem, the Telecom Regulatory Authority of India (TRAI) has come up with a unique solution called DO NOT DISTURB (DND) registry.

What is DND?

To stop receiving unwanted telemarketing calls and messages, you can register with your service provider’s Do No Disturb registry. The service provider will in turn register your number at the National Do Not Call (NDNC) registry within 45 days.

The NDNC Registry is a database having the list of all telephone numbers of the subscribers who do not want to receive commercial calls or SMS. Telemarketers have to verify the calling number list in the NDNC registry before making a call. So rest assured, the telemarketers will not trouble you else they will be fined for calling you.

How to register your number on the DND registry?

If you choose not to receive any commercial messages or calls i.e for fully blocked registration:

  • You can call 1909 (toll free) from your landline or mobile and select your preferences.
  • You can also register by SMS by sending START DND or START 0 to 1909.

If you choose to receive SMS on select categories or for partially blocked registration, you can send SMS in this format START<space><preference no> to 1909. There are 7 preference numbers to choose from:

  • START 0- Fully blocked
  • START 1- Banking, Insurance, Financial products and credit cards
  • START 2- Real Estate
  • START 3- Education
  • START 4- Health
  • START 5- Consumer goods and automobiles
  • START 6- Communication, Broadcasting, Entertainment and IT
  • START 7- Tourism and Leisure

For instance, type START 4 to 1909, if you want to receive messages only on HEALTH. You can also include more than one preference number like START 4,6 to receive messages for more than one preference. 

To Deregister:

  • You can deregister by calling or sending a SMS: STOP DND to 1909.
  • You can only deactivate after 3 months or 90 days from your date of activation.

The activation or deactivation of DND will be effective within 7 days from the date of registration. Subscribers can also register at their mobile operator’s website. You can also check the status of your number [here](https://www.nccptrai.gov.in/nccpregistry/search.misc). Now with the DND service and TRAI’s stringent orders implementing SMS restrictions, mobile subscribers can get rid of pesky calls and unwanted messages.

Continue Reading

How to Integrate PAYTM Payment Gateway in PHP

By Deepak Sharma

How to Integrate PAYTM Payment Gateway in PHP

Hello Friends today I am talking about how we can integrate Paytm Payment Gateway in PHP Based website, in simply and easy way with video tutorial.

Believe me,  most of the time we are facing problem during integration of any type of payment gate way, but it is not much hard as we think. Today I shall tell you to integrate Paytm payment gateway in PHP websites.

These are the follow steps:

Step 1: First of all we need a php integration kit of Paytm that will provided by Paytm (https://github.com/Paytm-Payments/Paytm_Web_Sample_Kit_PHP) download from this url.

Step 2: Now extract the .zip in to your localhost root folder(www or htdocs).

Step 3: Now we found 4 files(pgRedirect.php,pgResponse.php,TxnStatus.php,TxnTest.php) and 1 folder(lib).

Step 4: Now click on lib floder, there are 2 files as config_paytm.php and encdec_paytm.php.

Step 5: Now open config_paytm.php. This file contents all criedentials of paytm gateways such as

define('PAYTM_ENVIRONMENT', 'TEST'); // PROD
define('PAYTM_MERCHANT_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxx'); //Change this constant's value with Merchant key downloaded from portal
define('PAYTM_MERCHANT_MID', 'xxxxxxxxxxxxxxxxxxxxxxx'); //Change this constant's value with MID (Merchant ID) received from Paytm
define('PAYTM_MERCHANT_WEBSITE', 'xxxxxxx'); //Change this constant's value with Website name received from Paytm

here PAYTM_ENVIRONMENT are 2 type TEST / PROD, at first we will integrate gateway in TEST mode after succesfully 2-3 transaction on test mode then switch on PROD mode (Production mode paytm crediantials are different then testing mode that provide by Paytm Team after successfully on testing mode.)

PAYTM_MERCHANT_MID is also provide by the paytm team via email..

PAYTM_MERCHANT_KEY is also provide by the paytm team via email.

PAYTM_MERCHANT_WEBSITE this is also a unique and also provide by the paytm team via email.

Set are these criedentials correctly.

Step 6: Now open pgRedirect.php file.

$ORDER_ID = $_POST["ORDER_ID"];
$CUST_ID = $_POST["CUST_ID"];
$INDUSTRY_TYPE_ID = $_POST["INDUSTRY_TYPE_ID"];
$CHANNEL_ID = $_POST["CHANNEL_ID"];
$TXN_AMOUNT = $_POST["TXN_AMOUNT"];

// Create an array having all required parameters for creating checksum.
$paramList["MID"] = PAYTM_MERCHANT_MID;
$paramList["ORDER_ID"] = $ORDER_ID;
$paramList["CUST_ID"] = $CUST_ID;
$paramList["INDUSTRY_TYPE_ID"] = $INDUSTRY_TYPE_ID;
$paramList["CHANNEL_ID"] = $CHANNEL_ID;
$paramList["TXN_AMOUNT"] = $TXN_AMOUNT;
$paramList["WEBSITE"] = PAYTM_MERCHANT_WEBSITE;
 
$paramList["CALLBACK_URL"] = "http://localhost/PaytmKit/pgResponse.php";
$paramList["MSISDN"] = $MSISDN; //Mobile number of customer
$paramList["EMAIL"] = $EMAIL; //Email ID of customer
$paramList["VERIFIED_BY"] = "EMAIL"; //
$paramList["IS_USER_VERIFIED"] = "YES"; //

All above variable are reqired in post method in form will discuse later.

Step 7: Now open TxnTest.php

in this file creating form that is submitting to paytm payment gateways

<form method="post" action="pgRedirect.php">


        <table border="1">


            <tbody>
                <tr>
                    <th>S.No</th>


                    <th>Label</th>


                    <th>Value</th>
                </tr>
                <tr>
                    <td>1</td>


                    <td><label>ORDER_ID::*</label></td>


                    <td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20"
                        name="ORDER_ID" autocomplete="off"
                        value="<?php echo  "ORDS" . rand(10000,99999999)?>">


                    </td>
                </tr>
                <tr>


                    <td>2</td>
                    <td><label>CUSTID ::*</label></td>


                    <td><input id="CUST_ID" tabindex="2" maxlength="12" size="12" name="CUST_ID" autocomplete="off" value="CUST001"></td>
                </tr>


                <tr>
                    <td>3</td>


                    <td><label>INDUSTRY_TYPE_ID ::*</label></td>


                    <td><input id="INDUSTRY_TYPE_ID" tabindex="4" maxlength="12" size="12" name="INDUSTRY_TYPE_ID" autocomplete="off" value="Retail"></td>
                </tr>


                <tr>
                    <td>4</td>


                    <td><label>Channel ::*</label></td>


                    <td><input id="CHANNEL_ID" tabindex="4" maxlength="12"
                        size="12" name="CHANNEL_ID" autocomplete="off" value="WEB">
                    </td>


                </tr>


                <tr>
                    <td>5</td>


                    <td><label>txnAmount*</label></td>


                    <td><input title="TXN_AMOUNT" tabindex="10"
                        type="text" name="TXN_AMOUNT"
                        value="1">


                    </td>
                </tr>


                <tr>
                    <td></td>


                    <td></td>


                    <td><input value="CheckOut" type="submit"    onclick=""></td>
                </tr>


            </tbody>


        </table>
            

in this file ORDER_ID is unique every time when submitting to paytm gateways.

CUST_ID is either unique or from your database dynamically generated customer id

INDUSTRY_TYPE_ID is generally provided by the paytm but in testing phase use Retail

CHANNEL_ID for website set WEB

TXN_AMOUNT is your transaction amount that send to paytm gateways greater than or equal to 1.

Step 8: now open pgResponse.php

in this file

$paytmChecksum = "";
$paramList = array();
$isValidChecksum = "FALSE";

$paramList = $_POST;
$paytmChecksum = isset($_POST["CHECKSUMHASH"]) ? $_POST["CHECKSUMHASH"] : ""; //Sent by Paytm pg

//Verify all parameters received from Paytm pg to your application. Like MID received from paytm pg is same as your application’s MID, TXN_AMOUNT and ORDER_ID are same as what was sent by you to Paytm PG for initiating transaction etc.
$isValidChecksum = verifychecksum_e($paramList, PAYTM_MERCHANT_KEY, $paytmChecksum); //will return TRUE or FALSE string.


if($isValidChecksum == "TRUE") {


    echo "Checksum matched and following are the transaction details:" . "
";


    if ($_POST["STATUS"] == "TXN_SUCCESS") {


        echo "Transaction status is success" . "
";


        //Process your transaction here as success transaction.
        //Verify amount & order id received from Payment gateway with your application's order id and amount.
    }


    else {


        echo "Transaction status is failure" . "
";


    }

    if (isset($_POST) && count($_POST)>0 )
    {
        foreach($_POST as $paramName => $paramValue) {
                echo "
" . $paramName . " = " . $paramValue;
        }
    }
    

}
else {
    echo "Checksum mismatched.";
    //Process transaction as suspicious.
}

this file give you response after transaction is made from paytm payment gate way.

This file url is your callback url that maintioned earily in the pgRedirect.php i.e  $paramList["CALLBACK_URL"] = "http://localhost/PaytmKit/pgResponse.php";

 

 

Step 9: Now after successfully done your first transaction paytm team need screenshot of successfull tranasction that will you get from pgStatus.php 

 

Complete Demo of  Transaction shown in this video as below...

Ask question and get answer MyInboxHub - The Tutorial Points

Thanks for reading, for more details go through MyInboxHub - The Tutorial Points

Continue Reading

How to Recover Signed APK Key Store Password in Android Studio

By Harsh Aggrawal

How to Recover Signed APK Key Store Password in Android Studio

Believe me, it is frustrating to face the problem when you forget the Key Store Password in Android Studio. For most of the time we search on Internet for an actual solution. But getting right answer is not an easy task. Most websites just upload only one method to solve an error but that one method is not enough to work. And again we are back to google and search it again for a correct solution. Most of the developers are faced the problem to get forgot Key Store Password in Android Studio. Do not worry if you are suffering from this problem, this article will provide you to provide solution how to recover Signed APK Key Store password.

Trick 1:

Step 1: Open folder/ directory where your all Android project are stored or project folder.
Like \AndroidStudioProjects.

Step 2: Now Open your project named folder for eg. my project folder name is cryptoapp.

Step 3: Now, List showing as below...

Step 4: Now Open .../app/ Folder and find the .jks file. As showing in image below.

Step 5 : Now open .jks file.

On the line 1 text are readable form in English language is your Key Store Password of your Signed APK Project.
According to my eg. in this case password is prolang@ is my project key store password. As Shown in image below :


Try this as your password it will works for you. If it is not work go through trick 2.

Trick 2:

Step 1 : Open \.gradle\3.3\taskArtifacts\ or find taskArtifacts.bin file in your android project folder/directory.

Step 2: Now open this file in Any Editor use Notepad++.

Now find this word œpackagingOptions.pickFirsts in this file, it occurs so many times, so we found when this word have a readable string as prefix. Most of the time we found to words first androidœpackagingOptions.pickFirsts so, forgot/leave this one. Now goto second click on find button this time found another readable prefix of œpackagingOptions.pickFirsts that prefix is the key store password of your android app project. In this eg. I found prolang@œpackagingOptions.pickFirsts as i said that prolang@ is my password, which is same as i found in trick 1 , as shown in image below.


I hope this time you recovered your forgot key store password of your Android app project.

I Hope these tricks are helpful to you. If not then comment as below...

Video tutorial on this topic will coming soon.

If you want to learn to integrate CCAvenue Payment gateway in your PHP Website watch now...



Ask question and get answer MyInboxHub - The Tutorial Points

Thanks for reading, for more details go through MyInboxHub - The Tutorial Points

Continue Reading

How to Integrate CCAvenue Payment Gateway in PHP

By Deepak Sharma

How to Integrate CCAvenue Payment Gateway in PHP

 

 

 

Hello Friends today I am talking about how we can integrate CCAvenue Payment Gateway in website, in simply and easy way.

 

Believe me,  most of the time we are facing problem during integration of any type of payment gate way, but it is not much hard as we think. Today I shall tell you to integrate CCAvenue payment gateway.

 

These are the following steps:

 

Step 1: First of all we need a php integration kit of CCAvenue we will provided by CCAvenue or from the merchant panel.

 

Step 2: Now extract the .zip in to your localhost root folder(www or htdocs).

 

Step 3: Now we found 4 files, adler32.php, Aes.php, Checkout.php, redirecturl.php.

 

Step 4: alder.php and Aes.php we donot modify these two files. we need to work on Checkout.php and redirecturl.php.

 

Step 5: Now open checkout.php. I this file first of all mention merchant_id and working key that are provides by the CCAvenue or From the merchant panel of CCAvenue.

 

Step 6: Rest are Post Parameter or variable as show bellow..

 

$amount=$_POST['Amount'];   // Here you can mention your amount or Product / Service.

 

$order_id=$_POST['Order_Id'];  //Here is your unique order Id generated by your system.

 

$url='./redirecturl.php';//$_POST['Redirect_Url']; //your redirect URL where your customer will be redirected after authorization from CCAvenue.

 

$billing_cust_name=$_POST['billing_cust_name']; //Here you can mention the name of customer

 

$billing_cust_address=$_POST['billing_cust_address'];//Here you can mention the address of customer.

 

$billing_cust_country=$_POST['billing_cust_country']; //Here customer country.

 

$billing_cust_state=$_POST['billing_cust_state'];//Customer state.

 

$billing_city=$_POST['billing_city']; // Customer City.

 

$billing_zip=$_POST['billing_zip']; // Customer Zip/Pincode .

 

$billing_cust_tel=$_POST['billing_cust_tel'];// Customer Mobile number.

 

$billing_cust_email=$_POST['billing_cust_email']; // Customer Email ID

 

//Now you need to mention customer delivery details. Most of the time delivery details are the same as customer billing details. So Write is same as Billing details.

 

$delivery_cust_name=$_POST['delivery_cust_name'];

$delivery_cust_address=$_POST['delivery_cust_address'];

$delivery_cust_country=$_POST['delivery_cust_country'];

$delivery_cust_state=$_POST['delivery_cust_state'];

$delivery_city=$_POST['delivery_city'];

$delivery_zip=$_POST['delivery_zip'];

$delivery_cust_tel=$_POST['delivery_cust_tel'];

$delivery_cust_notes=$_POST['delivery_cust_notes'];

 

Step 7 : Now Come to redirecturl.php and pen it.

 

Step 8 : As I mention $url='./redirecturl.php'; in (Step 6), we you came back after successfully or unsuccessful transaction from the CCAvneue payment gateway this redirecturl.php is your next landing page where you go lost of parameter from CCAvenue Server in POST method that would be encrypted. Show as bellow...

 

$encResponse=$_POST["encResponse"]; //This is the response sent by the CCAvenue Server

 

Now there are 4 things happen 

  1. $AuthDesc==="Y", i.e Thank you for shopping with us. Your credit card has been charged and your transaction is successful. We will be shipping your order to you soon.      

 

//Here you need to put in the routines for a successful 

//transaction such as sending an email to customer,

//setting database status, informing logistics etc etc.

 

     2. $AuthDesc==="B", i.e Thank you for shopping with us.We will keep you posted regarding the status of your order through e-mail

        //Here you need to put in the routines/e-mail for a  "Batch Processing" order

//This is only if payment for this transaction has been made by an American Express Card

//since American Express authorisation status is available only after 5-6 hours by mail from ccavenue and at the "View Pending Orders"

 

      3. $AuthDesc==="N", i.e Thank you for shopping with us.However,the transaction has been declined.

 

//Here you need to put in the routines for a failed

//transaction such as sending an email to customer

//setting database status etc etc.

 

      4. i.e else condition Security Error. Illegal access detected.

                 //Here you need to simply ignore this and dont need

//to perform any operation in this condition

 

Step 9: Now you can perform any operation in the above condition such as Store in Database for future references Or Show to customer and so much, what ever you want.

 

 

Complete Demo of  Transaction shown in this video as below...

 

 

Ask question and get answer MyInboxHub - The Tutorial Points

 

 

 

 

Thanks for reading, for more details go through MyInboxHub - The Tutorial Points

 

Continue Reading

Complete solution to resolve Play Store error 920

By Harsh Aggrawal

Complete solution to resolve Play Store error 920

Believe me,  it is frustrating to face this error until you find a solution of Error 920. For most of the time we search on Internet for an actual solution. But getting right answer is not an easy work. Most websites just upload only one method to solve an error. And generally that one method is not enough to work. And again we are back to google and search it again for a correct solution. Most of the people face error 920 on play store. Don not worry if you are suffering from this error,  this article will provide you four different methods to solve this error 920 problem.

Most of the time error 920 on play store come due to following reason some times too much load on your data connection, the connection is getting hampered due to overload,  cache is not cleaned properly, network connection is not stable.

METHOD 1: Clearing the cache and data of Google Play Store and Google play service

Just go to settings and clear the cache and clear the data of the play store. This will solve the error code 920 the next time you download or update any application from the Google Play store.

Following are the steps:
Step 1 – Go to settings of your device.
Step 2 – Now find “Applications”. Here you can find “Google Play Store” option. Open it.

Step 3 – Now, at the bottom, you can find “Clear Cache” option. Press it and clear your all cache.



METHOD 2: Re-installing the application

Step 1 - Go to the application that you got the error with.
Step 2 - Open that application download page on the Play store.
Step 3 - Uninstall it or even uninstall all the update.
Step 4 - Now you clear the task manager and try installing it once again. If the play store error 920 doesn’t come then you have solved the problem and now wasn’t that easy. So it is always best to try this step before doing anything else.

METHOD 3: Switching off  your phone and turning the wifi (cellular data) on.

This is another easy method in solving the play store error 920. 
Step 1 - To remove that load Just turn your wifi off and then turn your wifi on (the same goes with your cellular data).
Step 2 - Now after doing this go to your Play Store application and download the application that you need. Now you won't face Play Store Error 920 .


METHOD 4: Removing and adding back your Google account

This is the another method .  Try each method in the given order until you solve the play store error 920. If you reached here then you are truly desperate to get rid of this error. The best and guaranteed option is to remove all your Google accounts from your phone.
Step 1 - Go to the Settings of your Mobile.
Step 2- Now, find “Accounts” and then go to “Google Accounts”.
Step 3 - Now after successfully removing your account re-add your account. Enter your email id and password and go back to the play store and find the application that you were downloading or updating when the error code 920 you faced. Now re-install or update it again. This time you will not face store error 920.

I Hope this steps are helpful to you. If not then comment as bellow...

If you want to learn to integrate CCAvenue Payment gateway in your PHP Website watch now...



Ask question and get answer MyInboxHub - The Tutorial Points

Thanks for reading, for more details go through MyInboxHub - The Tutorial Points



Continue Reading

Tutorial - 5 Session Data CodeIgniter PHP Framework

By Harsh Aggrawal

Tutorial - 5 | Session Data | CodeIgniter PHP Framework

Hi guys this tutorial based on PHP Framework. Today in this tutorial we discuss on how to set and get Session  in CI.

We have already set project in previous tutorial.

Lets start...

  • Go to application ->Home // open home controller.
  • First of all load session library in constructor.
        function __construct()
{
parent::__construct();
$this->load->model('HomeModel');
$this->load->library('session');
}
  • Create method..
public function setsession(){
        $newdata = array(
        'username'  => 'Amit Chanchlani',
        'email'     => 'AmitChanchlani@amit.com',
        'logged_in' => TRUE
);
$this->session->set_userdata($newdata);
echo "Session Variable set succesfully";
}
  • In above method, $newdata is array in which we can store our data variable, 'logged_in'=>TRUE is compulsory using Login program.
  • set_userdata() CI function use to set variable in session.
  • Now write code for get session variable values. create method as below..
         public function getsession(){
$sessionData = $this->session->userdata();
echo "<pre>"; print_r($sessionData); die;
}
  • Now Click on Get Session Value, browser show some thing like image below..

  • In above line of code show array of stored values in session.
  • Now how to delete session from server.
  • You can remove session data by 2 methods as below...
$this->session->unset_userdata('some_name');

or 


$sessionData = array('username', 'email');

$this->session->unset_userdata($sessionData );

  • Now create method 
public function removesessiondata(){
$sessionData = array('username', 'email');

$this->session->unset_userdata($sessionData );
echo "Session data removed succesfully.";
echo ' <a href="'.base_url().'home/getsession">Get Session Values</a>';

}
  • After removing session data... some show like this as follow...

  • Now Check Session removed successfully or not by click on Get Session Values

  • Look at above image that means session variable username and name removed successfully from session.
I hope you like this tutorial.
On next tutorial we will discuss on  how to Create Login,, profile and logout pages in CodeIgniter using session data.

Ask question and get answer MyInboxHub - The Tutorial Points

Thanks for reading, for more details go through MyInboxHub - The Tutorial Points

Continue Reading

Prashant Soni CKD

By Prashant Soni

Prashant soni CKD

Prashant soni CKD 

web development training services, Open Source Web Development Services, search engine marketing, Manual Search Engine Submission, Mobile Search Engine Marketing, Website Designing, software applications, Software Development Service, education & training, Website Development Services, Dynamic Web Designing services

Continue Reading

Awesome font icons

By Devesh Upadhyay

Icon Description
fa fa-align-center
fa fa-align-justify
fa fa-align-left
fa fa-align-right
fa fa-bold
fa fa-chain
fa fa-chain-broken
fa fa-clipboard
fa fa-columns
fa fa-copy
fa fa-cut
fa fa-dedent
fa fa-eraser
fa fa-file
fa fa-file-o
fa fa-file-text
fa fa-file-text-o
fa fa-files-o
fa fa-floppy-o
fa fa-font
fa fa-header
fa fa-indent
fa fa-italic
fa fa-link
fa fa-list
fa fa-list-alt
fa fa-list-ol
fa fa-list-ul
fa fa-outdent
fa fa-paperclip
fa fa-paragraph
fa fa-paste
fa fa-repeat
fa fa-rotate-left
fa fa-rotate-right
fa fa-save
fa fa-scissors
fa fa-strikethrough
fa fa-subscript
fa fa-superscript
fa fa-table
fa fa-text-height
fa fa-text-width
fa fa-th
fa fa-th-large
fa fa-th-list
fa fa-underline
fa fa-undo
fa fa-unlink
Continue Reading

Tutorial - 4 | CodeIgniter PHP Framework

By Harsh Aggrawal

Hi guys this tutorial based on PHP Framework. Today in this tutorial we discuss on how to execute insert and update queries using model in CI.


We already created model - views -controller
Now follow the step :

  • Firstly we execute insert query in CI
  • Open home view and create form in html

<html>

<head>

<title>Insert in CI </title>

</head>

<body>

<form action="<?php echo base_url(); ?>Home/add" method="post">

<h1>Enter student detail</h1>

<div>Student Name</div>

<input type="text" name="name">

<br>

 

<div>Student Email Id</div>

<input type="text" name="email">

<br/>

<input type="submit" value="submit">

</form>

</body>

</html>

  • Now save this file in application->views->insert.php with .php extension.
  • Now Open Home controller and create new method named insert(); and load insert view in it.

 

public function insert()

{

$this->load->view('insert', $data);

}

  • Now open browser and type http://localhost/CI/Home/insert in url. (if you getting error some thing like below : )

  • Now goto application->config open config.php
  • And replace 

$config['base_url'] = ''; with this

 

$config['base_url'] = 'http://localhost/CI/'; then save it.

  • Now open autoload.php from config directory.
  • replace 

$autoload['helper'] = array(''); with $autoload['helper'] = array('url'); this.

  • Now refresh browser and look something like : 

  • Now open Controller Create another method named add();

         public function add()

{

$data = $this->input->post();

$result = $this->HomeModel->add($data);

if($result){

redirect(base_url().'Home/index?alert=success');

}else{

redirect(base_url().'Home/index?alert=failed_to_inserted');

}

}

  • Now Open Homemodel.php from models directory.
  • Create method add();

          public function add($data){

   $arr = array(

'name'=>$data['name'],

'email'=>$data['email'],

   );

   $this->db->insert('demo',$arr);

  return $this->db->insert_id();

          }

  • All is done, Now enter name and email id then hit submit.

 

  • Now after redirection

 

If your screen looks like as above Image, its means you successfully done your JOB.


I hope you like this tutorial.
On next tutorial we will discuss on  how to insert and update database in CodeIgniter.

 

Ask question and get answer MyinboxHub - The Tutorial Points

Thanks for reading, for more details go through MyinboxHub - The Tutorial Points

 

Continue Reading

Bootstrap Icons

By Ankur Rajput

glyphicon glyphicon-adjust &#xe063;
glyphicon glyphicon-alert &#xe209;
glyphicon glyphicon-align-left &#xe052;
glyphicon glyphicon-align-center &#xe053;
glyphicon glyphicon-align-right &#xe054;
glyphicon glyphicon-align-justify &#xe055;
glyphicon glyphicon-apple &#xf8ff;
glyphicon glyphicon-arrow-left &#xe091;
glyphicon glyphicon-arrow-right &#xe092;
glyphicon glyphicon-arrow-up &#xe093;
glyphicon glyphicon-arrow-down &#xe094;
glyphicon glyphicon-asterisk &#x2a;
glyphicon glyphicon-baby-formula &#xe216;
glyphicon glyphicon-backward &#xe071;
glyphicon glyphicon-ban-circle &#xe090;
glyphicon glyphicon-barcode &#xe040;
glyphicon glyphicon-bed &#xe219;
glyphicon glyphicon-bell &#xe123;
glyphicon glyphicon-bishop &#xe214;
glyphicon glyphicon-bitcoin &#xe227;
glyphicon glyphicon-blackboard &#xe218;
glyphicon glyphicon-bold &#xe048;
glyphicon glyphicon-book &#xe043;
glyphicon glyphicon-bookmark &#xe044;
glyphicon glyphicon-briefcase &#xe139;
glyphicon glyphicon-bullhorn &#xe122;
glyphicon glyphicon-calendar &#xe109;
glyphicon glyphicon-camera &#xe046;
glyphicon glyphicon-cd &#xe201;
glyphicon glyphicon-certificate &#xe124;
glyphicon glyphicon-check &#xe067;
glyphicon glyphicon-chevron-down &#xe114;
glyphicon glyphicon-chevron-left &#xe079;
glyphicon glyphicon-chevron-right &#xe080;
glyphicon glyphicon-chevron-up &#xe113;
glyphicon glyphicon-circle-arrow-down &#xe134;
glyphicon glyphicon-circle-arrow-left &#xe132;
glyphicon glyphicon-circle-arrow-right &#xe131;
glyphicon glyphicon-circle-arrow-up &#xe133;
glyphicon glyphicon-cloud &#x2601;
glyphicon glyphicon-cloud-download &#xe197;
glyphicon glyphicon-cloud-upload &#xe198;
glyphicon glyphicon-cog &#xe019;
glyphicon glyphicon-collapse-down &#xe159;
glyphicon glyphicon-collapse-up &#xe160;
glyphicon glyphicon-comment &#xe111;
glyphicon glyphicon-compressed &#xe181;
glyphicon glyphicon-console &#xe205;
glyphicon glyphicon-copy &#xe205;
glyphicon glyphicon-copyright-mark &#xe194;
glyphicon glyphicon-credit-card &#xe177;
glyphicon glyphicon-cutlery &#xe179;
glyphicon glyphicon-dashboard &#xe141;
glyphicon glyphicon-download &#xe026;
glyphicon glyphicon-download-alt &#xe025;
glyphicon glyphicon-duplicate &#xe224;
glyphicon glyphicon-earphone &#xe182;
glyphicon glyphicon-edit &#xe065;
glyphicon glyphicon-education &#xe233;
glyphicon glyphicon-eject &#xe078;
glyphicon glyphicon-envelope &#x2709;
glyphicon glyphicon-equalizer &#xe210;
glyphicon glyphicon-erase &#xe221;
glyphicon glyphicon-eur &#x20ac;
glyphicon glyphicon-euro &#x20ac;
glyphicon glyphicon-exclamation-sign &#xe101;
glyphicon glyphicon-expand &#xe158;
glyphicon glyphicon-export &#xe170;
glyphicon glyphicon-eye-close &#xe106;
glyphicon glyphicon-eye-open &#xe105;
glyphicon glyphicon-facetime-video &#xe059;
glyphicon glyphicon-fast-backward &#xe070;
glyphicon glyphicon-fast-forward &#xe076;
glyphicon glyphicon-file &#xe022;
glyphicon glyphicon-film &#xe009;
glyphicon glyphicon-filter &#xe138;
glyphicon glyphicon-fire &#xe104;
glyphicon glyphicon-flag &#xe034;
glyphicon glyphicon-flash &#xe162;
glyphicon glyphicon-floppy-disk &#xe172;
glyphicon glyphicon-floppy-open &#xe176;
glyphicon glyphicon-floppy-remove &#xe174;
glyphicon glyphicon-floppy-save &#xe175;
glyphicon glyphicon-floppy-saved &#xe173;
glyphicon glyphicon-folder-close &#xe117;
glyphicon glyphicon-folder-open &#xe118;
glyphicon glyphicon-font &#xe047;
glyphicon glyphicon-forward &#xe075;
glyphicon glyphicon-fullscreen &#xe140;
glyphicon glyphicon-gbp &#xe149;
glyphicon glyphicon-gift &#xe102;
glyphicon glyphicon-glass &#xe001;
glyphicon glyphicon-globe &#xe135;
glyphicon glyphicon-grain &#xe239;
glyphicon glyphicon-hand-down &#xe130;
glyphicon glyphicon-hand-left &#xe128;
glyphicon glyphicon-hand-right &#xe127;
glyphicon glyphicon-hand-up &#xe129;
glyphicon glyphicon-hd-video &#xe187;
glyphicon glyphicon-hdd &#xe121;
glyphicon glyphicon-header &#xe180;
glyphicon glyphicon-headphones &#xe035;
glyphicon glyphicon-heart &#xe005;
glyphicon glyphicon-heart-empty &#xe143;
glyphicon glyphicon-home &#xe021;
glyphicon glyphicon-hourglass &#x231b;
glyphicon glyphicon-ice-lolly &#xe231;
glyphicon glyphicon-ice-lolly-tasted &#xe232;
glyphicon glyphicon-import &#xe169;
glyphicon glyphicon-inbox &#xe028;
glyphicon glyphicon-indent-left &#xe057;
glyphicon glyphicon-indent-right &#xe058;
glyphicon glyphicon-info-sign &#xe086;
glyphicon glyphicon-italic &#xe049;
glyphicon glyphicon-king &#xe211;
glyphicon glyphicon-knight &#xe215;
glyphicon glyphicon-lamp &#xe223;
glyphicon glyphicon-leaf &#xe103;
glyphicon glyphicon-level-up &#xe204;
glyphicon glyphicon-link &#xe144;
glyphicon glyphicon-list &#xe056;
glyphicon glyphicon-list-alt &#xe032;
glyphicon glyphicon-lock &#xe033;
glyphicon glyphicon-log-in &#xe161;
glyphicon glyphicon-log-out &#xe163;
glyphicon glyphicon-magnet &#xe112;
glyphicon glyphicon-map-marker &#xe062;
glyphicon glyphicon-menu-down &#xe259;
glyphicon glyphicon-menu-hamburger &#xe236;
glyphicon glyphicon-menu-left &#xe257;
glyphicon glyphicon-menu-right &#xe258;
glyphicon glyphicon-menu-up &#xe260;
glyphicon glyphicon-minus &#x2212;
glyphicon glyphicon-minus-sign &#xe082;
glyphicon glyphicon-modal-window &#xe237;
glyphicon glyphicon-move &#xe068;
glyphicon glyphicon-music &#xe002;
glyphicon glyphicon-new-window &#xe164;
glyphicon glyphicon-object-align-bottom &#xe245;
glyphicon glyphicon-object-align-horizontal &#xe246;
glyphicon glyphicon-object-align-left &#xe247;
glyphicon glyphicon-object-align-right &#xe249;
glyphicon glyphicon-object-align-top &#xe244;
glyphicon glyphicon-object-align-vertical &#xe248;
glyphicon glyphicon-off &#xe017;
glyphicon glyphicon-oil &#xe238;
glyphicon glyphicon-ok &#xe013;
glyphicon glyphicon-ok-circle &#xe089;
glyphicon glyphicon-ok-sign &#xe084;
glyphicon glyphicon-open &#xe167;
glyphicon glyphicon-open-file &#xe203;
glyphicon glyphicon-option-horizontal &#xe234;
glyphicon glyphicon-option-vertical &#xe235;
glyphicon glyphicon-paperclip &#xe142;
glyphicon glyphicon-paste &#xe206;
glyphicon glyphicon-pause &#xe073;
glyphicon glyphicon-pawn &#xe213;
glyphicon glyphicon-pencil &#x270f;
glyphicon glyphicon-phone &#xe145;
glyphicon glyphicon-phone-alt &#xe183;
glyphicon glyphicon-picture &#xe060;
glyphicon glyphicon-piggy-bank &#xe225;
glyphicon glyphicon-plane &#xe108;
glyphicon glyphicon-play &#xe072;
glyphicon glyphicon-play-circle &#xe029;
glyphicon glyphicon-plus &#x2b;
glyphicon glyphicon-plus-sign &#xe081;
glyphicon glyphicon-print &#xe045;
glyphicon glyphicon-pushpin &#xe146;
glyphicon glyphicon-qrcode &#xe039;
glyphicon glyphicon-queen &#xe212;
glyphicon glyphicon-question-sign &#xe085;
glyphicon glyphicon-random &#xe110;
glyphicon glyphicon-record &#xe165;
glyphicon glyphicon-registration-mark &#xe195;
glyphicon glyphicon-remove &#xe014;
glyphicon glyphicon-remove-circle &#xe088;
glyphicon glyphicon-repeat &#xe030;
glyphicon glyphicon-refresh &#xe031;
glyphicon glyphicon-remove-sign &#xe083;
glyphicon glyphicon-resize-full &#xe096;
glyphicon glyphicon-resize-horizontal &#xe120;
glyphicon glyphicon-resize-small &#xe097;
glyphicon glyphicon-resize-vertical &#xe119;
glyphicon glyphicon-retweet &#xe115;
glyphicon glyphicon-road &#xe024;
glyphicon glyphicon-ruble &#x20bd;
glyphicon glyphicon-save &#xe166;
glyphicon glyphicon-save-file &#xe202;
glyphicon glyphicon-saved &#xe168;
glyphicon glyphicon-scale &#xe230;
glyphicon glyphicon-scissors &#xe226;
glyphicon glyphicon-screenshot &#xe087;
glyphicon glyphicon-sd-video &#xe186;
glyphicon glyphicon-search &#xe003;
glyphicon glyphicon-send &#xe171;
glyphicon glyphicon-share &#xe066;
glyphicon glyphicon-share-alt &#xe095;
glyphicon glyphicon-shopping-cart &#xe116;
glyphicon glyphicon-signal &#xe018;
glyphicon glyphicon-sort &#xe150;
glyphicon glyphicon-sort-by-alphabet &#xe151;
glyphicon glyphicon-sort-by-alphabet-alt &#xe152;
glyphicon glyphicon-sort-by-attributes &#xe155;
glyphicon glyphicon-sort-by-attributes-alt &#xe156;
glyphicon glyphicon-sort-by-order &#xe153;
glyphicon glyphicon-sort-by-order-alt &#xe154;
glyphicon glyphicon-sound-5-1 &#xe191;
glyphicon glyphicon-sound-6-1 &#xe192;
glyphicon glyphicon-sound-7-1 &#xe193;
glyphicon glyphicon-sound-dolby &#xe190;
glyphicon glyphicon-sound-stereo &#xe189;
glyphicon glyphicon-star &#xe006;
glyphicon glyphicon-star-empty &#xe007;
glyphicon glyphicon-stats &#xe185;
glyphicon glyphicon-step-backward &#xe069;
glyphicon glyphicon-step-forward &#xe077;
glyphicon glyphicon-stop &#xe074;
glyphicon glyphicon-subscript &#xe256;
glyphicon glyphicon-subtitles &#xe188;
glyphicon glyphicon-sunglasses &#xe240;
glyphicon glyphicon-superscript &#xe255;
glyphicon glyphicon-tag &#xe041;
glyphicon glyphicon-tags &#xe042;
glyphicon glyphicon-tasks &#xe137;
glyphicon glyphicon-tent &#x26fa;
glyphicon glyphicon-text-background &#xe243;
glyphicon glyphicon-text-color &#xe242;
glyphicon glyphicon-text-height &#xe250;
glyphicon glyphicon-text-size &#xe241;
glyphicon glyphicon-text-width &#xe051;
glyphicon glyphicon-th &#xe011;
glyphicon glyphicon-th-large &#xe010;
glyphicon glyphicon-th-list &#xe012;
glyphicon glyphicon-thumbs-down &#xe126;
glyphicon glyphicon-thumbs-up &#xe125;
glyphicon glyphicon-time &#xe023;
glyphicon glyphicon-tint &#xe064;
glyphicon glyphicon-tower &#xe184;
glyphicon glyphicon-transfer &#xe178;
glyphicon glyphicon-trash &#xe020;
glyphicon glyphicon-tree-conifer &#xe199;
glyphicon glyphicon-tree-deciduous &#xe200;
glyphicon glyphicon-triangle-bottom &#xe252;
glyphicon glyphicon-triangle-left &#xe251;
glyphicon glyphicon-triangle-right &#xe250;
glyphicon glyphicon-triangle-top &#xe253;
glyphicon glyphicon-unchecked &#xe157;
glyphicon glyphicon-upload &#xe027;
glyphicon glyphicon-usd &#xe148;
glyphicon glyphicon-user &#xe008;
glyphicon glyphicon-volume-down &#xe037;
glyphicon glyphicon-volume-off &#xe036;
glyphicon glyphicon-volume-up &#xe038;
glyphicon glyphicon-warning-sign &#xe107;
glyphicon glyphicon-wrench &#xe136;
glyphicon glyphicon-yen &#x00a5;
glyphicon glyphicon-zoom-in &#xe015;
glyphicon glyphicon-zoom-out &#xe016;
Continue Reading

Skype obtaining call recording feature on Android and different platforms

By Ankit Gupta

Skype has been on the reply for a long time currently. There are much Better alternative on most platforms, like Google Hangouts and Discord. As per with a report from The Verge, Skype can shortly be obtaining a Call recording feature on Android in conjunction with alternative platforms. It’s a cloud-based feature, therefore you can do it pretty much about anyplace that you  can use Skype. It combines all screens shared within the Call, in conjunction with webcams and, of course, audio.

While technically Skype supported Call recording 15 years ago, this is often its initial true introduction. Users trying to record their Skype calls had to appear towards alternatives.  On Android, that proved somewhat of a difficult task years ago when screen recording required root. Currently it’s  easier, however Built-in support for it's even higher. For privacy reasons, all users within the Call are notified if a user is recording.

This new Call recording feature comes as a part of the fresh Skype 8.0 update, that was discharged nowadays. It Features a mobile-like style on desktops and supports Twitter-esque mentions and full end-to-end coding. 1080p video calling support has also been added, and a video call will have up to 24 individuals in it at just one occasion. There’s currently a chat media gallery too, where you'll be able to see all of your shared photos in an exceedingly speech.

While Skype is clearly attempting to gain a foothold into the market, is it too little , too late? Alternatives have had an extended time to require off and Microsoft has solely began to listen to it’s VoIP service within the last 2 years or so. With the addition of Skype business executive too, it’s clear that the service is not any longer on the backburner. We’ll have to see how it fares in the coming months and whether or not or not the service will build a real comeback.

Continue Reading

How to work with Google Assistant on your iPhone and android smartphone

By Ankit Gupta

Google unraped its virtual assistant back in 2016. known as Google Assistant, it rivals similar services from Apple, Microsoft and Amazon; known as SiriCortana and Alexa severally. Over the years, the search giant has created Google more personalized, creating it associate ready personal assistant for many users. The Google's assistant isn't solely accessible on Android and iOS device however additionally on IoT devices like smart TVs, refrigerators, smart speakers etc.

Other than search, Google Assistant currently helps users in tasks admire turning the lights on/off, switch on/off Wi-Fi and additional simply by voice commands.

So if you're questioning a way to get going with Google Assistant on your smartphone, here’s a whole ready-to-use guide for you:

How to Download and install Google Assistant

Most of the robot smartphones nowadays escort Google Assistant pre-installed and if it’s not there, you'll be able to merely Download it from Google Play Store. Apple iPhone/iPad users need to download it from the App Store.

How to setup Google Assistant

Setting up Google Assistant is a straightforward affair, merely follow the steps below supported the device you're using:

For Android Users:

1. Press and hold the home button to activate Google Assistant.

2. tap on Agree to settle for the terms and conditions.

3. Now activate the voice command, tap on Continue and switch on the Ok Google toggle on consecutive screen.

4. Once done, Google Assistant is all able to answer your queries and do heaps additional.

For iPhone/iPad users:

1. Open Google Assistant app.

2. Follow instructions in the app

3. Turn on the Ok Google detection option.

4. The app will ask you to say 'Ok Google' and 'Hey Google' commands four times.

5. Once you are done with the above steps, you can now use 'OK Google' command to activate Google Assistant.

How to setup voice matching:

Turning on the voice matching feature will let you avoid the accidentally activating the app. With this feature, Google can recognize your voice and trigger the app. To setup, the voice matching feature follow the steps below:

1. Head to the Google app and tap on the 3 horizontal bars from the lowest right corner of the app.

2. Tap on Settings and from the Google Assistant section tap on the Settings possibility once more.

3. Tap on the Phone possibility and switch on the Ok Google detection.

5. After this, the app can raise you to use 'Ok Google' and 'Hey Google' command fourfold.

6. Tap on 'Done' to avoid wasting your voice.

7. Also, activate the Unlock with Voice Match choice to enable Google Assistant to unlock your phone along with your voice.

 

Continue Reading

CodeIgniter PHP Framework Tutorial - 3

By Harsh Aggrawal

Hi guys this tutorial based on PHP Framework. Today in this tutorial we discuss on how to execute mysql queries using model in CI.

First of all we know the base knowledge of MYSQL queries.

Now we create model, as we discussed earlier How to create model and which directory of CI contains model file.

Following are the steps:-

  • Open application->model , now 
  • Open your text editor Notepad++ or else create now file and write following code : -

class HomeModel extends CI_Model

{

public function __construct()

{

parent::__construct();

$this->load->database();

}

public function index() 

{

     

  }
}

  • As we already discuss each line of above code in previous tutorial.
  • Now we need to work on index() action/method, first of all we get the data from table of database.
  • I thing you have already known about database and table formation.
  • For ex - we have a Table named Student, and its fields are as follow..

CREATE TABLE table_name( id int auto increment, name varchar(255), email_id varchar(255), PRIMARY KEY( id ) );

  • Now create a query in CI..

                        $this->db->select('*');

$this->db->from('student');

$this->db->order_by('name', 'asc');

$query = $this->db->get();

                       if($query->num_rows()>0) {

       return $query->result_array();

                        }

  • The above query help to fetch whole data from student table.
  • All data return to controller, and code looks like....

class Home extends CI_Controller {

 

function __construct()

{

parent::__construct();

$this->load->model('HomeModel');

 

}

public function index()

{

$data['students_list'] = $this->HomeModel->getStudentsList();

}

}

  • $data['students_list'] assign a variable in which store data get from model.
  • Now display this data on web page... firstly we create view file... in view directory.

<html>

<table border="1">

<thead>

<tr>

<td>Id</td>

<td>Name</td>

<td>Email Id</td>

</tr>

</thead>

<?php foreach($students_list as $list){ ?>

<tr>

<td><?php echo $list['id'] ?></td>

<td><?php echo $list['name'] ?></td>

<td><?php echo $list['email_id'] ?></td>

</tr>

<?php }?>

</table>

</html>

  • and save it as home.php in application->view directory.
  • Now come to controller, now we can pass the data variable to the view, firstly we need to load view file on controller using... $this->load->view('home', $data);
  • Now passing the $data variable to view file... some thing looks like...

        public function index()

{

$data['students_list'] = $this->HomeModel->getStudentsList();

$this->load->view('home', $data);

}

  • Now goto application->config->database  as we discuss earlier... check database username, password, database name is corrected.

         'hostname' => 'localhost',

'username' => 'root',

'password' => '',

'database' => 'demo',

  • Now open browser , then project... Open url http://localhost/CI/home
  • if browser window looks like as below...

 

  • Its means your work done successfully.


If your screen looks like as above Image, its means you successfully done your JOB.

I hope you like this tutorial.
On next tutorial we will discuss on  how to insert and update database in CodeIgniter.

Thanks for reading, for more details go through MyinboxHub - The Tutorial Points

Continue Reading

Google Pixel smartwatches are expected to come by the end of this year.

By suryansh gautam

The google watches are expected to be power-driven by Qualcomm Snapdragon Wear 3100 platform.

Google's robot smartwatches did not do nearly as good as Apple watches did within the market currently. Not like Apple, Google never extended its own wearables but integrated its software package in watches from different brands such as LG, Fossil cluster and Movado. However, we may get to see Google's own smartwatches coming back this year.

According to a tweet by communicator Evan Blass, Google is organizing its wearable which can be sold-out beneath the pixel brand. The smartwatch can come back along with the combination of smartphones pixel 3, pixel 3 XL and pixel Buds. The precise amount of its launch has not been specified however it's going to precede the tip of this year.

 Google is organizing its wearable which will be sold under the Pixel brand.

This May, WinFuture(online web-based portal) free a report concerning code-names of 3 models of element watches together with a brief on their hardware. Code-named as Ling, Triton and Sardine, the wearables are expected to be in their final stages of development. The watches are expected to be hopped-up by Qualcomm Snapdragon 3100 platform whereas the presently offered ones utilize Qualcomm Snapdragon 2100 processor.

On the feature front, Google Element smartwatches can support GPS and heart-rate tracker for the fitness aware users. They may additionally come back equipped with voice command options that, going by this trend, is obvious. The forthcoming Snapdragon 3100 platform is claimed to come back equipped with higher battery consumption capabilities.

Google presently offers smartwatches through its Wear OS platform where you'll be able to notice a range of watches that work on Android also an iPhone. The future accessories will also work with both the operative systems while providing advanced options and will provide a competition to Apple's smartwatches that are gaining smart range since their introduction.

Continue Reading

Tutorial - 2 CodeIgniter PHP Framework

By Ankur Rajput

Hi guys, This tutorial based on PHP framework (CodeIgniter), Today we learn how to create controllers models and views.
1.  How to create controller.

Then follow these steps...

 

  • Goto application -> controllers dir.
  • This directory contains all controllers of your projects.
  • Lets create Home.php file in your notepad++ or else then save it in controller diretory.
  • Make sure the your first letter of your file name is capital for ex- Home.php. 
  • Now create class using following source code...

 

class Home extends CI_Controller

 

{

function __construct()

{

parent::__construct();

}

public function index()

{

}

?>

  • In the above code Home is a class name which extent CI_Controller class.
  • function __construct() is the constructor in which code can write need to run first.
  • public function index() this is public function and name index(), by default controller called index function/action.
  • Write you php code that you want to perform for ex- 

public function index()

{

       echo "this is my first controller";

}

 

2. Now, we create model in which you can write your mysql quires. 

  • Goto application -> model directory.
  • In this location you can store your all model file for ex...
  • Now create first model. As earlier we discuss model file also in .php file,
  • Now, open your notepad++ or else editor then type the follow code...

 if (!defined('BASEPATH')) exit('No direct script access allowed');

class HomeModel extends CI_Model

{

public function __construct()

{

parent::__construct();

$this->load->database();

}

public function index()

{

             $this->db->select('*');

     $this->db->from('customer');

             $query = $this->db->get();

             return $query->result();

        }
}

  •  if (!defined('BASEPATH')) exit('No direct script access allowed'); this line protect your file to avoid direct access.
  • class HomeModel extends CI_Model as we discussed on class name First letter should be in capital which extents CI_Model class.
  • public function __construct(){ this line create constructor for class in which we load database files which $this->load->database(); this line.

  • public function index()  { as we discuses earlier this action/function where you can write your database query.

  •  $this->db->select('*');  this is by default CI function to get all data from table.

  •  $this->db->from('customer'); here give name of table ex- customer table.

  •  $query = $this->db->get(); this function allow to execute CI query.

  • return $query->result();  this function give you data from table in the form of (object), or if you want to get data in form of array using $query->result_array();

  • then finally return data to controller.

3.  Now then 3rd step in which we can create html file.

  • As we discussed in previous post views directory contains html/ php file.
  • Goto application->views
  • Write your HTML template that you want to display on web page.
  • Something like this..

 

 

 

Demo Tutorial on CodeIgniter

 

 

 

 

 

 

  • Then open your Home controller and write code like...

          public function index()

{

$this->load->view('demo');

}

  • $this->load->view('demo'); this function is ude to load view/html template on your controller.

 

4. Then Open your browser and type http://localhost/CI/Home

 

If your screen looks like as above Image, its means you successfully done your JOB.


I hope you like this tutorial.
On next tutorial we will discuss on  how to get data from database using model and display on HTML page using controller.

 

 

Thanks for reading, for more details go through MyinboxHub - The Tutorial Points

 

 

Continue Reading

What is Laravel and how to install at localhost?

By Harsh Aggrawal

What is Laravel and how to install at localhost?

Laravel is the PHP  web framework, created by Taylor Otwell. Laravel is open source which freely available for anyone. Laravel - intended for the development of web applications following the model–view–controller (MVC) architectural pattern and based on Symfony.

Following are steps, to install / setup laravel on your localhost(Wamp/Xampp server).

  1. First of all download COMPOSER (Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries). Composer help developer for creating controllers and views and so many dependencies which required by MVC.
  2. Install compose from the give link https://getcomposer.org/download/ , then goto manual download https://getcomposer.org/Composer-Setup.exe for first time user and windows OS user.
  3. Create your first directory using composer command in CMD.
  4. First type composer to check it is install properly or not.it seems like that.
  5. Then set directory path of www or htdocs in wamp or xampp simultaneously.\
  6. Then type composer command composer create-project --prefer-dist laravel/laravel blog.
  7. Now your first project on laravel is created successully.
  8. Now you can run by two methods...
    1. Using composer command php artisan serve .
    2. Second open localhost > lab > public.
  9. End.

Next Blog on how to create controller and model using composer and create view. We can also learn about file structure of Laravel.

Thank You for reading....

Continue Reading

Tutorial - 1 | CodeIgniter PHP Framework

By Harsh Aggrawal

CodeIgniter is best framework my point of view for web development for beginners in PHP.
Let us know about best part of CodeIgnitor i.e it is open source as well as smaller in size, easier to download and setup your project in it.
Some basic feature of CodeIgniter are as follow-
1. CodeIgniter based on Model-View-Controller Based System.
2. Extremely Light Weight as I told you smaller in size. According to (https://codeigniter.com) CodeIgniter-3 has a 2MB download, including the user guide.
3. It have full Featured database classes with support for several platforms like MySql, MS SQL, Oracle etc.
4. Query Builder Database Support.
5. Form and Data Validation
6. Session Management
and so many features are available. View complete list visit CodeIgniter Features
Best part according to me i.e we can create separate modules in separate folder location called Modules (we will discussed later about this.) and for beginners can make core query I thing which is easy for beginners write own query rather than using pre made functions.
Firstly you can download CodeIgniter from its own site https://codeigniter.com. Currently Version 3.1.9 is stable released on 2018.06.12
Then follow these steps...

 

  • Extract this folder in your root folder (www/htdocs).
  • Then rename folder with your project name.
  • Then open this folder, there are 2 main folder named like application,system and 1 php file named index.php, about index.php will discuses later.
  • Then application which contains controllers,models,views,config,helper,library,logs,languages and cache these folder are useful for our project.
  • Mainly we focused on 3 folder at beginning (controllers,models and views).
  • Folder -controllers contain all your controllers basically controller is php file in which you can write all your php computation and manipulation script are writing.
  • Folder -models contain all your models basically models is php file in which you can write mysql queires.
  • Folder -views cantain all your views basically your html pages stored in this folder.
  • Folder -config contains autoload,config,constants,database,doctypes,foreign_char,hooks,memcached,migration,mimes,profilers,routes,smileys,user_agents, but at beginning we need to concentrate on config, autoload,database and routes.
  • File -config.php contain lots of variable but at starting we need to focus on base_url(). base_url() is pre defined function of ci in which we write url of our domain for example (http://example.com or http://localhost/project1). We will discussed later sessions.
  • File -database.php contains your Mysql connection variable in you can write username,password,prefix etc.
  • Now, open your browser and type http://localhost/your_folder_name

 

 

 

  • Page looks some thing like as below

 

 

  • That means CodeIgniter setup successfully.

  • I hope you like this tutorial.
    On next tutorial we will create controller, model and views file.
     

    Thanks for reading, for more details go through MyinboxHub - The Tutorial Points


    Subscribe and comment below.
Continue Reading
Phillips Google Chromecast 2 Media