-
Bad file format reading the append only file – Redis
I am running redis as docker container from official image on my local Windows Docker Desktop. Sometimes when my Machine and Docker Desktop is restarted, redis refuses to start the service with the below error. I have kept the appendonly flag as yes when running the server To fix this issue we do exactly what…
-
Timezone issue when migrating to new mysql server
I have a Laravel application currently on production. Recently I was under a situation where I had to move the staging database to a new the new server with latest OS. This is one of the exercise that my company does. Since it is staging, I can take a downtime. Simply took a dump from…
-
Adding phpMyAdmin service to Laravel Sail docker-compose.yml
I was exploring Laravel Sail and noticed that TablePlus was suggested to manage Database which is Free and good. But I have an alternative, phpMyAdmin. It is easy to setup and link with our Laravel Application. In this article, I am attaching a code snippet for docker-compose.yml which will spin up a phpMyAdmin along with…
-
Is Janata Curfew a Marketing Stunt?
Indian Prime Minister Narendra Modi has requested people not to leave their house on March 22nd, 2020 from 7 am to 9 pm. My address to the nation. #IndiaFightsCorona https://t.co/w3nMRwksxJ — Narendra Modi (@narendramodi) March 19, 2020 First let us try to understand the basic cases and scenarios around us and in the news.…
-
Create first Composer Package
Summary By now most of the PHP developers with some experience know what Composer is why everyone is using it. If not, Composer is a dependency package manager of the project. In simple terms I can say, Composer: Easily installs 3rd party libraries Autoload Library Classes in the project Easily upgrade 3rd party libraries without…
-
Misuse of WhatsApp Web
Update 25-02-2017: Security Improved: Now you will know in the notification bar of your mobile when WhatsApp Web is being used. WhatsApp Web is a feature from WhatsApp that allows you to access your WhatsApp from browser I.e laptop, desktop, etc. This feature can be misused by the one who can get access to your…
-
Coolpad Note 3 : Review that matters…
I am personally using this phone from past 3 days 1 month and let me tell you in short, just go for it if you are looking for good configuration with small budget. Review will consist of my experience with phone till now. It has 3GB RAM, 1.3 GHz octa-core CPU, mediatek chipset, 5.5 inch…
-
HTML and CSS can’t vote!
NO! You are not supporting internet.org if you have changed your profile picture recently to support Digital India. This above image is HTML and CSS. It is used just for displaying purpose and styling (trust me, I am an engineer), this doesn’t prove we have voted. The code is just re-used by facebook from internet.org.…
-
Run a Javascript on 1st second of every minute
A very common way to execute a code every minute is something like this: setInterval(function(){ console.log(“Function to execute every minute”); }, 1000*60); Above code should always work just fine. But what if we want exactly on some particular second ? or as soon as some time has passed. Below I will show an example where…