«前の日記(2011-09-28) 最新 次の日記(2011-10-02)» 編集

会長@腹部日記


2011-09-30 [長年日記]

_ 息を吹きかけてiPhone4ホームボタン反応を復活するかどうか試しました

参考にしたのはこちら。

元ネタはこちらのつぶやきようです。

401 Authorization Required

ふいてみました

あらっ、確かに反応がよくなりました。ホームボタンのダブルクリックがほとんど期待できない状態だったのが、幾分改善されました。

デメリット

上記iPhoneちゃんねるでもかかれていますが、以下の状況になりました。

542 名前: 忍法帖【Lv=40,xxxPT】 [sage] 投稿日:2011/09/24(土) 22:49:41.46 ID:PURUEEa/0
下手すると画面の方にゴミ入るよ

明るい画面になるアプリを動作させると、画面中央より下にホコリが数個入り込んでいました。気になる人はやらないことをオススメします。

さらにその後

二日後の朝になるとまたちょっと反応が悪くなった気がします。布団と毛布のある寝室で使ったりしているからかなぁ。。。

(#‵)3′)▃▃▃▅▆▇▉ ぶふぉー

と毎朝犬の散歩時にiPhoneを吹いています。

Tags: iPhone

_ tDiary 3.X 時代のテストをWindowsでやってみて挫折

@zundan さんの真似を Windows XP SP3でやってみるという奇特な試み。。。。果たして。。。

Windowsなので、MysysGitあたりを入れておきましょう。

環境はこの通り。

>ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [i386-mswin32_100]
>gem --version
1.8.10
>gem install bundler --no-rdoc --no-ri
Fetching: bundler-1.0.20.gem (100%)
Successfully installed bundler-1.0.20
1 gem installed
>bundle.bat -v
Bundler version 1.0.20

以下 gitbash での作業

$ git clone https://tamoot@github.com/tamoot/tdiary-core.git
Cloning into tdiary-core...
Password:
remote: Counting objects: 9460, done.
remote: Compressing objects: 100% (2675/2675), done.
remote: Total 9460 (delta 6714), reused 9308 (delta 6596)
Receiving objects: 100% (9460/9460), 2.50 MiB | 201 KiB/s, done.
Resolving deltas: 100% (6714/6714), done.
$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

以下 gitbashでなくても

>bundle.bat install
Fetching source index for http://rubygems.org/
Installing rake (0.9.2)
Installing addressable (2.2.6)
Installing highline (1.6.2)
Installing net-ssh (2.2.1)
Installing net-scp (1.0.4)
Installing net-sftp (2.0.5)
Installing net-ssh-gateway (1.1.0)
Installing capistrano (2.8.0)
Installing celerity (0.9.0)
Installing culerity (0.2.15)
Installing mime-types (1.16)
Installing nokogiri (1.4.7)
Installing rack (1.3.2)
Installing rack-test (0.6.1)
Installing ffi (1.0.9) with native extensions

ここまできて、おおっいけるんじゃね?と正直思いました。

やっぱりダメだった

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        D:/Application/ruby_1_9_2_p290/bin/ruby.exe extconf.rb
checking for rb_thread_blocking_region()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --srcdir=.
        --curdir
        --ruby=D:/Application/ruby_1_9_2_p290/bin/ruby
        --with-ffi_c-dir
        --without-ffi_c-dir
        --with-ffi_c-include
        --without-ffi_c-include=${ffi_c-dir}/include
        --with-ffi_c-lib
        --without-ffi_c-lib=${ffi_c-dir}/lib
D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:440:in `try_link'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:552:in `try_func'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:797:in `block in have_func'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:796:in `have_func'
        from extconf.rb:17:in `<main>'


Gem files will remain installed in D:/Application/ruby_1_9_2_p290/lib/ruby/gems/1.9.1/gems/ffi-1.0.9 for inspection.
Results logged to D:/Application/ruby_1_9_2_p290/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/ext/ffi_c/gem_make.out
An error occured while installing ffi (1.0.9), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.0.9'` succeeds before bundling.

では Visual Studio 2008コマンドプロンプトを使います。再チャレンジ。*1

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

C:\Program Files\Microsoft Visual Studio 9.0\VC>set PATH=D:\Application\ruby_1_9_2_p290\bin;%PATH%

C:\Program Files\Microsoft Visual Studio 9.0\VC>ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i386-mswin32_100]
D:\src\tdiary\tdiary-core>bundle.bat install
Fetching source index for http://rubygems.org/
Using rake (0.9.2)
Using addressable (2.2.6)
Using highline (1.6.2)
Using net-ssh (2.2.1)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.1.0)
Using capistrano (2.8.0)
Using celerity (0.9.0)
Using culerity (0.2.15)
Using mime-types (1.16)
Installing nokogiri (1.4.7) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

        D:/Application/ruby_1_9_2_p290/bin/ruby.exe extconf.rb
checking for libxml/parser.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --srcdir=.
        --curdir
        --ruby=D:/Application/ruby_1_9_2_p290/bin/ruby
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --with-iconv-dir
        --without-iconv-dir
        --with-iconv-include
        --without-iconv-include=${iconv-dir}/include
        --with-iconv-lib
        --without-iconv-lib=${iconv-dir}/lib
        --with-xml2-dir
        --without-xml2-dir
        --with-xml2-include
        --without-xml2-include=${xml2-dir}/include
        --with-xml2-lib
        --without-xml2-lib=${xml2-dir}/lib
        --with-xslt-dir
        --without-xslt-dir
        --with-xslt-include
        --without-xslt-include=${xslt-dir}/include
        --with-xslt-lib
        --without-xslt-lib=${xslt-dir}/lib
D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:446:in `try_compile'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:853:in `block in find_header'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
        from D:/Application/ruby_1_9_2_p290/lib/ruby/1.9.1/mkmf.rb:852:in `find_header'
        from extconf.rb:96:in `<main>'


Gem files will remain installed in D:/Application/ruby_1_9_2_p290/lib/ruby/gems/
1.9.1/gems/nokogiri-1.4.7 for inspection.
Results logged to D:/Application/ruby_1_9_2_p290/lib/ruby/gems/1.9.1/gems/nokogi
ri-1.4.7/ext/nokogiri/gem_make.out
An error occured while installing nokogiri (1.4.7), and Bundler cannot continue.

Make sure that `gem install nokogiri -v '1.4.7'` succeeds before bundling.

つぎはnokogiriです。でもこんなやりとりがruby-listで繰り広げられていたのをすっかり忘れていました。mingw32版を用意しないといけないので、今日はもうやーめた。。

Tags: tDiary Ruby

*1 というか初めからそうしないと・・・orz