<?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-8877339126373123562</id><updated>2024-09-19T20:26:32.301+09:00</updated><category term="php"/><category term="雑記"/><category term="Linux"/><category term="開発環境構築"/><category term="MySQL"/><category term="Android"/><category term="システム開発"/><category term="AS3"/><category term="Flex"/><category term="Mac"/><category term="iOS"/><category term="iPhone"/><category term="プログラミング"/><category term="Eclipse"/><category term="OAuth"/><category term="Xcode"/><category term="mixi"/><category term="Facebook"/><category term="Qdmail"/><category term="Twitter"/><category term="さくらサーバ"/><category term="サーバ"/><category term="Apache"/><category term="CSS"/><category term="Firefox"/><category term="Git"/><category term="JavaScript"/><category term="Objective-C"/><category term="Smarty"/><category term="Windows"/><category term="jQuery"/><category term="ゲーム"/><category term="デザインパターン"/><category term="ブログ"/><title type='text'>memo.txt</title><subtitle type='html'>Webマのメモ帳書き写しとか</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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>103</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-4198940704098229243</id><published>2014-02-08T13:03:00.000+09:00</published><updated>2014-02-08T13:03:25.984+09:00</updated><title type='text'>【雑記】雪積ってた</title><content type='html'>&lt;pre&gt;

玄関前廊下
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitj1stvO5ZjquXpajj-3fiooM7YbI3ZpRl3pmqwX-thj0cmOKgG81J5apdfaZTfmz6vpzzIIjHkIfdB-ravokXVGZ3i2FPk40CLX0u2Tl8am-Y0pJMQHJJPLrRsAa4msv_MkX7Jk630nU/s1600/snow01.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitj1stvO5ZjquXpajj-3fiooM7YbI3ZpRl3pmqwX-thj0cmOKgG81J5apdfaZTfmz6vpzzIIjHkIfdB-ravokXVGZ3i2FPk40CLX0u2Tl8am-Y0pJMQHJJPLrRsAa4msv_MkX7Jk630nU/s320/snow01.jpg&quot; /&gt;&lt;/a&gt;

玄関ドア
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt-VOdIU_rbB6zVc4Jd4aWwpVsbCne0U7g3PWc7CP3CEAVWq4qVOLD_wNlYt-F3Ew759Vh2HX7FkUQDdDYsIO0ujiCPvQreVK2awr31ci8CWAFVKPY6BQuEaAIw6J-MVS43OlHlZNZnBc/s1600/snow02.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt-VOdIU_rbB6zVc4Jd4aWwpVsbCne0U7g3PWc7CP3CEAVWq4qVOLD_wNlYt-F3Ew759Vh2HX7FkUQDdDYsIO0ujiCPvQreVK2awr31ci8CWAFVKPY6BQuEaAIw6J-MVS43OlHlZNZnBc/s320/snow02.jpg&quot; /&gt;&lt;/a&gt;

外
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3H6wGyC92mRCXude9QByTINXNqtRx1t1X3vFwFnPtD6YqoX6z48SSxqbZhP_Xd-u-h0WnclppoYgfTtUZfs70_Gt5Wh74Ol-0cykTGheYxK_71UXQko_WW7PB-MaIJs6-WC-NZ0HkuEg/s1600/snow03.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3H6wGyC92mRCXude9QByTINXNqtRx1t1X3vFwFnPtD6YqoX6z48SSxqbZhP_Xd-u-h0WnclppoYgfTtUZfs70_Gt5Wh74Ol-0cykTGheYxK_71UXQko_WW7PB-MaIJs6-WC-NZ0HkuEg/s320/snow03.jpg&quot; /&gt;&lt;/a&gt;

寒いです
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/4198940704098229243/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2014/02/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/4198940704098229243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/4198940704098229243'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2014/02/blog-post.html' title='【雑記】雪積ってた'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEitj1stvO5ZjquXpajj-3fiooM7YbI3ZpRl3pmqwX-thj0cmOKgG81J5apdfaZTfmz6vpzzIIjHkIfdB-ravokXVGZ3i2FPk40CLX0u2Tl8am-Y0pJMQHJJPLrRsAa4msv_MkX7Jk630nU/s72-c/snow01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-3248130633568672485</id><published>2014-01-09T20:08:00.000+09:00</published><updated>2014-01-09T20:08:54.925+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雑記"/><title type='text'>【雑記】おでん</title><content type='html'>&lt;pre&gt;
1年ぶりぐらいの更新です。

ローソンのおでんが美味しい季節になりました。

僕のおすすめは
・しらたき
・だし巻き卵
・だいこん
・餅入り巾着

です。
特にだし巻き卵がおすすめです

おわり
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/3248130633568672485/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2014/01/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3248130633568672485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3248130633568672485'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2014/01/blog-post.html' title='【雑記】おでん'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-1738404348375614665</id><published>2012-10-18T16:01:00.001+09:00</published><updated>2012-10-18T16:01:57.007+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>【CSS】スタイルの優先度</title><content type='html'>&lt;pre&gt;
CSSの適応される優先度についてのまとめ

&lt;div class=&quot;strong_left&quot;&gt;
高
↑
    !important付きユーザ指定

    !important付きCSS

    HTML内のCSS

    ユーザ指定

    ブラウザの初期値
↓
低
&lt;/div&gt;

となっているようです。

優先度とかあるのはわかりましたが、「!important」って何よ？
ってことでまた調べます。

どうやらCSSの適応優先度を上げる宣言のようです、下記のように使用できます。
&lt;pre class=&quot;brush: css&quot;&gt;
p {
  color: #FFFF00 !important;
}
&lt;/pre&gt;

他にも指定の仕方によってポイント等があって高い方から適応されるらしいです
詳細に指定していれば指定する程ポイントが上がるとか何とか、
とりあえず今回はここまでということで。

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/1738404348375614665/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/10/css.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/1738404348375614665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/1738404348375614665'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/10/css.html' title='【CSS】スタイルの優先度'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-6485634513767745982</id><published>2012-08-24T14:06:00.000+09:00</published><updated>2012-08-24T19:06:26.717+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雑記"/><title type='text'>【雑記】BIGINT型やばい</title><content type='html'>&lt;pre&gt;

ヤバイ。BIGINT型ヤバイ。まじでヤバイよ、マジヤバイ。
BIGINT型ヤバイ。
まず多い。もう多いなんてもんじゃない。超多い。
多いとかっても
「INT型20個分ぐらい？」
とか、もう、そういうレベルじゃない。
何しろ9000京。スゲェ！なんか兆とか超えてるの。何千億とか何千万とかを超越してる。19桁だし超多い。
しかも符号ありでこれらしい。ヤバイよ、符号ありだよ。
だって普通は符号なしで何十億じゃん。だってDBのINT型が千億超えてたら扱いに困るじゃん。レコードが超多いとか困るっしょ。
phpmyadminのページャーが伸びて、サービスオープン1ヶ月のときは10ページだったのに、三年のときは2万ページとか泣くっしょ。
だからINTとか何千億超えない。話のわかるヤツだ。
けどBIGINTはヤバイ。そんなの気にしない。オートインクリメントしまくり。1日1億個のレコード挿入しても2億年持つとかよくわかならいくらぐらい多い。ヤバすぎ。
9000京って言ったけど、もしかしたら符号なしにしたら垓いくかもしんない。でも符号なしって事にすると
「じゃあ、BIGINT型使ってるテーブルってナニよ？」
って事になるし、それは誰もわからない。ヤバイ。誰にも分からないなんて凄すぎる。
あとオートインクリメントのカラムだけでテーブル作って全部埋めると超重い。約326エクサバイト。ギガバイトで言うと約3504億ギガバイト。ヤバイ。重すぎ。HDD増設する前に死ぬ。怖い。
それに普通に使ってても超余る。超スカスカ。一日1億回インクリメントしても億年とか平気で出てくる。億年て。小学生でも言わねぇよ、最近。
なんつってもBIGINT型は馬力が凄い。京とか平気だし。
うちらなんて京とかたかだかINT型で使用する必要が出てきただけでめんどくさいからDB設計見なおしたりするのに、
BIGINT型は全然平気。京を京のまま扱ってる。凄い。ヤバイ。
とにかく貴様ら、BIGINT型のヤバさをもっと知るべきだと思います。
そんなヤバイBIGINT型を使ってシステム作ってる人とか超偉い。もっとがんばれ。超がんばれ。


何やってんだろ

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/6485634513767745982/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/08/bigint.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6485634513767745982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6485634513767745982'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/08/bigint.html' title='【雑記】BIGINT型やばい'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-3713146630556653495</id><published>2012-08-11T19:41:00.000+09:00</published><updated>2012-08-11T19:41:07.269+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>【Linux】sshのIPアクセス制限</title><content type='html'>&lt;pre&gt;

この前 試験サーバより本番サーバにrsyncでファイルを反映しようとした際に
遭遇したのでメモ

昨日まではファイルを正常にシンクできたのですが、今日になってなんとエラーが・・・

&lt;div class=&quot;console&quot;&gt;ssh_exchange_identification: Connection closed by remote host&lt;/div&gt;

え、何これ？と思って調べてみると
試験サーバから本番サーバへsshでのアクセスが禁止されていました。

原因は誰かがIP制限を導入したそうなのですが、それに漏れがあったかららしいです。

原因はわかったので、直接本番サーバにssh接続し
IPアクセス制限に試験サーバのIPを追加しました。

&lt;span style=&quot;color:red;&quot;&gt;/etc/hosts.allow&lt;/span&gt; を &lt;span style=&quot;color:red&quot;&gt;vi&lt;/span&gt; で開き
&lt;span style=&quot;color:red&quot;&gt;sshd&lt;/span&gt; という項目に試験サーバのIPを追加しました。

&lt;div class=&quot;console&quot;&gt;sshd : 111.111.111.111&lt;/div&gt;
複数指定する場合は、スペース区切り・または

&lt;div class=&quot;console&quot;&gt;sshd : 111.111.111.111
sshd : 222.222.222.222&lt;/div&gt;

というように指定します。


終わり
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/3713146630556653495/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/08/linuxsship.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3713146630556653495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3713146630556653495'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/08/linuxsship.html' title='【Linux】sshのIPアクセス制限'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-430411182859822049</id><published>2012-07-27T14:00:00.001+09:00</published><updated>2012-07-27T14:00:13.901+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雑記"/><title type='text'>【雑記】Fate/Zero Diningに行ってきた</title><content type='html'>&lt;pre&gt;

会社の人とFate/Zero Diningに行って来ました


■店の前の看板？
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI1JyJmyGmVFGorUHP_oxCXId0EqgOxCjy1CJxhaS5-S4cd1B3e6tuSjQLxB6GmVJNh8oSUanzBqeWR_1HyZlbknMzjiyGhwysJ7J6Wstw_2-t6C4rLetG3IIHo0r1TJbHTEjeZY9scq4/s1600/%25E5%2586%2599%25E7%259C%259F+%252823%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&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/AVvXsEhI1JyJmyGmVFGorUHP_oxCXId0EqgOxCjy1CJxhaS5-S4cd1B3e6tuSjQLxB6GmVJNh8oSUanzBqeWR_1HyZlbknMzjiyGhwysJ7J6Wstw_2-t6C4rLetG3IIHo0r1TJbHTEjeZY9scq4/s400/%25E5%2586%2599%25E7%259C%259F+%252823%2529.JPG&quot; /&gt;&lt;/a&gt;


■メニュー
一緒に行った人は「アインツベルンのコース」、僕は「遠坂のコース」です。
写真は「遠坂邸のメニュー」
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNi0yypuhQOeVTv6dbE9V-vJOTeM9_N5LRnNuoaQ8V-c9UCR7euLKVuoyadZGDh2cAFnOvxbgNnmLf_AXEiSAfUm8_dbQbvDAeX8-LsIJvXiYJen5nT41TLqPL3BNYo7X8WkLQytob5y4/s1600/%25E5%2586%2599%25E7%259C%259F+%252817%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&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/AVvXsEhNi0yypuhQOeVTv6dbE9V-vJOTeM9_N5LRnNuoaQ8V-c9UCR7euLKVuoyadZGDh2cAFnOvxbgNnmLf_AXEiSAfUm8_dbQbvDAeX8-LsIJvXiYJen5nT41TLqPL3BNYo7X8WkLQytob5y4/s400/%25E5%2586%2599%25E7%259C%259F+%252817%2529.JPG&quot; /&gt;&lt;/a&gt;


■スープ「オニオンコンソメスープ」
なぜかカップはセイバーでした。
ちなみに「アインツベルンのコース」と一緒でした。
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVzRI6tDmn-3XnR8kGMhFpne1liSHe4gbLo9yjFLfTqzvLtvtGEJLX3QtBO3nOfpJ0PTa0rP0GMVNWQa9MGmD4bzhKqIlTP1_AhCv0U8mzSZrrQS0RgeQfda-n1S_0HqOFgT8IfS3wDQk/s1600/%25E5%2586%2599%25E7%259C%259F+%252819%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVzRI6tDmn-3XnR8kGMhFpne1liSHe4gbLo9yjFLfTqzvLtvtGEJLX3QtBO3nOfpJ0PTa0rP0GMVNWQa9MGmD4bzhKqIlTP1_AhCv0U8mzSZrrQS0RgeQfda-n1S_0HqOFgT8IfS3wDQk/s400/%25E5%2586%2599%25E7%259C%259F+%252819%2529.JPG&quot; /&gt;&lt;/a&gt;


■サラダ「夏野菜のサラダ」
これも「アインツベルンのコース」と一緒でした。
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixx7wi9Z7LJPeg_ahlfLXs79uG5eIN0M2TQEdNe-CFJODOjjzn1332e-hmiKORqgwG0H0luHEtc9hk6D1_olUkLeqWED0X323rB82YkmE1xwqSpNkqgfs852ZB0HWwz5lvo_r9BA648BM/s1600/%25E5%2586%2599%25E7%259C%259F+%252818%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixx7wi9Z7LJPeg_ahlfLXs79uG5eIN0M2TQEdNe-CFJODOjjzn1332e-hmiKORqgwG0H0luHEtc9hk6D1_olUkLeqWED0X323rB82YkmE1xwqSpNkqgfs852ZB0HWwz5lvo_r9BA648BM/s400/%25E5%2586%2599%25E7%259C%259F+%252818%2529.JPG&quot; /&gt;&lt;/a&gt;


■メイン１「黒毛和牛のハンバーグ赤ワインソース仕立て」
ハンバーグがやたら固いなと思ったら肉１００%らしいです
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDxF0VNG8-q5Ib4sKK3Scd_92XP_s0voNGlZobwixynCNVBrV2_xrF5xdGx_4NHrJJZA-jU4sB575iDxOix02gojgtnEkpiExYCqrCuHs5dYN6fNof4PSlaL99YPsk6aclX_9ttOtfTNE/s1600/%25E5%2586%2599%25E7%259C%259F+%252824%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDxF0VNG8-q5Ib4sKK3Scd_92XP_s0voNGlZobwixynCNVBrV2_xrF5xdGx_4NHrJJZA-jU4sB575iDxOix02gojgtnEkpiExYCqrCuHs5dYN6fNof4PSlaL99YPsk6aclX_9ttOtfTNE/s400/%25E5%2586%2599%25E7%259C%259F+%252824%2529.JPG&quot; /&gt;&lt;/a&gt;


■メイン２「二種のパンとフライドポテト」
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDOxb7Dj8hvRNCI5X9rpm2G8YNLpjftK7o4dwo5mmQDlLGJFwHF-PpEhKmb8sIaTq9IBH0vdlhd8LonpApZFXtz2TF-LL99h49IxOS_7onkOYlCxrQe4Uz5FpDGkqvj5Bb5630AbaXDSw/s1600/%25E5%2586%2599%25E7%259C%259F+%252820%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDOxb7Dj8hvRNCI5X9rpm2G8YNLpjftK7o4dwo5mmQDlLGJFwHF-PpEhKmb8sIaTq9IBH0vdlhd8LonpApZFXtz2TF-LL99h49IxOS_7onkOYlCxrQe4Uz5FpDGkqvj5Bb5630AbaXDSw/s400/%25E5%2586%2599%25E7%259C%259F+%252820%2529.JPG&quot; /&gt;&lt;/a&gt;


■スイーツ「葵のクリームあんみつ」
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTjEBICGonorIBNsKuRdSMJaKJprAIb875Ho1H77YNh_j6XIEOH0exlrKcJPOn3lao7il_CiKR_KCWWor80Qzo1vA1v6D6SBad2EH-U5FjLGC7No4uLP4AokqH0PkYB58OQ9JHegF2v24/s1600/%25E5%2586%2599%25E7%259C%259F+%252821%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTjEBICGonorIBNsKuRdSMJaKJprAIb875Ho1H77YNh_j6XIEOH0exlrKcJPOn3lao7il_CiKR_KCWWor80Qzo1vA1v6D6SBad2EH-U5FjLGC7No4uLP4AokqH0PkYB58OQ9JHegF2v24/s400/%25E5%2586%2599%25E7%259C%259F+%252821%2529.JPG&quot; /&gt;&lt;/a&gt;

葵の
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxh_0OpyIPvIAndgBtrrRfhtiLJLGp0nPuc-OaOq3wrMAySX4DJj6GEZUX-9Pa2Dj7DovVxQnFldmi2O29cAulaF_mUsN0XrlIrjT_mD4qYyH7qW5PUpva3FED4t1yebccQxtjDYM8yqQ/s1600/images.jpg&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; width=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxh_0OpyIPvIAndgBtrrRfhtiLJLGp0nPuc-OaOq3wrMAySX4DJj6GEZUX-9Pa2Dj7DovVxQnFldmi2O29cAulaF_mUsN0XrlIrjT_mD4qYyH7qW5PUpva3FED4t1yebccQxtjDYM8yqQ/s400/images.jpg&quot; /&gt;&lt;/a&gt;

クリームあんみつ




これがやりたかっただけ

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/430411182859822049/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/07/fatezero-dining.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/430411182859822049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/430411182859822049'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/07/fatezero-dining.html' title='【雑記】Fate/Zero Diningに行ってきた'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEhI1JyJmyGmVFGorUHP_oxCXId0EqgOxCjy1CJxhaS5-S4cd1B3e6tuSjQLxB6GmVJNh8oSUanzBqeWR_1HyZlbknMzjiyGhwysJ7J6Wstw_2-t6C4rLetG3IIHo0r1TJbHTEjeZY9scq4/s72-c/%25E5%2586%2599%25E7%259C%259F+%252823%2529.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-6589639514592386219</id><published>2012-06-24T16:47:00.001+09:00</published><updated>2012-06-24T16:54:14.789+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>【Mac】ターミナルで使うコマンドのエイリアスを設定する</title><content type='html'>&lt;pre&gt;Macでごにょごにょしてたときにコマンドのエイリアスを
作ろうと思った時のメモ

ターミナル上でよく「ls -l」とかでファイルの確認とかをするのですが、
会社では、エイリアスで登録されているためよく打ち間違えてしまいます。
なので一緒にしておこうということで設定しました。

まず、自分のホームディレクトリにターミナルで移動し、
「.bashrc」というファイルを開きます。
&lt;div class=&quot;console&quot;&gt;$ cd $HOME
$ cd vim .bashrc
&lt;/div&gt;ファイルを開いたら、そこにエイリアスを定義します。

エイリアスの定義はこのように記述します。
&lt;div class=&quot;console&quot;&gt;alias エイリアス名１=&#39;コマンド１&#39;
alias エイリアス名２=&#39;コマンド２&#39;
&lt;/div&gt;
今回は「ll」というエイリアス名で「ls -l」を登録しました。
&lt;div class=&quot;console&quot;&gt;alias ll=&#39;ls -l&#39;
&lt;/div&gt;
エイリアスを定義したらファイルを保存し、「.bash_profile」というファイルを
編集します。
&lt;div class=&quot;console&quot;&gt;$ cd $HOME
$ vim .bash_profile
&lt;/div&gt;
「.bash_profile」には下記の項目を追加し、保存します。
&lt;div class=&quot;console&quot;&gt;source .bashrc
&lt;/div&gt;
保存できたら下記コマンドを実行し、変更を反映します。
&lt;div class=&quot;console&quot;&gt;$ source .bash_profile
&lt;/div&gt;
これで定義したエイリアスを使用できるようになります。
（再ログインでも反映されます）

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/6589639514592386219/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/06/mac.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6589639514592386219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6589639514592386219'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/06/mac.html' title='【Mac】ターミナルで使うコマンドのエイリアスを設定する'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-6003551871489285246</id><published>2012-06-09T17:20:00.000+09:00</published><updated>2012-06-09T17:20:51.747+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雑記"/><title type='text'>【雑記】社員旅行でハワイ行って来ました</title><content type='html'>&lt;pre&gt;
06/03～06/07の3泊5日でハワイに社員旅行で行ってきました。

初日

ホテルから見た景色１
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh13YgQK5KCTe3rCu7Nss24rcZuprRwjebK5_65j8egiHnEsScq7OiaGjFKmUn2qEnja32NLTOwimCUdHUS6HrRnKBHpxYnDTrCaYQmzhHsa2dGbL4DS9E0QfzvqhSEzyrrD9pET2te_GE/s1600/IMG_0148.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh13YgQK5KCTe3rCu7Nss24rcZuprRwjebK5_65j8egiHnEsScq7OiaGjFKmUn2qEnja32NLTOwimCUdHUS6HrRnKBHpxYnDTrCaYQmzhHsa2dGbL4DS9E0QfzvqhSEzyrrD9pET2te_GE/s400/IMG_0148.JPG&quot; /&gt;&lt;/a&gt;

ホテルから見た景色２
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpkAmf0nTnB9_M7fV9CzxoRbZwCB7R818hOTLx577sflnY1fjw71gTXDOK9zTvQJIQHCwxm34LnXqS799253xBdhZRmIpqaR7IwsjCjFVvTkULPfoLBrqCl71bUcRuo5zbO2rQ-RhymY0/s1600/IMG_0149.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpkAmf0nTnB9_M7fV9CzxoRbZwCB7R818hOTLx577sflnY1fjw71gTXDOK9zTvQJIQHCwxm34LnXqS799253xBdhZRmIpqaR7IwsjCjFVvTkULPfoLBrqCl71bUcRuo5zbO2rQ-RhymY0/s400/IMG_0149.JPG&quot; /&gt;&lt;/a&gt;

海きれいすぎんだろ、びっくりしたわ

ホテルについて２時間ほどごろごろして、船に乗ってご飯を食べに行きました。
サンセットクルーズ？とかいうらしいです。

乗った船
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguW1HvnQQ7NAQem1U9vKbi-BeRiLulSC1duvdgpGG05BFirjgEIHL3L38V9yxmqbTkHS0KGF9EEczuOECFLraG2ggYDX-3i4e_aQ6ZEZ1LFpX4wVMSxPccF9JyNfgDPnCyo6EIm-Pn9WY/s1600/IMG_0151.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguW1HvnQQ7NAQem1U9vKbi-BeRiLulSC1duvdgpGG05BFirjgEIHL3L38V9yxmqbTkHS0KGF9EEczuOECFLraG2ggYDX-3i4e_aQ6ZEZ1LFpX4wVMSxPccF9JyNfgDPnCyo6EIm-Pn9WY/s400/IMG_0151.JPG&quot; /&gt;&lt;/a&gt;

夕日
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4FhMbiu6zGH6TM2zYsC-not4IprpRfAm9f_B1z2dao2QIQNrPfCd4nuOGoaMfO9HyBb-aVrV64GYX-8dnH3reP0TWTjOKHFu1mGXCvnKxIr3paLWHYAo66vgP3kf-xhP-7_lIUUp0Bw8/s1600/IMG_0156.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4FhMbiu6zGH6TM2zYsC-not4IprpRfAm9f_B1z2dao2QIQNrPfCd4nuOGoaMfO9HyBb-aVrV64GYX-8dnH3reP0TWTjOKHFu1mGXCvnKxIr3paLWHYAo66vgP3kf-xhP-7_lIUUp0Bw8/s400/IMG_0156.JPG&quot; /&gt;&lt;/a&gt;

ビールばっか飲んでたんですが、せっかくハワイに来たということで
ハワイっぽい飲み物を頼みました。

&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn7KqoyW3xnlG6NHHrQqgOM7SlAw7MfltRe1Hw75bWezCylQhB_Vi-vwwQMRHYIsZJobJqH0Do72gEm1-5fM2dalMU9Xb_UtqihE02_rT_Wij1mGqp3pWJ66LV4y5P-1cUcrQhbChq7yc/s1600/IMG_0155.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&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/AVvXsEhn7KqoyW3xnlG6NHHrQqgOM7SlAw7MfltRe1Hw75bWezCylQhB_Vi-vwwQMRHYIsZJobJqH0Do72gEm1-5fM2dalMU9Xb_UtqihE02_rT_Wij1mGqp3pWJ66LV4y5P-1cUcrQhbChq7yc/s400/IMG_0155.JPG&quot; /&gt;&lt;/a&gt;


船内で現地の方による催し物がありました
が、ぶれまくりだったのでボツに



二日目
朝の１０時からパラセイリング
高すぎて漏らすかと思った。写真はなし危ないので

パラセイリングの後、昼ごはんにマクドナルドに行って来ました。
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrReZNy_tlm8QCoG6YHZlhf-MbB3rAj-EhdKCvBTCmpa1TU4p128XAzDbFQwwudcGlANQbjq6REV55XNN_txoUiF3eS1sH3szCtVnQiW_Cuhv6sMlpKNztGr110zs6pw-aBmd6LMnzT8Q/s1600/IMG_0159.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrReZNy_tlm8QCoG6YHZlhf-MbB3rAj-EhdKCvBTCmpa1TU4p128XAzDbFQwwudcGlANQbjq6REV55XNN_txoUiF3eS1sH3szCtVnQiW_Cuhv6sMlpKNztGr110zs6pw-aBmd6LMnzT8Q/s400/IMG_0159.JPG&quot; /&gt;&lt;/a&gt;

クォーターパウンダーのセットを頼んだのですが、日本と違い
謎のパイナップルが付いてきました。
パイナップルで２ドルぐらい取られました。

食事の後実弾射撃に行こうということで行って来ました。
写真は撮り忘れました。

ライフルと自動拳銃とリボルバーを撃ってきました。
リボルバーで肩外れるかと思った。

夜になんか花火？があるらしく、ホテルの部屋からちょうど見えました。
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2VRO45J0EkIPg5tuTr_3c-daXT2VSgxwqtiaZIkQGgTtN2t9VaO1h3iH1r1KeyFu6mTkXNaAYKx690goint_43W9aonWZDNHXK8kFLNNMNQZX4FYfUmqS00YjkBLGhSF1zDPP2v3j0kw/s1600/IMG_0189.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2VRO45J0EkIPg5tuTr_3c-daXT2VSgxwqtiaZIkQGgTtN2t9VaO1h3iH1r1KeyFu6mTkXNaAYKx690goint_43W9aonWZDNHXK8kFLNNMNQZX4FYfUmqS00YjkBLGhSF1zDPP2v3j0kw/s400/IMG_0189.JPG&quot; /&gt;&lt;/a&gt;

三日目
一日中寝てました。

晩ご飯でなんか高いお店で肉を食べてきました。
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPDLozEQtJsNHZWnFSdlJojtZhf0Ct7wg7dPFDposnZQ6MVa7HjBhtSzwRfRkVQ97J7eq_JTdWBgm3Fde49w783E8pUeO3J2VeGOJenciaGpJqSSRymTShzctj0639gUrZQ45HAz3f6uQ/s1600/IMG_0204.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPDLozEQtJsNHZWnFSdlJojtZhf0Ct7wg7dPFDposnZQ6MVa7HjBhtSzwRfRkVQ97J7eq_JTdWBgm3Fde49w783E8pUeO3J2VeGOJenciaGpJqSSRymTShzctj0639gUrZQ45HAz3f6uQ/s400/IMG_0204.JPG&quot; /&gt;&lt;/a&gt;

肉美味しかった。

すごい疲れました、未だに時差ボケしてるのか夜は眠くならないです。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/6003551871489285246/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/06/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6003551871489285246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6003551871489285246'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/06/blog-post.html' title='【雑記】社員旅行でハワイ行って来ました'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEh13YgQK5KCTe3rCu7Nss24rcZuprRwjebK5_65j8egiHnEsScq7OiaGjFKmUn2qEnja32NLTOwimCUdHUS6HrRnKBHpxYnDTrCaYQmzhHsa2dGbL4DS9E0QfzvqhSEzyrrD9pET2te_GE/s72-c/IMG_0148.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-2117512292382098246</id><published>2012-05-20T15:37:00.000+09:00</published><updated>2012-05-20T15:37:07.440+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>【PHP】指定ディレクトリのファイルを日付ソートして配列で取得</title><content type='html'>&lt;pre&gt;
現在作成中の機能で使った奴のメモ

phpで「&lt;span style=&quot;color:red;&quot;&gt;scandir&lt;/span&gt;」という関数でファイル名一覧は取得できますが、
ファイルの更新日時等は取得できません。

更新日時等でソートする必要がなければいいのですが、どうしてもソートしたいという要望？が
あったので、それに対応するために「&lt;span style=&quot;color:red;&quot;&gt;DirectoryIteratorクラス&lt;/span&gt;」を
使用しました。

この関数は指定したディレクトリ内の情報を取得してくれます。
更新日付とかファイルサイズとかも取ってきてくれるので更新日付以外でもソートできます。

サンプルコード
&lt;pre class=&quot;brush: php&quot;&gt;&amp;lt;?php

// ファイル情報格納用配列
$file_info_list = array();

// DirectoryIterator
$file_list = new DirectoryIterator($path);
foreach ($file_list as $file_info)
{
    // ファイル以外はループに戻る
    if (!$file_info-&amp;gt;isFile())
    {
        continue;
    }

    // 配列のキーに更新日時をセット
    $file_info_list[$file_info-&amp;gt;getMTime()] = array(
        &#39;file_name&#39; =&amp;gt; $file_info-&amp;gt;getFilename(),
        &#39;file_size&#39; =&amp;gt; $file_info-&amp;gt;getSize(),
        &#39;update&#39;    =&amp;gt; $file_info-&amp;gt;getMTime(),
    );
}

// 更新日時(キー名)の降順にソート
krsort($file_info_list);

var_dump($file_info_list);
&lt;/pre&gt;
「&lt;span style=&quot;color:red&quot;&gt;getMTime&lt;/span&gt;」で更新日時のタイムスタンプが取得できるので、
それをキー名に使用し、キー名でソートを実行します。

ですので、キー名が更新日時のタイムスタンプになります。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/2117512292382098246/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/05/php.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/2117512292382098246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/2117512292382098246'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/05/php.html' title='【PHP】指定ディレクトリのファイルを日付ソートして配列で取得'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-7731096522806304607</id><published>2012-05-10T23:49:00.000+09:00</published><updated>2012-05-10T23:49:31.302+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="サーバ"/><title type='text'>【サーバ】301リダイレクトを使う上での注意点</title><content type='html'>&lt;pre&gt;
&lt;a href=&quot;http://memo-txt.blogspot.jp/2012/05/urlwww.html&quot; target=&quot;_blank&quot;&gt;先程&lt;/a&gt;の記事で説明したWWWあり、なしを統一する際にハマったメモ

最初はFirefoxで301リダイレクトの確認をしていたのですが、設定をミスっていたらしく失敗していました。
その後何度か変更を加えてチェックしたのですが、最初に変更した設定から
何も変更されませんでした。

それで違うブラウザでやってみようということでIEで接続してみたところ現在の設定が反映されていました。

少し調べてみると301リダイレクトについての記述が見つかったので、それを探ってみるとビンゴ。

&lt;div class=&quot;strong_left&quot;&gt;301リダイレクトはリソースの恒久的な移動を意味する。
&lt;/div&gt;
「このURIはもうこっちのURIに変更されました。」というのをブラウザ等に通知するということらしく、
ブラウザ側でそのURIを記憶してしまうのだそうです。
なので、設定変更後にアクセスしたIEではきちんと反映されていたという訳です。

Firefoxの場合はキャッシュをクリアして再起動したら、きちんと反映されるようになりました。
&lt;span style=&quot;color:red;&quot;&gt;※IEの場合はキャッシュ削除ではダメらしく、ツールが必要なようです。&lt;/span&gt;


終わり

参考URL：&lt;a href=&quot;http://social.technet.microsoft.com/Forums/ja-JP/internetexplorerja/thread/3185f4a3-0041-4526-96f6-a30ff78528b3&quot; target=&quot;_blank&quot;&gt;.htaccessによるリダイレクトをやめてもIE9のみリダイレクトされ続ける&lt;/a&gt;

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/7731096522806304607/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/05/301.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/7731096522806304607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/7731096522806304607'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/05/301.html' title='【サーバ】301リダイレクトを使う上での注意点'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-6875122890835251355</id><published>2012-05-10T23:39:00.000+09:00</published><updated>2012-05-10T23:39:16.705+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="サーバ"/><title type='text'>【サーバ】URLをWWWあり、なしに統一する</title><content type='html'>&lt;pre&gt;
ということで本日やったメモ
僕が携わったサイトではないのですが、お客さんからURLのWWWを有りに変更して欲しいという
依頼があったらしくそれを投げられたので調べた時のメモ

今回は「&lt;span style=&quot;color:red;&quot;&gt;mod_rewrite&lt;/span&gt;」を使用し、wwwなし(またはあり)のURLでアクセスがあった場合は
301リダイレクトを利用し、wwwあり(またはなし)にリダイレクトするという設定にしました。
設定は、「&lt;span style=&quot;color:red;&quot;&gt;httpd.conf&lt;/span&gt;」または、「&lt;span style=&quot;color:red;&quot;&gt;.htaccess&lt;/span&gt;」にて行います。

WWWあり統一
&lt;div class=&quot;console&quot;&gt;RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ＾(.*)$ http://www.example.com/$1 [R=301, L]
&lt;/div&gt;
WWWなし統一
&lt;div class=&quot;console&quot;&gt;RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com
RewriteRule ＾(.*)$ http://example.com/$1 [R=301, L]
&lt;/div&gt;
終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/6875122890835251355/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/05/urlwww.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6875122890835251355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6875122890835251355'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/05/urlwww.html' title='【サーバ】URLをWWWあり、なしに統一する'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-9136341344265836412</id><published>2012-05-01T00:01:00.000+09:00</published><updated>2012-05-01T00:01:02.941+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Qdmail"/><title type='text'>【PHP】Qdmailでメール送信した際に本文にヘッダーが表示される【Qdmail】</title><content type='html'>&lt;pre&gt;ということで今日あったQdmailの不具合？についてのメモ。

Qdmailでメール送信した際に、ヘッダーの一部またはすべてが
本文に表示されてしまうという不具合？に遭遇しました。


原因としては、ソースコード上の改行コードが違うために
起こってしまうそうです。

Qdmailではヘッダーの改行コードをRFCに準拠していますので「&lt;span style=&quot;color:red;&quot;&gt;CrLf&lt;/span&gt;」なんだそうです。

ただ、qmailなどでメールを送信している場合に「&lt;span style=&quot;color:red;&quot;&gt;CrLf&lt;/span&gt;」だと不具合が起きてしまうことが
あるそうです。

うちのサーバはPostfixでしたが、ダメだったみたいですね。
ですので、改行コードをソースコード上で「&lt;span style=&quot;color:red;&quot;&gt;CrLf&lt;/span&gt;」から「&lt;span style=&quot;color:red;&quot;&gt;Lf&lt;/span&gt;」に変更したところ、
ヘッダーが本文に表示されることは無くなりました。

Qdmailで使用する改行コードを変更するには
「&lt;span style=&quot;color:red;&quot;&gt;lineFeed関数&lt;/span&gt;」を使用します。
&lt;pre class=&quot;brush: php&quot;&gt;$mail-&gt;lineFeed(&quot;\n&quot;);
&lt;/pre&gt;

終わり

参考URL：&lt;a href=&quot;http://hal456.net/qdmail/trouble_1&quot; target=&quot;_blank&quot;&gt;ヘッダーが見えてしまう等 - Qdmail - PHP::Mail Library , Quick and Detailed for Multibyte&lt;/a&gt;

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/9136341344265836412/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/05/phpqdmailqdmail.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/9136341344265836412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/9136341344265836412'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/05/phpqdmailqdmail.html' title='【PHP】Qdmailでメール送信した際に本文にヘッダーが表示される【Qdmail】'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-2994349535665025203</id><published>2012-04-24T21:51:00.001+09:00</published><updated>2012-04-24T21:51:58.040+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>【Linux】コマンドで.htpasswdを生成したりする</title><content type='html'>&lt;pre&gt;ということで、htpasswdのメモ。

普段「&lt;span style=&quot;color:red;&quot;&gt;.htpasswd&lt;/span&gt;」ファイルは、ファイルを作成して
アップロードなり、シンクなりすると思います。

でも今日コマンドでちゃっちゃと作れると聞いたのでメモ

・「&lt;span style=&quot;color:red;&quot;&gt;.htpasswd&lt;/span&gt;」の作成
&lt;div class=&quot;console&quot;&gt;%htpasswd -bc .htpasswd user01 password
&lt;/div&gt;これで、カレントディレクトリに「user01」というユーザで「password」という
パスワードのユーザが作成されます。

・ユーザの追加
&lt;div class=&quot;console&quot;&gt;%htpasswd -b .htpasswd user02 password
&lt;/div&gt;これで、カレントディレクトリにある「&lt;span style=&quot;color:red;&quot;&gt;.htpasswd&lt;/span&gt;」に
「user02」というユーザで「password」というパスワードのユーザが追加されます。

「&lt;span style=&quot;color:red;&quot;&gt;bオプション&lt;/span&gt;」は、ユーザのほかにパスワードを指定して追加します。
「&lt;span style=&quot;color:red;&quot;&gt;cオプション&lt;/span&gt;」は新規にファイルを作成します。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/2994349535665025203/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/04/linuxhtpasswd.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/2994349535665025203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/2994349535665025203'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/04/linuxhtpasswd.html' title='【Linux】コマンドで.htpasswdを生成したりする'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-8678741448386758538</id><published>2012-04-21T18:32:00.000+09:00</published><updated>2012-04-21T18:32:22.676+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>【MySQL】SELECTで取得した値がNULL値だった場合に別の値として取得する</title><content type='html'>&lt;pre&gt;
今のプロジェクトで使ったのでメモ

現在API担当としてシステム開発を行なっているのですが、返却値として「NULL」を
返却せずに「0」を返却して欲しいという要望があったので、
クエリで何とかならないかと思って&lt;span style=&quot;color:red&quot;&gt;COALESCE関数&lt;/span&gt;という関数を見つけました。


関数の内容としては
&lt;div class=&quot;strong_left&quot;&gt;リストの最初の非 NULL 値を戻すか、非 NULL 値がない場合は NULL を戻します。
&lt;/div&gt;と言うことが書いてありました。
翻訳がアレなのでちょっとわかりにくいと思います。

つまり、引数は可変長引数となっており、いくつでも(？)引数を指定することが可能です。
その上で、順番に指定されている引数をチェックしていき、&lt;span style=&quot;color:red;&quot;&gt;「NULL」でない値&lt;/span&gt;を返却します。
「NULL」しか無かった場合は「NULL」を返却します。

例)
&lt;div class=&quot;console&quot;&gt;mysql&gt; SELECT COALESCE(NULL,1);
        -&gt; 1
mysql&gt; SELECT COALESCE(NULL,NULL,NULL);
        -&gt; NULL
&lt;/div&gt;

例えば下記のようなテーブルがあったとします。
&lt;div class=&quot;console&quot;&gt;+---------+--------+-------+
| user_id | name   | value |
+---------+--------+-------+
|       1 | user01 |     5 |
|       2 | user02 |  NULL |
+---------+--------+-------+
&lt;/div&gt;
上記のテーブルを次のSELECTで取得した場合
&lt;pre class=&quot;brush: sql&quot;&gt;SELECT 
  * 
FROM 
  `user`
&lt;/pre&gt;&lt;div class=&quot;console&quot;&gt;+---------+--------+-------+
| user_id | name   | value |
+---------+--------+-------+
|       1 | user01 |     5 |
|       2 | user02 |  NULL |
+---------+--------+-------+
&lt;/div&gt;
「value」カラムにNULLが入ったまま返却されてきます。


次に上記の&lt;span style=&quot;color:red&quot;&gt;COALESCE関数&lt;/span&gt;を使用してSELECTを実行します。
&lt;pre class=&quot;brush: sql&quot;&gt;SELECT 
  `user`.`user_id`, 
  `user`.`name`, 
  COALESCE(`user`.`value`, 0) AS `value` 
FROM 
  `user`
&lt;/pre&gt;&lt;div class=&quot;console&quot;&gt;+---------+--------+-------+
| user_id | name   | value |
+---------+--------+-------+
|       1 | user01 |     5 |
|       2 | user02 |     0 |
+---------+--------+-------+
&lt;/div&gt;
という風に先程「NULL」が入っていたところが「0」として返却されてきます。

本来このような使い方をする関数では無いのかもしれないですが、この関数のお陰で
楽ができました。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/8678741448386758538/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/04/mysqlselectnull.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/8678741448386758538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/8678741448386758538'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/04/mysqlselectnull.html' title='【MySQL】SELECTで取得した値がNULL値だった場合に別の値として取得する'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-8517276171504394252</id><published>2012-04-09T23:18:00.000+09:00</published><updated>2012-04-09T23:18:13.845+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雑記"/><title type='text'>【雑記】4月ということで</title><content type='html'>&lt;pre&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/AVvXsEjfXB_egoFPmlFJKYfluP6EbnveZdh3_R-TdMYi2F0AqywxHKwiFEdPNf7MzV-xFvy4TOEDkBO4udRQ-Ya3nevFMOV3QcYCfPbuFVB7Qz_FsIa-Dg0qJgGmI10Ap2V7AqhyphenhyphenkIOGPwOJHWY/s1600/sakura.jpg&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfXB_egoFPmlFJKYfluP6EbnveZdh3_R-TdMYi2F0AqywxHKwiFEdPNf7MzV-xFvy4TOEDkBO4udRQ-Ya3nevFMOV3QcYCfPbuFVB7Qz_FsIa-Dg0qJgGmI10Ap2V7AqhyphenhyphenkIOGPwOJHWY/s400/sakura.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;



おわり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/8517276171504394252/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/04/4.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/8517276171504394252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/8517276171504394252'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/04/4.html' title='【雑記】4月ということで'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEjfXB_egoFPmlFJKYfluP6EbnveZdh3_R-TdMYi2F0AqywxHKwiFEdPNf7MzV-xFvy4TOEDkBO4udRQ-Ya3nevFMOV3QcYCfPbuFVB7Qz_FsIa-Dg0qJgGmI10Ap2V7AqhyphenhyphenkIOGPwOJHWY/s72-c/sakura.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-6174034731710819357</id><published>2012-03-21T23:26:00.000+09:00</published><updated>2012-03-21T23:26:24.013+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>【PHP】PHPのセッションで第一階層に数字添字を指定した時に発生する問題</title><content type='html'>&lt;pre&gt;
ということでさっきあった現象のメモ

PHPでセッションを使用した際に、セッション変数の第一階層の添字に
数字を指定すると次画面に遷移した際などにそのあたいが引き継がれない。

例えば
&lt;pre class=&quot;brush: php&quot;&gt;&amp;lt;?php

// 動かない
$_SESSION[1][&#39;var&#39;] = &#39;var1&#39;;

// 動く
$_SESSION[&#39;a&#39;][&#39;var&#39;] = &#39;var1&#39;;
&lt;/pre&gt;
このようにセッションの第一階層に数値の添字を指定すると
画面遷移など別画面に遷移しセッションをスタートしても、
数値添字を指定した方だけ取得できなくなります。

これはどうやら内部仕様っぽいです、実際はわからないですが
引き継がれていない以上はそういうものとして扱う必要があるわけです。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/6174034731710819357/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/03/phpphp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6174034731710819357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/6174034731710819357'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/03/phpphp.html' title='【PHP】PHPのセッションで第一階層に数字添字を指定した時に発生する問題'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-298059233305599671</id><published>2012-03-19T22:57:00.000+09:00</published><updated>2012-03-19T22:57:02.725+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雑記"/><title type='text'>【雑記】朝起きたらおじぎが新年初脱皮中だった</title><content type='html'>&lt;pre&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/AVvXsEhpbnWMy3t7_yP9lrEMhPSKv_u-dcO8_NtEvSNdXIpERzWo6EMZwEh7I09TbDJTqXhke5yDtJyfq8X2nqfAXNIYCZ9ROBOkVn9-GHXCA0dGIw_NNdfffPz927mVw3OrjpTA7tLX1gSQkso/s1600/%25E5%2586%2599%25E7%259C%259F+%252813%2529.JPG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpbnWMy3t7_yP9lrEMhPSKv_u-dcO8_NtEvSNdXIpERzWo6EMZwEh7I09TbDJTqXhke5yDtJyfq8X2nqfAXNIYCZ9ROBOkVn9-GHXCA0dGIw_NNdfffPz927mVw3OrjpTA7tLX1gSQkso/s400/%25E5%2586%2599%25E7%259C%259F+%252813%2529.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

もう70cmぐらいですね

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/298059233305599671/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/03/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/298059233305599671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/298059233305599671'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/03/blog-post.html' title='【雑記】朝起きたらおじぎが新年初脱皮中だった'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEhpbnWMy3t7_yP9lrEMhPSKv_u-dcO8_NtEvSNdXIpERzWo6EMZwEh7I09TbDJTqXhke5yDtJyfq8X2nqfAXNIYCZ9ROBOkVn9-GHXCA0dGIw_NNdfffPz927mVw3OrjpTA7tLX1gSQkso/s72-c/%25E5%2586%2599%25E7%259C%259F+%252813%2529.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-2407823483985683638</id><published>2012-03-17T02:49:00.000+09:00</published><updated>2012-03-17T02:49:38.763+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="さくらサーバ"/><title type='text'>【さくらサーバ】PEARをインストールする【PHP】</title><content type='html'>&lt;pre&gt;
ということでさくらサーバにPEARをインストールした時のメモ

さくらサーバにはすでにPEARがインストールされていますが、
バージョンが古い、パッケージを追加できない等の問題がありますので、自前で使用するパッケージを
インストールできるようにしました。

まずは、ホームディレクトリにPEARの設定ファイルを作成します。
&lt;div class=&quot;console&quot;&gt;$ pear config-create $HOME .pearrc
&lt;/div&gt;
次にPEARの設定ファイルに以下の値をセットします。

１．binディレクトリ
&lt;div class=&quot;console&quot;&gt;$ pear config-set bin_dir $HOME/usr/local/bin
&lt;/div&gt;
２．ダウンロードディレクトリ
&lt;div class=&quot;console&quot;&gt;$ pear config-set download_dir $HOME/tmp
&lt;/div&gt;
３．作業用ディレクトリ
&lt;div class=&quot;console&quot;&gt;$ pear config-set temp_dir $HOME/tmp
&lt;/div&gt;
４．ライブラリディレクトリ
&lt;div class=&quot;console&quot;&gt;$ pear config-set php_dir $HOME/lib/pear
&lt;/div&gt;
最後にPEARコマンドを実行できるように、「&lt;span style=&quot;color:red;&quot;&gt;.cshrc&lt;/span&gt;」を編集します。
&lt;div class=&quot;console&quot;&gt;$ setenv PATH (いままで設定されていたパス) : １に設定したパス
$ source $HOME/.cshrc
&lt;/div&gt;
コマンドを実行できるようになったら、PEARをインストールしてみます。
&lt;div class=&quot;console&quot;&gt;$ pear install PEAR
&lt;/div&gt;
下記のコマンドでインストールされていれば完了です。
&lt;div class=&quot;console&quot;&gt;pear list
&lt;/div&gt;
上記設定の場合のインクルードパスは、４で設定したディレクトリになります。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/2407823483985683638/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/03/pearphp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/2407823483985683638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/2407823483985683638'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/03/pearphp.html' title='【さくらサーバ】PEARをインストールする【PHP】'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-3483856133350294293</id><published>2012-03-16T15:34:00.000+09:00</published><updated>2012-03-16T15:34:50.814+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>【Linux】rsyncでSubversion管理のプロジェクトをシンクする</title><content type='html'>&lt;pre&gt;
ということで「&lt;span style=&quot;color:red;&quot;&gt;rsync&lt;/span&gt;」コマンドで
プロジェクトを開発環境から本番環境へ移動する際のメモです。

ファイルを開発環境から本番環境へ移動する際は下記のコマンドを使用します。

&lt;pre class=&quot;brush: bash&quot;&gt;rsync -avz ./target1 ./target2
&lt;/pre&gt;
　target1　がシンク元で　target2　がシンク先になります。

オプションは
&lt;span style=&quot;color:red;&quot;&gt;-a オプション&lt;/span&gt; がシンク元に設定されていたパーミッションなどを保持するオプション
&lt;span style=&quot;color:red;&quot;&gt;-v オプション&lt;/span&gt; がシンク中のファイル名を表示するオプション
&lt;span style=&quot;color:red;&quot;&gt;-z オプション&lt;/span&gt; がデータを圧縮してシンクするオプション

になります。
これとは別に「&lt;span style=&quot;color:red;&quot;&gt;-n オプション&lt;/span&gt;」を追加することにより
コマンド実行時の操作結果を表示します。
実際にシンクはされませんのでテストに使用します。

ですが、試験環境はSubversionで管理されているため、
ディレクトリごとに 「&lt;span style=&quot;color:redl;&quot;&gt;.svn&lt;/span&gt;」 という名前のディレクトリが
作成されます。

これは、本番環境には必要無いのでシンクする必要はありません。

ですので、下記のオプションを追加してシンク対象より弾きます。

&lt;pre class=&quot;brush: bash&quot;&gt;rsync -avz --exclude &quot;.svn&quot; ./target1 ./target2
&lt;/pre&gt;
「&lt;span style=&quot;color:red;&quot;&gt;--exclude オプション&lt;/span&gt;」は、シンク対象より設定されたパターン
に合致するものを弾きます。
つまり上記コマンドの場合は 「&lt;span style=&quot;color:red;&quot;&gt;.svn&lt;/span&gt;」 をシンクしない様になります。

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/3483856133350294293/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/03/linuxrsyncsubversion.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3483856133350294293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3483856133350294293'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/03/linuxrsyncsubversion.html' title='【Linux】rsyncでSubversion管理のプロジェクトをシンクする'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-3256972547128143320</id><published>2012-03-08T20:46:00.000+09:00</published><updated>2012-03-08T20:46:53.500+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>【PHP】可変関数を実行する</title><content type='html'>&lt;pre&gt;
可変関数の実行についてのメモです。

PHPでは変数名の後に「&lt;span style=&quot;color:red;&quot;&gt;()&lt;/span&gt;」が付いている場合
変数の値と同名の関数をコールします。
可変関数は、メンバ関数も関数同様にコールすることができます。
また、スタティック関数もコールできますが、public以上のアクセスレベルだと実行できません。

こんな感じです。
&lt;pre class=&quot;brush: php&quot;&gt;&amp;lt;?php

class variableFunction
{
    public function disp($str)
    {
        echo $str;
    }

    public static function disp2($str);
    {
        echo $str;
    }
}

function disp($str)
{
    echo $str;
}


$func = &#39;disp&#39;;
$str  = &#39;表示&#39;;

// 通常の関数をコール
$func($str);

// インスタンスを生成したクラス関数をコール
$vF = new variableFunction;
$vF-&amp;gt;$func($str);

// variableFunctionクラスのスタティック関数をコール
$func2 = &quot;disp2&quot;;
variableFunction::$func2($str);
&lt;/pre&gt;
&lt;span style=&quot;color:red;&quot;&gt;※echo(), unset(), isset(), empty(), include(), print()のような言語構造と
　組み合わせることはできません。&lt;/span&gt;

終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/3256972547128143320/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/03/php.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3256972547128143320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/3256972547128143320'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/03/php.html' title='【PHP】可変関数を実行する'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-766727836044476078</id><published>2012-03-02T00:41:00.001+09:00</published><updated>2012-03-02T00:42:37.789+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>【MySQL】UPDATE文でサブクエリを使う時の注意</title><content type='html'>&lt;pre&gt;ハマりかけたのでメモ

MySQLのUPDATE文でサブクエリを使う際の注意点です。

下記のように&lt;span style=&quot;color:red;&quot;&gt;UPDATE文では更新対象をサブクエリの問い合わせに
使用することはできません。&lt;/span&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;UPDATE `user` SET 
  `user`.`name` = &#39;test01&#39;
WHERE 
  `user`.`id` = 
  (
    SELECT 
      `user`.`id`
    FROM 
      `user`
    WHERE 
      `user`.`id` = 1
  )
&lt;/pre&gt;こんなUPDATE文は通常有り得ないですが・・・


終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/766727836044476078/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/03/mysqlupdate.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/766727836044476078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/766727836044476078'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/03/mysqlupdate.html' title='【MySQL】UPDATE文でサブクエリを使う時の注意'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-1021492441536240203</id><published>2012-02-27T23:57:00.002+09:00</published><updated>2012-05-01T00:02:59.913+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>【PHP】ループ中のswitchでcontinueしたときにはまった</title><content type='html'>&lt;pre&gt;今日ハマったのでメモ

まず、今日まで知らなかったのですが、PHPにおいて
&lt;span style=&quot;color:red;&quot;&gt;switch&lt;/span&gt;はループ構造らしいです。

ですので、&lt;span style=&quot;color:red;&quot;&gt;switch&lt;/span&gt;中の&lt;span style=&quot;color:red;&quot;&gt;continue&lt;/span&gt;はすべて&lt;span style=&quot;color:red;&quot;&gt;break&lt;/span&gt;と同じ扱いになります。
つまり、下記の例では

&lt;pre class=&quot;brush: php&quot;&gt;&amp;lt;?php

$list = array(
    &#39;1&#39;, &#39;2&#39;, &#39;3&#39;, &#39;4&#39;,
);

foreach ($list as $num)
{
    switch ($num)
    {
        case 1:
            continue;
        default:
            break;
    }

    echo $num . &quot;\r\n&quot;;
}
&lt;/pre&gt;このように出力されます。

&lt;pre class=&quot;brush: php&quot;&gt;1
2
3
4
&lt;/pre&gt;&lt;span style=&quot;color:red;&quot;&gt;switch&lt;/span&gt;内にて１が来た場合ループに戻るように
と書いていますが、これだとただ単に&lt;span style=&quot;color:red;&quot;&gt;break&lt;/span&gt;するのと
一緒になります。

ですので、ループに戻りたい際は下記のように記述します。
&lt;pre class=&quot;brush: php&quot;&gt;&amp;lt;?php

$list = array(
    &#39;1&#39;, &#39;2&#39;, &#39;3&#39;, &#39;4&#39;,
);

foreach ($list as $num)
{
    switch ($num)
    {
        case 1:
            continue 2;
        default:
            break;
    }

    echo $num . &quot;¥r¥n&quot;;
}
&lt;/pre&gt;これでなぜ、ループに戻ることができるのかというと、&lt;span style=&quot;color:red;&quot;&gt;continue&lt;/span&gt;には
戻る階層を指定することができます。
ですので、下記記述ですと、２階層戻ることになりループに戻ることができます。
&lt;pre class=&quot;brush: php&quot;&gt;continue 2;
&lt;/pre&gt;終わり

参考：
&lt;a href=&quot;http://www.php.net/manual/ja/control-structures.switch.php
&quot; target=&quot;_blank&quot;&gt;PHP: switch - Manual&lt;/a&gt;

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/1021492441536240203/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/02/phpswitchcontinue.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/1021492441536240203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/1021492441536240203'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/02/phpswitchcontinue.html' title='【PHP】ループ中のswitchでcontinueしたときにはまった'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-5552673199999373580</id><published>2012-02-25T01:50:00.000+09:00</published><updated>2012-02-25T01:50:35.319+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>【Mac】MacOSX Lion 1.7.3のリカバリメディア作成</title><content type='html'>&lt;pre&gt;
今日思いついたのでリカバリメディアを作成した時のメモです。

今回はUSBとDVDで作成しました。

まず、USBで作成する手順です。
&lt;div class=&quot;strong_left&quot;&gt;用意するもの
&lt;/div&gt;・USB　(容量1GB以上)
・Lion 復元ディスクアシスタント

USBはどこかで買ってきます。
Lion 復元ディスクアシスタントは&lt;a href=&quot;http://support.apple.com/kb/DL1433?viewlocale=ja_JP&amp;locale=ja_JP&quot; target=&quot;_blank&quot;&gt;こちら&lt;/a&gt;からダウンロードしてきます。

USBを接続したら、「Lion 復元ディスクアシスタント」を起動します。
まず、利用規約に同意します。
&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/AVvXsEhPqlnw_6h7aKQjZxAuduh6F-mowxHjhlUrbuguBcdrHevniikhrccc_K6oLoAZSfY-vsOluRhcx_qi7-ruWCcYYuBaviOH5gSMD0JdMayH9mSC_Moh2P_dCXNMrGAb7FFYDplZnb-jVrs/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.26.png&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPqlnw_6h7aKQjZxAuduh6F-mowxHjhlUrbuguBcdrHevniikhrccc_K6oLoAZSfY-vsOluRhcx_qi7-ruWCcYYuBaviOH5gSMD0JdMayH9mSC_Moh2P_dCXNMrGAb7FFYDplZnb-jVrs/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.26.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

復元ディスクを作成するディスクを選択します。
先程接続したUSBを選択して下さい。
選択したら、「続ける」を押下します。
&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/AVvXsEhb3qHvGT7tfRx5QTVaGE468MKnZySe3M64-pPuL_gjTW4ricDMPWm6XVBFauS-zJJxk6kFyQR4UxriEVvmtT1XK1shQKfiiGEmhVxHgxUCw6S8iY-oUrdSrdPdF-tHDlcdE5iqwlK_q4c/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.33.png&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3qHvGT7tfRx5QTVaGE468MKnZySe3M64-pPuL_gjTW4ricDMPWm6XVBFauS-zJJxk6kFyQR4UxriEVvmtT1XK1shQKfiiGEmhVxHgxUCw6S8iY-oUrdSrdPdF-tHDlcdE5iqwlK_q4c/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.33.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

ディスクの作成が始まります。
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin0OeoT6fsMgQ2_kEfyztdSsADQ1tyzrgPPTg95Du4EEOQJn3I31QAzBPjsr3uHVPc6JVVl9t7qkkFswG6m_UPlcLXCBPZHUMOAbGz82uzYRm7MEFu2ZlP8SUOmzVS94Ji9Ju95Jz3NUw/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.44.png&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin0OeoT6fsMgQ2_kEfyztdSsADQ1tyzrgPPTg95Du4EEOQJn3I31QAzBPjsr3uHVPc6JVVl9t7qkkFswG6m_UPlcLXCBPZHUMOAbGz82uzYRm7MEFu2ZlP8SUOmzVS94Ji9Ju95Jz3NUw/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.44.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

完了です。
完了したら、「OPTION」キーを押したままPCを起動します。
起動したら先程作成したUSBを選択し、起動できたら完了です。
&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/AVvXsEj3srZ4gVKhC5j06Kg7_Vu3IC7WJnDJDrrtjKqNi7zhpt-WrNFntzUrT_-df2mGMW9fmOKY-WJ7JZnHDRxiLhYrowE386gK_qJSHkvO4EDCoUy7z2pGkl2JX-QOPZFncJ4V8rKv1Dsuhvs/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.36.44.png&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3srZ4gVKhC5j06Kg7_Vu3IC7WJnDJDrrtjKqNi7zhpt-WrNFntzUrT_-df2mGMW9fmOKY-WJ7JZnHDRxiLhYrowE386gK_qJSHkvO4EDCoUy7z2pGkl2JX-QOPZFncJ4V8rKv1Dsuhvs/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.36.44.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

これでUSBへのリカバリメディア作成は完了です。
次にDVDへのリカバリメディア作成です

&lt;div class=&quot;strong_left&quot;&gt;用意するもの
&lt;/div&gt;・空のDVD-R

まず、PCを再起動し「OPTION」キーを押しっぱなしにします。
すると複数のディスクが表示されますので、「Recovery HD」から起動します。
起動したら「ディスクユーティリティ」を実行します。
ディスクユーティリティを起動すると「disk1」がサイドバーに表示されますので、
「disk1」を選択し「ディスクを作成」を押下します。
ディスクが作成されたら完了です。


終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/5552673199999373580/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/02/macmacosx-lion-173.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/5552673199999373580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/5552673199999373580'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/02/macmacosx-lion-173.html' title='【Mac】MacOSX Lion 1.7.3のリカバリメディア作成'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEhPqlnw_6h7aKQjZxAuduh6F-mowxHjhlUrbuguBcdrHevniikhrccc_K6oLoAZSfY-vsOluRhcx_qi7-ruWCcYYuBaviOH5gSMD0JdMayH9mSC_Moh2P_dCXNMrGAb7FFYDplZnb-jVrs/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2012-02-25+0.35.26.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8877339126373123562.post-4073041688301128191</id><published>2012-02-24T17:17:00.001+09:00</published><updated>2012-03-03T18:07:15.950+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Git"/><category scheme="http://www.blogger.com/atom/ns#" term="さくらサーバ"/><category scheme="http://www.blogger.com/atom/ns#" term="開発環境構築"/><title type='text'>【開発環境構築】さくらのレンタルサーバにGitをインストールする</title><content type='html'>&lt;pre&gt;ということで、さくらのレンタルサーバにGitをインストールした際のメモです。

検索エンジンにて適当に「Git さくらサーバ」で検索してみたのですが、
wgetの所でつまりました。

どうやらどこの記事でも対象のファイルがすでに存在しないようです・・・
ですので、また検索エンジンにて「Git ダウンロード」などで検索し、

&lt;a href=&quot;http://git-scm.com/download&quot; target=&quot;_blank&quot;&gt;Git - Fast Version Control System&lt;/a&gt;というサイトを見つけましたので、
ここでダウンロードしました。
今はGoogleで管理しているのでしょうか？

以下実行手順です。

&lt;pre class=&quot;brush: bash&quot;&gt;$ cd
$ mkdir $HOME/usr
$ mkdir $HOME/usr/local

$ cd 
$ mkdir $HOME/src
$ mkdir $HOME/src/git

$ cd $HOME/src/git
$ wget http://git-core.googlecode.com/files/git-1.7.9.2.tar.gz
$ tar xzf git-1.7.9.2.tar.gz
$ cd git-1.7.9.2
$ ./configure --prefix=$HOME/usr/local
$ gmake prefix=$HOME/usr/local
$ gmake prefix=$HOME/usr/local install
$ export PATH=$HOME/usr/local/bin:$PATH

$ git --version
git version 1.7.9.2
&lt;/pre&gt;これでバージョンが出れば完了です。
もし、exportコマンドが見つからない場合は下記を実行することでできます。

&lt;pre class=&quot;brush: bash&quot;&gt;$ cd
$ vi ./.cshrc
// set pathに下記を追加する。※PATHはスペース区切り
// $HOME/usr/local/bin

$ source ./.cshrc
$ git --version
git version 1.7.9.2
&lt;/pre&gt;終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/4073041688301128191/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/02/git.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/4073041688301128191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/4073041688301128191'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/02/git.html' title='【開発環境構築】さくらのレンタルサーバにGitをインストールする'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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-8877339126373123562.post-7967065901012308602</id><published>2012-02-22T22:45:00.000+09:00</published><updated>2012-02-22T22:45:32.318+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><title type='text'>【iPhone】Safariのバグに遭遇しました。</title><content type='html'>&lt;pre&gt;
先程iPhoneのSafariでネットサーフィンしてたらバグったので記念に


本来ならこのような感じで
検索バーが上に出たままになるはずなのですが、
&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/AVvXsEjCg4EE3kFvRam6BntyfuQzQTq0aIiDizdn8pFnQfZYNLjfoJrcfSh1CnhQnnQNhgI0dQzJTYCpDvDImPc_UF65hqMpF5MHF_H2GJMmNMWNgJ4fiVH5GrnEHWSZY7bpM7_uqnQ1LvEkRN4/s1600/%25E5%2586%2599%25E7%259C%259F+%25283%2529.PNG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; width=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCg4EE3kFvRam6BntyfuQzQTq0aIiDizdn8pFnQfZYNLjfoJrcfSh1CnhQnnQNhgI0dQzJTYCpDvDImPc_UF65hqMpF5MHF_H2GJMmNMWNgJ4fiVH5GrnEHWSZY7bpM7_uqnQ1LvEkRN4/s400/%25E5%2586%2599%25E7%259C%259F+%25283%2529.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

このように検索バーが消えてしまい操作不能になりました。
&lt;span style=&quot;color:red;&quot;&gt;※何を選択しても読みこむが画面遷移しない&lt;/span&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/AVvXsEjj3qE5qhinvRZeaQpw0vNDl-V2ZiubMO_g9pcQBtt_AbBedE0dksJyK5E7ZTB_D_-t1Vvburd3AWbZPR9zNQw3F0Zwgxs1rRvgJELWKwOFSmgm9T9t8nnvWi9sMO77oR5hj5VWxJN4gf0/s1600/%25E5%2586%2599%25E7%259C%259F+%25282%2529.PNG&quot; imageanchor=&quot;1&quot; style=&quot;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; width=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj3qE5qhinvRZeaQpw0vNDl-V2ZiubMO_g9pcQBtt_AbBedE0dksJyK5E7ZTB_D_-t1Vvburd3AWbZPR9zNQw3F0Zwgxs1rRvgJELWKwOFSmgm9T9t8nnvWi9sMO77oR5hj5VWxJN4gf0/s400/%25E5%2586%2599%25E7%259C%259F+%25282%2529.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
タスク終了で元に戻りました。



再現しなかったのですが、現象が発生した際の操作手順です。

新規タブを開く -&gt; 適当に入力 -&gt; 検索結果を押下

通常の操作ですね・・・何がいけなかったんでしょうか・・・


推測ですが、このページ”(0件一致)”というのに何か原因があるんでしょう


終わり

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://memo-txt.blogspot.com/feeds/7967065901012308602/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://memo-txt.blogspot.com/2012/02/iphonesafari.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/7967065901012308602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8877339126373123562/posts/default/7967065901012308602'/><link rel='alternate' type='text/html' href='http://memo-txt.blogspot.com/2012/02/iphonesafari.html' title='【iPhone】Safariのバグに遭遇しました。'/><author><name>redwarcueid</name><uri>http://www.blogger.com/profile/16262190646272497769</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/AVvXsEjCg4EE3kFvRam6BntyfuQzQTq0aIiDizdn8pFnQfZYNLjfoJrcfSh1CnhQnnQNhgI0dQzJTYCpDvDImPc_UF65hqMpF5MHF_H2GJMmNMWNgJ4fiVH5GrnEHWSZY7bpM7_uqnQ1LvEkRN4/s72-c/%25E5%2586%2599%25E7%259C%259F+%25283%2529.PNG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>