Setting up vue-cli in docker

To setup vue-cli in docker we need nodejs and vue-cli 3. We are going to use docker-compose.yml to setup docker, paste following to your docker-compose.yml file docker-compose.yml Paste following into Dockerfile Dockerfile Now we have docker files setup, lets build the docker images After docker is built login into docker container using container id and […]

How to use ISODate in PHP/Laravel

In MongoDB Date objects are stored as a signed 64-bit integer representing the number of milliseconds since the Unix epoch (Jan 1, 1970). Not all database operations and drivers support the full 64-bit range. You may safely work with dates with years within the inclusive range 0 through 9999. ISODate is not supported by PHP/MongoDB […]

Fix magento Warning: Error while sending QUERY packet

You may encounter some error like below when installing magento with sample data [ERROR] exception ‘Exception’ with message ‘Warning: Error while sending QUERY packet. PID=227012 Fix: That error is because of low max_allowed_packet  configuration in your php.ini file, open your local (project level) php.ini file and add following For more info on magento level php.ini configuration […]

Two icons in dock?

Some time dock starts showing two icons of an app in dock, that is because dock failed to match the application window manager name (class) with the opened app. For example MongoDB Compass showing dual/two icons on the docky. To see what class name app is actually using we need to use xprop which is […]