Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Siri and Ruby
Search
Ryo Katsuma
June 29, 2013
Programming
0
1.1k
Siri and Ruby
Ryo Katsuma
June 29, 2013
Tweet
Share
More Decks by Ryo Katsuma
See All by Ryo Katsuma
The past and future of cookpad mart service development
katsuma
1
980
What we learned from our failure at Cookpad Mart to increase the probability of success in product development
katsuma
0
3.2k
Overview and challenge of Cookpad Mart in 2022
katsuma
0
11k
Technology infrastructure and development organization supporting Cookpad Mart
katsuma
0
610
Description of Cookpad Mart for engineers
katsuma
0
1.7k
Rails for backend of fresh EC platform "Cookpad Mart"
katsuma
3
3.2k
Service development process for Cookpad Mart
katsuma
1
500
What is "engineer to manager" ?
katsuma
13
8.7k
Problems of Fresh Market's EC
katsuma
0
280
Other Decks in Programming
See All in Programming
PostgreSQLのRow Level SecurityをPHPのORMで扱う Eloquent vs Doctrine #phpcon #track2
77web
2
500
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
2
630
0626 Findy Product Manager LT Night_高田スライド_speaker deck用
mana_takada
0
150
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
730
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
360
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
270
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
340
関数型まつりレポート for JuliaTokai #22
antimon2
0
160
ソフトウェア品質を数字で捉える技術。事業成長を支えるシステム品質の マネジメント
takuya542
1
11k
CursorはMCPを使った方が良いぞ
taigakono
1
240
第9回 情シス転職ミートアップ 株式会社IVRy(アイブリー)の紹介
ivry_presentationmaterials
1
270
童醫院敏捷轉型的實踐經驗
cclai999
0
210
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Documentation Writing (for coders)
carmenintech
72
4.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
How to Ace a Technical Interview
jacobian
277
23k
Designing for Performance
lara
610
69k
What's in a price? How to price your products and services
michaelherold
246
12k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
The Language of Interfaces
destraynor
158
25k
Transcript
Siri and Ruby TokyuRubyKaigi06 @ryo_katsuma
Hello!! Tokyu Ruby Kaigi
Ryo Katsuma @ryo_katsuma Engineer at COOKPAD Inc. github.com/katsuma twitter.com/ryo_katsuma
http://www.flickr.com/photos/superstarjet/2373405653/ Thank you, SUNTRY !!
͕ɺ͔͠͠
ਖ਼ɺ ਲͬͺΒͬͨɻ
खݩ͕͓΅͔ͭͳ͍
Α͘Θ͔ΒΜ 3FCMPHͪ͠Ό͍ͦ͏
ͰɺϏʔϧ ͖ͩɻ
టਲͯͯ͠ ৗੜ׆Λ ΞϨίϨ͍ͨ͠
Break through?
Siri
You just say something
Siri solves all problems
None
+
+ Ruby makes Siri more cool
None
SiriProxy
Siri plugin by simple regexp
I say ‘GO’, You says ‘Stop’
class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed
end end
class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed
end end
class SiriProxy::Plugin::Sample < SiriProxy::Plugin listen_for /Go/ do say "Stop" request_completed
end end very simple!
DNS setting SiriProxy
DNS setting SiriProxy
DNS setting SiriProxy
DNS setting SiriProxy Siri Server
DNS setting SiriProxy Siri Server
Demo 1
Turn on the screen saver https://github.com/katsuma/SiriProxy-Screen
None
def run_screen_saver `/System/Library/Frameworks/ScreenSaver.framework /Resources/ScreenSaverEngine.app /Contents/MacOS/ScreenSaverEngine` end
class SiriProxy::Plugin::Screen < SiriProxy::Plugin listen_for /ը໘Λ?(ফͯ͠|͚ͯ͠)/ do say 'εΫϦʔϯηʔόʔΛىಈ͠·͢' run_screen_saver
request_completed end end
Demo 2
Turn on/off the light https://github.com/katsuma/SiriProxy-iRemcon
None
iRemocon
Multi remote control with IP address
IP address TCP signal IR
IP address TCP signal Turn on/off the light
Conclusion
Siri + Ruby solves all problems
Have a nice beer!