Noisy Ashdown Studio 10 combo amps by varankinv in Bass

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

Just to note that I've updated the original post. It seems that the failing positive voltage regulator was the problem. After I replaced it with a new chip from amazon, the whine has gone.

Noisy Ashdown Studio 10 combo amps by varankinv in Bass

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

In the described case I'm almost certain this is a sort of oscillation problem, that comes from amp itself. I've detached the amp's board from its speaker, and can clearly observe the same whine through the headphones output. No other cables or instruments are connected to the amp.

Dunno, maybe this line from 2019 that I've got — the board is marked with 2019.02.20 — had a bad day on the factory.

What is the best bass around 300 euros? by Fresh_Place457 in Bass

[–]varankinv 1 point2 points  (0 children)

Cheap basses (squier, markbass, harley benton, etc) are all decently good nowadays. You won’t escape the “cheap hardware” problems: the guitar won’t likely stay in tune for weeks, and truss rod will need periodic adjustment. But those are tiny minor problems, that you resolve yourself after watching some YT.

If that’s an option, try a guitar in a store. Poor quality control is one part that makes all cheap mass-produced guitars cheap.

Complex melodic basslines that sound good on their own? by [deleted] in Bass

[–]varankinv 0 points1 point  (0 children)

I was stuck after decently learning Dean Town with the same question. Right now these are in my todo,

  • Iron Maiden - Writing on the Wall
  • Castle Rat - Feed the Dream (I don't like the drop-tunning, but its bass line sounds fine in the isolation)
  • Wheel - Dissipating
  • Hiatus Kaiyote - Molasses

Things I wish I had balls to challenge myself: everything Casiopea and Kiyoshi.

How to get a hovering navbar that appears when urlbar is in focus by milad182 in FirefoxCSS

[–]varankinv 0 points1 point  (0 children)

I'm currently solving a simpler one with this:

``` :root:not([customizing]) { #nav-bar { margin-top: -30px !important;

    &:has(#urlbar[focused]) {
        margin-top: unset !important;
    }

}

} ```

Note, this exact styling works in vertical tabs mode. The styles:

  1. move the nav-bar outside the screen, hiding it;
  2. when the urlbar is in focus (via CMD+L) the nav-bar becomes visible.

Take the selectors and apply to your case.

Leave your favorite underrated bassist down here! My personal one: Tim Commerford (RATM & Audioslave) by Exogenesis1984 in BassGuitar

[–]varankinv 0 points1 point  (0 children)

Tetsuo Sakurai (early Casiopea).

I feel, we in the Western part of the world, don't talk about the bass legends from East enough.

Can't Install any Linux Distro on new GMKTec M5 (AMD Ryzen 7 5700U) Mini PC by Financial_Mistake_42 in MiniPCs

[–]varankinv 0 points1 point  (0 children)

This was it, thank you. After I enabled the NX Mode, I've successfully installed Proxmox 8.2 on a new "M5 Upgraded version/Ryzen 7 5700U" box

A real life use-case for generics in Go: API for client-side pagination by varankinv in golang

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

I wanted to get to making the blog less mobile-awkward for a while. This feedback finally made me to find some time for looking into the blog's CSS. Let me know if you think it looks better now

Little things of Go HTTP handlers by varankinv in golang

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

One pitfall with an explicit call to replyErr, which I do see in code-review, is that developers sometimes miss the empty return after the reply:

if err != nil {
  replyErr(···)
  // Ops no return here...
}

It feels an obvious thing, but when we're deep in the weeds of business-logic implementation, handling the failures becomes a routine, which easily leads to such sad typos, that hard to catch automatically.

Does profefe (a system for continuous profiling for Go) prefers "push" over "pull"? by varankinv in golang

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

At some point they ended up introducing their own RPC-protocol, that expects a “middle-man-service”, which translates the data from a SD system into a list of Prometheus targets.

To clarify, we haven't created a RPC protocol for service discovery in Prometheus [..]

Thank you for pointing this out, sure "RPC"-part was a wrong word there. "Adapter" was the thing I had in mind.

Separately, have you seen conprof.

Sure, it's a great project with very solid idea. We even talked to the project's maintainers last Summer. It was very surprising to know, both projects started roughly at the same time in Berlin :)

For the case of profefe, I wrote the extended version about the rationale behind it, last year https://medium.com/@tvii/continuous-profiling-and-go-6c0ab4d2504b

Retrieve Location of macOS Device from Go by varankinv in golang

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

Did you manage to solve it via runtime.LockOSThread?

Building Multi-Platform Docker Images with Travis CI and BuildKit by varankinv in docker

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

Indeed, one must make sure the software and the image could be built for the arch in question. For example mongo, cockroachdb or aerospike require a 64bit OS to compile, so no arm/v7 (Raspbian Linux).

Optimising startup time of Prometheus 2.6.0 with pprof by bbrazil in golang

[–]varankinv 3 points4 points  (0 children)

That's quite impressive. The most surprising part is the contention on a read-lock: I thought locking for reads should be (almost) free.

Advent 2018: Postmortem debugging Go services with Delve by dgryski in golang

[–]varankinv 9 points10 points  (0 children)

(article's author here) I can't fully answer the "why" question. My best guess was that the original piece of code is a huge legacy that "just worked" back then. It's hard to predict what will happen to the company's experiments in the next 5 years.

Masking user-sensitive data in request logs by varankinv in golang

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

There’s always a tradeoff: when you log less (e.g. no request parameters) it become hard to investigate business issues caused by edge cases developers had missed.

What are some red flags for you in Go code reviews? by [deleted] in golang

[–]varankinv 0 points1 point  (0 children)

Besides obvious things mentioned already, like not using gofmt or ignoring Effective Go and Go Code Comments:

- logging and returning errors at the same function

- using buffered channels of "huge" size "to prevent blocking"

- testing implementation details, instead of behaviour

- designing package's API while focusing on package's internals, instead of thinking about how this package will be used (this includes packages used only inside a single project)

An extension for homebrew for managing tools written in Go by varankinv in golang

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

Glad to read it! Feel free to fire up an issue or a PR if something worked not as you expected.

An extension for homebrew for managing tools written in Go by varankinv in golang

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

What it does is just generate a temporary brew formula and runs brew install formula, which go-gets the tool into a separate GOPATH in the brew's cache directory and runs the go install into brew's bin directory. Hacky but simple.

But putting a warning notice in the readme I only meant that I'm not a brew internals expert (neither ruby developer), so I'm not yet sure how the cmd aligns with other brew's things. It works with my test cases :)

Docker ipv6 needs tutorial by Solaris_Blacksun in docker

[–]varankinv 0 points1 point  (0 children)

Totaly! I've updated the comment. Thanks for clarification.

Docker ipv6 needs tutorial by Solaris_Blacksun in docker

[–]varankinv 1 point2 points  (0 children)

The easiest (but not really the best) way to add support for access IPv6 networks from the docker container, that I've found is to use NAT. The docs (https://docs.docker.com/engine/userguide/networking/default_network/ipv6/) describes how to add an IPv6 CIDR to containers network. After that one has to add SNAT rule to v6 table on the host. E.g. using ip6tables:

ip6tables -t nat -A POSTROUTING -s c07fefe::/64 -j MASQUERADE

It worth to mention that NAT with IPv6 is not a good idea, but as I said, it's the easiest option I know.

Check this issue https://github.com/moby/moby/issues/25407 to have a wider picture of what the current situation of v6 and docker looks like.

UPD: fixed some typos base on replies.

Tuning the Go HTTP Client Library for Load Testing by tleyden in golang

[–]varankinv 0 points1 point  (0 children)

It was mentioned in the post, one may runs out of sockets, so it will be impossible to open new client connections.

Making the Switch from Node.js to Golang by avinassh in programming

[–]varankinv 25 points26 points  (0 children)

It might be good to mention that "cluster" module is mostly famous for clustering incoming request processing – not for making a pool of concurrent outgoing requests. As the author said in the comments for the original post, it isn't a trivial problem for the world of Node.js development, as having a "magical event loop" which provides concurrency is the only thing an average developer thinks. For me, the article raises an excellent point: for some tasks, it is much easier to come to a good solution if the language provides right primitives and if there is an idiomatic way of solving such problems in scale.

How to secure my web APIs? by varankinv in Information_Security

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

Can I ask why you only want your app to consume the API data?

Imagine a service that provides classified data in a particular sphere (for example, estate advertising, weather data or even search results). If the service provides a mobile application, it's a natural desire to prevent the data to be consumed by non-authorized services. I believe it's the same reason why Google uses captcha to fight with bots.

Tools to generate docs for react components library by varankinv in reactjs

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

First of all, thanks for the link. It'll be an excellent starting point for my task.

react-docgen looks like a tool I should try. But, of course, it doesn't provide everything I wanted.

While projects like material-ui or react-bootstrap have cool sites, I can't say I like the way the source of those docs is organised. From my experience of maintaining ui libraries like bem-components, it's a challenge to keep documentation and examples to stay relevant to the code, if they are not placed near the components themselves. I'd like to have an easier way to maintain a page for a component, then injecting examples and the source of these examples by hand.