Posts

Resources for content creators , webmasters, html coders

Image
Resources for content creators, webmasters, html coders Photo services: picsum.photos  - The Lorem Ipsum for photos. https://unsplash.com/  - Free web photos https://pexels.com - Free stock photo website https://pixabay.com/  - Stunning royalty-free images & royalty-free stock CSS, HTML, Color, Pallete, Font services: https://codeguide.co  - guide for clean & structured HTML, CSS https://caniuse.com/  - checking that your technology supported by the browsers (CSS) http://colours.neilorangepeel.com  - a great tool for choosing colours for the site (hex, rgb) https://css-tricks.com/examples/HSLaExplorer - the  same tool for choosing colour but for hsla coolors.co/app  - is to create a palette randoma11y.com  - Randoma11y - Accessible color combinations https://specificity.keegan.st/  - CSS specificity calculator https://www.webfx.com/web-design/hex-to-rgb/  - hex to rgb https://cssfontstack.com  - A complete collection of web-safe CSS font stacks. https://fontsquirrel.com - fr

Composer life hacks

Image
Composer life hacks Switching between composer 1 & 2: composer  self-update --1   --> switch to composer 1 composer  self-update --2   -->  switch to composer 2 If you only want to install, upgrade or remove one dependency, you can explicitly list it as an argument: php composer.phar update monolog/monolog [...] composer dump-env dev - will generate .env.local.php (which you can change with your needs) Installing tools globally: php composer.phar global require friendsofphp/php-cs-fixer or just  composer global require friendsofphp/php-cs-fixer

Reload Windows environment variables without restarting PC or shutdown Explorer.exe

After installing Chocolatey , just type   RefreshEnv.cmd .

Популярні слівця у веб-розробці і не тільки у веб | Popular words in Web Development

Image
Meteor — веб-платформа на языке JavaScript , предназначенная для разработки Web-приложений реального времени . Для связи с современными браузерами   Homebrew — менеджер пакетов for OS X - (Хабрахабр) Hendlebars.js — templates engine for JS ( Хабрахабр ). Moostashe.js — templates engine for JS ( Википедия ). Nunjucks  - templates engine for JavaScript Bower — менеджер пакетов для frontend-a (требует Node.js и  Git ) Git — распределённая система управления версиями файлов ( Википедия ). Gulp — task runner (автоматизация повторяющихся задач) ( Хабрахабр ) ( learn,javascript.ru ) Grunt — task runner (тоже что и Gulp, только постарше)

Satori, Mori, Spotify

Satori, Mori, Spotify 

How to output empty line from unix like shell scripts

Image
How to output empty line from unix like shell scripts   To output empty line use this: echo -en '\n' e - interprets  \n n - outputs no empty line on the end, so there is no mess with double empty lines Use single quotes to prevent shell from interpreting chars as end of line. bash - How to add an empty line in text file using shell script? - Stack Overflow

Поради дітям у дитсадочку - 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