Materials for:
plutov / packagemain Goto Github PK
View Code? Open in Web Editor NEWCollection of materials for my Youtube Channel about Go
License: MIT License
Collection of materials for my Youtube Channel about Go
License: MIT License
Materials for:
Hello,
I'm facing issues with the predictions. I'm using this python program to train my dataset retrain.py and from this program label_image.py I have good predictions
What's the difference between this program and the go program ? What's the adaptation I should do to make it work as label_image.py ?
Thanks for help
FROM golang
RUN mkdir -p /go/src/12-GO-KIT-1
Hi, I added a workdir in each service. However docker-compose up still worikng not correct.
Do you know some solutions?
====================================================
ADD . /go/src/12-GO-KIT-1
WORKDIR /go/src/12-GO-KIT-1/bugs
RUN go get -t -v ./...
RUN go get github.com/canthefason/go-watcher
RUN go install github.com/canthefason/go-watcher/cmd/watcher
ENTRYPOINT watcher -run 12-GO-KIT-1/bugs/cmd -watch 12-GO-KIT-1/bugs
====================================================
Step 1/8 : FROM golang
---> 315fc470b445
Step 2/8 : RUN mkdir -p /go/src/12-GO-KIT-1
---> Using cache
---> b3601e10281c
Step 3/8 : ADD . /go/src/12-GO-KIT-1
---> 44a1e7083947
Step 4/8 : WORKDIR /go/src/12-GO-KIT-1/notificator
---> Running in e379c3b63bfa
Removing intermediate container e379c3b63bfa
---> 604409109128
Step 5/8 : RUN go get -t -v ./...
---> Running in eff882c0f930
github.com/go-kit/kit (download)
github.com/go-logfmt/logfmt (download)
github.com/golang/protobuf (download)
get "google.golang.org/protobuf/encoding/prototext": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at //google.golang.org/protobuf/encoding/prototext?go-get=1
get "google.golang.org/protobuf/encoding/prototext": verifying non-authoritative meta tag
google.golang.org/protobuf (download)
change gocv.osx.env.sh to $GOPATH/src/gocv.io/x/gocv/env.sh
---> Running in 6fd0a18dac6a
golang.org/x/[email protected]: stream error: stream ID 159; INTERNAL_ERROR
golang.org/x/[email protected]: stream error: stream ID 163; INTERNAL_ERROR
golang.org/x/[email protected]: stream error: stream ID 173; INTERNAL_ERROR
golang.org/x/[email protected]: stream error: stream ID 167; INTERNAL_ERROR
The command '/bin/sh -c go mod download' returned a non-zero code: 1
Can you make another video about making actions for Google Home and maybe make it so it grabs bitcoin price from coinmarketcap.com
and have it grab what the user asks for like
Whats the price of ETH
Hello,
I'm using Tensorflow r1.11. I built C API with bazel, everything went good.
I did a test go test github.com/tensorflow/tensorflow/tensorflow/go
and it went "ok" too.
Then I tried your code but I have an error :
panic: nil-Operation. If the Output was created with a Scope object, see Scope.Err() for details.
goroutine 1 [running]:
github.com/tensorflow/tensorflow/tensorflow/go.Output.c(0x0, 0x0, 0x0, 0x0)
/home/ahmedx6/go/src/github.com/tensorflow/tensorflow/tensorflow/go/operation.go:130 +0x75
github.com/tensorflow/tensorflow/tensorflow/go.newCRunArgs(0xc420067e78, 0xc420067de0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
/home/ahmedx6/go/src/github.com/tensorflow/tensorflow/tensorflow/go/session.go:356 +0x23d
github.com/tensorflow/tensorflow/tensorflow/go.(*Session).Run(0xc42039e140, 0xc420067e78, 0xc420067de0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ahmedx6/go/src/github.com/tensorflow/tensorflow/tensorflow/go/session.go:130 +0x130
main.main()
/home/ahmedx6/go/recognize.go:68 +0x53a
Here is the command I'm trying with a dataset of flowers : ./recognize https://fr.cdn.v5.futura-sciences.com/buildsv6/images/wide1920/8/d/f/8dfb5138be_98819_culture-tournesol.jpg
Can you please help me ?
Hi Alex.
When I run this command to generate the grpc for notificator, it's showing the exit error. But most of the files seem to be generated.
kit generate service notificator -t grpc --dmw
ERRO[0000] exit status 1
When I run
docker-compose up
It's returning this error. I can't figure it out. Please help. Much appreciated!
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
ERROR: Service 'bugs' failed to build : The command '/bin/sh -c go get -t -v ./...' returned a non-zero code: 1
The author Jacob Martins' post on Oauth2 mentioned on Reddit that your oauth2 post is a copy-paste of his blog without credit. The author was pretty gracious, saying that he feels sad to not be credited, but that he sees you too want to help people learn. That's pretty generous considering he'd be justified feeling much angrier. I recommend crediting the author of material you use here. If you take material that isn't licensed for reuse, you could eventually wind up with legal trouble.
Pulling myhair now to make these eorrors go away.
packagemain/13-go-kit-2
โ docker-compose up users
Starting users ... done
Attaching to users
users | 2020/01/07 08:20:55 build started
users | Building github.com/plutov/packagemain/13-go-kit-2/users/cmd...
users | ../../13-go-kit-2/users/cmd/service/service.go:12:2: cannot find package "github.com/go-kit/kit/endpoint" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/endpoint (from $GOROOT)
users | /go/src/github.com/go-kit/kit/endpoint (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:13:2: cannot find package "github.com/go-kit/kit/log" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/log (from $GOROOT)
users | /go/src/github.com/go-kit/kit/log (from $GOPATH)
users | ../../13-go-kit-2/users/pkg/endpoint/middleware.go:8:2: cannot find package "github.com/go-kit/kit/metrics" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/metrics (from $GOROOT)
users | /go/src/github.com/go-kit/kit/metrics (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:14:2: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
users | /go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
users | ../../13-go-kit-2/users/pkg/service/service.go:7:2: cannot find package "github.com/go-kit/kit/sd/etcd" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/sd/etcd (from $GOROOT)
users | /go/src/github.com/go-kit/kit/sd/etcd (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service_gen.go:8:2: cannot find package "github.com/go-kit/kit/tracing/opentracing" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/tracing/opentracing (from $GOROOT)
users | /go/src/github.com/go-kit/kit/tracing/opentracing (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service_gen.go:9:2: cannot find package "github.com/go-kit/kit/transport/http" in any of:
users | /usr/local/go/src/github.com/go-kit/kit/transport/http (from $GOROOT)
users | /go/src/github.com/go-kit/kit/transport/http (from $GOPATH)
users | ../../13-go-kit-2/notificator/pkg/grpc/pb/notificator.pb.go:6:8: cannot find package "github.com/golang/protobuf/proto" in any of:
users | /usr/local/go/src/github.com/golang/protobuf/proto (from $GOROOT)
users | /go/src/github.com/golang/protobuf/proto (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:15:2: cannot find package "github.com/lightstep/lightstep-tracer-go" in any of:
users | /usr/local/go/src/github.com/lightstep/lightstep-tracer-go (from $GOROOT)
users | /go/src/github.com/lightstep/lightstep-tracer-go (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:16:2: cannot find package "github.com/oklog/oklog/pkg/group" in any of:
users | /usr/local/go/src/github.com/oklog/oklog/pkg/group (from $GOROOT)
users | /go/src/github.com/oklog/oklog/pkg/group (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:17:2: cannot find package "github.com/opentracing/opentracing-go" in any of:
users | /usr/local/go/src/github.com/opentracing/opentracing-go (from $GOROOT)
users | /go/src/github.com/opentracing/opentracing-go (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:18:2: cannot find package "github.com/openzipkin-contrib/zipkin-go-opentracing" in any of:
users | /usr/local/go/src/github.com/openzipkin-contrib/zipkin-go-opentracing (from $GOROOT)
users | /go/src/github.com/openzipkin-contrib/zipkin-go-opentracing (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:22:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
users | /usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
users | /go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:23:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
users | /usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
users | /go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
users | ../../13-go-kit-2/notificator/pkg/grpc/pb/notificator.pb.go:11:2: cannot find package "golang.org/x/net/context" in any of:
users | /usr/local/go/src/golang.org/x/net/context (from $GOROOT)
users | /go/src/golang.org/x/net/context (from $GOPATH)
users | ../../13-go-kit-2/notificator/pkg/grpc/pb/notificator.pb.go:12:2: cannot find package "google.golang.org/grpc" in any of:
users | /usr/local/go/src/google.golang.org/grpc (from $GOROOT)
users | /go/src/google.golang.org/grpc (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:24:2: cannot find package "sourcegraph.com/sourcegraph/appdash" in any of:
users | /usr/local/go/src/sourcegraph.com/sourcegraph/appdash (from $GOROOT)
users | /go/src/sourcegraph.com/sourcegraph/appdash (from $GOPATH)
users | ../../13-go-kit-2/users/cmd/service/service.go:25:2: cannot find package "sourcegraph.com/sourcegraph/appdash/opentracing" in any of:
users | /usr/local/go/src/sourcegraph.com/sourcegraph/appdash/opentracing (from $GOROOT)
users | /go/src/sourcegraph.com/sourcegraph/appdash/opentracing (from $GOPATH)
users | An error occurred while building: exit status 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping users ... done
Hi,
could you please suggest how to test WailsInit(runtime *wails.Runtime). Actually needs wails.runtime in test to verify events
thanks
Hi :)
The gauge is not getting any event from Go code.
On 16-wails-desktop-app/cpustats/frontend/src/components/CPUUsage.vue
wails.events.on("cpu_usage", cpu_usage => {
must be
window.wails.events.on("cpu_usage", cpu_usage => {
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.