Posts

Поради дітям у дитсадочку - Kinder garden advices (ukr.lang)

Image
Поради дітям у дитсадочку - Kinder garden advices (ukr.lang)   Одного разу бувши у дитсадочку свого сина побачив такий стенд з порадами, закортіло злямзати )) може і вам згодиться.

Files & folders monitoring in linux

Image
Files & Folders - monitoring in Linux 1.  fswatch  install: sudo apt install fswatch use: fswatch -d /home/ 2.  inotify-tools  <verdict> --> it's better install: sudo apt-get install inotify-tools use:  inotifywait /path/to/directory --recursive --monitor

Before the Storm, Santi and Tugçe, Spotify

Image
Artist: Santi and Tugçe Track: Before the Storm

Monticello, Rodriguez Jr. - Spotify

Image
Artist: Rodriguez Jr. Track Name: Monticello

Portugal, scooters - comparing prices, 2022 year, Lisbon

Image
Portugal scooters - comparing prices, Lisbon  2022year Actions :     Superpedestrian  -->  -50% on all rides... in October 2022 per minute tariffs: Bolt   -  unlock -   free ,  0.20 € /min,  pause -  0.05 € /min ,  reservation  -  0.05 € /min ~  0.30 € /min overall ))  Bird  -  0.26 € /min,  deposit  at start  -  3 € Lime  -  0.24 € /min, as I got it if you pay with Google Pay, start deposit - free, in another case 1€  (up to 10 min - free) ..., but maybe it's for the first ride (if you know - let me know)) I'll update the article (a little tricky provider 😁) Superpedestrian  Link  -  0.28 € /min,  unlock  -  free Whoosh  -  0.15€ /min, start -  free  or  0.5 € , reservation -  0 €  for 10min,  - as I understood the price is dynamic and depends on demand scooters. daily plans: Bolt -  9.99 € -  unlimited   unlocks,  unlimited   minutes, 24h Bird -  8.99 €   10 rides maximum, up to 200 minutes per pass, 24h pass is valid from the time of purchase Superpedestrian Link -  8.99

Interesting PHP composer packages

Image
Interesting PHP composer packages for your projects   ( to be continued ... ) jokkedk/webgrind  -  Webgrind is an  Xdebug  profiling web frontend in PHP woohoolabs/yang - Woohoo Labs. Yang is a PHP framework that helps you to communicate with JSON:API servers more easily. vimeo/psalm  - A static analysis tool for finding errors in PHP applications rectorphp/rector - Rector is an open-source tool that helps with automatic PHP upgrades and code refactorings in bulk. PhpStorm 2022.2 allows you to easily run Rector on your code base and selectively apply fixes in bulk. graham-campbell/result-type   -  An implementation of the result type netresearch/jsonmapper - Map nested JSON structures onto PHP classes lesstif/php-jira-rest-client - for creating tickets in Jira and using its API vlucas/phpdotenv - Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automatically. webmozart/assert  -  This library contains efficient assertions to test the input and output

Doctrine Secrets ... for me ))) from StackOverflow and other Internet resources

Image
Doctrine Secrets Avoid using Doctrine’s Collection::matching method  - very useful when you work with the Doctrine collections Temporarily change fetch mode in DQL  - sometimes its useful Symfony2 and Doctrine - Error: Invalid PathExpression. Must be a StateFieldPathExpression You can use the currently undocumented  IDENTITY  function to select the FK IDs in a query:  SELECT IDENTITY ( c . parent ) ... or you must do $ qb -> innerJoin ( "c.parent" , "p" ) Left join ON condition AND other condition syntax in Doctrine use  Doctrine\ORM\Query\Expr; ->leftJoin( 'a.installations' ,  'i' , Expr\Join::WITH,  'i.page = :page' ) ->setParameter( 'page' , $page) Count Rows in Doctrine QueryBuilder $qb = $entityManager -> createQueryBuilder (); $qb -> select ( 'count(account.id)' ); $qb -> from ( 'ZaysoCoreBundle:Account' , 'account' ); $count = $qb -> getQuery ()-> getSingleScalarResult

Frontend'er tools (unfinished)

Image
Frontend'er tools  https://github.com/mdn - MDN Web Docs is an open-source, collaborative project that documents web platform technologies, including CSS, HTML, JavaScript, and Web APIs. We also provide extensive 🧑‍🎓 learning resources for beginning developers and students. https://jsbin.com/?html,output  - JS Bin is a tool for experimenting with web languages. In particular HTML, CSS and JavaScript, but JS Bin also supports other languages (like Markdown, Jade and Sass). https://glitch.com/ - Glitch is the friendly place where everyone builds the web. Start a new blog , play with React , or build new worlds with WebXR . Let’s go! pnpm - Fast, disk space-efficient package manager https://react-hook-form.com - React form library https://usehooks.com - A tons of using hooks https://jqlang.github.io/jq/ - jq is a lightweight and flexible command-line JSON processor.

Онлайн иструментарий веб разработчика на php (список ссылок будет пополняться)

Image
Онлайн иструментарий веб разработчика на php Blog - Use Mermaid syntax to create diagrams  - ссылочка на пост diagrams.net с примерами (по построению диаграмм на Marmaid-live editor (Mermaid’s Markdown-inspired syntax ) + екстеншн для VisualStudio code http://dbdesigner.net - инструмент построения схем базы данных с возможностью экспорта в sql файл https://sqlitebrowser.org/ - SQLlite - The Official home of the DB Browser for SQLite https://www.tutorialspoint.com/online_php_ide.php - онлайн IDE для PHP (интерфейс понравился :-) )   https://ideone.com/ - много-языковая IDE (поддерживаемые языки указаны на скриншоте ниже) Cloud based IDEs https://vscode.dev/   https://www.eclipse.org/che/   https://theia-ide.org/   https://www.gitpod.io/ Tutorialspoint codingground  - поддержка 75+ языков программирования Инструменты разворачивания среды разработки: Docker ,  Vagrant ,  Homestead (тот же vagrant + тюнинг(...хороший тюнинг :-))) Облачные службы (полного цикла): http

Speedup docker builds (ускоряем билды докера)

docker-compose build --parallel

Выборка первого и последнего дней месяца по дате (selecting the first, last days given date) (php)

Image
Выборка 1-го дня и последнего дня месяца по дате (php)  <?php  $query_date = '2010-02-04';   // First day of the month.  echo date('Y-m-01', strtotime($query_date));   // Last day of the month.  echo date('Y-m-t', strtotime($query_date)); или $first = date("Y-m-d", strtotime("first day of this month"));  $last = date("Y-m-d", strtotime("last day of this month")); или $date = new \DateTime('2021-02-05'); $first = $date->format("Y-m-01");  $last = $date->format("Y-m-t");    пример: https://3v4l.org/X6rO9 часть инфы взята отсюда  https://stackoverflow.com/questions/7541938/how-to-get-the-first-and-last-days-of-a-given-month

Быстрая настройка phpUnit для phpStorm и решение проблемы с падением тестов с --teamcity флагом

Image
Быстрая настройка phpUnit для phpStorm и решение проблемы с падением тестов с --teamcity флагом Устанавливаем  composer require --dev symfony/phpunit-bridge В консоли в папке проекта запускаем ./bin/phpunit В настройках phpStorm (версия 2019.1) переходим в настройки Test Framewors  и ставим checkbox на path to phar file , а не на composer autoload и прописываем(выбираем):  папка_проекта /bin/phpunit  не файл с расширением .phar a именно /bin/phpunit (бинарник), т.к. у Вас там может быть и /bin/phpunit.phar , но он нам не подходит. Ставим галку на Default configurations file выбираем этот  файл phpunit.xml.dist в корне вашего проекта. Если вдруг у вас вываливается ошибка на --teamcity,  то Вам нужно удалить phpUnit из системы командой sudo apt remove phpunit-* и повторить 2 и 3 шаги. мне помогло избавиться от проблемы с --teamcity и перейти с версии phpUnit 6.5 на 8.3 для php7.2, надеюсь данный рецепт Вам тоже поможет. Хорошего Вам тесто-кодо-писания! )

Мои черные списки телефонов и сайтов с которыми был негативный опыт общения или попытка развести на деньги

Image
  Мои черные списки телефонов и сайтов с которыми был негативный опыт общения или попытка развести на деньги OLX.ua - Частное объявление переводят в бизнес, закрепляют за платной категорией, вводят лимит ( интересно какой должен быть лимит для 1-го частного объявления раз в году ))) и т.о. парят платный тариф) далее больше, телефона поддержки вы на сайте не найдёте, а чат для тех у кого есть ещё одна запасная жизнь, для решения плёвого вопроса, что я сделал не так со своим объявлением и оно почему-то попало в платную категорию, но проблема скорее всего не в Вас и не с Вашим объявлением...  All Market - попытка развести на деньги под соусом "бонусной программы" на которой у Вас накопилась денежная сумма (у меня например было 400грв) и дальнейшие выуживание Вашей информации (дальнейшие мотивы мне были уже не интересны) главное не палите им свои КРЕДИТКИ и прочую инфу. Вот номера с которых были совершены звонки: 044 502 79 43 , 044 502 79 44) Ах да совсем забыл сказать первый

Популярные библиотеки иконок (opensource)

Популярные библиотеки иконок (opensource) Данные иконки базируются на основе шрифтов и по этому могут быть использованы не только программистами и дизайнерами или художниками, а так же в работе project менеджеров, контент менеджеров и прочих менеджеров ))) FontAwesome (solid, brands icons are free) - Font Awesome (v.3 if I remember are completely free) Icons.getbootstrap  - Bootstrap Icons https://iconscout.com/free-icons  - Iconscout (icons online service) https://material.io/   Google Material Design (Components, Icons) https://materialdesignicons.com/  - Material Design Icons https://aka.ms/fluent  - Fluent Icons (Figma page) Remix Icon 2.5.0  -  git link  Remix Icon 2.5.0 jQuery Icons - довольно старая библиотека в которую включены иконки, но может кто-то ещё юзает ( чит шыт к ней ), а так же отдельно jQuery UI Icon Font  - если вам нужны только иконки :) /// данный материал будет в последствии дополняться... новыми ресурсами )

Windows Tips: shortcuts and aliases

Image
Windows tips: shortcuts and aliases https://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt - interesting approaches how to add temporary environment variables and aliases Shorts (aliases) for some exe's apps if you already have these apps: code - runs Visual Studio Code text editor code .   - run it with full content current directory as a context subl - runs Sublime Text 2|3 text editor subl  .  - the same as for VS code [ cmd.exe ] - get aliases doskey /MACROS:ALL [ powershell.exe or pwsh.exe ]  - get aliases https://mcpmag.com/articles/2014/06/10/exe-alias-in-powershell.aspx - here you can read also how to create aliases alias - powershell internal aliases get-alias | where {$_.ReferencedCommand -match "exe"} | format-table Name,Definition -autosize  - this command will show you external .EXE apps aliases  [ bash.exe or git-bash.exe ]  - get aliases alias

Менеджер пакетов для Windows (software package manager)

Image
Менеджер пакетов для Windows (software package manager)   Недавно начал пользоваться такой штукой (это пакетный менеджер программного обеспечения под Windows, такие уже 100 лет используются во всех дистрибутивах linux, только называются иначе например apt или packman,  а большинство "Виндузятников" даже не знают что есть подобное и для винды, и я недавно тоже был в их числе), мне очень понравилось, рекомендую к использованию! https://chocolatey.org/ Требования к системе: Windows 7+ / Windows Server 2003+ PowerShell v2+ (minimum is v3 for install from this website due to TLS 1.2 requirement ) .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)(minimum is 4.5 for install from this website due to TLS 1.2 requirement )

Зоопарк консолек для виндов ... или не единым cmd.exe (Command line Zoo for Windows)

Image
Зоопарк консолек для виндов ... или не единым cmd.exe (Command line Zoo for Windows)  http://mridgers.github.io/clink/   -  Clink ( git ) ( функциональная замена не функциональному cmd ))) Фичи: The same line editing as Bash (from GNU’s Readline library). History persistence between sessions. Context sensitive completion; Executables (and aliases). Directory commands. Environment variables Thirdparty tools; Git, Mercurial, SVN, Go, and P4. New keyboard shortcuts; Paste from clipboard ( Ctrl-V ). Incremental history search ( Ctrl-R/Ctrl-S ). Powerful completion ( TAB ). Undo ( Ctrl-Z ). Automatic “cd ..” ( Ctrl-Alt-U ). Environment variable expansion ( Ctrl-Alt-E ). (press  Alt-H  for many more…) Scriptable completion with Lua. Coloured and scriptable prompt. Auto-answering of the “Terminate batch job?” prompt.

Не загружается Ubuntu (морда, GUI, фронт)

Image
Не загружается Ubuntu (морда, GUI, фронт) Эта статейка  https://askubuntu.com/questions/320691/ubuntu-boots-on-terminal-only-how-do-i-recover-the-gui-desktop  помогла мне вернуть жизнь (ГУЙ) моей убунте, а именно команда выполненная в терминале: sudo apt-get install --reinstall ubuntu-desktop но будьте осторожны, т.к. может не хватить места на диске, примерно необходим 1Gb. Вы так же можете попробовать другие рецепты из статьи указанной выше, которые будут требовать меньше места на жестком диске. Удачного Вам восстановления! ;-)

Настройка WOL на Ubuntu 18.04

сначала в биос-е включаем POWER-ON: Wake ON lan Редактируем файл который находится в кталоге etc/netplan/*.yaml из под рута должен быть один единственный файл. --------- network: version: 2 renderer: NetworkManager ethernets: enp2s0: match: macaddress: 50:e5:49:b3:fc:97 dhcp4: true wakeonlan: true --------- ---------- - черточки копировать не нужно ))) 50:e5:49:b3:fc:97 заменить на свой MAC адрес сетевой карты потом запускаем поочередно команды: sudo netplan try sudo netplan apply на всякий случай ссылка на источник: https://askubuntu.com/questions/1053302/wake-on-lan-not-working-if-i-turn-of-with-ubuntu

TDD Presentations (Презентации по TDD)

Image