Today, let’s talk about AWESOME X virtual frame buffer.
Virtual memory to render GUI If you want to emulate the X server and want your UI apps to render over there then the answer is Xvfb . Xvfb uses frame buffer to emulate X server.
Let’s install it first
sudo apt update sudo apt install xvfb Basic Usage:
Xvfb :111 -screen 0 1920x1080x24 & echo $!...
Information about internal package , _ and . imports in Golang!
If you come across any package named internal or you write a package with the name internal then it is treated special in Golang world! Only question to ask about it is, Who can import this internal package?
And the answer is, any file out side the package containing internal package can NOT import internal because the name is self explanatory....
If you have push access to an upstream repository and want to avoid accidental push, checkout the simple solution below.
Freedom is choosing your responsibility. It’s not having no responsibilities; it’s choosing the ones you want. Let’s set the context I will call the original repository as upstream My fork for that repository will be called as origin 90% of times I push to origin and then create pull request, but few times I push directly to upstream(create new branch or update existing one)....
Find out where Golang is installed, generally on the fedora it is /usr/local/go Or if you have custom location then check with echo $GOROOT and go to the location and rename go directory using sudo mv go go1.7.3. We keep older version for safety.
Now, go to https://golang.org/dl/ and download suitable version for your system. Lets say downloaded file is in ~/Downloads/ and then execute following (modify paths as required)...