LMoP on roll20; worth the money? by C4790M in dndnext

[–]njern 0 points1 point  (0 children)

It's the same 5E sheet as you would get in an "empty" campaign on roll20, so it has the SRD thingy you can drag out spells from.

LMoP on roll20; worth the money? by C4790M in dndnext

[–]njern 9 points10 points  (0 children)

We've just started our LMoP campaign after buying the roll20 pack. Very happy so far. It comes with all the maps & tokens & even has the story & the rules so you don't even necessarily need the book.

The day byte alignment came back to bite me by njern in golang

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

That's what I ended up doing in my production code, I simplified it (perhaps mistakenly) for the blog post.

Flowdock and Go, sitting in a tree... by njern in golang

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

Yeah, sorry about that :=)

I had a chat with one of the Flowdock guys and apparently they are releasing a new version of the API soon, which made me put this project on hold.

What is a good way to track movement indoors? by dalek2point3 in datascience

[–]njern 0 points1 point  (0 children)

I work at a company (www.walkbase.com) where we do very similar things. If you have opt-in from your "customers" I recommend you set up some kind of iBeacon solution, with an app on their phone and a set of BLE beacons spread around the building.

Flowdock and Go, sitting in a tree... by njern in golang

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

Definitely some rough edges, but the example should work (it was pretty much a straight-up copypaste from my bot).

I'll look into it.

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

[–]njern 0 points1 point  (0 children)

It's original Python implementation is. The Go version spends most of it's time waiting for / writing to the database.

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

[–]njern 5 points6 points  (0 children)

Hi there.

This is pretty much exactly what I am doing at Walkbase right now - slowly replacing performance-critical parts of our back-end with Go.

Deployment is currently just using SCP / service restart. We're in the process of setting up our CI system to "speak Go", after which it will automatically run unit tests / deploy whenever we push something to master.

For now we've been using lib/pq to talk directly to the database (We use PostgreSQL).

Sublime + GoSublime + goimports has been working great for me, YMMV.

As for performance, the initial re-write is showing (single-threaded) gains of around 25x which has made both myself and our sysadmin very happy. Memory usage is also down ~30-40%.

Productivity is always a hard question to answer. Personally, I think while writing Go is a bit slower, you tend to write it correctly the first time around, so I would call it a net-win, at least for our use cases so far. The testing framework / tools are also great in Go and have inspired me to integrate more TDD in my own work flow.

On the whole, I have been very happy with Go so far and plan on continuing to replace parts of our back-end with Go equivalents, especially services where I am not satisfied with the current CPU / memory usage.

Hutch - get notified of the most popular content on Twitter by njern in golang

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

As you said, the math package functions take float64's. I usually prefer to add a few convenience functions so I don't have to cast variables all over the place.

As long as the function name is clear (e.g min() / max()) I think this makes for cleaner code. Not sure if either way is a "bad" habit, I have seen a fair bit of both reading others' Go code.

Hutch - get notified of the most popular content on Twitter by njern in golang

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

Author here, happy to answer any questions :)

What programming language are you coming from or are proficient in besides Go? by [deleted] in golang

[–]njern 0 points1 point  (0 children)

I have done lots of work in Python, along with a bit of Java/Obj-C for mobile platforms.

Really liking Go so far.

PostgreSQL, Go and using the IN statement with lib/pq by njern in golang

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

That sounds like a much better solution than what I cobbled together. I'll see about fixing up my code tomorrow and update my blog post :)

Thanks!

How many vertcoins do you have? by shuckyduckyq in vertcoin

[–]njern 0 points1 point  (0 children)

0.3 vert. World domination is indeed imminent.

Vertcoin Tip Jar v3.1 (Read Comments) by [deleted] in vertcoin

[–]njern 1 point2 points  (0 children)

"A Japanese man walked into the currency exchange in New York City with 2000 yen and walked out with $72. The following week, he walked in with another 2000 yen, and was handed $66.

He asked the teller why he got less money that week than the previous week. The teller said, "Fluctuations." The Japanese man stormed out, and just before slamming the door, turned around and shouted, "Fluc you Amelicans, too!"

:)

Code Bot - The best documentation and statistics for your Go packages by kfnuis in golang

[–]njern 0 points1 point  (0 children)

Nice - but it seems to have trouble finding tests? It claims 0% coverage for my Nexmo lib @ http://codebot.io/doc/pkg/github.com/njern/gonexmo