<?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-289624474777071230</id><updated>2024-11-20T10:01:48.737+09:00</updated><category term="BigQuery"/><category term="PHP"/><category term="git"/><category term="GAS"/><category term="gitlab"/><category term="fuelphp"/><category term="gae"/><category term="android"/><category term="anyenv"/><category term="github"/><category term="mobile"/><category term="phpenv"/><category term="redis"/><category term="svn"/><category term="wordpress"/><title type='text'>memo</title><subtitle type='html'>Indonesiaに住んでます (surabaya→jakarta)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><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>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-289624474777071230.post-1843600739610313132</id><published>2017-07-13T14:33:00.000+09:00</published><updated>2017-07-13T14:33:02.254+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mobile"/><title type='text'>モバイルサイトの表示速度計測</title><content type='html'>モバイルサイトの表示速度をはかってくれるツール。便利。&lt;br /&gt;
&lt;br /&gt;
https://testmysite.thinkwithgoogle.com/intl/en-us</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/1843600739610313132/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2017/07/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1843600739610313132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1843600739610313132'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2017/07/blog-post.html' title='モバイルサイトの表示速度計測'/><author><name>Unknown</name><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-289624474777071230.post-3278291026399986873</id><published>2016-08-28T18:52:00.004+09:00</published><updated>2016-08-29T19:47:46.185+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="anyenv"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="phpenv"/><title type='text'>macにanyenvでphpenvをinstall</title><content type='html'>anyenvはgithubに書いてある通り&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;anyenv&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
 https://github.com/riywo/anyenv
&lt;/blockquote&gt;
&lt;br /&gt;
phpenvは色々必要だったのでbrew経由でinstall&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt; brew&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
http://brew.sh/index_ja.html&lt;/blockquote&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;ライブラリ&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
brew install jpeg&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
brew install libpng&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
brew install mcrypt&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
brew install autoconf&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
brew install automake&lt;/blockquote&gt;
あとは普通に&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;phpenv install 5.6.25&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
phpenv global 5.6.25&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
phpenv rehash&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
php -v&lt;span id=&quot;goog_945531430&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_945531431&quot;&gt;&lt;/span&gt;&lt;a href=&quot;https://www.blogger.com/&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/3278291026399986873/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2016/08/anyenvphpenvinstall.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/3278291026399986873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/3278291026399986873'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2016/08/anyenvphpenvinstall.html' title='macにanyenvでphpenvをinstall'/><author><name>Unknown</name><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-289624474777071230.post-2025575520258876664</id><published>2015-07-15T18:16:00.000+09:00</published><updated>2015-07-15T18:18:17.155+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>wordpress.comにアカウントだけ作る</title><content type='html'>調べたけど引っかからなかったのでメモ&lt;br /&gt;
&lt;br /&gt;
Wordpressでjetpackを利用する際にwordpress.comのアカウントが必要だが、&lt;br /&gt;
普通にhttp://wordpress.com/からボタンをぽちぽちしながら進むと、サイトを作れと言われる。&lt;br /&gt;
&lt;br /&gt;
以下のURLから行けばサイト登録不要で、アカウントだけ作れる。&lt;br /&gt;
&lt;br /&gt;
https://wordpress.com/start/account/user&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/AVvXsEg1vyBXeAEqOEn3hsr42As0fmhLLgTXUXAIW_4idBv17w9yKmYNfxvnRGZnyiBKlDy72ZPyr21DSR19ZqTbeONGhWeM3WChO_aK8bMBs0KFTTkusx92VjZCAdiDI-SYlkgK0idvCl5Phfw/s1600/wordpress.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1vyBXeAEqOEn3hsr42As0fmhLLgTXUXAIW_4idBv17w9yKmYNfxvnRGZnyiBKlDy72ZPyr21DSR19ZqTbeONGhWeM3WChO_aK8bMBs0KFTTkusx92VjZCAdiDI-SYlkgK0idvCl5Phfw/s320/wordpress.png&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/2025575520258876664/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2015/07/wordpresscom.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/2025575520258876664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/2025575520258876664'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2015/07/wordpresscom.html' title='wordpress.comにアカウントだけ作る'/><author><name>Unknown</name><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/AVvXsEg1vyBXeAEqOEn3hsr42As0fmhLLgTXUXAIW_4idBv17w9yKmYNfxvnRGZnyiBKlDy72ZPyr21DSR19ZqTbeONGhWeM3WChO_aK8bMBs0KFTTkusx92VjZCAdiDI-SYlkgK0idvCl5Phfw/s72-c/wordpress.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-289624474777071230.post-1098422334378676534</id><published>2015-04-17T15:57:00.002+09:00</published><updated>2015-04-17T15:57:56.434+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fuelphp"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>fuelphpで更新日を更新したい</title><content type='html'>\Orm\Modelを読むとデータに変更があった場合だけ更新日付が変わるようになっていた。&lt;br /&gt;
これにはcreated_at, updated_atも含まれるので&lt;br /&gt;
&lt;br /&gt;
$model-&amp;gt;updated_at = 0;&lt;br /&gt;
$model-&amp;gt;save();&lt;br /&gt;
&lt;br /&gt;
で、更新が出来る</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/1098422334378676534/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2015/04/fuelphp.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1098422334378676534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1098422334378676534'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2015/04/fuelphp.html' title='fuelphpで更新日を更新したい'/><author><name>Unknown</name><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-289624474777071230.post-6717613139664518711</id><published>2015-02-24T13:34:00.000+09:00</published><updated>2015-05-28T15:28:10.912+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="gitlab"/><title type='text'>bitbucketからgitlab.comへの移行</title><content type='html'>gitlab.comのprivate repository無制限に惹かれて、移行の実験をした時のメモ&lt;br /&gt;
&lt;br /&gt;
1. repositoryの移行&lt;br /&gt;
&amp;nbsp; &amp;nbsp;gitlab.comのrepository作成時にhttpsのURLを指定すれば移行完了&lt;br /&gt;
&lt;br /&gt;
2. issueの移行&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2-1.&amp;nbsp;https://github.com/gitlabhq/gitlab-recipes/tree/master/import/bitbucketのスクリプトをもってくる&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2-2. namespace/projectの指定だと動かないので、&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; https://gitlab.com/api/v3/projects?private_token=[private_token]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; からprojectのidを引っ張ってくる&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2-3. &amp;nbsp;@project=&#39;[2-2で取得したprojectのid]&#39;に変更して実行&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/6717613139664518711/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2015/02/bitbucketgitlabcom.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/6717613139664518711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/6717613139664518711'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2015/02/bitbucketgitlabcom.html' title='bitbucketからgitlab.comへの移行'/><author><name>Unknown</name><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-289624474777071230.post-4307486702357239480</id><published>2014-07-09T23:43:00.004+09:00</published><updated>2014-07-09T23:43:55.567+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fuelphp"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>fuelphpでThe requested view could not be foundではまった</title><content type='html'>fulephpは「php oil g admin category name:text」みたいに簡単にさくっと管理画面が作れて便利ですが、windowsで作ってEC2(Linux)でも見てみようと思ったらThe requested view could not be foundが出て、あせった。&lt;br /&gt;
&lt;br /&gt;
答えはwindowsで作った時にファイルセパレータが&lt;br /&gt;
$this-&amp;gt;template-&amp;gt;content = View::forge(&#39;admin\area/index&#39;, $data);&lt;br /&gt;
となってしまっていたので、&lt;br /&gt;
$this-&amp;gt;template-&amp;gt;content = View::forge(&#39;admin/area/index&#39;, $data);&lt;br /&gt;
に直して修正完了。&lt;br /&gt;
&lt;br /&gt;
便利すぎて気がつかなかった。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/4307486702357239480/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2014/07/fuelphpthe-requested-view-could-not-be.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/4307486702357239480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/4307486702357239480'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2014/07/fuelphpthe-requested-view-could-not-be.html' title='fuelphpでThe requested view could not be foundではまった'/><author><name>Unknown</name><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-289624474777071230.post-3191952185870048607</id><published>2014-07-04T19:40:00.001+09:00</published><updated>2014-07-05T14:26:43.074+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="redis"/><title type='text'>WindowsへRedisをインストールする</title><content type='html'>https://github.com/msopenTech/redis/ から最新版を取得して、&lt;br /&gt;
/bin/releaseにあるzipを解凍する。&lt;br /&gt;
&lt;br /&gt;
出てきたRedisService.docxに従ってサービス登録すれば完了。&lt;br /&gt;
&lt;br /&gt;
PHP用クライアントは&lt;br /&gt;
http://char101.github.io/phpredis/&lt;br /&gt;
ここからバージョンにあったDLLをもってきて、php.iniに登録&lt;br /&gt;
&lt;br /&gt;
バージョンが違うと静かに動かないので注意</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/3191952185870048607/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2014/07/windowsredis.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/3191952185870048607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/3191952185870048607'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2014/07/windowsredis.html' title='WindowsへRedisをインストールする'/><author><name>Unknown</name><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-289624474777071230.post-2598614495284401430</id><published>2014-06-12T13:09:00.000+09:00</published><updated>2014-06-12T13:09:19.764+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="github"/><category scheme="http://www.blogger.com/atom/ns#" term="gitlab"/><title type='text'>gitlab から githubの移行でgithubの50 MB制限で困った</title><content type='html'>githubには50 MB制限があるけど、gitlabは特に設けていなかった。&lt;br /&gt;
今回移行する時その制限に引っ掛かったが、以下の手順で解決。&lt;br /&gt;
&lt;br /&gt;
https://help.github.com/articles/working-with-large-files&lt;br /&gt;
&lt;br /&gt;
※ただし、該当のコミットは消えるので、コミットを特定し、消えても良い場合だけ実施する。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/2598614495284401430/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2014/06/gitlab-githubgithub50-mb.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/2598614495284401430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/2598614495284401430'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2014/06/gitlab-githubgithub50-mb.html' title='gitlab から githubの移行でgithubの50 MB制限で困った'/><author><name>Unknown</name><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-289624474777071230.post-7523854983373011199</id><published>2013-08-16T15:10:00.000+09:00</published><updated>2014-06-12T12:49:43.107+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>gitで一部だけ抜き出したい git subtree</title><content type='html'>とあるプロジェクトであまりにもでかい画像を含んでいて、でも一部だけ特定のメンバーに共有したかったので、抜き出してみた時のメモ&lt;br /&gt;
&lt;br /&gt;
1.元のプロジェクトをpull&lt;br /&gt;
2.以下のコマンドを実行&lt;br /&gt;
&lt;br /&gt;
git subtree push --prefix prefix git@192.168.100.1:dest.git master&lt;br /&gt;
&lt;br /&gt;
※git subtreeは&lt;a href=&quot;https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt&quot;&gt;https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
jenkinsで元プロジェクトが更新されたら実行するようにしたので楽ちん。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/7523854983373011199/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2013/08/git.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/7523854983373011199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/7523854983373011199'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2013/08/git.html' title='gitで一部だけ抜き出したい git subtree'/><author><name>Unknown</name><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-289624474777071230.post-245823261339633069</id><published>2012-10-27T00:42:00.001+09:00</published><updated>2013-08-16T15:11:10.941+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="gitlab"/><category scheme="http://www.blogger.com/atom/ns#" term="svn"/><title type='text'>svnからgitlabに移行してみた</title><content type='html'>gitがかわいくて仕方が無いので、gitを使いたかったからちょっと頑張った。&lt;br /&gt;
svnが居たところはしにそうなので、別のサーバに移し替えた。&lt;br /&gt;
以下メモ。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.svnから該当のプロジェクトをexport&lt;br /&gt;
svnadmin dump /svn/hoge &amp;gt; ~/hoge.dump&lt;br /&gt;
&lt;br /&gt;
2.scpでgitサーバにコピー&lt;br /&gt;
scp hoge.dump user@192.168.1.1:~/&lt;br /&gt;
&lt;br /&gt;
3.import用のレポジトリ作成&lt;br /&gt;
mkdir /svn/hoge&lt;br /&gt;
svnadmin create --fs-type fsfs /svn/hoge&lt;br /&gt;
&lt;br /&gt;
4.svnにimport&lt;br /&gt;
svnadmin load /svn/hoge &amp;lt; ~/hoge.dump&lt;br /&gt;
&lt;br /&gt;
5.適当なディレクトリにsvnからgitにclone&lt;br /&gt;
mkdir ~/temp&lt;br /&gt;
cd /temp&lt;br /&gt;
git svn clone -s file:///svn/hoge&lt;br /&gt;
&lt;br /&gt;
6.gitlabへ入れる&lt;br /&gt;
git remote add origin git@192.168.1.1:hoge.git&lt;br /&gt;
git push origin master&lt;br /&gt;
※先にgitlabからレポジトリを作っておく&lt;br /&gt;
※GitLabのなんかのユーザに鍵を設定しておく&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/245823261339633069/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/10/svngitlab.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/245823261339633069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/245823261339633069'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/10/svngitlab.html' title='svnからgitlabに移行してみた'/><author><name>Unknown</name><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-289624474777071230.post-6241151035023448978</id><published>2012-07-23T13:23:00.000+09:00</published><updated>2012-07-23T13:23:22.604+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gae"/><title type='text'>GAEのbackendsからdefaultのインスタンスを呼びたかった</title><content type='html'>backendsで動いている処理からdefault queueにtaskをaddするとbackendsのインスタンスで動く事に今日気づいた。&lt;br /&gt;
後からaddしている処理はbackendsでは動かしたく無かったからどうすればいいのか調べたけどそれらしい記述が無かったのでメモ。&lt;br /&gt;
&lt;br /&gt;
taskqueue.add(url=url, target=&#39;default&#39;)&lt;br /&gt;
&lt;br /&gt;
targetにdefaultを指定するだけ。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/6241151035023448978/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/07/gaebackendsdefault.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/6241151035023448978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/6241151035023448978'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/07/gaebackendsdefault.html' title='GAEのbackendsからdefaultのインスタンスを呼びたかった'/><author><name>Unknown</name><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-289624474777071230.post-2676122570178188851</id><published>2012-07-10T16:58:00.002+09:00</published><updated>2012-07-10T16:58:34.352+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><title type='text'>BigQueryでRow larger than the maximum allowed size</title><content type='html'>適当にデータを入れていたら、Row larger than the maximum allowed sizeと言われた。&lt;br /&gt;
そう言えば最大っていくつなんだろうと思ってググったら64KBだそうな。&lt;br /&gt;
&lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!topic/bigquery-discuss/vGAtQ5Q3IE4&quot;&gt;https://groups.google.com/forum/?fromgroups#!topic/bigquery-discuss/vGAtQ5Q3IE4&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
なんでもかんでも入れておけばいいというわけでも無さそう。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/2676122570178188851/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/07/bigqueryrow-larger-than-maximum-allowed.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/2676122570178188851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/2676122570178188851'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/07/bigqueryrow-larger-than-maximum-allowed.html' title='BigQueryでRow larger than the maximum allowed size'/><author><name>Unknown</name><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-289624474777071230.post-1529248467093057142</id><published>2012-07-04T15:48:00.002+09:00</published><updated>2012-07-04T15:48:50.663+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="GAS"/><title type='text'>BigQueryのINTEGERでIS NULL</title><content type='html'>今度は数値で0と存在しないものを分けたかったが、&lt;br /&gt;
こっちもうまく行かなかった。&lt;span style=&quot;background-color: white;&quot;&gt;勝手に0に変換されて返ってくる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;IS NULLがおかしいのかなと思って以下のようなクエリを試してみたら、&lt;/span&gt;&lt;br /&gt;
クエリ&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;S&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ELECT NULL, IS_NULL(NULL), IS_NULL(col) FROM hoge&lt;/span&gt;&lt;br /&gt;
結果&lt;br /&gt;
null, true, false&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;前2つはちゃんと期待通り、colをis nullで見ている所は中身が0に変わっているので、falseになるっぽい。&lt;/span&gt;&lt;br /&gt;
ブラウザツールがおかしいのかもと思って、念のためGASからも実行してみたけど、同じだった。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/1529248467093057142/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/07/bigqueryintegeris-null.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1529248467093057142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1529248467093057142'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/07/bigqueryintegeris-null.html' title='BigQueryのINTEGERでIS NULL'/><author><name>Unknown</name><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-289624474777071230.post-1517574745532169783</id><published>2012-06-23T13:35:00.000+09:00</published><updated>2012-06-23T13:37:04.471+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="GAS"/><title type='text'>BigQueryをGASで動かしてSpreadSheetに結果を書いたらtimeoutになった</title><content type='html'>あまり実行時間が長くなるとまずいらしい。&lt;br /&gt;
自分で書いたコードが、BigQueryが早いとは言え、&lt;br /&gt;
何本かクエリを実行せざるを得なくて、&lt;span style=&quot;background-color: white;&quot;&gt;1分ぐらいはとられる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;なので、scriptの方でどうにかした。以下が詳しい。&lt;/span&gt;&lt;br /&gt;
http://stackoverflow.com/questions/7854573/exceeded-maximum-execution-time-in-google-apps-script&lt;br /&gt;
&lt;br /&gt;
書き込み回数を減らす事だけで、解決した。&lt;br /&gt;
毎行ごとに書き込んでいた時はtime outになる事があったが、&lt;br /&gt;
500件ごとにしたら、Queryの実行時間+α位の所に落ち着いた。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/1517574745532169783/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigqueryspreadsheettimeout.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1517574745532169783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1517574745532169783'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigqueryspreadsheettimeout.html' title='BigQueryをGASで動かしてSpreadSheetに結果を書いたらtimeoutになった'/><author><name>Unknown</name><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-289624474777071230.post-8025513876836476967</id><published>2012-06-18T12:28:00.001+09:00</published><updated>2012-06-23T13:27:13.161+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="GAS"/><title type='text'>BigQueryとSpreadSheetを連携する時の権限</title><content type='html'>SpreadSheetを共有してみんなで見れるようにしようとしたら、&lt;br /&gt;
権限が無いとエラーが出てスクリプトがうまく実行されなかった。&lt;br /&gt;
API Keyだけあればできるかと思っていたけど、&lt;br /&gt;
API自体の参照権限も必要だった。&lt;br /&gt;
これをつけたら問題無く共有したSpreadSheetでBigQueryのデータを取得出来た。&lt;br /&gt;
でもこうするとCloud Storageとか、他のも見れるようになるからなんだかむずがゆい。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/8025513876836476967/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigqueryspreadsheet.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/8025513876836476967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/8025513876836476967'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigqueryspreadsheet.html' title='BigQueryとSpreadSheetを連携する時の権限'/><author><name>Unknown</name><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-289624474777071230.post-1871438558786293722</id><published>2012-06-12T15:40:00.001+09:00</published><updated>2012-06-12T15:40:39.775+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><title type='text'>BigQueryのSTRINGでIS NULL</title><content type='html'>BigQuery Browser ToolのPreviewで見ると「null」と表示されているSTRINGのデータに対して、IS NULLで評価しようとすると期待した値が戻ってこない。 = &quot;&quot; (空文字)だと期待通り。&lt;br /&gt;
Previewがおかしいのかどうかは分からないが、そのうちnullの扱いが変わったりしそうだから、nullを使うのを避けて、明示的に空文字にしておいた方が良さそう。&lt;br /&gt;
sampleのgithub_timelineでもそうなるから、データの問題ではなさそう。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/1871438558786293722/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigquerystringis-null.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1871438558786293722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1871438558786293722'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigquerystringis-null.html' title='BigQueryのSTRINGでIS NULL'/><author><name>Unknown</name><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-289624474777071230.post-7479878023049802776</id><published>2012-06-12T13:35:00.000+09:00</published><updated>2012-06-12T13:35:58.523+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BigQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="gae"/><title type='text'>BigQueryにservice accountでアクセス</title><content type='html'>Cloud Strage経由でimportするから、同じように扱いたかったから調べた。&lt;br /&gt;
これで出来た。&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/google-api-python-client/issues/detail?id=133&quot;&gt;http://code.google.com/p/google-api-python-client/issues/detail?id=133&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/7479878023049802776/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigqueryservice-account.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/7479878023049802776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/7479878023049802776'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2012/06/bigqueryservice-account.html' title='BigQueryにservice accountでアクセス'/><author><name>Unknown</name><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-289624474777071230.post-1456297845562939289</id><published>2011-08-30T14:38:00.000+09:00</published><updated>2011-08-30T14:38:26.041+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>onCreateDialog</title><content type='html'>久々にはまったのでメモ。&lt;br /&gt;
onCreateDialogに全部のダイアログを集約したら、&lt;br /&gt;
一度作成されるとそのまま使われることを気づかずに、はまった。&lt;br /&gt;
たとえば、リスナの内容を毎回変える必要があれば、&lt;br /&gt;
必ずremoveDialogを忘れずに。&lt;br /&gt;
※API Level8以降なら、Bundleを渡せるので気にしないでいいけど、そうじゃないとき限定で。</content><link rel='replies' type='application/atom+xml' href='http://peten-jp.blogspot.com/feeds/1456297845562939289/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://peten-jp.blogspot.com/2011/08/oncreatedialog.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1456297845562939289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/289624474777071230/posts/default/1456297845562939289'/><link rel='alternate' type='text/html' href='http://peten-jp.blogspot.com/2011/08/oncreatedialog.html' title='onCreateDialog'/><author><name>Unknown</name><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></feed>