ビット演算についてメモしとく(ほとんど使用しないが...)
package main import ( "fmt" ) func main() { // 左シフト演算(1を左に3ビットシフト) fmt.Println("1 << 3=", 1 << 3) // 1 << 3= 8 // 右シフト演算(2進数で(10)を右に1ビットシフト) fmt.Println("2 >> 1=", 2 >> 1) // 2 >> 1= 1 // ビットクリア(and not) fmt.Println("3 &^ 6=", 3 &^ 6) // 3 &^ 6= 1 /* and notの考え方 3 and (not 6) 3(0011) 6(0110) notなので(1001) 0011 1001 ---- 0001 */ }
Jmeterでの設定値について
Jmeterでの設定値
スレッド数 | Rump-up時間(秒) | ループ回数(等間隔にスレッドの生成を同時に何回行うか) | 生成スレッド間隔(秒) | 秒間で作成されるテストケース(個) | 総送信数(分) |
4500 | 3600 | 10 | 0.8 | 12.5 | 750 |
■計算式
(1)生成スレッド間隔(秒) = Rump-up時間(秒) / スレッド数
(2)秒間で作成されるテストケース(個) = (スレッド数 * ループ回数) / Rump-up時間(秒)
(3)総送信数(分) = 秒間で作成されるテストケース(個) * 60
※生成スレッド間隔(秒)が1とかだと、一定間隔でアクセスされない感じ
※上記の計算式から「スレッド数」「Rump-up時間」「ループ回数」のパラメータを調整
Go(Revel)のtemplatesの使用方法メモ
Go(Revel)のtemplatesの使用方法があったのでとりあえずメモ。
GitのREADMEファイルのテンプレート
何かよいテンプレートファイルがないか探していたところ
以下のようなものがあったのでメモ。
# Awesome-name ![Badge Status](https://ci-as-a-service) OverviewOverviewOverview ## Description DescriptionDescriptionDescription DescriptionDescriptionDescription DescriptionDescriptionDescription ***DEMO:*** ![Demo](https://image-url.gif) ## Features - Awesome function - Awesome UI - ... For more information, see `awesome-tool --help`. ## Requirement - Requirement - Requirement - Requirement ## Usage 1. Usage 2. Usage 3. Usage ## Installation $ git clone https://github.com/b4b4r07/awesome-tool ## Anything Else AnythingAnythingAnything AnythingAnythingAnything AnythingAnythingAnything ## Author [@b4b4r07](https://twitter.com/b4b4r07) ## License [MIT](http://b4b4r07.mit-license.org)
▼参考URL
qiita.com
MySQLで異なるDBに存在するテーブルを結合
ずっとできないと思っていたが、DBを跨いでテーブル結合ができるのか。。
FuelPHPのコントローラのメソッド
FuelPHPのソースコードを読んでいると、分からないことがあったのでメモ。。
■FuelPHPのコントローラのメソッド
runble1.com
CentOS6にPHP5.6をコンパイルしてインストール
■PHP 5.6.30をインストールする前の準備
# --- libxml2のインストール yum install -y libxml2 libxml2-devel # --- openssl-develのインストール yum install -y openssl-devel # --- bzip2-develのインストール yum install -y bzip2-devel # --- curl-develのインストール yum install -y curl-devel # --- libjpeg-develのインストール yum install -y libjpeg-devel # --- libpng-develのインストール yum install -y libpng-devel # --- freetype-develのインストール yum install -y freetype-devel # --- libicu-develのインストール yum install -y libicu-devel # --- libmcrypt-develのインストール yum install -y libmcrypt-devel --enablerepo=epel # --- configureの設定 ./configure '--prefix=/usr/local/php-5.6.30' '--with-config-file-path=/usr/local/php-5.6.30/etc' '--with-config-file-scan-dir=/usr/local/php-5.6.30/etc/conf.d' '--disable-debug' '--enable-bcmath' '--enable-exif' '--enable-cgi' '--enable-fpm' '--enable-ftp' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-intl' '--enable-mbregex' '--enable-mbstring' '--enable-sigchild' '--enable-soap' '--enable-sockets' '--enable-sysvsem=yes' '--enable-sysvshm=yes' '--enable-xml' '--enable-zip' '--with-bz2' '--with-curl' '--with-gd' '--with-gettext' '--with-iconv' '--with-mcrypt' '--with-mhash' '--with-mysqli' '--with-openssl' '--with-pdo-mysql' '--with-xmlrpc' '--with-zlib' '--with-freetype-dir=/usr/include/freetype2' '--with-jpeg-dir=/usr/lib' '--with-libxml-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/lib' '--with-fpm-user=apache' '--with-fpm-group=apache' # --- make make make install