# yum install libxml2-devel curl-devel libjpeg-devel libpng-devel libmcrypt-devel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% port installed | |
The following ports are currently installed: | |
apache2 @2.2.15_1+darwin+preforkmpm (active) | |
apr @1.3.12_1 | |
apr @1.4.2_0 (active) | |
apr-util @1.3.9_2 (active) | |
autoconf @2.65_1 (active) | |
autoconf213 @2.13_1 (active) | |
automake @1.11.1_0 (active) | |
boost-jam @3.1.17_0 (active) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/model/doctrine/PluginDiary.class.php b/lib/model/doctrine/PluginDiary.class.php | |
index 4928da5..6815b21 100644 | |
--- a/lib/model/doctrine/PluginDiary.class.php | |
+++ b/lib/model/doctrine/PluginDiary.class.php | |
@@ -128,4 +128,18 @@ abstract class PluginDiary extends BaseDiary | |
$image->delete(); | |
} | |
} | |
+ | |
+ public function postInsert($event) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dry_run = false; | |
// http://php.net/manual/ref.pdo-mysql.connection.php | |
$pdo_dsn = 'mysql:xxx'; | |
$pdo_user = 'xxx'; | |
$pdo_pass = 'xxx'; | |
$dbh = new PDO($pdo_dsn, $pdo_user, $pdo_pass); | |
$sth = $dbh->query('SELECT id FROM member WHERE is_active = 1 AND is_login_rejected = 0 ORDER BY id'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -r "var_dump(date_diff(new DateTime('2010-05-10'), new DateTime('2010-03-19'))->format('%a'));" | |
string(2) "52" | |
$ php -r "var_dump(date_create('2010-05-10')->diff(date_create('2010-03-19'))->format('%a'));" | |
string(2) "52" | |
$ php -r "var_dump((strtotime('2010-05-10') - strtotime('2010-03-19')) / (60 * 60 * 24));" | |
int(52) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: webapp/lib/db/member.php | |
=================================================================== | |
--- webapp/lib/db/member.php (リビジョン 20393) | |
+++ webapp/lib/db/member.php (作業コピー) | |
@@ -293,16 +293,13 @@ | |
$order = " ORDER BY c_member_id DESC"; | |
$sql = "SELECT c_member_id" . $from . $where . $order; | |
- // 検索設定を公開にしていないメンバーを除外 | |
$result_ids = db_get_col($sql, $params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum -y update | |
yum -y install screen sysstat vim-enhanced subversion | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm | |
yum -y install git | |
# Postfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum -y update | |
yum -y install screen sysstat vim-enhanced subversion | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm | |
yum -y install git | |
# Postfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Public Domain Software */ | |
$html = file_get_contents('http://www.teriyaki.jp/odai/karaoke/index.php'); | |
$html = mb_convert_encoding($html, 'UTF-8', 'EUC-JP'); | |
$html = str_replace('</head>', '<meta name="viewport" content="width=device-width; initial-scale=1.0;"></head>', $html); | |
header('Content-Type: text/html; charset=utf-8'); | |
echo $html; |