SlideShare a Scribd company logo
1 of 20
Download to read offline
Full Text Search on iPhone
Use OSS libraries on iPhone!
わたなべかずひろ@kaz_29
2010年11月8日月曜日
Who am I
Name: Kazuhiro Watanabe
Work: E2 Inc. => Here!
twitter: @kaz_29
blog: http://d.hatena.ne.jp/kaz_29
I like #iphonedev #cakephp #lithium #php
and #golf #cat and #beer!
2010年11月8日月曜日
Advertisement!
2010年11月8日月曜日
NIFTY Cloud Manager
2010/10/20 out!
http://iphone.e-2.co.jp/
2010年11月8日月曜日
How to use ‘Hyper Estraier’
in your Apps.
http://fallabs.com/hyperestraier/
2010年11月8日月曜日
I like source install!
2010年11月8日月曜日
configure option
$ ./configure --prefix=/usr/local/iphone 
CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
CFLAGS=-arch i386
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator4.0.sdk
-I/usr/local/iphone/include -L/usr/local/iphone/lib
CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 
AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar
インストール先を指定
2010年11月8日月曜日
configure option
$ ./configure --prefix=/usr/local/iphone 
CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
CFLAGS=-arch i386
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator4.0.sdk
-I/usr/local/iphone/include -L/usr/local/iphone/lib
CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 
AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar
Cコンパイラを指定
2010年11月8日月曜日
configure option
$ ./configure --prefix=/usr/local/iphone 
CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
CFLAGS=-arch i386
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator4.0.sdk
-I/usr/local/iphone/include -L/usr/local/iphone/lib
CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 
AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar
Cコンパイル設定を指定
2010年11月8日月曜日
configure option
$ ./configure --prefix=/usr/local/iphone 
CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
CFLAGS=-arch i386
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator4.0.sdk
-I/usr/local/iphone/include -L/usr/local/iphone/lib
CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 
AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar
C++コンパイラを指定
2010年11月8日月曜日
configure option
$ ./configure --prefix=/usr/local/iphone 
CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
CFLAGS=-arch i386
-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator4.0.sdk
-I/usr/local/iphone/include -L/usr/local/iphone/lib
CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 
AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar
アーカイブツールを指定
2010年11月8日月曜日
Customize Makefile
# for Simurator
CC = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
AR = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar
CFLAGS = -arch i386 -Wall -fPIC -fsigned-char -O3 -fomit-frame-pointer 
 -fforce-addr
# for Device
CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
AR = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
CFLAGS = -isysroot /Developer-SDK402/Platforms/iPhoneOS.platform/Developer/
SDKs/iPhoneOS4.0.sdk 
-arch armv6 -Wall -fPIC -fsigned-char -O3 -fomit-frame-pointer -fforce-addr
2010年11月8日月曜日
Add your project
for device
for simulator
2010年11月8日月曜日
Summary
CC,CPP,AR => Change to iOS SDK Tools
CFLAGS
-arch i386(or armv6) => set target architecture
-isysroot => set root path
2010年11月8日月曜日
Test code - Preparation for search
/* dbをオープン */
if (!(db = est_db_open((const char*)cdataPath, ESTDBREADER, &ecode))){
	 return ;
}
/* 検索条件オブジェクトを生成する */
cond = est_cond_new();
	
NSInteger length = sizeof(searchkey);
/* 検索条件オブジェクトに検索式を設定する */
[searchBar.text getCString:(char*)searchkey maxLength:length
encoding:NSUTF8StringEncoding];
est_cond_set_phrase(cond, searchkey);
CBMAP *hints;
hints = cbmapopenex(MINIBNUM);
/* 実際に取得する数を設定 */
est_cond_set_max(cond, 30) ;
2010年11月8日月曜日
Test code - search and get results
/* データベースから検索結果を得る */
result = est_db_search(db, cond, &resnum, hints);
/* ヒット数を取得 */
numHits = (rp = cbmapget(hints, "", 0, NULL)) ? atoi(rp) : resnum;
/* 各該当文書を取得して表示する */
for(i = 0; i < resnum; i++){
/* 文書オブジェクトを取得する */
if(!(doc = est_db_get_doc(db, result[i], 0))) continue;
if((tmptitle = est_doc_attr(doc, "@title")) != NULL) {
NSLog(@"Title: %sn", tmptitle);
}
}
2010年11月8日月曜日
Demo
2010年11月8日月曜日
Demo Data
10,796 html files
total size 75M
PHP Manual
2010年11月8日月曜日
License is important!
2010年11月8日月曜日
Thank you(><)
2010年11月8日月曜日

More Related Content

Viewers also liked

Illustrating A Political
Illustrating A PoliticalIllustrating A Political
Illustrating A PoliticalAmy
 
υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11
υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11
υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11Christos Gotzaridis
 
Tuinwedstrijd 2 inzending van LittleMissLien
Tuinwedstrijd 2 inzending van LittleMissLienTuinwedstrijd 2 inzending van LittleMissLien
Tuinwedstrijd 2 inzending van LittleMissLienLittleMissLien
 
Prezentacija RsV klubui
Prezentacija RsV klubuiPrezentacija RsV klubui
Prezentacija RsV klubuimkarciauskas
 
20131029 SplashMaps at #Geomob London
20131029 SplashMaps at #Geomob London20131029 SplashMaps at #Geomob London
20131029 SplashMaps at #Geomob Londondbyhundred
 
Future Agenda Future Of Choice
Future Agenda   Future Of ChoiceFuture Agenda   Future Of Choice
Future Agenda Future Of ChoiceFuture Agenda
 
Future Agenda Future Of Transport
Future Agenda   Future Of TransportFuture Agenda   Future Of Transport
Future Agenda Future Of TransportFuture Agenda
 
第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 Datasource第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 DatasourceKaz Watanabe
 
Groene Kernenergie Belofte Of Onzin 9 Juni 2011
Groene Kernenergie Belofte Of Onzin 9 Juni 2011Groene Kernenergie Belofte Of Onzin 9 Juni 2011
Groene Kernenergie Belofte Of Onzin 9 Juni 2011noudteriele
 
Whatisa Trillion
Whatisa TrillionWhatisa Trillion
Whatisa Trillionguest276365
 
Silicon Valley Code Camp 2010: Social Platforms : What goes on under the hood
Silicon Valley Code Camp 2010: Social Platforms : What goes on under the hoodSilicon Valley Code Camp 2010: Social Platforms : What goes on under the hood
Silicon Valley Code Camp 2010: Social Platforms : What goes on under the hoodManish Pandit
 
Analisi ergonomica del sito www.psicologia.unimib.it Milano Bicocca
Analisi ergonomica del sito www.psicologia.unimib.it Milano BicoccaAnalisi ergonomica del sito www.psicologia.unimib.it Milano Bicocca
Analisi ergonomica del sito www.psicologia.unimib.it Milano BicoccaMichele Pierangeli
 
Audience Feedback Animatic
Audience Feedback AnimaticAudience Feedback Animatic
Audience Feedback Animatic3246
 
Funcionlinealyafin
FuncionlinealyafinFuncionlinealyafin
FuncionlinealyafinRodolfo A
 

Viewers also liked (20)

Sip
SipSip
Sip
 
1 3
1 31 3
1 3
 
Illustrating A Political
Illustrating A PoliticalIllustrating A Political
Illustrating A Political
 
υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11
υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11
υλη οδηγιες φυσικων μαθηματων ημερ. και εσπ. λυκειου 2010-11
 
Tuinwedstrijd 2 inzending van LittleMissLien
Tuinwedstrijd 2 inzending van LittleMissLienTuinwedstrijd 2 inzending van LittleMissLien
Tuinwedstrijd 2 inzending van LittleMissLien
 
Prezentacija RsV klubui
Prezentacija RsV klubuiPrezentacija RsV klubui
Prezentacija RsV klubui
 
20131029 SplashMaps at #Geomob London
20131029 SplashMaps at #Geomob London20131029 SplashMaps at #Geomob London
20131029 SplashMaps at #Geomob London
 
Frederick Denison Maurice
Frederick Denison MauriceFrederick Denison Maurice
Frederick Denison Maurice
 
Future Agenda Future Of Choice
Future Agenda   Future Of ChoiceFuture Agenda   Future Of Choice
Future Agenda Future Of Choice
 
Nuestros Valores
Nuestros ValoresNuestros Valores
Nuestros Valores
 
Future Agenda Future Of Transport
Future Agenda   Future Of TransportFuture Agenda   Future Of Transport
Future Agenda Future Of Transport
 
第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 Datasource第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 Datasource
 
Groene Kernenergie Belofte Of Onzin 9 Juni 2011
Groene Kernenergie Belofte Of Onzin 9 Juni 2011Groene Kernenergie Belofte Of Onzin 9 Juni 2011
Groene Kernenergie Belofte Of Onzin 9 Juni 2011
 
Whatisa Trillion
Whatisa TrillionWhatisa Trillion
Whatisa Trillion
 
Acacia Research and Learning Forum: Network Outcomes Evaluation
Acacia Research and Learning Forum: Network Outcomes EvaluationAcacia Research and Learning Forum: Network Outcomes Evaluation
Acacia Research and Learning Forum: Network Outcomes Evaluation
 
Silicon Valley Code Camp 2010: Social Platforms : What goes on under the hood
Silicon Valley Code Camp 2010: Social Platforms : What goes on under the hoodSilicon Valley Code Camp 2010: Social Platforms : What goes on under the hood
Silicon Valley Code Camp 2010: Social Platforms : What goes on under the hood
 
Analisi ergonomica del sito www.psicologia.unimib.it Milano Bicocca
Analisi ergonomica del sito www.psicologia.unimib.it Milano BicoccaAnalisi ergonomica del sito www.psicologia.unimib.it Milano Bicocca
Analisi ergonomica del sito www.psicologia.unimib.it Milano Bicocca
 
Audience Feedback Animatic
Audience Feedback AnimaticAudience Feedback Animatic
Audience Feedback Animatic
 
Small Group Makeup Workshops in Tauranga
Small Group Makeup Workshops in TaurangaSmall Group Makeup Workshops in Tauranga
Small Group Makeup Workshops in Tauranga
 
Funcionlinealyafin
FuncionlinealyafinFuncionlinealyafin
Funcionlinealyafin
 

Similar to It eigo 20101029

エンジニアからCTOへ 2015-06-11 IVS CTO Night & Day
エンジニアからCTOへ 2015-06-11 IVS CTO Night & DayエンジニアからCTOへ 2015-06-11 IVS CTO Night & Day
エンジニアからCTOへ 2015-06-11 IVS CTO Night & Day株式会社MonotaRO Tech Team
 
Modest06 firefox 4 の l10 n について
Modest06 firefox 4 の l10 n についてModest06 firefox 4 の l10 n について
Modest06 firefox 4 の l10 n についてhATrayflood
 
#yidev 横浜 iPhone 勉強会 - 第16回 オープニング
#yidev 横浜 iPhone 勉強会 - 第16回 オープニング#yidev 横浜 iPhone 勉強会 - 第16回 オープニング
#yidev 横浜 iPhone 勉強会 - 第16回 オープニングTomohiro Kumagai
 
iOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分について
iOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分についてiOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分について
iOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分についてFumiya Sakai
 
iPhoneアプリ開発を楽に楽しくするサイトまとめ
iPhoneアプリ開発を楽に楽しくするサイトまとめiPhoneアプリ開発を楽に楽しくするサイトまとめ
iPhoneアプリ開発を楽に楽しくするサイトまとめHiramatsu Ryosuke
 
第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift
第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift
第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswiftTomohiro Kumagai
 
レイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞく
レイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞくレイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞく
レイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞくFumiya Sakai
 
Facebook messenger botの作り方と作ってみた
Facebook messenger botの作り方と作ってみたFacebook messenger botの作り方と作ってみた
Facebook messenger botの作り方と作ってみたTakaaki Kusumoto
 
最近の業務やAndroid関連のインプットと振り返り
最近の業務やAndroid関連のインプットと振り返り最近の業務やAndroid関連のインプットと振り返り
最近の業務やAndroid関連のインプットと振り返りFumiya Sakai
 
Nseg3 firefoxとmozillaコミュニティの紹介
Nseg3 firefoxとmozillaコミュニティの紹介Nseg3 firefoxとmozillaコミュニティの紹介
Nseg3 firefoxとmozillaコミュニティの紹介hATrayflood
 
エフスタ!!Vol.4
エフスタ!!Vol.4エフスタ!!Vol.4
エフスタ!!Vol.4Jin Ookubo
 
第2回スマートフォン講座
第2回スマートフォン講座第2回スマートフォン講座
第2回スマートフォン講座Shinichi Kosaki
 
使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!SatoTakeshi
 
使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!SatoTakeshi
 

Similar to It eigo 20101029 (17)

エンジニアからCTOへ 2015-06-11 IVS CTO Night & Day
エンジニアからCTOへ 2015-06-11 IVS CTO Night & DayエンジニアからCTOへ 2015-06-11 IVS CTO Night & Day
エンジニアからCTOへ 2015-06-11 IVS CTO Night & Day
 
Tensorflow
TensorflowTensorflow
Tensorflow
 
Modest06 firefox 4 の l10 n について
Modest06 firefox 4 の l10 n についてModest06 firefox 4 の l10 n について
Modest06 firefox 4 の l10 n について
 
#yidev 横浜 iPhone 勉強会 - 第16回 オープニング
#yidev 横浜 iPhone 勉強会 - 第16回 オープニング#yidev 横浜 iPhone 勉強会 - 第16回 オープニング
#yidev 横浜 iPhone 勉強会 - 第16回 オープニング
 
Apple Map
Apple MapApple Map
Apple Map
 
iOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分について
iOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分についてiOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分について
iOSアプリ開発で意識すると役立ちそうな「つなぎ目」の部分について
 
iPhoneアプリ開発を楽に楽しくするサイトまとめ
iPhoneアプリ開発を楽に楽しくするサイトまとめiPhoneアプリ開発を楽に楽しくするサイトまとめ
iPhoneアプリ開発を楽に楽しくするサイトまとめ
 
第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift
第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift
第7回 カジュアル Swift 勉強会 @ 青葉台 オープニング #cswift
 
4th tokushimaapp
4th tokushimaapp4th tokushimaapp
4th tokushimaapp
 
レイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞく
レイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞくレイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞく
レイヤー分けをしたアーキテクチャで作るiOSアプリ&バックエンドのサンプル実装をのぞく
 
Facebook messenger botの作り方と作ってみた
Facebook messenger botの作り方と作ってみたFacebook messenger botの作り方と作ってみた
Facebook messenger botの作り方と作ってみた
 
最近の業務やAndroid関連のインプットと振り返り
最近の業務やAndroid関連のインプットと振り返り最近の業務やAndroid関連のインプットと振り返り
最近の業務やAndroid関連のインプットと振り返り
 
Nseg3 firefoxとmozillaコミュニティの紹介
Nseg3 firefoxとmozillaコミュニティの紹介Nseg3 firefoxとmozillaコミュニティの紹介
Nseg3 firefoxとmozillaコミュニティの紹介
 
エフスタ!!Vol.4
エフスタ!!Vol.4エフスタ!!Vol.4
エフスタ!!Vol.4
 
第2回スマートフォン講座
第2回スマートフォン講座第2回スマートフォン講座
第2回スマートフォン講座
 
使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!
 
使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!使うっきゃない!iOS9で楽になったAuto Layout!
使うっきゃない!iOS9で楽になったAuto Layout!
 

Recently uploaded

TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムsugiuralab
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略Ryo Sasaki
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 

Recently uploaded (9)

TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 

It eigo 20101029

  • 1. Full Text Search on iPhone Use OSS libraries on iPhone! わたなべかずひろ@kaz_29 2010年11月8日月曜日
  • 2. Who am I Name: Kazuhiro Watanabe Work: E2 Inc. => Here! twitter: @kaz_29 blog: http://d.hatena.ne.jp/kaz_29 I like #iphonedev #cakephp #lithium #php and #golf #cat and #beer! 2010年11月8日月曜日
  • 4. NIFTY Cloud Manager 2010/10/20 out! http://iphone.e-2.co.jp/ 2010年11月8日月曜日
  • 5. How to use ‘Hyper Estraier’ in your Apps. http://fallabs.com/hyperestraier/ 2010年11月8日月曜日
  • 6. I like source install! 2010年11月8日月曜日
  • 7. configure option $ ./configure --prefix=/usr/local/iphone CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 CFLAGS=-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator4.0.sdk -I/usr/local/iphone/include -L/usr/local/iphone/lib CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar インストール先を指定 2010年11月8日月曜日
  • 8. configure option $ ./configure --prefix=/usr/local/iphone CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 CFLAGS=-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator4.0.sdk -I/usr/local/iphone/include -L/usr/local/iphone/lib CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar Cコンパイラを指定 2010年11月8日月曜日
  • 9. configure option $ ./configure --prefix=/usr/local/iphone CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 CFLAGS=-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator4.0.sdk -I/usr/local/iphone/include -L/usr/local/iphone/lib CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar Cコンパイル設定を指定 2010年11月8日月曜日
  • 10. configure option $ ./configure --prefix=/usr/local/iphone CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 CFLAGS=-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator4.0.sdk -I/usr/local/iphone/include -L/usr/local/iphone/lib CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar C++コンパイラを指定 2010年11月8日月曜日
  • 11. configure option $ ./configure --prefix=/usr/local/iphone CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 CFLAGS=-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator4.0.sdk -I/usr/local/iphone/include -L/usr/local/iphone/lib CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar アーカイブツールを指定 2010年11月8日月曜日
  • 12. Customize Makefile # for Simurator CC = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 AR = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar CFLAGS = -arch i386 -Wall -fPIC -fsigned-char -O3 -fomit-frame-pointer  -fforce-addr # for Device CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 AR = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar CFLAGS = -isysroot /Developer-SDK402/Platforms/iPhoneOS.platform/Developer/ SDKs/iPhoneOS4.0.sdk -arch armv6 -Wall -fPIC -fsigned-char -O3 -fomit-frame-pointer -fforce-addr 2010年11月8日月曜日
  • 13. Add your project for device for simulator 2010年11月8日月曜日
  • 14. Summary CC,CPP,AR => Change to iOS SDK Tools CFLAGS -arch i386(or armv6) => set target architecture -isysroot => set root path 2010年11月8日月曜日
  • 15. Test code - Preparation for search /* dbをオープン */ if (!(db = est_db_open((const char*)cdataPath, ESTDBREADER, &ecode))){ return ; } /* 検索条件オブジェクトを生成する */ cond = est_cond_new(); NSInteger length = sizeof(searchkey); /* 検索条件オブジェクトに検索式を設定する */ [searchBar.text getCString:(char*)searchkey maxLength:length encoding:NSUTF8StringEncoding]; est_cond_set_phrase(cond, searchkey); CBMAP *hints; hints = cbmapopenex(MINIBNUM); /* 実際に取得する数を設定 */ est_cond_set_max(cond, 30) ; 2010年11月8日月曜日
  • 16. Test code - search and get results /* データベースから検索結果を得る */ result = est_db_search(db, cond, &resnum, hints); /* ヒット数を取得 */ numHits = (rp = cbmapget(hints, "", 0, NULL)) ? atoi(rp) : resnum; /* 各該当文書を取得して表示する */ for(i = 0; i < resnum; i++){ /* 文書オブジェクトを取得する */ if(!(doc = est_db_get_doc(db, result[i], 0))) continue; if((tmptitle = est_doc_attr(doc, "@title")) != NULL) { NSLog(@"Title: %sn", tmptitle); } } 2010年11月8日月曜日
  • 18. Demo Data 10,796 html files total size 75M PHP Manual 2010年11月8日月曜日