[go-nuts] [ANN] ztdns: A simple DNS server for ZeroTier Virtual Networks

2017-06-16 Thread Aaryn Smith
I'd like to announce my first open source project, ztdns: A simple DNS server for a ZeroTier network. I've been using ZeroTier (https://zerotier.com/) for a simple, easy to use VPN service, however was frustrated with not having an easy way to do Name resolution without manually managing a bin

[go-nuts] Re: SQL query lock

2017-06-16 Thread ammar
Hello. Are you certain you're closing your rows/cancelling contexts everywhere appropriate? It would appear the block here is causing your issue. On Friday, June 16, 2017 at 1:53:46 PM UTC-5, Alexander Petro

[go-nuts] SQL query lock

2017-06-16 Thread Alexander Petrovsky
Hello! >From my app I have connection to MySQL with follow settings: db.SetMaxIdleConns(0) db.SetMaxOpenConns(10) The app run about 8 concurrent queries to mysql, every 1 minute (incremental fast select) and every 5 minute (full slow select). I couple days ago, my team mate increase query conc

Re: [go-nuts] genmap: Generate thread-safe, type-safe maps easily

2017-06-16 Thread ammar
sync.Map isn't type safe On Friday, June 16, 2017 at 9:38:34 AM UTC-5, Shawn Milochik wrote: > > Thanks for putting the work into this. The timing seems unfortunate, > though. How does it compare to sync.Map just announced? > > https://tip.golang.org/pkg/sync/#Map > > > -- You received this me

[go-nuts] Advice on glide dependencies

2017-06-16 Thread edsibm638
Im new to glide, and would appreciate some advice. I have an app which depends on go-openapi runtime. I use glide to resolve dependencies and runtime / analysis etc all appear in my vendor directory. I have recently added some code which depends on go-client (k8s.io). This package vendors some

Re: [go-nuts] genmap: Generate thread-safe, type-safe maps easily

2017-06-16 Thread Shawn Milochik
Thanks for putting the work into this. The timing seems unfortunate, though. How does it compare to sync.Map just announced? https://tip.golang.org/pkg/sync/#Map -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] Re: MSSQL DBMS

2017-06-16 Thread Renee Jylkka
I assume from your subject line that you want to connect specifically to MS SQL, rather than some other flavor of SQL. I do not connect to Access, so I cannot help there. A generic interface for SQL-like databases is included in the basic Go packages. I assume that you have read this page: ht

Re: [go-nuts] Using bash to source a python environment

2017-06-16 Thread Shawn Milochik
Even if successful, it happens in a subprocess that your exec.Cmd creates. It will not affect your own shell session. If you are trying to run a Python script with exec.Cmd, you can just do that directly: cmd := exec.Cmd("/path/to/virtualenv/bin/python", "/path/to/your/code.py") Alternatively, yo

Re: [go-nuts] Using bash to source a python environment

2017-06-16 Thread Lutz Horn
Hi, cmd := exec.Command("/bin/sh", "-c", ". /path to python environment/bin/activate") but actually yhe environment is not activated How do you check this? What do you want to do *after* this call to exec.Command? Lutz -- You received this message because you are subscribed to the Google

[go-nuts] Using bash to source a python environment

2017-06-16 Thread Corina Tudorache
Hi. I am trying to source a python environment in go. I run this command:cmd := exec.Command("/bin/sh", "-c", ". /path to python environment/bin/activate"), but actually yhe environment is not activated. I don't know what I am missing. Any tip is much appreciated. :) -- You received this messa

Re: [go-nuts] Re: Set LD_LIBRARY_PATH while executing go test

2017-06-16 Thread messju mohr
... and a shell agnostic way would be: $ env LD_LIBRARY_PATH=/foo/bar go test (see the man page of env(1)) regards On Fri, Jun 16, 2017 at 04:12:15AM -0700, Uli Kunitz wrote: >Bash supports: >``` >LD_LIBRARY_PATH=/foo/bar go test  >``` >Is that what you want? -- You recei

[go-nuts] Re: Set LD_LIBRARY_PATH while executing go test

2017-06-16 Thread Uli Kunitz
Bash supports: ``` LD_LIBRARY_PATH=/foo/bar go test ``` Is that what you want? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegrou

[go-nuts] CoC WG members from outside the USA?

2017-06-16 Thread Lutz Horn
Hi, https://github.com/golang/proposal/blob/master/design/13073-code-of-conduct.md#open-issues says: The Working Group does not yet include anyone from Asia, Europe, or Africa. In particular, Europe and China are home to a large swath of Go users, so it would be valuable to include some peop