Tuesday, September 27, 2011

dylib on mac os x

1. check
otool -L xxx-app
/usr/local/lib/libxxx.dylib

2. reset it
install_name_tool -change "/usr/local/lib/libxxx.dylib" "@loader_path/../lib/libxxx.dylib" xxx-app

Wednesday, September 7, 2011

#include ; ifstream to string

#include <sstream>
#include <fstream>
using namespace std;
int main()
{
    ifstream inStream("data.txt");
    string str;
    inStream >> str;

    return 0;
}

Tuesday, September 6, 2011

Sunday, August 28, 2011

b = a,返回引用; c = a + b,返回值;return int(a+c) 创建一个临时对象并返回

临时对象直接在外部储存单元中创建并初始化。

office building optimization

1. find the best design process for office building design using GP.
   Genome:  a b a a a b
   gene:        a
   gene-metadata: 12345 -> a -> a b a a a b
   gene-metadata: 12344 -> a -> a b a a a b 
   gene-metadata: 21340 -> b -> b b a a a b

2. object-oriented crossover and mutation

Friday, August 26, 2011

c#/csharp "@" at-sign


int new = 123;  // 'new' is a keyword 
int @new = 123; // no error 
 
string str1 = "photos\\aug";
string str2 = @"photos\aug";

Friday, July 22, 2011

multi ANN agents process optimization

ANN for each activity

ANN -> ANN -> ANN ->

design process optimization

Haiku, 很不错, very nice

http://haiku-os.org/

期待正式版发出。
今天在windows 7下在VirtualBox里尝试了Haiku alpha 3的VM虚拟机版本,感觉挺不错。

FEM on windows with visual studio 2010

under trying