PHP アプリのボトルネックの分析に XHProf を使う。
XHProf は PECL 拡張として提供されている。
| http://d.hatena.ne.jp/hasegawayosuke/20110106/p1 | |
| SetEnvIf User-Agent ".*MSIE.*" ie | |
| Header always append X-Content-Type-Options nosniff env=ie |
| --- innobackupex-1.5.1.org 2010-12-09 23:03:09.000000000 +0900 | |
| +++ innobackupex-1.5.1 2011-01-07 01:28:20.000000000 +0900 | |
| @@ -1333,10 +1333,19 @@ | |
| print FILE "CHANGE MASTER TO MASTER_LOG_FILE='$filename', MASTER_LOG_POS=$position\n"; | |
| close(FILE); | |
| + my $orig_datadir = get_option(\%config, 'mysqld', 'datadir'); | |
| + | |
| if ($option_stream eq 'tar') { | |
| + system("cd $orig_datadir; tar chf - master.info") |
| <?php | |
| set_include_path($_SERVER['HOME'].'/dev/zendframework_zf2/library/'); | |
| require_once 'Zend/Loader/StandardAutoloader.php'; | |
| $loader = new Zend\Loader\StandardAutoloader; | |
| $loader->registerNamespace('Hasty', $_SERVER['HOME'].'/dev/padraic_hasty/src/Hasty'); | |
| $loader->registerNamespace('Symfony', $_SERVER['HOME'].'/dev/symfony_symfony/src/Symfony'); | |
| $loader->registerNamespace('Guzzle', $_SERVER['HOME'].'/dev/guzzle_guzzle/src/Guzzle'); | |
| $loader->registerNamespace('React', $_SERVER['HOME'].'/dev/react-php_react/src/React'); | |
| $loader->register(); |
| <?php | |
| $im = new Imagick('CMYK.jpg'); | |
| $cs = $im->getImageColorspace(); | |
| if ($cs !== Imagick::COLORSPACE_RGB && $cs !== Imagick::COLORSPACE_SRGB) { | |
| $icc = null; | |
| try { | |
| $icc = $im->getImageProfile('icc'); | |
| } catch (ImagickException $e) { | |
| if ($cs === Imagick::COLORSPACE_CMYK) { | |
| $icc = file_get_contents('JapanColor2001Coated.icc'); |
| /* balloon | |
| =balloon-left($size: 6px, $color: #FFF, $top: 6px) | |
| position: relative | |
| &:after | |
| position: absolute | |
| content: "" | |
| display: block | |
| border: $size solid transparent | |
| border-right: $size solid $color | |
| top: $top |
| #!/bin/sh | |
| release=5.6 | |
| version=5.6.10 | |
| revision=1 | |
| os=el6 | |
| arch=x86_64 | |
| extension=rpm | |
| prefix="http://cdn.mysql.com/Downloads/MySQL-${release}/MySQL" |
もう皆すっかり忘れてると思うんだけど、2009年ごろに特定の検索エンジン(具体的にはGoogleね)が、 URLの中にURLが入ってるようなのを一律検索結果から除外するといったことがあった。
既存のURLをパラメータとして受け取って、際限なくコンテンツ生成するようなものは、Googleの検索結果から除外されることになった。 (キャッシュとか変換とか翻訳とかそういうのは自主的にrobots.txtやmetaタグで検索結果から除外されるようにすべきだと思う)
ソーシャルブックマークの場合は、単に変換したり翻訳したりしているわけではなく、付加的な情報があるわけだけど そんなことをわざわざGoogleが特別扱いはしなかった。単にURLの中にURLが入ってるものは除外された。
| 更新: | 2024-10-08 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
概要
| 更新: | 2026-06-08 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2026.1 |
| URL: | https://voluntas.github.io/ |