Every day, we build a lot of docker images. You know everything; still, I listed some best practices for optimizing docker build that I follow in day-to-day development. By the way, many best practices are already mentioned on the Docker website. I will share what I do for Golang docker image building. It s applicable almost The post Docker Best Practices: Optimizing Your Builds for Speed and…
GitHub is an excellent platform for managing code repositories and collaborating with other developers. One of the great features of GitHub is Github Action, which automates your workflow for private and public repositories. However, recently, I noticed that GitHub Action is throwing an error while using GITHUB_TOKEN in the private repo. This issue is not The post Github’s “repository not found”…
Golang is getting popular for writing a web applications. One of the core concepts of this web application is handling requests and responses. In Golang, net/http package from the standard library provides all HTTP requests and responses mechanisms. As a developer, you often print this HTTP request or the response for debug purposes. net/http/httputil package The post Inspect HTTP Request and…
It seems pretty straightforward to implement HTTP Patch request. The handler receives the request, unmarshals the body, validates the payload, sanitizes it and then sends it to persist layer for persisting into the Database. Let s look into an example. For example, we are updating a user resource. type UserResource struct { FirstName string `json:"first_name,omitempty" db:"first_name"` The post…
This is the upgrade of my previous post . Previously, I showed how to upgrade to 7.2. Now, it s time for one more jump to new version. The latest version of PHP comes with a couple of changes Arrow functions (Adds short closures) Preloading to improve performance Typed properties in classes Improved type variance The The post Upgrade to PHP 7.4 from PHP 7.2 first appeared on Eftakhairul's World .
I was looking for a proper solution to take the backup of my Seagate Personal Clould (NAS server) to another cloud storage. It s just an extra layer of backup in case any hazard occurs in my home. Seagate Personal cloud already has some built-in supports for well known cloud services likes Dropbox, One drive and The post Backup your Seagate Personal Cloud to pCloud first appeared on Eftakhairul's…
Logging is an essential part of application. According to Twelve-Factor App methodology it s the XI factor of application development. A proper logging gives you a valuable insite of your application. In Node.js application, it is always suggested to use logging libraryrather than just using console.log in productione environment. Log4js, Bunyan , and Winston are the The post Logging with Winston…
This is a common issue for the developers to access ec2 instances by username and password authentication. It requires a few steps to do that. First, login as root using the key pairs. Second, create a user sudo adduser username Third, you need to grant root level permission to the new user visudo Add following The post SSH to AWS EC2 instance without key pairs first appeared on Eftakhairul's…
A long ago, I wrote about how to upgrade to 7.0. PHP 7.2 is released. Now, it s the time again to upgrade to the new version. The latest version of PHP comes with a couple of changes Convert numeric keys in object/array casts Counting of non-countable objects Object typehint HashContext as Object Argon2 in password The post Upgrade PHP from 7.0 to 7.2 first appeared on Eftakhairul's World .
Never thought that GIT squashing would be that important for the open source contribution. I was contributing to an open source project. I finished the feature and created a pull request. Surprise!!! the community didn t accept my pull request. Okay. It was not rejected because of my wrong implementation or bad code. It was rejected just The post GIT Squashing and open source contribution first…