Skip to main content

Posts

React Native Paper

URL :  react-native-floating-action-button TouchableOpacityStyle : {    / / Here is the trick    position : 'absolute' ,    width : 50 ,    height : 50 ,    alignItems : 'center' ,    justifyContent : 'center' ,    right : 30 ,    bottom : 30 , } ,

Git

https://github.com/joshnh/Git-Commands Getting & Creating Projects Command     Description git init     Initialize a local Git repository git clone ssh://git@github.com/[username]/[repository-name].git     Create a local copy of a remote repository Basic Snapshotting Command     Description git status     Check status git add [file-name.txt]     Add a file to the staging area git add -A     Add all new and changed files to the staging area git commit -m "[commit message]"     Commit changes git rm -r [file-name.txt]     Remove a file (or folder) Branching & Merging Command     Description git branch     List branches (the asterisk denotes the current branch) git branch -a     List all branches (local and remote) git branch [branch name]     Create a new branch git branch -d [branch na...

React Native Reducer Action Notes

  1. Create action types : types.js export const LIST_FACET         = 'view_facet_list'; export const LIST_FACET_FAILED  = 'facet_list_failed'; export const LIST_FACET_SUCCESS = 'facet_list_success';    2. Create junction file : index.js export * from './CategoryActions'; export * from './FacetAction'; 3. Create action file : action.js import {listproductsAPI} from '../Api/methods/productActionsAPI'; import {   LIST_PRODUCTS,   PRODUCT_LIST_FAILED,   PRODUCT_LIST_SUCCESS } from './types'; export const productsFetch = () => {   return (dispatch) => {     dispatch({ type: LIST_PRODUCTS });     listproductsAPI()     .then(productsData => productListResponse(dispatch, productsData.result.docs))     .catch(error => productlistFail(dispatch, "Products Not Found. Something went wrong. Please try again."));     }; }; const productList...

Send Email

MAIL FUNCTION Most of the web projects have the email sending functionality. Before uploading to the live server email functionality need to be checked on the local server. But PHP mail() function will not work at the localhost. ... To using Gmail SMTP server, you should need to change account access for less secure apps    <?php     require 'phpmailer/autoload.php';     use PHPMailer\PHPMailer\PHPMailer;     use PHPMailer\PHPMailer\Exception;     //$mail = new PHPMailer;     //$mail->SMTPDebug = 3;                               // Enable verbose debug output     $mail = new PHPMailer(true);        $mail->SMTPDebug = 0;          ...

Web Servers

There are 4 primary  web servers : Apache (provided by Apache) IIS (provided by Microsoft) nginx (provided by NGINX, Inc. and pronounced like “Engine X”) and GWS (provided by Google and short for Google  Web Server )

User database table

-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 09, 2019 at 09:17 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sample_db` -- -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(255) NOT NULL, `mobile` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `role` varchar(150) NOT NULL, `date` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for t...