こういう感じのメッセージが出ます(グレーで見にくいですが): Picture 9.png
profile doesn't match any valid certificate/private key pair in the default keychain

Keychain AccessでDefaultのkeychainを確認

Xcodeが検索するkeychainが、iPhone Developerの証明書が入っているkeychainと違っていることが原因が多いらしい(下記リンク)。
なのでKeychain Accessでデフォルトのkeychainをlogin(iPhone Developerの証明書が入っているkeychain)にする(私の場合は正しくなってました)

その他試した事

  • iPhone Developer証明書を再発行
  • 新しいAppIDを用意
  • 新しいprovistioningを用意

これ全部やってもだめだった...

iPhone SDK 3.0 GM SeedのXcodeを再インストール

次の日Xcodeを削除して、SDKを再度ダウンロード、インストールしてみました。→ まだ、同じメッセージがでます。
で、やったこと:

  • 再度iPhone Developer証明書を再発行して、Keychain Accessに
  • 使えなくなったprovisioningをModifiedで再度自分と動作確認に使うiPhoneを選択
  • Xcodeと3.0 GM SeedのiPhoneにprovisioningをインストール

正しく動作するようになった!! Yay!

posted by Png satoko on Wed 17 Jun 2009 at 07:22
posted by Png satoko on Wed 17 Jun 2009 at 01:51

いつも、ふと忘れてmanコマンドで確認するのですが、ちょっとメモ書き・・・。

書いて覚えることにします。

最近のCPUはマルチコアになっていますが、topコマンドでCPUの状況を確認するとデフォルトではCpu(s)と1つにまとめられています。

そうでなくて、コア毎のCPUの状況を見るには、

manで確認すると・・・

'1' :Toggle_Single/Separate_Cpu_States -- On/Off

This command affects how the 't' command's Cpu States portion is shown. Although this toggle exists primarily to serve massively-parallel SMP machines, it is not restricted to solely SMP environments.

When you see 'Cpu(s):' in the summary area, the '1' toggle is On and all cpu information is gathered in a single line. Otherwise, each cpu is displayed separately as: 'Cpu0, Cpu1, ...'

ってことで、topコマンドを実行しているときに1を押すとCpu0, Cpu1, ...という風にコア毎に表示されます。

ちなみに、topコマンドでマルチコアが見れるようになった状態で、W(大文字のW)を入力すると、この状態が~/.toprcに保存されます。

これで、もう忘れないはず!!(機械が覚えてくれたので)

posted by Png y_tsuda on Tue 16 Jun 2009 at 16:37

Today I collided with an issue regarding a git repository. If a subdirectory of your repository has .git as a member, it shadows the subdirectory. So thus you can't sense its member even if you would type git status and check .gitignore.

今日はgitリポジトリに関する見つけにくい問題に遭遇しました。 リポジトリのサブディレクトリの中に.gitディレクトリがある場合、そのサブディレクトリ以下が隠されてしまい、git statusや.gitignoreを見ても存在が見えなくなってしまいます。

posted by Png takiuchi on Tue 16 Jun 2009 at 03:39

You can check the dependencies of *.so file by executing ldd command like this

   1  % ldd foo.so
   2          linux-gate.so.1 =>  (0xb7efe000)
   3          libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d7e000)
   4          /lib/ld-linux.so.2 (0xb7eff000)

It's useful to attack problems regarding dlopen

posted by Png takiuchi on Fri 12 Jun 2009 at 02:33

実際に使った事はないのですが、未来のためにメモ。

開発機のクラッシュログは読めたのですが、そうでない場合は下記のリンクにあるようにすれば読めるらしいです。

posted by Png satoko on Thu 11 Jun 2009 at 02:38

http://www.inc.com/magazine/20090601/joel-spolsky-a-visit-to-microsoft-and-google.html
Published June 2009

興味深かったのでメモ:

C# + jQuery + MS SQL Server 2008(!)
3台のDell 8 Core Xeon

Coding Horrorの人をパートナーにしてる

ポッドキャストもやってます at ITConversations
http://itc.conversationsnetwork.org/series/stackoverflow.html

(Googleで開かれたこのsessionの)出席者のうち40%の人が使った事があった

ほとんどの人はGoogleで質問をtype、検索してやってくる:86%
直接アクセスしてくる人はほんの一握り

136,579の質問が挙げられ
質問の91.3%は答えが出た
=> 答えられたreplyをUp voteされた質問だけをカウント

Posts(質問+reply) 800,000
Registered users 60,000
Unique visitors 3,500,000

Stack Overflowの姉妹サイトとして下記を作った:
http://serverfault.com/


[追記] 同時に下記の記事をあすなろblogで書きましたので、どうぞ:

StackOverflowのコンテンツ(Data Dump)がCreativeCommonsに
http://blog.pasonatech.co.jp/hibi/102/10703.html

posted by Png satoko on Wed 10 Jun 2009 at 16:41

Posture consists of forward, upward and rightward directions. Each directions has 2 degrees of freedom, but the set of them has only 3 degrees.

Recall that the posture can be represented as a unit quaternion. The unit quaternion has a constraint on its length, so thus it has 3 degrees of freedom.

posted by Png takiuchi on Wed 10 Jun 2009 at 02:36

In these days, I am thinking about how web services can be provided without shutting down. An answer I got is keep it small. Small services can be provided without maintenances. For example, the Formula (http://formula.s21g.com/) has been provided for more than a year. But it had virtually neither maintenances nor updates. But it is used by someone sometimes.

The cost of keeping such services is about $50 a month. It consists of only the cost of an EC2 instance. An instance can offer several such services, so the cost would be shared by them. So thus the individual cost becomes more low.

Suppose the cost is $20 a month, we can gain it by a fund of $4800 if it earns 5% a year constantly. If it is possible, it can be a new way for providing services such as the Formula.

posted by Png takiuchi on Wed 10 Jun 2009 at 01:45 with 2 comments

fedora11.png

Fedora11がリリースされました!

ってことで、早速VirtualBox上にインストールしてみます。

Fedora11の特徴

周りの人に興味を持ってもらえるように、ざっとFedora11の特徴を挙げてみます。

  • デフォルトのファイルシステムがext4に
  • 起動が高速化(20秒が目標らしい)
  • Windowsクロスコンパイラ (MinGW)
  • マルチディスプレイ・キーボード・マウスに対応したXウィンドウシステム

個人的には、Windowsクロスコンパイラと、マルチマウスが特に気になるところです。

他にも、サウンドデバイス周りを一新したりしたそうです。

詳しい特徴は、リリースノートに書いています。

ではでは、さっそくインストール・・・

Fedoraプロジェクトのページより、ISOイメージを入手しましょう。

インストールは適当に「OK、OK、OK、、、」としてたらできます。 (手抜きでごめんなさい。でも、こんなに簡単にインストールできる最近のLinuxはすばらしい!)

何も考えずにOKを連打してたら、1099個のパッケージがインストールされました。

Fedora11起動!

ログイン画面はこんな感じです。

fingerprintなんていうボタンがあるので、指紋認証でログインとかができるのでしょうか?

login.png

インストール後のデスクトップはこんな感じです。

desktop.png

感想

今までのFedoraと違って、色合いが少し落ち着いた感じがしますね。

とりあえずインストールして、立ち上げてみた感想ですが、

起動が速い!!(気がします。。。)

これから少しずつ色々な機能を試していこうと思います。

posted by Png y_tsuda on Tue 9 Jun 2009 at 17:34