2018年9月18日 星期二

手動更新App Store



$ softwareupdate -i -a
Software Update Tool

Finding available software

iOS12控制中心的位置:改到右上角

之前iOS控制中心是從右往左滑,升級到iOS12後,發現系統變好用了,卻找不到控制中心的位置,原來是改成在右上角,所以需要改從右上角往下滑即可以叫出之前的控制中心

2018年9月14日 星期五

Plaidml install on Mac

參考資料

 


#install plaidml

pip install -U plaidml-keras

 

#choose driver

plaidml-setup

# benchmark test

pip install plaidml-keras plaidbench
plaidbench keras mobilenet

2018年9月11日 星期二

Sublime Package backup

1. In Subline user package folder

2. Git init

3.git  add —all *

4.git commit -m “ add config backup"

5.In GitHub to create new repo

6.git remote add origin https://github.com/xxx/xxx

7.git push -u origin. Master

8.In new laptop, go to user package

9.git clone https://github.com/xxx/xxxx/st-user-package

10.rm -rf User. (New user folder)

11.mv st-user-package to User. ( to replace a new one)

12. Done

2018年9月7日 星期五

Jupyter notebook can't use both python2 and python3

Recently, I install Jupiter notebook in my new 2018MBP laptop. 

I found I can switch python 2 and python3 on Jupyter  notebook. But I found it often claim 

There is no python modules no matter which python kernel I used.

Therefore  I print sys.version in Jupyter notebook

Import sys

sys.version

===> it always use python 3.7

After  have some try and error, I found the root cause it just because I didn’t install ipykernel with —user

After executed it, everything works fine

#python -m ipykernel install --user

 

2018年9月5日 星期三

[Mac] 2018 MBP: 拖拉檔案

如果不使用滑鼠,想把檔案拖拉到檔案夾的話,可以使用option + 滑鼠點選的方式,達到檔案拖拉的目的

How to restore a deleted onenote page

復原不小心誤刪的onenote