<?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-327746777442193733</id><updated>2024-11-09T00:38:42.870+09:00</updated><category term="linux"/><category term="javascript"/><category term="centos"/><category term="iPad"/><category term="アプリ"/><category term="インストール"/><category term="ビジネス"/><category term="基礎"/><category term="android"/><category term="雛形"/><category term="html5"/><category term="mac"/><category term="root"/><category term="server"/><category term="ubuntu"/><category term="ｊQuery"/><category term="IS11S"/><category term="Raspberry Pi"/><category term="Tips"/><category term="acro"/><category term="iphone"/><category term="php"/><category term="xperia"/><category term="開発"/><category term="SO-01B"/><category term="font"/><category term="google analytics アクセス解析"/><category term="jQuery"/><category term="jQuery mobile"/><category term="java"/><category term="xda"/><category term="カスタムROM"/><category term="ガジェット"/><category term="テザリング"/><title type='text'>お試しあれ！</title><subtitle type='html'>へっぽこIT管理者がさまざまなデジタル機器やプログラミングについてメモがてら書いていきます。&#xa;我流なので、参考になるかどうかわかりませんが、ご意見ご指摘などもいただければ幸いです。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-467435473933286203</id><published>2014-01-16T10:36:00.001+09:00</published><updated>2014-01-16T10:37:31.596+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ビジネス"/><title type='text'>QNAPのNASが気になる</title><content type='html'>小規模店舗にNASを設置したくて探していたら見つけたのが「&lt;a href=&quot;http://www.qnap.com/jp/index.php?lang=jp&amp;sn=699&amp;c=328&amp;sc=601&amp;t=610&amp;n=20743&quot;&gt;HS-210&lt;/a&gt;」&lt;br /&gt;
&lt;br /&gt;
バッファローやIOデータにもいろいろと製品はあるのだが、&lt;a href=&quot;http://www.qnap.com/jp/index.php?lang=jp&amp;sn=699&amp;c=328&amp;sc=601&amp;t=610&amp;n=20743&quot;&gt;HS-210&lt;/a&gt;がよさそうな理由は以下&lt;br /&gt;
&lt;br /&gt;
・ファンレス&lt;br /&gt;
・2ベイ&lt;br /&gt;
・Qsyncという自分専用のクラウドストレージが簡単に構築できること&lt;br /&gt;
・Surveillance Stationで店舗のwebカメラの録画ができる、しかも2チャンネル分はライセンス購入不要&lt;br /&gt;
・サーバもWEB/FTP/VPN/プリンタ　etc...&lt;br /&gt;
&lt;br /&gt;
しかも、amazonで検索すると、48,000円程度！&lt;br /&gt;
&lt;br /&gt;
tera Stationなどでwebカメラが録画できるようにライセンスを追加すると軽く10万円は超えるので、この価格は魅力！&lt;br /&gt;
&lt;br /&gt;
とりあえず購入してみようと思っています。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=hiropopjp-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=B00H3VBKBM&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/467435473933286203/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/467435473933286203' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/467435473933286203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/467435473933286203'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2014/01/qnapnas.html' title='QNAPのNASが気になる'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-8359917611757431015</id><published>2013-11-08T10:07:00.000+09:00</published><updated>2013-11-08T10:07:18.903+09:00</updated><title type='text'>WindowsXP SP3インストールでCPU使用率が100%になってしまう件</title><content type='html'>古いPCにWindowsXP SP3をインストールすると、CPUの利用率が100%になってしまいました。&lt;br /&gt;
タスクマネージで見てみるとsvchost.exeがCPUをバカ食い。&lt;br /&gt;
&lt;br /&gt;
対応方法を調べてみると、MSのブログに記事があったので、これらのパッチを当ててみることに。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(原因)&lt;br /&gt;
本事象は「Internet Explorer の累積的なセキュリティ更新プログラム」の検出処理に起因しており、下記の 4 点において特に顕著であることが確認されております。&lt;br /&gt;
&lt;br /&gt;
KB2846071（7月公開分）&lt;br /&gt;
KB2862772（8月公開分）&lt;br /&gt;
&lt;br /&gt;
KB2870699（9月公開分）&lt;br /&gt;
http://technet.microsoft.com/ja-jp/security/bulletin/ms13-069&lt;br /&gt;
&lt;br /&gt;
KB2879017（10月公開分）&lt;br /&gt;
http://technet.microsoft.com/ja-jp/security/bulletin/ms13-080&lt;br /&gt;
&lt;br /&gt;
なお10月公開分は9月公開分のファイルを置き換えているようなので、実質10月分だけでよさそう。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CPU100%なので、svchostを無理やり終了させて、上記パッチをインストール&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://dsiyo.blogspot.com/feeds/8359917611757431015/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/8359917611757431015' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/8359917611757431015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/8359917611757431015'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2013/11/windowsxp-sp3cpu100.html' title='WindowsXP SP3インストールでCPU使用率が100%になってしまう件'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-2576185440249761716</id><published>2013-05-23T11:27:00.000+09:00</published><updated>2013-05-23T11:27:08.436+09:00</updated><title type='text'>codeigniterで日本語のquery_stringが文字化けするのに対応</title><content type='html'>codeigniterで開発していて、URLで日本語の文字列を渡すときに、文字化けが発生した。&lt;br /&gt;
&lt;br /&gt;
機動戦士ガンダム　⇒　機動戦士ガンダダ&lt;br /&gt;
&lt;br /&gt;
いろいろなサイト&lt;br /&gt;
&lt;li&gt;&lt;a href=&quot;http://pricewave.blog110.fc2.com/blog-entry-17.html&quot;&gt;CodeIgniter リクエスト値を内部文字コードに変換処理&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;&lt;a href=&quot;http://sourceforge.jp/projects/codeigniter/lists/archive/users/2011-May/002515.html&quot;&gt;[Codeigniter-users] ＰＯＳＴが文字化け&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;
などを参考にしてみたものの、なかなかうまくいかない・・・&lt;br /&gt;
&lt;br /&gt;
ということで、&lt;a href=&quot;http://kaworu.jpn.org/kaworu/2007-10-06-2.php&quot;&gt;PHP base64をURLSafeにする方法&lt;/a&gt;を参考に、URLの文字列をbase64形式で変換してみました。&lt;br /&gt;
&lt;br /&gt;
尚、base64形式に変換した文字列には、「/」「+」「=」が浮くまれるため、URLにそのまま組み込むとおかしくなる。&lt;br /&gt;
&lt;br /&gt;
そこで、上記3文字については違う文字に変換することで対応した。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
【表示側contoroller】&lt;br /&gt;
①　あらかじめ以下の関数をコントローラーに仕込む&lt;br /&gt;
&lt;pre&gt; function base64_encode_safe($s){
  $s = base64_encode($s);
  return(str_replace(array(&#39;+&#39;,&#39;=&#39;,&#39;/&#39;),array(&#39;_&#39;,&#39;-&#39;,&#39;.&#39;),$s));
 }
 function base64_decode_safe($s){
  $s = (str_replace( array(&#39;_&#39;,&#39;-&#39;,&#39;.&#39;), array(&#39;+&#39;,&#39;=&#39;,&#39;/&#39;), $s));
  return(base64_decode($s));
 }
&lt;/pre&gt;&lt;br /&gt;
②　変換したい文字列を上記関数を通して変換&lt;br /&gt;
&lt;pre&gt;
$data[&#39;name&#39;]=$name;  //ここに日本語
　↓
$data[&#39;name&#39;]=$this-&gt;base64_encode_safe($name);
&lt;/pre&gt;&lt;br /&gt;
③　エンコードされたリンクを受け取る側&lt;br /&gt;
&lt;pre&gt;$work=$name;
　↓
$work=base64_decode_safe($name);

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
薫のHackさん、ありがとうございました！&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/2576185440249761716/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/2576185440249761716' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2576185440249761716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2576185440249761716'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2013/05/codeigniterquerystring.html' title='codeigniterで日本語のquery_stringが文字化けするのに対応'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-3590173966928040672</id><published>2012-08-29T17:46:00.001+09:00</published><updated>2012-08-29T17:48:10.298+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Raspberry Pi"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><title type='text'>raspberry pi とりあえず基本設定</title><content type='html'>注文してから早3ヶ月が経とうとしたある日、1通のメールが届きました。&lt;br /&gt;
「DHL Shipment Notification」と書かれたタイトルがワタシに「raspberry pi」の配達状況を知らせるものでした。&lt;br /&gt;
&lt;br /&gt;
届いた箱には待ちに待ったpiちゃん！&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/AVvXsEgvRxtr-4G36glEofqgJgE0asb6Mn4utqbRwz3nmN9HWpG1PpZ1xvQDWag23qIJafZLqHLbv6eD5rEgVZgsJPip4nozyddbfYtEl_emeBvCRaNbt96QOazkJMKEKKk_B8IyqvJ9924onmXF/s1600/pi.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvRxtr-4G36glEofqgJgE0asb6Mn4utqbRwz3nmN9HWpG1PpZ1xvQDWag23qIJafZLqHLbv6eD5rEgVZgsJPip4nozyddbfYtEl_emeBvCRaNbt96QOazkJMKEKKk_B8IyqvJ9924onmXF/s400/pi.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
同時に購入した専用ケースと一緒に早速セットアップを始めました。&lt;br /&gt;
&lt;br /&gt;
まずは必要なものを準備&lt;br /&gt;
&lt;b&gt;・電源　microUSB TypeBで、5V 700mAが出力できるもの&lt;/b&gt;&lt;br /&gt;
といっても、一般的なスマホの充電ケーブルで事足りましたので、予備のスマホ充電器を用意。&lt;br /&gt;
&lt;b&gt;・SDカード&lt;/b&gt;　&lt;br /&gt;
Raspberry Pi用のLinuxOSをインストールするのに最低2Gは必要なので、適当にその辺のSDカードを用意。&lt;br /&gt;
（SDHCは未確認）&lt;br /&gt;
&lt;b&gt;・USBキーボード・USBマウス&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;・HDMI-HDMI　もしくは　HDMI-DVIケーブル&lt;/b&gt;&lt;br /&gt;
基本Xwindowは使わないつもりなので、セットアップ用にTVとHDDレコーダーをつないでいたHDMIケーブルを拝借&lt;br /&gt;
&lt;b&gt;・LANケーブル&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
以上が必要となります。&lt;br /&gt;
&lt;br /&gt;
ハードウエアの準備ができたところで、SDカードにOSをインストール。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.raspberrypi.org/downloads&quot;&gt;公式サイトのdownload&lt;/a&gt;からOSイメージをダウンロードします。&lt;br /&gt;
4種類あるようですが、まずはオススメの「Raspbian “wheezy”」をチョイス。&lt;br /&gt;
&lt;br /&gt;
＜手順＞&lt;br /&gt;
１．ダウンロードしたファイル（tar.gz）を解凍するので、windowsならlhaplusなどで解凍しましょう。&lt;br /&gt;
２．解凍してできたimgファイルをSDカードに書き込むため、ddを使用。&lt;br /&gt;
&lt;br /&gt;
（参考）&lt;br /&gt;
&lt;a href=&quot;http://www.softpedia.com/get/CD-DVD-Tools/Data-CD-DVD-Burning/Win32-Disk-Imager.shtml&quot;&gt;公式に掲載されているWindows用のソフト　Win32DiskImager&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.si-linux.co.jp/wiki/silinux/index.php?DDforWindows&quot;&gt;DD for Windows&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
３．書き込んだSDカードをpiに差し込んで、起動します（電源スイッチはないので、コンセントに差すｗ&lt;br /&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/AVvXsEiKL6ERyt6vb2uPUfAfKFcjA-pGHYtD9my8TRimGRFqJ0qSSbazurl4uHoJKS0-znCO6ua2-ZqUCJPosazBdtTnRS0s3fVJgP1RQtwfccnsFOpK4dl1TbtyQiva0C21JGM8GFFHE6QOUNp5/s1600/raspi01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKL6ERyt6vb2uPUfAfKFcjA-pGHYtD9my8TRimGRFqJ0qSSbazurl4uHoJKS0-znCO6ua2-ZqUCJPosazBdtTnRS0s3fVJgP1RQtwfccnsFOpK4dl1TbtyQiva0C21JGM8GFFHE6QOUNp5/s400/raspi01.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
初期設定画面では、おおむね以下のように設定しました。&lt;br /&gt;
&lt;b&gt;１．expand_rootfs&lt;/b&gt;&lt;br /&gt;
用意したSDカードは先頭から2GB程度しか使われていないので、カード全体を使用できるようにします。&lt;br /&gt;
&lt;b&gt;２．overscan&lt;/b&gt;&lt;br /&gt;
画面の周囲が切れてしまう場合などに隙間を空けます。&lt;br /&gt;
&lt;b&gt;３．configure_keyboard&lt;/b&gt;&lt;br /&gt;
キーボードを選択します。日本語キーボードを使用する場合はまず、&lt;b&gt;Generic 105-key(Intl)PC&lt;/b&gt;を選択して&lt;b&gt;Japanese - Japanese(OADG 109A)&lt;/b&gt;を選択します。&lt;br /&gt;
&lt;b&gt;４．change_pass&lt;/b&gt;&lt;br /&gt;
初期登録されている「pi」ユーザーのパスワードを変更します。（デフォルトは「raspberry」のようです）&lt;br /&gt;
&lt;b&gt;５．change_locale&lt;/b&gt;&lt;br /&gt;
ロケールの設定ですが、日本語フォントがインストールされていない初期状態では文字化けするようです。なのでとりあえずスキップ&lt;br /&gt;
&lt;b&gt;６．change_timezone&lt;/b&gt;&lt;br /&gt;
日本時間に設定するので&lt;b&gt;Asia→Tokyo&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;７．memory_split&lt;/b&gt;&lt;br /&gt;
メモリの配分を変更できるようですが触っていません。&lt;br /&gt;
&lt;b&gt;８．ssh&lt;/b&gt;&lt;br /&gt;
別PCからネットワーク越しに接続できるよう設定します。ワタシはpiをサーバ的に使おうと思っておりますので必須。&lt;br /&gt;
&lt;b&gt;９．boot_behaviour&lt;/b&gt;&lt;br /&gt;
起動時にXデスクトップを表示する場合はyes。コマンド画面でいいならNoを選択します。&lt;br /&gt;
&lt;b&gt;１０．update&lt;/b&gt;&lt;br /&gt;
アップデートを取得する場合は選択します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これらの設定を行い、再起動すれば、見事起動してくれます！&lt;br /&gt;
&lt;br /&gt;
万一設定を変更したいという場合はコマンドラインで&lt;br /&gt;
sudo raspi-config&lt;br /&gt;
を打てば変更可能ですので、色々試して見ましょう。&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/3590173966928040672/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/3590173966928040672' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/3590173966928040672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/3590173966928040672'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/08/raspberry-pi.html' title='raspberry pi とりあえず基本設定'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEgvRxtr-4G36glEofqgJgE0asb6Mn4utqbRwz3nmN9HWpG1PpZ1xvQDWag23qIJafZLqHLbv6eD5rEgVZgsJPip4nozyddbfYtEl_emeBvCRaNbt96QOazkJMKEKKk_B8IyqvJ9924onmXF/s72-c/pi.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-7250501619419068760</id><published>2012-08-01T15:43:00.000+09:00</published><updated>2012-08-01T17:13:14.832+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google analytics アクセス解析"/><category scheme="http://www.blogger.com/atom/ns#" term="基礎"/><title type='text'>google analyticsをおさらいする（アカウント作成編）</title><content type='html'>webサイトを運用する上で欠かせないのがアクセス解析。&lt;br /&gt;
&lt;br /&gt;
有料･無料を問わず、様々なサービスやツールがありますが、やはりもっとも有名なのがGoogleAnalytics（以下GA）ではないでしょうか？&lt;br /&gt;
GAの標準レポートだけを見ていてもいろいろとわかるのですが、突っ込んで調べてみると、もっといろいろなことがわかるはず！ということで、メモがてら実験を行ってみようと思います。&lt;br /&gt;
&lt;br /&gt;
基本的に初心者が独学でやってますので、ツマラナイ内容になりましたらごめんなさい（笑&lt;br /&gt;
&lt;br /&gt;
何はともあれまずはGAにアクセス！&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/intl/ja/analytics/&quot;&gt;http://www.google.com/intl/ja/analytics/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
当然のことながらGoogleアカウントが必要ですので、あらかじめ作成しておいてください。&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/AVvXsEgnmrAJ0DvhcEGnZ7COxE672Drd7vr9zQrAD1qwlQrY5Ar_wkt6lkOvODnmRKb_zX4QoJw0_FNSD9iu66Fb9xKJ_nnbz7ntGedzJMdCVrpOGaxsV2-6bm4DgWdCVWwbXV9ovRu1iigx8paT/s1600/signin.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnmrAJ0DvhcEGnZ7COxE672Drd7vr9zQrAD1qwlQrY5Ar_wkt6lkOvODnmRKb_zX4QoJw0_FNSD9iu66Fb9xKJ_nnbz7ntGedzJMdCVrpOGaxsV2-6bm4DgWdCVWwbXV9ovRu1iigx8paT/s400/signin.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
「sign up」をクリックしてアカウントを作成します。&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/AVvXsEihSfY9TaV3m-pJ7Tz0ozWb7nGHiIn33XwlVi0br1acYNiDM0YCUxvZfdMeZ0iMyOKJ-tRMXMaN_7MKyws7ify0xkazK5aPDa-QzMpnVyMnW2Gv-cLmrqEdktrTOI7ukIaCVTkj8lQfQE5U/s1600/signup.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihSfY9TaV3m-pJ7Tz0ozWb7nGHiIn33XwlVi0br1acYNiDM0YCUxvZfdMeZ0iMyOKJ-tRMXMaN_7MKyws7ify0xkazK5aPDa-QzMpnVyMnW2Gv-cLmrqEdktrTOI7ukIaCVTkj8lQfQE5U/s400/signup.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
入力するのは&lt;br /&gt;
Account Name　　　 ・・・アカウント名&lt;br /&gt;
Website&#39;s URL　　　・・・設置先のURL&lt;br /&gt;
Time Zone　　　　　・・・タイムゾーン&lt;br /&gt;
Industry Category　・・・コンテンツのカテゴリ&lt;br /&gt;
&lt;br /&gt;
「Data Sharing Settings」ですが・・・よくわかりません（＾＾；&lt;br /&gt;
・With other Google　products only ・・・AdWordsやAdSenseなどのgoogleのほかのサービスと連動させる場合にチェックをいれるようです。&lt;br /&gt;
・Anonymously with Google and others　・・・webサイトの指標を向上させるためのデータ取りができる？&lt;br /&gt;
&lt;br /&gt;
まぁ、そのあたりはおいおい勉強することとして、とりあえずは両方チェックを入れた状態で「Create Account」ボタンをクリックします。&lt;br /&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/AVvXsEhtiSqZ90B5A32fYnMyLJA6BK4lKaUOWUTjxDW_C6CVcQdP4oG2N46yU_ZvhGT80wpD_NJ-bExwaL0uvTcSPWKxiwAfY0CWM8JODgVCWuA8Ws2GQlgHHzqDA1NaHh8-WFD8JfzR-4PSJRVD/s1600/home.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;131&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtiSqZ90B5A32fYnMyLJA6BK4lKaUOWUTjxDW_C6CVcQdP4oG2N46yU_ZvhGT80wpD_NJ-bExwaL0uvTcSPWKxiwAfY0CWM8JODgVCWuA8Ws2GQlgHHzqDA1NaHh8-WFD8JfzR-4PSJRVD/s400/home.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
私の場合はなぜか、英語の画面でしたので、画面左上の「Settings」から「Language」を日本語にして「Save User Settings」を押して日本語画面にしました。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/7250501619419068760/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/7250501619419068760' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7250501619419068760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7250501619419068760'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/08/google-analytics.html' title='google analyticsをおさらいする（アカウント作成編）'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEgnmrAJ0DvhcEGnZ7COxE672Drd7vr9zQrAD1qwlQrY5Ar_wkt6lkOvODnmRKb_zX4QoJw0_FNSD9iu66Fb9xKJ_nnbz7ntGedzJMdCVrpOGaxsV2-6bm4DgWdCVWwbXV9ovRu1iigx8paT/s72-c/signin.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-400685668338628441</id><published>2012-07-10T15:21:00.000+09:00</published><updated>2012-07-11T21:29:14.637+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="ガジェット"/><title type='text'>エレコムのキー投影型Bluetoothワイヤレスキーボード　TK-PBL042BKを使ってみた。</title><content type='html'>エレコムのキー投影型Bluetoothワイヤレスキーボード&lt;a target=&quot;_blank&quot; href=&quot;http://www.amazon.co.jp/gp/search?ie=UTF8&amp;camp=247&amp;creative=1211&amp;index=computers&amp;keywords=TK-PBL042BK%20&amp;linkCode=ur2&amp;tag=hiropopjp-22&quot;&gt;TK-PBL042BK &lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.jp/e/ir?t=hiropopjp-22&amp;l=ur2&amp;o=9&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&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/AVvXsEihJ8KNesIgrdwdlFekC57mBeQzBImtpPg3jXRkc-qlN53EijJvCplztoUAykjxgfjmrHpVw6Y62GRD73LsHu6H36AB60pPI72tMBzXrQkfCi8NhY-XndBLWd7RwSUC_GCKGCsbxtdtLf5R/s1600/DSC_0296.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihJ8KNesIgrdwdlFekC57mBeQzBImtpPg3jXRkc-qlN53EijJvCplztoUAykjxgfjmrHpVw6Y62GRD73LsHu6H36AB60pPI72tMBzXrQkfCi8NhY-XndBLWd7RwSUC_GCKGCsbxtdtLf5R/s400/DSC_0296.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
特徴としては&lt;br /&gt;
・サイズは3cm×3cm×8cm程度でとてもコンパクト&lt;br /&gt;
・外装はプラスチックでつや消しブラック塗装（手触りサラサラ）&lt;br /&gt;
・背面には電源スイッチと充電用のUSBコネクタ、あとはリセットスイッチ&lt;br /&gt;
&lt;br /&gt;
ipadでセットアップしてみます。&lt;br /&gt;
&lt;br /&gt;
「設定」→「一般」から「Bluetooth」を選び、Bluetoothをオンにします。&lt;br /&gt;
&lt;br /&gt;
デバイスを検索し始めるので、&lt;a target=&quot;_blank&quot; href=&quot;http://www.amazon.co.jp/gp/search?ie=UTF8&amp;camp=247&amp;creative=1211&amp;index=computers&amp;keywords=TK-PBL042BK%20&amp;linkCode=ur2&amp;tag=hiropopjp-22&quot;&gt;TK-PBL042BK &lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.jp/e/ir?t=hiropopjp-22&amp;l=ur2&amp;o=9&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;の電源を投入。&lt;br /&gt;
&lt;br /&gt;
画面に幅25cm程度のキーボードが表示されます（感動！）&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/AVvXsEiH7Q1Df7eQbMtkh0maGhwC-_7kx6XMMjJEu7aZxIbPV95qmTU0eM7O7yVaZdglVROAp4270Zqug3z0SKQCr0SVYbWuDtef3uvWj4X0OZ59DE3VcFn74096zBUPKflvesGZFbLJKOZIe3yg/s1600/DSC_0297.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH7Q1Df7eQbMtkh0maGhwC-_7kx6XMMjJEu7aZxIbPV95qmTU0eM7O7yVaZdglVROAp4270Zqug3z0SKQCr0SVYbWuDtef3uvWj4X0OZ59DE3VcFn74096zBUPKflvesGZFbLJKOZIe3yg/s400/DSC_0297.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
しばらく待つとipadの画面に機器名が表示されるので、タップ&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/AVvXsEib5mQoRyjW2xdRnm_y6WXdy90au8ucWVe9r3zi_kqJSAXlHo__50hRNtAJfB4rqU1QNGp8lHaLUcdheqr01H6DkYhuw5X2qFHy4DLwokqX0O1Ua_Y3Dazo8rk060nIbKsfS_vxJR1V7JLm/s1600/%25E5%2586%2599%25E7%259C%259F.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; width=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib5mQoRyjW2xdRnm_y6WXdy90au8ucWVe9r3zi_kqJSAXlHo__50hRNtAJfB4rqU1QNGp8lHaLUcdheqr01H6DkYhuw5X2qFHy4DLwokqX0O1Ua_Y3Dazo8rk060nIbKsfS_vxJR1V7JLm/s400/%25E5%2586%2599%25E7%259C%259F.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ダイアログに出てきた4ケタのPINコードをキーボードで入力すればセットアップ完了。&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;
・音が気になったら[FN]＋[↓]で無音にまで設定可能&lt;br /&gt;
・省電力モードにするには[FN]＋[BACK]でライトの表示を消すこともできます。&lt;br /&gt;
・元に戻すときは、キーボードのある位置で3本指でタッチすれば、表示されます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iphoneなど画面の小さな機器や、普段キーボードをつけないサーバなど、ひとつあれば便利なこと間違いなし！&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/AVvXsEhjzHyneJqHQsmsfJJGUVkEOLZrID_jllUTpKKQEeul019kPYclx3qmJJS8m_uIIUbfRxc8jA_IOskeZQJ4xW-PCcaGTNZGHN3pSWZQexqMjetSFTz61UfrYtUe8iGoOH297xQMsF7hS_XE/s1600/DSC_0298.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjzHyneJqHQsmsfJJGUVkEOLZrID_jllUTpKKQEeul019kPYclx3qmJJS8m_uIIUbfRxc8jA_IOskeZQJ4xW-PCcaGTNZGHN3pSWZQexqMjetSFTz61UfrYtUe8iGoOH297xQMsF7hS_XE/s400/DSC_0298.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
是非お試しあれ！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=hiropopjp-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B007K4FLTO&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/400685668338628441/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/400685668338628441' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/400685668338628441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/400685668338628441'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/07/bluetoothtk-pbl042bk.html' title='エレコムのキー投影型Bluetoothワイヤレスキーボード　TK-PBL042BKを使ってみた。'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEihJ8KNesIgrdwdlFekC57mBeQzBImtpPg3jXRkc-qlN53EijJvCplztoUAykjxgfjmrHpVw6Y62GRD73LsHu6H36AB60pPI72tMBzXrQkfCi8NhY-XndBLWd7RwSUC_GCKGCsbxtdtLf5R/s72-c/DSC_0296.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-1406401513598262638</id><published>2012-07-05T15:18:00.000+09:00</published><updated>2012-07-06T13:31:47.956+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="インストール"/><title type='text'>Mac OSX 10.7 lion serverにmysql</title><content type='html'>phpとくればmysqlでしょ、と思ったらMac OSX 10.7 Lionからpostgresに変わったようで、使うにはインストールが必要らしい。&lt;br /&gt;
ということでmysqlをインストールしてみる。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;mysqlインストール&lt;/h2&gt;まずは&lt;a href=&quot;http://www-jp.mysql.com/downloads/&quot;&gt;MySQLのサイト&lt;/a&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/AVvXsEjOxdn_8ttIzlwwc9HcUGRi3_iTj5nY4WCAwDnXOVTQbBHRGMyNNXHpX3y8S3pwzjUfrp2ik6OE_3iMXG2gY0kQYN0mJRd1a-V9NnaKwSrPz1baHK6_Lmt9qq4aey1OfXMeRYy3UOV_dSCe/s1600/mysqlcom.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;375&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOxdn_8ttIzlwwc9HcUGRi3_iTj5nY4WCAwDnXOVTQbBHRGMyNNXHpX3y8S3pwzjUfrp2ik6OE_3iMXG2gY0kQYN0mJRd1a-V9NnaKwSrPz1baHK6_Lmt9qq4aey1OfXMeRYy3UOV_dSCe/s400/mysqlcom.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
「MySQL Community Server」からMac用のアーカイブをダウンロードします。&lt;br /&gt;
今回はDMG-Archiveをダウンロードしました。&lt;br /&gt;
&lt;br /&gt;
Lion用のMySQLは無いようですので、10.6用を使ってみます。&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/AVvXsEgCrwBfmojT3AKGb8-WknzYi48jftJ8z8GQq8JaqkOokxsPx5DwZOXsH_x4X9xazv4UeXzVA0PZ1ToYT07qevMQu541Us8_GIejpF6oGzW6B_bVsQMJt4zqOQJcFg-lO2Em-adUc0wDxBUK/s1600/package.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCrwBfmojT3AKGb8-WknzYi48jftJ8z8GQq8JaqkOokxsPx5DwZOXsH_x4X9xazv4UeXzVA0PZ1ToYT07qevMQu541Us8_GIejpF6oGzW6B_bVsQMJt4zqOQJcFg-lO2Em-adUc0wDxBUK/s400/package.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
インストールは「mysql-5-5.24-osx10.6-x86_64_pkg」をダブルクリックしてインストーラの指示通りにしていくだけで、特に入力することも無く、あっさり終了。&lt;br /&gt;
&lt;br /&gt;
あとは同パッケージ内の残りのファイル&lt;br /&gt;
自動起動させるために「MySQLStartupItem.pkg」をダブルクリックしてインストール。&lt;br /&gt;
システム環境設定にアイコンを表示させるのに「MySQL.prefPane」をダブルクリックして登録&lt;br /&gt;
&lt;br /&gt;
あとは開いたMySQLパネルで「Start MySQL Server」ボタンを押して起動完了！&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/AVvXsEiT5I5zmVDc-6hIysT6Ld8DHFc3V-BllSuVyS2PKlS0oEb1A6L20RankQ7rZgzXeAO2uGo6XIKX-aEBjsstE4xS1eIvWxcF6eib__d6BCvF6IYS2_D_u24z3iYUvN7ZVLLBC58k24a5c9Gp/s1600/mysqlpanel.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT5I5zmVDc-6hIysT6Ld8DHFc3V-BllSuVyS2PKlS0oEb1A6L20RankQ7rZgzXeAO2uGo6XIKX-aEBjsstE4xS1eIvWxcF6eib__d6BCvF6IYS2_D_u24z3iYUvN7ZVLLBC58k24a5c9Gp/s400/mysqlpanel.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
これでインストール作業は一旦終了。&lt;br /&gt;
&lt;br /&gt;
次は端末から簡単に操作ができるようにmysqlへパスを通します。&lt;br /&gt;
これで&lt;br /&gt;
/usr/local/mysql/bin/mysql -u root -p&lt;br /&gt;
という長ったらしいコマンドを&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
にしてくれます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;vi ~/.bash_profile
&lt;/pre&gt;で　ホームディレクトリの./bash_profileファイルを開き（無い場合は新規作成）&lt;br /&gt;
&lt;pre&gt;export PATH=$PATH:/usr/local/mysql/bin
&lt;/pre&gt;と書いて「:wq!」コマンドで保存・終了&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;source ~/.bash_profile
&lt;/pre&gt;でファイルを再読み込みします。&lt;br /&gt;
&lt;br /&gt;
うまく行けば、端末で&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
mma:~ hoge$ mysql -v   ←こんな風に打てば

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 147
Server version: 5.5.24 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Reading history-file /Users/hir/.mysql_history
Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.

mysql&amp;gt　　　←こんな風に表示されます。
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;my.cnfの編集(文字コードをutf8に）&lt;/h2&gt;&lt;br /&gt;
Finderで「移動」→「フォルダへ移動」で&lt;br /&gt;
/etc/local/mysql/support-files&lt;br /&gt;
へ移動し、「my-○○○.cnf」ファイルの中から自分の環境に合わせたファイルを/etcにコピーして「my.cnf」とリネームします。（ワタシはとりあえずmy-small.cnfを選択）&lt;br /&gt;
&lt;br /&gt;
my.cnfをエディタで開き&lt;br /&gt;
[mysqld]の最下行に&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;skip-character-set-client-handshake
character-set-server=utf8
&lt;/pre&gt;の2行を追加&lt;br /&gt;
&lt;br /&gt;
[mysqldump]と[mysql]に&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;default-character-set=utf8
&lt;/pre&gt;&lt;br /&gt;
をそれぞれ追加します。&lt;br /&gt;
&lt;br /&gt;
念のため「システム環境設定」→「mysql」でサーバを再起動します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;rootパスワードの設定とログインテスト&lt;/h2&gt;ターミナルで&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;mma:~ hoge$mysqladmin -u root password パスワード
&lt;/pre&gt;でパスワードを設定し&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;mma:~ hoge$mysql -u root -p
&lt;/pre&gt;で先ほど設定したパスワードでログインできるか確認します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;PHPから接続できるようにphp.iniを設定&lt;/h2&gt;&lt;br /&gt;
MacOSX10.5あたりから、UNIXsocketの場所が変わっているようなのでphp.iniファイルを書き換えます。&lt;br /&gt;
&lt;br /&gt;
まずはUNIXsocketの場所を確認&lt;br /&gt;
&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
でログイン、プロンプトで&lt;br /&gt;
「status」と入力します。&lt;br /&gt;
&lt;br /&gt;
ズラズラっと表示された情報の中から&lt;strong&gt;UNIX socket:&lt;/strong&gt;を探して内容を覚えておきます。&lt;br /&gt;
&lt;br /&gt;
次に/etc内のphp.iniファイルを編集します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://php.net/pdo_mysql.default-socket
pdo_mysql.default_socket=/var/mysql/mysql.sock

を

pdo_mysql.default_socket=/tmp/mysql.sock

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://php.net/mysql.default-socket
mysql.default_socket = /var/mysql/mysql.sock

を

mysql.default_socket = /tmp/mysql.sock


; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://php.net/mysqli.default-socket
mysqli.default_socket = /var/mysql/mysql.sock

を

mysqli.default_socket = /tmp/mysql.sock
&lt;/pre&gt;&lt;br /&gt;
に変更します。&lt;br /&gt;
&lt;br /&gt;
これでいけるはず。&lt;br /&gt;
最後にWEBサーバ（Apache）を再起動して動作確認。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=hiropopjp-22&amp;o=9&amp;p=13&amp;l=bn1&amp;mode=books-jp&amp;browse=466298&amp;fc1=000000&amp;lt1=_blank&amp;lc1=3366FF&amp;bg1=FFFFFF&amp;f=ifr&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; width=&quot;468&quot; height=&quot;60&quot; border=&quot;0&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/1406401513598262638/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/1406401513598262638' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/1406401513598262638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/1406401513598262638'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/07/mac-os-x-107mysql.html' title='Mac OSX 10.7 lion serverにmysql'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEjOxdn_8ttIzlwwc9HcUGRi3_iTj5nY4WCAwDnXOVTQbBHRGMyNNXHpX3y8S3pwzjUfrp2ik6OE_3iMXG2gY0kQYN0mJRd1a-V9NnaKwSrPz1baHK6_Lmt9qq4aey1OfXMeRYy3UOV_dSCe/s72-c/mysqlcom.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-6164005246990745381</id><published>2012-07-03T18:51:00.002+09:00</published><updated>2012-07-10T14:09:04.367+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><title type='text'>Mac OSX 10.7　lion serverでサーバ</title><content type='html'>macでサーバを立ててみようと思い立ってlion serverプレインストールのmac miniを購入。&lt;br /&gt;
とりあえずサーバ用途なので、sshとwebを有効にしてみた。&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;ssh有効化&lt;/h2&gt;1.Serverパネルから、ハードウェア→mma（ワタシのmacの名前）を選択&lt;br /&gt;
2.設定タブから「SSHによるリモートログインを許可」にチェック&lt;br /&gt;
&lt;br /&gt;
3.クライアント（windowsのteraterm）からログイン&lt;br /&gt;
ユーザー名：macのsshユーザーのログイン名&lt;br /&gt;
パスワード：なし&lt;br /&gt;
「チャレンジレスポンス認証を使う」にチェック&lt;br /&gt;
&lt;br /&gt;
4.sshは有効になった。&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;webの有効化&lt;/h2&gt;1.Serverパネルから、サービス→Webを選択&lt;br /&gt;
2.とりあえずデフォルト&lt;br /&gt;
ドメイン名：*&lt;br /&gt;
IPアドレス：任意&lt;br /&gt;
ポート：80&lt;br /&gt;
SSL証明書：なし&lt;br /&gt;
サイトファイルの保存場所：Default&lt;br /&gt;
アクセス可能なユーザ：全員&lt;br /&gt;
追加ドメイン：（未設定）&lt;br /&gt;
リダイレクト：（未設定）&lt;br /&gt;
エイリアス：（未設定）&lt;br /&gt;
ってな感じでとりあえず動作確認&lt;br /&gt;
&lt;br /&gt;
3.Safariのアドレスバーにhttp://localhost　で「ようこそLionServerへ」の画面が出れば成功&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;とりあえずポートスキャンして開いているポートの確認&lt;/h2&gt;1024番以下のポートはこんな風になっていました。&lt;br /&gt;
&lt;br /&gt;
22：ssh　Responseに「OpenSSH_5.6」の文字が・・・&lt;br /&gt;
80：http&lt;br /&gt;
88：Kerberos&lt;br /&gt;
81：なんだろう&lt;br /&gt;
311：asip-webadmin　保護されたサーバ管理のポート&lt;br /&gt;
443：SSL（HTTPS)&lt;br /&gt;
625：dec_dlm　DirectoryService、Open Directory アシスタント、ワークグループマネージャ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
とりあえずポートスキャンが終わるのにまだ時間がかかりそうなので、続きは次回&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://www.amazon.co.jp/gp/search?ie=UTF8&amp;camp=247&amp;creative=1211&amp;index=books&amp;keywords=mac%20lion%20server&amp;linkCode=ur2&amp;tag=hiropopjp-22&quot;&gt;lionサーバ構築におすすめの本（Amazon）&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.jp/e/ir?t=hiropopjp-22&amp;l=ur2&amp;o=9&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/6164005246990745381/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/6164005246990745381' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/6164005246990745381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/6164005246990745381'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/07/lion-server.html' title='Mac OSX 10.7　lion serverでサーバ'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-4665229083512156718</id><published>2012-06-30T22:23:00.000+09:00</published><updated>2012-07-07T02:01:43.108+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="アプリ"/><title type='text'>macを買ってまず入れたフリーソフト</title><content type='html'>「mac 設定」でググったサイトから厳選し、入れたソフト達&lt;br /&gt;
基本的に有料ソフトは使わない方向で、やれるだけやってみようと思います。&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;1.Onyx&lt;/h2&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/AVvXsEhwMWQM_Y5b3qUlOCTyqTkCdBa5eG2-2S2yWcttgtOBpBF89Lr22eYCUpc0wWATVMIOwbGQubxGhWDQemBIwzhMSbDv4L_pf-BU0bh4RonCZvf_PocKkNaCwrffYZm_R1DEUbQd6dQk6F9w/s1600/onyx.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwMWQM_Y5b3qUlOCTyqTkCdBa5eG2-2S2yWcttgtOBpBF89Lr22eYCUpc0wWATVMIOwbGQubxGhWDQemBIwzhMSbDv4L_pf-BU0bh4RonCZvf_PocKkNaCwrffYZm_R1DEUbQd6dQk6F9w/s400/onyx.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
システムの細かな設定ができます。&lt;br /&gt;
沢山あるけど、便利そうだなーと思ったのが以下&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;S.M.A.R.T.チェック&lt;br /&gt;
&lt;li&gt;起動ボリュームのチェック&lt;br /&gt;
&lt;li&gt;アクセス権の修復&lt;br /&gt;
&lt;li&gt;cronスクリプトの実行&lt;br /&gt;
&lt;li&gt;キャッシュやログの消去&lt;br /&gt;
&lt;li&gt;コマンドマニュアル(man)の参照&lt;br /&gt;
&lt;li&gt;自動処理&lt;br /&gt;
&lt;li&gt;FinderやDock、Safariその他デフォルトインストールされているアプリの設定&lt;br /&gt;
&lt;br /&gt;
等々&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;2.GoogleChrome&lt;/h2&gt;&lt;br /&gt;
言わずもがなですが、ブラウザの互換性の確認には必要ですよね。&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;3.FireFox&lt;/H2&gt;同じ&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;4.Sophos Anti-Virus&lt;/h2&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/AVvXsEisT6dao9NrgHblpOftIWKFGRa3ERyaa8_RDGKKwRZg734j0YqgSdfPSIWom7PAjEU7CepjYi6rQUJ2OT0pBZvGbprkhC33HEsEpqgwheL5YEOf2PtZpf4xteAnk66edS6MXUoMt5AoElLX/s1600/sophps.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisT6dao9NrgHblpOftIWKFGRa3ERyaa8_RDGKKwRZg734j0YqgSdfPSIWom7PAjEU7CepjYi6rQUJ2OT0pBZvGbprkhC33HEsEpqgwheL5YEOf2PtZpf4xteAnk66edS6MXUoMt5AoElLX/s400/sophps.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
無料のアンチウィルスソフトウェア&lt;br /&gt;
「Windowsに比べてシェアが少ない」とか「システムがUNIXベースなので作りにくい」などの理由から、Macを狙ったウイルスが圧倒的に少ないようですが、最近では徐々に増えてきているようです。&lt;br /&gt;
特に有名なのがJavaの脆弱性を利用したMac OS X向けのトロイの木馬「Flashback」&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;5.mi&lt;/h2&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/AVvXsEgnu9VgZdVYcYhpJ-xi75mPwg0ybDSgoTdW7BLC9o61Inq8i5RDMAbrK50prpz9j7IihFclnL-dkQgFc_p5abp5F_7Zq-ERIP_fQrsrPrtMEZBXt2v3I5XU33OE4wXDmpGmD3n454QGZRZe/s1600/mi.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnu9VgZdVYcYhpJ-xi75mPwg0ybDSgoTdW7BLC9o61Inq8i5RDMAbrK50prpz9j7IihFclnL-dkQgFc_p5abp5F_7Zq-ERIP_fQrsrPrtMEZBXt2v3I5XU33OE4wXDmpGmD3n454QGZRZe/s400/mi.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
テキストエディタ&lt;br /&gt;
mac標準のテキストエディタも悪くないのですが、手になじむエディタがなかなか見つかりません。&lt;br /&gt;
&lt;br /&gt;
いいものがあったら教えてください（笑）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;6.AppCleaner&lt;/h2&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/AVvXsEgUKrKd0YoupCZebCVQn_jBmMEv5wyb_Yb_axOX71m53u6YDNr3jgo8VxKXJj7lHKYpZPecEQIhng2a7LsCcMQ_t40to1ZAALh_X7FffcsKEf8r4ZselwGPhw7WSOOYcPymzIWtPiDkDozF/s1600/appclean.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;299&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUKrKd0YoupCZebCVQn_jBmMEv5wyb_Yb_axOX71m53u6YDNr3jgo8VxKXJj7lHKYpZPecEQIhng2a7LsCcMQ_t40to1ZAALh_X7FffcsKEf8r4ZselwGPhw7WSOOYcPymzIWtPiDkDozF/s400/appclean.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
ソフト削除時にゴミ箱にドラッグするだけでは消えない関連ファイルも消してくれる（らしい）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=hiropopjp-22&amp;o=9&amp;p=15&amp;l=bn1&amp;mode=books-jp&amp;browse=466298&amp;fc1=000000&amp;lt1=_blank&amp;lc1=3366FF&amp;bg1=FFFFFF&amp;f=ifr&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; width=&quot;468&quot; height=&quot;240&quot; border=&quot;0&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/4665229083512156718/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/4665229083512156718' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/4665229083512156718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/4665229083512156718'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/mac.html' title='macを買ってまず入れたフリーソフト'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEhwMWQM_Y5b3qUlOCTyqTkCdBa5eG2-2S2yWcttgtOBpBF89Lr22eYCUpc0wWATVMIOwbGQubxGhWDQemBIwzhMSbDv4L_pf-BU0bh4RonCZvf_PocKkNaCwrffYZm_R1DEUbQd6dQk6F9w/s72-c/onyx.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-5373143524639230418</id><published>2012-06-29T12:27:00.000+09:00</published><updated>2012-06-29T12:27:11.110+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>Kindle Fireはまだですか</title><content type='html'>米アマゾンで売れに売れているタブレット端末「Kindle Fire」&lt;br /&gt;
199ドルという価格とアマゾンのクラウドサービスとの連携が人気なのだそう。&lt;br /&gt;
&lt;br /&gt;
有料（年額79ドル）の「Amazon Prime」の会員であれば、Kindle Fire上で1万本以上の映画やテレビ番組が見放題なんだそうです。&lt;br /&gt;
&lt;br /&gt;
そんな中、Amazon.co.jpがこんなバナー&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/AVvXsEj-PTSXcJu1YWdlKEVVWrTaMRkLkBm9dkiAoNxYS-exb3S8yjGbzq6uZ3zeM8NJLT0tVmyU67KE9W1rq1bcVaV1QTYj6yJKxDzGKm0CtRORJgujEseMHCtSkHxYMk2i4-T_e7R414v1yJy3/s1600/kindle.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-PTSXcJu1YWdlKEVVWrTaMRkLkBm9dkiAoNxYS-exb3S8yjGbzq6uZ3zeM8NJLT0tVmyU67KE9W1rq1bcVaV1QTYj6yJKxDzGKm0CtRORJgujEseMHCtSkHxYMk2i4-T_e7R414v1yJy3/s400/kindle.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
はたしてコレは「Kindle Fire」なのか、次世代マシンなのか。&lt;br /&gt;
価格は？クラウドサービスは？&lt;br /&gt;
と謎だらけですが、とりあえずお知らせメールを受信できるよう登録しておきます。&lt;br /&gt;
&lt;br /&gt;
Googleのタブレットや、モチロンiPadなど競争は激化中ですが、興味のある方は是非登録してみては？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
情報もっている方は是非教えてください（＾＾</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/5373143524639230418/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/5373143524639230418' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/5373143524639230418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/5373143524639230418'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/kindle-fire.html' title='Kindle Fireはまだですか'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEj-PTSXcJu1YWdlKEVVWrTaMRkLkBm9dkiAoNxYS-exb3S8yjGbzq6uZ3zeM8NJLT0tVmyU67KE9W1rq1bcVaV1QTYj6yJKxDzGKm0CtRORJgujEseMHCtSkHxYMk2i4-T_e7R414v1yJy3/s72-c/kindle.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-6483126161663604431</id><published>2012-06-25T11:38:00.001+09:00</published><updated>2012-06-26T22:27:42.790+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="雛形"/><title type='text'>html5の雛形（改版）</title><content type='html'>html5を意識したhtmlファイルを書くときに便利になるかと思います。&lt;br /&gt;
よろしければコピペしてお使いください＾＾&lt;br /&gt;
&lt;br /&gt;
次はリセットcssかな&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
&amp;lt!doctype html&amp;gt
&amp;lthtml&amp;gt
&amp;lthead&amp;gt
 &amp;ltmeta charset=&quot;utf-8&quot; /&amp;gt
 &amp;lttitle&amp;gtHTML 5&amp;lt/title&amp;gt
 &amp;lt!--[if IE]&amp;gt
  &amp;ltscript src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&amp;gt&amp;lt/script&amp;gt
 &amp;lt![endif]--&amp;gt

 &amp;ltstyle&amp;gt
   article, aside, dialog, figure, footer, header,
   hgroup, menu, nav, section { display: block; }
 &amp;lt/style&amp;gt
&amp;lt/head&amp;gt
&amp;ltbody&amp;gt
&amp;lt!--ヘッダ--&amp;gt
&amp;ltheader&amp;gt
 &amp;lta href=&quot;#&quot;&amp;gthtml5ヘッダ&amp;lt/a&amp;gt
&amp;lt/header&amp;gt
&amp;lt!--ナビ--&amp;gt
&amp;ltnav&amp;gt
 &amp;ltul&amp;gt
 &amp;ltli&amp;gt&amp;lta href=&quot;#&quot;&amp;gthtml5ヘッダ&amp;lt/a&amp;gt&amp;lt/li&amp;gt
 &amp;ltli&amp;gt&amp;lta href=&quot;#&quot;&amp;gthtml5ヘッダ&amp;lt/a&amp;gt&amp;lt/li&amp;gt
 &amp;lt/ul&amp;gt
&amp;lt/nav&amp;gt
&amp;lt!--メイン--&amp;gt
&amp;ltsection&amp;gt
 &amp;ltarticle&amp;gt
  &amp;lth1&amp;gtArticle1&amp;lt/h1&amp;gt
  &amp;ltp&amp;gthtml5Body&amp;lt/p&amp;gt
 &amp;lt/article&amp;gt

  &amp;ltarticle&amp;gt
  &amp;lth1&amp;gtArticle1&amp;lt/h1&amp;gt
  &amp;ltp&amp;gthtml5Body&amp;lt/p&amp;gt
 &amp;lt/article&amp;gt
&amp;lt/section&amp;gt
&amp;lt!--フッタ--&amp;gt
&amp;ltfooter&amp;gt
 &amp;lta href=&quot;#&quot;&amp;gthtml5フッタ&amp;lt/a&amp;gt
&amp;lt/footer&amp;gt
&amp;lt/body&amp;gt
&amp;lt/html&amp;gt
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/6483126161663604431/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/6483126161663604431' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/6483126161663604431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/6483126161663604431'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/html5.html' title='html5の雛形（改版）'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-2483055667268996420</id><published>2012-06-18T10:15:00.000+09:00</published><updated>2012-06-18T15:28:08.150+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>linuxのメモリが足りているか確認するコマンドメモ</title><content type='html'>まずはfreeコマンド&lt;br /&gt;
「Swap:」のusedをチェック&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;[root@hoge]# free
             total       used       free     shared    buffers     cached
Mem:       3089280    3074700      14580          0     974968    1044600
-/+ buffers/cache:    1055132    2034148
Swap:      2031608        108    2031500
&lt;/pre&gt;&lt;br /&gt;
上記の例だと108KBしかSwapを使っていないので、事実上問題ない。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
次はvmstat&lt;br /&gt;
si（swap in)とso（swap out）を確認。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;[root@hoge]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0    108  21896 971572 1041808    0    0   498   508    5    8  1  1 89  9  0
&lt;/pre&gt;&lt;br /&gt;
両方とも0なので何の問題もない。&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/2483055667268996420/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/2483055667268996420' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2483055667268996420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2483055667268996420'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/centos.html' title='linuxのメモリが足りているか確認するコマンドメモ'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-3612590880472252548</id><published>2012-06-05T00:37:00.000+09:00</published><updated>2012-06-05T00:37:31.092+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="基礎"/><category scheme="http://www.blogger.com/atom/ns#" term="開発"/><title type='text'>三項演算子ってなんかプロっぽい</title><content type='html'>三項演算子はif～else文をとてもシンプルに、そしてプロっぽく書ける技！&lt;br /&gt;
マスターするべし！&lt;br /&gt;
&lt;br /&gt;
(例）&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
&amp;ltscript&amp;gt
 var sex=&#39;&#39;;
 if (sex == &#39;男性&#39;){
  price=5000;
 } else {
  price=3000;
 }
&amp;lt/script&amp;gt
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
これがこう書ける&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
&amp;ltscript&amp;gt
 var sex=&#39;&#39;;
 price = (sex == &#39;男性&#39;) ? 5000 : 3000;
&amp;lt/script&amp;gt
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/3612590880472252548/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/3612590880472252548' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/3612590880472252548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/3612590880472252548'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/blog-post.html' title='三項演算子ってなんかプロっぽい'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-1479215186296319331</id><published>2012-06-04T23:43:00.003+09:00</published><updated>2012-06-04T23:43:47.040+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="基礎"/><title type='text'>javascriptの基本例文メモ(3)</title><content type='html'>・Blowser Object Model（BOM）&lt;br /&gt;
・Document Object Model（DOM）&lt;br /&gt;
・イベント処理&lt;br /&gt;
・タイマー処理&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
&amp;lt!DOCTYPE html&amp;gt
&amp;lthtml lang=&quot;ja&quot;&amp;gt
&amp;lthead&amp;gt
 &amp;ltmeta charset=&quot;UTF-8&quot;&amp;gt
 &amp;lttitle&amp;gtJavaScript&amp;lt/title&amp;gt
&amp;lt/head&amp;gt
&amp;ltbody&amp;gt
 &amp;lth1&amp;gtJavascriptの勉強&amp;lt/h1&amp;gt
 &amp;ltp&amp;gt僕の名前は&amp;ltspan id=&quot;myName&quot;&amp;gt@wknin&amp;lt/span&amp;gtです！&amp;lt/p&amp;gt
 &amp;ltp&amp;gt価格：&amp;ltinput type=&quot;text&quot; id=&quot;price&quot;&amp;gt円&amp;lt/p&amp;gt
 &amp;ltp&amp;gt&amp;ltinput type=&quot;button&quot; value=&quot;クリック&quot; id=&quot;myButton&quot;&amp;gt&amp;lt/p&amp;gt
 &amp;ltscript&amp;gt
  //Browser Object Model (BOM)
  
  console.log(window.innerHeight); //ブラウザの高さ
  
  //window.location.href =&quot;http://google.com&quot;; //ページジャンプ
  
  //Document Object Model(DOM)
  
  console.log(document.width);
  document.body.bgColor=&#39;red&#39;;
  
  var e = document.getElementById(&#39;myName&#39;);
  e.innerHTML=&quot;わくにん&quot;;
  
  var n = document.getElementById(&#39;price&#39;);
  n.value=500;
  
  //event
  var t = document.getElementById(&#39;myButton&#39;);
  t.onclick = function(){
   alert(&quot;クリックされました&quot;);
  }
  
  //タイマー処理
  //setTimeout：一定時間後に何かする
  
  setTimeout(function(){
   console.log(&quot;2秒経ちました&quot;);
  },2000);
  
  
  //setInterval：一定周期ごとに何かする
  //とまらないので注意
  
  var i=0;
  setInterval(function(){
   console.log(i);
   i++;
  },1000);
 &amp;lt/script&amp;gt
&amp;lt/body&amp;gt

&amp;lt/html&amp;gt
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/1479215186296319331/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/1479215186296319331' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/1479215186296319331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/1479215186296319331'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/javascript3.html' title='javascriptの基本例文メモ(3)'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-7813055855020589684</id><published>2012-06-04T23:41:00.001+09:00</published><updated>2012-06-04T23:42:05.658+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="基礎"/><title type='text'>javascriptの基本例文メモ(2)</title><content type='html'>・配列&lt;br /&gt;
・連想配列&lt;br /&gt;
・オブジェクト（文字列・日付・数学）&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
&amp;lt!DOCTYPE html&amp;gt
&amp;lthtml lang=&quot;ja&quot;&amp;gt
&amp;lthead&amp;gt
 &amp;ltmeta charset=&quot;UTF-8&quot;&amp;gt
 &amp;lttitle&amp;gtJavaScript&amp;lt/title&amp;gt
&amp;lt/head&amp;gt
&amp;ltbody&amp;gt
&amp;lth1&amp;gtJavascriptの勉強&amp;lt/h1&amp;gt
 &amp;ltscript&amp;gt
  //配列
  
  var sales0=100;
  var sares1=200;
  var sares2=150;
  
  var sares=[100,200,150];
  
  console.log(sares[2]+sares[1]);
  
  
  //連想配列
  
  var sares={&#39;year2000&#39;:100, &#39;year2001&#39;:200, &#39;year2002&#39;:150};
  console.log(sares[&#39;year2002&#39;]);
  
  
  //Javascriptオブジェクト
  //日付・数値・文字列
  
  var s = new String(&quot;this is a pen.&quot;); //new String()は省略可能
  
  console.log(s.length);  //プロパティ（属性）
  console.log(s.substr(2,2));　//3文字目から2文字
  console.log(s.replace(&quot;pen&quot;,&quot;pencil&quot;)); //置換
  
  //array
  
  //var a = new Array(12,33,44,55);
  var a = [12,33,44,55];
  
  console.log(a.join(&quot;|&quot;));
  console.log(a.reverse());

  //Dateオブジェクト
  
  //var d = new Date(2012,5,22,7,44,5); //月：0～11
  
  var d = new Date();
  console.log(d.getMonth()); //メソッド(処理) ()がついてるかどうか
  console.log(d.getTime()); //ミリ秒　（計算に使うケースが多い）
  
  //Mathオブジェクト
  //プロパティ
  console.log(Math.PI);    //円周率
  console.log(Math.SQRT2); //2の平方根
  //メソッド
   var x=5.238;
  console.log(Math.floor(x)); //切捨て
  console.log(Math.ceil(x)); //切り上げ
  console.log(Math.round(x)); //四捨五入
  console.log(Math.random()); //ランダム
  
  
 &amp;lt/script&amp;gt
&amp;lt/body&amp;gt

&amp;lt/html&amp;gt
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/7813055855020589684/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/7813055855020589684' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7813055855020589684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7813055855020589684'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/javascript2.html' title='javascriptの基本例文メモ(2)'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-3458305469249073518</id><published>2012-06-04T23:38:00.000+09:00</published><updated>2012-06-04T23:39:38.033+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="基礎"/><title type='text'>javascriptの基本例文メモ(1)</title><content type='html'>・変数&lt;br /&gt;
・演算子&lt;br /&gt;
・条件分岐(if/switch)&lt;br /&gt;
・ループ （while/for)&lt;br /&gt;
・関数&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&#39;prettyprint&#39;&gt;&lt;code&gt;
&amp;lt!DOCTYPE html&amp;gt
&amp;lthtml lang=&quot;ja&quot;&amp;gt
&amp;lthead&amp;gt
 &amp;ltmeta charset=&quot;UTF-8&quot;&amp;gt
 &amp;lttitle&amp;gtJavaScript&amp;lt/title&amp;gt
&amp;lt/head&amp;gt
&amp;ltbody&amp;gt
&amp;lth1&amp;gtJavascriptの勉強&amp;lt/h1&amp;gt
 &amp;ltscript&amp;gt
  // 変数:データにつけるラベル
  // データ型
  var message = &quot;Hello World, Again!&quot;; //文字列
  var d1 = -5.5;
  var d2 = true; //boolean
  var d3 = undefined; //定義されていない
  var d4 = null; // なにもない
  //alert(message);
   //代入演算子
  var x = 5;
  //文字列に関する演算子
  var s=&quot;hello&quot; + &quot;world&quot;;
  
  // 数値に関する演算子
  var x = 5%5; //余り
  x += 5; //x = x + 1
  x++; // x = x + 1
  x--; // x = x - 1
  
  //条件分岐　(if)
  var score = 80;
  
  // == 同じ　!=否定
  if (score &amp;gt= 70){
   alert(&quot;合格！&quot;);
  } else if( score &amp;gt= 30){
   alert(&quot;不合格！&quot;);
  } else {
   alert(&quot;最悪！&quot;);
  }
  
  //条件分（switch）
  var direction=&quot;right&quot;;
  switch(direction){
   case &quot;right&quot;:
    x = x + 10;
    break;
   case &quot;left&quot;:
    x = x - 10;
    break;
   case &quot;up&quot;:
    y = y - 10;
    break;
   case &quot;down&quot;:
    y += 10;
    break;
   default:
   //例外処理
    break;
  }
  
  //ループ(while)
  
  var i = 0;
  while(i &amp;lt 10){
   console.log(i);
   i++;
  }
  
  //ループ (for)
  
  for(var j = 0; j &amp;lt 10; j++){
   console.log(j)
  }
  
  //関数(aとbは引数
  function sum(a,b){
   return ( a + b );
  }
  
  var result = sum(50,33);
  
  alert(result);
  
  function getPrice(x){
   var rate=0.82; //rateは関数内だけで有効
   return (x * rate);
  }
  
  console.log(getPrice(83));
 &amp;lt/script&amp;gt
&amp;lt/body&amp;gt

&amp;lt/html&amp;gt
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/3458305469249073518/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/3458305469249073518' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/3458305469249073518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/3458305469249073518'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/06/javascript1.html' title='javascriptの基本例文メモ(1)'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-5840535161889358447</id><published>2012-05-29T22:18:00.001+09:00</published><updated>2012-05-29T22:20:04.183+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery mobile"/><category scheme="http://www.blogger.com/atom/ns#" term="雛形"/><title type='text'>jQuery Mobileでページを書くときの雛形</title><content type='html'>雛形シリーズ第三弾「jQuery Mobile」&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt; 
&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;title&amp;gt;PageTitle&amp;lt;/title&amp;gt; 
&amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, initial-scale=1&amp;quot;&amp;gt; 
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css&amp;quot; /&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://code.jquery.com/jquery-1.7.1.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt; 
&amp;lt;body&amp;gt; 

&amp;lt;div data-role=&amp;quot;page&amp;quot;&amp;gt;

&amp;lt;div data-role=&amp;quot;header&amp;quot;&amp;gt;
&amp;lt;h1&amp;gt;Title&amp;lt;/h1&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;div data-role=&amp;quot;content&amp;quot;&amp;gt; 
&amp;lt;p&amp;gt;Hello world&amp;lt;/p&amp;gt;  
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/5840535161889358447/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/5840535161889358447' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/5840535161889358447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/5840535161889358447'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/jquery-mobile.html' title='jQuery Mobileでページを書くときの雛形'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-8530747275773394498</id><published>2012-05-29T15:47:00.000+09:00</published><updated>2012-05-29T21:52:28.277+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="雛形"/><title type='text'>html5で書くときの雛形</title><content type='html'>&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta charset=&quot;utf-8&quot; /&amp;gt;
&amp;lt;title&amp;gt;HTML 5 complete&amp;lt;/title&amp;gt;
&amp;lt;!--[if IE]&amp;gt;
&amp;lt;script src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;style&amp;gt;
  article, aside, dialog, figure, footer, header,
  hgroup, menu, nav, section { display: block; }
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;p&amp;gt;Bodyだぜー&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/8530747275773394498/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/8530747275773394498' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/8530747275773394498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/8530747275773394498'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/html5.html' title='html5で書くときの雛形'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-2704197561022396997</id><published>2012-05-29T15:45:00.002+09:00</published><updated>2012-05-29T21:52:28.270+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="雛形"/><category scheme="http://www.blogger.com/atom/ns#" term="ｊQuery"/><title type='text'>JQueryを使ったページを書くときの雛形</title><content type='html'>よく使うのでメモ&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;
&amp;lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;script&amp;gt;
$(document).ready(function() {
 $(&#39;#test a&#39;).click(function(){
  $(this).text(&#39;hello&#39;);
 });
});
&amp;lt;/script&amp;gt;
&amp;lt;div id=&quot;test&quot;&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;クリックして！&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/2704197561022396997/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/2704197561022396997' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2704197561022396997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2704197561022396997'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/jquery.html' title='JQueryを使ったページを書くときの雛形'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-7018370344869900765</id><published>2012-05-28T18:05:00.001+09:00</published><updated>2012-05-28T18:05:33.956+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><title type='text'>iPhoneの初期化</title><content type='html'>パスワードを忘れてどうしようもなくなったiPhoneの初期化手順をメモ&lt;br /&gt;
&lt;br /&gt;
①　電源を切る&lt;br /&gt;
②　□ボタンを押しながら、USBケーブルでiTunesのインストールされているPCにつなぐ&lt;br /&gt;
&lt;br /&gt;
以上、記事というにはおこがましいですね・・・</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/7018370344869900765/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/7018370344869900765' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7018370344869900765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7018370344869900765'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/iphone.html' title='iPhoneの初期化'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-4015914173340846148</id><published>2012-05-27T12:16:00.001+09:00</published><updated>2012-06-06T05:07:01.232+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="root"/><category scheme="http://www.blogger.com/atom/ns#" term="SO-01B"/><category scheme="http://www.blogger.com/atom/ns#" term="xperia"/><category scheme="http://www.blogger.com/atom/ns#" term="カスタムROM"/><title type='text'>Xperia　SO01BにThGo2 V16.0</title><content type='html'>まずは必要なものの準備から&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://androxyde.github.com/Flashtool/&quot;&gt;Flashtool&lt;/a&gt;&lt;br /&gt;
まずはこれがないと始まりません。&lt;br /&gt;
Installationタブからwindows版をダウンロードします。&lt;br /&gt;
&lt;br /&gt;
Flashtoolの主な機能（HPを軽く訳しました）&lt;br /&gt;
1.　OSイメージを書き込む&lt;br /&gt;
2.　rootの取得&lt;br /&gt;
3.　ｘRecovery（イメージバックアップソフト）Busybox（シェル）、カスタムカーネルのインストール&lt;br /&gt;
4.　Romのクリーン&lt;br /&gt;
5.　davik cacheのクリア&lt;br /&gt;
6.　JITv2のインストール&lt;br /&gt;
7.　アプリのインストール&lt;br /&gt;
8.　クリーンアンインストール&lt;br /&gt;
9.　テキストファイルの編集&lt;br /&gt;
10.端末のRebrand&lt;br /&gt;
&lt;br /&gt;
上記リンクからFlashtoolをダウンロードしてインストール後、Flashtool.exeを起動。&lt;br /&gt;
端末は「設定」→「アプリケーション」→「開発」→「USBデバッグ」をonにしておく。&lt;br /&gt;
&lt;br /&gt;
■　ThGo2カスタムROMはベースバンドのバージョンが71でないといけないようなので、ここ(Xdeveloper)から&lt;strong&gt;Global GGL Generic 1232-9897 build 3.0.1.G.0.75&lt;/strong&gt;&lt;br /&gt;
をダウンロードして&lt;span style=&quot;color:red;&quot;&gt;解凍してできたETFファイルを&lt;/span&gt;、FlashToolをインストールしたディレクトリの&lt;strong&gt;firmwares&lt;/strong&gt;にいれておきます。&lt;br /&gt;
&lt;br /&gt;
&lt;p style=&quot;color:red&quot;&gt;6/5追記 ベースバンド75のファイルへのリンクが切れているようですので、リンク削除しました。&lt;br /&gt;
&lt;br /&gt;
コメントに書いていますが、別リンクから落としてもいけそうです（インストールまでは未検証です）&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
■　ROM書き換え後に起動しない場合があるので&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=1193001&quot;&gt;ここ&lt;/a&gt;から&lt;strong&gt;X10_2.3.3_Th_kernel-n1.1-BootManager-v2.0&lt;/strong&gt;をダウンロードしてFlashToolをインストールしたディレクトリの&lt;strong&gt;firmwares&lt;/strong&gt;にいれておきます。&lt;br /&gt;
&lt;br /&gt;
■　&lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=1193001&quot;&gt;xdeveloper&lt;/a&gt;からダウンロードしたThGo2_v16.0.zipをマウントした端末のSDカードにコピーしておきます。&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
Root取得と準備（FlashTool）&lt;br /&gt;
--------------------------&lt;br /&gt;
&lt;br /&gt;
■　Root取得&lt;br /&gt;
Advanced→Root→ForcePsneuterをクリックで自動的にRoot取得され再起動されます。&lt;br /&gt;
再起動後、端末に「superuser」というアイコンが登録されていれば、Root取得完了です。&lt;br /&gt;
&lt;br /&gt;
■　busyboxインストール&lt;br /&gt;
Advanced→Install　Busybox&lt;br /&gt;
&lt;br /&gt;
■　ｘRecovery ｖ0.3のインストール&lt;br /&gt;
ツールバーの「＋」マークをクリックするだけ&lt;br /&gt;
その後端末を再起動し、「戻る」キーをしばらくクリックし続けると、xRecoveryが起動します。&lt;br /&gt;
表示されたメニューからbackup and Restoreを選び、まずはbackup（元に戻すとき等に使います）&lt;br /&gt;
&lt;br /&gt;
----------------&lt;br /&gt;
ROM入替準備&lt;br /&gt;
----------------&lt;br /&gt;
■　キャッシュの消去&lt;br /&gt;
xRecoveryで行います。&lt;br /&gt;
・　FactoryReset（Full Wipe）&lt;br /&gt;
・　Wipe Cache Partition&lt;br /&gt;
・　Advanced Optinos&lt;br /&gt;
→　Wipe Dalvik Cache&lt;br /&gt;
→　Wipe Battery Stat&lt;br /&gt;
&lt;br /&gt;
■　ROMのインストール&lt;br /&gt;
先にコピーしておいたThGo2_v16.0.zipをxrecoveryの「Install custom zip」→「Choose custom zip from sdcard」から選択してインストール&lt;br /&gt;
&lt;br /&gt;
下部log画面に「Install from sdcard complete」と出ればインストール完了&lt;br /&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/AVvXsEhNIEz-wY_dzYA1LmzYIadB3B-3IdmsFW806O2y3qC0e6ElJ9aFuARnJVUWFJCfv-TuPY7REizqMQ7mcWWokQWFcpm8iDfBkcIpeDB00RSkFDkt9D9dWdcBe2zx2omahZETYlMR7V230Yx3/s1600/kernel.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear:right; float:right; margin-left:1em; margin-bottom:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNIEz-wY_dzYA1LmzYIadB3B-3IdmsFW806O2y3qC0e6ElJ9aFuARnJVUWFJCfv-TuPY7REizqMQ7mcWWokQWFcpm8iDfBkcIpeDB00RSkFDkt9D9dWdcBe2zx2omahZETYlMR7V230Yx3/s400/kernel.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
FlashToolsのツールバーの「雷マーク」をクリックして&lt;strong&gt;Flashmode&lt;/strong&gt;を選択&lt;br /&gt;
「Select a Firmware」でFlashToolsのFirmwaresフォルダを開き、Version部の&lt;strong&gt;X10i_3.0.1.G.0.75&lt;/strong&gt;を選択&lt;br /&gt;
「Firmware Content」で&lt;strong&gt;kernel.sin&lt;/strong&gt;を選択してOKボタンを押します。&lt;br /&gt;
端末の電源を一旦切り（電池を抜いてもOK）ハードウェアキーの「←（戻る）」ボタンを押しながら、PCに接続します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
するとFlashToolsがベースバンドを書き換えてくれます。&lt;br /&gt;
&lt;br /&gt;
あとは再起動して起動すればOK　（ワタシは起動画面の途中（四角い画像が飛び交っている画面）で固まってしまいましたので、イカのようにして回避しました。&lt;br /&gt;
&lt;br /&gt;
■　bootloader（必要な方）&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/AVvXsEgc3ouylcTseYu420Hfx9JRgmE0sAKaHCFRL4vmGcbNJxAFDKgafJVfoo3Cba5LVjf0MlGpNyq1oIUsTKdrJTx0tItOq7KOwwh7wPwHn2wY9kIrPjLsdnfdSGIT9tpxMBqrZwH3Nfp0vXff/s1600/loader.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear:right; float:right; margin-left:1em; margin-bottom:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc3ouylcTseYu420Hfx9JRgmE0sAKaHCFRL4vmGcbNJxAFDKgafJVfoo3Cba5LVjf0MlGpNyq1oIUsTKdrJTx0tItOq7KOwwh7wPwHn2wY9kIrPjLsdnfdSGIT9tpxMBqrZwH3Nfp0vXff/s400/loader.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
FlashToolsのツールバーの「雷マーク」をクリックして&lt;strong&gt;Flashmode&lt;/strong&gt;を選択&lt;br /&gt;
「Select a Firmware」でFlashToolsのFirmwaresフォルダを開き、Version部の&lt;strong&gt;X10i_3.0.1.G.0.75&lt;/strong&gt;を選択&lt;br /&gt;
「Firmware Content」で&lt;strong&gt;kernel.sin&lt;/strong&gt;を選択してOKボタンを押します。&lt;br /&gt;
端末の電源を一旦切り（電池を抜いてもOK）ハードウェアキーの「←（戻る）」ボタンを押しながら、PCに接続します。&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;
注意することとして&lt;br /&gt;
・ベースバンドの変更が必要（このROMは71）&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://dsiyo.blogspot.com/feeds/4015914173340846148/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/4015914173340846148' title='5 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/4015914173340846148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/4015914173340846148'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/xperia-x10so01bthgo2-v160.html' title='Xperia　SO01BにThGo2 V16.0'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEhNIEz-wY_dzYA1LmzYIadB3B-3IdmsFW806O2y3qC0e6ElJ9aFuARnJVUWFJCfv-TuPY7REizqMQ7mcWWokQWFcpm8iDfBkcIpeDB00RSkFDkt9D9dWdcBe2zx2omahZETYlMR7V230Yx3/s72-c/kernel.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-327746777442193733.post-2523203773036341617</id><published>2012-05-25T15:55:00.002+09:00</published><updated>2012-05-29T19:55:58.962+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="インストール"/><title type='text'>CentOS6用のepelリポジトリ</title><content type='html'>CentOS6用のepelリポジトリを追加&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6 

rpm --import RPM-GPG-KEY-EPEL-6

&lt;/pre&gt;&lt;br /&gt;
repoファイルを新規作成&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;vi /etc/yum.repos.d/epel.repo　

[epel]
name=EPEL RPM Repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/fedora/epel/6/$basearch/
gpgcheck=1
enabled=0
&lt;/pre&gt;&lt;br /&gt;
パッケージのインストール&lt;br /&gt;
&lt;br /&gt;
yum --enablerepo=epel install ○○</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/2523203773036341617/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/2523203773036341617' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2523203773036341617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2523203773036341617'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/centos6epel.html' title='CentOS6用のepelリポジトリ'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-5535296262923023360</id><published>2012-05-25T11:32:00.000+09:00</published><updated>2012-05-25T11:40:21.509+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="インストール"/><title type='text'>centOSをネットワークインストール（6.2対応版）</title><content type='html'>OSインストール時にメンドウなのが、インストールCDやDVDを作成すること。&lt;br /&gt;
作ってもインストールが終わったら不要なものになってしまうので、できれば作りたくないものです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
そこで試してみたのが、ネットワークインストール&lt;br /&gt;
&lt;br /&gt;
これを1枚作っておけば、違うバージョンをインストールしたくなってもカンタン♪&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
①　まずはネットワークインストール用のisoをダウンロード&lt;br /&gt;
下のリンクの&lt;strong&gt;6.2&lt;/strong&gt;を他のバージョンに変えてもOKです。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://ftp.riken.jp/Linux/centos/6.2/isos/i386/&quot;&gt;http://ftp.riken.jp/Linux/centos/6.2/isos/i386/&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
から「&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;CentOS-6.2-i386-netinstall.iso&lt;/span&gt;&lt;/b&gt;」とうisoイメージをダウンロード&lt;br /&gt;
&lt;br /&gt;
②　CD等に焼くかマウント（私はVMware上での構築なので、新規仮想マシンにマウント）して起動&lt;br /&gt;
&lt;br /&gt;
③　初期画面で[Enter]キーを押す&lt;br /&gt;
&lt;br /&gt;
④　「&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;Choose a Language」で&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Japanese&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;を選択&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;　※　「途中まで日本語が表示できないよ～」というような警告が出るので「OK」を押して継続&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;⑤　&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;Keyboard Typeという画面で&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;jp106&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;を選択&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
⑥　&lt;span style=&quot;font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;Installation MethodでHTTPか&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;FTP&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333;&quot;&gt;を選択&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;⑦　Configure TCP/IPでIPｖ４を設定（私はとりあえず&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;DHCP&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;にして、IPv6は無効にしました）&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; line-height: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
⑧　HTTP Setupではダウンロードするpathを入力しますが&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.riken.jp/Linux/centos/6.2/os/i386/&lt;br /&gt;
&lt;br /&gt;
と入れればOK（たぶんバージョンを変えてもいけそうです）&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt;とってもカンタン、是非お試しあれ！&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/5535296262923023360/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/5535296262923023360' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/5535296262923023360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/5535296262923023360'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/centos62.html' title='centOSをネットワークインストール（6.2対応版）'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-7997621415596482304</id><published>2012-05-21T22:14:00.000+09:00</published><updated>2012-05-21T22:14:29.010+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntuでナチュラルスクロール</title><content type='html'>ある日突然、マウスのホイールでスクロールする向きが逆になってしまった。&lt;br /&gt;
ナチュラルスクロールという機能のようで、appleが OS X Lionから標準採用したものらしい。（今更ですが）&lt;br /&gt;
&lt;br /&gt;
iphoneなどの機器を操作する感覚と合わせたのだろうが、どうも気持ち悪いので、元に戻すことにしました。&lt;br /&gt;
&lt;br /&gt;
設定場所を忘れないようにメモ&lt;br /&gt;
&lt;br /&gt;
1.　Ubuntu Tweakのインストール（まぁみなさん入れていることでしょう）&lt;br /&gt;
2.　Ubuntu Tweakの【Tweak】→【Miscellaneous】→【Natural Scrolling】のオン・オフで切り替え可能です。&lt;br /&gt;
&lt;br /&gt;
指とマウスじゃ違うと感じるのは私だけでしょうか・・・&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/7997621415596482304/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/7997621415596482304' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7997621415596482304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/7997621415596482304'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/ubuntu.html' title='ubuntuでナチュラルスクロール'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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-327746777442193733.post-2917705157117023672</id><published>2012-05-18T21:59:00.000+09:00</published><updated>2012-05-29T21:28:36.267+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="開発"/><title type='text'>androidアプリ開発日記(1)～やっぱりhelloworld</title><content type='html'>androidのアプリを作ってみたくて、開発環境は作れたものの、まずどうしていいかわからかったのでメモ。&lt;br /&gt;
情報サイトを見ていたものの、イマイチ難しい。&lt;br /&gt;
&lt;br /&gt;
HelloWorldを改造しながらちょっとずつ覚えていこうと思う。&lt;br /&gt;
&lt;br /&gt;
目標は、&lt;a href=&quot;http://dsiyo.blogspot.jp/2012/05/auxperia-acrois11s.html&quot;&gt;過去記事&lt;/a&gt;に関連して&lt;br /&gt;
「Xperia Acro　IS11SのMTU値を変更」するアプリを作ること。&lt;br /&gt;
&lt;br /&gt;
まずは前提条件というか覚えておくこと&lt;br /&gt;
&lt;br /&gt;
・　Activity＝画面と思っておく。&lt;br /&gt;
・　何かしようと思うと必要なクラスをimportする。&lt;br /&gt;
・　メインのプログラムは/src/namespace/○○.java&lt;br /&gt;
・　あらかじめ登録しておく文字列は/res/values/strings.xmlに記入&lt;br /&gt;
・　画像を表示するアプリの場合/res内にdrawableディレクトリを作りその中にファイルを入れる。&lt;br /&gt;
&lt;br /&gt;
ぐらいでしょうか？（少なすぎｗ）&lt;br /&gt;
&lt;br /&gt;
まずはデフォルトで出来上がるファイルから&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code&gt;package com.hiropop.setumtu;

import android.app.Activity;
import android.os.Bundle;

public class SetMTU extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}
&lt;/code&gt;
&lt;/pre&gt;&lt;br /&gt;
11行目にあるsetContentView(R.layout.main);で/res/layoutディレクトリ内の、main.xmlを呼び出している。&lt;br /&gt;
（main.xmlにはhello worldと書かれている）&lt;br /&gt;
&lt;br /&gt;
ここで、「R」は何を指しているかというと、/genディレクトリ内にあるR.javaと言うファイルを指しています。&lt;br /&gt;
R.javaは、開発環境で自動的に作られるもので、様々なリソース（文字・画像・レイアウト）ファイルの場所を指し示しているファイルの様です。&lt;br /&gt;
&lt;br /&gt;
まれに、R.javaが壊れてしまう事例が発生するようですが、プロジェクトをクリーンすると再構築されるらしいです。&lt;br /&gt;
&lt;br /&gt;
できたてホヤホヤのR.javaはこんな感じ&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code&gt;/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.hiropop.setmtu;

public final class R {
    public static final class attr {
    }
    public static final class drawable {
        public static final int ic_launcher=0x7f020000;
    }
    public static final class layout {
        public static final int main=0x7f030000;
    }
    public static final class string {
        public static final int app_name=0x7f040001;
        public static final int hello=0x7f040000;
    }
}
&lt;/code&gt;
&lt;/pre&gt;&lt;br /&gt;
13・16・19行目を見ると、drawable（画像）・layout（レイアウト）・string（文字列）がそれぞれresディレクトリ内を指していると言っていいでしょう。（テキトウですいませんw）&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/AVvXsEigkZBEElYEGRlAIGUtseIgwIyL51F6BVF2A5Rn-BOYxhDSRKeW4bB6e546ZpLV9B3qvr4t4z8XzPlXt8HdBpb9CresokqGYB9OGJ3OkK8B66AHYHcsJTVlqHgk6rGp-CHSq8_pqGiFvvJV/s1600/hello1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigkZBEElYEGRlAIGUtseIgwIyL51F6BVF2A5Rn-BOYxhDSRKeW4bB6e546ZpLV9B3qvr4t4z8XzPlXt8HdBpb9CresokqGYB9OGJ3OkK8B66AHYHcsJTVlqHgk6rGp-CHSq8_pqGiFvvJV/s400/hello1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
さて、何も加えずにビルドすると、Hello World,SetMTU!などと文字が表示されますが、味気ないので手を加えてみます。&lt;br /&gt;
&lt;br /&gt;
1.まずは表示する文字を変えます。&lt;br /&gt;
&lt;br /&gt;
/res/values/string.xmlを開いて「hello(String)」と「app_name(String」の２つのエレメントがありますので、helloをクリックします。&lt;br /&gt;
画面の右側に、「Name」と「Value」がありますので、好きに変えてみます。&lt;br /&gt;
&lt;br /&gt;
「Value」は変更しても問題ありませんが、Nameを変更すると、参照されなくなりますので、Main.xmlを開き、&lt;br /&gt;
@string/helloのプロパティからTextプロパティを「@string/welcome」（welcomeはstring.xmlでつけた名前）に変更します。&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/AVvXsEinOc5h7PmJTIaoQxEfrW-21YkzF2ud6HZXV1V2VKZOziyrrKyf600H0WDXuD-r0cJA0I3Ph-ul9aW-Ur1n1JcgKJgPYwzi1UA0j_0CvZQis4qR2vuDxmloc5cIQvTKRtDRYZsiF0hKyMZM/s1600/hello2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; width=&quot;325&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinOc5h7PmJTIaoQxEfrW-21YkzF2ud6HZXV1V2VKZOziyrrKyf600H0WDXuD-r0cJA0I3Ph-ul9aW-Ur1n1JcgKJgPYwzi1UA0j_0CvZQis4qR2vuDxmloc5cIQvTKRtDRYZsiF0hKyMZM/s400/hello2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
あとは、プロパティに色（Text Color)やフォントサイズ(Text size)など様々な手を加えてみます。&lt;br /&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/AVvXsEiG_6HpvEFdY_WDGGDtjempUaS2LL-3lin_RwP6NlBv3kJtKmgvpxM1A7NyfbwuPvYxjl2E3Hvv_FDNiCwmNwDgCss9ZQiyC_ak4wJkCTM4rg-CUUTgvMunFYxP3rqXEWoy0qCBJajDLWoZ/s1600/hello3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG_6HpvEFdY_WDGGDtjempUaS2LL-3lin_RwP6NlBv3kJtKmgvpxM1A7NyfbwuPvYxjl2E3Hvv_FDNiCwmNwDgCss9ZQiyC_ak4wJkCTM4rg-CUUTgvMunFYxP3rqXEWoy0qCBJajDLWoZ/s400/hello3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dsiyo.blogspot.com/feeds/2917705157117023672/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/327746777442193733/2917705157117023672' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2917705157117023672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/327746777442193733/posts/default/2917705157117023672'/><link rel='alternate' type='text/html' href='http://dsiyo.blogspot.com/2012/05/android1helloworld.html' title='androidアプリ開発日記(1)～やっぱりhelloworld'/><author><name>wknin</name><uri>http://www.blogger.com/profile/03171855237642112236</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/AVvXsEigkZBEElYEGRlAIGUtseIgwIyL51F6BVF2A5Rn-BOYxhDSRKeW4bB6e546ZpLV9B3qvr4t4z8XzPlXt8HdBpb9CresokqGYB9OGJ3OkK8B66AHYHcsJTVlqHgk6rGp-CHSq8_pqGiFvvJV/s72-c/hello1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>