지도교수님이 석사논문 주제를 슬슬 정하라고 하셨는데, 사실 석사논문 뭐할지 전혀 생각이 없었어요;;;;
그래서 시간을 좀 벌어보려고 지난번에 했던 가챠연구 발표한걸 들고가서 어떠냐고 물어보고 입구컷을 당할 계획이었는데....
교수님: 아이디어 좋은데? 이번학기까지 문헌조사하고 이전 연구 리뷰해봐.
진짜 농담으로 했던 졸업논문 드립이 현실이 될 줄이야...
$MCache = new Memcached();
$Memcache = &$MCache;
$MCache->addSErver('/var/run/memcached.sock', 0);
$Re = new Redis();
$Re->connect('/var/run/redis/redis.sock');
?>
$Memcache = new Memcached();
$Memcache->addServer('/var/run/memcached.sock', 0);
$Redis = new Redis();
$Redis->connect('/var/run/redis/redis.sock');
class Push {
private $channel;
function __construct() {
global $Redis;
$this->channel = 'ANIZONE_GLOBAL';
$this->redis = &$Redis;
}
function channel($channel) {
$this->channel = $channel;
}
function trigger($event, $data, $channel = null) {
if($channel == null) $channel = $this->channel;
$json['channel'] = $channel;
$json['data']['event'] = $event;
$json['data']['data'] = $data;
$json = json_encode($json);
$this->redis->publish('juggernaut', $json);
}
}
class PushWing {
function queue($phone, $subject, $contents, $url, $timestamp = null) {
if($timestamp === null) $timestamp = time();
$odb = &oDB::getInstance();
$contents = str_replace( "
", '\n', $contents );
$contents = str_replace( "
", '\n', $contents );
$contents = str_replace( "
", '\n', $contents );
$contents = str_replace( "
지도교수님이 석사논문 주제를 슬슬 정하라고 하셨는데, 사실 석사논문 뭐할지 전혀 생각이 없었어요;;;;
그래서 시간을 좀 벌어보려고 지난번에 했던 가챠연구 발표한걸 들고가서 어떠냐고 물어보고 입구컷을 당할 계획이었는데....
교수님: 아이디어 좋은데? 이번학기까지 문헌조사하고 이전 연구 리뷰해봐.
진짜 농담으로 했던 졸업논문 드립이 현실이 될 줄이야...