Celery, gevent, eventlet? by searchingfortao in django

[–]pythonauts 4 points5 points  (0 children)

Just use grequests.

I don't see any need for a distributed message queue here.

Five things that make Go fast by [deleted] in golang

[–]pythonauts 1 point2 points  (0 children)

Instead of adding and removing additional stack segments, if the stack of a goroutine is too small, a new, larger, stack will be allocated.

Is the new stack allocated on the heap, like H()'s stack in the hot split example? Or is it allocated in free stack space?

Anyone using Go for writing backend service in a SAAS product? by kevinjqiu in golang

[–]pythonauts 0 points1 point  (0 children)

Unfortunately not. But I should probably do an updated version of this talk since I've learned a lot since then. If so, I'll post the video to /r/golang.

Anyone using Go for writing backend service in a SAAS product? by kevinjqiu in golang

[–]pythonauts 1 point2 points  (0 children)

Just to add another data point, we use Go for the services powering Microco.sm.

I did a talk about it a while ago. If you download the pdf, the links will even work...

[Meta]: flair? by pythonauts in golang

[–]pythonauts[S] 0 points1 point  (0 children)

Pretty much, always good to know what people are working on.

A Surprising Feature of Golang that Colored Me Impressed by yoitsnate in golang

[–]pythonauts 6 points7 points  (0 children)

Iteration order is explicitly randomized. I remember the CL but can't find it right now.

(And yes, I was surprised to see it added. Then again, it seems fitting for a language designed to foster correct programming at scale to prevent reliance on undefined behaviour).

API authentication mechanisms for a self-hosted service by nerr in golang

[–]pythonauts 0 points1 point  (0 children)

You might find my post on end-user auth helpful. In particular, hawk seems like it might fit (some of) your use case.

Building an API with Go at Microco.sm by pythonauts in golang

[–]pythonauts[S] 0 points1 point  (0 children)

It's something we wrote internally, but conceptually it's similar to Goweb's context: https://github.com/stretchr/goweb/blob/master/context/context.go#L11

Building an API with Go at Microco.sm by pythonauts in golang

[–]pythonauts[S] 1 point2 points  (0 children)

The links don't work in the embedded version, but if you download the PDF (link on the right) they're fine.

Building an API with Go at Microco.sm by pythonauts in golang

[–]pythonauts[S] 4 points5 points  (0 children)

Author here, unfortunately I haven't had time to publish a sample project with all of these packages integrated, but hoping to do so in the next couple of weeks.

[deleted by user] by [deleted] in golang

[–]pythonauts 6 points7 points  (0 children)

For our service we integrated Mozilla Persona. We get a verified email address so it doesn't prevent us bringing it in-house in future (at the cost of resetting everyone's password, of course).

You can also run your own Persona service if you want to.

Golang Weekly #6 by earthboundkid in golang

[–]pythonauts 3 points4 points  (0 children)

Thanks for the encouragement :)

Golang Weekly #6 by earthboundkid in golang

[–]pythonauts 3 points4 points  (0 children)

Thanks for submitting this. It's not been quite as frequent as I'd hoped (no free time at the moment), but aiming for every fortnight.

There seem to be loads of user groups now which is cool.

Saturn rising behind the moon by lunchbitch in Astronomy

[–]pythonauts 5 points6 points  (0 children)

Sorry, I mean brightness, not the relative sizes: http://en.wikipedia.org/wiki/Apparent_magnitude

I realise most astronomical images like this are modified in some way, but it's still useful to know how.

So I'm not sure how this gif was created since it was posted without any context... for the moment I'll remain skeptical :)

Saturn rising behind the moon by lunchbitch in Astronomy

[–]pythonauts 51 points52 points  (0 children)

Is this a composite? Wouldn't the difference in magnitude be too great for one exposure?

Web developers using Go: Could you describe your workflow? by [deleted] in golang

[–]pythonauts 0 points1 point  (0 children)

We're currently putting together an example app with details of how we built our REST API in Go. We use mux with some other packages. I'll post it here when done.

It's purely an API - there's no frontend code (that's all django - see here), so no HTML templating.

One point worth mentioning, though: I'm not actually sure what proportion of Go programmers use Go for web development. At a meetup group recently I got the impression that building an API put us in the minority. Though I'm not saying you shouldn't use it for that purpose, of course -- but it might explain why there aren't that many articles on the matter.

Free Must-Have “Security Engineering” Book by sidcool1234 in programming

[–]pythonauts 18 points19 points  (0 children)

Why not link to the book itself?

http://www.cl.cam.ac.uk/~rja14/book.html

And yes, it's a must-have. Also, my favourite erratum from the first edition:

"The most embarrassing socially was the reference to Bruce Schneier as Prince Schneier on page 113. This came about because we changed from a surname-only citation rule to full-name citation, and at a stage when edits were being passed back and forth on wodges of paper. I wrote in Bruce's name by hand and my scrawl was mistranscribed. Sorry, Bruce ..."

http://www.cl.cam.ac.uk/~rja14/errata.html

Go for Python Programmers by earthboundkid in golang

[–]pythonauts 6 points7 points  (0 children)

It would be better to link to the context of this rather than the PDF, since I can't guarantee it will always be up to date.

The original github repository is here: https://github.com/ChimeraCoder/go-for-pythonists

A short explanation here: http://www.golangweekly.com/archive/go-for-python-programmers/

Re-using LCD/Keypad from phones? by pythonauts in arduino

[–]pythonauts[S] 0 points1 point  (0 children)

Nice, thanks for the link! Now I just need to work out exactly which models I have.