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
QR Code Shell
Search
MSR
August 27, 2016
0
2.2k
QR Code Shell
QRコードシェル芸の可能性
※発表時の内容と異なる部分があります
※スライド内に登場するQRコードを読み取り、実行したことによる損害の補償はいたしかねます
MSR
August 27, 2016
Tweet
Share
More Decks by MSR
See All by MSR
horizon
msr_i386
0
1.1k
fujiaire by shell
msr_i386
0
810
colaboratory
msr_i386
0
140
yes command faster
msr_i386
0
320
Amazon Dash Hack
msr_i386
0
1.4k
cgroup
msr_i386
0
1.3k
discover fork-bomb
msr_i386
0
1.8k
kanji banner
msr_i386
0
1.8k
ASCII art oneliner
msr_i386
0
1.9k
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
A Tale of Four Properties
chriscoyier
156
23k
Building an army of robots
kneath
302
43k
It's Worth the Effort
3n
183
27k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Transcript
QRίʔυγΣϧܳ? @ୈ24ճγΣϧܳษڧձେࡕαςϥΠτ
࣍ ➤ ࣗݾհ ➤ QRίʔυͱ ➤ QRίʔυͷಛ ➤ QRίʔυͱγΣϧܳ ➤
·ͱΊ
ࣗݾհ(1) ➤ ϋϯυϧωʔϜ: MSR (@msr386) ➤ ٻ৬த ➤ C++ϓϩάϥϛϯάͱαʔόʔӡ༻͕ಘҙ ➤
Chromium Contributor (1ճ͚ͩ)
ࣗݾհ(2) Webϒϥβ࡞ͬͯ·͢ ( http://app.tungsten-start.net/ ) ※ਤ։ൃதͷͷͰ͢
QRίʔυͱ ➤ גࣜձࣾσϯιʔΣʔϒ͕։ൃͨ͠2࣍ݩίʔυ ➤ Quick Responseͷུ ➤ JISن੍֨ఆ (1999, ϚΠΫϩQR2004)
➤ ISOن੍֨ఆ (2000) ➤ ͳΒ࠷େ7000ܻɺ8ϏοτόΠφϦσʔλͰ࠷େ2953όΠτຒ ΊࠐΊΔ ➤ Կ͕ॻ͍ͯ͋Δ͔ਓؒʹΘ͔Βͳ͍ ➤ ↓ྫ
QRίʔυͷಛ QRίʔυυοτίϜ(http://www.qrcode.com/)ʹΑΔͱɾɾɾ 1. େ༰ྔσʔλͷऩೲ 2. খεϖʔεͷҹࣈ 3. ͔ͳɾࣈΛޮΑ͘දݱ 4. ԚΕɾഁଛʹڧ͍
5. 360°Ͳͷํ͔ΒͰಡΈऔΓՄೳ 6. ࿈݁ػೳΛαϙʔτ
QRίʔυͷछྨ QRίʔυ Ϟσϧ1 Ϟσϧ2 ϚΠΫϩQRίʔυ iQRίʔυ SQRC ϑϨʔϜQR ࠷ॳͷQRίʔυ
Ϟσϧ2վྑ൛ ݱࡏɺQRίʔυ ҰൠతʹϞσ ϧ2Λࣔ͢ Γग़͠γϯϘ ϧΛ௨ৗͷQRί ʔυͷ3ݸ͔Β1 ݸʹݮΒ͠ɺΑ Γখͨ͘͞͠ί ʔυ QRίʔυΑΓଟ ͘ͷใྔΛ֨ ೲՄೳ ํܗ൛ଘࡏ දཪసɾനࠇ సͰೝࣝՄ ೳ σʔλಡΈऔΓ ੍ݶػೳ͖QR ίʔυ ݟͨQRίʔ υͱมΘΒͳ͍ தԝ෦ʹਤܗɾ จࣈͳͲΛࣗ༝ ʹஔͰ͖Δྖ Ҭ͕͋Δ JIS/ISOن੍֨ఆ JISن੍֨ఆࡁ - - -
QRίʔυͷੜɾಡΈऔΓ ➤ UNIXܥOSͰQRίʔυΛੜɾಡΈऔΓΛߦ͏ʹ࣍ͷίϚ ϯυɾϥΠϒϥϦΛ͏ ੜ: qrencode, libqrencode ಡΈऔΓ: ZBar, libdecodeqr
QRίʔυΛੜ͢Δ ➤ UbuntuͰ͋Εύοέʔδ͕ଘࡏ͢Δ $ sudo apt-get install qrencode ➤ QRίʔυը૾Λੜ͢Δ
$ qrencode -o qr.png QRcode ➤ ANSI੍ޚίʔυ͖දࣔɺASCIIɺUTF-8ɺSVGग़ྗՄೳ $ qrencode -t UTF8 QRcode
QRίʔυΛಡΈऔΔ ➤ UbuntuͰ͋Εύοέʔδ͕ଘࡏ͢Δ $ sudo apt-get install zbar-tools ➤ ը૾͔ΒಡΈऔΔʹzbarimgΛ͏
$ zbarimg qr.png QR-Code:echo danger scanned 1 barcode symbols from 1 images in 0.01 seconds $ zbarimg -q qr.png | sed ’s/^QR-Code://' | sh danger ➤ URLOK $ zbarimg -q http://c999947562-cloudpro-897304964.cloudatcost.com/qr.png QR-Code:CloudAtCostങ͍Γ͕ͩӡ༻ʹ͔ͳ͍VPSͰ͢ ➤ Χϝϥ͔ΒಡΈऔΔʹzbarcamΛ͏ $ zbarcam Initializing Camera... QR-Code:test QR-Code:test2
QRίʔυͷಛ ΛվΊͯ֬ೝ
“ 8ϏοτόΠφϦσʔλͰ࠷େ2953όΠτຒΊࠐΊΔ Կ͕ॻ͍ͯ͋Δ͔ਓؒʹΘ͔Βͳ͍ - QRίʔυͷಛ
γΣϧܳͷԠ༻ ➤ γΣϧܳΛۦͨ݁͠Ռɺ͋·Γʹ͗͢ΔϫϯϥΠφʔ ίϚϯυʹͳͬͯ͠·֮ͬͯ͑ΒΕͳͯ͘ɺQRίʔυԽ͠ ͨը૾ϑΝΠϧͱΧϝϥ͕͋Εؒҧ͍ͳ࣮͘ߦͰ͖Δ ➤ γΣϧεΫϦϓτ֨ೲͰ͖ΔͷͰ֦ுՄೳ
׆༻ྫ 1. ͍γΣϧίϚϯυΛQRίʔυʹͯ͠ɺҹorදࣔ 2. ͦͷࢴorը໘ΛΧϝϥʹಡΈࠐ·ͤɺಡΈऔΔ
ಛ ➤ ͍γΣϧίϚϯυΛೖྗͤͣʹࡁΉ ➤ Πϯλʔωοτ͔Βִ͞ΕͨϚγϯͰɺΧϝϥͱಡΈऔΓ ΞϓϦ͕Πϯετʔϧ͞Ε͍ͯΔ߹ʹ(ݶΓ)༗ޮ
׆༻ྫͷ ➤ ׆༻Ͱ͖Δ໘͕গͳ͍ ➤ QRίʔυͷಡΈऔΓ͕໘ QRίʔυΛΧϝϥʹ͔ͯ݁͟͠ՌΛऔಘ͠ͳ͚ΕͳΒͳ͍ ➤ ΧϝϥಡΈऔΓγΣϧܳͷఆٛʹ͍ͯ͠Δ ˞zbarcamͰϫϯϥΠϯ࣮ߦ͕ࠔͳͨΊ ➤
qrencodeͰੜͨ͠QRίʔυը૾ϑΝΠϧͷड͚͠Ͱͦͷ ··ಡΈऔΔ߹ɺQRίʔυʹ͢Δҙຯ͋Δͷ͔
·ͱΊ ➤ QRίʔυେ༰ྔ͕ͩਓؒʹಡΊͳ͍ೋ࣍ݩίʔυ ➤ ੜqrencode ➤ ಡΈऔΓzbarimg͔zbarcam ➤ γΣϧܳͷԠ༻ݶఆత? Α͍ํ๏ࠓޙͷ՝
ࢀߟ ➤ QRίʔυυοτίϜ ɹhttp://www.qrcode.com/ ➤ ZBar code reader ɹhttp://zbar.sourceforge.net/ ➤
libqrencode ɹhttps://fukuchi.org/works/qrencode/