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
1k
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
620
Description of Cookpad Mart for engineers
katsuma
0
1.7k
Rails for backend of fresh EC platform "Cookpad Mart"
katsuma
3
3.3k
Service development process for Cookpad Mart
katsuma
1
500
What is "engineer to manager" ?
katsuma
13
8.8k
Problems of Fresh Market's EC
katsuma
0
280
Other Decks in Programming
See All in Programming
JetBrainsのAI機能の紹介 #jjug
yusuke
0
200
Webinar: AI-Powered Development: Transformiere deinen Workflow mit Coding Tools und MCP Servern
danielsogl
0
130
decksh - a little language for decks
ajstarks
4
21k
未来を拓くAI技術〜エージェント開発とAI駆動開発〜
leveragestech
2
140
Langfuseと歩む生成AI活用推進
licux
3
230
コーディングは技術者(エンジニア)の嗜みでして / Learning the System Development Mindset from Rock Lady
mackey0225
2
490
プロダクトという一杯を作る - プロダクトチームが味の責任を持つまでの煮込み奮闘記
hiliteeternal
0
460
What's new in Adaptive Android development
fornewid
0
140
「リーダーは意思決定する人」って本当?~ 学びを現場で活かす、リーダー4ヶ月目の試行錯誤 ~
marina1017
0
220
可変性を制する設計: 構造と振る舞いから考える概念モデリングとその実装
a_suenami
10
1.7k
Nuances on Kubernetes - RubyConf Taiwan 2025
envek
0
170
Understanding Kotlin Multiplatform
l2hyunwoo
0
260
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
How to train your dragon (web standard)
notwaldorf
96
6.2k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Side Projects
sachag
455
43k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.6k
Statistics for Hackers
jakevdp
799
220k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Building Applications with DynamoDB
mza
96
6.6k
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!