最近開始學習Python,這邊蒐集一些網路上不錯的學習資源。
Here is learning material collection for Python:
Pyton 台灣使用者群組: 第一次使用就上手
A Byte of Python
"A Byte of Python" is very suitable for a C/C++ or Perl programmer who just starts to learn Python.
The author has introduced Python's syntax clearly and very easy to understand. Moreover, while explaining important concepts, the author usually gives some difference highlights to C/C++ or Perl to help readers to capture the sprit of Python. This book is very useful.
Python.org Documents
Python.org 提供的文件,包含語法以及模組的完整使用說明以及範例。如果對模組的使用有疑問,建議來這邊找資料。
2016年10月20日 星期四
Install Python 3.x on Mac OS X
The pre-installed python in Mac OS X Yosemite is Python 2.x.
(not sure the pre-installed version of later version: EI Caption and Seirra)
To use Python 3.x, we have to install it by ourself. Thanks for Internet and may contributors on it, there are many instructions about how to install Python 3.x on Mac.
I choose one of them below and made some note for the problems that encountered during installation.
(not sure the pre-installed version of later version: EI Caption and Seirra)
To use Python 3.x, we have to install it by ourself. Thanks for Internet and may contributors on it, there are many instructions about how to install Python 3.x on Mac.
I choose one of them below and made some note for the problems that encountered during installation.
2016年8月5日 星期五
2016年7月28日 星期四
Skim: A powerful PDF reader for Mac OS X
Why Skim ?
Recently I have some need about extracting notes from a PDF file and use them in other place of my work. These extracted notes has information (line no, page no ...etc) which link it to the position in the document. With this information, I can quickly refer to the correct position in the document back for any note when I need to.Skim is a very powerful PDF reader which can do all the things mentioned above:
1) Read PDF documents (of course :D)
2) Write notes and highlight to the document
3) Export notes into external file in various formats
Item I, 2 are very common functions and other PDF readers can do it very well. But the point is how to make the note to have the link information (line no, page not). Writing this information as the text note manually doesn't make sense because it will be a verbose and time consuming job. Automation is the practice solution.
Skim provides extensive support for scripting which brings the possibility to the automation.
I will log my work in another articles and here some reference sides are given as my memo:
Reference:
[1] http://computers.tutsplus.com/tutorials/do-more-with-pdf-in-skim-for-mac--cms-22661
2016年7月10日 星期日
2016年7月7日 星期四
GNU Global: A source code tag system
安裝Global
Install global
%> port search --name global%> sudo port install global
Macbook 工作環境準備
記錄在Mac上建立工作環境的流程供未來參考。
Mac OS X 程式開發環境準備
Prepare software development environment for Mac OS X
Step 1. Install xcode
Xcode can be found in Apple App Store.
Step 2. Install xcode command line tools
%> xcode-select install
Step 3. Install Mac Ports
Refer MacPort website to install MacPort: https://www.macports.org
When ports is installed. You can install develop tools from open-source community via ports.
使用Mac Ports安裝Open source 開發工具
Command Notes to install open-source development tools using Mac Ports
1. Update port database
%> sudo port selfupdate
2. Upgrade installed port version
%> sudo port upgrade outdated
3. Search port/package on Mac Ports
%> port search --name --glob '*
Example: %> port search --name --glob '*doxygen*'
4. Install port/packet
%> sudo port install
Example: %> sudo port install doxygen
Troubleshooting
1. Installing port fail某些Package 的安裝過程需要使用到xcode command line tool, 如果安裝command line tool 前就開始安裝這些Package,那麼安裝就會失敗,發生類似這種問題時即使重新若重新使用port install command 也無法問題時,可以試著使用port clean 將安裝過程的產生的相關檔案(尤其是configuration file)清除乾淨後再重新安裝。
Note: 重複執行port install不一定會重新產生正確的configuration file。
%> port clean
%> port install
訂閱:
意見 (Atom)