Posts

Showing posts from August, 2018

Setup forward proxy in apache2

Proxy word is noramally used for forward proxy. It forwards requst to other server and pass downs the response to the client.
This post is not supposed to describe the differneace between forward and revsers proxy.  But if you want to find out exact differance you can refer this stackoverflow post. https://stackoverflow.com/questions/224664/difference-between-proxy-server-and-reverse-proxy-server


To setup forward proxy on your apahce2. you have to install [ if you are on linux ] / enable [ if you are using windows ] modules mod_proxy.somod_proxy_ajp.somod_proxy_balancer.somod_proxy_connect.somod_proxy_http.somod_slotmem_shm.somod_ssl.so[ If I am includeing any extra please corrent me. But I had to eanble all this modules. ]
You have to make virtual host for proxy forward
< VirtualHost *: XX  > ProxyRequests On ProxyVia On < Proxy * >   Require all granted < /Proxy > </VirtualHost>
You can restrict forward proxy for the request from certain hosts only. Just have chang…

Packfolder : archive your resource of sciter based application

Image
Packfolderpackfolder is utility provided as part sciter-sdk. It compresses resources folder under a single file of the format of your choice ( should support by packfolder ). Currently, the supported output formats areSyntex, [path]\packfolder.exe [resource-folder] [resource-file].[ext] -V [name-of-variable] -[output-format] For example, Windows PowerShellCopyright (C) Microsoft Corporation. All rights reserved. PS 08-packfolderIntro> .\packfolder.exe res res.go -v resources -goSource Code  08-packfolderIntro

Use packfolder to archive your resource

Image
In commit 25d8ed42e0bb4c4acb742de9f148f6902d32ff41 go-sciter SDK has added one new facility which automatically resolves file path for archived data . Now you can use archived data from the archive and it will resolve import by itself, as it does for c & c++.


Packfolderpackfolder is utility provided as part sciter-sdk. It compresses resources folder under a single file of the format of your choice ( should support by packfolder ). Currently, supported output format files are bin ( normal binary file ) an array of bytes in c, go, d and rust language. 

Syntex is ,
[path]\packfolder.exe [resource-folder] [resource-file].[ext] -V [name-of-variable] -[output-format]

path = full / relative path to packfolder.exe to execute commandresource-folder = full/relative path to the folder inside which your resouce is containedresource-file  = name of the file you want as your output file name-of-variable = it will the name of the varilble that will iniated with the array of bytes of your resource fo…