понедельник, 23 ноября 2020 г.

[Sylius] Argument 1 passed to Sylius\Component\Grid\Definition\Filter::setTemplate() must be of the type string, null given fix

 put `grid: <gridname>` into your route like this:

tests:
path: /tests
defaults:
_controller: app.controller.test:indexAction
_sylius:
template: tests/index.html.twig
grid: app_test

воскресенье, 22 ноября 2020 г.

[Monofony] how to create/get admin user?

 run `php bin/console app:install:database`, after then you will have user "admin@example.com" with password "admin". You can use it in 127.0.0.1:8000/admin/login

понедельник, 9 ноября 2020 г.

[Vue] [vee-validate] collection.indexOf is not a function - how to fix

 It occurs when to get error message (with `errors.first('myfield')`) of not existing field. In another words, check that component field has v-validate tag attribute (and maybe also `name` attribute). Or remove `errors.first('myfield')` line at all, this will fix this error.

вторник, 25 августа 2020 г.

Encore does not load css/sass files in tsx/js files fixed

 If you installed @types/node-sass, enabled enableSassLoader in webpack.config.js, ran yarn add sass-loader@^8.0.0 node-sass --dev , do not forget to add {{ encore_entry_link_tags('main') }} like this (for example in templates/base.html.twig:


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}
{{ encore_entry_link_tags('main') }}
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('main') }}
{% endblock %}
</body>
</html>

понедельник, 11 мая 2020 г.

Ciatronic BS 1307 floor nozzle rotates badly - how to fix it

If your vacuum cleaner Ciatronic BS 1307a become less efficient and slow in rotating a floor nozzle, probably you should to disassemble brush roller. There you should to clean around the motor, most likely there solid bunch of hair, the tip is to cut them, for example with scissors. I had spent 30 minutes to cut hair, that's why there was such problem with vacuum cleaner performance. After that seems like it becomes work better. I have been using this household appliance for 1 year.

суббота, 14 марта 2020 г.

How to convert Ubuntu to Kubuntu without reinstall?

You can do it safely with command sudo apt-get install kubuntu-desktop , and you will get absolutely the same version as Kubuntu.

пятница, 21 февраля 2020 г.

FZF + Ohmyzsh: "Cannot find fzf installation directory" fix

Add export FZF_BASE=~/.oh-my-zsh/plugins before plugins line in .zshrc

Also for Ubuntu you can install .deb package by Launchpad link: http://launchpadlibrarian.net/456699009/fzf_0.20.0-1_amd64.deb

суббота, 4 января 2020 г.

[KDE] how to disable Vaults

Only way is to uncheck it in "Configure system tray settings", by pressing right mouse button on notification arrow near to clock on panel. AFAIK it cannot be disabled by activities settings.

Works on Plasma 5.16 and later.