<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-17009951</id><updated>2026-07-24T14:55:21.044+09:00</updated><category term="Twitter"/><category term="Google"/><category term="Oracle"/><category term="android"/><category term="centos"/><category term="linux"/><category term="mac"/><category term="osx"/><category term="apache"/><category term="homebrew"/><category term="iphone"/><category term="nine willcom"/><category term="unix"/><category term="これたべる"/><category term="ソフトウェア"/><category term=".NET"/><category term="DOTNET"/><category term="PostgreSQL"/><category term="Twitter Flickr"/><category term="WiFi"/><category term="ajax PHP"/><category term="analytics"/><category term="cdn"/><category term="cloudflare"/><category term="del.icio.us"/><category term="dnsmasq"/><category term="docomo"/><category term="ga4"/><category term="gem"/><category term="javascript"/><category term="map"/><category term="meld"/><category term="mobile"/><category term="mountain lion"/><category term="passenger"/><category term="ruby"/><category term="spdy"/><category term="ssl"/><category term="systemd"/><category term="thunderbird"/><category term="yahoo"/><category term="yummy ftp"/><category term="これほしい"/><category term="ウェブサービス"/><category term="ガンダム"/><category term="ネタ Javascript"/><category term="プログラミング"/><category term="モバイル"/><category term="携帯 Twitter"/><category term="無線LAN"/><title type='text'>yukotan hour</title><subtitle type='html'>まっすぐ進むには前を見ること。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>392</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-17009951.post-414366947734770438</id><published>2023-03-11T00:36:00.008+09:00</published><updated>2023-03-11T09:54:15.631+09:00</updated><title type='text'>M2 Mac で FlexGen を使ってみる</title><content type='html'>&lt;p&gt;彗星のごとく現れた&amp;nbsp;FlexGen を Apple Silicon M2 の Mac で使ってみたいと思います。&lt;br /&gt;&lt;/p&gt;&lt;p&gt;GitHub - FMInference/FlexGen: Throughput-oriented systems for large language models on commodity GPUs.&lt;br /&gt;&lt;a href=&quot;https://github.com/FMInference/FlexGen&quot;&gt;https://github.com/FMInference/FlexGen&lt;/a&gt;&lt;/p&gt;&lt;p&gt;この情報はFlexGenが発表されたばかりの2023年3月10日現在の情報であるため、随時情報をアップデートしてください。&lt;/p&gt;&lt;p&gt;追記 : 下記の方法でするのがおすすめです。&lt;br /&gt;&lt;a href=&quot;https://note.com/kotatsurin/n/nc93d736cdc8f#ec8c0544-477d-4c3e-bbda-d96f5941daf1&quot; target=&quot;_blank&quot;&gt;大規模言語モデルOPTをM1/M2 Mac上のFlexGenで動かしてチャットする｜りん こうたつ｜note&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;1. 必要環境を整える&lt;/h2&gt;※MacOS 13以上での実施推奨。&lt;br /&gt;それより古いとtorch.cumsum の&amp;nbsp;MPS サポートが無い為です。&lt;p&gt;Pythonやライブラリが既に入っている人は以下は必要ありません。&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;1-1. python のインストール&lt;/h3&gt;&lt;p&gt;Homebrewで入れる方法ですが他の方法でも構いません。&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt; $ brew install python&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt; $ python3 -V&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt; -&amp;gt; Python 3.11.2&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;1-2. 必要なライブラリのインストール&lt;/h3&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt; $ pip3 install --upgrade pip&lt;/div&gt;&lt;div&gt; $ pip3 install numpy &lt;/div&gt;&lt;div&gt; $ pip3 install attrs&lt;/div&gt;&lt;div&gt; $ pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu&lt;/div&gt;&lt;/div&gt;&lt;p&gt;pytorch (torch) をインストールするコマンドは下記から取得して pip を pip3 に変えています。&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Start Locally | PyTorch &lt;br /&gt;&lt;a href=&quot;https://pytorch.org/get-started/locally/&quot;&gt;https://pytorch.org/get-started/locally/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;PyTorch Build は Stable ではなく&amp;nbsp;Preview (Nightly) を選択してください。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUbDppczXl7zoeKUSDsO_eo7_0_XAu5PWNX7Dcxlwt3K-C7zfkuYKf0QiCsnj_Kv4B91yGbjMv0Y00lNoTPTPloESvwJCKCjcY5Fn5yITi3iHa9jCjKBl3jySmCLZNIIdwk2Rzl-zql8_n7gVARELbDG672qlN_u3G-srgoad3MfvDvZdNKA/s1606/pytorch.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;630&quot; data-original-width=&quot;1606&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUbDppczXl7zoeKUSDsO_eo7_0_XAu5PWNX7Dcxlwt3K-C7zfkuYKf0QiCsnj_Kv4B91yGbjMv0Y00lNoTPTPloESvwJCKCjcY5Fn5yITi3iHa9jCjKBl3jySmCLZNIIdwk2Rzl-zql8_n7gVARELbDG672qlN_u3G-srgoad3MfvDvZdNKA/w640-h252/pytorch.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;2. インストール&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;FlexGen を Git から clone してm1ブランチにきりかえてインストール。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt; $ git clone https://github.com/FMInference/FlexGen.git&lt;/div&gt;&lt;div&gt; $ git switch m1&lt;/div&gt;&lt;div&gt; $ cd FlexGen&lt;/div&gt;&lt;div&gt; $ pip3 install -e .&lt;/div&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;3. 試しに実行&lt;/h2&gt;&lt;div&gt;小さい1.3bで実施してみます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt; $ python3 -m flexgen.flex_opt --model facebook/opt-1.3b&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt; &amp;lt;中略&amp;gt;
 minutes. If it seems to get stuck, you can monitor the progress by checking the memory usage of this process.
 Downloading pytorch_model.bin: 100%|█████████████████████████████████████████████| 2.63G/2.63G [03:41&amp;lt;00:00, 11.9MB/s]
 Fetching 1 files: 100%|████████████████████████████████████████████████████████████████| 1/1 [03:42&amp;lt;00:00, 222.28s/it]
 Convert format: 100%|███████████████████████████████████████████████████████████████████| 1/1 [00:06&amp;lt;00:00,  6.37s/it]
 &amp;lt;中略&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div style=&quot;line-height: 20px;&quot;&gt;&lt;div style=&quot;line-height: 20px;&quot;&gt;&lt;div&gt;----------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;0: &lt;span style=&quot;color: #ce9178;&quot;&gt;Paris&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;the&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;capital&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;city&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;of&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;France.&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;It&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;the&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;most&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;populous&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;city&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;France,&lt;/span&gt; 
&lt;span style=&quot;color: #ce9178;&quot;&gt;with&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;an&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;estimated&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;population&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;of&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;6,848,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;000&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;2016.&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;It&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;the&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;second&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;most&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;populous&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;city&lt;/span&gt;&lt;/div&gt;&lt;div&gt;----------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;3: &lt;span style=&quot;color: #ce9178;&quot;&gt;Paris&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;the&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;capital&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;city&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;of&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;France.&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;It&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;the&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;most&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;populous&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;city&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;France,&lt;/span&gt; 
&lt;span style=&quot;color: #ce9178;&quot;&gt;with&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;an&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;estimated&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;population&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;of&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;6,848,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;000&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;2016.&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;It&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;the&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;second&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;most&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;populous&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;city&lt;/span&gt;&lt;/div&gt;&lt;div&gt;----------------------------------------------------------------------&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; TorchDevice: &lt;span style=&quot;color: #ce9178;&quot;&gt;mps:&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;   cur_mem: &lt;span style=&quot;color: #b5cea8;&quot;&gt;2.6426&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB,&lt;/span&gt;  &lt;span style=&quot;color: #ce9178;&quot;&gt;peak_mem:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;0.0000&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB&lt;/span&gt;&lt;/div&gt;&lt;div&gt; TorchDevice: &lt;span style=&quot;color: #ce9178;&quot;&gt;cpu&lt;/span&gt;&lt;/div&gt;&lt;div&gt;   cur_mem: &lt;span style=&quot;color: #b5cea8;&quot;&gt;2.6426&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB,&lt;/span&gt;  &lt;span style=&quot;color: #ce9178;&quot;&gt;peak_mem:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;0.0000&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB&lt;/span&gt;&lt;/div&gt;&lt;div&gt; model &lt;span style=&quot;color: #ce9178;&quot;&gt;size:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;2.443&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB  cache&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;size:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;0.398&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB  hidden&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;size&lt;/span&gt; (p): &lt;span style=&quot;color: #b5cea8;&quot;&gt;0.008&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB&lt;/span&gt;&lt;/div&gt;&lt;div&gt; peak &lt;span style=&quot;color: #ce9178;&quot;&gt;gpu&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;mem:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;0.000&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;GB  projected:&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;False&lt;/span&gt;&lt;/div&gt;&lt;div&gt; prefill &lt;span style=&quot;color: #ce9178;&quot;&gt;latency:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;2.763&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;s  prefill&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;throughput:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;741.119&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;token/s&lt;/span&gt;&lt;/div&gt;&lt;div&gt; decode &lt;span style=&quot;color: #ce9178;&quot;&gt;latency:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;4.132&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;s decode&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;throughput:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;30.009&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;token/s&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; total &lt;span style=&quot;color: #ce9178;&quot;&gt;latency:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;6.895&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;s  total&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;throughput:&lt;/span&gt; &lt;span style=&quot;color: #b5cea8;&quot;&gt;18.563&lt;/span&gt; &lt;span style=&quot;color: #ce9178;&quot;&gt;token/s&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;コマンドを実行すると、約2.6GBのモデルがダウンロードされます。&lt;br /&gt;MacのGPUなので mps (Metal Performance Shaders) です。&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;4. 遊んでみる&lt;/h2&gt;&lt;p&gt;他の人のブログとかを見るとあるはずの flexgen/apps/chatbot.py がない。&lt;br /&gt;READMEにあるはずのサンプルコードも消えてる。&lt;br /&gt;なんで？&lt;/p&gt;&lt;p&gt;Where is the chatbot? I miss it! · Issue #87 · FMInference/FlexGen &lt;a href=&quot;https://github.com/FMInference/FlexGen/issues/87&quot;&gt;https://github.com/FMInference/FlexGen/issues/87&lt;/a&gt;&lt;/p&gt;&lt;p&gt;理由はわかりませんが chatbot.py は消されてしまったようです。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOubOAXYmM4-rUow3LVfoZVRKXmIKlQPHne5qxVKz1Ad5lLwyv46iNhuX-IsLpZ-3thmABEmZRwPpaMupWsItqNuCC6AwN-iakNXhjBaFmchKk0PVO3S1COv1b5ekIg_deputCW6Decgicv0LFbknDtWVxsTKXur9OX6DBTIbDN5JfI-MJqw/s1124/delete.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;722&quot; data-original-width=&quot;1124&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOubOAXYmM4-rUow3LVfoZVRKXmIKlQPHne5qxVKz1Ad5lLwyv46iNhuX-IsLpZ-3thmABEmZRwPpaMupWsItqNuCC6AwN-iakNXhjBaFmchKk0PVO3S1COv1b5ekIg_deputCW6Decgicv0LFbknDtWVxsTKXur9OX6DBTIbDN5JfI-MJqw/w400-h258/delete.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/FMInference/FlexGen/blob/9d888e5e3e6d78d6d4e1fdda7c8af508b889aeae/flexgen/apps/chatbot.py&quot; target=&quot;_blank&quot;&gt;過去のファイル&lt;/a&gt;より取得して実行できないかな？&lt;br /&gt;試してみましたが、下記はダメでした....&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt; $ cd flexgen/apps/&lt;/div&gt;&lt;div&gt; $ curl -O https://raw.githubusercontent.com/FMInference/FlexGen/9d888e5e3e6d78d6d4e1fdda7c8af508b889aeae/flexgen/apps/chatbot.py&lt;/div&gt;&lt;div&gt; $ python3 chatbot.py --model facebook/opt-1.3b&lt;/div&gt;&lt;/div&gt;&lt;p&gt;すると &lt;a href=&quot;https://twitter.com/kotatsurin/status/1633543183278964736&quot; target=&quot;_blank&quot;&gt;chatbot.py を復活させて且つ進化させてくださった方&lt;/a&gt;を発見！！！&lt;br /&gt;deepl のAPIキーがあれば日本語でも動くようになってます！&lt;br /&gt;最初からこっちでやればよかった！&lt;/p&gt;&lt;p&gt;con3office/FlexGen at m1&lt;br /&gt;&lt;a href=&quot;https://github.com/con3office/FlexGen/tree/m1&quot;&gt;https://github.com/con3office/FlexGen/tree/m1&lt;/a&gt;&lt;/p&gt;&lt;p&gt;というわけで下記コマンドで無事に動作しました。&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;&lt;div&gt; $ pip3 install deepl &amp;lt;-- chatbot.py でエラーにならないために入れます。&lt;/div&gt;&lt;div&gt; $ cd flexgen/apps/&lt;/div&gt;&lt;div&gt; $ curl -O https://raw.githubusercontent.com/con3office/FlexGen/m1/flexgen/apps/chatbot.py&lt;/div&gt;&lt;div&gt; $ python3 chatbot.py --model facebook/opt-1.3b&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; CUDA devices not available, mps:0 is used instead
 Initialize...
 A chat between a curious human and a knowledgeable artificial intelligence assistant.
 Human: Hello! What can you do?
 Assistant: As an AI assistant, I can answer questions and chat with you.
 Human: What is the name of the tallest mountain in the world?
 Assistant: Everest.
 Human: where is Tokyo?  &amp;lt;-- Human: のあとに入力
 Assistant: Tokyo. [4.08s]  &amp;lt;-- これが回答&lt;/div&gt;&lt;div&gt; Human: What country is Tokyo located in?
 Assistant: Japan. [3.63s]
 Human: What is the name of the biggest lake in the world?
 Assistant: Lake Victoria. [4.07s] (カスピ海？)&lt;/div&gt;&lt;div&gt; Human:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; ※終了させたいときは ctrl ＋ C&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;ちょっと回答がおかしいときがありますが一番小さいモデルなのでそれはご愛嬌。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;改善されたchatbot.pyのオプションの確認や、日本語でのやり取りもしたい場合は下記を参考にしてください。&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://note.com/kotatsurin/n/nc93d736cdc8f#ec8c0544-477d-4c3e-bbda-d96f5941daf1&quot; target=&quot;_blank&quot;&gt;大規模言語モデルOPTをM1/M2 Mac上のFlexGenで動かしてチャットする｜りん こうたつ｜note&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;参考にしたリンク&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;a href=&quot;https://note.com/une_back/n/nf41d62d4d391&quot; target=&quot;_blank&quot;&gt;FlexGenで遊んだメモ｜ゆぬ｜note&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.kkaneko.jp/ai/win/flexgen.html&quot; target=&quot;_blank&quot;&gt;FlexGen のインストールと動作確認（大規模言語モデル，チャットボット）（Python，PyTorch を使用）（Windows 上）&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://note.com/kotatsurin/n/nc93d736cdc8f#ec8c0544-477d-4c3e-bbda-d96f5941daf1&quot; target=&quot;_blank&quot;&gt;大規模言語モデルOPTをM1/M2 Mac上のFlexGenで動かしてチャットする｜りん こうたつ｜note&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://qiita.com/mod_poppo/items/23b28cf5e5708629435f&quot; target=&quot;_blank&quot;&gt;PyTorchがApple SiliconのGPUを使えるようになるらしいので試してみた - Qiita&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://zenn.dev/hidetoshi/articles/20220731_pytorch-m1-macbook-gpu&quot; target=&quot;_blank&quot;&gt;PyTorchをM1 MacBook のGPU(MPS)で動かす．実行時間の検証もしたよ&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/414366947734770438/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/414366947734770438' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/414366947734770438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/414366947734770438'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2023/03/m2-mac-flexgen.html' title='M2 Mac で FlexGen を使ってみる'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUbDppczXl7zoeKUSDsO_eo7_0_XAu5PWNX7Dcxlwt3K-C7zfkuYKf0QiCsnj_Kv4B91yGbjMv0Y00lNoTPTPloESvwJCKCjcY5Fn5yITi3iHa9jCjKBl3jySmCLZNIIdwk2Rzl-zql8_n7gVARELbDG672qlN_u3G-srgoad3MfvDvZdNKA/s72-w640-h252-c/pytorch.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-2933573663023021126</id><published>2023-02-10T05:12:00.008+09:00</published><updated>2023-02-10T11:51:45.222+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cdn"/><category scheme="http://www.blogger.com/atom/ns#" term="cloudflare"/><title type='text'>Cloudflare のフリープラン</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5jJO9YuSaHhQJaYbaJ6cYwXXjRMwf8RPEfeJrkiVURO4bVlMeLPPayD7WVDST2aKwf8nVmIsIhVBA2rBYVevxO4RkKDPWyf0mOP0hnhb0l3IHRFomQwnq6sAo2tbQj3CfyFeJuf0sxjgEXCLQWbmc8_9jyIuqq8Jiy7G41wXw9v9B17XdTw/s1920/cloudflare.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1920&quot; data-original-width=&quot;1920&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5jJO9YuSaHhQJaYbaJ6cYwXXjRMwf8RPEfeJrkiVURO4bVlMeLPPayD7WVDST2aKwf8nVmIsIhVBA2rBYVevxO4RkKDPWyf0mOP0hnhb0l3IHRFomQwnq6sAo2tbQj3CfyFeJuf0sxjgEXCLQWbmc8_9jyIuqq8Jiy7G41wXw9v9B17XdTw/s320/cloudflare.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;いつもお仕事では有料プランを利用しているのですが、今回ちょっとフリープランを試すことになったのでやってみました。&lt;/span&gt;&lt;/div&gt;&lt;p&gt;Cloudflareは様々なサービスが有るのですが、メインの Cache 機能を設定します。&lt;br /&gt;Cacheが効いているとユーザーはブラウザから素早くページにアクセスができるようになります。&lt;/p&gt;&lt;p&gt;プランは利用する「サイト」毎に契約します。&lt;/p&gt;&lt;p&gt;フリープランはクレジットカードの登録が必要ありません。&lt;br /&gt;本当に使うときだけ登録すればいいというのは勝手に支払いが発生したりしないのでありがたいことです。&lt;br /&gt;&lt;/p&gt;&lt;p&gt;また、フリープランはドメインのネームサーバーをCloudflareにする必要があります。&lt;br /&gt;ドメインのプライマリおよびセカンダリネームサーバーはCloudflareが指定したものにしなければなりません。&lt;br /&gt;自分の契約している別のDNSを使ってCNAMEでやりたい場合は&lt;a href=&quot;https://developers.cloudflare.com/dns/zone-setups/partial-setup/setup/&quot; target=&quot;_blank&quot;&gt;BusinessかEnterpriseの有料契約が必要&lt;/a&gt;になります。&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;ドメインとサーバーの用意&lt;br /&gt;&lt;br /&gt;いきなり本番で試すのはちょっと怖いと思いますので適当なサーバーを用意して下さい。&lt;br /&gt;&lt;a href=&quot;https://rs.sakura.ad.jp/&quot; target=&quot;_blank&quot;&gt;さくらのレンタルサーバー&lt;/a&gt;のライトプランなど安いホームページサービスでOKです。&lt;br /&gt;&lt;br /&gt;ドメインも用意して下さい。まるごとCloudflareで実験に使われるので現在は使っていないドメインがおすすめです。Cloudflareのドメイン登録で取得することが可能です。また、お名前.comやムームドメインという専用サービスもありますし、レンタルサーバーでドメイン取得サービスもだいたい行っています。&lt;br /&gt;この例では取得したドメインを yukotan.com とします。&lt;br /&gt;(ドメインの登録先はバリューサーバーです)&lt;br /&gt;&lt;br /&gt;サーバーのドキュメントルートにindex.htmlと画像を設置して表示できるようにしておいて下さい。&lt;br /&gt;CSSやJavaScriptもOKです。&lt;br /&gt;この時点ではまだ yukotan.com では表示できないので、レンタルサーバー会社から指定されたURL (xxx.sakura.ne.jp 等)&amp;nbsp;で表示が確認できれば大丈夫です。&lt;br /&gt;&lt;br /&gt;自分でサーバーを構築している場合はこの時点でVirtualHostを設定しても良いですし、後ほどでも構いません。(7で作業します)&lt;br /&gt;&lt;br /&gt;IPアドレスを調べてそれをメモしておいて下さい。&lt;br /&gt;レンタルサーバー会社から指定されたURL (xxx.sakura.ne.jp 等) から調べたい場合はここで調べられます。(AとAAAAをメモしておいて下さい)&lt;br /&gt;&lt;a href=&quot;https://toolbox.googleapps.com/apps/dig/&quot; target=&quot;_blank&quot;&gt;https://toolbox.googleapps.com/apps/dig/&lt;/a&gt;&lt;br /&gt;※レンタルサーバーの場合は今後ホスティング会社でサーバーの移転などがあるとIPアドレスが変わる場合があるので注意して下さい。&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ログイン&lt;br /&gt;&lt;p&gt;アカウントがない場合はこちらからアカウントを作成して下さい。&lt;br /&gt;&lt;a href=&quot;https://dash.cloudflare.com/sign-up&quot; target=&quot;_blank&quot;&gt;https://dash.cloudflare.com/sign-up&lt;/a&gt;&lt;/p&gt;&lt;p&gt;すでに持っているアカウントでログインの場合はこちらから&lt;br /&gt;&lt;a href=&quot;https://dash.cloudflare.com/login&quot; target=&quot;_blank&quot;&gt;https://dash.cloudflare.com/login&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;ダッシュボードでサイトを追加&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ1ZWTaxTMsyVurHiXF_8k6Fdon2vHYQsDQxxiOqP1DABfHAu-ae-cfK9_6A69Uy_sV98kPpgoHjJZQ2YYdmXHro5e3a4i16R_KdqTGv1ZUfad8_N5gVAlpWukaksO8nAK1cHmO9LYUUU9WdqXlOEn5vX25CpIhjydrANPZ950RYhtoHTc5g/s2368/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%203.40.52.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;836&quot; data-original-width=&quot;2368&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ1ZWTaxTMsyVurHiXF_8k6Fdon2vHYQsDQxxiOqP1DABfHAu-ae-cfK9_6A69Uy_sV98kPpgoHjJZQ2YYdmXHro5e3a4i16R_KdqTGv1ZUfad8_N5gVAlpWukaksO8nAK1cHmO9LYUUU9WdqXlOEn5vX25CpIhjydrANPZ950RYhtoHTc5g/w640-h226/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%203.40.52.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;右上にある「+サイトを追加」を選択すると上記のような画面になります。&lt;br /&gt;追加したいドメインを入れて青色の「サイトを追加」を選択します。&lt;br /&gt;ドメインは yukotan.com のような形式で入れます。&lt;br /&gt;xxx.yukotan.com のようなサブドメインは含めないで下さい。&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;プランの選択&lt;br /&gt;&lt;p&gt;いきなり有料プランが表示されますが、下の方に行くとフリープランが選択できます。&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPPV1RKasp6CTyYhPOWgzsZE0tMrGydqr0fsL3iZUX12qvbY2Ooh00OjkkGpW65TmxEgwPGWKRQr4H67knl_s4dMJA_0oBS7XM85mWsB1KN4Ye9fnx1L1tFjcFQGQaDdj1A_zGIcC67czU_v-pe6qfYLosxQJBYGG2-6ATcq8DLbikWEPaCQ/s2154/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.19.53.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1134&quot; data-original-width=&quot;2154&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPPV1RKasp6CTyYhPOWgzsZE0tMrGydqr0fsL3iZUX12qvbY2Ooh00OjkkGpW65TmxEgwPGWKRQr4H67knl_s4dMJA_0oBS7XM85mWsB1KN4Ye9fnx1L1tFjcFQGQaDdj1A_zGIcC67czU_v-pe6qfYLosxQJBYGG2-6ATcq8DLbikWEPaCQ/w640-h336/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.19.53.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;↓&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX2HgMAkZ3Ii4nwgSma3H_hTLMtMLi-_5R8eAoOmnKWmyz99kGXy9PHH5V37Xw8rmKPnsq5YnHHzDMv_THTLBCi39rAKWMdXMHxRmvjs4fjiLqvdf-Ii55g1uojHcDbZeIbTFCY-70tkpGBeRqm7MbRI7kJVt99dcQ07ufhY9hq5n-EQ_DvQ/s1880/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.20.08.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;536&quot; data-original-width=&quot;1880&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX2HgMAkZ3Ii4nwgSma3H_hTLMtMLi-_5R8eAoOmnKWmyz99kGXy9PHH5V37Xw8rmKPnsq5YnHHzDMv_THTLBCi39rAKWMdXMHxRmvjs4fjiLqvdf-Ii55g1uojHcDbZeIbTFCY-70tkpGBeRqm7MbRI7kJVt99dcQ07ufhY9hq5n-EQ_DvQ/w640-h182/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.20.08.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;Freeを選択して「続行」を選択します。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;DNS設定&lt;br /&gt;&lt;p&gt;DNS設定をドメイン名からクイックスキャンする画面になります。&lt;br /&gt;しばらく待ちます。&lt;/p&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHwFNAvFs6S2Vd8GqZLLgjhZqY0X7xZvL-miyu0pMG-QlI5PAhB43eOcWCr2V4sx_qZkapPsEyINgeAeH6NewFOyY1mLXVsbpmn9Wf4gDqqHBG4a1qJyzJtyKw2SxeaHRtKzhkcBfJZ8f1hQqpJm3oxHQ-SACRstE2RjRZwP_-yGp7DTPuxw/s2106/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.20.29.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;808&quot; data-original-width=&quot;2106&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHwFNAvFs6S2Vd8GqZLLgjhZqY0X7xZvL-miyu0pMG-QlI5PAhB43eOcWCr2V4sx_qZkapPsEyINgeAeH6NewFOyY1mLXVsbpmn9Wf4gDqqHBG4a1qJyzJtyKw2SxeaHRtKzhkcBfJZ8f1hQqpJm3oxHQ-SACRstE2RjRZwP_-yGp7DTPuxw/w640-h246/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.20.29.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;すでにドメインを持っていてDNSをの設定が終わっている場合はその結果が表示されます。DNSの設定変更でサイトがダウンしないように手続きを簡単にしてくれます。&lt;/div&gt;&lt;div&gt;&lt;p&gt;今回の例のようにドメインを買っただけでDNSの設定をしていない場合は何も表示されません。&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIjXtMOOEa1GArbot-LAIwWlwJkNA4u_jIXvOb21sMPjsTGMBWHlBP615lFZbq8E_YvZsGzJYVZ1Pk-XuSqdYu89l5uyPx9HdJEV353xesFK1Z-b34po2DDCkl8sFeFSEZzErH56e5uuc8OhZFNSibI9q2PG7hAa_yvAHPA2ogaAQDTc9aKg/s1892/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.22.40.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1204&quot; data-original-width=&quot;1892&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIjXtMOOEa1GArbot-LAIwWlwJkNA4u_jIXvOb21sMPjsTGMBWHlBP615lFZbq8E_YvZsGzJYVZ1Pk-XuSqdYu89l5uyPx9HdJEV353xesFK1Z-b34po2DDCkl8sFeFSEZzErH56e5uuc8OhZFNSibI9q2PG7hAa_yvAHPA2ogaAQDTc9aKg/w640-h408/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.22.40.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;DNSの設定をしていない場合はここでDNSの設定を追加して下さい。&lt;br /&gt;「レコードを追加」ボタンを押すと追加ができます。&lt;/p&gt;&lt;p&gt;今回のようにドメイン取得だけして実験したい場合はAレコードにサーバーのIPアドレス(v4)を入れて下さい。(1で取得したIPアドレスを入れます)&lt;br /&gt;IPv6を入れたい場合はAAAAレコードにサーバーのIPv6アドレスを入れて下さい。&lt;br /&gt;実験だけであればMXレコードなどは必要ありません。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPNdiRIx6sT99eIbnzJXarZoY0XY86mAalBK_Zt9Z91nL-oczcqt5TPowN3gbN21DuKxm0XJXugeGTmZoCjz0aPbyp_DeG1Rtb5HX6yJAM7kK7UZEINNhOJs5wAtukIwRQPjntdhXpBLdpIrV69K3J2cQKXMAoVd0ejcFBkfRuAhQ_AS68fg/s1804/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.23.14.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;600&quot; data-original-width=&quot;1804&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPNdiRIx6sT99eIbnzJXarZoY0XY86mAalBK_Zt9Z91nL-oczcqt5TPowN3gbN21DuKxm0XJXugeGTmZoCjz0aPbyp_DeG1Rtb5HX6yJAM7kK7UZEINNhOJs5wAtukIwRQPjntdhXpBLdpIrV69K3J2cQKXMAoVd0ejcFBkfRuAhQ_AS68fg/w640-h212/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.23.14.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;ドメインのネームサーバーの変更&lt;br /&gt;&lt;br /&gt;&lt;div&gt;ドメインに設定されているネームサーバーの変更をするよう案内が出ます。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo5bbQwwyxy0_4te6VYuzMNaSOwT1M_qyFv7TdTzrYyTltf1zaWjwCfnrPsCToT8vQsUjkOWWxsuGvadxamNG1zyF8l9M5TtOiXg1eLJe4ESU27IJchdso8xSG91cgXonEZBDRbUMyAtxWYTPaZxsfqB-77cIAUR24AC_ye58AYESeNcxTBA/s1996/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.24.24.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;890&quot; data-original-width=&quot;1996&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo5bbQwwyxy0_4te6VYuzMNaSOwT1M_qyFv7TdTzrYyTltf1zaWjwCfnrPsCToT8vQsUjkOWWxsuGvadxamNG1zyF8l9M5TtOiXg1eLJe4ESU27IJchdso8xSG91cgXonEZBDRbUMyAtxWYTPaZxsfqB-77cIAUR24AC_ye58AYESeNcxTBA/w640-h286/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.24.24.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;現在のネームサーバーを&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Noj5GufVOLBVmONWoYEwVK1k_yl2HQR65gcnSwKBraAt0OURp0F92RdXDTmP7lAeBbpoP9KljmlbZotMNubaNEZZzR5OeDKKorkZr-oYQmqhgvqSAFj486-CM_8hRs5Q38GbiFxvmZ7HGhfqa6LbcwgVKqdgg2JyUGQQ-_U8ihnO3ZLr4Q/s1506/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.24.54.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;462&quot; data-original-width=&quot;1506&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Noj5GufVOLBVmONWoYEwVK1k_yl2HQR65gcnSwKBraAt0OURp0F92RdXDTmP7lAeBbpoP9KljmlbZotMNubaNEZZzR5OeDKKorkZr-oYQmqhgvqSAFj486-CM_8hRs5Q38GbiFxvmZ7HGhfqa6LbcwgVKqdgg2JyUGQQ-_U8ihnO3ZLr4Q/w640-h196/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.24.54.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;下記に変更するようにという指示です。&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEQwpcooCHey47DOlGQRFs8FiAdADc1rcEJdTmUzijeU07qJRkUwmv939rH8-Gi4fDwPJdoEdMy7AtPe9-thWZJqzAqVzqkfUtyAi0N6v6mXUoHiTEx3kdJEwkL_SbG6MbkbYo4t6lwm0a7pMEXVA-6IjYW0QJedkDWs1eLhGOSOXAnkHrcA/s1452/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.25.35.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;328&quot; data-original-width=&quot;1452&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEQwpcooCHey47DOlGQRFs8FiAdADc1rcEJdTmUzijeU07qJRkUwmv939rH8-Gi4fDwPJdoEdMy7AtPe9-thWZJqzAqVzqkfUtyAi0N6v6mXUoHiTEx3kdJEwkL_SbG6MbkbYo4t6lwm0a7pMEXVA-6IjYW0QJedkDWs1eLhGOSOXAnkHrcA/w640-h144/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.25.35.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;ドメイン管理会社（&lt;a href=&quot;http://お名前.com&quot; target=&quot;_blank&quot;&gt;お名前.com&lt;/a&gt;、&lt;a href=&quot;https://support.muumuu-domain.com/hc/ja/articles/360047097273&quot; target=&quot;_blank&quot;&gt;ムームードメイン&lt;/a&gt;等）の管理画面からプライマリネームサーバーとセカンダリネームサーバーを上記で指定されたものに変更して下さい。&lt;/div&gt;&lt;div&gt;&lt;br style=&quot;text-align: left;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;サーバーのVirtualHostの設定&lt;br /&gt;&lt;p&gt;Cloudflareからリクエストが来た場合にページが表示できるようVirtualHostの設定を行います。さくらのレンタルサーバーの場合は&lt;a href=&quot;https://help.sakura.ad.jp/domain/2147/ &quot; target=&quot;_blank&quot;&gt;このような設定&lt;/a&gt;を行います。&lt;br /&gt;追加するのはこの場合だと yukotan.com になります。&lt;br /&gt;&lt;/p&gt;&lt;p&gt;独自でサーバーを用意している場合はWebサーバーの設定でVirtualHostの設定を行って下さい。&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;アクセス&lt;br /&gt;&lt;div&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;設定が完了して少し時間を置いたら購入したドメインにアクセスしてみて下さい。&lt;br /&gt;この場合は https://yukotan.com です。&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBDKwgYWthDjhkQ7suNwECZCRl3Gg9AqMDkM67jNE8C2j_vmFGp8G-hGXEJEB3K6Ekd7T1iKHcYQNIjO-cilRus3j3WgeSVbf5NaVdc8sDeFN77XZCzz0CBn99x3vkoyWkC5_LHGNZHzank0MjszYyIx6RmbV2P5KC03QOMggO8KXghWzcyQ/s1426/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.35.16.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1426&quot; data-original-width=&quot;1346&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBDKwgYWthDjhkQ7suNwECZCRl3Gg9AqMDkM67jNE8C2j_vmFGp8G-hGXEJEB3K6Ekd7T1iKHcYQNIjO-cilRus3j3WgeSVbf5NaVdc8sDeFN77XZCzz0CBn99x3vkoyWkC5_LHGNZHzank0MjszYyIx6RmbV2P5KC03QOMggO8KXghWzcyQ/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.35.16.png&quot; width=&quot;302&quot; /&gt;&lt;/a&gt;&lt;br /&gt;画像のHTTPヘッダーを確認してみて下さい。&lt;br /&gt;Google Chrome であれば Chrome Dev Tools のネットワークタブから確認できます。&lt;br /&gt;レスポンスヘッダーに &quot;cf-cache-status: HIT&quot; と出ていれば成功です。&lt;br /&gt;htmlはデフォルトだとキャッシュされないので上記は出ません。&lt;br /&gt;&lt;br /&gt;デフォルトでキャッシュされるファイルの種類一覧は&lt;a href=&quot;https://developers.cloudflare.com/cache/about/default-cache-behavior#default-cached-file-extensions&quot; target=&quot;_blank&quot;&gt;こちら&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;設定に間違いがなければ、Cloudflareのサイトのダッシュボードで下記の表示が出ます。&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU4rIQTIpSF3S787Vakq40X5FQzqwVi3JubijfaaGyAJ_gIXklIX0qKmq5aZsoKQfSB2OhhC-QyYdBMUCswrawx2PJL8WX1p45Pa4djX7NlhsiwAyKkFNw_W9Cf3FRH1oRai-sjD6ww7eqFIBsIJTab0bo6yx5KzQdRZM_c81q83XrQkp8YQ/s1410/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.28.18.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;448&quot; data-original-width=&quot;1410&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU4rIQTIpSF3S787Vakq40X5FQzqwVi3JubijfaaGyAJ_gIXklIX0qKmq5aZsoKQfSB2OhhC-QyYdBMUCswrawx2PJL8WX1p45Pa4djX7NlhsiwAyKkFNw_W9Cf3FRH1oRai-sjD6ww7eqFIBsIJTab0bo6yx5KzQdRZM_c81q83XrQkp8YQ/w400-h127/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.28.18.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;SSL証明書&lt;br /&gt;&lt;br /&gt;&lt;div&gt;SSL証明書は自動で設定されます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;htmlを置いてあるサーバーをオリジンサーバー、CloudflareをCDNサーバーといいます。&lt;/div&gt;&lt;div&gt;ユーザーがブラウザからCDNサーバーにアクセスする間のSSL証明書は何もしなくても設定され通信は暗号化されます。&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrmaFqm0ARSwI1jrs_j5UTZSIYomOBGNrj8iZ9lEQE8vOVKhpC8jzycNLkpcd1rYWr-TOxszv29lszXLXj7lJuvb4hrTLtrzVGoXGTTYinYgdG1qDKqo4IF9G_kyUyCDMVucmm30xzbfAKRR23z6YR4NNPTCzupLsbceoF59OpRc3iAz_Gdw/s2784/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.34.31.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1586&quot; data-original-width=&quot;2784&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrmaFqm0ARSwI1jrs_j5UTZSIYomOBGNrj8iZ9lEQE8vOVKhpC8jzycNLkpcd1rYWr-TOxszv29lszXLXj7lJuvb4hrTLtrzVGoXGTTYinYgdG1qDKqo4IF9G_kyUyCDMVucmm30xzbfAKRR23z6YR4NNPTCzupLsbceoF59OpRc3iAz_Gdw/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.34.31.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;証明書はCloudflareが無料で発行してくれます。&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnt1vJaxTIUaKmP0dvTPY_9ghs_h5vwU5QzBYkukPnJ9Vd5NEJJSLqnEePdyEvScpmb2PZZgLA0VQKHGhwQU1EKsr8hxQ2bEOeyUjytyRmdz4A-igiaQleokR_wVzwdXV4PLWVH7UTxXSzAjFKu8Mz8bH_8IAVtVrzVFzcU4w8xZAmjg-D6w/s1114/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.35.46.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1114&quot; data-original-width=&quot;1094&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnt1vJaxTIUaKmP0dvTPY_9ghs_h5vwU5QzBYkukPnJ9Vd5NEJJSLqnEePdyEvScpmb2PZZgLA0VQKHGhwQU1EKsr8hxQ2bEOeyUjytyRmdz4A-igiaQleokR_wVzwdXV4PLWVH7UTxXSzAjFKu8Mz8bH_8IAVtVrzVFzcU4w8xZAmjg-D6w/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%201.35.46.png&quot; width=&quot;314&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;オリジンサーバーとCDNサーバーの間はhttpでやり取りされます。&lt;br /&gt;このオリジンサーバーとCDNサーバーの間もhttpsで暗号化したい場合は&lt;a href=&quot;https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/&quot; target=&quot;_blank&quot;&gt;案内&lt;/a&gt;に従って下さい。&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;設定はここまでです。&lt;/div&gt;&lt;div&gt;気づいたら加筆するかもしれません。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CloudflareはCache以外にもいろいろな機能がありますので、ダッシュボードをのぞいてみてくださいね。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/2933573663023021126/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/2933573663023021126' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/2933573663023021126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/2933573663023021126'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2023/02/cloudflare.html' title='Cloudflare のフリープラン'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5jJO9YuSaHhQJaYbaJ6cYwXXjRMwf8RPEfeJrkiVURO4bVlMeLPPayD7WVDST2aKwf8nVmIsIhVBA2rBYVevxO4RkKDPWyf0mOP0hnhb0l3IHRFomQwnq6sAo2tbQj3CfyFeJuf0sxjgEXCLQWbmc8_9jyIuqq8Jiy7G41wXw9v9B17XdTw/s72-c/cloudflare.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-695902923687507788</id><published>2023-02-10T03:02:00.004+09:00</published><updated>2023-02-10T03:03:23.167+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="ga4"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><title type='text'>Google Tag Assistant</title><content type='html'>&lt;p&gt;Google Analytics を 新しくしてくださいね、というメッセージがBloggerに出ていたので設定を行いました。&lt;/p&gt;&lt;p&gt;テンプレートをカスタマイズするしか方法がなくてちょっと面倒です。&lt;/p&gt;&lt;p&gt;古い&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Migu 1M&amp;quot;, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 20px; white-space: pre;&quot;&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;b:include&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;blog&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;google-analytics&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;という記述を削除してGA4(Google Analytics 4)のタグを入れなければなりません。&lt;/p&gt;&lt;p&gt;こちらの記事を参考に作業をさせていただきました。&lt;/p&gt;&lt;p&gt;BloggerユーザーのUAからGA4切り替え方法について-おずろぐ &lt;br /&gt;&lt;a href=&quot;https://www.ozu-log.com/2022/02/ga4Transfer.html&quot;&gt;https://www.ozu-log.com/2022/02/ga4Transfer.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;その際に Google Analytics の管理画面で、Google Tag Assistant というリンクが。&lt;br /&gt;なんだこれ？&lt;/p&gt;&lt;p&gt;Google Tag Assistant&lt;br /&gt;&lt;a href=&quot;https://tagassistant.google.com/&quot;&gt;https://tagassistant.google.com/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;どうやらちゃんとGA4のタグが動作しているか確認してくれるツールのようです。&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjrXqcu9ZY8SCpaFKbuVPITKpjZlwQuFJw-2VBXaugNWUsgAYeYx2Rfqxk33EYvlggz9ZLUfxUPFoDL66g0OlV1mdqQvOvN8AQiQd9Q2FtWJS2x584AAROTyqOYZjz0SKjvUmZWDGqwdt5GQI1sZVBbdFz3NEhrJXRJ6Fl3LegX-JhVIaHQ/s1342/01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;430&quot; data-original-width=&quot;1342&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjrXqcu9ZY8SCpaFKbuVPITKpjZlwQuFJw-2VBXaugNWUsgAYeYx2Rfqxk33EYvlggz9ZLUfxUPFoDL66g0OlV1mdqQvOvN8AQiQd9Q2FtWJS2x584AAROTyqOYZjz0SKjvUmZWDGqwdt5GQI1sZVBbdFz3NEhrJXRJ6Fl3LegX-JhVIaHQ/w640-h205/01.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;最初に Add domain を選択します。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs588bgZpxPsTL9KOVxz7nCVehR4fBBcKwQ-ZTKELCb7ls7nvdWj38KlxgQuO5SMNaSD6VcSeZA-TmOyqbwm6iPZ5SBkjWzFnyIaHG14eTDxCe774RGboiChDZSKEQgixuTCr3oCTDeB2Dh6agcC2lGIDeXSzcZehgMnzDqu2SHawFtPUvsQ/s1328/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.36.17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1038&quot; data-original-width=&quot;1328&quot; height=&quot;501&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs588bgZpxPsTL9KOVxz7nCVehR4fBBcKwQ-ZTKELCb7ls7nvdWj38KlxgQuO5SMNaSD6VcSeZA-TmOyqbwm6iPZ5SBkjWzFnyIaHG14eTDxCe774RGboiChDZSKEQgixuTCr3oCTDeB2Dh6agcC2lGIDeXSzcZehgMnzDqu2SHawFtPUvsQ/w640-h501/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.36.17.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;次にドメイン名を入れて &quot;CONNECT&quot;を選択します。&lt;br /&gt;私は自分のブログの https://yukotan.blogspot.com を入れました。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr6TyP4mFkN2TSHmwuZlbw6OYeB6XzJ9G5ephcN55RY5gcUZhuuCpmxrhYWz1zP8_D3m9ZXXDqMIwMQMBud8bQ-W00U0rClRCI8vOu7xWsXHnuJccuQ7xSOunhlxx5sYYRcUOwxTpnY5_b2GktpD8sl2AXgoxcbAnZgEIJgaZ-xtd2-nm2DQ/s1344/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.36.29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;764&quot; data-original-width=&quot;1344&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr6TyP4mFkN2TSHmwuZlbw6OYeB6XzJ9G5ephcN55RY5gcUZhuuCpmxrhYWz1zP8_D3m9ZXXDqMIwMQMBud8bQ-W00U0rClRCI8vOu7xWsXHnuJccuQ7xSOunhlxx5sYYRcUOwxTpnY5_b2GktpD8sl2AXgoxcbAnZgEIJgaZ-xtd2-nm2DQ/w640-h364/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.36.29.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;そうすると上記のように一覧に表示されます。&lt;br /&gt;yukotan.blogspot.com を選択すると&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi99x3xojB55bpMHnTcfV2Ea0A9TE4Pl8Hvx_Qa4Y1RgW_czhJP5QduYQVX0GJvuckzAJa99o6qXfQ6m9TL95m06l57IIsVHC6LNyBGT86SMVbb4E99C8-5CTOajkY_NByBsQyrHXYmIaWWhdrt3gxfvOzepJhP52VmUvzNqeaBgGAtwabqdA/s1192/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.58.39.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;714&quot; data-original-width=&quot;1192&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi99x3xojB55bpMHnTcfV2Ea0A9TE4Pl8Hvx_Qa4Y1RgW_czhJP5QduYQVX0GJvuckzAJa99o6qXfQ6m9TL95m06l57IIsVHC6LNyBGT86SMVbb4E99C8-5CTOajkY_NByBsQyrHXYmIaWWhdrt3gxfvOzepJhP52VmUvzNqeaBgGAtwabqdA/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.58.39.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;すると上記のようにブラウザの中でもう一枚タブが開いて調査を行ってくれます。&lt;br /&gt;元のタブに戻ると以下の画面になります。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKaWJWbV3REEWX8TxXQ7cJq_Ugzwea4TEZIzC1mSPbRzsrw6Zw8_OeMvnKMswem7f_0DiGaNKh-eBxg0O_etQ3eSP-efHM-xsGII1WpiXJWIVhBToSXktp1udikNYrK-TKplwZCPH_ZL3vXOevQ73z2bBEwX_u9uDoIBhoAv94m1evB07aYQ/s1342/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.36.46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;734&quot; data-original-width=&quot;1342&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKaWJWbV3REEWX8TxXQ7cJq_Ugzwea4TEZIzC1mSPbRzsrw6Zw8_OeMvnKMswem7f_0DiGaNKh-eBxg0O_etQ3eSP-efHM-xsGII1WpiXJWIVhBToSXktp1udikNYrK-TKplwZCPH_ZL3vXOevQ73z2bBEwX_u9uDoIBhoAv94m1evB07aYQ/w320-h175/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.36.46.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;このまま Continue を選択します。&lt;br /&gt;そうすると下記のように結果が表示されます。&lt;br /&gt;古いAnalyticsの画面だと警告が出たりします。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxGB12kVFMKCWfUqJ7QTfGhiY1aVb23rXgHug1ZFhPYhskpWwP51r_wF2L4_rLa4biRi1mfGIQQHnO-0LfYFXpZLhufzxFj9FDNdL-rW8SFpEzyoYNDJrEkjftV3jqim7XXbqP8G_nNOpb7HHxeeCR_4OruAz-79c1i7PlNxH3RigoGcHWeQ/s1916/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.37.12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;918&quot; data-original-width=&quot;1916&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxGB12kVFMKCWfUqJ7QTfGhiY1aVb23rXgHug1ZFhPYhskpWwP51r_wF2L4_rLa4biRi1mfGIQQHnO-0LfYFXpZLhufzxFj9FDNdL-rW8SFpEzyoYNDJrEkjftV3jqim7XXbqP8G_nNOpb7HHxeeCR_4OruAz-79c1i7PlNxH3RigoGcHWeQ/w640-h306/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202023-02-10%202.37.12.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;調査に良さそうですね。&lt;br /&gt;またGoogle Analyticsの設定を行う場合は使ってみたいと思います。&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/695902923687507788/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/695902923687507788' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/695902923687507788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/695902923687507788'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2023/02/google-tag-aas.html' title='Google Tag Assistant'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjrXqcu9ZY8SCpaFKbuVPITKpjZlwQuFJw-2VBXaugNWUsgAYeYx2Rfqxk33EYvlggz9ZLUfxUPFoDL66g0OlV1mdqQvOvN8AQiQd9Q2FtWJS2x584AAROTyqOYZjz0SKjvUmZWDGqwdt5GQI1sZVBbdFz3NEhrJXRJ6Fl3LegX-JhVIaHQ/s72-w640-h205-c/01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-1161246598214979770</id><published>2022-09-25T17:40:00.006+09:00</published><updated>2022-09-26T05:00:41.347+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="passenger"/><category scheme="http://www.blogger.com/atom/ns#" term="systemd"/><title type='text'>passenger-status コマンドが使えない</title><content type='html'>Passenger を Ubuntu にインストールして passenger コマンドを使おうとしたらこんなエラーが&lt;br /&gt; 

&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;# passenger-status
... 
/phusion_passenger/admin_tools/instance.rb:94:in `initialize&#39;: 
too long unix socket path (116bytes given but 108bytes max) (ArgumentError) 
&lt;/code&gt;&lt;/pre&gt;

なんでだろう？と思ったら、tmp ファイルの中のディレクトリ名が長すぎるとのこと。&lt;br /&gt;
  
&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;# cd /tmp
# ls -la
...
drwx------  3 root        root        4096  9月 24 17:35 systemd-private-2564dd8c0ded4ef6a37876fd7232108f-apache2.service-S1DBLi/
&lt;/code&gt;&lt;/pre&gt;
  
これは systemd の設定の中で&amp;nbsp;PrivateTmp という機能が効いているときに発生します。&lt;br /&gt;

&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;# cat /lib/systemd/system/apache2.service
  
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
Documentation=https://httpd.apache.org/docs/2.4/

[Service]
Type=forking
Environment=APACHE_STARTED_BY_SYSTEMD=true
ExecStart=/usr/sbin/apachectl start
ExecStop=/usr/sbin/apachectl stop
ExecReload=/usr/sbin/apachectl graceful
PrivateTmp=true  ← これ
Restart=on-abort

[Install]
WantedBy=multi-user.target  
&lt;/code&gt;&lt;/pre&gt;

じゃあこれをオフにすればいいじゃない？と思いますがこの機能は結構大事な機能なのでできればONにしておきたいです。&lt;br /&gt;
&lt;br /&gt;
なんで大事なのか？&lt;br /&gt;
/tmp ディレクトリに pid ファイルとかがそのまま置いてあると、他のプロセスがアクセスしようと思えばできてしまいます。&lt;br /&gt;
そういういたずらを防ぐためにとても大事な機能なんですね。&lt;br /&gt;
下記の蝶野まこさんのブログがとてもわかり易いので読んでみてください。&lt;br /&gt;
&lt;br /&gt;
/tmp/systemd-private-* の意味について | 晴耕雨読&lt;br /&gt;
&lt;a href=&quot;https://tex2e.github.io/blog/linux/tmp-systemd-private&quot; target=&quot;_blank&quot;&gt;https://tex2e.github.io/blog/linux/tmp-systemd-private&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
で最初に戻りますが、 passenger-status コマンドでエラーが出たらどうすればよいのか？&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/square/debug_socket/issues/4#issuecomment-250213414&quot; target=&quot;_blank&quot;&gt;https://github.com/square/debug_socket/issues/4#issuecomment-250213414&lt;/a&gt;&lt;br /&gt;

&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;  # GOTCHA: if the Rails.root.join(&quot;tmp&quot;, &quot;sidekiq-debug-#{Process.pid}.sock&quot;)
  # path is too long, this will fail. The max on Linux is 108 characters, MacOS
  # is 104. If the path is too long, try using a relative path or /tmp/＜blah＞.
&lt;/code&gt;&lt;/pre&gt;

しょうがないのでシンボリックリンクを作成して対処します。
今のところはこんな力技しかありません。
シンボリックリンクは用事が終わったら削除してください。

&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;# cd /tmp
# ls -la
...
drwx------  3 root        root        4096  9月 24 17:35 systemd-private-2564dd8c0ded4ef6a37876fd7232108f-apache2.service-S1DBLi/

# ln -s systemd-private-2564dd8c0ded4ef6a37876fd7232108f-apache2.service-S1DBLi tmpass

# PASSENGER_INSTANCE_REGISTRY_DIR=/tmp/tmpass/tmp passenger-status
Version : 6.0.15
Date    : 2022-09-25 17:38:57 +0900
Instance: 5X4gTYWE (Apache/2.4.41 (Ubuntu) SVN/1.13.0 OpenSSL/1.1.1j Phusion_Passenger/6.0.15)

----------- General information -----------
Max pool size : 6
App groups    : 1
Processes     : 1
Requests in top-level queue : 0

----------- Application groups -----------
/var/lib/redmine (production):
  App root: /var/lib/redmine
  Requests in queue: 0
  * PID: 72465   Sessions: 0       Processed: 5       Uptime: 2m 25s
    CPU: 0%      Memory  : 65M     Last used: 1m 20s ago

# rm /tmp/tmpass
&lt;/code&gt;&lt;/pre&gt;

なんかスッキリしませんね。&lt;br/&gt;
でもいいのです。&lt;br/&gt;
蝶野まこさんのブログが紹介できたので、これを読んで PrivateTmp の大事さがわかってくれる人が増えてくれれば。
</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/1161246598214979770/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/1161246598214979770' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/1161246598214979770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/1161246598214979770'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2022/09/passenger-status.html' title='passenger-status コマンドが使えない'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-6884009421586328905</id><published>2022-09-25T11:51:00.099+09:00</published><updated>2022-09-25T16:20:57.271+09:00</updated><title type='text'>Blogger でシンタックスハイライティング</title><content type='html'>&lt;div&gt;そもそもなんで Blogger に書いてるかというと、ちょっとしたメモ書きたいなと思うと Qiita はなんか違うし、Zenn ほどガッツリ書くわけでもないしで戻ってきたわけです。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;メモとはいえ Blogger で&amp;nbsp;Syntax highlighting したいので調べてるとこのような記事が。&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;How to Add Code Syntax Highlighting to Blogger &lt;a href=&quot;https://blog.paoloamoroso.com/2021/10/how-to-add-code-syntax-highlighting-to.html&quot;&gt;https://blog.paoloamoroso.com/2021/10/how-to-add-code-syntax-highlighting-to.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;これを参考にしてやってみます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1.&amp;nbsp;highlight.js のリンクを調べる&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;JavaScript で指定した場所を Syntax Highlighting してくれる highlight.js というライブラリがあります。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;highlight.js&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://highlightjs.org/&quot;&gt;https://highlightjs.org/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bloggerには画像以外のファイルは置けないので、CDNに設置されているjsのリンクを探します。昔はこういう事できなかったな〜。いい時代になりましたね。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GoogleさんのCDNがあるので調べてみる。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hosted Libraries&amp;nbsp; |&amp;nbsp; Google Developers&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://developers.google.com/speed/libraries?hl=en&quot;&gt;https://developers.google.com/speed/libraries?hl=en&lt;/a&gt;&lt;br /&gt;(hl=jpのリンクだとなんだか翻訳がおかしいのでenのリンク貼っときます)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;しかし、ここには highlight.js はない模様。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Cloudflare がやっている cdn.js から持ってきましょう。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;highlight.js - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://cdnjs.com/libraries/highlight.js&quot;&gt;https://cdnjs.com/libraries/highlight.js&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5s_VzUjyWH33OGtp_JL2T8QvS8fSNH2JxPJNjjfMmmlI9pNyZNJW1cv2eGQJUwkr7nzLkcydDzsgo5Izfc3uQhdT9Vh5QkTt6c4jrnBDr8eRSdEsRCu5ScUhBMDRZr2MMGtJawyraQaTH6C6Km3S4knxNdSd5dib_TzZ-s-4jhqv0N33ug/s1434/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.48.36.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;920&quot; data-original-width=&quot;1434&quot; height=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5s_VzUjyWH33OGtp_JL2T8QvS8fSNH2JxPJNjjfMmmlI9pNyZNJW1cv2eGQJUwkr7nzLkcydDzsgo5Izfc3uQhdT9Vh5QkTt6c4jrnBDr8eRSdEsRCu5ScUhBMDRZr2MMGtJawyraQaTH6C6Km3S4knxNdSd5dib_TzZ-s-4jhqv0N33ug/w549-h352/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.48.36.png&quot; width=&quot;549&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ここから css と JavaScript のリンクを持ってきます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

JavaScript&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;i&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;&amp;lt;script crossorigin=&quot;anonymous&quot; integrity=&quot;sha512-gU7kztaQEl7SHJyraPfZLQCNnrKdaQi5ndOyt4L4UPL/FHDd/uB9Je6KDARIqwnNNE27hnqoWLBq+Kpe4iHfeQ==&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;&amp;lt;script&amp;gt;hljs.initHighlightingOnLoad();&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;CSS&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CSSは好きなテーマから選ぶことが可能です。&lt;/div&gt;&lt;div&gt;https://highlightjs.org/static/demo/&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;isbl-editor-dark&lt;/span&gt;&amp;nbsp;にしてみます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/isbl-editor-dark.min.css&quot; integrity=&quot;sha512-35eVO1O7/yVv/H2UAzRkSwt7/04PX7n9D1NRVjD2f4B3gF5KUFpATdKgrR++Wfjpo1ft7UeY8jE2IfHzsrFMfQ==&quot; crossorigin=&quot;anonymous&quot; referrerpolicy=&quot;no-referrer&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. テーマを編集する&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Blogger のテーマはhtmlで編集することが可能です。&lt;/div&gt;&lt;div&gt;右側に表示されている 「テーマ」を選択します。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8PYzVDwTXJ-hvg4K-r6FfC2b7P_VEsfrTi6dNlepCMr_PLRaCB8TaLqsokyowPJw_jg_JNdWZOmQ06cNFt3E3ez0aPiV_QGoqGyj3Kj5afvT6-ksducdYt_0GyCoR2W9FDdYIoU78P8HPym2L4ShNdbA4mjF_mQ0cdv3wgnx0bD07d3ndNA/s614/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.56.19.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;334&quot; data-original-width=&quot;614&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8PYzVDwTXJ-hvg4K-r6FfC2b7P_VEsfrTi6dNlepCMr_PLRaCB8TaLqsokyowPJw_jg_JNdWZOmQ06cNFt3E3ez0aPiV_QGoqGyj3Kj5afvT6-ksducdYt_0GyCoR2W9FDdYIoU78P8HPym2L4ShNdbA4mjF_mQ0cdv3wgnx0bD07d3ndNA/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.56.19.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;次に現在選択しているテーマの「カスタマイズ」のボタンの右端をクリックしてドロップダウンするとメニューが出てきます。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;その中の「HTMLを編集」を選択します。&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_Mntfoajvt_igiTlwODVKbXEk1hBiPdVkKKK5LIZBZUfM9TWtBSDN3XyKbmSs9STjK7o8mg9Ew-VAwHoZZTA0iLLUuFtzAh4qxdolWkK3XeXKaFh88Id6Qpc3x0Jw0mgYybyCrlq-jkyi9FUl0ZMWkAMTGAonexjBgiOLXpLLTXj7Vciuew/s994/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.56.31.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;784&quot; data-original-width=&quot;994&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_Mntfoajvt_igiTlwODVKbXEk1hBiPdVkKKK5LIZBZUfM9TWtBSDN3XyKbmSs9STjK7o8mg9Ew-VAwHoZZTA0iLLUuFtzAh4qxdolWkK3XeXKaFh88Id6Qpc3x0Jw0mgYybyCrlq-jkyi9FUl0ZMWkAMTGAonexjBgiOLXpLLTXj7Vciuew/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.56.31.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;title タグのすぐ下にCSSを、bodyタグの閉じる前にJavaScript を持ってきます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. 貼る&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;この状態で &amp;lt;pre&amp;gt;&amp;lt;code&amp;gt; 〜 &amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt; タグで囲むとこんなふうに表示してくれるようになります。&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Blogger では &amp;lt; と &amp;gt; はセキュリティ対策のために省略されてしまうので、html などのコードはうまく表示されないので注意です。&lt;/div&gt;&lt;pre&gt;&lt;code class=&quot;css&quot;&gt;@font-face {
  font-family: Chunkfive; src: url(&#39;Chunkfive.otf&#39;);
}

body, .usertext {
  color: #F0F0F0; background: #600;
  font-family: Chunkfive, sans;
  --heading-1: 30px/32px Helvetica, sans-serif;
}

@import url(print.css);
@media print {
  a[href^=http]::after {
    content: attr(href)
  }
}
 &lt;/code&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/6884009421586328905/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/6884009421586328905' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/6884009421586328905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/6884009421586328905'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2022/09/blogger.html' title='Blogger でシンタックスハイライティング'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5s_VzUjyWH33OGtp_JL2T8QvS8fSNH2JxPJNjjfMmmlI9pNyZNJW1cv2eGQJUwkr7nzLkcydDzsgo5Izfc3uQhdT9Vh5QkTt6c4jrnBDr8eRSdEsRCu5ScUhBMDRZr2MMGtJawyraQaTH6C6Km3S4knxNdSd5dib_TzZ-s-4jhqv0N33ug/s72-w549-h352-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-09-25%2011.48.36.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-8523829707675339629</id><published>2022-09-25T11:04:00.000+09:00</published><updated>2022-09-25T11:04:13.896+09:00</updated><title type='text'>ひさしぶり</title><content type='html'>&lt;p&gt;&amp;nbsp;久しぶりにBlogger触ったらよくわからんことになってる。&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/8523829707675339629/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/8523829707675339629' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/8523829707675339629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/8523829707675339629'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2022/09/blog-post.html' title='ひさしぶり'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-3326676944625957049</id><published>2015-03-23T02:40:00.001+09:00</published><updated>2015-03-23T04:47:41.965+09:00</updated><title type='text'>docomo端末のMVNO準備＋α</title><content type='html'>自分用メモです。&lt;br /&gt;
&lt;br /&gt;
通常SPモード時 : spmode.ne.jp&lt;br /&gt;
テザリング時 : dcmtrg.ne.jp&lt;br /&gt;
&lt;br /&gt;
端末によるかもしれないけど、root不要で adb shell で settings.db 書き換えられる。&lt;br /&gt;
（個人的には嬉しいけど、rootなしで書き換えられちゃうのってどうなのかなあ）&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;強制APN指定
tether_dun_required : 1（強制指定）,0（通常=強制されない）&lt;br /&gt;
&lt;br /&gt;
$ adb shell&lt;br /&gt;
shell@SO-02F:/ $ settings get global tether_dun_required&lt;br /&gt;
1&lt;br /&gt;
shell@SO-02F:/ $ settings put global tether_dun_required 0&lt;br /&gt;
$ exit&lt;br /&gt;
&lt;br /&gt;
このままだとSIMを差し替えるたびに、tether_dun_required が 1 に戻ってしまうので、&lt;span style=&quot;float: left;&quot;&gt;APN設定画面内の初期設定にリセットを押す。tether_dun_apnの記述がglobalテーブルに追記されるらしい。（まだ試してない） &lt;br /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;カメラの無音メニュー復活&lt;br /&gt;
カメラの音を消しちゃうよりこっちが好きなの。&lt;br /&gt;※下記はrootないと難しそう（まだ調査中）&lt;br /&gt;
&lt;br /&gt;
NTT DoCoMo ： Xperia GX、Xperia SX、Xperia AX、Xperia A、Xperia Z&lt;br /&gt;
KDDI au ： Xperia VL、Xperia UL&lt;br /&gt;
Still Life: Xperia Aのカメラシャッター音のON/OFF切り替えオプションを表示するXposedモジュールを作った&lt;br /&gt;
&lt;a href=&quot;http://hascha.blogspot.jp/2013/10/xperia-aonoffxposed.html&quot;&gt;http://hascha.blogspot.jp/2013/10/xperia-aonoffxposed.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Xperia Z1f &lt;br /&gt;Z1f.281_ShutterSoundOption&lt;br /&gt;&lt;a href=&quot;http://www.mediafire.com/download/lbcor2ib5sbfqfa/Z1f.281_ShutterSoundOption.zip&quot;&gt;http://www.mediafire.com/download/lbcor2ib5sbfqfa/Z1f.281_ShutterSoundOption.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Xperia Z3&lt;br /&gt;
ShutterSoundOption&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/download/9u7dxa9zy922ntu/ShutterSoundOption.apk&quot;&gt;http://www.mediafire.com/download/9u7dxa9zy922ntu/ShutterSoundOption.apk&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&amp;nbsp;参考&lt;br /&gt;
&lt;br /&gt;
【MVNO】非rootなドコモ端末をMVNO SIMでテザリングを可能にする方法（中級者向け）&lt;br /&gt;
&lt;a href=&quot;http://xperia-freaks.org/2015/03/21/docomo-tethering/&quot;&gt;http://xperia-freaks.org/2015/03/21/docomo-tethering/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
【ROM焼き】docomo Xperia Z1 SO-01F root part3&lt;br /&gt;
&lt;a href=&quot;http://anago.2ch.net/test/read.cgi/smartphone/1387455970/&quot;&gt;http://anago.2ch.net/test/read.cgi/smartphone/1387455970/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Xperia Z3 Compact SO-02G docomo rooted!! - MobiX Gadget&lt;br /&gt;
&lt;a href=&quot;http://blog.goo.ne.jp/mobix/e/04e29eb6446338c7585117a445e10d75&quot;&gt;http://blog.goo.ne.jp/mobix/e/04e29eb6446338c7585117a445e10d75&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
【Z1】シャッター音ON/OFF制御が変わったようです Xperia Z1(C6903)レビュー(2)&lt;br /&gt;
&lt;a href=&quot;http://xperia-freaks.org/2013/09/28/c6903-camera/&quot;&gt;http://xperia-freaks.org/2013/09/28/c6903-camera/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
国内版Xperia Z3 SOL26のroot取得 - Mojatte&lt;br /&gt;
&lt;a href=&quot;http://hsy.hatenablog.com/entry/2015/01/31/074033&quot;&gt;http://hsy.hatenablog.com/entry/2015/01/31/074033&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/3326676944625957049/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/3326676944625957049' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/3326676944625957049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/3326676944625957049'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2015/03/docomomvno.html' title='docomo端末のMVNO準備＋α'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-5539191745900975499</id><published>2014-07-04T12:23:00.001+09:00</published><updated>2014-07-04T12:23:45.767+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><category scheme="http://www.blogger.com/atom/ns#" term="yummy ftp"/><title type='text'>Yummy FTP で公開鍵認証ができない時</title><content type='html'>Yummy FTP で公開鍵を使った接続ができなかった&lt;br /&gt;
&lt;blockquote&gt;warning identity file not accessible no such file or directory ...&lt;/blockquote&gt;なんでだろう(T_T)と思ってたら、&lt;br /&gt;
「SSHの鍵ファイルパスを引用符で囲む」&lt;br /&gt;
が原因だった。&lt;br /&gt;
&lt;br /&gt;
これのチェックを外すと普通に接続出来ました。なんでやねん！&lt;br /&gt;
（日本語だけかな〜。）</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/5539191745900975499/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/5539191745900975499' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5539191745900975499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5539191745900975499'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2014/07/yummy-ftp.html' title='Yummy FTP で公開鍵認証ができない時'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-4586667694160942540</id><published>2014-03-22T01:07:00.000+09:00</published><updated>2014-03-31T00:18:38.835+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WiFi"/><category scheme="http://www.blogger.com/atom/ns#" term="無線LAN"/><title type='text'>20名を越える環境での無線LAN機器について</title><content type='html'>勉強会やってると、無線LANで参加者の方にネットワークにアクセスしていただくことがありますが、家庭用の普通の無線LANアクセスポイントだとだいたい5〜10台くらいが限度です。（お恥ずかしながら半年くらいまえまで知らなかった）&lt;br /&gt;
無線LANにつなげるのってnotebookだけじゃなくてスマートフォンとかもありますので、25名いたら50接続する可能性もあるわけです。&lt;br /&gt;
アクセスポイント機の同時接続限度を超えてしまうと、ものすごく低速になったり、果ては切断されたりしてしまうので、ハンズオンやハッカソンなどではとてもつらく切ないことになります。ｼｮﾎﾞｰﾝ&lt;br /&gt;
&lt;br /&gt;
それで、勉強会にいい無線LAN機器無いかしらと思い、「法人 無線LAN」という感じでぐぐって調べてみました。&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;http://jp.yamaha.com/products/network/wireless_lan/wlx302/&quot; target=&quot;_blank&quot;&gt;YAMAHA WLX302&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.amazon.co.jp/gp/product/B00BM4ZC10/ref=as_li_tf_tl?ie=UTF8&amp;amp;camp=247&amp;amp;creative=1211&amp;amp;creativeASIN=B00BM4ZC10&amp;amp;linkCode=as2&amp;amp;tag=yukotan01-22&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;amp;ASIN=B00BM4ZC10&amp;amp;Format=_SL110_&amp;amp;ID=AsinImage&amp;amp;MarketPlace=JP&amp;amp;ServiceVersion=20070822&amp;amp;WS=1&amp;amp;tag=yukotan01-22&quot; /&gt;&lt;br /&gt;
Amazon.co.jp: YAMAHA WLX302&lt;/a&gt;&lt;br /&gt;
2013年3月発売の製品。1年前ですね。802.11n/a/g/b対応。&lt;br /&gt;
現在一番欲しいものです。5Ghz帯と2.4Ghz帯で&lt;span style=&quot;color: red;&quot;&gt;各50台&lt;/span&gt;ずつ、&lt;span style=&quot;color: red;&quot;&gt;合わせて100台&lt;/span&gt;の接続が可能です。&lt;br /&gt;
価格はAmazonで47,177円。専用ACアダプターが別売りで4,027円なので合計&lt;span style=&quot;color: red;&quot;&gt;51,204円&lt;/span&gt;。&lt;br /&gt;
た、高い...でもこれあったら安心だし欲しいぃぃぃぃ！&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://buffalo.jp/product/wireless-lan/pro-ap/waps-apg600h/&quot; target=&quot;_blank&quot;&gt;Buffalo AirStation Pro - WAPS-APG600H&lt;/a&gt; &lt;br /&gt;
&lt;a href=&quot;http://www.amazon.co.jp/gp/product/B008562ZN6/ref=as_li_tf_il?ie=UTF8&amp;amp;camp=247&amp;amp;creative=1211&amp;amp;creativeASIN=B008562ZN6&amp;amp;linkCode=as2&amp;amp;tag=yukotan01-22&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;amp;ASIN=B008562ZN6&amp;amp;Format=_SL110_&amp;amp;ID=AsinImage&amp;amp;MarketPlace=JP&amp;amp;ServiceVersion=20070822&amp;amp;WS=1&amp;amp;tag=yukotan01-22&quot; /&gt;&lt;br /&gt;
Amazon.co.jp: Buffalo AirStation Pro - WAPS-APG600H&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://ir-jp.amazon-adsystem.com/e/ir?t=yukotan01-22&amp;amp;l=as2&amp;amp;o=9&amp;amp;a=B008562ZN6&quot; height=&quot;1&quot; style=&quot;border: none !important; margin: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;br /&gt;
2012年 8月発売の製品。こちらは1年半前ですね。802.11n/a/g/b対応。&lt;br /&gt;
5Ghz帯と2.4Ghz帯で&lt;span style=&quot;color: red;&quot;&gt;各25台&lt;/span&gt;ずつ、&lt;span style=&quot;color: red;&quot;&gt;合わせて50台&lt;/span&gt;の接続が可能です。&lt;br /&gt;
価格はAmazonで21,161円。やはり専用ACアダプターが別売りで3,127円。&lt;br /&gt;
合計で&lt;span style=&quot;color: red;&quot;&gt;24,288円&lt;/span&gt;。台数は半分だけどコレでもいいかなあ！&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www2.elecom.co.jp/network/wireless-lan/ap/wab-i1750-ps/&quot; target=&quot;_blank&quot;&gt;エレコム WAB-I1750-PS&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.amazon.co.jp/gp/product/B00GJJTXA4/ref=as_li_tf_il?ie=UTF8&amp;amp;camp=247&amp;amp;creative=1211&amp;amp;creativeASIN=B00GJJTXA4&amp;amp;linkCode=as2&amp;amp;tag=yukotan01-22&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;amp;ASIN=B00GJJTXA4&amp;amp;Format=_SL110_&amp;amp;ID=AsinImage&amp;amp;MarketPlace=JP&amp;amp;ServiceVersion=20070822&amp;amp;WS=1&amp;amp;tag=yukotan01-22&quot; /&gt;&lt;br /&gt;
Amazon.co.jp: エレコム WAB-I1750-PS&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://ir-jp.amazon-adsystem.com/e/ir?t=yukotan01-22&amp;amp;l=as2&amp;amp;o=9&amp;amp;a=B00GJJTXA4&quot; height=&quot;1&quot; style=&quot;border: none !important; margin: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;br /&gt;
2013年10月発売の製品。新しいので&lt;span style=&quot;color: red;&quot;&gt;11ac/n/a&lt;/span&gt;,11n/g/b対応してる！&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;
50台&lt;/span&gt;以下の接続が可能です（以下ってのが気になるなあ...）。&lt;br /&gt;
価格はAmazonで27,077円。やはり専用ACアダプターが別売りで5,570円。&lt;br /&gt;
合計で&lt;span style=&quot;color: red;&quot;&gt;32,647円&lt;/span&gt;。&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
この3つ以外にも良さそうなものがあったら随時更新していきます。&lt;br /&gt;
（あ、購入される方は上記リンクからよろしくお願いします！ｗ）&lt;br /&gt;
&lt;br /&gt;
2014.03.31 というわけでおれは3を購入したぞ！ジョジョーぉ！となりました。 </content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/4586667694160942540/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/4586667694160942540' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/4586667694160942540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/4586667694160942540'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2014/03/20lan.html' title='20名を越える環境での無線LAN機器について'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-314259512916105794</id><published>2013-07-01T11:16:00.001+09:00</published><updated>2013-07-01T11:16:47.105+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gem"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8</title><content type='html'>新しい環境にgemインストールしてたらこんなエラーが。&lt;br /&gt;
&lt;br /&gt;
Parsing documentation for json-1.5.5&lt;br /&gt;unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8 for ext/json/ext/generator/generator.bundle, skipping&lt;br /&gt;unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8 for ext/json/ext/generator/generator.o, skipping&lt;br /&gt;unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8 for ext/json/ext/json/ext/generator.bundle, skipping&lt;br /&gt;unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8 for ext/json/ext/json/ext/parser.bundle, skipping&lt;br /&gt;unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8 for ext/json/ext/parser/parser.bundle, skipping&lt;br /&gt;unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8 for ext/json/ext/parser/parser.o, skipping&lt;br /&gt;Installing ri documentation for json-1.5.5&lt;br /&gt;...&lt;br /&gt;Parsing documentation for net-ssh-2.1.4&lt;br /&gt;unable to convert &quot;\xE7&quot; from ASCII-8BIT to UTF-8 for lib/net/ssh/authentication/pageant.rb, skipping&lt;br /&gt;
&lt;br /&gt;
ココによるとrdocの問題らしい。&lt;br /&gt;
&lt;br /&gt;
gem install rdoc&lt;br /&gt;https://github.com/davidfstr/rdiscount/issues/96 &lt;br /&gt;
&lt;br /&gt;
Rubyはhomebrewでインストールしているので、brew updateして直らなかったら以下のようにアップデート。 &lt;br /&gt;
&lt;br /&gt;
rdocをアップデート &lt;br /&gt;
&lt;br /&gt;
$ sudo gem install rdoc&lt;br /&gt;
&lt;br /&gt;Fetching: rdoc-4.0.1.gem (100%)&lt;br /&gt;rdoc&#39;s executable &quot;rdoc&quot; conflicts with /usr/local/Cellar/ruby/2.0.0-p195/bin/rdoc&lt;br /&gt;Overwrite the executable? [yN]&amp;nbsp; y&lt;br /&gt;rdoc&#39;s executable &quot;ri&quot; conflicts with /usr/local/Cellar/ruby/2.0.0-p195/bin/ri&lt;br /&gt;Overwrite the executable? [yN]&amp;nbsp; y&lt;br /&gt;Depending on your version of ruby, you may need to install ruby rdoc/ri data:&lt;br /&gt;&lt;br /&gt;&amp;lt;= 1.8.6 : unsupported&lt;br /&gt;&amp;nbsp;= 1.8.7 : gem install rdoc-data; rdoc-data --install&lt;br /&gt;&amp;nbsp;= 1.9.1 : gem install rdoc-data; rdoc-data --install&lt;br /&gt;&amp;gt;= 1.9.2 : nothing to do! Yay!&lt;br /&gt;Successfully installed rdoc-4.0.1&lt;br /&gt;Parsing documentation for rdoc-4.0.1&lt;br /&gt;Installing ri documentation for rdoc-4.0.1&lt;br /&gt;1 gem installed &lt;br /&gt;
&lt;br /&gt;
$ sudo gem list rdoc&lt;br /&gt;&lt;br /&gt;*** LOCAL GEMS ***&lt;br /&gt;rdoc (4.0.1, 4.0.0) &lt;br /&gt;
&lt;br /&gt;
もう一回インストール&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$ sudo gem install json&lt;br /&gt;
&lt;br /&gt;Fetching: json-1.8.0.gem (100%)&lt;br /&gt;Building native extensions.&amp;nbsp; This could take a while...&lt;br /&gt;Successfully installed json-1.8.0&lt;br /&gt;Parsing documentation for json-1.8.0&lt;br /&gt;Installing ri documentation for json-1.8.0&lt;br /&gt;Done installing documentation for json after 0 seconds&lt;br /&gt;1 gem installed&lt;br /&gt;
&lt;br /&gt;
今度はエラーでなかった。ホッ。&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/314259512916105794/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/314259512916105794' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/314259512916105794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/314259512916105794'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2013/07/unable-to-convert-xcf-from-ascii-8bit.html' title='unable to convert &quot;\xCF&quot; from ASCII-8BIT to UTF-8'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-5389462011815132644</id><published>2013-03-05T22:42:00.000+09:00</published><updated>2013-03-05T22:42:00.792+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dnsmasq"/><category scheme="http://www.blogger.com/atom/ns#" term="homebrew"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><title type='text'>macにdnsmasqをインストール</title><content type='html'>macにdnsmasqをインストール&lt;br /&gt;
&lt;br /&gt;
boxenにdnsmasqが入っていたので気になって入れてみました。&lt;br /&gt;
dnsmasqはローカルに起動できるdnsサーバです。&lt;br /&gt;
&lt;br /&gt;
環境はMountain Lionです。&lt;br /&gt;
&lt;br /&gt;
Homebrewでインストール&lt;br /&gt;
&lt;pre&gt;$ brew install dnsmasq
==&amp;gt; Downloading http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.65.tar.gz
######################################################################## 100.0%
==&amp;gt; make install PREFIX=/usr/local/Cellar/dnsmasq/2.65
==&amp;gt; Caveats
To configure dnsmasq, copy the example configuration to /usr/local/etc/dnsmasq.conf
and edit to taste.

  cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf

To have launchd start dnsmasq at startup:
    sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
Then to load dnsmasq now:
    sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
Warning: /usr/local/sbin is not in your PATH
You can amend this by altering your ~/.bashrc file
==&amp;gt; Summary
🍺  /usr/local/Cellar/dnsmasq/2.65: 7 files, 416K, built in 16 seconds
&lt;/pre&gt;&lt;br /&gt;
上記の通りConfファイルをコピー&lt;br /&gt;
&lt;pre&gt;$ ls -l /usr/local/opt/dnsmasq/dnsmasq.conf.example
-rw-r--r--  1 hoge  wheel  25062 12 14 20:48 /usr/local/opt/dnsmasq/dnsmasq.conf.example
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
&lt;/pre&gt;&lt;br /&gt;
上記の通りパスを通す。&lt;br /&gt;
&lt;pre&gt;$ vi ~/.bashrc
PATHに /usr/local/sbin を追加
$ source ~/.bashrc
&lt;/pre&gt;&lt;br /&gt;
コマンドが認識されているか確認&lt;br /&gt;
&lt;pre&gt;$ which dnsmasq
/usr/local/sbin/dnsmasq
&lt;/pre&gt;問題ないですね。&lt;br /&gt;
&lt;br /&gt;
launchctlを利用して自動的に起動されるように設定ファイルを用意してくれています。&lt;br /&gt;
多分、間違いなく常時利用するので、使わせていただきましょう。&lt;br /&gt;
&lt;br /&gt;
設定ファイルをコピー&lt;br /&gt;
&lt;pre&gt;$ sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
&lt;/pre&gt;&lt;br /&gt;
設定ファイルを読みこませる（Daemonとして自動的に起動する）&lt;br /&gt;
&lt;pre&gt;$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
&lt;/pre&gt;&lt;br /&gt;
プロセス確認&lt;br /&gt;
&lt;pre&gt;$ ps aux | grep dnsmasq | grep -v grep
nobody          2854   0.0  0.0  2432960    676   ??  Ss    4:48PM   0:00.00 /usr/local/opt/dnsmasq/sbin/dnsmasq --keep-in-foreground
&lt;/pre&gt;&lt;br /&gt;
常時起動リストに入っているかの確認&lt;br /&gt;
&lt;pre&gt;$  sudo launchctl list | egrep &quot;dnsmasq|PID&quot;
PID Status Label
2854 - homebrew.mxcl.dnsmasq
&lt;/pre&gt;&lt;br /&gt;
ちなみに設定ファイルはこんな感じ&lt;br /&gt;
&lt;pre&gt;$ cat /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
&amp;lt;plist version=&quot;1.0&quot;&amp;gt;
  &amp;lt;dict&amp;gt;
    &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;homebrew.mxcl.dnsmasq&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
    &amp;lt;array&amp;gt;
      &amp;lt;string&amp;gt;/usr/local/opt/dnsmasq/sbin/dnsmasq&amp;lt;/string&amp;gt;
      &amp;lt;string&amp;gt;--keep-in-foreground&amp;lt;/string&amp;gt;
    &amp;lt;/array&amp;gt;
    &amp;lt;key&amp;gt;KeepAlive&amp;lt;/key&amp;gt;
    &amp;lt;dict&amp;gt;
      &amp;lt;key&amp;gt;NetworkState&amp;lt;/key&amp;gt;
      &amp;lt;true&amp;gt;
    &amp;lt;/true&amp;gt;&amp;lt;/dict&amp;gt;
  &amp;lt;/dict&amp;gt;&amp;lt;/plist&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
通常の起動の場合&lt;br /&gt;
&lt;br /&gt;
再起動するとき（停止するとDaemonなので自動的に再起動される）&lt;br /&gt;
&lt;pre&gt;$ sudo launchctl stop homebrew.mxcl.dnsmasq &lt;/pre&gt;&lt;br /&gt;
停止するとき（今後自動起動もしなくなる）&lt;br /&gt;
&lt;pre&gt;$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist&lt;/pre&gt;&lt;br /&gt;
参考リンク&lt;br /&gt;
&lt;br /&gt;
LaunchDaemons (launchctl, launchd.plist) の使い方 - maruko2 Note.&lt;br /&gt;
&lt;a href=&quot;http://www.maruko2.com/mw/LaunchDaemons_(launchctl,_launchd.plist)_%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9&quot; target=&quot;_blank&quot;&gt;http://www.maruko2.com/mw/LaunchDaemons_(launchctl,_launchd.plist)_%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/5389462011815132644/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/5389462011815132644' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5389462011815132644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5389462011815132644'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2013/03/macdnsmasq.html' title='macにdnsmasqをインストール'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-6004428912280560768</id><published>2013-02-23T04:00:00.005+09:00</published><updated>2013-02-23T04:38:42.615+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="homebrew"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="meld"/><category scheme="http://www.blogger.com/atom/ns#" term="mountain lion"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><title type='text'>MeldのMacへのインストール（Homebrew, Mountain Lion）</title><content type='html'>最近MBPを使っています。&lt;br /&gt;
Macなかなかよいです。 &lt;br /&gt;
Windowsでしかできないこともあるけど、作業はこっちのほうがいいなあ。&lt;br /&gt;
&lt;br /&gt;
Diffツールのmeldを入れた時にちょっと苦労したのでメモ。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgyoLTXpYyZNJUUtSAt1hTaQBRjmZkWvidhftDlN9BsmZi3uFHKExG1TZwzpmAZnvv5bhyphenhyphenXhwaumwFdvDtS12QB2bDYO-SFQxv8Wj7qvYm2Focqx1r38oUhervHx5H9FWrjuPL/s1600/meld-96.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgyoLTXpYyZNJUUtSAt1hTaQBRjmZkWvidhftDlN9BsmZi3uFHKExG1TZwzpmAZnvv5bhyphenhyphenXhwaumwFdvDtS12QB2bDYO-SFQxv8Wj7qvYm2Focqx1r38oUhervHx5H9FWrjuPL/s1600/meld-96.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Meld&lt;br /&gt;
&lt;a href=&quot;http://meldmerge.org/&quot; target=&quot;_blank&quot;&gt;http://meldmerge.org/&lt;/a&gt;&lt;br /&gt;
&lt;br style=&quot;clear: left;&quot;&gt;環境はMac OS X 10.8 (Mountain Lion) です。&lt;br /&gt;
&lt;layer class=&quot;searchwp-term searchwp-highlight-searchwp-highlighting&quot; highlight=&quot;term-1&quot;&gt;Homebrew&lt;/layer&gt;が入っていることが前提です。&lt;br /&gt;
&lt;h4&gt;インストール手順&lt;/h4&gt;&lt;ol&gt;&lt;li&gt;XQuartz (Mountain Lion 以降は標準で入っていない)&lt;br /&gt;
下記を参考にしました。&lt;br /&gt;
X11 (XQuartz 2.7.2)をMac OS X 10.8 Mountain Lionにインストールする - memo.yomukaku.net&lt;br /&gt;
&lt;a href=&quot;http://memo.yomukaku.net/entries/SKNgCdP&quot; target=&quot;_blank&quot;&gt;http://memo.yomukaku.net/entries/SKNgCdP&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;$ brew install python&lt;br /&gt;
Pythonは&lt;layer class=&quot;searchwp-term searchwp-highlight-searchwp-highlighting&quot; highlight=&quot;term-1&quot;&gt;Homebrew&lt;/layer&gt;で入れておくほうが無難そう。&lt;br /&gt;
最初にHomebrewでPythonを入れておかなかったので、MacのデフォルトのPythonが使われたのですが、py関係は入れなおしたりして苦労しました。&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;$ brew install meld&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;$ meld&lt;br /&gt;
で起動&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;日本語のファイルも認識させたい場合は、メニューから [編集] - [設定] - [エンコーディング] で&lt;br /&gt;
shift_jis euc-jp utf8 latin1&lt;br /&gt;
と入れる （この順番が大事）&lt;br /&gt;
※shift_jisのところはsjisと入力しても大丈夫みたい。 &lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
Meldで比較したい場合は、起動してからファイルを選んでも良いし、&lt;br /&gt;
$ meld file1 file2&lt;br /&gt;
でも実行出来ます。&lt;br /&gt;
&lt;br /&gt;
3つのファイルの同時比較もできるよ。&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbouhFtAuPrN0ywxxwKqBqNvytXTOs0YTKwCMoh3yf-ErW6TwabAtEjrQauiNTBtgiEaRqZuhsVlYCjfSoAjdskYA7W1W7QEwW-D4AxxFbrZq4pVSvPfpC3qBg4yDqB8aNTvyB/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88+2013-02-23+3.27.29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;SJIS, UTF8, EUC-JPのファイルを同時に比較したところ&quot; border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbouhFtAuPrN0ywxxwKqBqNvytXTOs0YTKwCMoh3yf-ErW6TwabAtEjrQauiNTBtgiEaRqZuhsVlYCjfSoAjdskYA7W1W7QEwW-D4AxxFbrZq4pVSvPfpC3qBg4yDqB8aNTvyB/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88+2013-02-23+3.27.29.png&quot; title=&quot;SJIS, UTF8, EUC-JPのファイルを同時に比較したところ&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;SJIS, UTF8, EUC-JPのファイルを同時に比較したところ&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
もし、Meldを起動しようとした時に、&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;インポートできません:pygtk &lt;br /&gt;
No module named pygtk&lt;/blockquote&gt;と出たら&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;$ python&lt;/li&gt;
&lt;li&gt;&amp;gt;&amp;gt;&amp;gt; import cairo &lt;/li&gt;
&lt;li&gt;&amp;gt;&amp;gt;&amp;gt; import pygtk &lt;/li&gt;
&lt;li&gt;&amp;gt;&amp;gt;&amp;gt; exit() &lt;/li&gt;
&lt;/ol&gt;してからもう一度起動してみてください。&lt;br /&gt;
&lt;br /&gt;
参考リンク&lt;br /&gt;
&lt;br /&gt;
おもいたったがきちじつ - ubuntu - PrecisePangolin(12.04) - GUIのdiffツール(Meld)を使います&lt;br /&gt;
&lt;a href=&quot;http://namakemono345.com/kichijitsu/ubuntu/PrecisePangolin/Meld.html&quot; target=&quot;_blank&quot;&gt;http://namakemono345.com/kichijitsu/ubuntu/PrecisePangolin/Meld.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/6004428912280560768/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/6004428912280560768' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/6004428912280560768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/6004428912280560768'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2013/02/meldmachomebrew-mountain-lion.html' title='MeldのMacへのインストール（Homebrew, Mountain Lion）'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgyoLTXpYyZNJUUtSAt1hTaQBRjmZkWvidhftDlN9BsmZi3uFHKExG1TZwzpmAZnvv5bhyphenhyphenXhwaumwFdvDtS12QB2bDYO-SFQxv8Wj7qvYm2Focqx1r38oUhervHx5H9FWrjuPL/s72-c/meld-96.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-7263236246418569735</id><published>2013-01-24T02:15:00.000+09:00</published><updated>2013-01-24T02:15:00.694+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="thunderbird"/><title type='text'>Thunderbirdでメールを作成するときに自動改行されない</title><content type='html'>Thunderbirdでメールを作成するときに、自動改行されるようにしてるけど、いざ送信してみるとちゃんと改行されていないように見えることがあった。&lt;br /&gt;
&lt;br /&gt;
メッセージのソースをみてみると&lt;br /&gt;
&lt;pre&gt;Content-Type: text/plain; charset=UTF-8; format=flowed&lt;/pre&gt;になっていた。&lt;br /&gt;
&lt;br /&gt;
format=flowedでも改行をきちんと表示させたい場合は、詳細設定（about:config）で、以下のように設定すれば良い。&lt;br /&gt;
&lt;pre&gt;mailnews.display.disable_format_flowed_support -&amp;gt; true&lt;/pre&gt;&lt;br /&gt;
逆にメールを作成するときに format=flowed を付けたくない場合は、詳細設定（about:config）で、以下のように設定すれば良い。&lt;br /&gt;
&lt;pre&gt;mailnews.send_plaintext_flowed -&amp;gt; false&lt;/pre&gt;&lt;br /&gt;
プロファイルディレクトリ内にuser.jsを作成して以下のように記載してもOK&lt;br /&gt;
&lt;pre&gt;user_pref(&quot;mmailnews.display.disable_format_flowed_support&quot;, true);
user_pref(&quot;mailnews.send_plaintext_flowed&quot;, false);&lt;/pre&gt;&lt;br /&gt;
参考リンク&lt;br /&gt;
&lt;br /&gt;
Thunderbirdで正しく改行されない cont@ct/ウェブリブログ&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://contact.at.webry.info/200908/article_1.html&quot;&gt;http://contact.at.webry.info/200908/article_1.html&lt;/a&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/7263236246418569735/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/7263236246418569735' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7263236246418569735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7263236246418569735'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2013/01/thunderbird.html' title='Thunderbirdでメールを作成するときに自動改行されない'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-2329691588229878557</id><published>2012-08-07T12:22:00.002+09:00</published><updated>2012-08-07T12:22:24.897+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>ある日ｌｉｓｔｅｎｅｒが応答しなくなった</title><content type='html'>&lt;p&gt;Oracleで無理やりなことしてたら、ある日Listenerが応答しなくなっちゃいました。&lt;/p&gt;
&lt;pre&gt;$ lsnrctl stop
$ lsnrctl start

Service &quot;PLSExtProc&quot; has 1 instance(s).
  Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...

$ lsnrctl status

TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
&lt;/pre&gt;
って出ちゃう。
&lt;br /&gt;
&lt;br /&gt;netcaでリスナー作り直してもダメ。

Listenerを再構成
&lt;pre&gt;
$ sqlplus / as sysdba 
SQL&gt; alter system register;

System altered.

SQL&gt; exit
&lt;/pre&gt;

確認
&lt;pre&gt;
$ lsnrctl status

Services Summary...
Service &quot;PLSExtProc&quot; has 1 instance(s).
  Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...
Service &quot;hoge&quot; has 1 instance(s).
  Instance &quot;hoge&quot;, status READY, has 1 handler(s) for this service...
Service &quot;hogeXDB&quot; has 1 instance(s).
  Instance &quot;hoge&quot;, status READY, has 1 handler(s) for this service...
Service &quot;hoge_XPT&quot; has 1 instance(s).
  Instance &quot;hoge&quot;, status READY, has 1 handler(s) for this service...
&lt;/pre&gt;


netcaでリスナーの「再構成」でもいいのかな？</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/2329691588229878557/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/2329691588229878557' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/2329691588229878557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/2329691588229878557'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2012/08/blog-post.html' title='ある日ｌｉｓｔｅｎｅｒが応答しなくなった'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-7821885414588967367</id><published>2012-08-03T05:41:00.000+09:00</published><updated>2013-02-23T04:38:38.710+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracle ASM ディスクグループを削除したい場合</title><content type='html'>Oracle ASM のDISK Groupを削除したい！と思ったけどコマンドでやり方がわからなかったので調べてみました。&lt;br /&gt;
SIDを +ASM にするのかー。&lt;br /&gt;
&lt;pre&gt;# su - oracle

$cat /etc/oratab
hoge:/usr/oracle/product/10.2.0/server:N
+ASM:/usr/oracle/product/10.2.0/server:N  &lt;-- これ
fuga:/usr/oracle/product/10.2.0/server:N

$ ORACLE_SID=+ASM
$ export ORACLE_SID
$ sqlplus / as sysdba

SQL&amp;gt; SELECT group_number, disk_number, mount_status, header_status, state, path
&amp;nbsp; 2&amp;nbsp; FROM&amp;nbsp;&amp;nbsp; v$asm_disk;

GROUP_NUMBER DISK_NUMBER MOUNT_STATUS HEADER_STATUS STATE&amp;nbsp; PATH
------------ ----------- ------------ ------------- ------ -------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; CACHED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MEMBER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NORMAL&amp;nbsp; /dev/raw/raw1

SQL&amp;gt; drop diskgroup DG1;
Diskgroup dropped.

SQL&amp;gt; exit

&lt;/pre&gt;

参考：
&lt;a href=&quot;http://docs.oracle.com/cd/E16338_01/server.112/b56299/statements_8013.htm&quot;&gt;http://docs.oracle.com/cd/E16338_01/server.112/b56299/statements_8013.htm&lt;/a&gt;

ORACLE - DBA Tips Corner
&lt;a href=&quot;http://www.idevelopment.info/data/Oracle/DBA_tips/Automatic_Storage_Management/ASM_10.shtml&quot;&gt;http://www.idevelopment.info/data/Oracle/DBA_tips/Automatic_Storage_Management/ASM_10.shtml&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/7821885414588967367/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/7821885414588967367' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7821885414588967367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7821885414588967367'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2012/08/oracle-asm.html' title='Oracle ASM ディスクグループを削除したい場合'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-2892864415951580741</id><published>2012-04-29T16:54:00.001+09:00</published><updated>2012-04-29T17:12:52.355+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracle DB作成時にORA-01503とORA-01158</title><content type='html'>Oracle 10gR2でこんなエラーが出てDBCAでデータベースができん！

&lt;br /&gt;
&lt;pre&gt;ORA-01503: CREATE CONTROLFILE???????
ORA-01158: ?????????????????????????????
&lt;/pre&gt;
とおもったら、グローバルデータベース名とSIDに8文字以上を指定してました... orz すんません&lt;br /&gt;
&lt;br /&gt;
osakana
というDBがすでにあって
osakana2
を作ろうとしました。&lt;br /&gt;
DBCAさんは気を利かせて、グローバルデータベース名のosakana2を1文字消してosakanaに！&lt;br /&gt;
（たぶんSIDはそのまま）&lt;br /&gt;
&lt;br /&gt;
そしてエラーが発生＞＜！&lt;br /&gt;
&lt;br /&gt;
&lt;strike&gt;DBCAで「グローバルデータベース名は8文字までです」とか警告だしてよ！&lt;/strike&gt;&lt;br /&gt;
&lt;br /&gt;
おそらくは
&lt;br /&gt;
&lt;pre&gt;ORA-01503: CREATE CONTROLFILE???????
ORA-01158: ?????????????????????????????
&lt;/pre&gt;
のところは
&lt;br /&gt;
&lt;pre&gt;ORA-01503: CREATE CONTROLFILEでエラーが発生しました
ORA-01158: データベースosakanaはすでにマウントされています
&lt;/pre&gt;
だったんじゃないかなあと。&lt;br /&gt;
&lt;br /&gt;
皆様お気を付けくださいませ。</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/2892864415951580741/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/2892864415951580741' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/2892864415951580741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/2892864415951580741'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2012/04/oracle-dbora-01503ora-01158.html' title='Oracle DB作成時にORA-01503とORA-01158'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-4912621951237084293</id><published>2012-04-18T16:51:00.000+09:00</published><updated>2012-04-18T17:11:14.579+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="spdy"/><title type='text'>ApacheでSPDY</title><content type='html'>ApacheでSPDYプロトコルが使えるようになったそうです。ステキですね。&lt;br /&gt;
&lt;br /&gt;
Add SPDY support to your Apache server with mod_spdy - Google Developers Blog&lt;br /&gt;
&lt;a href=&quot;http://googledevelopers.blogspot.jp/2012/04/add-spdy-support-to-your-apache-server.html&quot;&gt;http://googledevelopers.blogspot.jp/2012/04/add-spdy-support-to-your-apache-server.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
mod_spdy - mod_spdy — Google Developers&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/speed/spdy/mod_spdy/&quot;&gt;http://developers.google.com/speed/spdy/mod_spdy/&lt;/a&gt;&lt;br /&gt;
Apache2.2以上対応、mod_sslが必須です。&lt;br /&gt;
Debian, Ubuntu, Fedora, CentOS などが対応OSです。 &lt;br /&gt;
&lt;br /&gt;
SPDYについては下記を読んでみてください。&lt;br /&gt;
&lt;br /&gt;
2012年3月28日 速度向上とモバイル対応を目指したHTTP 2.0のプロポーザル、マイクロソフトがIETFに提出。SPDYとWebSocketが起点に － Publickey&lt;br /&gt;
&lt;a href=&quot;http://www.publickey1.jp/blog/12/http_20ietfspdywebsocket.html&quot;&gt;http://www.publickey1.jp/blog/12/http_20ietfspdywebsocket.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2009年11月13日 Google、HTTPを補う高速化プロトコル「SPDY」発表 - ITmedia ニュース&lt;br /&gt;
&lt;a href=&quot;http://www.itmedia.co.jp/news/articles/0911/13/news019.html&quot;&gt;http://www.itmedia.co.jp/news/articles/0911/13/news019.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
SPDY - SPDY — Google Developers&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/speed/spdy/&quot;&gt;https://developers.google.com/speed/spdy/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今のところ対応ブラウザはChromeです。&lt;br /&gt;
Chromeの起動オプションに&lt;br /&gt;
&lt;code&gt;--use-spdy=npn&lt;/code&gt;&lt;br /&gt;
と追加して起動するとSPDYを使えるそうです。&lt;br /&gt;
&lt;br /&gt;
なお、Firefoxも11で対応しています。&lt;br /&gt;
有効化するには、&lt;br /&gt;
&lt;code&gt;about:config&lt;/code&gt;で&lt;code&gt;network.http.spdy.enabled&lt;/code&gt; の値を true にしてください。&lt;br /&gt;
&lt;br /&gt;
自分でApache持ってないよ！という人はChromeに上のオプションを付けて起動したうえでTwitterを見ると速いかもしれません！&lt;br /&gt;
&lt;br /&gt;
Twitter、Google提案のSPDYプロトコルを導入 | ネット | マイナビニュース&lt;br /&gt;
&lt;a href=&quot;http://news.mynavi.jp/news/2012/03/14/025/&quot;&gt;http://news.mynavi.jp/news/2012/03/14/025/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
追記：&lt;br /&gt;
あ、検証サイトがあった。&lt;br /&gt;
&lt;a href=&quot;https://www.modspdy.com/world-flags/&quot;&gt;https://www.modspdy.com/world-flags/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/4912621951237084293/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/4912621951237084293' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/4912621951237084293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/4912621951237084293'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2012/04/apachespdy.html' title='ApacheでSPDY'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-5377430445690473080</id><published>2012-02-17T18:56:00.002+09:00</published><updated>2012-02-17T18:56:35.588+09:00</updated><title type='text'>smartSVNの設定</title><content type='html'>&lt;a href=&quot;http://www.syntevo.com/smartsvn/&quot; target=&quot;_blank&quot;&gt;smartSVN&lt;/a&gt;の設定でよく忘れちゃうのでメモメモ。&lt;br /&gt;
&lt;br /&gt;
設定は下記のディレクトリに入ってる。&lt;br /&gt;
ここをバックアップしておけばよい。&lt;br /&gt;
C:\Users\ユーザー名\AppData\Roaming\syntevo\SmartSVN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/5377430445690473080/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/5377430445690473080' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5377430445690473080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5377430445690473080'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2012/02/smartsvn.html' title='smartSVNの設定'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-5106607478137416215</id><published>2012-01-19T12:56:00.002+09:00</published><updated>2012-01-19T12:56:50.440+09:00</updated><title type='text'>Oracle AWRレポート</title><content type='html'>Oracle 11g で AWRレポートどうやって出すんだっけって前調べたけど忘れちゃってまた調べたのでメモ。&lt;br /&gt;
&lt;br /&gt;
SQLPLUSから呼び出す。&lt;br /&gt;
&lt;pre&gt;sqlplus / as sysdba
SQL&amp;gt; @?/rdbms/admin/awrrpt
&lt;/pre&gt;
&lt;br /&gt;
最初は形式を選択&lt;br /&gt;
&lt;pre&gt;Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter &#39;html&#39; for an HTML report, or &#39;text&#39; for plain text
Defaults to &#39;html&#39;
report_typeに値を入力してください: text &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;← htmlも選べるよ&lt;/span&gt;
Type Specified:                                  text

&lt;/pre&gt;
次に統計の対象とする日数を入力（詳細な時間などはこの次のステップで選択できる）&lt;br /&gt;
&lt;pre&gt;Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed.  Pressing &amp;lt;return&amp;amp;rt; without
specifying a number lists all completed snapshots.

num_daysに値を入力してください: 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;← 調査したい日数を入力&lt;/span&gt;
&lt;/pre&gt;
&lt;br /&gt;
すると一覧にSnapIDが表示されるので、レポートにしたい番号を入れる。
&lt;br /&gt;
&lt;pre&gt;                                                        Snap
Listing the last 2 days of Completed Snapshots

Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
hoge         HOGE              1544 18 1月  2012 00:00     1
                               1545 18 1月  2012 01:00     1
                               1546 18 1月  2012 02:00     1
                               1547 18 1月  2012 03:00     1
                               1548 18 1月  2012 04:00     1
                               1549 18 1月  2012 05:00     1
                               1550 18 1月  2012 06:00     1
                               1551 18 1月  2012 07:00     1
                               1552 18 1月  2012 08:00     1
                               1553 18 1月  2012 09:00     1
                               1554 18 1月  2012 10:00     1

Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
begin_snapに値を入力してください: 1520
Begin Snapshot Id specified: 1520

end_snapに値を入力してください: 1580
End   Snapshot Id specified: 1580
&lt;/pre&gt;
&lt;br /&gt;
レポート名を入力。何も指定しなければ自動でレポート名が作られます。
&lt;br /&gt;
&lt;pre&gt;Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_1520_1580.txt.  To use this name,
press &lt;return&gt; to continue, otherwise enter an alternative.

report_nameに値を入力してください: &lt;span style=&quot;color: red;&quot;&gt;← 何も入れないでEnterを押下すると上記の名前でレポートが作成されます。&lt;/span&gt;

Using the report name awrrpt_1_1520_1580.txt

&lt;/return&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/5106607478137416215/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/5106607478137416215' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5106607478137416215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/5106607478137416215'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2012/01/oracle-awr.html' title='Oracle AWRレポート'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-460502924196204097</id><published>2011-12-29T10:53:00.000+09:00</published><updated>2011-12-29T10:56:13.147+09:00</updated><title type='text'>赤ロム確認サイト</title><content type='html'>自分用メモ。&lt;br /&gt;
&lt;br /&gt;
ネットワーク利用制限携帯電話機について | SoftBank&lt;br /&gt;
&lt;a href=&quot;http://mb.softbank.jp/mb/support/3G/restriction/&quot;&gt;http://mb.softbank.jp/mb/support/3G/restriction/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ネットワーク利用制限携帯電話機確認サイト docomo&lt;br /&gt;
&lt;a href=&quot;http://nw-restriction.nttdocomo.co.jp/top.php&quot;&gt;http://nw-restriction.nttdocomo.co.jp/top.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
auはauショップに行かないと調べられないもよう。&lt;br /&gt;
&lt;br /&gt;
参考：
ところでソフトバンクはいつになったら赤ロム利用規制を解除するの？ :: ガジェットブログ -Gadget Blog-&lt;br /&gt;

&lt;a href=&quot;http://j-phone.seesaa.net/article/156039098.html&quot;&gt;http://j-phone.seesaa.net/article/156039098.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/460502924196204097/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/460502924196204097' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/460502924196204097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/460502924196204097'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2011/12/blog-post.html' title='赤ロム確認サイト'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-386039167515023876</id><published>2011-10-01T14:12:00.000+09:00</published><updated>2011-10-03T10:51:38.325+09:00</updated><title type='text'>Xi(Android)タブレットお披露目会 for Developer 関連リンク</title><content type='html'>2011/10/1（土）にドコモさん主催で「Xi(Android)タブレットお披露目会 for Developer」が開催されました。
各講演がとてもよかったので資料関連のリンクをまとめました。&lt;br /&gt;
&lt;br /&gt;
Xi(Android)タブレットお披露目会 for Developer&lt;br /&gt;
&lt;a href=&quot;http://atnd.org/events/20038&quot;&gt;http://atnd.org/events/20038&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
午前中はOpenデ部のLT
&lt;br /&gt;
&lt;ul&gt;
&lt;li style=&quot;padding: 5px;&quot;&gt;最初がわかんないのでだれかおしえてください＞＜；&lt;/li&gt;
&lt;li&gt;プログラマとデザイナが共有すべきUIに関するAndroidの10の機能 @youten&lt;a href=&quot;http://dl.dropbox.com/u/22653168/file/20111001_android_ui_dp10info_kai.pdf&quot;&gt;資料[PDF]&lt;/a&gt; &lt;a href=&quot;http://greety.sakura.ne.jp/redo/2011/08/uiandroid10.html&quot;&gt;元資料&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;padding: 5px;&quot;&gt;DevQuizの模範解答(Android編)  @zaki&lt;br /&gt;&lt;div id=&quot;__ss_9493990&quot; style=&quot;width: 425px;&quot;&gt;
&lt;a href=&quot;http://www.slideshare.net/MakotoYamazaki/devquiz-2011-android&quot;&gt;DevQuizの模範解答&lt;/a&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;355&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://www.slideshare.net/slideshow/embed_code/9493990&quot; width=&quot;425&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
[参考]&lt;br /&gt;&lt;a href=&quot;http://code.google.com/p/android-apktool/&quot;&gt;android-apktool - A tool for reengineering Android apk files - Google Project Hosting&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://code.google.com/p/smali/&quot;&gt;smali - An assembler/disassembler for Android&#39;s dex format - Google Project Hosting&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://code.google.com/p/dex2jar/&quot;&gt;dex2jar - A tool for converting Android&#39;s .dex format to Java&#39;s .class format - Google Project Hosting&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;padding: 5px;&quot;&gt;制作チームで共有しておくと幸せなこと @kaa
&lt;div id=&quot;__ss_9493875&quot; style=&quot;width: 425px;&quot;&gt;
&lt;a href=&quot;http://www.slideshare.net/kazuakihidaka/ss-9493875&quot;&gt;制作チームで共有しておくと幸せなこと&lt;/a&gt;&lt;iframe frameborder=&quot;0&quot; height=&quot;355&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://www.slideshare.net/slideshow/embed_code/9493875&quot; width=&quot;425&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;a href=&quot;http://t.co/OIGyYsk3&quot;&gt;案件チェックシート&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;padding: 5px;&quot;&gt;Androidタブレットでサイネージをやったお話 @naonya3&lt;/li&gt;
&lt;li style=&quot;padding: 5px;&quot;&gt;ADIS (Android Device Info Share) について @itog
&lt;div id=&quot;__ss_9494189&quot; style=&quot;width: 425px;&quot;&gt;
&lt;b style=&quot;display: block; margin: 12px 0 4px;&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/itog/deb20111001&quot; target=&quot;_blank&quot; title=&quot;Deb20111001&quot;&gt;AndroidDeviceInfoShare update on Oct 2011&lt;/a&gt;&lt;/b&gt; &lt;iframe frameborder=&quot;0&quot; height=&quot;355&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://www.slideshare.net/slideshow/embed_code/9494189&quot; width=&quot;425&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;padding: 5px;&quot;&gt;app widget の設定画面で実現すべきこと &amp;amp; in-app billing を実装した話 @yanzm
&lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B99tkpQpgWT2NTBlYzBhYTctYjJkZi00YzNiLWJiNDAtOGEzOTViOWUzZWJh&amp;amp;hl=en&quot;&gt;AppWidgetAndInAppBilling.pdf - Powered by Google Docs [PDF]&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;ブラウザからlogcatを見る @tomorrowkey
&lt;p&gt;&lt;a href=&quot;http://d.hatena.ne.jp/tomorrowkey/20111001/1317451235&quot;&gt;ブラウザからlogcatを見る&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;おまけ&lt;br&gt;
&lt;a href=&quot;http://togetter.com/li/195495&quot;&gt;Xiタブレットお披露目会 for Developer つぶやきまとめ - Togetter&lt;/a&gt;
&lt;/p&gt;

</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/386039167515023876/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/386039167515023876' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/386039167515023876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/386039167515023876'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2011/10/xiandroid-for-developer.html' title='Xi(Android)タブレットお披露目会 for Developer 関連リンク'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-7795425450025705212</id><published>2011-05-27T10:52:00.003+09:00</published><updated>2011-05-27T11:12:36.425+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><title type='text'>CentOSに時刻同期を入れておく</title><content type='html'>めもめも&lt;br /&gt;&lt;br /&gt;時刻確認&lt;pre&gt;date&lt;/pre&gt;時刻同期インストール&lt;pre&gt;yum -y install ntp&lt;/pre&gt;設定変更&lt;pre&gt;cp -p /etc/sysconfig/ntpd /etc/sysconfig/ntpd.org&lt;br /&gt;vi /etc/sysconfig/ntpd&lt;/pre&gt;下記のようになるように変更する&lt;br /&gt;起動時、強制的にNTPの時刻同期をしてくれる&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; # Drop root to id &#39;ntp:ntp&#39; by default.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; OPTIONS=&quot;-x -u ntp:ntp -p /var/run/ntpd.pid&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; # Set to &#39;yes&#39; to sync hw clock after successful ntpdate&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; SYNC_HWCLOCK=yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; # Additional options for ntpdate&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; NTPDATE_OPTIONS=&quot;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ntpサーバを変更する場合は以下にて実施&lt;pre&gt;vi /etc/ntp.conf&lt;/pre&gt;  時刻同期開始（この時強制的に時刻同期される）&lt;pre&gt;/etc/rc.d/init.d/ntpd start&lt;/pre&gt;時刻同期の自動起動設定&lt;pre&gt;chkconfig ntpd on&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; ntpd: 時間サーバーと同期中:                                [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; ハードウェア時刻をシステム時刻に同期中                     [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; ntpd を起動中:                                             [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ntpq -p&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;      remote           refid      st t when poll reach   delay   offset  jitter&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; ==============================================================================&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;  ntp1.jst.mfeed. 210.173.176.4    2 u    4   64    3   22.912  894172.   1.125&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;  ntp2.jst.mfeed. 210.173.160.56   2 u    4   64    3   23.250  894172.   1.312&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;  ntp3.jst.mfeed. 133.243.236.18   2 u    5   64    3   22.798  894173.   0.988&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;  LOCAL(0)        .LOCL.          10 l    4   64    3    0.000    0.000   0.001&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;date&lt;/pre&gt;参考サイト &lt;a href=&quot;http://www.glamenv-septzen.net/view/731&quot;&gt;技術/Linux/CentOS 5.3 をクライアントとして使う時のntpd - Glamenv-Septzen.net&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/7795425450025705212/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/7795425450025705212' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7795425450025705212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7795425450025705212'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2011/05/centos.html' title='CentOSに時刻同期を入れておく'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-4452562926095836089</id><published>2011-04-04T14:10:00.008+09:00</published><updated>2011-04-04T18:38:45.862+09:00</updated><title type='text'>緊急時のモバイルサイト（スマートフォンアクセス可）</title><content type='html'>今回の大震災により被災された方々に心からお見舞いを申し上げます。&lt;br /&gt;あまりの甚大な被害に日本中が沈んでいますが、ここで諦めるのではなくみんなで少しずつ顔をあげて進んでいきたいです。&lt;br /&gt;被災された方々の身になってできることをし、自分もいつおなじ身なってもおかしくないのだと備えを怠らないように努めたいと思います。&lt;br /&gt;&lt;br /&gt;以下は自分用メモなのですが、随時追加していく予定です。&lt;br /&gt;&lt;br /&gt;&lt;font style=&quot;font-weight: bold;&quot;&gt;■全国&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;防災情報提供センター&lt;br /&gt;&lt;a href=&quot;http://www.mlit.go.jp/saigai/bosaijoho/i-index.html&quot;&gt;http://www.mlit.go.jp/saigai/bosaijoho/i-index.html&lt;/a&gt;&lt;br /&gt;※緊急地震速報のように通知されない可能性のある津波警報はここで確認する&lt;ul&gt;&lt;li&gt;河川情報&lt;/li&gt;&lt;li&gt;気象警報・注意報&lt;/li&gt;&lt;li&gt;気象情報&lt;/li&gt;&lt;li&gt;地震情報&lt;/li&gt;&lt;li&gt;津波警報・注意報&lt;/li&gt;&lt;li&gt;火山情報&lt;/li&gt;&lt;li&gt;東海地震関連情報&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;河川情報&lt;br /&gt;&lt;a href=&quot;http://www.i.river.go.jp/&quot;&gt;http://www.i.river.go.jp/&lt;/a&gt;&lt;br /&gt;※雨量や川・ダムの水位などが10分単位で細かく乗っているので大雨などの際は重宝する&lt;br /&gt;&lt;br /&gt;内閣府防災情報&lt;br /&gt;&lt;a href=&quot;http://mobile.bousai.go.jp/&quot;&gt;http://mobile.bousai.go.jp/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;MICS 海上保安庁&lt;br /&gt;&lt;a href=&quot;http://www.kaiho.mlit.go.jp/info/mics/m/&quot;&gt;http://www.kaiho.mlit.go.jp/info/mics/m/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;厚生労働省：緊急情報&lt;br /&gt;&lt;a href=&quot;http://mobile.mhlw.go.jp/news/&quot;&gt;http://mobile.mhlw.go.jp/news/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;防衛省・陸上自衛隊・りくじ 携帯ｻｲﾄ&lt;br /&gt;&lt;a href=&quot;http://www.mod.go.jp/gsdf/mobile/&quot;&gt;http://www.mod.go.jp/gsdf/mobile/&lt;/a&gt;&lt;br /&gt;※今は特に情報がない&lt;br /&gt;&lt;br /&gt;航空自衛隊携帯電話サイト&lt;br /&gt;&lt;a href=&quot;http://www.mod.go.jp/asdf/m/&quot;&gt;http://www.mod.go.jp/asdf/m/&lt;/a&gt;&lt;br /&gt;※今は特に情報がない&lt;br /&gt;&lt;br /&gt;原子力安全・保安院緊急時情報ﾎｰﾑﾍﾟｰｼﾞ(ﾓﾊﾞｲﾙ保安院)http://www.blogger.com/img/blank.gif&lt;br /&gt;&lt;a href=&quot;http://kinkyu.nisa.go.jp/m/&quot;&gt;http://kinkyu.nisa.go.jp/m/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;■&lt;span style=&quot;font-weight:bold;&quot;&gt;徳島&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;JR四国列車運行情報&lt;br /&gt;&lt;a href=&quot;http://180.8.9.250/info/m/&quot;&gt;http://180.8.9.250/info/m/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;徳島県道路雨量水位情報&lt;br /&gt;&lt;a href=&quot;http://www.road.pref.tokushima.jp/h/i/&quot;&gt;http://www.road.pref.tokushima.jp/h/i/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;那賀川河川事務所 防災情報&lt;br /&gt;&lt;a href=&quot;http://nakagawa-mlit.go.jp/ke-tai/&quot;&gt;http://nakagawa-mlit.go.jp/ke-tai/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;徳島県携帯サイト&lt;br /&gt;&lt;a href=&quot;http://mobile.pref.tokushima.jp/&quot;&gt;http://mobile.pref.tokushima.jp/&lt;/a&gt;&lt;br /&gt;※今回の大津波警報の際は特に情報掲載はなし&lt;br /&gt;&lt;br /&gt;徳島市：携帯版徳島市ﾎｰﾑﾍﾟｰｼﾞ&lt;br /&gt;&lt;a href=&quot;http://www.city.tokushima.tokushima.jp/i/&quot;&gt;http://www.city.tokushima.tokushima.jp/i/&lt;/a&gt;&lt;br /&gt;※今回の大津波警報の際は特に情報掲載はなし</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/4452562926095836089/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/4452562926095836089' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/4452562926095836089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/4452562926095836089'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2011/04/blog-post.html' title='緊急時のモバイルサイト（スマートフォンアクセス可）'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-7995950288693063796</id><published>2011-03-14T08:37:00.003+09:00</published><updated>2011-03-14T09:40:38.263+09:00</updated><title type='text'>国は公的休日を実施すべき</title><content type='html'>まずは、今回の大地震でお亡くなりになった方、被災されている方皆様に謹んでお悔やみを申し上げます。&lt;br /&gt;&lt;br /&gt;さて、表題の件について以下思ったことを書いておきたいと思います。&lt;br /&gt;&lt;br /&gt;本日、電力が足りないということで、混乱が発生しています。&lt;br /&gt;日本では公的なお休みでなければ出勤しなければという方が多いと思われますが、その影響でしょう。&lt;br /&gt;&lt;br /&gt;国が「出勤を控えるように」と言っても、それができないのだと思われます。&lt;br /&gt;取引先やお客様とのお約束上、控えることができないのです。&lt;br /&gt;&lt;br /&gt;国は明日から数日でも公的な休日とし、電力の節約や今後の方針の決定のための時間的余裕を持つべきかと思います。</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/7995950288693063796/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/7995950288693063796' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7995950288693063796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/7995950288693063796'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2011/03/blog-post.html' title='国は公的休日を実施すべき'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-17009951.post-1194181603271578658</id><published>2010-12-24T18:55:00.004+09:00</published><updated>2010-12-24T19:02:56.980+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><title type='text'>サンタさんを追跡しよう！</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFaslHysD8QsgkqHVkWIUiMzGGwa1-jsPyFYu7IplNO9WuddnkiRRUpJfaPWc29k7p725xncEIW-k1ilEWMTUmbl5SfYFfkk-WoGOlQ2PBL2QqYztayxwD3WQT0OYe3qtA1M_u/s1600/Santa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 296px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFaslHysD8QsgkqHVkWIUiMzGGwa1-jsPyFYu7IplNO9WuddnkiRRUpJfaPWc29k7p725xncEIW-k1ilEWMTUmbl5SfYFfkk-WoGOlQ2PBL2QqYztayxwD3WQT0OYe3qtA1M_u/s400/Santa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5554185581749781154&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;今年もサンタクロースの追跡イベントが開始されました！&lt;br /&gt;サンタさんがどこにいるか知りたい人は&lt;br /&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Google マップ：&lt;/b&gt; www.noradsanta.org にアクセスし、日本語を選んでください。スクリーンに、サンタクロースの現在位置と次の目的地が、大きな Google マップで表示されます。ビデオアイコンをクリックするとサンタカメラに切り替わります。&lt;/li&gt;&lt;li&gt;&lt;b&gt;Google Earth：&lt;/b&gt;www.noradsanta.org にアクセスし、「3D でサンタを追跡する」をクリックしてください。すぐに橇にのったサンタクロースがスクリーンに現れます。もし、Google Earth のプラグインをお持ちでない方は、&lt;a href=&quot;http://www.google.com/earth/explore/products/plugin.html&quot;&gt;こちら&lt;/a&gt;からダウンロードして下さい。&lt;/li&gt;&lt;li&gt;&lt;b&gt;スマートフォン：&lt;/b&gt;モバイル Google マップを立ち上げ、［サンタ］と検索するか、m.noradsanta.org にアクセスしてください。&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;br /&gt;とのことです！&lt;br /&gt;&lt;br /&gt;わーなんだろうこれ！&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif8St29EJJFi6x6nJCnfzrDGjivkJ8EFhM_lUmfWStjsZ_kYJy5gPAeUDsoluna5YHayPMG9AjQKtnvZ7q_OEW_1FplwlBwIjI_AiBRNALVNeMa57uVm7PIs1wc9rYmWOhQRTZ/s1600/Santa2.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 400px; height: 245px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif8St29EJJFi6x6nJCnfzrDGjivkJ8EFhM_lUmfWStjsZ_kYJy5gPAeUDsoluna5YHayPMG9AjQKtnvZ7q_OEW_1FplwlBwIjI_AiBRNALVNeMa57uVm7PIs1wc9rYmWOhQRTZ/s400/Santa2.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5554186984390252498&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;via Google Japan Blog: サンタクロースは今どこに？　Google とサンタを探そう&lt;br /&gt;&lt;a href=&quot;http://googlejapan.blogspot.com/2010/12/google_24.html&quot;&gt;http://googlejapan.blogspot.com/2010/12/google_24.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://yukotan.blogspot.com/feeds/1194181603271578658/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/17009951/1194181603271578658' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/1194181603271578658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17009951/posts/default/1194181603271578658'/><link rel='alternate' type='text/html' href='http://yukotan.blogspot.com/2010/12/blog-post.html' title='サンタさんを追跡しよう！'/><author><name>yukotan</name><uri>http://www.blogger.com/profile/07568214654385693592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFaslHysD8QsgkqHVkWIUiMzGGwa1-jsPyFYu7IplNO9WuddnkiRRUpJfaPWc29k7p725xncEIW-k1ilEWMTUmbl5SfYFfkk-WoGOlQ2PBL2QqYztayxwD3WQT0OYe3qtA1M_u/s72-c/Santa.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>