2010年4月15日

Solaris 10 Install (SPARC)

SunBlade 2500 (sun fire v250)
2G RAM

"ok" Mode (stop+A on Sun's keyboard)
ok boot cdrom
then boot the installation
other modification can reference this website
1.
2. Here
3. Here
4. Official Guide

2010年2月5日

Ubuntu static IP setup

static IP setup

# sudo vi /etc/network/interfaces
1 auto lo
2 iface lo inet loopback
3
4
5 iface eth0 inet static
6 address 140.127.ooo.xxx / * 固定IP位址 * /
7 netmask 255.255.255.0 / * 網路遮罩 * /
8 gateway 140.127.qqq.ppp / *預設閘道 * /
9
10
11
12 auto eth0


修改完可利用以下指令重新啟動網路
# sudo /etc/init.d/networking restart
---------------------------------------------
DNS setup
# sudo vim /etc/resolv.conf
1 # generated by NetworkManager, do not edit!
2
3
4
5 nameserver 140.127.Orz.Qrz / * 主要的DNS Server Address * /
6 nameserver 140.117.OO.QQ / * 次要的DNS Server Address * /

修改完可利用以下指令重新啟動網路
# sudo /etc/init.d/networking restart
----------------------------------------------



2010年2月3日

Matalb memory test

In Windos system
type "feature('meminstats')"

The Largest blocks show the maximum matrix size you can create


In official web of MATLAB, they say

Operating system

Process Limit

32-bit Windows XP, Vista and Windows 2000 (default)

2GB

32-bit Windows XP with 3GB boot.ini switch or 32-bit Vista with increaseuserva set (see later)

3GB

32-bit Linux

~3GB

64-bit Windows XP, MAC OSX, Linux or Solaris running 32-bit MATLAB

≤4GB

64-bit Windows XP, Vista, Linux or Solaris running 64-bit MATLAB

8TB

Matlab Install flowchart

a) Create the directory where Matlab will be installed ("/usr/local/matlab7").
Copy the "license.dat" file to the directory. Let us call this dir $MATLAB
from now on.

b) Run the installer and proceed with the installation.
cd /usr/local/matlab7
sudo /cdrom/install* &
%% display "Insert CD 2"
sudo umount /media/cdrom0
eject

c) Open the "license.lic" file and replace the string "your_host_name" with
the hostname of the computer where Matlab is being installed.

d) Copy the edited "license.lic" file to "$MATLAB/etc".

e) Now you are all set to run Matlab. Enjoy!
-------------------------------------------------------------------------------------
If your Linux is Debian, then you will meet some problems,
such as

Problem 1:
xxxxx:/usr/local/matlab7# /media/cdrom/install* &
bash: /media/cdrom/install: /bin/sh: bad interpreter: Permission denied

Solution:

Become root
Unmount CD-ROM
Make dirctory /cdrom
Give command: mount -t iso9660 -o exec /dev/cdrom /cdrom


After this go to the directory where you want to install the matlab. Put licence
file in that directory and from being in that directory give command:
/cdrom/install

Installation will start
Ref: http://www.linuxquestions.org/questions/linux-software-2/matlab-on-debian-232213/

Problem 2:
An error status was returned by the program 'xsetup',
the X Window System version of 'install'. The following
messages were written to standard error:

/tmp/5447tmwinstall/update/bin/glnx86/xsetup: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory

Attempt to fix the problem and try again. If X is not available
or 'xsetup' cannot be made to work then try the terminal
version of 'install' using the command:

install* -t or INSTALL* -t
Solution:
According to some forums do:

# apt-get install libxp-dev

and then,
insert the MATLAB CD-ROM
XXXX:/usr/local/matlab7# sh /media/cdrom/install

However, I did follow the instructions of:
http://www.debianhelp.org/node/7432

1. Let run the install script so that it creates some environmental variables correctly.

2. Then
# cp /media/cdrom/update/bin/glnx86/libmwins.so /usr/lib

Check if you want to install the one of glnx86, glnxa64 and sol64 instead


3. Copy xsetup from the same directory to the install directory.

# cp /media/cdrom/update/bin/glnx86/xsetup /usr/local/matlab

4. From the install directory:

# ./setup



LATER when you run matlab you will see some errors associated to java

install java (http://www.java.com/en/download/index.jsp)


and then edit the file in bin/matlab

at the begining of the script (around line 180) write down:

# There is an error with the java that comes with MATLAB. Use the other java
export AWT_TOOLKIT=MToolkit
#export MATLAB_JAVA=/usr/lib/jvm/java-1.6.0-sun-1.6.0.10/jre
#export MATLAB_JAVA=/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre
export MATLAB_JAVA=/opt/jre1.6.0_12/


Finally activate the multithreading part in Preferences

ENJOY!

Ref: http://diegotorquemada-linux.blogspot.com/2009/02/installing-matlab.html

2009年10月28日

Debian系統用VNCviewer登入看不到背景


如圖所示,背景一片灰
修改如下

利用vi開啟 .vnc/xstartup
裡面的內容是
#!/bin/sh
....
加入
/etc/X11/Xsession &

儲存後,用puTTY將vncserver -kill :(?) 殺掉
之後重開即可。

2009年10月8日

Mricro NOTES

Mricro可以作SPM使用的header, MriCroN不行(data type: NIfTI)

Mricro讀取影像方向與matlab不同,與SPM也不同

Origin flip to 90 degree flip to -90 degree

Header可以利用複製方式重複使用

Header make using Mricro
Header Information:
1.Dimention, Size, Origin(Central)
2.Data-> 16-bit Int (8-bit Int在SPM中影像很怪)
little-endian (in windows system)
big-endian (in Unix)

2009年4月15日

淘寶網~TOBACO之支付寶篇

最近想買一套軟體~結果發現對岸最大的網路交易平台淘寶網有賣
但是該怎麼付現呢?原來需要經由第三者來支付,也就是支付寶,經由買家購買"支付寶"等到貨品到了之後,確定貨品OK就可以將"支付寶"此種貨幣交給對方,這是非常好的一個構想,但是問題來了,人在台灣的我們該怎麼買支付寶呢?
目前我找到的方式,除了請人代購外,就是用信用卡刷卡買支付寶,它支援VISA卡,台灣幾間銀行有VISA,如下,
中國信託商業銀行(Chinatrust Commercial Bank)
台新國際商業銀行(Taishin International Bank)
台灣中小企業銀行(Taiwan Business Bank)
土地銀行(Land Bank of Taiwan)
日盛銀行(Jih Sun International Bank)
合作金庫銀行(Taiwan Cooperatvie Bank)
永豐信用卡公司(SinoPac Card Services)
第一銀行(First Commercial Bank)
國泰世華銀行(Cathay United Bank)
新光銀行(Taiwan Shin Kong Commercial Bank)
彰化銀行(The Chang Hwa Commercial Bank)

不過須先經過VISA認證
http://0rz.tw/O8BrA

之後,即可購買支付寶了!!