Re: [go-nuts] Re: golang for AI

2017-12-24 Thread Lee Rick
it's not update for years, it means it not helpful? 在 2017年12月24日星期日 UTC+8上午4:12:20,Maurizio Totti写道: > > 2017-12-22 15:08 GMT+01:00 Fabien >: > > I'm working in an AI research lab and use golang a lot, so I would tend > to > > say yes. We're working in the symbolic AI field though (ontologies

[go-nuts] Re: golang for AI

2017-12-24 Thread Lee Rick
Can you share some name What package is used? python has a package called numpy, it is useful, but ,i can't find similar package in golang, do you use similar numpy package in golang ? 在 2017年12月22日星期五 UTC+8下午10:08:28,Fabien写道: > > I'm working in an AI research lab and use golang a lot, so I w

[go-nuts] Re: [mysql] 2017/12/23 11:09:37 packets.go:141: write tcp 127.0.0.1:20630->127.0.0.1:3306: write: broken pipe

2017-12-24 Thread Naoki INADA
> > > > To prevent further errors set connection lifetime to value less than > configured. > > > eg. db.SetConnMaxLifetime(time.Second * 14400) > > > Thanks, but I (go-sql-driver/mysql maintainer) recommend 10~60 sec rather than 1/2 of wait_timeout. wait_timeout is not the only reason which clos

Re: [go-nuts] Comparing structs

2017-12-24 Thread Sofiane Cherchalli
Sorry, I had some typos: https://play.golang.org/p/AJskGwEkg-Q The deepEqual fails because I am using realClock in the service implementation while in test I'm using dummyClock. I guess I should just assert that the len of map is 0 and that clk is of type Clock? On Sunday, December 24, 2017 at

Re: [go-nuts] Comparing structs

2017-12-24 Thread Jan Mercl
On Sun, Dec 24, 2017 at 10:53 PM Sofiane Cherchalli wrote: > Any hints on how to pass test? > > https://play.golang.org/p/ucDdBN_jzw7 I have no idea what should be the outcome, just fixed the syntax error: https://play.golang.org/p/CzRn0QwUayw -- -j -- You received this message because you

[go-nuts] Re: Go Community Charity Work?

2017-12-24 Thread Tamás Gulácsi
A signed nonce is enough to prove private key ownership - as far as it can. Replay attack is unavoidable. Uuid is useful for tracking. But how feasible is this? Here (Hungary, Eastern Europe) we have drugs packed in preprinted boxes, and the serial ids are just pushed into the paper. Per-box per

[go-nuts] Comparing structs

2017-12-24 Thread Sofiane Cherchalli
Any hints on how to pass test? https://play.golang.org/p/ucDdBN_jzw7 -- 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...@googlegroups.com.

[go-nuts] methods for error

2017-12-24 Thread Jonathan Amsterdam
Inspired by Rob Pike's recent blog post and Dave Cheney's errors package , I wrote down some methods that I think all errors should implement. The key idea is that an error only needs to

[go-nuts] Re: [mysql] 2017/12/23 11:09:37 packets.go:141: write tcp 127.0.0.1:20630->127.0.0.1:3306: write: broken pipe

2017-12-24 Thread Ivan Mladenovic
Write:broken pipe is usually an indication that an idle connection has been closed by the server. There is an API in database/sql package for this reason. See https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime Assuming you are using MySQL, MariaDB, you can read current timeout settin

[go-nuts] Re: Go Community Charity Work?

2017-12-24 Thread Frank Davidson
I think the verification would have to happen online? But a lot of places are getting online and also, it doesn't have to be perfect. If it stopped 70% of the fraud and the stupid fraudsters, that's still plenty? On Sunday, December 24, 2017 at 2:07:51 PM UTC-5, Damian Gryski wrote: > > In crypt

[go-nuts] Re: Go Community Charity Work?

2017-12-24 Thread Frank Davidson
The UUID (or similar). The aztec code would be unique for each bottle. Also, the manufacturer could provide verification of that bottle provenance in terms of dates, when it was first verified, etc. A fraudster could copy a whole pallet, but it would be a heck of a lot of work and they'd have

[go-nuts] Go Community Charity Work?

2017-12-24 Thread Damian Gryski
In cryptographic terms, this would be a "replay attack", although I'm not sure how any of the standard mitigations would apply in the resl world, especially if the verification is to be done offline. Damian -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Re: select multiple expressions per case

2017-12-24 Thread Michael Jones
Many important concerns are unaddressed here. Inside the clause of a "v1 := <-c1" the identifier v1 has meaning -- it is the value by which one refers to the successful receipt. Inside the clause of a "v1, ok1 := <-c1" v1 is either the value received when ok1 is true or the zero value of the type

[go-nuts] Go Community Charity Work?

2017-12-24 Thread Tamás Gulácsi
"packaged to look like the real deal" How would you stop them copying a real package? They don't need to create a new signed aztec barcode, they can just blindly copy a real one. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fro

Re: [go-nuts] Re: Donating to Go/Go-adjacent causes

2017-12-24 Thread Frank Davidson
Yes, I used the term "app" too loosely! I was thinking a progressive website (or whatever the term should be) that can be "app-ized" on smartphones. I've used Polymer and Redux for this type of thing in the past. I was thinking Firebase with a Google App Engine backend, at least to get off the grou

[go-nuts] Re: Donating to Go/Go-adjacent causes

2017-12-24 Thread matthewjuran
I'd contribute to this if possible. Have you considered a web interface first? That would be a clear demonstration that works on every device without dealing with licensing and acceptance by app stores, and the demonstration and showing of support would be necessary to have somebody work on lab

[go-nuts] Re: Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-24 Thread Damian Gryski
I've also seen benchmarks / load testing on my Mac with lots of time in time.now, according to pprof. We were calling time.Now frequently, but it seems this added code might exacerbate the issue. Damian -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Go Community Charity Work?

2017-12-24 Thread Frank Davidson
A few weeks ago, I saw this report on the PBS NewsHour: https://www.pbs.org/newshour/show/fighting-the-public-health-threat-of-counterfeit-drugs

[go-nuts] Re: Donating to Go/Go-adjacent causes

2017-12-24 Thread Frank Davidson
So, it's funny the timing of this... A few weeks ago, I saw this report on the PBS NewsHour: https://www.pbs.org/newshour/show/fighting-the-public-health-threat-of-counterfeit-drugs I have just (as in haven't even started putting code in GitHub yet) started to work on an app which I was thinkin

[go-nuts] Re: Bcrypt isn't comparing stored password hash properly

2017-12-24 Thread matthewjuran
Getting a password from shell input for use with bcrypt and a database is something others may want to do in the future - can you copy-paste the problem code here for us to look at? Matt On Saturday, December 23, 2017 at 8:14:48 PM UTC-6, Gabriel Simmer wrote: > > I guess I should update this w

[go-nuts] Re: github repo names with "go-" prefix?

2017-12-24 Thread Tim Peoples
...and yet, a vast majority of the instances where I see a go package hosted as "github.com/user/go-foobar", they are not using gopkg.in. I'm w/ Dave on this one; except in very rare instances, this shouldn't be done (and even then, you should try find a way to avoid it). Also, in many ways, t

[go-nuts] github repo names with "go-" prefix?

2017-12-24 Thread Tamás Gulácsi
gopkg.in forces me to have github.com/go-goracle/goracle to produce gopkg.in/goracle.v2 as the import path. Seemed to be a little price for a nice import path. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and s

Re: [go-nuts] github repo names with "go-" prefix?

2017-12-24 Thread Jan Mercl
> On Sun, Dec 24, 2017 at 12:31 AM Mariusz Gronczewski wrote: > Because other languages do not force you to have name of the package be derivative of the repo name. Neither does Go. The whole tool chain uses the name in the package clause, the import path is used solely to locate the package dir