[go-nuts] Where can I get the documents explaining arguments of "go build" flags?

2016-07-19 Thread Dave Cheney
-gcflags are passed to go tool compile, -ldflags are passed to go tool link. -- 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

Re: [go-nuts] Modifying zlib window

2016-07-19 Thread thebrokentoaster
Feel free to upvote the issue on github, which will help guage interest in the issue. There is no doubt that is something recurrent that people have requested throughout the years. There's a number of things I would like to see done in compression packages and I'm not sure where this fits into a

[go-nuts] Where can I get the documents explaining arguments of "go build" flags?

2016-07-19 Thread Nan Xiao
Hi all, In Compile packages and dependencies document, I find there are -gcflags, -ldflags, etc. I want to know what arguments can be passed into these build flags, and the detail meanings of the arguments, such as: the detailed ex

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread EdgarAlejandro Vintimilla
thanks guys I was converting the data to hex incorrectly https://play.golang.org/p/35Wgkrh4Rq now its equal to python On Tuesday, July 19, 2016 at 6:41:42 PM UTC-5, Michael Jones wrote: > > In response to the call to help at every level of developer background, > here an expository solution

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Tim Hawkins
I would agree that a end to end tutorial on how to build a complete project, say something simple like a blog site, using sqlite, would be great, i could even be shipped with the distribution as a starter app. Also the complexities of workspace layout, projecs standalone libraries, embedded libra

Re: [go-nuts] Go is for everyone

2016-07-19 Thread simran
On Wed, Jul 20, 2016 at 1:10 PM, Matt Aimonetti wrote: > > I learn things bottom up, I need to understand "why" before I can start > using the "how". Lots of people don't learn that way and there is nothing > wrong with that. > There are languages that are more suited to writing basic games and G

[go-nuts] Re: String Split Question

2016-07-19 Thread Tamás Gulácsi
Search for ESSID:" and the the next ", your data will be there. -- 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. For more

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Clark Wierda
Katrina's talk is a good starting point for considering the approach needed for those that don't already know programming. I particularly like her idea of a sequence of skills to acquire as one learns to program using Go. I know of two books that are aimed at teaching new programmers. Each has

Re: [go-nuts] Modifying zlib window

2016-07-19 Thread A Keeton
Looks like this issue has been dead for quite some time. I'd like to resurrect it :) Any chance configurable window sizes for flate might be on the horizon? On Tuesday, February 10, 2015 at 7:24:25 PM UTC-5, Rob Napier wrote: > > Looks like one was already open: https://github.com/golang/go/issu

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Matt Aimonetti
So much great feedback, that's really awesome. What I'm hearing is that there are many different kinds of "newbies", from people coming other languages, to kids without forgetting hobbyists... I learn things bottom up, I need to understand "why" before I can start using the "how". Lots of people

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Tim Hawkins
My personal experience is as somebody comming from almost 3 decades of oop with c++ and java, while there are a lot of tutorials etc for folks starting out with go as a first or second language. I find there is a lack of support for people moving from other languages and other methodologies. On 2

Re: [go-nuts] Go is for everyone

2016-07-19 Thread simran
I personally find Go just a joy to program in and show my kids some code all the time (my kids are 9 years old)... it's still complex for them as i haven't overwhelmed them with programming. What they do absolutely LOVE though is code.org ( https:/

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Dan Kortschak
It's an interesting post and something I can see being true to an extent, but I'd like to put forward an alternative from my own experience. I came to Go as an extremely inexperienced programmer - a couple of years with Perl and a childhood with C64 basic/6502/Z80 and virtually no formal CS backgr

[go-nuts] Re: Go is for everyone

2016-07-19 Thread Nate Finch
Great post, and I agree wholeheartedly. Go is far simpler to learn than any other production-ready language (excluding languages that are only used for teaching, like Scratch)... but AFAIK, there's no "intro to programming, which happens to use Go". I think this is pretty easily doable (and I

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread Michael Jones
In response to the call to help at every level of developer background, here an expository solution line by line. Don’t click if this is your homework. https://play.golang.org/p/UOf38Uh-MT All that is left is to understand the data payload formats. Michael -- You received this mes

[go-nuts] Re: looking for the equivelant golang code in the aws s3 sdk, but have not found it yet. Anyone help here??? Thanks.

2016-07-19 Thread Joshua Boelter
Another example. - ContentType below is optional, but would be part of the signed headers if you use it - The req.HTTPRequest.Header.Set() allows you to add additional headers that will be part of the signed request https://github.com/aws/aws-sdk-go/issues/530 req, _ := s3Svc.PutObjectRequest(&

[go-nuts] Re: [ANN] UniDoc PDF Toolkit for golang

2016-07-19 Thread Alfred Hall
Hi Ali. We have just added PDF Clip and Rotate, see the examples on github.com/unidoc/unidoc. Let us know how it works. Cheers. Alf On Mon, Jul 18, 2016 at 9:02 AM, Ali Anwar wrote: > Any plans to add clip/crop pdf files? > > On Saturday, July 16, 2016 at 5:22:00 PM UTC+2, ah...@owlglobal.io w

[go-nuts] Re: String Split Question

2016-07-19 Thread UlyssesF
Hi there. I have a similar requirement to extract a specific piece information from the output of a Linux command. I'm running a iwlist to get all BSSID names (ESSID field). Here's the code followed by the output: iwlistCmd := exec.Command("iwlist", iface, "scan") iwlistCmdOut, err := iwlistCmd

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Jesper Louis Andersen
On Tue, Jul 19, 2016 at 8:13 PM, Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > seasoned programmers have hard time actually explaining how it > comes they possess the skills they have, and this makes their world > view biased > This is true of any field in which you work. Your b

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Bakul Shah
On Tue, 19 Jul 2016 08:16:05 PDT Matt Aimonetti wrote: > > I just wanted to point out a post I published today talking about the fact > that we are often leaving new / less experienced Go developers high and dry: > https://medium.com/@mattetti/go-is-for-everyone-b4f84be04c43 > > I'd love to see

Re: [go-nuts] Re: goimports has been updated

2016-07-19 Thread David Glasser
My mistake: not only was I not up to date, I was running somebody else's unmerged PR that added vendor support. Looks good now! On Tue, Jul 19, 2016 at 8:34 AM, roger peppe wrote: > On 19 July 2016 at 15:35, David Glasser wrote: > > On Jul 19, 2016 3:16 AM, "roger peppe" wrote: > >> > >> On 15

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Konstantin Khomoutov
On Tue, 19 Jul 2016 20:54:21 +0300 Konstantin Khomoutov wrote: [...] > But what I'm afraid even more is that tutoring is like parenting: > everyone thinks they know how to do it, but that's a delusion. > I'm not a professional tutor and I understand that I actually have no > idea what happens in

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Konstantin Khomoutov
On Tue, 19 Jul 2016 10:14:26 -0700 (PDT) Matt Aimonetti wrote: > There are a lot of concepts we take for granted such as > functions/methods, the main func, strings etc.. Then a lot of the > exercises are quite technical/math related instead of being more day > to day based. I love the tour but I

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Matt Aimonetti
There are a lot of concepts we take for granted such as functions/methods, the main func, strings etc.. Then a lot of the exercises are quite technical/math related instead of being more day to day based. I love the tour but I think it works best if you're already a developer. On Tuesday, July 1

Re: [go-nuts] how to recompile a stdlib package?

2016-07-19 Thread roger peppe
On 19 July 2016 at 17:39, Ian Lance Taylor wrote: > On Tue, Jul 19, 2016 at 8:43 AM, roger peppe wrote: >> On 19 July 2016 at 15:18, Ian Lance Taylor wrote: >>> On Tue, Jul 19, 2016 at 5:52 AM, roger peppe wrote: Until not so long ago, if I wanted to (say) insert a log.Printf somewher

Re: [go-nuts] how to recompile a stdlib package?

2016-07-19 Thread Ian Lance Taylor
On Tue, Jul 19, 2016 at 8:43 AM, roger peppe wrote: > On 19 July 2016 at 15:18, Ian Lance Taylor wrote: >> On Tue, Jul 19, 2016 at 5:52 AM, roger peppe wrote: >>> Until not so long ago, if I wanted to (say) insert a log.Printf >>> somewhere in net/http to see what's going on, I could just >>> ch

Re: [go-nuts] Go is for everyone

2016-07-19 Thread 'Will Norris' via golang-nuts
I don't think the GopherCon 2016 videos are online yet, but when they are I'd recommend taking a look at Katrina Owen's talk, "Mind the Gap" which touches on exactly this topic. It might give you some ideas. On Tue, Jul 19, 2016 at 8:39 AM, Daniel Skinner wrote: > is the Go tour really that out

Re: [go-nuts] how to recompile a stdlib package?

2016-07-19 Thread roger peppe
On 19 July 2016 at 15:18, Ian Lance Taylor wrote: > On Tue, Jul 19, 2016 at 5:52 AM, roger peppe wrote: >> Until not so long ago, if I wanted to (say) insert a log.Printf >> somewhere in net/http to see what's going on, I could just >> change the net/http code and "go install net/http". >> >> Sin

Re: [go-nuts] Re: [ANN] UniDoc PDF Toolkit for golang

2016-07-19 Thread Alfred Hall
Hi Eric. Thanks for the feedback. We are working with a lawyer to improve our LICENSE and make it easier to understand and hopefully cause less confusion. Cheers. Alf On Tue, Jul 19, 2016 at 12:38 AM, Eric Johnson wrote: > > On Monday, July 18, 2016 at 4:45:37 AM UTC-7, rog wrote: >> >> On 16

Re: [go-nuts] Go is for everyone

2016-07-19 Thread Daniel Skinner
is the Go tour really that out of touch for people with little to no programming experience? I'd think there's enough in there to keep one busy for quite a while. Now, whether that work is actually interesting to them is another matter... I sat my 9 year old daughter in front of the tour a few mon

Re: [go-nuts] Re: goimports has been updated

2016-07-19 Thread roger peppe
On 19 July 2016 at 15:35, David Glasser wrote: > On Jul 19, 2016 3:16 AM, "roger peppe" wrote: >> >> On 15 July 2016 at 16:44, wrote: >> > On Thursday, July 14, 2016 at 10:34:36 PM UTC-7, bradfitz wrote: >> >> >> >> goimports has been updated. >> >> >> >> If you've been frustrated by its speed

[go-nuts] Go is for everyone

2016-07-19 Thread Matt Aimonetti
I just wanted to point out a post I published today talking about the fact that we are often leaving new / less experienced Go developers high and dry: https://medium.com/@mattetti/go-is-for-everyone-b4f84be04c43 I'd love to see what you all in mind to help new or junior developers. Maybe share

Re: [go-nuts] Re: goimports has been updated

2016-07-19 Thread David Glasser
On Jul 19, 2016 3:16 AM, "roger peppe" wrote: > > On 15 July 2016 at 16:44, wrote: > > On Thursday, July 14, 2016 at 10:34:36 PM UTC-7, bradfitz wrote: > >> > >> goimports has been updated. > >> > >> If you've been frustrated by its speed lately, run: > >> > >>$ go get -u golang.org/x/tools/

Re: [go-nuts] SWIG, Go and OpenCV 2 (C++)

2016-07-19 Thread Ronoaldo José de Lana Pereira
Hi, ​​ I ended up doing a manual expose of the methods I needed to use in Go, particularly, haars cascade classifier, in a .i file like this: *opencv.i* %module opencv%{#include "opencv2/opencv.hpp"%}%include "std_string.i"%include "std_vector.i"namespace cv {#define CV_8U

[go-nuts] Thoughts on a SASL API design

2016-07-19 Thread Sam Whited
Hi all, I'm working on an implementation of RFC 4422, the SASL authentication mechanism. The idea is to make using common SASL mechanisms (PLAIN, SCRAM-whatever) easy, but also to provide a framework for people to build their own SASL mechanisms that will be compatible with anything that uses the

[go-nuts] Re: howto kill pipe process using gopkg.in/pipe.v2

2016-07-19 Thread Walter Garcia
Thanks for your reply. Yes, I seen, but I don't understand how to implement. Could you help me to understand? Thanks in advance El martes, 19 de julio de 2016, 2:50:04 (UTC-3), James Aguilar escribió: > > State.Kill looks > promising. > > On Monda

[go-nuts] Re: howto kill pipe process using gopkg.in/pipe.v2

2016-07-19 Thread Walter Garcia
I need kill, without timeout Thanks in advance El martes, 19 de julio de 2016, 9:57:28 (UTC-3), Ralf Schülke escribió: > > https://godoc.org/gopkg.in/pipe.v2#RunTimeout > > > > Am Montag, 18. Juli 2016 19:39:36 UTC+2 schrieb Walter Garcia: >> >> Hello. >> >> Im using pipe.v2 and work fine, but I

Re: [go-nuts] how to recompile a stdlib package?

2016-07-19 Thread Ian Lance Taylor
On Tue, Jul 19, 2016 at 5:52 AM, roger peppe wrote: > Until not so long ago, if I wanted to (say) insert a log.Printf > somewhere in net/http to see what's going on, I could just > change the net/http code and "go install net/http". > > Since Go 1.5, that no longer seems to be the case, for > some

[go-nuts] Go Bigtable client latencies

2016-07-19 Thread 'Rohit Wagle' via golang-nuts
Hello, Our service (Truman) is using Go client APIs to read (and write) to Bigtable. The nature of our traffic is such that periodically we will issue a large amount of single row reads from one job to a replicated (2 cell) bigtable in response to user requests. In my tests i'm seeing very high bi

[go-nuts] OCSP Basic Response Certificates

2016-07-19 Thread Anmol Sethi
https://github.com/golang/crypto/blob/master/ocsp/ocsp.go#L428 Why does the OCSP package limit the number of certificates in the response to one? RFC 6960 says The responder MAY include certificates in the certs field of BasicOCSPResponse that help the OCSP client verify the

Re: [go-nuts] SWIG, Go and OpenCV 2 (C++)

2016-07-19 Thread elgazzah . wael
Hello, i have the same error (core.hpp:456: Error: Syntax error in input(3) )when trying to wrap the core opencv module using swig. i would like to know if you have an idea to solve this error. thanks. Wael Le vendredi 18 septembre 2015 00:53:12 UTC+2, Ian Lance Taylor a écrit : > > On Wed,

[go-nuts] Re: howto kill pipe process using gopkg.in/pipe.v2

2016-07-19 Thread Ralf Schülke
https://godoc.org/gopkg.in/pipe.v2#RunTimeout Am Montag, 18. Juli 2016 19:39:36 UTC+2 schrieb Walter Garcia: > > Hello. > > Im using pipe.v2 and work fine, but I need cancel the process running, How > can I do it? > > The process is running, but in certain circumstances I need to cancel. > > th

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread Michael Jones
Detective mode here: family: http://www.castelecom.com/obd-gps-tracker details: http://www.castelecom.com/idd-213gl “DD-213GL is an intelligent on-board diagnostic device compatible with passenger and commercial vehicles, it features plug-and-play technology, could read diagnostic inf

[go-nuts] Re: Understanding HTTP server latencies

2016-07-19 Thread Dave Cheney
Keep an eye on the ℅ steal column in vmstat to make sure you're getting all the CPU you are paying for. -- 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-nu

[go-nuts] how to recompile a stdlib package?

2016-07-19 Thread roger peppe
Until not so long ago, if I wanted to (say) insert a log.Printf somewhere in net/http to see what's going on, I could just change the net/http code and "go install net/http". Since Go 1.5, that no longer seems to be the case, for some packages at any rate. Any changes I make in net/http seem to be

[go-nuts] Re: Understanding HTTP server latencies

2016-07-19 Thread Rayland
The problem was the client server. It was too small (1 core, 4G of memory). On Monday, July 18, 2016 at 4:03:26 PM UTC+3, Rayland wrote: > > I have an HTTP server in AWS on an instance with 4 cores and 8g of memory. > The server is not processing anything, just replying with 500. > > I have anoth

Re: [go-nuts] Re: goimports has been updated

2016-07-19 Thread roger peppe
On 15 July 2016 at 16:44, wrote: > On Thursday, July 14, 2016 at 10:34:36 PM UTC-7, bradfitz wrote: >> >> goimports has been updated. >> >> If you've been frustrated by its speed lately, run: >> >>$ go get -u golang.org/x/tools/cmd/goimports >> >> ... and things should be much nicer. >> >> De

Re: [go-nuts] Re: An efficient runtime expression evaluation

2016-07-19 Thread Egon
On Monday, 18 July 2016 19:37:46 UTC+3, ondrej...@gmail.com wrote: > > I think this pretty much covers it > > _, err := VirtualProtect(fn.body, 0x40) > if err != nil { > panic(err) > } > > // OH GOD WHAT HAVE I DONE??? > type callstub struct{ fn func(*Memory) } > > Excellent and worrying

[go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread Egon
Usually in these cases it helps to bring up the diff between the bytes: So the things I noticed here, * the data definitely is not ASCII * it looks like some GPS protocol,

[go-nuts] Re: TCP Server

2016-07-19 Thread Lars Kulseng
If it is possible to go the HTTP-route, you may also want to consider using WebSockets, as it uses bare TCP-protocol for transporting data, but with a HTTP-handshake. That way you can avoid the overhead that HTTP adds, and you could stream the data from you device to your server. mandag 18. j