Quantcast
Channel: User Norbert - Stack Overflow
Browsing all 42 articles
Browse latest View live
↧

Comment by Norbert on golang bind array and input one by one

Look into for k,v:=range on how to iterate over any kind of set in golang

View Article


Comment by Norbert on MySql JOIN syntax with multiple tables

For the performance: I would say that the performance would not differ. The query optimization code will check for the potentially best solution anyway in which order of statements can be changed....

View Article


Comment by Norbert on Golang: how to spin up a process with arbitrary...

From the go code there is no visible reason to be flaky. Can you add a sample of a not flaky and a flaky command string?

View Article

Comment by Norbert on Read Google Cloud Pubsub message and write to BigQuery...

I think you might have a good question however the way it is structured right now makes it hard to respond: Can you add more of your code so that the type definitions are visible. Also check the editor...

View Article

Comment by Norbert on GCP Cloud Storage - Golang aws sdk2 - Upload file with...

100% certain the key in the file is in the required format and does not contain another :?

View Article


Comment by Norbert on automatically detecting the HSV values for known...

I am thinking along the lines of facial recognition: First scan for the circles and polygons regardless of color, and than classify the results by color. So essentially it would not use color...

View Article

Comment by Norbert on How to execute file created by my program?

You will have the full path to your file. $PATH is a shell parameter, and might not even be present when using exec.

View Article

Comment by Norbert on Get JSON data directly from rows loop without scanning...

rows.Scan is just the name of the function to map the data into the variables you provide and has nothing to do with the json in itself. See go.dev/doc/database/querying for a bit more detailed...

View Article


Comment by Norbert on go tests error "Request validation failed"

Can you add the (relevant parts of the) EnvVars function to the posted code?

View Article


Comment by Norbert on Multithreaded Spring Boot Application leaves MySQL...

To be able to answer on how to get rid of the processes more information is required: How many database connections stay open? What are you using to run the application (Tomcat? Others?). Which driver...

View Article

Comment by Norbert on Visual Studio Code closes my file when I search for new...

Or on mac: Code -> settings

View Article

Comment by Norbert on Force some pods to schedule on the same node

@Novaterata I was a bit short in that "break statement". Essentially what I meant is that with such a solution you are limiting the k8s scaler in doing its work. This is also limited (to a certain...

View Article

Strange behavior or RAND in MariaDB: Single RAND delivers more than 1 result

When running the following query:SELECT productid FROM product WHERE productid=ROUND(RAND()*(SELECT MAX(productid) FROM product));The result should be 0 or 1 results (0 due to data gaps, 1 if a record...

View Article


Answer by Norbert for How to persist latest queues after pod recreation

You might be missing a setting in you volume claim:kind: PersistentVolumeapiVersion: v1metadata: name: amq-pv-claim-local labels: type: localspec: storageClassName: manual...

View Article

Answer by Norbert for use multiple go routines for different operations on mysql

Looking at your code and your question/requirement: Stay in order as the original go channel delivered the data.Staying in sync and still firing off multiple go routines to process the data, could be...

View Article


Answer by Norbert for Why do some channel operations block and some don't

It does not block for the reason that there are 2 channel listeners (firstFunc and secondFunc). These at random order read your message (whichever wakes up first). So the blocking is there, but not...

View Article

Answer by Norbert for how to fill struct values with exec.Command().Output()...

Since the output of a command can be anything (it can be any command), you will have to create mapping code.The assignment in the struct can look like this:ds:=&dateStruct{day: parseDay(out),month:...

View Article


Answer by Norbert for New line delimited input stream written to file

You can for example use the following pattern to read until your termination byte: r := bufio.NewReader(conn) for { yourLine, err := r.ReadBytes(10) ... write your file ... }Similar there is also...

View Article

Answer by Norbert for Why does using multiple ethernet connections slow down...

There can be multiple factors in play:Kernel or benchmark process in general.If you run a profile of your app, which with mln request in 30seconds, is spending not too much application time, you will...

View Article

Answer by Norbert for Docker compose $GOPATH/go.mod exists but should not

In the root of your GOPATH no packages are expected. The expectation is usually to have a subdirectory src/github.com/someproject/somerepo, which is most likely the root cause of the warning

View Article
Browsing all 42 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>