2006/11/22

!@#$ Python 2.X.X....

以下內容來自 ActivePython 的網站~

How do I revert to MacPython from ActivePython?

There are three popular Python distributions for Mac OS X.

There is the pre-installed distribution that ships as /usr/bin/python and has its frameworks in /System/Library/Frameworks.

There is also MacPython, the Python distribution from the macpython.org guys
(andpointed to by python.org). This is a 3rd-party Python distro. This installs as
/usr/local/bin/python with its frameworks in /Library/Frameworks.

Then there is ActivePython. This also installs as /usr/local/bin/python with its frameworks in /Library/Frameworks -- the same location as MacPython. When ActivePython is being installed the installer will look for MacPython and prompt to move it out of the way, rather than overwrite it. Because of the way Mac OS X works you can only have one of MacPython or ActivePython as the "current" python at a time.

The ActivePython install notes show how to uninstall ActivePython:
Apple does not provide a standard uninstallation tool or mechanism. You may, however, use the pydistro.py script that comes with ActivePython to uninstall ActivePython:

sudo python /Library/Receipts/ActivePython-2.4.pkg/Contents/Resources/pydistro.py \
activepython_uninstall 2.4

註:貼這些是因為~我想在我的powerbook上面安裝 Veusz !
但它需要的是 MacPython 所以我得先把 ActivePython 幹掉...
或許以後只要安裝 MacPython 就好~因為 QtiPlot 一樣可以執行~
而他的安裝檔又是 Univesal 的!

[按我下載 MacPython]

註註:請到 atg 網站上面下載他們打包好的 Veusz Installer (for ppc only)!
此軟體還需要 Numarray 這 python package...
Optional requirements:
PyFITS>=0.9.8.2 http://www.stsci.edu/resources/software_hardware/pyfits

又我為啥要裝它~因為聽說它可以畫出這樣的圖~


不過又得先來學 python 的語法囉~咕狗大神是你的好朋友!

2006/11/20

QtiPlot

QtiPlot - 你可以稱她為 Mac 上面的 Origin
~ 重點是她免費 ~

這裡順便推薦一個網站: ATG - free software for research & teaching
安裝 QtiPlot 所需要用到的軟體在 ATG 都能找到,
方便起見,我直接將所需軟體及其連結列於下方,
~請依照您的 CPU 下載~

[It needs Mac OSX 10.4 or higher]

1) Mac /Qt 3.3 "Minimal"-installer
=> PPC : QtMac335-Mini-Tiger.pkg.zip
=> X86 : QtMac336-Mini-Intel.zip

2) Python 2.4
=> PPC : ActivePython-2.4.3.11-macosx-powerpc.dmg
=> X86 : ActivePython-2.4.3.11-macosx-x86.dmg

Universal Python => python-2.4.4-macosx2006-10-18.dmg

3) QtiPlot
=> PPC : qtiplot087PPC-Tiger.zip
=> X86 : qtiplot083Intel.zip

請按順序安裝後即可使用~方便吧!
以下是執行的畫面~



感覺跟 Origin 真的一模一樣!
先來試用看看吧!

2006/11/17

ESO的禮物!!

那天昭賢跟足球在搜尋gsl的時候突然發現一套名為「Scisoft」的軟體,
擺明就是跟科學相關的軟體,在仔細去看~
打包進去的軟體幾乎都是針對天文觀測資料的!真是太神奇!

我後來作了一些探究才發現~原來這是ESO底下的一項計畫呢!
----
Scisoft is a project within ESO to provide a collection of astronomical software utilities in a uniform way at all four ESO sites and to make them available to the outside world. The current version, Scisoft 6.1, September 2006, is only available for Fedora Core 3 Linux...

請參考此計畫的網站:http://www.eso.org/science/scisoft/

其實網站上還有提到~
----
In addition a version of Scisoft for Mac OSX has been prepared by Nor Pirzkal and Francesco Pierfederici but it is not an ESO product.

所以請到這裡來參觀:http://www.stecf.org/macosxscisoft/

附上一張在 VersionTracker 上面找到的 screenshot~



亂神奇的吧!~

我有下載下來~並嘗試安裝在 CRAB#6 (Mac Pro) 上面~
不過沒時間測試,裡面有些軟體也都沒用過~
在加上其實有一半的套件我早就裝好了~
這應該是給一台「新」蘋果安裝的吧!
所以心裡毛毛的我就先砍掉它!

有興趣的人請上去點選下載鍊結哱!
記得要裝在「 / 」下面,她的「殼層」推薦是 tcsh !
其餘請看解出來的安裝說明!

2006/11/15

Color the OSX Command Prompt!!

嗯!我承認osx很好用~
除了她的黑白終端機跟單調的vi介面之外~
而且她的terminal對中文檔名的支援也是!@#$~

其實還是有解決的辦法~而且還滿簡單!
修改你的 .profile 加入以下環境變數:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export TERM=xterm-color

登出該終端機~在開一個新的終端機~列出檔案看看!

而vi也是可以變彩色的~而且可以把熟悉的游標座標呼喚出來~
辦法是先去 http://macvim.org/OSX/index.php 下載app型態的vim 7.0
將檔案解壓縮後~其實安不安裝都可以~看你喜不喜歡app版的vim!
因為我們只是要從她的套件內容中拷貝出設定檔範例來使用~
將 Vim.app/Contents/Resources/vim/runtime/vimrc_example.vim
另存為 ~YourAccount/.vimrc
從此你的vi就變彩色了!
(不過你的 .profile 中一定要有 `export TERM=xterm-color` 才行。)

又其實列出檔案時可以透過正確的參數來顯示中文的檔名~
試試執行 `ls -w` ~應該會讓你感動唷!

以上。

註:不知道是不是我那裡有操作錯誤~
在 Mactel 的機器上面我總是得將 .profile 另外拷貝成 .bashrc
才會在 X11 底下正確出現我設定的環境變數...
可是我的威力書卻不用多此一舉!呵呵~還真奇怪!

註註:為了方便各位 vimrc_example.vim 可以這裡抓!

2006/11/08

Fink Fink Fink~~~

以下是怕那天又忘記了而寫在這裡的note!!

For Fink 0.8.1

---- 環境變數 (寫在 /etc/bashrc or /etc/profile) ----

export CFLAGS=-I/sw/include
export LDFLAGS=-L/sw/lib
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CXXFLAGS
export ACLOCAL_FLAGS="-I /sw/share/aclocal"
export PKG_CONFIG_PATH="/sw/lib/pkgconfig"
export MACOSX_DEPLOYMENT_TARGET=10.4

test -r /sw/bin/init.sh && . /sw/bin/init.sh

註:我把要增加的路徑都直接寫在 /sw/bin/init.sh 裡面!

---- Packages for GTK+2 (安裝 Gqview 需要) ----

1. fink install gtk+2-dev glib2-dev pkgconfig pango1-xft2-dev atk1
2. Download source code from http://gqview.sourceforge.net/

---- Chinese Rxvt ----

1. fink install rxvt-ml
2. Download => http://cle.linux.org.tw/candyz/mac/taipeifonts.tgz
3. 將以下寫成script : export LANG=zh_TW.Big5;/sw/bin/rxvt -sl 5000 -sr -bg black -fg lightgray -fn 8x16 -fm taipei16 &

---- Some useful packages ----

01. gnuplot
02. wget
03. axyftp
04. gimp
05. xpdf
06. gv
07. xfig
08. imagemagick

------------------------------------

註註:其他運算或編譯需要的軟體,
請安裝 xcode 2.4.1
fortran 77 : http://hpc.sourceforge.net/
fortran 95 : http://www.g95.org/