2012年12月22日土曜日

mac air のファンが止まらない理由

とりあえずcpuの占有率の高いActivityをKillすればよいようだ。

Activity Monitorで

元ネタ
http://miwluv.blogspot.jp/2011/06/mba-macbook-air.html

マックのWireless Cardを検出できない場合


command + option + P + R
押したまま電源を入れる
ずっと押しっぱなし
2回起動音がしたあと、設定値が全部戻されるとのこと。

2012年12月17日月曜日

about android webview


before loadurl, must invoke setWebViewClient.
WebView
webview.setWebViewClient(new WebViewClient());
webview.loadUrl(uri.toString());

2012年12月12日水曜日

Finder と iterm2の連携について

enter this command to launch finder.
  open .

to launch iterm2 from finder.
http://code.google.com/p/cdto/



2012年11月26日月曜日

iOS xcode 設定

1. Go to the Project Settings screen, select the Artists target and under Build Settings type “compiler” into the search box. This will filter the list to bring up just the compiler options:

2. Under the Warnings header, also set the Other Warning Flags option to -Wall. The compiler will now check for all possible situations that can cause problems.

3. For the exact same reason, also enable the Run Static Analyzer option under the Build Options header:

4. To try out ARC

Search for “automatic” and set the Objective-C Automatic Reference Counting option to Yes.  

Androidにインストール済みAPK解析

Androidにインストール済みAPK一覧を表示する。
adb shell pm list packages -f

特定APKを解析する
aapt dump badging target.apk

2012年11月23日金曜日

Redmine 2.1をCentOS 6.3にインストールする手順

基本は下記に通りで問題なし
http://blog.redmine.jp/articles/redmine-2_1-installation_centos/

■注意事項
1. iptablesでHTTPを許可について、特に設定しなかった。
2. rmagickを設定する必要はない(個人的に要らない)
    # bundle install --without development test postgresql sqlite
 ではなく、下記を設定した。
  # bundle install --without development test postgresql sqlite rmagick

internetに公開する際の設定事項
http://blog.redmine.jp/articles/project-visibility/

2012年9月24日月曜日

git server

■prepare サーバー
例えば、StopWatchというプロジェクトをリポジトリにあげるとき、
1. git clone --bare StopWatch StopWatch.git
2. mv StopWatch.git ~/Repository/   ## scp -r StopWatch.git user@git.example.com:/opt/git

■ローカル
1. git remote add origin /Users/your_usr_name/Repository/StopWatch.git
2. modify files and commit it.
3. git push origin master

下記エラーが出た場合
fatal: remote origin already exists.

$ git remote rm origin
$ git remote add origin git@github.com:you/yourrepo.git
$ git push -u origin master

2012年9月20日木曜日

mountain lion's web server

config file: /etc/apache2/httpd.conf
web server root directory: /Library/WebServer/Documents/
sudo apachectl start

2012年9月3日月曜日

useful perl script


read english words for me.
perl -e 'while(<>){`say $_`}'