Проверить, не используется ли глобально свойство transition

*{
	/*
	transition:0.1s;
	*/
}

https://habr.com/ru/sandbox/99895/

Categories: CSS Tags:
$(window).load(function(){
	var index=0;
	if(index>=$('img.loading').length){
		clearInterval(intrvl);
	}
	intrvl=setInterval(function(){
		$('img.loading').eq(index).attr('src',$('img.loading').eq(index).attr('data-src'));
		index++
	},10);
});
<img data-src="/resize/icons/auto/228/228/icon274.png" class="loading" src="/assets/images/ajax_loader.gif" alt=""/>
Categories: Javascript Tags:

Для ссылок на jpg, которые не открываются в новом окне:

$("a[href$='.jpg'][target!='_blank']").on("click",function(){
});
Categories: Javascript Tags:
$timeout=5;
$send=array(
	'k'=>'v'
);
$opts=array(
	'http'=>array(
		'method'=>'POST',
		'header'=>'Content-Type: application/json; charset=utf-8',
		'content'=>json_encode($send),
		'timeout'=>$timeout
	)
);
$context=stream_context_create($opts);
$result=file_get_contents('https://example.com/url',false,$context);
preg_match('/([0-9])\d+/',$http_response_header[0],$matches);
$responsecode=intval($matches[0]);
if($responsecode==200){
}
Categories: PHP Tags:
echo preg_replace('#<a.*?>(.*?)</a>#i','\1',$text);
Categories: PHP Tags:

Проблема с версиями по умолчанию на centos 8.
php.ini

max_execution_time=14400

httpd.conf

Timeout 14400

в начале выполнения долгого скрипта:

echo ' ';

https://stackoverflow.com/questions/57677878/http-504-gateway-timeout-apache-2-4-6

Categories: Linux Tags:
17 апреля 2022 Нет комментариев

При попытке экспорта:

mysqldump --opt -uuser -ppassword db | gzip -c -9 > db.sql.gz

получаем ошибку:

Got error: 1016: "Can't open file: './db/table.frm' (errno: 24)" when using LOCK TABLES

использовать --lock-tables=false

mysqldump --opt -uuser -ppassword db --lock-tables=false | gzip -c -9 > db.sql.gz
Categories: Linux Tags: ,