Open in app

Sign In

Write

Sign In

Philipp Scheit
Philipp Scheit

40 Followers

Home

About

Sep 3, 2022

Get your tabs together!

(How to change the title of tabs in Windows terminal, when you are using WSL2) If you are like me, you have a dozen of open tabs in your windows terminal… That’s a problem, cause most of the time, these are not tabs in the same directory.. some are running…

Windows

2 min read

Windows

2 min read


Aug 3, 2022

Encode symfony database url within nomad template with go

When you password contains % or other special chars in the doctrine DSN, then you need to escape them by doubling them: {{ .Data.data.password | urlquery | replaceAll "%" "%%" }} Full snippet to create the DSN for doctrine from several parts: {{ with secret "secret/data/web/database" }} DATABASE_URL="mysql://{{ .Data.data.user }}:{{ .Data.data.password | urlquery | replaceAll "%" "%%" }}@{{ .Data.data.vlanIp }}:{{ .Data.data.vlanPort }}/${var.database_name}?serverVersion=5.7" {{ end }}

Nomad

1 min read

Nomad

1 min read


Jun 28, 2022

notes about srcset and images

The magic consists of two parts a) the srcset, providing different image srces with their given width b) the sizes attribute specifies how the image is rendered on which breakpoint Imagine you are the browser and you want to load images.. do you know the size yet? — nope. You…

1 min read

1 min read


Jun 1, 2022

How to xdebug when your PHPStorm runs with xserver inside WSL2, but you use Docker Desktop on windows 10

Once you know whats happening, its not that scary. the hard part (networking) a) Your container will run in the (bridged) docker network on the windows host. You just call docker commands on the docker daemon from within the WSL2. So WSL2 is a client to the docker daemon on the windows host b)…

PHP

3 min read

How to xdebug when your PHPStorm runs with xserver inside WSL2, but you use Docker Desktop on…
How to xdebug when your PHPStorm runs with xserver inside WSL2, but you use Docker Desktop on…
PHP

3 min read


Dec 21, 2021

phpstan complains: PropertyPath (from symfony) does not specify iterable type

When you are using phpstan and the Symfony Component Property Access and you would get this error: Method YAY\Sync\Subject::initPath() has parameter $path with no value type specified in iterable type Symfony\Component\PropertyAccess\PropertyPath Make sure that you a) have the phpstan symfony extension installed b) you are using the interface: private function initPath(PropertyPathInterface $path): void

PHP

1 min read

phpstan complains: PropertyPath (from symfony) does not specify iterable type
phpstan complains: PropertyPath (from symfony) does not specify iterable type
PHP

1 min read


Jul 22, 2021

MSI Summit E15 Business Notebook: the TPM is disabled

(Maybe this applies to other notbooks from MSI as well). I had to sent my Laptop (an MSI E15 Notebook) via RMA. When it came back, the TPM was disabled. I had a long back and forth with the MSI support, but then I could finally enable the TPM again…

Msi

1 min read

Msi

1 min read


Jul 16, 2021

How to fix: weird phpstan internal errors from class loading when running analyse

Lets say you use phpstan and you bootstrap the symfony application for phpstan (or doctrine-extension of phpstan). You can get errors like this: Internal error: Internal error: The autoloader expected class “Hoa\Zformat\Parameter” to be defined in file “phar:///app/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/../hoa/zformat/Parameter.php”. The file was found but the class was not in it, the…

Phpstan

2 min read

Phpstan

2 min read


Jun 16, 2021

How to fix: behat/mink/selenium error: invalid argument: ‘handle’ must be a string

or other incompatibilities issues with newest chromedrivers but outdated selenium webdriver libraries (like instaclick/php-webdriver). since the new chrome webdriver is w3c compatible, but behat isnt yet. This was the github thread that helped: https://github.com/minkphp/MinkSelenium2Driver/issues/293 but be aware: chromeOptions was renamed to goog:chromeOptions You can track: https://github.com/instaclick/php-webdriver/issues/84 to see when the issue is fixed

Behat

1 min read

How to fix: behat/mink/selenium error: invalid argument: ‘handle’ must be a string
How to fix: behat/mink/selenium error: invalid argument: ‘handle’ must be a string
Behat

1 min read


Mar 9, 2021

Get the IP address of the desktop / windows host in WSL2

When you are IN the wsl2 and you want to know how to connect to the desktop / the windows host, here is how i did it hostip=$(wsl.exe hostname -I) I found lots solutions that were awk’ing the resolve.conf but had the google servers in there. You need that, when you want to connect to your display server, or use some npipe hacks or else this worked before (with the an older windows version 11): hostip=$(ipconfig.exe | grep 'vEthernet (WSL)' -A4 | cut -d":" -f 2 | tail -n1 | sed -e 's/\s*//g')

Wsl 2

1 min read

Wsl 2

1 min read


Dec 29, 2020

Suddenly drives are not mounted anymore in WSL2

Execute command Restart-Service LxssManager in Powershell as admin

1 min read

1 min read

Philipp Scheit

Philipp Scheit

40 Followers

Senior Web Developer — Entrepreneur — yaymemories.com

Following
  • kabandi saikia

    kabandi saikia

  • Dropbox

    Dropbox

  • HanisahKZ

    HanisahKZ

  • Digitalagentur helllicht

    Digitalagentur helllicht

  • Frank Thelen

    Frank Thelen

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech