74,444 questions
1
vote
0
answers
17
views
How to put gherkin's background into scenarios?
I have multiple Gherkin scenarios, some normal and some outlined one.
Each of them do have a step which subscribes to a MQTT topic (I won't explain it further but it's kind of ugly to do it).
I would ...
1
vote
0
answers
36
views
Ent ORM query with computed fields
I'm using Ent ORM and need help with a simple issue.
I run a query like:
SELECT id, first_name, last_name, first_name || ' ' || last_name AS fullname
FROM users
ORDER BY fullname
Since fullname ...
-4
votes
0
answers
47
views
Short declaration of two variables in Golang [closed]
Please help me figure this out! I'm reading a book on Golang and there's a code there that reads lines from a file, converts them to float64 and forms a numbers slice from them:
scanner := bufio....
1
vote
0
answers
15
views
gotk3 tree_model_iter_next or tree_model_foreach?
I have an app written in Go using GOTK3 and GTK3. I want to step through each entry in a liststore, read an index value and replace four other values in the same line.
I have tried using foreach:
...
-2
votes
0
answers
73
views
Tag Mismatch error when using Java AES implementation to decrypt json files encrypted by Golang AES implementation [closed]
I received a json file encrypted with Golang AES/GCM/NoPadding,and I implemented AES/GCM/NoPadding using Java. I can encrypt json file and decrypt it and the other side (Golang) also can encrypt json ...
1
vote
0
answers
37
views
Connecting to Elasticache Valkey Using IAM Role
tl;dr Working in Go, and had to write my own token signing method connect to Valkey Instance in Elasticache. Keep getting error: "WRONGPASS invalid username-password pair or user is disabled.&...
3
votes
2
answers
43
views
Golang Fyne, Limit the size of the left object with NewHSplit
enter image description here
enter image description here
example1 gif
example2 gif
I'm trying to create a navigation bar on the left side of the window. The problem is that the line (NewHSplit) can ...
2
votes
0
answers
32
views
push Histogram metrics through pushgateway, but only found +lnf bucket
What did you do?
I use the following code to generate some metrics data, and then push it to Prometheus through pushgateway. I use Histogram type data and design multiple buckets. However, after ...
1
vote
0
answers
34
views
how can I use Quotactl system call of linux to set project quota in ext4 filesystem
I have checked the man7.org to find the answer, and I found that the Q_SETQUOTA subop of quotactl seems to support only user and group quota?
Q_SETQUOTA
Set quota information for user or ...
-1
votes
0
answers
30
views
How to fix PokeAPI TLS Error in Golang (Debian)? [closed]
I am trying to run a HTTP Server through Go, and load a list of Pokemon to the starting page with a PokeAPI package. The brunt of making it actually work was on a Chromebook using a GitHub Codespace, ...
1
vote
0
answers
37
views
Migrating a domain model that exposes interfaces with Gorm [closed]
I am currently working on an application whose core responsibility is recording user feedback and input through surveys. The surveys are fairly simplistic - one or more question/answer pairs, often ...
-2
votes
0
answers
36
views
Copying Nested Struct Into Postgres DB Using pgx In Golang [closed]
I have a nested struct that contains multiple rows of data (converted from JSON) that I need to copy into a Postgres database. I am trying to use the copy method shown here but I am getting:
dailyData....
-3
votes
0
answers
17
views
Modify launch.json file [closed]
Got the same problem. It solved by modify launch.json like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "...
-1
votes
0
answers
23
views
Increase in Go Kafka Consumer CPU Usage [closed]
I am observing increase in kafka consumer service CPU usage to 80-90%. Following are the kafka consumer details
fetch min bytes - 10kb
batch max poll records - 10
poll interval - 2 seconds
consumer ...
-2
votes
0
answers
21
views
binding.cpp:1:10: fatal error: 'common.h' file not found [closed]
% go mod init llama-test
% go get github.com/go-skynet/go-llama.cpp
% go run llm.go
binding.cpp:1:10: fatal error: 'common.h' file not found
getting this error
even for this,
go run ./cmd/main.go --...