rbenv, ruby-buildを更新
$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
rubyを毎日更新しよう
$ brew link readline
$ ruby-build --definitions
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.9.3-p194
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.8.7-p358
$ brew unlink readline
# モデルがこれだけで作れたら素敵じゃないか | |
# entry.coffee | |
Database = require('libs/database') | |
class Entry extends Database | |
initialize:()-> | |
@property 'title', 'text' | |
@property 'body', 'text' | |
super | |
module.exports = new Entry('entries') |
Titanium x Androidのハマりどころについて質問をもらったので、分かる範囲で共有させて頂きます。 | |
私の調査不足ということもあるので、詳細はご自身でお調べいただければ幸いです。 | |
あと、最後に確認したのが2012年3月頃だった気がするので、少し情報が古いかもしれません。 | |
・機種依存でカメラが落ちるなど | |
Xperiaだったかしら? | |
独自のカメラAPIを使っている端末についてはカメラ撮影時にアプリが落ちるなどの不具合が発生します。 | |
ちょちょいと対応できるものではないので、契約時に標準のカメラAPIが対応していない機種については対応しないor別途開発期間をもらうなどの同意をとっておく必要があるかと思います。 |
//The table view row just has to have a full height view in order | |
//to trigger the TableView touchstart | |
function LongTouchTableViewRow(_title) { | |
var row = Ti.UI.createTableViewRow({ | |
height:50 | |
}); | |
var v = Ti.UI.createView({ | |
height:50 | |
}); |
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
;; フォントセット作成 | |
(create-fontset-from-mac-roman-font | |
"-apple-m+ 2m-medium-r-normal--14-*-*-*-*-*-iso10646-1" nil "mplus") | |
(set-fontset-font "fontset-mplus" 'japanese-jisx0208 | |
'("m+ 2m light" . "iso10646")) | |
(set-fontset-font "fontset-mplus" (cons (make-char 'japanese-jisx0208 #x30 #x20) | |
(make-char 'japanese-jisx0208 #x74 #x7f)) | |
'("ヒラギノ角ゴ pro w3" . "jisx0208.1983")) | |
(set-fontset-font "fontset-mplus" 'katakana-jisx0201 | |
'("m+ 1m light" . "iso10646")) |