Build SQL update query for HTTP Patch request in Golang

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”` … 

 

Upgrade PHP from 7.0 to 7.2

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 … 

 

Share your files in a network by SAMBA Server

SAMBA is very well known Opensource applications for file and printer sharing server in Unix and Linux. It supports the Server Message Block (SMB) and Common Internet File System (CIFS) protocols used by Microsoft operating systems.  So,  it is an effective application for sharing files between Linux and Windows computers in a Network. It can also be configured as many different deployment options such … 

 

GP USSD service or dialing *111#

Many of us don’t know about GP USSD service or *111#. It seems to me very interesting and helpful. You don’t need to memorize any number for any service. That’s why sharing it here. USSD (Unstructured Supplementary Service Data) is basically a technology used by the GSM network to send information (usually text menus) between …