顯示具有 mac 標籤的文章。 顯示所有文章
顯示具有 mac 標籤的文章。 顯示所有文章

2016年9月7日 星期三

[MAC][IDE][ATOM] build python3.4 on atom editor

1.download and installed the atom in mac as usual way.

2.download the package atom-runner
(from the atom menu->preference->install...)
ref:https://github.com/lsegal/atom-runner
3.go to atom->config

you will open below setting, and add the red line into it. (careful with indent.)

"*":
  "atom-runner": {}
  core:
    automaticallyUpdate: false
    destroyEmptyPanes: false
    openEmptyEditorOnStart: false
    themes: [
      "one-dark-ui"
      "atom-dark-syntax"
    ]
  editor:
    fontSize: 18
    invisibles: {}
    showIndentGuide: true
    showInvisibles: true
    zoomFontWhenCtrlScrolling: true
  "exception-reporting":
    userId: "d4912b62-aa97-a2d1-4abc-b19393b94058"
  runner:
    scopes:
      python: "/Library/Frameworks/Python.framework/Versions/3.4/bin/python3"
  welcome:
    showOnStartup: false



4. you can change the keymap if you want.

2016年7月11日 星期一

[MAC] Terminal hostname not mine.


it appears other's name who give you DNS.

go to terminal and check

xxxx $ hostname
xxxxxx

if the xxxx

$ sudo scutil --set HostName "xxxx's MacBook Air"

QUIT terminal, reopen again.

[octave] install octave 4.0.3 under mac osx EI 10.11, plot OK


ref: https://kiskeyix.org/articles/605

1.
install hombrew
install AquaTerm from sourceforge
brew tap homebrew/science
brew reinstall gnuplot --with-aquaterm
gnuplot # make sure it says "terminal set to aqua"
brew install lua51 # yes, you also need this old version of Lua
brew install octave

2.
vim ~/.octaverc
add below....

octave:1> graphics_toolkit('gnuplot')
octave:1> setenv('GNUTERM','aqua')

check again

octave:1> getenv("GNUTERM")
ans = aqua
octave:2>



=========================
For waring message when you plot
warning: could not match any font: *-normal-normal-10


use...

brew uninstall fontconfig

brew install fontconfig --universal


OK












2016年7月5日 星期二

[mac] add path for adb,fastboot,.... to PATH

get mac version of adb , fastboot....

=> download Android Studio from google developer site.


copy those bin to folder whether you want.  ex: /Users/xxxxx/Documents/bin

and


vim ~/.bash_profile



PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:/Users/xxxxx/Documents/bin:${PATH}"
export PATH



save , and reopen the terminal.

Done.

[mac] Connect FTP from mac to ubuntu by vsftpd

[ubuntu side]

sudo apt-get install vsftpd



[mac side]

download filezilla client.

create a new ftp , use account and password to login.



ref:
http://yunol.com.tw/phpbb3/viewtopic.php?f=15&t=25132

2016年7月4日 星期一

[MacOS] install python3.4 pandas , request, matplotlib

pip3.4 install pandas
pip3.4 install request
pip3.4 install matplotlib



SUPER EASY.....