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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
1.1k
What we learned from our failure at Cookpad Mart to increase the probability of success in product development
katsuma
0
3.4k
Overview and challenge of Cookpad Mart in 2022
katsuma
0
11k
Technology infrastructure and development organization supporting Cookpad Mart
katsuma
0
630
Description of Cookpad Mart for engineers
katsuma
0
1.8k
Rails for backend of fresh EC platform "Cookpad Mart"
katsuma
3
3.4k
Service development process for Cookpad Mart
katsuma
1
560
What is "engineer to manager" ?
katsuma
13
9k
Problems of Fresh Market's EC
katsuma
0
300
Other Decks in Programming
See All in Programming
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
340
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
510
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
160
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
370
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
440
Symfony + NelmioApiDocBundle を使った スキーマ駆動開発 / Schema Driven Development with NelmioApiDocBundle
okashoi
0
210
OTP を自動で入力する裏技
megabitsenmzq
0
120
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.3k
Nostalgia Meets Technology: Super Mario with TypeScript
manfredsteyer
PRO
0
110
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
180
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
7
3.1k
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
140
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
360
Context Engineering - Making Every Token Count
addyosmani
9
770
Fireside Chat
paigeccino
42
3.8k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Pragmatic Product Professional
lauravandoore
37
7.2k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
300
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
110
エンジニアに許された特別な時間の終わり
watany
106
240k
Balancing Empowerment & Direction
lara
5
960
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!