2013-06-01から1日間の記事一覧

capistranoでSSH鍵を使ってサーバーに接続する

http://yakinikunotare.boo.jp/orebase2/capistrano/use_ssh_keyconfig/deploy.rb set :user, "hoge" #sshユーザー名 ec2だったらec2-userとか ssh_options[:keys] = '~/.ssh/hogehoge.pem' #ssh証明書

EC2にcharlock_holmes gemをインストール

icu4cをインストールしておく。 sudo yum install libicu-devel

iOSでPOSTリクエストを送る

http://blog.be-style.jpn.com/article/56333442.html注意点としてはURLエンコードしないといけない。 http://www.crossbridge.biz/objectivec-urlencode-decodeCFURLCreateStringByAddingPercentEscapesを使ったら XCodeに (NSString*)CFBridgingReleaseに…

View Controllerを起動時に表示されるコントローラに設定する

AndroidだとManifestファイルで明示的に指定するからわかりやすかったけど、 iPadではAttribute>View Controller>Initial scene>Is initial controllerにチェックを入れる。

Storyboard上でViewControllerを横向きに固定する

http://d.hatena.ne.jp/kazukingband/20120326/1332762469 Attributes inspectorからOrientationでLandscapeを選ぶ。

Photoshopのフォント

Myriad Proがよい。

Photoshopで画像のサイズ(解像度)を変更する

イメージ>画像解像度から変更する。

XCode4.6.2でCompile errorが出る

こんなエラーが出た。 PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28)Product>Cleanを実行する。 http://stackoverflow.com/questions/16027725/xcode-version-4-6-2-4h1003-compiler-error

EAGLEでのライブラリの作りかた 補足

前も書いたけどEAGLEであるライブラリをコピーして変更したいとき。adafruit.lbrのDC_BARRELデバイスを改変して dc_jack_slotted.lbrの中にDC_JACK_SLOTTEDデバイスをつくりたいとする。まず、file>openでdc_jack_slotted.lbrを開く。 その状態でfid>openでa…

iOSでアプリ名を変更する

info-plistのBundle display nameを変更すればいい。http://trunkui.blogspot.jp/2012/01/ios.html