• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

DHHがGithub上でrubygemsがデフォルトで--no-ri --no-rdocになるように しようという 運動をしている ようです。 やっぱみんなそう思うよね!

ss

すでに結構賛同者がいる模様。

訂正 git request-pull はメールを送信する機能は無いらしい。

http://rubygems.org にいけば rdoc は読めるし、デフォルトですべての環境にインストールされる必要なんてないよね。

Let's join!

posted by Png genki on Fri 25 Feb 2011 at 18:46

Though it may be needless to say.

There must be languages or grammars hidden in the manner of developing games to have human-beings worked for various tasks.

posted by Png genki on Thu 24 Feb 2011 at 18:50 with 1 comment

コンパイル時に -D オプションで指定したパラメータを文字列化して使用する方法のメモです。 以下は -DFOO_DIR=hoge のようにした場合に、何らかのディレクトリ名の PREFIXとしてこれを使う方法。

   1  #define STRINGIFY(x)  STRINGIFY_(x)
   2  #define STRINGIFY_(x) #x
   3  #define BAR_PATH      (STRINGIFY(FOO_DIR) "/bar")

二度マクロ適用しなければいけないのがややトリッキーです。

posted by Png genki on Wed 23 Feb 2011 at 16:22
21st Mon

CGImageAlphaInfo

リファレンスでは kCGImageAlphaNone は kCGImageAlphaNoneSkipLast と equivalent とあるけど、CGBitmapContextCreate の bitmapInfo パラメータに渡すときの挙動は違う。 bitsPerComponent が 8 のときに kCGImageAlphaNone を渡すと 1 Pixel あたり 3 バイト、 kCGImageAlphaNoneSkipLast を渡すと 1 Pixel あたり 4 バイト、 で計算した値を bytesPerRow に渡してやる必要がある。

posted by Face Saturn on Mon 21 Feb 2011 at 16:20

UIViewControllr は IB で nib の名前を指定しないと自動的にクラス名と同じ名前+'.nib' をロードするようだが、UITableViewController はこれをやらないので、nib から読むときは必ず nib 名を指定しなくてはいけない。

posted by Face Saturn on Mon 21 Feb 2011 at 05:20

長いこと Apache + passenger環境で奇妙な高負荷状態が続いていたため、 nginx + passengerに移行してみました。

nginxはreloadしてもコネクションが切れないのが素晴らしいですね。 unicornの-USR2/-QUIT 的な感じです。 設定ファイルも簡潔で良い感じです。

ということで、しばらく様子見です。

posted by Png genki on Sun 13 Feb 2011 at 23:53
Contents
みんなでrubygemsを--no-ri --no-rdocにしよう
Developing games is hacking against human
C言語で-Dで定義したパラメータを文字列化する方法のメモ
CGImageAlphaInfo
UITableViewController in XIB
nginxへの移行
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ