miyagawa naoyaさん、最近は結構ブログが活発になってきている感じですね。
naoya はいはい、そうですよね。
miyagawa なんか、心境の変化があったんですか。
naoya 心境の変化(笑)
miyagawa (笑)
naoya いやずっとドラクエしかしてなかったんですけど(笑)
This file contains hidden or 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
test |
This file contains hidden or 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
function init_db_by_fixture() { | |
require_once CAKE . 'TestSuite' . DS . 'Fixture' . DS . 'CakeTestFixture.php'; | |
$model_files = glob(APP . 'Model/*.php'); | |
$fixture_db = ConnectionManager::getDataSource('test'); | |
foreach ($model_files as $path) { | |
$model = Inflector::camelize(str_replace('.php', '', basename($path))); | |
$modelObj = ClassRegistry::init($model); | |
if (isset($modelObj->useDbConfig) && $modelObj->useDbConfig == 'default' && is_string($modelObj->useTable)) { | |
$fixtureName = $model; |
This file contains hidden or 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 | |
class WebAuthTest extends PHPUnit_Extensions_Selenium2TestCase { | |
protected function setUp() { | |
$this->setBrowser('phantomjs'); | |
$this->setBrowserUrl('http://www.google.com/'); | |
} | |
public function testText() { | |
$this->url('http://127.0.0.1:10080/auth/twitter'); | |
$this->assertEquals('Hello', $this->title()); |
This file contains hidden or 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 | |
define("READ_START_SYMBOL", "# ---auto update---"); | |
define("READ_END_SYMBOL", "# ---/auto update---"); | |
// | |
function notify_update($name, $from, $to) { | |
echo "updated '".$name."' from ".$from." to ".$to."\n"; | |
} |
$ avprobe -show_format -show_streams -print_format xml 3.mp4
avprobe version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2007-2013 the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
Unrecognized option 'print_format'
Failed to set value 'xml' for option 'print_format'
$ avprobe -v debug
avprobe version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2007-2013 the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
$ avprobe -show_format -show_streams 3.mp4
avprobe version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2007-2013 the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2014-02-28 00:42:29
$ avprobe -show_format -show_streams 8.mp4
avprobe version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2007-2013 the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '8.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2014-04-03 03:33:31
$ ffprobe -show_format -show_streams 8.mp4
ffprobe version 0.10.11-7:0.10.11-1~precise1 Copyright (c) 2007-2014 the FFmpeg developers
built on Feb 6 2014 16:53:05 with gcc 4.6.3
configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.11-1~precise1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
$ /usr/bin/MP4Box -version
MP4Box - GPAC version 0.5.1-DEV-rev4065
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration: --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --mandir=${prefix}/share/man --libdir=lib/x86_64-linux-gnu --extra-cflags=-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX --enable-joystick --enable-debug --disable-ssl
Features: GPAC_HAS_JPEG GPAC_HAS_PNG
$ /usr/bin/MP4Box -add 206.mp4:ext=.mp4 -new 206_ext.mp4
IsoMedia import 206.mp4 - track ID 1 - Video (size 480 x 360)
[iso file] Box "minf" has 57 extra bytes