<?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-2616673841565160559</id><updated>2024-08-29T14:05:05.966+09:00</updated><category term="rails"/><category term="ruby"/><category term="英語"/><category term="appium"/><category term="歴史"/><category term="Linux"/><category term="apache"/><category term="php"/><category term="フィリピン"/><category term="calabash"/><category term="ソースコードリーディング(Rails3.2.8)"/><category term="メタプログラミング"/><category term="健康"/><category term="capistrano"/><category term="git"/><category term="mac"/><category term="rvm"/><category term="Ubuntu"/><category term="capybara"/><category term="iPhone"/><category term="労働倫理"/><category term="合気道"/><category term="Chien-fu"/><category term="heroku"/><category term="mysql"/><category term="postgres"/><category term="selenium"/><category term="vegetable restaurant"/><category term="チューニング"/><category term="就職"/><category term="経済"/><category term="開発ツール"/><title type='text'>宇大を出たけれど</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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>124</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2616673841565160559.post-9039712059655776067</id><published>2019-01-03T18:58:00.005+09:00</published><updated>2019-01-10T14:02:18.873+09:00</updated><title type='text'>セブ島にあるシェアハウスひなた（ひなたハウス）のレビュー</title><summary type="text">セブ島の「シェアハウスひなた」は最悪です。
http://hinatashare.com/

夫妻が二人で経営しているシェアハウスです。
端的に言って、私は二度と使うことはありません。
その理由を下に書いていきます。

大通り沿いなので、車の音がうるさい。
大通り沿いなので、部屋の空気が悪い。
近くにライブハウス？があるため、クリスマス、年末、その他のイベント時には重低音のサウンドが流れてきます。普通の人は眠れないと思います。
値段が高い。サイトからは読み取りづらいのですが、賃料＋光熱費で14,000ペソから16,000ペソほど取られます。これなら、別のコンドミニアムで個室をAirbnbで借りても同じ値段ですね。
日中、常に部屋にいる人は追加で1,000ペソを払う必要があります。
洗濯は、一週間に一度しかできません。洗濯物は夕方の16時までに取り込まないと駄目です。天気や働いている人の</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/9039712059655776067/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/9039712059655776067' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/9039712059655776067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/9039712059655776067'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2019/01/blog-post.html' title='セブ島にあるシェアハウスひなた（ひなたハウス）のレビュー'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-2441382464749969283</id><published>2015-12-23T15:22:00.003+09:00</published><updated>2015-12-23T15:22:19.463+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capistrano"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><title type='text'>Capistranoの実行環境を作成する3</title><summary type="text">Front1 serverでの作業
SSLのkeyを作成

sudo openssl req -new -days 365 -x509 -nodes -keyout cert.key -out cert.crt


mv cert.key /etc/nginx


mv cert.crt /etc/nginx


udo vi /etc/nginx/conf.d/target.conf


try_filesの設定が重要になります。
1、$uri
2、$uri.html
3、$uri/index.html
とアクセスして、最後に@appにアクセスします。
4、location @appに遷移
5、proxy_passでupstream backend-unicornに遷移。
6、Rails側でも設定したunicorn.sockにアクセスがいきます。


upstream </summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/2441382464749969283/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/2441382464749969283' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/2441382464749969283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/2441382464749969283'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/12/capistrano3.html' title='Capistranoの実行環境を作成する3'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-4735479610388280889</id><published>2015-12-23T15:07:00.003+09:00</published><updated>2015-12-29T17:31:39.484+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capistrano"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><title type='text'>Capistranoの実行環境を作成する2</title><summary type="text">japan user in Host

ssh-keygen -t rsa

パスワードはpassword

su - japan

git cloneで対象をダウンロード

git clone git@github.com

cd your dir

bundle install --path vendor/bundle

確認

bundle exec cap -T

eval `ssh-agent -s`

ssh-add ~/.ssh/id_rsa

ここにはdevelopment, staging, productionに共通の設定を記述

vi config/deploy.rb

lock &#39;3.2.1&#39;
set :user, &#39;japan&#39;
set :application, &#39;target&#39;
set :repo_url, &#39;git@</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/4735479610388280889/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/4735479610388280889' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/4735479610388280889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/4735479610388280889'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/12/capistrano2.html' title='Capistranoの実行環境を作成する2'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-3066119472833662699</id><published>2015-12-22T17:49:00.002+09:00</published><updated>2015-12-22T18:01:15.666+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capistrano"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><title type='text'>Capistranoの実行環境を作成する1</title><summary type="text">前提


Mac環境
VirtualBoxはinstall済み
Vagrantはinstall済み


mkdir cap_test

cd cap_test

vagrant box add &quot;centos_6.6&quot; https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.0.0/centos-6.6-x86_64.box

vagrant init

vi Vagrantfile

Vagrant.configure(2) do |config|
  config.vm.define &quot;host&quot; do |node|
    node.vm.box = &quot;centos_6.6&quot;
    node.vm.hostname = &quot;host&quot;
    node.vm.network :</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/3066119472833662699/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/3066119472833662699' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/3066119472833662699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/3066119472833662699'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/12/capistrano1.html' title='Capistranoの実行環境を作成する1'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-6827125621391870212</id><published>2015-10-23T17:08:00.003+09:00</published><updated>2015-10-23T17:08:44.134+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>phpはThreadセーフみたい</title><summary type="text">php -v

PHP 5.4.42 (cli) (built: Jul  1 2015 22:46:17) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies


php -i | grep -i &quot;thread&quot;

Thread Safety =&amp;gt; enabled

今はphpはthreadセーフなのか。。。
てことはApacheのmpmは何でもいいですね。</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/6827125621391870212/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/6827125621391870212' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/6827125621391870212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/6827125621391870212'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/10/phpthread.html' title='phpはThreadセーフみたい'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-5031385563624104399</id><published>2015-09-13T20:04:00.002+09:00</published><updated>2015-09-17T18:54:32.463+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'>PHPでApacheを使う時のパラメータチューニングとメモ</title><summary type="text">ApacheのMPMは、どちらを選択するべきか？

mod_phpは非スレッドセーフ
prefork MPMリクエストごとにプロセスを生成し、処理が終わればそのプロセスが死ぬ。
worker MPMリクエストごとにスレッドを生成する。スレッドセーフでないApacheモジュールがあるとバグる

phpを使う時はperforkを使う必要がある。
Apache2.4からはdefaultのmpmがeventのため、コンパイル時には気をつける必要がある。

./configure \
--prefix=/usr/local/apache2.4.12 \
--enable-so \
--enable-ssl \
--enable-mods-shared=all \
--with-expat=builtin \
--with-included-apr \
--enable-proxy \
-</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/5031385563624104399/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/5031385563624104399' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/5031385563624104399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/5031385563624104399'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/09/apache.html' title='PHPでApacheを使う時のパラメータチューニングとメモ'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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/AVvXsEgHS0iDBi8krRA75u8qIOEyMs39t3isrrC4cmb4L8gjdUHgfMZ4NaQTXl5ajveMgN-wo08IhYDF9dndJ6zPCUdpg1oAVR7H8S0sxO6VDy1qzZOZY37F4eAP3Qmbkq0OP2Nz6ZEhUPTdSZE/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+2015-09-17+17.52.11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2616673841565160559.post-4271469383518138626</id><published>2015-08-31T18:20:00.001+09:00</published><updated>2015-08-31T18:23:41.183+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>MySQL5.6のsql_mode</title><summary type="text">MySQL5.6でsql_modeがdefaultで設定された。今まではMySQL5.5を使っていたので、それは困る。ということでsql_modeを無効にする。sqll_modeを設定しているところが/usr/my.cnfにもあって、少しはまったというお話。


コマンドラインからはこんな感じで確認。



show variables LIKE &#39;sql_mode&#39;;





vi /usr/my.cnf








これをコメントアウト




今度は/etc/my.cnfの方に追記
vi /etc/my.cnf


[mysqld]
sql_mode=&#39;&#39;

/etc/init.d/mysql restart
</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/4271469383518138626/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/4271469383518138626' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/4271469383518138626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/4271469383518138626'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/08/mysql56sqlmode.html' title='MySQL5.6のsql_mode'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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/AVvXsEhi49cJCd9YsSnXlyQyjJlX-en1oXIG23YmetvP94f267FtWi8TijJsKDh2vXwILQTOvacaY0iYYhgjVMa8dSq9zjEwfKXqr86pNptmR3qsqcdQjsacuGbPWH7NWW0PWUtuUbx61Tpu760/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+2015-08-31+17.15.12.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2616673841565160559.post-4161082317854795302</id><published>2015-01-08T23:52:00.003+09:00</published><updated>2015-01-08T23:56:53.515+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="フィリピン"/><title type='text'>マニラからタガイタイへの旅行</title><summary type="text">マニラから一日で行ける有名な観光地に、タガイタイがあります。フィリピン人にも人気のスポットです。なかでも人気の場所はタール胡とタール火山で、タール胡の中に島があり、その島の中にもう一つ湖があります。
マニラからタガイタイへ行く方法は二つあります。
一つはバスでタガイタイに行って、そこからトライシクルに乗って湖畔まで行く方法です。バスに3時間、トライシクルに30分ほど乗ります。この方法だと800ペソぐらいで行けます。でも、この方法はバスに慣れていない観光客にはお勧めできません。
もう一つの方法は、ドライバーごと車を貸切る方法です。これだと4000から4500ペソで行けます。
次に湖畔からボートに乗って、タール胡の真ん中にある島に行く必要があります。そしてタール胡についたら、そこからは馬に乗って山頂を目指すか、徒歩で目指すかを選べます。ボート代と馬代で1500ペソでした。

このボートに乗</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/4161082317854795302/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/4161082317854795302' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/4161082317854795302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/4161082317854795302'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/01/blog-post_8.html' title='マニラからタガイタイへの旅行'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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="http://2.bp.blogspot.com/-GBGvSO8Z0xg/VK6Zp27J6bI/AAAAAAAAAX8/2ati5cscKRk/s72-c/boat.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2616673841565160559.post-9063195200447340657</id><published>2015-01-08T23:25:00.000+09:00</published><updated>2015-11-21T16:06:56.008+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="健康"/><title type='text'>後鼻漏の治療方法</title><summary type="text">後鼻漏の手術に関する記事を以前に書きましたが、今回はその後について少し書きたいと思います。
手術後に後鼻漏の症状は劇的によくなったのですが、完全に治るまでには至りませんでした。症状はよくなったものの、そこは人間ですから完治したいという欲が出てきます。それで自分なりに努力したところ、少しずつ症状が改善されてきたので、具体的な方法を書きたいと思います。


笹ヘルスを使用したうがい。薬を喉まで入れたあと、頭を下にして左右にふります。すると薬がちょうど上咽頭にあたって、少しヒリヒリします。そしてそれを飲みます。これを2回ぐらい行います。
超音波吸入器を使用する。これを毎日、行います。
鼻うがいを毎日、行います。
口呼吸を止めて、なるべく鼻呼吸を心掛ける。
基礎体力をつける試みをする。合気道など。

2015/11月に追記；水泳を始めたのですが、それがかなり鼻によかったのでお勧めです。鼻うがい的</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/9063195200447340657/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/9063195200447340657' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/9063195200447340657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/9063195200447340657'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2015/01/blog-post.html' title='後鼻漏の治療方法'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-2762300094801591639</id><published>2014-09-20T15:33:00.001+09:00</published><updated>2014-09-22T11:19:43.595+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chien-fu"/><category scheme="http://www.blogger.com/atom/ns#" term="vegetable restaurant"/><title type='text'>vegetable restaurant nameed Chien-fu in Nishiazabu Roppongi</title><summary type="text">
An experience like a movie scene.

I experienced something like a movie scene.

A few days ago, when I tried to go to the dentist from my office in Roppongi Hills, I was approached by a young pretty woman.

She looked like she was inexperienced in this place and she showed me her iphone screen on which was showing an address. She said that she wanted to go there. Though I had to go to dentist, I</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/2762300094801591639/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/2762300094801591639' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/2762300094801591639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/2762300094801591639'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/09/vegetable-restaurant-nameed-chen-fu-in.html' title='vegetable restaurant nameed Chien-fu in Nishiazabu Roppongi'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-6883777406166251615</id><published>2014-09-15T15:42:00.005+09:00</published><updated>2014-09-15T15:42:54.054+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="メタプログラミング"/><title type='text'>aliasとalias_methodの違い</title><summary type="text">alias methodの場合

class User

  def full_name
    puts &quot;Johnnie Walker&quot;
  end

  def self.add_rename
    alias_method :name, :full_name
  end
end

class Developer &amp;lt; User
  def full_name
    puts &quot;Geeky geek&quot;
  end
  add_rename
end

Developer.new.name #=&amp;gt; &#39;Gekky geek&#39;

aliasの場合

class User

  def full_name
    puts &quot;Johnnie Walker&quot;
  end

  def self.add_rename
    alias :name :full_name
  end</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/6883777406166251615/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/6883777406166251615' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/6883777406166251615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/6883777406166251615'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/09/aliasaliasmethod.html' title='aliasとalias_methodの違い'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-1498862244924004275</id><published>2014-08-12T20:02:00.004+09:00</published><updated>2014-09-05T10:58:06.422+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><title type='text'>AppiumでAndroidのChromeを動かすための二つの方法</title><summary type="text">AppiumでAndroidのChromeを動かす時に、portlait、landscapeを変更したいという要望があると思います。
それはやり方によっては可能なのですが、その方法をappiumの仕組みと共に考えていきます。
AppiumでAndroidのChromeを動かす際に、二つの方法があります。

Chromeをアプリとして動かす方法
Chromeをブラウザとして動かす方法

それはどう違うのか。

まずはアプリとして動かす方法から説明します。
appium.txtの中身
./chrome.apkはダウンロードしてきたchromeアプリです。
端末はGalaxy Nexusです。


[caps]
platformName = &quot;android&quot;
platformVersion = &quot;4.3&quot;
deviceName = &quot;Nexus&quot;
app = &quot;./chrome.apk&quot;
#</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/1498862244924004275/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/1498862244924004275' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/1498862244924004275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/1498862244924004275'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/08/appiumandroidchrome.html' title='AppiumでAndroidのChromeを動かすための二つの方法'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-7810550791231588411</id><published>2014-08-04T19:19:00.004+09:00</published><updated>2014-08-12T18:54:49.964+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><title type='text'>ruby_libを使ってappiumでAndroidを動かす準備</title><summary type="text">Android ADKのダウンロード 
http://developer.android.com/sdk/index.html

ダウンロードしたファイルを/Applicationsに移動
~/.bashrcを編集

vi ~/.bashrc

export ANDROID_HOME=&quot;/Applications/adt-bundle-mac-x86_64-20140702/sdk&quot;
export PATH=$PATH:$HOME/.rvm/bin:/Applications/adt-bundle-mac-x86_64-20140702/sdk/tools:/Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools
export JAVA_HOME=`/usr/libexec/java_home`

</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/7810550791231588411/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/7810550791231588411' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/7810550791231588411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/7810550791231588411'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/08/appiumandroid.html' title='ruby_libを使ってappiumでAndroidを動かす準備'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-5809014112769536270</id><published>2014-06-06T20:05:00.001+09:00</published><updated>2014-06-06T20:20:59.296+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="労働倫理"/><title type='text'>未来工業を通して働き方について考えてみる</title><summary type="text">転職を何度も繰り返してきた私は、様々な職場や働き方を見てきました。二重、三重の下請け構造、馬鹿みたいに働かせたがる上司、残業代を払わない会社、安い給料、派遣などです。今でこそ、そこそこの給料は貰えているので職場を悪くは言わないですが、以前は「やってられるか！」というのが率直な気持ちでした。今の日本では、多くの人がこういったことを味わっているのではないでしょうか？こういった状況に対する反応は、大体、以下の三つに大別されます。被っている人もいるかもしれません。

社会を憎む。
仕方ないことなんだと諦める。
自分の力が無いせいだと反省する。

強い立場の人は、弱い立場の人に大体、2か3の立場で納得させます。勿論、それが本当に当てはまる場合もあるのですが、安い賃金にも関わらず無理矢理に納得させようとする場合も多々あるのではないでしょうか。それが正しいと思いますか？私は全く思いません。では、どうい</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/5809014112769536270/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/5809014112769536270' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/5809014112769536270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/5809014112769536270'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/06/blog-post.html' title='未来工業を通して働き方について考えてみる'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-3698885210913420300</id><published>2014-06-02T23:15:00.004+09:00</published><updated>2014-06-03T15:35:16.140+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>scientific Linuxのインストール方法</title><summary type="text">VirtualBoxを使って、Linux環境を構築していきます。
scientific Linuxをインストールします。
バージョンは5です。 
メモリとか容量は適当に多めにとっておきます。
ネットワークの接続は、ブリッジアダプターにしておきましょう。 



&amp;nbsp;




&amp;nbsp;

ここでブリッジアダプターを選択します 



&amp;nbsp;

ダウンロードしてきたイメージをアップロードします。&amp;nbsp;

ここではCDを使っています。 



&amp;nbsp;

ここは、skipでも構わないと思います。

気になる人は確認して下さい

















仮想ディスクの初期化

DHCPでネットワーク設定。

ブリッジ接続になってないと面倒なので気をつけて下さい。

タイムゾーンを東京に設定



オフィス製品のチェックを外す&amp;nbsp;

一枚目が終わったら、</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/3698885210913420300/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/3698885210913420300' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/3698885210913420300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/3698885210913420300'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/06/rails3.html' title='scientific Linuxのインストール方法'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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="http://2.bp.blogspot.com/-Pc9qA1-6BLo/U4yCg_4j7dI/AAAAAAAAAOY/Od7_aE1UD2o/s72-c/%E5%AE%B9%E9%87%8F.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2616673841565160559.post-3425467145051425280</id><published>2014-05-30T15:22:00.001+09:00</published><updated>2014-06-01T00:25:50.345+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="フィリピン"/><category scheme="http://www.blogger.com/atom/ns#" term="英語"/><title type='text'>英会話三国志の時代が終わりを告げた</title><summary type="text">2010年頃のフィリピン人英会話の状況は、まるで中国の三国志を思わせる乱戦で、多くの英会話サービスが乱立しており、そのなかに三つの有力な会社がありました。

レアジョブ
ラングリッチ
スカイトーク

上記の三社です。「フィリピン人を雇ってインターネットを通じて安い英会話を提供する」という基本的なモデルは同じものの、それぞれに特徴がありました。レアジョブは徹底的なコスト削減、ラングリッチはWebマーケティング、スカイトークは親身なサービスに力を入れていました。これだけでは、わかりづらいので、各社の特徴をもう少し詳細に見ていきたいと思います。
レアジョブ


日本人のユーザーとフィリピン人の先生を引き合わせる場だけを提供。フィリピンで停電などがあり先生が欠席の場合は、変わりの先生はいない。後日、メールが送られてきてポイントで補完。
早朝と夜の両方にレッスンがあり。
フィリピン人の先生は、</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/3425467145051425280/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/3425467145051425280' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/3425467145051425280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/3425467145051425280'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/05/blog-post.html' title='英会話三国志の時代が終わりを告げた'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-6435463894848196105</id><published>2014-05-28T12:42:00.002+09:00</published><updated>2014-05-28T12:55:58.611+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capybara"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="selenium"/><title type='text'>CapybaraというかSeleniumで実行スピードを遅くする。</title><summary type="text">capybaraでスクリプトを実行している時に、デバッグのために、あえて実行スピードを遅くしたい時がある。そんな時の方法

困った時に、よくあるモンキーパッチ。


require &#39;selenium-webdriver&#39;
module ::Selenium::WebDriver::Chrome
  class Bridge
    @@speed = nil

    def self.speed=(v)
      @@speed = v
    end

    def execute(*args)
      result = raw_execute(*args)[&#39;value&#39;]
      case @@speed
        when :slow
          sleep 0.1
        when :medium
          sleep 0.2
</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/6435463894848196105/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/6435463894848196105' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/6435463894848196105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/6435463894848196105'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/05/capybara_28.html' title='CapybaraというかSeleniumで実行スピードを遅くする。'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-978056488960144270</id><published>2014-05-09T21:16:00.003+09:00</published><updated>2014-05-28T12:56:53.063+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capybara"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Capybaraで謎のエラーが発生</title><summary type="text">こんな感じのエラーが発生

  NameError: uninitialized constant Zip::File


どうも、これが悪さをしているらしいので、このgemを削除

gem &#39;zip&#39;


代わりにこれをインストール

gem &#39;zip-zip&#39;
</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/978056488960144270/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/978056488960144270' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/978056488960144270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/978056488960144270'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/05/capybara.html' title='Capybaraで謎のエラーが発生'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-5627417896634169241</id><published>2014-04-22T16:46:00.000+09:00</published><updated>2014-04-22T16:49:44.646+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><title type='text'>appiumでiPhoneのsafariを動かす時のエラー</title><summary type="text">fruitstrapのコマンドが失敗している


/Users/test/appium_workspace/appium/build/fruitstrap/fruitstrap install --id 99258c06b8ee15fd3e8b378efe5049c5fdbd2855 --bundle /var/folders/5c/qnxxcy2x5sldq1h4v0bg93tcnkyqqn/T/114322-8693-ps0pa3/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app


エラーメッセージはこれ。


Failed to start an Appium session, err was: Error: Unable to install [/var/folders/5c/</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/5627417896634169241/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/5627417896634169241' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/5627417896634169241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/5627417896634169241'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/appiumiphonesafari.html' title='appiumでiPhoneのsafariを動かす時のエラー'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-7556448373415146760</id><published>2014-04-19T12:42:00.001+09:00</published><updated>2014-04-21T21:16:47.034+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="フィリピン"/><title type='text'>フィリピン人の無償労働と日本の生活保護</title><summary type="text">フィリピンでは、社会人にも関わらず長期的な無償労働が普通にあるそうです。私が知っているのは看護師のケースです。無償労働？と言われても、我々、日本人には想像しがたいのでもう少し詳細に説明します。
　フィリピンで看護学校を卒業した20代の人達が看護師になるためには、まずは病院で働かないといけません。しかしながら、日本と違ってなかなか就職はできません。新卒一括採用といった慣習は勿論ありませんし、あまりにも看護師の卵が多すぎるために、需要と供給のバランスが大幅に崩れているためです。
　かってのフィリピンには、あるサクセスストーリーがありました。看護師になって海外で働き、実家に仕送りをして家を建てるという話です。そのために多くのフィリピン人は、家畜を売ったり財産を売ったりしたお金で子供を看護学校に入学させました。その結果、看護学校を卒業した人達が社会に溢れることになり、今に繋がっています。彼らは、</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/7556448373415146760/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/7556448373415146760' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/7556448373415146760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/7556448373415146760'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/blog-post.html' title='フィリピン人の無償労働と日本の生活保護'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-2699718929531201681</id><published>2014-04-08T23:43:00.000+09:00</published><updated>2014-07-14T15:08:53.382+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><category scheme="http://www.blogger.com/atom/ns#" term="calabash"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>iOSのテストにおいてのAppiumとCalabashの比較(Comparing the Appium with the Calabash in the iOS test)</title><summary type="text">スマートフォンテストの自動化でappiumとcalabashのどちらを選ぶかで、迷っている人がいるかもしれない。基本的には、両方ともほとんど同じです。
実機でテストする手順はこんな感じです。


Xcodeでアプリをビルドして実機にインストールする。（appiumでもIPAファイルからのテストは上手くいかないため。）追記；IPAファイルでのテストは、ビルドした時の署名によります。iPhone Developerによって作成されている場合は動きます。
ruby等で作成されたフレームワークを通して、UIAutomationを操作する。


では、何が違うのか。


In App Purchase等を行う際に出るシステムアラートを、appiumでは補足できるがcalabashでは補足できない。calabashでは、現在、実装中。それについて詳細に書かれているリンクはこちら。
フレームワークの</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/2699718929531201681/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/2699718929531201681' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/2699718929531201681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/2699718929531201681'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/iosappiumcalabash.html' title='iOSのテストにおいてのAppiumとCalabashの比較(Comparing the Appium with the Calabash in the iOS test)'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-1936166770424191599</id><published>2014-04-03T20:06:00.000+09:00</published><updated>2014-04-03T20:07:26.431+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>promote_singleton_appium_methodsが何をやっているか？</title><summary type="text">common.rbの中に書かれているこのメソッドが気になったので調査してみた。

Appium.promote_singleton_appium_methods UICatalog

pathはここです。

appium_lib/lib/appium_lib/driver.rb


def self.promote_singleton_appium_methods main_module
  raise &#39;Driver is nil&#39; if $driver.nil?
  main_module.constants.each do |sub_module|
    #noinspection RubyResolve
    $driver.public_methods(false).each do |m|
      const = main_module.const_get(</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/1936166770424191599/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/1936166770424191599' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/1936166770424191599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/1936166770424191599'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/promotesingletonappiummethods.html' title='promote_singleton_appium_methodsが何をやっているか？'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-7726584538310514752</id><published>2014-04-03T15:13:00.000+09:00</published><updated>2014-04-03T15:13:04.001+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><title type='text'>xcodebuildを使ってビルドして動かす</title><summary type="text">アプリをビルド

xcodebuild -project ****.xcodeproj -target GreePlatformShowcase -sdk iphoneos7.0 -destination &#39;id=03923e8c696326912be875cf64e6532088eb9cd0&#39; build


アプリをアイフォンにインストール

mobiledevice install_app /Users/test/workspace/release/ios/applications/showcase/build/Release-iphoneos/******.app
</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/7726584538310514752/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/7726584538310514752' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/7726584538310514752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/7726584538310514752'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/xcodebuild.html' title='xcodebuildを使ってビルドして動かす'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-8548122384536378600</id><published>2014-04-03T10:37:00.003+09:00</published><updated>2014-04-23T18:53:57.592+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><title type='text'>appiumを使ってiphoneの実機でipaファイルを動かす？</title><summary type="text">appiumサーバーを動かす

node . -U 03923e8c696326912be875c******* --ipa /Users/test/Downloads/showcase.ipa

もう一つのターミナルで起動


vi appium.txt

適切な値を入力

DEVICE=&quot;ios&quot;
APP_PATH=&quot;net.showcase&quot;
require=[&quot;./appium/ios/pages&quot;, &quot;./appium/ios/common.rb&quot;]

arc

このエラーが出た時の対処方法
Failed to start an Appium session, err was: Error: Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib
  </summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/8548122384536378600/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/8548122384536378600' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/8548122384536378600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/8548122384536378600'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/appiumipa.html' title='appiumを使ってiphoneの実機でipaファイルを動かす？'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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-2616673841565160559.post-1382507458259417536</id><published>2014-04-02T13:08:00.002+09:00</published><updated>2014-04-02T14:42:28.772+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="appium"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>iphoneのシステムアラートをappiumで補足する。</title><summary type="text">How to push system alert at real iphone device by appium

アラートを操作する

  alert_click &#39;OK&#39;
  alert_click &#39;キャンセル&#39;


もうちょっと、複雑な操作をしたい時はUIAutomationのコマンドを使う。


  execute_script(&quot;target.frontMostApp().keyboard().typeString(&#39;password&#39;)&quot;)

</summary><link rel='replies' type='application/atom+xml' href='http://utsunomiya-university.blogspot.com/feeds/1382507458259417536/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2616673841565160559/1382507458259417536' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/1382507458259417536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2616673841565160559/posts/default/1382507458259417536'/><link rel='alternate' type='text/html' href='http://utsunomiya-university.blogspot.com/2014/04/iphoneiphone.html' title='iphoneのシステムアラートをappiumで補足する。'/><author><name>test</name><uri>http://www.blogger.com/profile/12468967867756592132</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></feed>