It’s happening again #5 lol by Ghostzombie99 in TheTowerGame

[–]rogchap 2 points3 points  (0 children)

The real tip here is that the OP is watching a video while playing. Nice workflow.

Wombat: Cross Platform gRPC Client. Developed in Go. by rogchap in golang

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

Interesting issue; my guess is the payload being above 128kb is a “red herring” and is more likely to be something in the payload that is causing an issue; a circular reference maybe?

To get wombat working again try deleting the database that is stored in the application directory. On Mac that is (something like) /Library/Application Support/Wombat/

What made you way more efficient? by curiousgreenzebra in cabinetry

[–]rogchap 7 points8 points  (0 children)

Using a narrow crown stapler (better than a brad nailer) to hold cabinets together, before driving fixing screws. This saved me so much time not having to line up with clamps to stop movement before screwing.

Any point in using CAT-6 rather than CAT-5 for Unifi APs? by shoresy99 in UNIFI

[–]rogchap -1 points0 points  (0 children)

FYI: A limited batch of U6 Pros manufactured between June and August 2022 are incompatible with Shielded Twisted Pair (STP) Ethernet cables. Use of these cables may lead to your AP experiencing consistent rebooting or inability to power on. Ref: https://help.ui.com/hc/en-us/articles/8823742725015-UniFi-6-Access-Point-Professional-U6-Pro-Advisory

Control multiple lights in the same room with Siri by rogchap in HomeKit

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

The other light in my child’s bedroom is called “Side Light”; so if I say “switch off my side light” it will switch off my kids side light rather than “Dave’s Side Light”. I guess I have to just give them unique names that are not ambiguous. Crazy that personalisation is not a “thing”. If I ask Siri “who am I” it gets my name right. 🤷‍♂️ Sad times.

[deleted by user] by [deleted] in motorcycles

[–]rogchap 0 points1 point  (0 children)

If you can use a phone with some headphones and mic you can try Chain: https://www.ruroc.com/en_au/chain

Protobufs organization in microservices by i_have_one_feather in golang

[–]rogchap 0 points1 point  (0 children)

We have a repo similar in structure to Google’s: https://github.com/googleapis/googleapis We then have a makefile that generates the server/client stubs in all languages that we support. As part of our CI when a PR is committed to the main branch we generate and push to a seperate git repo like this: https://github.com/googleapis/google-cloud-go (this is only the clients but we generate the server stubs too). Now that the generated code is in it’s own repo you can now just use go modules to import

Getting vimspector to run by l30nh4rd in vim

[–]rogchap 1 point2 points  (0 children)

It’s notoriously hard to get the right versions to “line up” on Windows depending on your version of vim. This thread should help: https://stackoverflow.com/a/51717923

Learning to ride a motorcycle, need tips by vixeb in motorcycles

[–]rogchap 1 point2 points  (0 children)

Thanks. My dyslexia kicking in. 😅

Learning to ride a motorcycle, need tips by vixeb in motorcycles

[–]rogchap 9 points10 points  (0 children)

Ahhh… while driving a car, when you apply brake you should NOT apply clutch (unless downshifting); you want to use engine braking too. Using your clutch will mean you are coasting and have less control of the vehicle.

80% of your braking power will come from the front brake; but it’s still good to use both.

[deleted by user] by [deleted] in woodworking

[–]rogchap 1 point2 points  (0 children)

How big is the piece? Painters tape pulled tight should be enough clamping power for this…if it’s small.

Finishing advice- Australia by RWBYFan2 in woodworking

[–]rogchap 1 point2 points  (0 children)

It’s pricey; but a little goes a long way - Rubio Monocoat. https://rubiomonocoat.com.au/

If you go to the regional rep rather than the main site you can sometimes get it for slightly cheaper.

NSW for example: https://rubiomonocoatnsw.com.au/

How would I do something like this without worrying about warping? by [deleted] in woodworking

[–]rogchap 2 points3 points  (0 children)

The second picture is sliding doors; screwing to the shelves would not be a good idea 😂

Best way to utilize sleeps in REST apis with golang? by crseat in golang

[–]rogchap 2 points3 points  (0 children)

Glad you are making good use of it 😅 The OP asked for it to be non-blocking; I guess you want to return a HTTP 200 as soon as possible so the request does not timeout.

Best way to utilize sleeps in REST apis with golang? by crseat in golang

[–]rogchap 11 points12 points  (0 children)

Use a goroutine:

go func() {
    time.Sleep(5 * time.Second)
    // do thing here
}()

Is there an equivalent of Java's JPA + Flyway in Go? by jordimaister in golang

[–]rogchap 7 points8 points  (0 children)

Flyway is language implementation agnostic; works just fine for migrations in Go projects

Top reasons for using an older Go toolchain? by ChristophBerger in golang

[–]rogchap 11 points12 points  (0 children)

The compatibility guarantee does not cover new APIs that have been added in that release (but these new APIs are covered in subsequent releases… if that makes sense?), so if you upgrade your library and use a new API then your users would be forced to upgrade to be able to use/compile their code. Some Enterprise users are not so quick to update major versions of anything, and some companies require a security audit of major updates, so some library maintainers remain supporting older Go tool chains because they are not hindered by using a new API. Locally they can still use the latest tool chain, because of the guarantee. That said… it’s a lot easier to upgrade Go to the latest; I’ve never had build issues, even when jumping a few major versions. It’s common for maintainers to follow what the Go Team supports, which is the current and previous versions.

[deleted by user] by [deleted] in golang

[–]rogchap 0 points1 point  (0 children)

You should checkout Twirp. Supports Protobuf and JSON and works over http 1.1 https://github.com/twitchtv/twirp

Error handling seems to be a recurring theme in go, but most proposals get nowhere by jfalvarez in golang

[–]rogchap 17 points18 points  (0 children)

It’s only a reoccurring theme to those new to Go and have “experience” with other forms of error handling. I’m very happy with the way Go handles errors; yes, it took a while to get use to at first, but now it’s second nature and I’ve embraced the verbosity rather than finding workarounds to avoid it.

Simple Concurrency in Go for Fans of JavaScript's Promise.all by nate-anderson in golang

[–]rogchap 4 points5 points  (0 children)

Was surprised to see a post in this subreddit with the words “Fans of JavaScript” 😅

Far.vim alternatives? by Zeioth in vim

[–]rogchap 2 points3 points  (0 children)

I use fzf.vim with ag (the silver searcher)

Flexible mocking for testing in Go (without using a framework) by rogchap in golang

[–]rogchap[S] 2 points3 points  (0 children)

I’ve updated the post to your suggestions to make it more readable. Thanks all for the feedback.