SlideShare a Scribd company logo
1 of 65
Download to read offline
YouTube動画の再生回数
がわし…気になります!!
(きゅふぃーん
北䑓如法(きただいゆきのり)
@Hiroshima.rb
2013年10月6日(日)
オープンソースカンファレンス 2013 Hiroshima
(公開用に修正したスライド)
2013年 10月 7日 月曜日
北䑓如法
• きただいゆきのり
• Nyoho
• ハイパ・メディア・トランスレータ
• Apple の動画などを広島弁に吹き替え
• OSC 2011 広島の PR ビデオも制作
• 息子が騒いでいてすみませんwww
2013年 10月 7日 月曜日
人気のつぶやき
2013年 10月 7日 月曜日
favstar
2013年 10月 7日 月曜日
YouTube動画の再生回数が
わし…
2013年 10月 7日 月曜日
YouTube動画の再生回数が
わし…
2013年 10月 7日 月曜日
気になります!!
(きゅふぃーん
2013年 10月 7日 月曜日
というわけで
2013年 10月 7日 月曜日
YouTube動画の再生回数を
日々記録するサービス
その名も
2013年 10月 7日 月曜日
Sigh! Say! Soon!
2013年 10月 7日 月曜日
Sigh! Say! Soon!
を作成中。URLは…
http://sigh-­‐say-­‐soon.herokuapp.com
2013年 10月 7日 月曜日
※自分用です
2013年 10月 7日 月曜日
※今までは手動でメモって
いました。
2013年 10月 7日 月曜日
screenshot
2013年 10月 7日 月曜日
screenshotこれはしょぼい!
2013年 10月 7日 月曜日
自動化したい!
2013年 10月 7日 月曜日
自動化ぐらいなら
2013年 10月 7日 月曜日
ページをクロールして、
カウントを保存する
cronを回せば?
2013年 10月 7日 月曜日
それでもできる
2013年 10月 7日 月曜日
でも、せっかくなので
2013年 10月 7日 月曜日
この機会に
勉強してみたかったことを
勉強してみようかなと♡
2013年 10月 7日 月曜日
Sigh! Say! Soon!
2013年 10月 7日 月曜日
Sigh!Say
S
!
oon!
夕べ適当に作ったロゴ
2013年 10月 7日 月曜日
チラ見せ
sneak preview
2013年 10月 7日 月曜日
2013年 10月 7日 月曜日
2013年 10月 7日 月曜日
2013年 10月 7日 月曜日
Sigh! Say! Soon! 構成
2013年 10月 7日 月曜日
Sigh! Say! Soon! 構成
YouTube
Heroku
ウェブサーバ
gitレポジトリ
Scheduler 開発マシン
日々リクエスト
1回/1日
再生数
情報ゲット
デプロイ(配備)
ソースを管理
push/pull
わし
アクセスして情報を見る
Sigh!Say
S
!
oon!
2013年 10月 7日 月曜日
勉強してみたこと
• Ruby (プログラミング言語(わかるわー))
• Ruby on Rails (Web Appフレームワーク)
• Heroku
• Heroku Scheduler
• YouTube API
• Rails でのグラフ: Chart.js,
lazy_high_charts, chartkick
2013年 10月 7日 月曜日
勉強してみたこと
• 補完 gem interpolate
• Rails で Compass + Sass + Susy
• New Relic
2013年 10月 7日 月曜日
今回自分で最も大きかっ
たのは
2013年 10月 7日 月曜日
Heroku
2013年 10月 7日 月曜日
Heroku (へろく) という PaaS を
初めてまともに使ってみたこと
2013年 10月 7日 月曜日
Heroku
• そろそろなんでもかんでも自宅サーバで
やるのを卒業(?)したかった。
• 少しずつ外部の PaaS や VPS を使ってみ
たい。
• 無料。(ただし、(後述))
2013年 10月 7日 月曜日
Heroku
• いろんな言語でウェブアプリが動かせる
• “規模が小さければ”無料
•駄菓子菓子!!!
2013年 10月 7日 月曜日
ちょっと何かやったら
すぐ有料プランに
2013年 10月 7日 月曜日
dyno / DB / Add-on
2013年 10月 7日 月曜日
dynos は各プロジェクト
1 dyno まで無料
2013年 10月 7日 月曜日
webサーバ1プロセス
= 1 dyno
2013年 10月 7日 月曜日
cron まわしても
すぐ有料に
2013年 10月 7日 月曜日
Sigh!
Say!
Soon!
Pinch!
2013年 10月 7日 月曜日
定期的にデータを取り
ウェブサーバで表示も
同時にしたかったけど…
2013年 10月 7日 月曜日
無料は無理か…
2013年 10月 7日 月曜日
そんなとき
2013年 10月 7日 月曜日
颯爽と登場したのが
2013年 10月 7日 月曜日
Heroku Scheduler
2013年 10月 7日 月曜日
Heroku Scheduler
• Heroku の無料プラグイン (add-on)
• 知ったときの叫び→「なにー! Heroku
Scheduler というのがあって10分だろう
が1時間だろうが1日だろうがそれごとに
cron みたいにまわせるのが無料だとー!!!
これは勝つる」
2013年 10月 7日 月曜日
というわけで
2013年 10月 7日 月曜日
Heroku Scheduler オン!
2013年 10月 7日 月曜日
(rake counting というタスクを登録してみたところ)
2013年 10月 7日 月曜日
ウェブサーバの1dynoだけ
で行けます! 行けました!!
2013年 10月 7日 月曜日
めでたしめでたし
2013年 10月 7日 月曜日
「お金払えばいいんじゃ…?」
2013年 10月 7日 月曜日
あっそれはそれで別のことをしよ
うと…というか無料でどこまで
できるか単純に知りたいという
知識欲というかなんというか汗
2013年 10月 7日 月曜日
以下は時間があったら
紹介
2013年 10月 7日 月曜日
グラフ描画ツールを
いくつか試しました
2013年 10月 7日 月曜日
グラフ描画ツール
• Chart.js (きれい)
• lazy_high_charts (高機能, Railsに便利)
• chartkick (高機能, Railsに便利)
2013年 10月 7日 月曜日
日ごとの再生数を算出し
ようとしていたら
2013年 10月 7日 月曜日
線形補間用 gem interpolate
• データ取得はぴったりの時刻ではないの
で日々の再生数は計算が必要
• 自分で書いていたら、ちょうどずばりの
gemがあった。interpolate
• lucky∼∼♪
2013年 10月 7日 月曜日
New Relic
• パフォーマンス計測可視化ツール・サー
ビス
• IT系で面白いポッドキャスト Rebuild.fm
に話題になっていて使ってみたかった。
• めちゃんこ導入が楽だった。
• iPhone アプリまである。
2013年 10月 7日 月曜日
2013年 10月 7日 月曜日
後は Rails での見た目
• Rails で見た目をいじるためのツールの使
い方を勉強した
• Compass + Sass + Susy (gem から簡単)
• FontAwesome (gem から簡単導入)
• でも肝心の Asset pipeline の理解がまだ
不十分だとわかった。
2013年 10月 7日 月曜日
今後のTODO
• バックアップ
• 今までの手動(笑)記録を入れる
• データを見る範囲を可変にしてAJAXにし
たい。(今は30日間固定)
• トップでサムネイルや再生数変化のラン
キング情報などを出したい。
• 見た目をかっこよくしたい。
2013年 10月 7日 月曜日
の紹介でした。
Sigh!Say
S
!
oon!
http://sigh-­‐say-­‐soon.herokuapp.com
2013年 10月 7日 月曜日

More Related Content

Recently uploaded

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video UnderstandingToru Tamaki
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsWSO2
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...Toru Tamaki
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptxsn679259
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルCRI Japan, Inc.
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Hiroshi Tomioka
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Gamesatsushi061452
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイスCRI Japan, Inc.
 

Recently uploaded (12)

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

YouTube動画の再生回数がわし…気になります!! (きゅふぃーん @OSC 2013 Hiroshima