There are basically two ways to setup your ownership and permissions. Either you give yourself ownership or you make the webserver the owner of all files.
Assuming www-data is your webserver user.
| apt-get install php-common php-fpm php-mysql php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-mysql php7.0-opcache php7.0-readline php-bcmath php-bz2 php-calendar php-ctype php-curl php-date php-enchant php-gd php-intl php-mbstring php-mcrypt php-mongodb php-soap php-sqlite3 php-tidy php-xdebug php-xml php-xml-parser php-xml-rpc2 php-xml-serializer php-xml-svg php-xmlrpc php-zip |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| import io from 'socket.io-client/dist/socket.io'; | |
| const connectionConfig = { | |
| jsonp: false, | |
| reconnection: true, | |
| reconnectionDelay: 100, | |
| reconnectionAttempts: 100000, | |
| transports: ['websocket'] | |
| }; | |
| const socket_url = 'http://192.168.56.1:3000'; | |
| socket = io(socket_url, connectionConfig); |
| # The target name is most likely the name of your project. | |
| platform :ios, '9.0' | |
| target 'EventLocator' do | |
| rn_path = '../node_modules/react-native' | |
| rn_maps_path = '../node_modules/react-native-maps' | |
| # Your 'node_modules' directory is probably in the root of your project, | |
| # but if not, adjust the `:path` accordingly | |
| pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
| 'Core', | |
| 'CxxBridge', |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| The issue is closed but in case if above answers don't work. | |
| put this in console -> xcrun -k --sdk iphoneos --show-sdk-path | |
| if the answer is | |
| xcrun:_ error: SDK "iphoneos" cannot be located | |
| xcrun: error: SDK "iphoneos" cannot be located | |
| xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos' | |
| then put this sudo xcode-select --switch /Applications/Xcode.app | |
| Then pod install again |
[Unit]
Description=Gunicorn service to run your_application
After=network.target
[Service]
User=user
Group=www-data
WorkingDirectory=/home/user/apps/python/your_application
Environment="PATH=/home/user/apps/python/your_application/env/bin"
| # The target name is most likely the name of your project. | |
| platform :ios, '9.0' | |
| target 'RnFirebaseImgUpload' do | |
| rn_path = '../node_modules/react-native' | |
| rn_maps_path = '../node_modules/react-native-maps' | |
| # Your 'node_modules' directory is probably in the root of your project, | |
| # but if not, adjust the `:path` accordingly | |
| pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
| 'Core', | |
| 'CxxBridge', |
| import React, { Component } from 'react'; | |
| import { StyleSheet, Text, View, TouchableOpacity, Image } from 'react-native'; | |
| import ImagePicker from 'react-native-image-picker'; | |
| const options = { | |
| title: 'Select Image', | |
| storageOptions: { | |
| skipBackup: true, | |
| path: 'images' | |
| } |