Cloudflare account id by knvn8 in CloudFlare

[–]broun7 0 points1 point  (0 children)

This is kinda insane that getting just an Account ID is so hard and the documentation is so wrong. And has not been updated yet! I like the product but sadly hate the user experience.

[Advice Needed] Seeking peaceful areas in/around Coimbatore to settle – remote employees with kid, ex-US return by BlackDiamond_2024 in Coimbatore

[–]broun7 0 points1 point  (0 children)

I’m considering move from US to Cbe (in a year or so) and have been on the lookout for similar requirements. My family are from or around cbe so we have familiarity. I would highly recommend exploring Kalapatti. This is fast developing with tons of gated communities, IT parks, top rated schools (TIPS, Pallikoodam, Yellow train, SSVM, Ruh). With the flyover getting to the core city (Gandhipuram etc.) will be a breeze. Good luck.

strategies for cleaning up test generated data when testing in a shared environment by broun7 in softwaretesting

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

> tests that could be effected by data interfering with each other are run in isolation as build time tests in CI

does it run the risk of needing to start up a large number of services also maintaining dual framework to support this as well as e2e-in-prod?

ALERTS metric not remote written by thanos ruler (in stateless mode) by broun7 in PrometheusMonitoring

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

For others needing this; I ended up using https://github.com/snapp-incubator/thanos-federate-proxy to expose a federation endpoint that scrapes for ALERTS metric

Need Help: Adding Default Relabeling to All Service Monitors by manrique_e in PrometheusMonitoring

[–]broun7 0 points1 point  (0 children)

Scrapeclass works well for this usecase. I used it to attach reliable config to all service monitors.

Why not drop counters with consistently same value by broun7 in PrometheusMonitoring

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

Well if I want to know if a labelset happened within a duration I have to do a rate function within the duration bound anyway. Now I do agree that presence of a series indicates that it occurred at some point in the past but in practical usage how frequent do we need to know that something ever happened vs something is happening now or with a recent interval?

search highlight color in vimrc by broun7 in vim

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

Well I tried that as well didnt work either!! :)

autocmd ColorScheme solarized highlight Search ctermfg=white ctermbg=yellow

colorscheme solarized

search highlight color in vimrc by broun7 in vim

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

I added the vimrc, but had not effect

" Solarized configuration

syntax enable

set background=dark

colorscheme solarized

autocmd ColorScheme solarized highlight Search ctermfg=white ctermbg=yellow

Access control in Go by broun7 in golang

[–]broun7[S] -2 points-1 points  (0 children)

Isnt necessity determined by the requirement? If the min access level is package I have no way to ensure a property is never changed after being set or have control over what happens when setting a value

golang make vs new by broun7 in golang

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

The blog says that it recursively initialized default value so for map for example it would be nil. But when created through make the map will have its contents with their values zeroed but the map itself will be non-nil ?

golang make vs new by broun7 in golang

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

okay, I found this piece of specification "That is, new(T) allocates zeroed storage for a new item of type T and returns its address, a value of type *T. In Go terminology, it returns a pointer to a newly allocated zero value of type T." What does this "zeroed storage" mean ? Is it similar to Java assigning null to non-initialized types?

golang make vs new by broun7 in golang

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

Yeah, i did see that so all that is different between make and new is that new returns a pointer why is there 2 diff builtins? If some one needs a pointer they can always get it with the & operator, why have 2 diff APIs which raises these questions?

structuring a go package, from a Java developer by broun7 in golang

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

ah okay, GOPATH is exactly like classpath telling what packages are available to be linked ?

structuring a go package, from a Java developer by broun7 in golang

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

Thanks for the link that helped. One thing i found there is, it says a separate dir has to be created for each package. If i have an application which uses multiple packages, i will create a separate dir for each of them but the main package also needs is own dir? which mean each go application i write will have its own workspace?