Skip to content

Instantly share code, notes, and snippets.

azkaban / Java

https://github.com/azkaban/azkaban

PROS

  • スケジュール管理できる
  • 日本語圏でそれなりに使われてそう(数年後これがメリット足りうるのか。。。はわからないが
  • 安定してそう
@dkkoma
dkkoma / omake.md
Last active August 29, 2015 14:16
InnoDB insert and lock test

Tx1(3098)でFOR UPDATE, Tx2(3099)でFOR UPDATE, Tx1でINSERTまでの状態

---TRANSACTION 3099, ACTIVE 14 sec
2 lock struct(s), heap size 360, 1 row lock(s)
MySQL thread id 25, OS thread handle 0x128ca0000, query id 484 localhost root cleaning up
TABLE LOCK table `test`.`single_unique_key` trx id 3099 lock mode IX
RECORD LOCKS space id 21 page no 4 n bits 80 index `ukey` of table `test`.`single_unique_key` trx id 3099 lock_mode X locks gap before rec
Record lock, heap no 4 PHYSICAL RECORD: n_fields 2; compact format; info bits 0
 0: len 4; hex 80000006; asc ;;
@dkkoma
dkkoma / file0.php
Created December 12, 2013 10:06
PHPの参照渡しは本当に遅い? ref: http://qiita.com/dkkoma@github/items/7fd216795ee2b90d90c6
<?php
function profile($funcname)
{
$bigarray = range(1, 1000000);
echo $funcname . "\n";
if ($funcname) {
$start = microtime(true);
$ret = $funcname($bigarray, 500000);
@dkkoma
dkkoma / trans_sid.rb
Created October 27, 2012 10:30
rails3.1+jpmobile2.0.10で"undefined method `config' for nil:NilClass"
# lib/jpmobile/trans_sid.rb で3.0.xの真似をしたらとりあえず動く
ActiveSupport.on_load(:after_initialize) do
case Rails.application.config.session_store.to_s
when "ActionDispatch::Session::MemCacheStore"
require 'jpmobile/session/mem_cache_store'
ActionDispatch::Session::MemCacheStore.send :include, ParamsOverCookie
when "ActiveRecord::SessionStore"
require 'jpmobile/session/active_record_store'
ActionDispatch::Session::AbstractStore.send :include, ParamsOverCookie
end
@dkkoma
dkkoma / gist:3952882
Created October 25, 2012 14:33
jQueryMobileネタの乱雑メモ(2011/12)
デメリット
・古いデバイスではエフェクトがちらついたり、遅かったりする。(パフォーマンスチューニング必要)
・自動的にリッチになるので、デザインのカスタマイズが面倒(libの挙動を把握する必要がある)
使い所
・カンタンなモバイルサイト
・業務アプリ
・モック作成
・CMS連携
@dkkoma
dkkoma / iphone.css
Created October 25, 2012 14:14
when ignored font-size at iPhone
<style>
body {
-webkit-text-size-adjust: none;
}
</style>