Posts

Showing posts from February, 2018

Sciter : GUI Application with Golang using HTML/CSS

Image
Update : 25-12-2019

This is the words from Sciter's Web site,


Sciter brings a stack of web technologies to desktop UI development. Web designers and developers can reuse their experience and expertise in creating modern looking desktop applications. Various GUI frameworks offer different UI declaration and styling languages, such as QML and XAML (Microsoft WPF). On the contrary, Sciter allows using time proven, robust, and flexible HTML and CSS for GUI definition and GPU accelerated rendering.
Before using sciter I already tried other alternatives but none of them was satisfactory as an example first i tried andlabs/ui libraryi already have written a post on it. You can read it on post gui programming with golang.  But this library is still under construction and has no support for production apps.
Secondly, I go for electron but the problem was my simple calc like the app was of size 150mb. Which is 15mb of go and other was the electron. 
Before some time I found another alternative, s…

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.


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) 





Steps  Enable the necessary modules in the ApacheCreate the password fileSet the auth directives in the virtual host file.Verify basic auth.
Enable the necessarymodules in the ApacheOpen the httpd.conf file in the apache's conf folder.



Enable the necessary modules to make the basic auth working.
Necessary modules 

mod_auth_basicmod_authn_file



Restart the apache to make the modules active.

Create Password File
You need to create a password file before you…

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 )
Requirementwindows 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



2. Install your favourite Linux subsystem from the store ( i prefer ubuntu )



3. Install Docker

   ( Docker Requires Hyper-V to run so enable hyper-v )
  …