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”` …
tutorials
Backup your Seagate Personal Cloud to pCloud
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 …
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 …
Uninstall or Remove Unwanted Software in your Ubuntu
Sometimes you need to remove some unwanted software. For example, you get a better software and now you want to remove or uninstall the old one. Normally, in Ubuntu you can do this by synaptic package manager which is very nice graphical management tool for removing, installing and upgrading software package. But I like to …
Set environmental variable PATH in Ubuntu
While I was installing Android SDK in my ubuntu. It was needed to set environment path. So I did a small research on it. It’s very easy. Just one line command in terminal. Suppose, I have a directory /myfile which is located in /home/yourusername/myfile that I want to set as environment variable PATH. Open the …
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 …