Asynchronous programming is very popular nowadays, mostly popularized by Javascript in Node.JS. Having single thread in Javascript leaves no way to do parallel things. Same picture is in PHP, where request is handled by single process or thread.

Good news is that PHP is not years behind. There are already async extensions and libraries, for example ReactPHP.

Our goal can easily be reached using ReactPHP based on callbacks or promises, but I want to add more magic with RxPHP. It is outstanding approach to solve daily tasks in a way you might never thought before.

So let’s describe ultimate goals and move on:  Efficially query remote Rest API via HTTP GET.

Continue reading

Painful topic once you need a visual tool to connect to MS-SQL once or twice using your shiny MacBook.

All tools I found are either too expensive either too basic and frustrating.

Except one I found recently.

DBeaver

Free, open-source, universal database client with tons of features and very visual.  Just use it!

Todays update for docker “17.06.0-rc1-ce-mac13” brough very good news.

  • Add an experimental DNS name for the host: docker.for.mac.localhost

Which means that from inside the container you can connect to host system using new DNS name “docker.for.mac.localhost”.

This is extremely useful for configuring XDebug, which connects to host system IDE.  Bye-bye custom scripts to pass host IP inside the container. Happy debugging!

 

Famous issue 77 have some news, finally!

 

Here is the magic to your docker-compose.yml that brings speed to big PHP projects like Drupal or WordPress

 

 

 

Issue link https://github.com/docker/for-mac/issues/77