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日 星期日


Add FTP Service on CentOS 7 

Step1: Install vsftpd 

%> sudo yum install vsfptd 



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