Skip to main content

Posts

Showing posts from 2016

While Checkout a branch files as been deleted, retrieve those files from a repository

Hi friends, I have faced some critical case in git. Initial I have three branches master, dev, staging . In dev and staging branches I have followed all the commits up to date. I have followed these steps regularly for each and every process (For branching strategy). All the initial configuration has been done previously. git add . (Currently I'm in dev branch) git commit -m "Commit message" git push origin dev git checkout staging git fetch git pull origin staging git merge --no-ff dev git push origin staging git checkout dev I have just maintained the initial commit only in the master branch. One day when I try to checkout master branch, all my changes as been changed to deleted state. I have lost all my changes. I have retrieved my changes by using this command git reset --hard origin/dev Just try this command to get you changes back to it.

How to fix PHP Version difference in browser and terminal (In Ubuntu)

Hi friends.,                 Today I have faced some problem in PHP version, in my terminal. I just hit a command in terminal (php -v) to know the PHP version, it showing PHP 7.0. Then I have checked in the browser by using phpinfo(), it has shown as PHP 5.6. Then I have some other problem related to this, then  I can't able to install related plugins in PHP 5.6.               Finally, i got some solution to change the PHP version in terminal sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php   -> (PHP 5.6  to PHP 7.0) sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php   -> (PHP 7.0 to PHP 5.6)       Change PHP version: First disable your current PHP version Enable, which PHP version you want to change Restart the apache Step for PHP 5.6 to PHP 7.0: sudo a2dismod php5.6 sudo a2enmod php7.0 sudo service apache2 restart Step for PHP 7.0 to PHP 5.6: sudo a2dismod php7.0 sudo a2enmod php5.6 sudo service apache2 restart

Inapp Purchase Server side validation for Android as well as IOS using Laravel

Hi friends,                 I'm very happy to share today experience In-app purchase server-side validation you. This link is very use full for me to implement this server side validation. Please refer this link, https://github.com/aporat/store-receipt-validator I have faced some problems with Android server side validation. I will share problematic experience with you.......... https://developers.google.com/android-publisher/authorization  -> go through this URL and flow this steps If you follow the steps, you will get a client id and client secret. While doing this process it will ask you for redirect URI, you just any of your project URL for testing purpose to get the token http://localhost/project/public/refresh-token I Just gave a refresh token function as return URL. In this function, $request->code you can retrieve the refresh token Using this token you can do this process  Exchange this code for an access and refresh token pair by sending a POST reques

Simple way implement migration in your site (Using Laravel 5.3)

Hi Everyone, I want to share my migration experience (larvel 5.3) It’s to be good idea to implement in your site. If number of developers working in same script, no need of sharing your query changes to each to other. And also don’t worry about the table creation, fields changes in live server also. The single step will do this all the process for you. You just go to your folder path, hit the migrate command, it will do the all the changes will reflect in tables as well as field. 1 php artisan migrate JUST, WE WILL GO SHORT TOUR WITH MIGRATION HOW TO CREATE A TABLE USING MIGRATION: 1 php artisan make : migration create_users_table            If you want to create a table using migration, write a make migration command. php artisan make:migration is syntax and create users table is a migration file name. You can give the migration file name what ever you want, for over understanding, i have created a migration file name as  create_users