[go-nuts] [ANN] Use Twitter over satellite, send Emails over telephone, watch YouTube on Windows 98 - what more can a geek desire? (laitos v4.1)

2020-09-08 Thread Houzuo Guo
Hey fellow Gophers! As a professional geek 邏, you need Internet access whenever and wherever! That's what laitos grants you - Internet access and features using primitive communication infrastructure such as telephone, SMS, and satellite terminal. Check out the latest version 4.1:

[go-nuts] Re: exec.Cmd.Process.Kill doesn't unblock exec.Cmd.Wait

2020-07-15 Thread Houzuo Guo
Not a direct answer to your question, but I've come across plenty of issues that prevented reliable termination of external processes (along with their children). Eventually I came to this solution, it's been thoroughly tested in production: func KillProcess(proc *os.Process)

[go-nuts] [ANN] The top geek's survival kit - tweet over telephone, news over SMS, browser over Email, and much more! Check out the open source laitos project.

2020-04-13 Thread Houzuo Guo
Hello fellow Gophers. With the ongoing global-scale challenge, I present to you the top geek's survival kit - tweet over telephone, news over SMS, browser over Email, and much more! The free and open source laitos software connects to primitive infrastructure such as telephone, SMS, and

Re: [go-nuts] At runtime, is there a way to tell the structure's symbol name, of which a bound method offered a satisfactory implementation of a function type?

2019-06-10 Thread Houzuo Guo
Thanks very much Ian! Kind regards, Howard On Tue, 11 Jun 2019 at 08:32, Ian Lance Taylor wrote: > > On Mon, Jun 10, 2019 at 10:23 PM Houzuo Guo wrote: > > > > Here's a complete example constructed from the snippets: > > > > - > >

Re: [go-nuts] At runtime, is there a way to tell the structure's symbol name, of which a bound method offered a satisfactory implementation of a function type?

2019-06-10 Thread Houzuo Guo
: > > On Sun, Jun 9, 2019 at 10:17 PM Houzuo Guo wrote: > > > > Thanks very much Ian - indeed I should have proof read the message. With > > the last paragraph, I wished to ask for a way to tell a non-nil ` var f > > Fun` is assigned to `funA` of any instance of structur

Re: [go-nuts] At runtime, is there a way to tell the structure's symbol name, of which a bound method offered a satisfactory implementation of a function type?

2019-06-09 Thread Houzuo Guo
.funA || f == a3.funA ...), construct a test condition that evaluates to true only if `f` is assigned to `funA` of any instance of `Alpha`. Kind regards, Howard On Monday, 10 June 2019 07:46:58 UTC+3, Ian Lance Taylor wrote: > > On Sun, Jun 9, 2019 at 9:48 AM Houzuo Guo > > wrote: &g

[go-nuts] At runtime, is there a way to tell the structure's symbol name, of which a bound method offered a satisfactory implementation of a function type?

2019-06-09 Thread Houzuo Guo
Hello fellow gophers. Given a function type: type Fun func() And two structure methods that satisfy the function type: type Alpha struct { } func (a Alpha) funA() { } type Beta struct { } func (b Beta) funB() { } At runtime, is there a way to tell whether a non-nil `var f Fun` is assigned to

[go-nuts] [ANN] Merry Christmas! laitos v3.1 - your personal web infrastructure just got an.. SNMP server?!

2018-12-24 Thread Houzuo Guo
Merry Christmas and happy new year! laitos is your personal web infrastructure server - host a home page, receive Emails, and block ads/malicious sites via its DNS server. And to satisfy the geekiest nature inside of you, the program grants access to the Internet (news, mail boxes,

[go-nuts] Re: Need hints on debugging high memory usage after go 1.11 upgrade

2018-10-10 Thread Houzuo Guo
It turns out to be unrelated to any standard library features, as a trivial program uses ~100MB of virtual memory: https://github.com/golang/go/issues/28114 On Wednesday, 10 October 2018 08:43:50 UTC+3, Houzuo Guo wrote: > > Good day fellow gophers. > > A system program of mine that

[go-nuts] Need hints on debugging high memory usage after go 1.11 upgrade

2018-10-09 Thread Houzuo Guo
Good day fellow gophers. A system program of mine that runs couple of server daemons in one executable used to consume ~15MB of resident memory and ~15MB of virtual memory, compiled with go 1.10. After upgrading to go 1.11, its resident memory usage remains identical, but virtual memory usage

Re: [go-nuts] Start an HTTPS server using certificate input from byte content rather than file

2018-09-13 Thread Houzuo Guo
Many thanks Miguel! On Thursday, 13 September 2018 13:33:44 UTC+3, Miguel Angel Rivera Notararigo wrote: > > Hi, you could use a custom tls.Config, see this example ( > https://golang.org/pkg/crypto/tls/#example_X509KeyPair_httpServer) > > On Thu, Sep 13, 2018, 03:49 Houzuo

[go-nuts] Start an HTTPS server using certificate input from byte content rather than file

2018-09-13 Thread Houzuo Guo
Hello fellow Gophers. I'm programming an HTTPS server and PEM-encoded certificate data is given in bytes rather than file paths, additionally the data may not touch host file system. However, the public functions of http.Server only accept certificate data in files, and with recently

[go-nuts] [ANN] New version 1.2! laitos brings new enhancements to the only software solution that let you be in touch with your Linux computer at all times via telephone, SMS, and satellite terminals

2018-03-19 Thread Houzuo Guo
New Version! laitos v1.2 brings new enhancements to the only software solution that let you be in touch with your Linux computer at all times via telephone, SMS, and satellite terminals: Open-source project URL: https://github.com/HouzuoGuo/laitos Latest release:

[go-nuts] Re: [ANN] laitos v1.0 - your all-in-one personal web server suite + tools for using the Internet via telephone calls and SMS!

2017-12-31 Thread Houzuo Guo
Happy new year Tong. I'm glad that the project has caught your attention. The unit test coverage as measured by standard go test runner is well above 80% overall. In May 2017 the project was 80% feature complete, and began to drive several of my own servers, and feedback was collected from

[go-nuts] Re: Embedded WebBroser

2017-12-30 Thread Houzuo Guo
Happy new year. Check out this code snippet: https://github.com/HouzuoGuo/laitos/blob/master/browser/renderer.go It uses a PhantomJS that is capable of executing javascript and rendering CSS to render web pages. By running a web server in PhantomJS the code snippet interacts with the live

[go-nuts] [ANN] laitos v1.0 - your all-in-one personal web server suite + tools for using the Internet via telephone calls and SMS!

2017-12-29 Thread Houzuo Guo
Hello fellow Gophers. Happy new year! Here I present you a brand new project proudly and conveniently programmed in Go: laitos is the simplest and most straight-forward way to host your personal website, receive Emails, block ads and malicious websites at DNS level, plus much more. To