2014-01-01から1年間の記事一覧

Mavericksにアップデートした時の対応

mac

apacheが立ち上がらない 自作のモジュールが/usr/libexec/apache2/からサクっと消えている為。 この行をコメントアウト。 # LoadModule mymodule_module libexec/apache2/mod_mymodule.soPHPが動かない 以下を追加 LoadModule php5_module libexec/apache2/l…

APNS バイナリインターフェイスを試す

php

新しいバイナリインターフェイスが推奨だということで試す。 こんな感じで送信する。 set_certfile( "dev.pem" ); $o->apns_server_url( "ssl://gateway.sandbox.push.apple.com:2195" ); $o->set_priority( 10 ); $o->set_expire( time() ); $o->set_messag…

psqlでパスワード入力をスキップ

.pgpassに定義する$ vi ~/.pgpass host:port:database:user:password

local作業のリポジトリを共有リモートリポジトリへ移管する

git

先ずはlocalでコミットまで行う local $ git add . $ git commitremote側でpushされるリポジトリを作成 remote $ mkdir origin $ git init $ git config --bool core.bare true再びlocal側でremote登録、及びpushまで local $remote add origin ssh://user@a…

今日のひとこま

select * from ( select * from hoge order by id limit 10 ) as hoge join hage on hoge.id = hage.id where hoge.id in ( select id from foo )と10件にした後、絞られてたので、 select * from ( select * from hoge where id in ( select id from foo ) …

自ホストへのfile_get_contentsでハマる

DNS登録済みのドメインmyserver.comサーバから自分自身へ file_get_contents( "http://myserver.com/hoge.txt" ); fopen( "http://myserver.com/hoge.txt", "r" );とした時、401 Unauthorized のエラーが発生。環境はこんな構成。NATでmyserver.com:80のアク…