Skip to content

Instantly share code, notes, and snippets.

View dhavalv's full-sized avatar

Dhaval Tailored dhavalv

  • Tailored Solution Pvt Ltd
  • Ahmedabad
View GitHub Profile
@dhavalv
dhavalv / PHP_Question_and_answer.md
Created October 15, 2016 07:15
Career Builder with reading question and answer
  1. What is PHP?

PHP is a web language based on scripts that allows developers to dynamically create generated web pages.

  1. What does the initials of PHP stand for?

PHP means PHP: Hypertext Preprocessor.

  1. Which programming language does PHP resemble to?
@dhavalv
dhavalv / selenium_phpunit.md
Last active November 22, 2016 05:25
Selenium and PHPUnit Test

How to Install selenium and what's depedency for that?

  • Download a distribution archive of Selenium Server
  • Unzip the distribution archive and copy selenium-server-standalone-xx.xx.x.jar (check the version suffix) to a folder from where you will run the server (such as /usr/local/bin).
  • Start the Selenium Server by running the following command:
java -jar /usr/local/bin/selenium-server-standalone-x.xx.x.jar
  • Create React Component: App.jsx
var React = require('react');
class App extends React.Component {
    render() {
        return (
            <div>
                <h1>Header</h1>
                <h2>Content</h2>
 This is the content!!!
@dhavalv
dhavalv / test.md
Created December 16, 2016 13:08
jsx
import React from 'react';
import { FormControl, FormGroup, Radio, Checkbox, Button, ControlLabel,HelpBlock } from 'react-bootstrap';

class Login extends React.Component {
    constructor(props){
        super(props);
        this.state = {
            username: '',
            password: '',
@dhavalv
dhavalv / Find_Java_Path.md
Last active December 22, 2016 08:15
Java installation and find path

You need to dig into symbolic links. Below is steps to get Java directory

Step 1:

$ whereis java
java: /usr/bin/java /etc/java /usr/share/java

That tells the command java resides in /usr/bin/java.

Dig again:

Installing Ionic on Ubuntu

Hello,

nowadays I am working in a project with ionic framework. Ionic is an advanced HTML5 Hybrid Mobile App Framework. It’s an open-source front-end framework for creating beautiful mobile applications using HTML5.

Ionic apps are based on Cordova, so Cordova utilities can be used to build, deploy and test apps. Ionic focuses on the look and feel of apps and it currently uses AngularJS to build awesome looking front-ends.

Since I needed to install Ionic on ubuntu and I did it in some steps to do it, I resolve to write these steps and write this post. I hope you enjoy it.😉

@dhavalv
dhavalv / ionic_development_environment.md
Last active December 26, 2016 05:28
Develop Iconic application using corodova and build apk file using gradle. Setup environment for iconic application development in Ubuntu 12.04.

Setup environment for iconic app development in Ubuntu 12.04.

  • Install nodejs, ionic & corodova 1.Install nodejs
    curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
    sudo apt-get install nodejs
    sudo apt-get install build-essential
    nodejs -v
    npm -v
    
@dhavalv
dhavalv / 360_panaroma_facebook.md
Last active January 13, 2017 07:36
How to make 360 image for facebook post?

How to make 360 image for facebook post?

  • Try 1: Download Any 360 Panaroma Image or take snapshot from 360 video
  • Try 2: Create panaroma image and change metadata using below command:
exiftool -ProjectionType="equirectangular"-UsePanoramaViewer="True"-"PoseHeadingDegrees<$exif:GPSImgDirection"-"CroppedAreaImageWidthPixels<$ImageWidth"-"CroppedAreaImageHeightPixels<$ImageHeight"-"FullPanoWidthPixels<$ImageWidth"-"FullPanoHeightPixels<$ImageHeight"-CroppedAreaLeftPixels="0" -CroppedAreaTopPixels="0" "image_path"

exiftool  -Make="RICOH" -Model="RICOH THETA S" "image_path"

You need to install exiftool in your system or change from online: http://www.thexifer.net/

@dhavalv
dhavalv / LAMP_Stack_Installation.md
Last active August 26, 2020 20:15
Document for lamp stack is only apache 2.4 & php5.6 Installation...

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 12.04

About Lemp

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install the rest.

If any existing lamp installation & you need to upgrade your old server, uninstall all things & backup first all databases & files.

sudo apt-get purge php5*
@dhavalv
dhavalv / xampp.md
Created January 24, 2017 06:45
Xampp Installation

Xampp Installation

Download xampp Image & make executable mode then run it.

#download xampp
sudo wget https://www.apachefriends.org/xampp-files/5.6.28/xampp-linux-x64-5.6.28-1-installer.run

#make executable mode of run file
sudo chmod +x xampp-linux-x64-5.6.28-1-installer.run