2010年12月1日 星期三
android -- Good tutor for Starting (GUI)
http://mobiforge.com/developing/story/getting-started-with-android-development
2010年11月29日 星期一
android -- 開發環境 for window
我是參考這2個網站的 :
http://forum.hkgphone.com/thread-36-1-1.html
http://developer.android.com/sdk/index.html
步驟如下:
1)有java jdk 才可以安裝下面2個工具
安裝 java JDK: http://java.sun.com/javase/downloads/index.jsp
2)安裝 Eclipse : http://www.eclipse.org/downloads/
3)安裝 android JDK http://developer.android.com/sdk/index.html
4)把eclipse和android連接起來 !!!!!!!!!!
ADT Plugin for Eclipse : http://developer.android.com/sdk/eclipse-adt.html#installing
有一點麻煩 有2種版本 Eclipse 3.4 (Ganymede) 和 Eclipse 3.5 (Galileo)
我的是galileo , 所以給大家參考一下:
i) Start Eclipse, then select Help > Install New Software.
II)In the Available Software dialog, click Add....

III)In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field.
In the "Location" field, enter this URL:
https://dl-ssl.google.com/android/eclipse/

Note: If you have trouble acquiring the plugin, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).
Click OK.
IIII) Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.

IIIII) In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
IIIIII)
Restart Eclipse.
5)go to window menu option and select preferences.
Here you can specify the android sdk from the android download file
要選到包含"tool" 資料夾的上一層. 例如 c:/a/b/tool 你要選資料夾b

by : http://androidforums.com/application-development/11432-new-project-sdk-target-must-specified.html
6)可以開始進行hello world 官方教學: http://developer.android.com/resources/tutorials/hello-world.html
http://forum.hkgphone.com/thread-36-1-1.html
http://developer.android.com/sdk/index.html
步驟如下:
1)有java jdk 才可以安裝下面2個工具
安裝 java JDK: http://java.sun.com/javase/downloads/index.jsp
2)安裝 Eclipse : http://www.eclipse.org/downloads/
3)安裝 android JDK http://developer.android.com/sdk/index.html
4)把eclipse和android連接起來 !!!!!!!!!!
ADT Plugin for Eclipse : http://developer.android.com/sdk/eclipse-adt.html#installing
有一點麻煩 有2種版本 Eclipse 3.4 (Ganymede) 和 Eclipse 3.5 (Galileo)
我的是galileo , 所以給大家參考一下:
i) Start Eclipse, then select Help > Install New Software.
II)In the Available Software dialog, click Add....

III)In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field.
In the "Location" field, enter this URL:
https://dl-ssl.google.com/android/eclipse/
Note: If you have trouble acquiring the plugin, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).
Click OK.
IIII) Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.

IIIII) In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
IIIIII)
Restart Eclipse.
5)go to window menu option and select preferences.
Here you can specify the android sdk from the android download file
要選到包含"tool" 資料夾的上一層. 例如 c:/a/b/tool 你要選資料夾b
by : http://androidforums.com/application-development/11432-new-project-sdk-target-must-specified.html
6)可以開始進行hello world 官方教學: http://developer.android.com/resources/tutorials/hello-world.html
2010年11月9日 星期二
matlab -- exmple of Gram-Schmidt process
find the orthoggonal set of w1,w2,w3 , then save to v( , );
w1=[1 0 1]';
w2=[0 1 1]';
w3=[1 3 3]';
i=3;
w=zeros(i,i);
v=zeros(i,i);
w(:,1)=w1
w(:,2)=w2
w(:,3)=w3
v(:,1)=w1;
for j=2:i,
v(:,j)=w(:,j);
for k=1:j-1,
wdv=w(:,j)' * v(:,k)
v2=v(:,k)' * v(:,k)
v(:,j)=v(:,j)- vdw/v2 *v(:,k);
end
end
w1=[1 0 1]';
w2=[0 1 1]';
w3=[1 3 3]';
i=3;
w=zeros(i,i);
v=zeros(i,i);
w(:,1)=w1
w(:,2)=w2
w(:,3)=w3
v(:,1)=w1;
for j=2:i,
v(:,j)=w(:,j);
for k=1:j-1,
wdv=w(:,j)' * v(:,k)
v2=v(:,k)' * v(:,k)
v(:,j)=v(:,j)- vdw/v2 *v(:,k);
end
end
2010年10月14日 星期四
MatLab -- find eigenvector and eigenvalue
from:http://www.mathworks.com/help/toolbox/fixedpoint/ref/mpower.html
a1= [-1.4 0.8;-2.4 1.8];
[VN,DN] = eig(a1,'nobalance')
a1= [-1.4 0.8;-2.4 1.8];
[VN,DN] = eig(a1,'nobalance')
MatLab -- find eigenvector and eigenvalue
from:http://www.mathworks.com/help/toolbox/fixedpoint/ref/mpower.html
a1= [-1.4 0.8;-2.4 1.8];
[VN,DN] = eig(a1,'nobalance')
a1= [-1.4 0.8;-2.4 1.8];
[VN,DN] = eig(a1,'nobalance')
2010年10月6日 星期三
C++ file read
from:http://www.cplusplus.com/forum/beginner/8388/
#include
#include
using namespace std;
int main()
{
ifstream in("test", ios::in | ios::binary);
if(!in) {
cout << "Cannot open input file.\n";
return 1;
}
double num;
char str[80];
in.read((char *) &num, sizeof(double));
in.read(str, 14);
str[14] = '\0'; // null terminate str
cout << num << ' ' << str;
in.close();
return 0;
}
#include
#include
using namespace std;
int main()
{
ifstream in("test", ios::in | ios::binary);
if(!in) {
cout << "Cannot open input file.\n";
return 1;
}
double num;
char str[80];
in.read((char *) &num, sizeof(double));
in.read(str, 14);
str[14] = '\0'; // null terminate str
cout << num << ' ' << str;
in.close();
return 0;
}
訂閱:
文章 (Atom)