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 … Continue reading Setting up vue-cli in docker
MongoDB tools provide some awesome utilities like mongoimport, mongoexport and mongorestore. Database dump can be easily imported/restored using mongorestore as follow. You may restore dump to a specific database as well.
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 … Continue reading How to use ISODate in PHP/Laravel
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 … Continue reading Fix magento Warning: Error while sending QUERY packet
To get only date part of date time use either substr i.e Or use $dateToString
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 … Continue reading Two icons in dock?