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
Tuesday, September 27, 2011
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;
}
#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
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
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";
Wednesday, August 24, 2011
Friday, July 22, 2011
multi ANN agents process optimization
ANN for each activity
ANN -> ANN -> ANN ->
design process optimization
ANN -> ANN -> ANN ->
design process optimization
Haiku, 很不错, very nice
http://haiku-os.org/
期待正式版发出。
今天在windows 7下在VirtualBox里尝试了Haiku alpha 3的VM虚拟机版本,感觉挺不错。
期待正式版发出。
今天在windows 7下在VirtualBox里尝试了Haiku alpha 3的VM虚拟机版本,感觉挺不错。
Thursday, July 21, 2011
Subscribe to:
Posts (Atom)