How to fix "Failed to download symfony/webpack-encore-pack from dist"

To fix failed to download symfony webpack encore pack from dist you have to replace symfony/webpack-encore-pack with symfony/webpack-encore-bundle in your composer.json file.

Symfony Twilio Notifier Example

To use the Symfony Notifier component with Twilio, you need to install the symfony/twilio-notifier package and configure it.

Symfony pagination example

The easiest way to create pagination in your Symfony app is by using third-party libraries. The recommended and most used library for this purpose is KnpPaginatorBundle.

Announcing new hobby project - ExampleHub for coding tutorials and examples

Today I'm happy to announce my new hobby project - ExampleHub - Code examples and tutorials a tutorial-based website packed with coding examples and guides for various languages like JavaScript, PHP, MySQL, Python, and more.

I will begin by sharing JavaScript examples, focusing on addressing common issues such as "How to cut a string in JavaScript" or "How to format numbers with commas in JavaScript" and similar topics.

I have already written a couple of articles, and what I find truly fascinating is that when you need to write an article, you delve deep into the subject matter and gain a better understanding of the topic. This creates a mutually beneficial situation, where I can improve my knowledge and problem-solving skills, and the readers can benefit from it as well.

Currently, the site may appear lacking as it only contains a small number of JavaScript articles. However, please be patient as improvements will be made gradually.

I'm eager to discover where this path will take me! :)

How to fix failed Java JDK/JRE install on Debian/Ubuntu dpkg error

It's one of those issues, where the fix is simple and dumb, but hard to find. I was struggling to install default-jre package on Debian 10 Docker container (I suspect it's the same on some versions of Ubuntu). I always got the same error at the end:

...
Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 default-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
....

I've tried with different packages default-jdk, default-jreopenjdk-11-jre-headlessopenjdk-8-jre-headless and the result was the same.

Facebook Ads Manager payment method change error fix

Recently I tried to change the credit card used as a payment method in my Facebook Ads account. This may seem like a straightforward thing to do, but apparently it's not :).

So adding the card itself wasn't the problem, but when I tried to make it primary, so that facebook can charge it automatically this error appeared:

"This credit card can't be set as your account's primary payment method, because your account is set up to be billed after your ads have delivered. This setup can't be changed. Please try a different card or payment method."

From the little research I did on this topic, it seems that facebook accounts can be set to different charge methods, before delivery, after delivery etc, but this can't be changed after the account is created, you have to create new one...

The best NeoVim/Vim PHP autocomplete plugin by far

Ever since I started using VIM/NeoVim as my primary IDE for PHP development, I felt the need for better autocomplete, with methods, namespaces, go-to definitions and all the good stuff that big IDE's autocomplete systems like PHPStorm already have. Many times, I've tried and searched for a good php autocomplete plugin, but I've never managed to find one.

Hello world

Hello world (:, this is my first blog post.

I've managed to create this simple blog platform during the Christmas holidays using PHP and the new version of the Symfony 5 Framework.

This process took me only 5-6 hours, this is how good Symfony has become.

Happy holidays!