-
Shift - Enter
Run selected cell and turn to next cell as the code mode
-
Ctrl - Enter
Run selected cell
-
Double press "D"
Delete selected cell
-
Shift - M
Merge selected cells
- Recommened
- Start a Terminal ( shell )
- install
pip
and Virtualenv
$ sudo easy_install pip
$ install --upgrade virtualenv
- Create a Virtualenv environment
$ virtualenv --system-site-packages targetDirectory # for Python 2.7
$ virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n
Note: where targetDirectory identifies the top of the Virtualenv tree. Our instructions assume that targetDirectory is ~/tensorflow, but you may choose any directory.
- Activate Virtualenv environment
$ cd targetDirectory
$ source ./bin/activate # If using bash, sh, ksh, or zsh
$ source ./bin/activate.csh # If using csh or tcsh
The preceding source
command should change your prompt to the following:
(targetDirectory)$
- Ensure pip ≥8.1 is installed
(targetDirectory)$ easy_install -U pip
- Issue one of the following commands to install TensorFlow and all the packages that TensorFlow requires into the active Virtualenv environment
(targetDirectory)$ pip install --upgrade tensorflow # for Python 2.7
(targetDirectory)$ pip3 install --upgrade tensorflow # for Python 3.n
- Optional.
If Step 6 failed, install TensorFlow in the active Virtualenv environment by issuing a command
pip install --upgrade tfBinaryURL # Python 2.7
$ pip3 install --upgrade tfBinaryURL # Python 3.n
where tfBinaryURL identifies the URL of the TensorFlow Python package. The appropriate value of tfBinaryURL depends on the operating system and Python version. Find the appropriate value for tfBinaryURL for your system here. For example, if you are installing TensorFlow for macOS, Python 2.7, the command to install TensorFlow in the active Virtualenv is as follows
$ pip3 install --upgrade \
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.6.0-py3-none-any.whl
SQL , Structured Query Language
不同 資料庫管理系統
在執行資料庫工作時 所使用的語言
Windows
AppServ
官網 點擊 AppServ v2.5.9 & 2.4.9 with Zend Optimizer AddOns Released !
- When Installing, following the steps of the wizard.
- Type "localhost" & your email address, let the Apache HTTP Port as 80 as default
- Enter Root Password and confirm again, The
Character Sets and Collations
should be the optionUTF-8 Unicode
- Then the install will be finish.
- Using the broswer and point to
http://localhost/
- If the web shows fail to connect with the localhost,
Windows >> Program >> AppServ >> Control Server by Service >>
Apache Start
Windows >> Program >> AppServ >> Control Server by Service >>
Apache Stop
MacOS
XAMPP
Website choose the OS-Version
Here I chooseXAMPP 7.2.2 / PHP 7.2.2
- Open the
manager
run the three services - If the
Apache Server
cannot be runing, type the command line inTerminal
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
Disable OSX's built-in Apache server
reference from here
- Now we need to change the default password
- Go to http://localhost/dashboard/ in Safari
- Choose
HOW-TO Guides
then selectReset the MySQL/MariaDB Root Password
, it will show you how to change the password. - Or you can open a terminal
$ /Applications/XAMPP/bin/mysqladmin --user=root password "NEW_PASSWORD"
- SELECT "欄位" FROM "表格名";
- SELECT DISTINCT "欄位"
FROM "表格名";
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
- sudo gedit /opt/lampp/etc/extra/httpd-xampp.conf
- As below: Search "phpmyadmin"
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig
Allow from all
Require all granted
</Directory>
- Search "httpd-xampp.conf", it should be under C://xampp/
- Find "phpmyadmin"
- As below:
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig
Allow from all
Require all granted
</Directory>
- Ativate Apache and go to http://localhost/phpmyadmin/
User:
root
Password:0800080128
- Type the name of the database, select the second colume to
utf-8_unicode_ci
- You will see there is some SQL Command
CREATE DATABASE `(Your_database_name)`DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
- Then we need to create a table in this database
- Type the name of the table, and type how many columes we need in this table
CREATE DATABASE `Database_Name` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
註:COLLATE
語系校正
CREATE TABLE Table_Name (
1st_Column 1st_Column_Data_Type
2nd_Column 1st_Column_Data_Type
)
Example
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
- Cascading Style Sheets (串接樣式表)
- 用來替HTML增加
Style
ex. Color, Font Size, Font Type...
- 上標 Superscript :
<sup> </sup>
a<sup>2</sup>
a2
- 下標 Subscript :
<sub> </sub>
aaa | bbb | ccc |
---|---|---|
123 | 121 | 122 |
aaa | bbb | ccc
--- | --- | ---
123 | 121 | 122
- With Title
- Without Title
- New a Repo and it will be like a server to save photos
- Just use
git clone http
...git push
to upload the photos - Go to Repo and click download in the photo
- Copy the path
- The format will be like this
![1](https://raw.githubusercontent.com/jason19970210/MarkdownPhotos/master/1.png)
\```diff
+ this will be highlighted in green
- this will be highlighted in red
\```
Then it will goes like
+ this will be highlighted in green
- this will be highlighted in red
#### 问答
<details>
<summary>什么是iuap design</summary>
iuap design 是用友网络FED团队开发的企业级应用前端集成解决方案。
</details>
<details>
<summary>什么是tinper</summary>
`tinper`是开源前端技术平台。
</details>
什么是iuap design
iuap design 是用友网络FED团队开发的企业级应用前端集成解决方案。什么是tinper
tinper
是开源前端技术平台。
- ls
List all files in this path
- cd
- cd ..
- mkdir
Create folder
- touch
Create file
- ping
- traceroute
- sudo spctl --master-disable
Allow Mac to install applications from any Anywhere
- nslookup google.com
- nslookup - xx.xx.xx.xx
- pip3 install matplotlib
- ps -ax
- sudo su -
set authority to
root
- pwpolicy -clearaccountpolicies
decline all password security checking for global
for me to set short password as well
after enter this command, type the password then go toSetting
to change the password for our own - xcode-select --install
Install Xcode Dev Tool by command-line
- sudo codesign --force --deep --sign - /Applications/name.app
Re-sign the signature of the application
- sudo xattr -d com.apple.quarantine /Applications/name.app
Re-sign the signature of the application
- apachectl start
Start Apache
- sudo purge
Cleaning the memory of MacOS
- scp -r username@ipaddress:path/on/remote/server path/to/localhost
copy the folder with
-r
option to the localhost, without-r
can only transfer the file - scp -r localhost/path/folder username@ipaddress:path
copy the folder from local to remote server
- sudo sysctl debug.lowpri_throttle_enabled=0
make "Time Machine" runs at
full
speed - sudo sysctl debug.lowpri_throttle_enabled=1
make "Time Machine" runs at
default
speed
Ref : https://www.digit77.com/skills/macos/speed-up-time-machine.html
custom launchpad rows & columns
defaults write com.apple.dock springboard-columns -int <COLUMNS>;defaults write com.apple.dock springboard-rows -int <ROWS>;defaults write com.apple.dock ResetLaunchPad -bool TRUE;killall Dock
- Use
gsudo
to exec PowerShell as admin - Change UAC Behavior
[Option 1]
- Change apt update mirror source
$ sudo nano /etc/apt/sources.list
- lines like this
deb http://xxxxxxx.com/raspbain/raspbian buster main contrib non-free rpi # Uncomment ....
- change http website from list of mirrors around the world
(https://www.raspbian.org/RaspbianMirrors) - SOLVE GPG Public Key not avaiable (https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=114692&p=833262&hilit=NO_PUBKEY#p833353)
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys <KEYNUMBERHERE>
- Check OS Version & info
$ cat /etc/os-release
$ uname -a