ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
check process elasticsearch with pidfile /var/run/elasticsearch.pid | |
start program = "/etc/init.d/elasticsearch start" | |
stop program = "/etc/init.d/elasticsearch stop" | |
if 5 restarts within 5 cycles then timeout |
function in_array(needle, haystack, strict) { | |
//original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
var found = false, key, strict = !!strict; | |
for (key in haystack) { | |
if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) { | |
found = true; | |
break; | |
} | |
} |
'components' => array( | |
'errorHandler'=>array( | |
'errorAction'=>'/site/error', | |
), | |
... | |
), |
#city_map label { width: auto; display:inline; } | |
#city_map img { max-height: none; max-width: none; } |
This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
timeend= new Date(); | |
timeend= new Date(2013,0,1); | |
// для задания обратного отсчета до определенной даты укажите дату в формате:2013,0,1 | |
// timeend= new Date(ГОД, МЕСЯЦ-1, ДЕНЬ); | |
// Для задания даты с точностью до времени укажите дату в формате: | |
// timeend= new Date(ГОД, МЕСЯЦ-1, ДЕНЬ, ЧАСЫ-1, МИНУТЫ); | |
function time() { | |
today = new Date(); | |
today = Math.floor((timeend-today)/1000); |
This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi
//Проверка пустоты объекта ~size ~sizeof | |
var size = function (obj) { | |
var size = 0, key; | |
for (key in obj) { | |
if (obj.hasOwnProperty(key)) size++; | |
} | |
return size; | |
}; |
//Вхождение в массив | |
var in_array = function (needle, haystack, strict) { | |
//original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
var found = false, key, strict = !!strict; | |
for (key in haystack) { | |
if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) { | |
found = true; | |
break; | |
} |