How to inspect element in Chrome that toggles on hover or mouse enter event?

Using the Google Chrome debugger is a great way to quickly adjust some CSS variables before you bake them in your CSS/SCSS etc file.

It works great, and CSS has been less painful since the inception of such tools (I've used FireBug in Mozilla Firefox back in the day). 

But occasionally you may need to adjust elements that show or hide on hover, with CSS :hover, or JavaScript mouseenter/mouseleave, mouseover/mouseout events. This is where the pain begins.

But don't worry, I have a simple solution for you!

Gitlab fails to pull image from docker repository

Today, when running CI for one of my projects, I got a pipeline error for my master branch. At first, I was a bit nervous because I'd already deployed these changes, but then, when I looked into the error itself, I was relieved, because it was not the tests that failed, but rather the downloading of the docker image.

ElasticSearch fix 406 Not Acceptable: error

I'm trying to index a document with ElasticSearch PHP client (version 8.8), and I'm getting an error when trying to execute the create document request:

406 Not Acceptable: {"error":"Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported","status":406}

The weird thing is that the client allowed me to create an index, but when I tried to index a document, I got an error...😕

My configuration is:

  • ElasticSearch PHP client: version 8.8
  • ElasticSearch server: version 7.10

How to fix "You have a new message" iOS notification

In the last few days, I get "You have a new message" Gmail notifications on my iPhone instead of the normal notification with the subject and part of the message itself.

It's quite an annoying issue, given the fact that I haven't changed my notifications settings.

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:
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...

FED QE4 or QE Infinity?

At the beginnig of 2018 the long-awaited QT (Quantitative tightening) was started by the FED. QT in plain words means shrinking the money supply, the opposite of QE (Quantitative Easing) which is expanding the money supply or simply printing money.

QE was the main tool used to stimulate the economy and fight the recession started late 2008. Ben Bernanke was the FED charman back then, and he promissed that QE was just temporary and at some point when the economy is in good shape this will be reverted. Fast forward 10 years and FED chairman is Jarome Powell. At the beginning of 2018 the US FED slowly began to shrink it's balance sheet, year and a half later Aug 2019, the've manage to cut off almost 700 billion dollars, but then something happened.