Displaying 271-276 of 276 results.
Resolved: Ubuntu How to remove config file from apache2 sites-available folder
posted by admin on February 10, 2017
I want to remove file from /etc/apache2/sites-available/,
For example this file, and I have no permission
/etc/apache2/sites-available/website.confRead more
Resolved: MySQL get most popular tags ids combination with their counts
posted by admin on April 18, 2016
I have three tables
1.tbl_tag

id int NOT NULL AI PK
name VARCHAR(50) NOT NULL

id name
1 lifestyle
2 store
3 car
4 luxury
5 classy
6 boy
7 girl
8 man
9 woman
10 strong
etc ...


2.tbl_media

id int NOT NULL AI PK
name VARCHAR(50) NOT NULL

id name
1 one
2 two
3 three
4 four
5 five
6 six
7 seven
8 eight
9 nine
10 ten
etc...


3. tbl_media_tag

id int NOT NULL AI PK
media_id int NOT NULL -> relationship with tbl_media
tag_id int NOT NULL -> relationship with tbl_tag

id media_id tag_id
1 1 4
2 1 3
3 4 3
4 5 2
5 6 8
6 4 4
7 8 7
8 7 4
9 7 3
10 6 2
11 8 4
12 8 3
etc...


I want to get most popular tags(tag_id) combinations with LIMIT, for example most popular top ten tags combination

I want to get result like this

4, 7, 3 (75)
4, 8 (42)
1, 7, 9, 10 (28)
7, 8, 9 (10)
7, 2 (2)
Read more
Wiki: Using font-face cross browser. Синтаксис Fontspringwiki
posted by admin on March 25, 2016

@font-face {
font-family: 'MyFontFamily';
src: url('myfont-webfont.eot?') format('eot'), /* IE9 Compat Modes */
url('myfont-webfont.woff') format('woff'), /* Pretty Modern Browsers */
url('myfont-webfont.ttf') format('truetype'), /* Safari, Android, iOS */Присылайте
url('myfont-webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
Read more
Wiki: Composer can be installed by following the instructionswiki
posted by admin on February 1, 2017
This process looks as follows:

curl -sS https://getcomposer.org/installer | php

nstaller | php
[/plain]
Alternatively, if you don't have cURL available on your system, it can be installed through PHP itself:

php -r "readfile('https://getcomposer.org/installer');" | php
Read more
Resolved: Ubuntu Wordpress Не удалось подключиться к файловой системе. Перепроверьте координаты.
posted by admin on August 29, 2018
Не могу обновить не плагины вордпресс не сам вордпресс. Выскакивает форма на заполнение серверных данных и фтп данных.Read more
Resolved: Yii 2.0.12.2 advanced ./yii(php yii) console throw error Exception yii\base\UnknownPropertyException
posted by admin on October 13, 2018
Yii2 advanced
common main.php config

<?php

return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
'i18n' => [
'translations' => [
'app*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@common/messages',
],
'app*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@common/messages',
],
],
],
'assetManager' => [
'appendTimestamp' => true,
'linkAssets' => true,
],
'request' => [
//'enableCookieValidation' => true,
//'enableCsrfValidation' => true,
'parsers' => [
'application/json' => 'yii\web\JsonParser',
]
],
],
'on beforeAction' => function ($event) {
//to do
},
];

command line comand in yii2 project directory

arthur@smart:/var/www/smartsuccess/html$ php yii


Throw error

Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\Request::parsers'

in /var/www/smartsuccess/html/vendor/yiisoft/yii2/base/Component.php:201

Stack trace:
#0 /var/www/smartsuccess/html/vendor/yiisoft/yii2/BaseYii.php(529): yii\base\Component->__set('parsers', Array)
#1 /var/www/smartsuccess/html/vendor/yiisoft/yii2/base/Object.php(105): yii\BaseYii::configure(Object(yii\console\Request), Array)
#2 [internal function]: yii\base\Object->__construct(Array)
#3 /var/www/smartsuccess/html/vendor/yiisoft/yii2/di/Container.php(381): ReflectionClass->newInstanceArgs(Array)
#4 /var/www/smartsuccess/html/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('yii\\console\\Req...', Array, Array)
#5 /var/www/smartsuccess/html/vendor/yiisoft/yii2/BaseYii.php(348): yii\di\Container->get('yii\\console\\Req...', Array, Array)
#6 /var/www/smartsuccess/html/vendor/yiisoft/yii2/di/ServiceLocator.php(135): yii\BaseYii::createObject(Array)
#7 /var/www/smartsuccess/html/vendor/yiisoft/yii2/console/Application.php(219): yii\di\ServiceLocator->get('request')
#8 /var/www/smartsuccess/html/vendor/yiisoft/yii2/base/Application.php(380): yii\console\Application->getRequest()
#9 /var/www/smartsuccess/html/yii(27): yii\base\Application->run()
#10 {main}

Read more