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.6k
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
設計やレビューに悩んでいるPHPerに贈る、クリーンなオブジェクト設計の指針たち
panda_program
6
1.4k
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
450
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
46
31k
C++20 射影変換
faithandbrave
0
530
FormFlow - Build Stunning Multistep Forms
yceruto
1
190
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
540
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
190
XP, Testing and ninja testing
m_seki
3
190
deno-redisの紹介とJSRパッケージの運用について (toranoana.deno #21)
uki00a
0
150
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
320
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
380
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
1
690
Featured
See All Featured
Embracing the Ebb and Flow
colly
86
4.7k
How to train your dragon (web standard)
notwaldorf
93
6.1k
BBQ
matthewcrist
89
9.7k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.6k
Docker and Python
trallard
44
3.4k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Documentation Writing (for coders)
carmenintech
72
4.9k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
670
Code Reviewing Like a Champion
maltzj
524
40k
Designing Experiences People Love
moore
142
24k
Balancing Empowerment & Direction
lara
1
370
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
790
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!