Posts

Showing posts from February, 2018

GUI programming with golang

Image
I am using the  andlabs/ui  library for GUI with golang.  It's quite easy to setup on the mac and Linux.  Video Guide But was not that much straightforward to setup on windows.  It required the  MinGW-w64 [ download from here ] . Make sure you are using the latest version of the MinGW-w64.   Select the appropriate architecture during the installation. Select architecture After installation of the MinGW set to add the path to the bin folder of the MinGW in the PATH variable. Set environment variable Copy the code from the getting started to your favourite editor package main import ( "github.com/andlabs/ui" ) func main() { err := ui.Main( func () { input := ui.NewEntry() button := ui.NewButton( "Click" ) greeting := ui.NewLabel( "" ) box := ui.NewVerticalBox() box.Append(ui.NewLabel( "Label" ), false ) box.Append(input, false ) bo

Apache : setup basic auth with apache in windows

Image
Authentication is any process by which you verify that someone is who they claim they are. Authorization is any process by which someone is allowed to be where they want to go or to have information that they want to have. I will show here how to set up basic auth on the apache with windows. Pre-requests  Windows VPS Apache server ( That's it ) ( In windows it might be difficult to setup the Apache alone. So instead use something ling xampp , wamp or laragon .) RestClient (  I personally use the postman , but you can use your preferable client)  Windows VPS provider Steps  Enable the necessary modules in the Apache Create the password file Set the auth directives in the virtual host file. Verify basic auth. Enable the  necessary   modules  in the Apache Open the httpd.conf file in the apache's conf folder. httpd.conf file Enable the necessary modules to make the basic auth working. Necessary modules  mod_auth_basic

setup hyperledger fabric on windows 10

Image
What is the Hyperledger fabric? Hyperledger Fabric  is a business blockchain framework hosted by the Linux Foundation intended as a foundation for developing blockchain applications or solutions with a modular architecture.  Hyperledger Fabric  allows components such as consensus and membership services to be plug-and-play. ( From Google Search Result ) Though documents say that hyper ledger fabric works on the windows, I can't find it running in well. I tried hard to run it but failed. But I found another way to run the hyper ledger on windows with Linux subsystem which has been officially available in windows 10. (Video Guide ) Requirement windows 10 Pro Docker CE PowerShell Nodejs Go 1.9 Basic Setup ( Step - 1 ) The first step to set up the hyperedge fabric on windows is to enable the Linux subsystem 1. Enable the Linux subsystem on your windows Enable Linux SubSystem 2. Install your favourite Linux subsystem from