[help me] migrating from go micro v2 to v3 returns this error {"id":"go.micro.client.codec","code":500,"detail":"EOF","status":"Internal Server Error"}

Hi, I am recently updating my go micro from version 2 (v2.9.1) to version 3 (v3.7.0). My code is using Grpc to pass the data to Graphql service.
It was working properly when I was using version 2, but it immediately get this error in version 3.
I didn't change anything in the code, except how I pass the Protobuf object, previously some used copy by value which is treated as an error by go vet, so I change it to all pass by reference.
I tried it on my local, and it is working properly, but when I deployed it to my cloud environment, my Graphql returns this error. What is the cause of this? Is there any guide to properly migrate from version 2 to version 3?
Thank you.

I can't get enough useful information form your description, can you provide a small example to reproduce your issue?

Not sure if its the same issue, but I also ran into grpc issues that were resolved by setting the contentType explicitly per https://github.com/asim/go-micro/issues/2123

Thank you @xpunch and @bhoriuchi for replying. I have checked in the logs, the content type is right, it recognized the data as protobuf and set the type to proto-rpc.
After doing some digging, the root cause of my problem is my connection to Spanner DB is context cancelled. If I try to repeatedly send the request, a few may go through. So is there any changes related to timeout from micro v2 to micro v3?

This is what my code looks like. Do you have any feedback if there is anything wrong with it?
Here is a service where I put my micro
package service

import (
	"context"
	"os"
	"os/signal"
	"syscall"

	k8s "github.com/asim/go-micro/plugins/registry/kubernetes/v3"
	"github.com/asim/go-micro/plugins/selector/static/v3"
	micro "github.com/asim/go-micro/v3"
	"github.com/asim/go-micro/v3/client"
	"github.com/asim/go-micro/v3/server"
	logger "../internal/log"
)

// RPCService is a struct with go-micro service and shutdown function
type RPCService struct {
	Service  micro.Service
	shutdown context.CancelFunc
}

// NewRPCService create a new main web service
func NewRPCService(ctx context.Context, name string) *RPCService {
	ctx, cancel := context.WithCancel(ctx)

	optionsService := []micro.Option{
		micro.Context(ctx),
		micro.Name(name),
	}
	optionsAction := []micro.Option{}

	return &RPCService{
		Service:  newRPCService(optionsService, optionsAction),
		shutdown: cancel,
	}
}

func newRPCService(serviceOpts []micro.Option, actionOpts []micro.Option) micro.Service {
	var service micro.Service

	logger.Log.Info().Msg("Starting Kubernetes Micro Service")
	registry := k8s.NewRegistry()
	selector := static.NewSelector()
	serviceOpts = append(serviceOpts, micro.Registry(registry), micro.Selector(selector))

	service = micro.NewService(serviceOpts...)

	service.Init(actionOpts...)
	return service
}

// RegisterHandler is for registering RPCs handler
func (s *RPCService) RegisterHandler(handler func(server.Server, client.Client)) {
	handler(s.Service.Server(), s.Service.Client())
}

// Start main web service
func (s *RPCService) Start() {
	go s.listenForShutdown()

	if err := s.Service.Run(); err != nil {
		logger.Log.Fatal().Msgf("Can't create service because: %v", err)
	}
}

func (s *RPCService) listenForShutdown() {
	sigint := make(chan os.Signal, 1)
	// Local termination
	signal.Notify(sigint, syscall.SIGINT)
	// Kubernetes termination
	signal.Notify(sigint, syscall.SIGTERM)

	<-sigint

	logger.Log.Warn().Msg("Gracefully shutting down")
	s.shutdown()
}

This is my auth service as a server side
package main

import (
	"context"
	"fmt"
	"time"

	"cloud.google.com/go/spanner"
	"github.com/asim/go-micro/v3/client"
	"github.com/asim/go-micro/v3/server"

	"../internal/configs"
	spannerds "../internal/datastore/spanner"
	"../internal/app/handler"
	"../internal/logging"
	cache "../internal/cache"
	logger "../internal/log"
	svc "../internal/service"
	authpb "../internal/proto/grpc/auth"
)

const (
	serviceName = "auth"
)

func main() {
	c := configs.GetConfiguration()
	logging.SetLogLevel(c.Log.Level)

	authDbClient, err := spannerds.InitDbClient(c.Spanner.ProjectID, c.Spanner.InstanceID, c.Spanner.Database)
	if err != nil {
		logging.Error(fmt.Sprintf("Error connecting to the spanner: %v", err))
	}

	hc := svc.NewHealthCheckServiceWithComponents(8080, []svc.Component{
		spannerds.HealthCheckDatastore{DB: authDbClient},
	})
	go hc.Start()

	rpc := svc.NewRPCService(context.Background(), serviceName)
	rpc.RegisterHandler(handlers(authDbClient))
	rpc.Start()
}

func handlers(db *spanner.Client) func(srv server.Server, client client.Client) {
	return func(srv server.Server, client client.Client) {
		permsDatastore := spannerds.PermsDatastore{DB: db}

		err := authpb.RegisterAuthHandler(srv,
			&handler.AuthHandler{
				Cache:               cache.NewLRUCache(cache.DefaultLRUCacheSize, 2*time.Minute),
				PermsDatastore:      permsDatastore,
			})
		if err != nil {
			logger.Log.Error().Err(err).Msgf("Error registering Auth handler")
			panic(err)
		}
	}
}

This is my graphql service as client side
package main

import (
	"context"
	"time"

	authpb "../internal/proto/grpc/auth"
	productpb "../internal/proto/grpc/product"

	"../internal/cache"
	svc "../internal/service"

	"../internal/configs"
	"../internal/graph"
	appService "../internal/app/service"
	"../internal/graphql/web"
)

var (
	conf configs.Configuration = configs.Conf
)

const (
	serviceName = "graphql"
)

func main() {
	p := svc.NewPrometheusService(8081)
	go p.Start()

	hc := svc.NewHealthCheckService(8080)
	go hc.Start()

	rpc := svc.NewRPCService(context.Background(), serviceName)

	authService := authpb.NewAuthService("auth", rpc.Service.Client())
	cache := cache.NewLRUCache(512, 30*time.Minute)

	resolver := graph.Resolver{
		AuthService:             authService,
		AuthWrapper:             &appService.Auth{Client: authService, Cache: cache},
		ProductService:          productpb.NewProductService("product", rpc.Service.Client()),
	}

	server := web.NewServer(&conf, &resolver)
	server.Start()
}

Also, this is my env var
    MICRO_SELECTOR: static
    MICRO_SERVER_ADDRESS: <IP_ADDRESS>:8100
    MICRO_BROKER_ADDRESS: <IP_ADDRESS>:10101

In the go micro v3, grpc was not the default transport protocol, you need to use grpc server/client plugins.
Take a look at this example: https://github.com/xpunch/go-micro-example/tree/main/v3/helloworld.

@willpang Have your issue solved?

No, it is not resolved yet. I have reverted back to version 2 (v2.9.1). Thank you for the help 🙇 . I will close this issue.

V2 defaulted to grpc. V3 does not. Import the grpc plugins.


Add Super Sprint

Can be downloaded from http://meynaf.free.fr/pr/index_en.html — no WHDL container, but is a modern port. Looks like 5×PAL or NTSC mode would be in order, too.

Note: Ctrl-C to quit the game.

Added, but will go through the viewport settings for all the homebrew conversions before commiting.

I postponed fixing viewport settings to another day. :)
Done in 5f2ba4c07b36f04da89ce36192fd521a8bc00980


Create chainer.optimizer_hooks namespace and move hooks there.

This PR creates chainer.optimizer_hooks namespace and move moves hooks for optimizers under that space. To keep backward compatibility, we add alias of these hooks under chainer.optimizer namespace, which will be removed in _v2.

LGTM except these points.

Thank you for your review. I updated code.

TODO: Fix tutorials as well.

I close this PR and resend it as another PR (#2943) as this PR was made for v1 and has many conflicts compared to the current master branch.


"Something went wrong" Failed to setup push notifications

Describe the bug
A clear and concise description of what the bug is.
REQUIRED: Include the contents of api/.env and frontend/.env
If you are manually overriding any environment variables when running the package scripts, include those as well.
api/.env
PROSE_DISCOURSE_HOST=https://forum.biohackinginternational.com

frontend/.env
No content

REQUIRED: answer the following questions:

If this is related to your mobile app:

Are you running it through Expo, or did you build it? Built It
Is it running on your mobile device or on a simulator?
Mobile Device

To Reproduce
Steps to reproduce the behavior:

Go to Testflight
Click on Install
Click on open
Login to account
On prompt "Biohacking Community" would like to send you notifications, click allow
Error popup: Something went wrong failed to setup push notifications

Expected behavior
Upon clicking allow, no error popups up and push notifications work as intended
Screenshots
If applicable, add screenshots to help explain your problem.

Environments
Desktop (please complete the following information):

OS: [e.g. iOS] iOS
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6] iPhone 11 Pro Max
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

GraphQL API (please complete the following information):
Please indicate where the Prose GraphQL API is running.
https://prose.biohackinginternational.com
Are you only running it locally on your development machine?
Production app
Have you deployed it somewhere? If so, what domain or IP address did you deploy it at?
No, I used the expo build website and expo-cli to build the app then added it to apple transporter and into test flight.
How specifically did you configure the mobile app to connect to the API?
Set all proseUrl to https://prose.biohackinginternational.com in the config.ts
Additional context
Add any other context about the problem here.

Hi @biohackinginternational, thank you for bringing this issue to our attention. To better assist you, could you please provide additional information?
Have you already added currentFullName to the app.json file

Thank you for helping me to look into this!!!
This is the value for currentFullName: "currentFullName": "@/",
Thanks!

Hi @biohackinginternational, thank you for bringing this issue to our attention. To better assist you, could you please provide additional information? Have you already added currentFullName to the app.json file

Thank you for helping me to look into this!!!
This is the value for currentFullName: "currentFullName": "@<username>/<slugName>",
Thanks!

Hi @biohackinginternational, thank you for bringing this issue to our attention. To better assist you, could you please provide additional information? Have you already added currentFullName to the app.json file

Is there a specific value it should have instead of the value above?

Hi @biohackinginternational, thank you for bringing this issue to our attention. To better assist you, could you please provide additional information? Have you already added currentFullName to the app.json file

Is there a specific value it should have instead of the value above?

Hey @biohackinginternational, After we checked, there is a missing regex check for "experienced," which makes @<username>/<slugName> not valid. To solve this, you can change the value to @username/<slugName>.

Hi @biohackinginternational, thank you for bringing this issue to our attention. To better assist you, could you please provide additional information? Have you already added currentFullName to the app.json file

Is there a specific value it should have instead of the value above?

Hey @biohackinginternational, After we checked, there is a missing regex check for "experienced," which makes @<username>/<slugName> not valid. To solve this, you can change the value to @username/<slugName>.

Gotcha do I need to put a specific value for @username?

Hi @biohackinginternational, thank you for bringing this issue to our attention. To better assist you, could you please provide additional information? Have you already added currentFullName to the app.json file

Is there a specific value it should have instead of the value above?

Hey @biohackinginternational, After we checked, there is a missing regex check for "experienced," which makes @<username>/<slugName> not valid. To solve this, you can change the value to @username/<slugName>.

Gotcha do I need to put a specific value for @username?

No. But the username value here is the username for the expo account which will used for building the app.

Will let you know if its solved in a few!

IT WORKS! Thank you :)


Mark android input events unhandled

fixes Pico getting ANR'd after waking up

is this ok?

Perfect!


Improve version output

Problem
Currently the version CLI output (when running prisma2 -v) is quite "overwhelming".

Solution

I suggest to reformat the output by "segmenting" the output into two blocks. e.g.

@prisma/cli: 2.0.0-preview025

Current platform:     darwin
Query Engine:         prisma 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/query-engine-darwin)
Migration Engine:     migration-engine-cli 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine: introspection-core 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/introspection-engine-darwin)

Additionally I'd print the "key" of the key/value-pairs (e.g. @prisma/cli) in bold.

Additional context

Related issue: https://github.com/prisma/prisma2/issues/981

What about to do it like node:
node -v
Output:
v12.16.1

Prisma2 (short version)
prisma2 -v
Output:
@prisma/cli: 2.0.0-preview025

Prisma2 (long version)
prisma2 -v -full
Output:
@prisma/cli: 2.0.0-preview025

Current platform:     darwin
Query Engine:         prisma 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/query-engine-darwin)
Migration Engine:     migration-engine-cli 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine: introspection-core 8814060fa684793b73d07dbfccd4b7777b3361ae (at /usr/local/lib/node_modules/@prisma/cli/introspection-engine-darwin)

👍 on splitting the output.

Additionally I'd print the "key" of the key/value-pairs (e.g. @prisma/cli) in bold.

This would unfortunately lead to problems when you do string comparison as the bolding would be invisible control characters in the string, so you need to use strip-ansi first :/

@janpio for programmatic comparisons we should have a --json option anyway. I don't think this was so far a stated requirement/design goal for the CLI.

A --json flag would be super valuable

created https://github.com/prisma/prisma/issues/2071 for a --json feature request

Comment from @janpio:

One thing is that it needs to be easily copy and pasted to GitHub.

I also suggest a more spacious layout, with colors and additional data needed for debugging (such as package manager and version and the architecture of the system).
Platform
Current platform        : windows
Node.js version         : 0.0.0
Package manager         : 0.0.0 (NPM)
Architecture            : x64

Prisma
prisma                  : 0.0.0
@prisma/client          : 0.0.0
Studio                  : 0.479.0

Prisma Engines
Query Engine (Node-API) : libquery-engine c9e863f2d8de6fa0c4bcd609df078ea2dde3c2b2 (at ..\..\packages\engines\query_engine-windows.dll.node)
Migration Engine        : migration-engine-cli c9e863f2d8de6fa0c4bcd609df078ea2dde3c2b2 (at ..\..\packages\engines\migration-engine-windows.exe)
Introspection Engine    : introspection-core c9e863f2d8de6fa0c4bcd609df078ea2dde3c2b2 (at ..\..\packages\engines\introspection-engine-windows.exe)
Format Binary           : prisma-fmt c9e863f2d8de6fa0c4bcd609df078ea2dde3c2b2 (at ..\..\packages\engines\prisma-fmt-windows.exe)
Format Wasm             : @prisma/prisma-fmt-wasm 4.8.0-51.cb66a7dac27b38cbc5dc34b27cf389f4be35d5e2
Default Engines Hash    : c9e863f2d8de6fa0c4bcd609df078ea2dde3c2b2

Generated Prisma Client
client                  : 0.0.0 (at ..\node_modules\.prisma\client)

As for the colors, there are 3 rules:

All section titles would be colored in blue and bolded
All text on the left side would be white
All text on the right side would be gray

Go for it @DavidHancu From internal vote:

Hi everyone, I'm closing this issue as it has already been addressed over the years via prisma version --json by:

https://github.com/prisma/prisma/commit/7b4ad300788cb3d0bd012bef991fa7ba92dc3d96
https://github.com/prisma/prisma/pull/21625

Thanks!


Error Converting weights of p7 from pytorch to tensorflow. Could you help in this

I have tried converted .pt model to .onxx and then onxx to pb file for tensorflow. I have checked the graph using neutron => 1 transpose layer has been added so that it can handle NHWC input of tensorflow.

Solved!

@Palak-15 How did you solve this?


compile .jade to .html, but with JavaScript code inside

I am trying to use jade instead of html in the tutorial of http://info.meteor.com/blog/whatsapp-with-meteor-angular-and-ionic, but it didn't work. I found that unlike a *.html template which had been compiled to  a *.html.js file, a *.jade temlplate been compiled to a  *.html file but with JavaScript inside.

This is not a bug or an issue. It is a feature of this package.
Just in case you didn't know:

When you use this package your JADE files must have the .ng.jade extension. Did you do that?

Then, once compiled by JADE, in your AngularJS code you will be able to refer to each file by its name, but with a .html extension. For example client/myfile.ng.jade becomes client/myfile.html.

Is there any specific reason you are expecting the extensions to be .html.js?


Add Decoder#either

This is a convenience method that allows you to rewrite this fairly common idiom:
import cats.syntax.either._
import io.circe.Decoder

val decoder1 =
  Decoder[String].map(_.asLeft[Boolean]).or(Decoder[Boolean].map(_.asRight[String]))

Like this:
import io.circe.Decoder

val decoder2 = Decoder[String].either(Decoder[Boolean])

The two will always produce the same results. Note that like or, either will not accumulate errors if both sides fail.

Codecov Report

Merging #759 into master will decrease coverage by 0.83%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #759      +/-   ##
==========================================
- Coverage   86.68%   85.85%   -0.84%
==========================================
  Files          73       73
  Lines        2299     2305       +6
  Branches       91       90       -1
==========================================
- Hits         1993     1979      -14
- Misses        306      326      +20

Impacted Files
Coverage Δ

.../core/shared/src/main/scala/io/circe/Decoder.scala
90.23% <100%> (-0.15%)
:arrow_down:

...ng/src/main/scala/io/circe/streaming/package.scala
0% <0%> (-100%)
:arrow_down:

...n/scala/io/circe/streaming/ParsingEnumeratee.scala
0% <0%> (-78.58%)
:arrow_down:

...re/shared/src/main/scala/io/circe/KeyDecoder.scala
100% <0%> (+2.7%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aab4301...92e1ff2. Read the comment docs.


Remove dependency on testing package from libkb

Also add CI check to make sure it doesn't happen again.

I'd rather remove those tests for deprovision working without secret store.  And then remove GetSecretStoreNilForTests().
It's impossible to not have secret store now, so (as the comment says) the tests aren't really testing anything.

Cool, that works for me too.

okay @patrickxb PTAL


Why is different between hardware size and display size of depth frames in RealsenseViewer?

I use RealsenseViewer to visualize my .bag record file, but the hardware size and display size of depth frames is different, that makes me  can't get the correct depth frame by the capture function. I definately believe my recorded depth frame size is 1280*720. How to fix it?

Hi @Guan9Wu  This halving of the resolution occurs because a post-processing filter called Decimation Filter is enabled by default in the 'Stereo Module > Post-Processing Filters' section of the Viewer's options side-panel.
If you expand open the list of filters in the side-panel and click on the blue icon beside Decimation Filter to turn the icon red (disabled) then the full 1280x720 resolution will be used for the depth frame.
It is also worth mentioning that post-processed data is not saved to a bag file, only the raw stream data.  The resolution of the depth data in your bag is 1280x720, but when you load the bag into the Viewer, the Decimation filter will by default halve ('downsample') the resolution in real-time unless the filter is disabled.

Thans for the information. It clarifies things for me now.

You are very welcome.  I'm pleased that I could help!


chromedriver error

cron実行において
[Exception]
Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

[StackTrace]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/common/service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/extDisk/sho/workspace/flyers/flyers/__main__.py", line 141, in main
    pics = welcia.get_flyers_pics (p)
  File "/mnt/extDisk/sho/workspace/flyers/flyers/welcia/welcia.py", line 69, in get_flyers_pics
    driver = webdriver.Chrome (options=options)
  File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/common/service.py", line 81, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

おそらくPipenvがactivateできていない

とりあえずウエルシアをまたとめておく・・・

see also: https://github.com/mollinaca/chromedriver-test/issues/1

Subject: Cron <sho@chromebook1>    cd "${SCRIPT_DIR}"; source /home/sho/.local/share/virtualenvs/flyers-OhApUgB6/bin/activate; /usr/bin/python3 -m flyers >/dev/null 2>&1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SCRIPT_DIR=/home/sho/workspace/flyers>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/sho>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=sho>
Message-Id: <20210624100020.D078A374@chromebook1>
Date: Thu, 24 Jun 2021 19:00:20 +0900 (JST)

/bin/sh: 1: source: not found

source コマンドが実行できないのか・・・

参考になりそうなもの
https://qiita.com/munaita_/items/4cf39d154239e02f4c9b
https://base64.work/so/python/1902255
https://stackoverflow.com/questions/48990067/how-to-run-a-cron-job-with-pipenv


Documentation for Multinomial Logistic Regression using Trust Region method

This Documentation is for Multinomial Logistic Regression using Trust Region method .
Multilogreg Function.txt

Working on forming an example.Some of the things i'm not able to comprehend in the example given for reference-
-cbind
-scaling and shifting of columns to mean 0 and variance 1
-converting Y into indicator matrix
-! converge and ! innerconverge

That's an improvement!
Now, let us work on example.

Alright

Updated the file with example .

Thank you, @h0901 - LGTM. 👍
🎉 🚀


Your Secret Keys are online, which I don't think is intended

https://github.com/openbridge/ob_google-bigquery/blob/01205de7d7a6c6311f3db55766a3e899dd45085d/samples/sample.env#L13

Hi,
Those we just fake secrets for reference. Thank you though for the comment!

My bad then!


Have a catalogue of properties used by the application config

$subject for the file [1] with their meaning\description accepted values etc.
Also make sure to include new configs introduced recently with the PR [2].
[1] https://github.com/wso2-extensions/identity-agent-sso/blob/master/resources/SampleApp/src/main/resources/sampleApp.properties
[2] https://github.com/wso2-extensions/identity-agent-sso/pull/65/files

Captured with https://github.com/asgardio/asgardio-tomcat-saml-agent/issues/14


How to wrap a Promise into Promise.retry

I am using the jersey rx() extension that wraps the requests in CompletionStages. I would like to be able to take this CompletionStage, convert it to a Promise, and use it within a Promises.retry without having to call get().
This means that Promises.retry would accept a Promise, rather than a Callable or Runnable, and then be able to resubmit the original code with binding context for re-execution.

Here is a retry function that I wrote to handle retries that has been adapted to work with Promises.
`protected Promise retry(Callable<CompletionStage> callable) throws Exception {
    int retries = 0;
    boolean isRetry = false;

    do {
        try {
            if (isRetry) {
                logger.warn(String.format("Retrying previous request (%s).", retries));
            }

            return Promises.from(callable.call());
        } catch (final Exception e) {
            logger.error("An exception was thrown while processing request.", e);

            isRetry = true;
            if (retries >= maxRetries) {
                throw e;
            }
        }

        //
        // Back off for two seconds to try and not saturate the server with retry attempts.
        //
        Thread.sleep(2000);
    } while (retries++ < maxRetries);

    throw new RuntimeException("The number of maximum retries has been exceeded for this request.");
}`

Jeffrey,
If I understand your requirements correctly, then:

You  have Callable<CompletionStage<T>> callable that returns a new CompletionStage whenever it's called.
You should use net.tascalate.concurrent.Promises.retryFuture(callable, retryPolicy)
In your case retryPolicy is:

RetryPolicy<T> retryPolicy = new RetryPolicy<>(maxRetries, DelayPolicy.fixedInterval(2000L));

Is it what you need?

It looks right. I don't know how I didn't see the retryFuture method before...
How are exceptions handled?

Jeffrey,
Unfortunately, RetryPolicy class is not documented yet, but you can specify what exceptions are re-tryable and what  should stop processing. Please check sources of the class -- but? in general, everything is configurable.
And, btw, in my example above you should use:
RetryPolicy<T> retryPolicy = new RetryPolicy<>(maxRetries, DelayPolicy.fixedInterval(2000L)
                                                                                .withFirstRetryNoDelay() // The change
                                                                             );

To avoid waiting before the first execution

This worked. I apologize for not providing a follow up!


Fix bug where new project creates output called "model"

Pull Request Test Coverage Report for Build 569264726

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.773%

Totals

Change from base Build 568357542:
0.0%

Covered Lines:
490

Relevant Lines:
640

💛  - Coveralls


 It'd be golfier if the function digraphs were all one byte, which we can do.

Whoops, it looks like this issue kinda got missed/ignored by everyone. I think deciding which overload to use to replace each diagraph will require some discussion, so I'll convert this to a discussion.


Disabling jsx-props-no-spreading does not work

I am trying to configure jsx-props-no-spreading for test purposes (at the moment), but it does not want to work. I have added the following code to my package.json file:
"eslintConfig": {
    "extends": [
    "prettier"
  ],
  "rules": {
      "react/jsx-props-no-spreading": 0
    }
},

This is my whole package.json file:
{
  "name": "xxx",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@date-io/date-fns": "^1.3.13",
    "@material-ui/core": "^4.9.14",
    "@material-ui/icons": "^4.9.1",
    "@material-ui/pickers": "^3.2.10",
    "@microsoft/applicationinsights-react-js": "^2.5.4",
    "@microsoft/applicationinsights-web": "^2.5.4",
    "agentkeepalive": "^4.1.2",
    "core-js": "^3.6.5",
    "date-fns": "^2.13.0",
    "enzyme": "^3.11.0",
    "enzyme-adapter-react-16": "^1.15.2",
    "file-saver": "^2.0.2",
    "formik": "^2.1.4",
    "http-proxy-middleware": "^1.0.3",
    "immer": "^7.0.1",
    "moment": "^2.25.3",
    "mui-datatables": "^2.14.0",
    "react": "^16.13.1",
    "react-app-polyfill": "^1.0.6",
    "react-dom": "^16.13.1",
    "react-redux": "^7.2.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "3.4.1",
    "redux": "^4.0.5",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0",
    "shortid": "^2.2.15",
    "yup": "^0.29.1"
  },
  "jest": {
    "setupFiles": [
      "<rootDir>/src/setupTests.js"
    ],
    "transformIgnorePatterns": [
      "<rootDir>/node_modules/?!(@material-ui)/"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "pre-push": "npm test"
    }
  },
  "lint-staged": {
    "*.+(js|jsx)": [
      "eslint --fix"
    ],
    "*.+(json|css|md)": [
      "prettier --write"
    ]
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --transformIgnorePatterns \"node_modules/?!(@material-ui)/\" --watchAll=false --silent --forceExit --env=jsdom",
    "test:dev": "react-app-rewired test --transformIgnorePatterns \"node_modules/?!(@material-ui)/\" --env=jsdom",
    "eject": "react-scripts eject",
    "analyze": "source-map-explorer build/static/js/*.js"
  },
  "eslintConfig": {
    "extends": [
      "prettier"
    ],
    "rules": {
      "react/jsx-props-no-spreading": 0
    }
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "babel-core": "^6.26.3",
    "babel-eslint": "^10.1.0",
    "babel-plugin-import": "^1.13.0",
    "babel-preset-react": "^6.24.1",
    "customize-cra": "^0.9.1",
    "eslint-config-airbnb": "^18.1.0",
    "eslint-config-prettier": "^6.11.0",
    "eslint-plugin-import": "^2.20.2",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-prettier": "^3.1.3",
    "eslint-plugin-react": "^7.20.0",
    "eslint-plugin-react-hooks": "^4.0.2",
    "eslint": "^6.2.0",
    "husky": "^4.2.5",
    "lint-staged": "^10.2.3",
    "prettier": "^2.0.5",
    "react-app-rewired": "^2.1.6",
    "react-test-renderer": "^16.13.1",
    "redux-devtools-extension": "^2.13.8",
    "redux-immutable-state-invariant": "^2.1.0",
    "redux-mock-store": "^1.5.4"
  }
}

What do you mean by "doesn't seem to work"? What error are you getting on what code?

I am getting the error on compilation: Prop spreading is forbiddeneslint(react/jsx-props-no-spreading)
When triying:
  <label className="checkbox">
    <input type="checkbox" {...field} {...props} />
    {children}
  </label>

And if run npx eslint --print-config path/to/file what shows up?
If you're unable to disable a rule, that's not an issue with the plugin, it's an issue with your eslint config.

I wanted to disable it as well and fixed it with: "react/jsx-props-no-spreading": "off"

I was facing the same issue .
add this in your eslintrc.json
"react/jsx-props-no-spreading": "off"
restart the dev server
npm start


Warning on condition keys that are not applicable to given actions

cfn-lint version: (cfn-lint 0.29.6)
Description of issue.
When writing IAM rules, not all actions accept all conditions. In case a non-acceptable condition is added to an action, it is just silently ignored, as much as I can tell. Thus can result in a while goose chase: "why my rule did not apply?"
For example, the S3 object-level rules in general do not accept s3:prefix-based conditions. Thus this template (arguably contrived, there could be better example) would result in a policy that is listed except the condition ignored (and thus applied at all cases):
Resources:
  WarehouseBucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: "test-bucket"
  WarehouseBucketPolicy:
    Type: AWS::S3::BucketPolicy
    Properties:
      Bucket: !Ref WarehouseBucket
      PolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Deny
            Principal: "*"
            Action: s3:GetObject
            Resource: !Join ["", [!GetAtt [WarehouseBucket, Arn], "/*"]]
            Condition:
              StringLike:
                s3:prefix: "hq/"

cfn-lint happily accepts it, though. It would be nice to at least warn, that the condition is not applicable.
For the applicable rules, I've checked  https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html and https://iam.cloudonaut.io/

We did start working on something for bucket policies specifically.  https://github.com/aws-cloudformation/cfn-python-lint/pull/914
It doesn't do conditions but we are looking for object based commands, bucket level commands so we may be able to validate the condition while we do that.

Was re-looking at this and it appears that the permissions file we are using doesn't separate out the actions and conditions for S3 like this.  I think in theory we could do this but it wouldn't catch the issue you provided because our data source doesn't separate it out.


Why the Mantra CLI generator says "Welcome to Mantra 0.4.2." ?

Summary of the issue
As I understand from the main repo, Mantra stopped on 0.2.0. Does it really got update to 0.4.2? Where are the changes?
Steps to reproduce

step 1
step 2
...

Environment in which this issue happens

CLI version:
node.js version:
Operating system:

Probably i did a misstake with the release script. I will take a look later this day

I have removed the version info from the default home page.


Cannot serialize data tables results to JSON

Data tables results are transformed with np.int64 values in the results which cannot be serialized to JSON. Please cast these to python int.
import json

res = my_slicer.manager.column_index_table(
    metrics=['clicks', 'impressions'],
    dimensions=['date', 'device_type'],
    dimension_filters=[RangeFilter('date', date.today() - timedelta(days=14), date.today())])

print(res)
print(json.dumps(
    res
))

Fixed in 0.0.11


Replace usages of BlocklyMethods for C robots

Continuation issue to partially solved issues #95 and #230:
BlocklyMethods and NEPODefs still have to be removed from Java and C based robots.

[x] Find all "BlocklyMethods.py" / "NEPOdefs.h" etc.
[x] Find common C methods
[ ] Extract C one liners (constants?) directly into code generation

[ ] Arduino based
[ ] c4ev3
[ ] Calliope
[x] NXT

[ ] Combine C multi liners into common helper methods

[ ] Arduino based
[ ] c4ev3
[ ] Calliope
[ ] NXT

[ ] Implement class in all C robots

[ ] Arduino based
[ ] c4ev3
[ ] Calliope
[x] NXT

[ ] Default implementations for C
[ ] Special implementations for C robots that don't support default
[ ] Unit tests

[ ] Arduino based
[ ] c4ev3
[ ] Calliope
[ ] NXT

[ ] Test each method on robots

[ ] Arduino based
[ ] c4ev3
[ ] Calliope
[ ] NXT

We discussed some changes today.
The original goal was to simplify and show the code for everything from math to lists.
Now, for C specifically, we decided to create helper methods for math operations but omit the list operations (together with HAL-like abstractions, which should be moved into its own file at some point) in the NEPODefs.h. As these methods are mostly iterator based there is not a lot of didactic value to be gained.

I also changed the math constants across all C robots to follow the M_ naming.

hard to test manually.


feat: start implementing reporter

Getting there.....
go run cmd/guardian/main.go run -dir=terraform/project1 -- plan -no-color

--------------------
Starting Guardian Run
--------------------
Running Terraform init

--------------------
Initializing Terraform
--------------------
Initializing the backend...
Initializing provider plugins...
- Reusing previous version of hashicorp/null from the dependency lock file
- Installing hashicorp/null v3.2.2...
- Installed hashicorp/null v3.2.2 (signed by HashiCorp)

╷
│ Warning: Provider lock file not updated
│
│ Changes to the provider selections were detected, but not saved in the .terraform.lock.hcl file. To record these selections, run "terraform init" without the "-lockfile=readonly" flag.
╵
Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

--------------------
Running Terraform Command
--------------------

Error: Required plugins are not installed

The installed provider plugins are not consistent with the packages selected in the dependency lock file:
  - registry.terraform.io/hashicorp/null: the cached package for registry.terraform.io/hashicorp/null 3.2.2 (in .terraform/providers) does not match any of the checksums recorded in the dependency lock file

Terraform uses external plugins to integrate with a variety of different infrastructure services. To download the plugins required for this configuration, run:
  terraform init
failed to run command: failed to run command: exit status 1
exit status 1

Have a different idea here...


Does not work on mobile app

Works in browser, but returns "Custom element doesn't exist: digital-clock" in mobile app.

It works if you close Home Assistant on the mobile device and open it again.


fix(content): update v10 developer getting started and migration

Closes #1305
I made sure developer getting started content for vanilla and react is accurate with upcoming v10 release.
I also updated migration statement as carbon-icons won't be deprecated in v10.

Noticed for Other Frameworks some of the headings aren't getting properly set. Maybe we could take care of that as part of this?

Should the resources go under the anchor tags?

They look like they're running up against each other and it makes the navigation move around when switching to tabs without resources.

I will address @vpicone's feedback now.

Nice, LGTM!


netlify crashed while attempting to create a site

Describe the bug
Trying to create a site locally that already exists in the netlify cloud so that I can use the command-line tool to link the cloud version and then do a manual deploy, netlify crashed.  There were no teams listed in the prompted where I was told to select a team.
Steps to reproduce

In a github repo directory that is a local version of https://github.com/mozilla/protolight:

% netlify sites:create -n protolight
? Team:

 ›   Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:

npm install -g netlify-cli@VERSION

You can use any version from https://ntl.fyi/cli-versions.

Please report this problem at https://ntl.fyi/cli-error including the error details below.

TypeError: Cannot read properties of undefined (reading 'value')
    at ListPrompt.getCurrentValue (/opt/homebrew/Cellar/netlify-cli/17.13.0/libexec/lib/node_modules/netlify-cli/node_modules/inquirer/lib/prompts/list.js:121:53)
    at MapSubscriber._next (/opt/homebrew/Cellar/netlify-cli/17.13.0/libexec/lib/node_modules/netlify-cli/node_modules/rxjs/internal/operators/map.js:49:35)
    at Subscriber.next (/opt/homebrew/Cellar/netlify-cli/17.13.0/libexec/lib/node_modules/netlify-cli/node_modules/rxjs/internal/Subscriber.js:66:18)
    at TakeSubscriber._next (/opt/homebrew/Cellar/netlify-cli/17.13.0/libexec/lib/node_modules/netlify-cli/node_modules/rxjs/internal/operators/take.js:54:30)
    at Subscriber.next (/opt/homebrew/Cellar/netlify-cli/17.13.0/libexec/lib/node_modules/netlify-cli/node_modules/rxjs/internal/Subscriber.js:66:18)
    at Interface.handler (/opt/homebrew/Cellar/netlify-cli/17.13.0/libexec/lib/node_modules/netlify-cli/node_modules/rxjs/internal/observable/fromEvent.js:22:28)
    at Interface.emit (node:events:529:35)
    at Interface.emit (node:domain:489:12)
    at [_onLine] [as _onLine] (node:internal/readline/interface:423:12)
    at [_line] [as _line] (node:internal/readline/interface:894:18)

  System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    npm: 10.3.0 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 120.0.6099.216
    Firefox: 121.0
    Safari: 17.2.1

Configuration
Don't have one.
Environment
System:
OS: macOS 14.2.1
CPU: (10) arm64 Apple M1 Max
Memory: 2.66 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
npm: 10.3.0 - /opt/homebrew/bin/npm

% netlify --version
netlify-cli/17.13.1 darwin-arm64 node-v18.19.0

To be clear, I updated to 17.13.1, tried it again, and saw the same bug.
Am Do., 11. Jan. 2024 um 14:52 Uhr schrieb Dan Mosedale <
@.***>:

% netlify --version
netlify-cli/17.13.1 darwin-arm64 node-v18.19.0
—
Reply to this email directly, view it on GitHub
https://github.com/netlify/cli/issues/6307#issuecomment-1888094146, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADH5ONPXU7XZDU2FO5R5RDYOBUKJAVCNFSM6AAAAABBXHY6ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGA4TIMJUGY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Upgrade to libsass v3.5.x

Can you upgrade to libsass v3.5.x?

Now I see that 3.4.5 is the latest stable version of libsass. My bad, sorry.

we will upgrade to 3.5.x once there's a stable release. latest beta is 3.5.0.beta.3 vs stable 3.4.9.

@rodneyrehm
libsass 3.5 is on the stable branch
https://github.com/sass/libsass/tree/3.5-stable
is there any hope to upgrade to the latest stable release ? I think it will work wonders with support to css custom variables var(--variable)

right, I totally forgot about this, sorry. Thanks for pinging me. I'll try to work on this next week.

I'm trying to upgrade it from my laptop (linux), I don't know why it is producing 300KB file whereas it should be almost 3MB (sass.sync.js & sass.worker.js)

emscripten 1.38.6
Which version you're using?

emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.6
clang version 6.0.1  (emscripten 1.38.6 : 1.38.6)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/ritwick/Desktop/emsdkInstallation/emsdk/clang/e1.38.6_64bit
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.0.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.0.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

release 0.10.10 upgrades libsass to 3.5.4 - sorry for the daly


Missing Images

https://www.dectane.de/images/product_images/original_images/afs_links/Einbauanleitung_MODV01_D.pdf

Closing as duplicate of issue #6017.


No word_dict.txt in dataset

Please add the word_dict.txt in dataset.

Sorry, This is private data in my company. You can use any open source for the Vietnamese word dictionary

Is this the code in any papers in Vietnamese NLP, sir? Big thanks for your sharing code.

Thanks for your compliments. I'm also referenced from Zalo paper, SoftMasked Bert for Chinese,...
I tried experiment with  Phobert but it didn't work and the last thing I need to said that This model is still not effective in some cases where the word is wrong but the word still makes sense. Currently, this project needs more research for this case

Do you have any comparison with other model such as model in Zalo paper? And your main model is still BartPho + Tweet? I do believe that if you add negative sampling or trigger the dataset as the way it wrong , your model will be more efficient. Could you tell me your time training , many epochs and how many sentences did you train?

In my experience, I realize a few things:

BartPho isn't working because BartPho relies on BART Denoising sentence to sentence paper which input can be masked, delete,  sentence rotation,.. But in my generate data, I focus to generate sentence which has word wrong but the word make sense( I think it's the hardest part in the spelling correction)

In zalo paper, I think the most important in zalo model is which strategies for combining characters embedding and word embedding? Because of the limitation for GPU, we can't try many strategies(about 4 hours for 1 epoch)

Currently, the best model is SoftmaskedBert

We trained on about 1.5M sentences. If you researched in your university, you can try a small corpus and try for fun, but if you do for the company, I think the hardest is data. You need to generate the general data for spelling correction
Best regard

Big thanks and respectation.

@daominhkhanh20 Hi sir, in SoftmaskedBert, how can you mapping of the tokenizer of correct sentences and error sentences? Because PhoBERT use WordPiece Tokenizer, when in SoftmaskedBert tokenize by whitespace? Thank you very much


Unable to scale multiple configserver at once

Hi,
I tried multinode set up with 3 configserver, 3 container and 3 content.
The configserver never come up and kept throwing error in zookeeper logs unexpected exception - java.lang.NullPointerException
Used case

Referred to GCE multinode set up
Passed single configserver host in env var  VESPA_CONFIGSERVERS via config map. statefulset pod scaled up.
Passed three configserver host (comma separated) in env var  VESPA_CONFIGSERVERS via config map. tried scaling statefulset pod with replica=3, the pod scale up got stuck with zookeeper error as unexpected exception - java.lang.NullPointer.exception.

VESPA_CONFIGSERVERS=myhost1.svc.cluster.local,myhost2.namepace.svc.cluster.local,myhost3.svc.cluster.local
where myhost1 myhost2 and myhost3 are <statefulset_index>.<headless_service>
Am I missing anything in multinode set up to spin up multiple config server at once?

What do you mean by

Referred to GCE multinode set up

Do you have the full exception?

What do you mean by

Referred to GCE multinode set up

Do you have the full exception?

https://github.com/vespa-engine/sample-apps/tree/master/basic-search-on-gke
config map
apiVersion: v1
kind: ConfigMap
metadata:
name: vespa-config
data:
VESPA_CONFIGSERVERS: "vespa-0.vespa-internal.default.svc.cluster.local"
instead of one host used 3 as comma separarted
VESPA_CONFIGSERVERS: "vespa-0.vespa-internal.default.svc.cluster.local,vespa-1.vespa-internal.default.svc.cluster.local,vespa-2.vespa-internal.default.svc.cluster.local"
when tried to scale up master.yml with replicas=3, the vespa-0 configserver failed to start and gave null pointer exception in zookeeper logs.

Could you share the exception stacktrace?

Could you share the exception stacktrace?

We are using the docker image latest and while scaling config server with replica 2 as stateful object we are getting below error in zookeeper log.
Please use the zookeeper version from latest image version of vespa.
2021-02-08T12:42:08.229+0000 [myid:] - ERROR [nioEventLoopGroup-4-1:NettyServerCnxnFactory$CnxnChannelHandler@329] - Unexpected exception in receive
java.lang.NullPointerException: null
at org.apache.zookeeper.server.NettyServerCnxn.receiveMessage(NettyServerCnxn.java:518) ~[zookeeper-3.6.2.jar:3.6.2]
at org.apache.zookeeper.server.NettyServerCnxn.processMessage(NettyServerCnxn.java:368) ~[zookeeper-3.6.2.jar:3.6.2]
at org.apache.zookeeper.server.NettyServerCnxnFactory$CnxnChannelHandler.channelRead(NettyServerCnxnFactory.java:326) [zookeeper-3.6.2.jar:3.6.2]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.50.Final.jar:4.1.50.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.50.Final.jar:4.1.50.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.50.Final.jar:4.1.50.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.50.Final.jar:4.1.50.Final]
at java.lang.Thread.run(Thread.java:834) [?:?]

From the ZK code this appears to be a symptom of failed leader election. My guess is you need to open some ports or something like that, but could you share what comes before this in the zookeeper log?

From the ZK code this appears to be a symptom of failed leader election. My guess is you need to open some ports or something like that, but could you share what comes before this in the zookeeper log?

Hi Jon,
The exception only comes when we try to increase replicas of config server greater than 1. For single config server it works fine.

Yes there's no leader election with just one config server. With more the config servers need to coordinate between themselves by communicating over ZooKeeper-specific connections (using Netty).

Yes there's no leader election with just one config server. With more the config servers need to coordinate between themselves by communicating over ZooKeeper-specific connections (using Netty).

I was able to spin up multiple config server by updating the headless service with parameter "publishNotReadyAddress: true" to update DNS even if the pod is not up and ready.
Is it recommended?

It's certainly not harmful in any way, so if it solves the problem it's 👍
I guess what's happen here is that failing DNS resolution leads ZooKeeper down a path to an illegal internal state it cannot recover from. I'll update the sample app with this info - thanks!


Add AppImage building

This would be really helpful for Fedora and OpenSuse users as ALVR itself already builds an AppImage but ALXR doesn't have appimage builds yet which makes it basically extremely hard to use on both Distros and on opensuse in fact basically as nearly as impossible.

@Mar0xy Hello, do you mean the ALVR server? please note the linux builds of ALXR are also clients, all the builds are all clients. The windows/linux build is typically meant for streaming to wired/diy headsets.

Yes I indeed meant the server

@Mar0xy m00n made the appimages for the alvr server, there is an appimage of v18.2.3 here but I've never tested it or heard anyone using it.

I have seen it float around reddit a few times sadly if you try launching it it just breaks and gets stuck on "waiting on server"


Feature / JPRO-66 Push JPro Dependencies to Maven Central

Ensure that all necessary JPro-related libraries required for the Komet project are available on Maven Central.

Thank you, Carl. Please conduct all necessary tests prior to merging.


Hurt notes breaking

What is your question?
if i change the note assets the hurt notes also change to the new assets and when you/the opponent hits them the game crashes

fucked up xml of note image


Built-in API for events

This PR adds a small sinatra app to expose an API for events. The API contains:

event by id
retry of a single event
list by entity_id, group_id, topic and event_type with pagination
ping

It comes with a new cli command to create a config.ru in the host project (phobos_db_checkpoint init_events_api). The sinatra part is lazy and is not loaded in the regular flow, only through the config.ru.
I've been discussing this with @ticolucci for a while, so take a look and see if you guys like it.

Coverage decreased (-0.3%) to 98.548% when pulling 44cdcea1944128b0323c3cfce43c855b3acb7d58 on api-for-events into 4fc0ec3bcc963818eb9028c09511568e5a8c8c9d on master.

Coverage increased (+0.6%) to 99.466% when pulling 38705d7409ec16ec6d47c0a59a07818c2ec512b3 on api-for-events into 4fc0ec3bcc963818eb9028c09511568e5a8c8c9d on master.


fix fix stats inject in or_expansion.groovy

Proposed changes
make stats injection run first

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


README: Add network.trr.resolvers

It is my understanding that this only affects the preferences GUI, let me know if that's not the case. (This setting was seen on firefox 68, haven't tried to find out when/how it was introduced.)
Besides this setting, I also see a network.trr.custom_uri, I assume this is also related to the preference GUI handling?
Thanks,

I also see a network.trr.custom_uri, I assume this is also related to the preference GUI handling?

This is stuff that has been done after I left Mozilla and I haven't been paying close enough attention. Can you confirm what this does @valenting ?

Thank you! I can take stab at it based on my assumptions, open a new pull request where we can wait for @valenting's response.

Sounds perfect!

Indeed, it only affects the UI. I don't think they should be documented - or if they are documented it should mention that users should not touch them. They may change or be removed at any moment.


New Crowdin updates

:tada: This PR is included in version 0.35.0 :tada:
The release is available on:

v0.35.0
GitHub release

Your semantic-release bot :package::rocket:


Default query seems not a valid option

Current approach is to use a default query as fallback to language specific queries. However tree-sitter nodes are not called the same across all languages.
Solution: implement queries for all languages

[ ] provide default queries for many languages.
[ ] Add an interface to inject a query for an unsupported language


[HA AM] Allow editing/“resurrecting” of an expired silence

It happens very often that you want to “resurrect” an expired silence. To maintain history, we can do something similar as for editing matchers for non-expired silences: We make expired silencing editable, but prefill the start and end dates with the usual values (now and now+4h) and then create in fact a new silence.

Fixed via #408


Getting Keyboard Issue After TouchId Prompt Page With Iphone X

When I apply for touch Id in the native touch prompt and then land to some other page I experience a issue with keyboard. The keyboard does not open in one tap in mobile app. It takes lot of efforts to get it open.
This issue is encountered after putting the splash images for iPhone X -

<! — 1334x1334 →

<! — 750x1334 →

<! — 1334x750 →

<! — 2208x2208 →

<! — 2208x1242 →

<! — 1242x2208 →

<! — 2732x2732 →

<! — 1278x2732 →

Any solution on this.
Thanks in advance.

Weird one. Please share a repo reproducing this issue.


Optimise the website using bootstrap for mobile view

The website is not polished in mobile view and needs to be optimised.

The dark Mode logo looks deformed

@Chitresh-code  https://github.com/arncv/Intima/pull/13
You can start working on it as discussed.

@arncv Thanks, please assign this issue to me.

hi @arncv could you assign this issue to me? Will create a PR soon. Thankyou.


Version 21.0.0

Changelog
21.0.0

[breaking] [deps] Update react-with-styles and other deps (#1761)
[new] [deps] Update dependencies related to react-with-styles (#1775)
[new] DayPickerSingleDateController: Add onMultiplyScrollableMonths (#1770)
[dev] Fix moment date formats (#1767)
[dev] Fix addons webpack loader, Fix tests (#1764)
[dev] build: fix linting (refs eslint/eslint#12119)
[new] [deps] update @babel/runtime, airbnb-prop-types, object.values, prop-types, react-outside-click-handler, react-portal
[dev] [deps] update @babel/*, @storybook/*, babel-plugin-inline-svg, babel-plugin-istanbul, babel-preset-airbnb, eslint-config-airbnb to v18 (plus peer deps), eslint to v6; eslint-plugin-react-with-styles, karma, karma-firefox-launcher, mocha, safe-publish-latest, sass-loader, sinon, sinon-sandbox, coveralls, enzyme-adapter-react-helper
[fix] Remove all direct imports of css in favor of injected prop (#1758)

Reviewers
@indiesquidge @ahuth @joeuy @TaeKimJR @ljharb @majapw

Coverage remained the same at 84.958% when pulling e365eb3542f04517a3b069f9de7edfe967f2c158 on nora--react-dates-21 into b1a933dfdcd71b5263d686367d5db00e677c618e on master.


not working in iOS 10

Thanks to your example.
but it is not work properly in iOS 10. especially height.
please check and if I know how to change dynamically, I will try pull-request.

Thanks for using.
Yes, I know, iOS 10 widgets have another behavior relative to iOS 8 or 9.
Unfortunately I don't have time for now to update for iOS 10.


ENH: ReaderWithFilestore now uses its own read

bump

Yea, sorry that I haven't fixed this yet (although I guess this might be of interest with the configuration refactor?)

I'm superseding this with #698


NSS patch 'nss-3.15.4-pem-support-20140109.patch.xz' URL is a 404

Steps To Reproduce
Steps to reproduce the behavior:

build nss on basically any branch

Build log
  trying http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   357  100   357    0     0    816      0 --:--:-- --:--:-- --:--:--   815
    0   261    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  curl: (22) The requested URL returned error: 404
  error: cannot download nss-3.15.4-pem-support-20140109.patch.xz from any mirror

Additional context
http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz seems to be indeed dead.
Couldn't quickly find a mirror using google
Notify maintainers
@mweinelt
@ajs124

I propose we follow other distros and drop this patch entirely in favor of nss-pem (https://github.com/kdudka/nss-pem). Nothing should depend on this patched in functionality in NSS.

For a quick fix, it's still available in:
https://web.archive.org/web/20210305023555/http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz

Nope, we're dropping it #187357.

Nope, we're dropping it #187357.

Sweet. Any idea how far this would be backported (if at all)?

Right -- basically every nixpkg stable build that existed before now cannot be built from source since this thing 404s...
The web archive should be backported?
NSS is such an early dependency for the whole graph of nixpkg this should be fixed I think?

You should be able to to download the file from web.archive.org and add it with nix store add-file.
wget https://web.archive.org/web/20210305023555/http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz
nix store add-file nss-3.15.4-pem-support-20140109.patch.xz

We have a CICD setup with our own private cache... so I guess I have to add
something to it.
I know nix store can do that but I don't have the signing keys...
I am trying to just cherry-pick that change for now and do the rebuild.
Farid Zakaria
On Mon, Aug 22, 2022 at 3:58 PM Sandro @.***> wrote:

You should be able to to download the file from web.archive.org and add
it with nix store add-file.
wget https://web.archive.org/web/20210305023555/http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz
nix store add-file nss-3.15.4-pem-support-20140109.patch.xz
—
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/187314#issuecomment-1223292515,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAETXDQH6HKVCGYORG54463V2QA2HANCNFSM56535FTA
.
You are receiving this because you commented.Message ID:
@.***>

Nope, we're dropping it #187357.

Sweet. Any idea how far something like this would be backported (if at all)?

Backported into staging-22.05 just now, sorry I forgot. Will take a few days to get into release-22.05.

with https://github.com/NixOS/nixpkgs/pull/187357 (and the backport in https://github.com/NixOS/nixpkgs/pull/187930) merged I'm pretty sure this can be closed - feel free to reopen if I'm mistaken :)


Fix/stale fetcher on suspense

Attempts to fix #1806
I would have hoped the useIsomorphicLayoutEffect to take care of this, but it would seem that it needs to be done the good ol' way, by refreshing the ref to the fetcher on every render.
Though, the tests pass under this change, so it might be correct?

I think #1803 does a more complete fix of this issue. Closing in favor of that PR.


TODO: Add Adusumulli melt rates as an example.

using https://github.com/ldeo-glaciology/pangeo_ADmeltrates as a starting point

this has been started, but the notebook needs tidying up.

@jkingslake pushed some small changes to test our workflow


Add Setting Layout

https://github.com/hearsilent/KUAS-AP-Material/commit/8f2190c52207e0023e4267d5a7b30bf6aaffc80e


Cannot create Liquefied Mastic Resin with Heated Mixer

You cannot craft Liquefied Mastic Resin using a Heated Mixer, but JEI suggests you can. The mixer does not spin.

Is there another way you are meant to obtain the liquid?
Version: garnished-2.0.1+1.19.2-forge

Is there any errors that pop up in the logs relating to the recipe itself?

Is there any errors that pop up in the logs relating to the recipe itself?

These are the only errors related to garnished.
Log
14:03:16.373
net.minecraft.tags.TagLoader
Worker-ResourceReload-9
[Load My Fucking Tags] Couldn't load certain entries with the tag forge:affected_by/ravaging: minecraft:sniffer (from garnished-2.0.1+1.19.2-forge.jar)
14:03:17.801
net.minecraft.world.item.crafting.RecipeManager
Render thread
Parsing error loading recipe garnished:integration/cooking/galvanic_haunting: com.google.gson.JsonSyntaxException: Unknown item 'minecraft:lustrous_pearl'
14:03:18.135
net.minecraft.world.item.crafting.RecipeManager
Render thread
Parsing error loading recipe garnished:crushing/brittle_dust: com.google.gson.JsonSyntaxException: Missing type, expected to find a string

Should now be fixed! Let me know if you come across any other issues!


A few possible errors in the article

Please check the followings to see if they should be corrected.

Current:
Connect to your data
The next step is to connect to a data source to use for the search index.
In the Import data wizard on the Connect to your data tab
Suggested:
"Import data" above should be "Import and vectorize data"

Current:
Check results
You should see 84 documents, where each document is a chunk of the original PDF. The title field shows which PDF the chunk comes from.
Suggested:
It should be 5 documents because the query has "k": 5,
It only returns 5 results.

Current:
The index definition isn't configurable so you can't filter by "title". To work around this limitation, you could define an index manually, making "title" filterable to get all of the chunks for a single document.
Suggested:
It needs rewriting.
Above is incorrect. "title" is filterable if you look at the index definition.
{
"name": "title",
"type": "Edm.String",
"searchable": true,
"filterable": true,
"retrievable": true,
"sortable": false,
"facetable": false,
"key": false,
"indexAnalyzer": null,
"searchAnalyzer": null,
"analyzer": null,
"normalizer": null,
"dimensions": null,
"vectorSearchProfile": null,
"synonymMaps": []
},
I can get all chunks for a single documents with a filter.
{
"search": "*",
"select": "chunk, title",
"filter": "title eq 'Northwind_Standard_Benefits_Details.pdf'",
"vectorQueries": [
{
"kind": "text",
"text": "Which plan has the lowest deductible",
"k": 5,
"fields": "vector"
}
]

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: baadfe89-fbfa-58bc-dcb0-99c2b3bfc60b
Version Independent ID: 1b2548d0-56fc-333d-dac0-c35e3e99cb5a
Content: Quickstart integrated vectorization - Azure AI Search
Content Source: articles/search/search-get-started-portal-import-vectors.md
Service: cognitive-search
GitHub Login: @HeidiSteen
Microsoft Alias: heidist

@davidqiu123
Thanks for your feedback! We will investigate and update as appropriate.

@davidqiu123, Thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

@davidqui123 thanks for pointing out these errors and also for the suggested fixes.  The docs are now updated.

#please-close


Missing back slash in PATH

Hi there, when using your script on my Windows 10 machine it adds this line in my PATH: C:\wamp64\bin\phpphp7.2.4. With the last backslash missing.
I've fixed it by adding back the slash at the end of line 28: set $pathToPhpFolders=bin\php\. And also deleting php from the PATH system vars, which was overwriting the targeted one located in the user vars.
Not sure if I'm the only one facing this or not, anyway thx for this great script 👍

Hi There
Thank you for your feedback.
This has now been fixed in v1.1.1 by adding qty 2 backslashes.

One in line 141.
One in line 241.

This allows for an unpolluted (non-backslashed) default variable on line 28. I prefer not to have trailing backslashes on paths where possible as I believe an 'intelligent' script should take care of it.
PS: Currently, this script has been intentionally programmed to only update the users environmental variable path and not the systems environmentals path as the use of this script is more user based than system (all users) based.
Regarding the php entry in your system environmental path, another program would have added this at some time, perhaps another WAMP / LAMP server you may have installed previously. Depending on the specificity of the php path, it may have very well overridden the users environmental path setting rendering this script ineffective. Currently WampServer does not add any entries to the user or system environmental paths, though should this change then this script will need to take another approach (if the developers of WampServer do not allow separate adjustment of the php cli version).
Thank you for appreciating this script. It is greatly appreciated.


[Enhancement] add more profile and metrics to measure runtime bloom filter size

Why I'm doing:
What I'm doing:
Major changes:

add new metrics to query profile to observe the memory occupied by partial runtime bloom filter.
add new be system metrics to  observe the number of rf events in the queue and the bloom filter memory consumption  in the queue.

What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.3
[x] 3.2
[x] 3.1
[x] 3.0
[x] 2.5

@mergify backport branch-2.5 branch-3.0 branch-3.1 branch-3.2 branch-3.3


Change navbar color to a better blue.

The current shade of blue does not look that good.

nice blue


[FEATURE REQ] - Azure Keyvault AddAzureKeyVault.ReloadInterval needs to raise an Event

Library or service name.
Microsoft.Extensions.Configuration.AzureKeyVault
Is your feature request related to a problem? Please describe.
Recently the ReloadInterval property was added which is great, but it doesn't go far enough because we have no way of knowing that it occured and respond and update the strongly bound configuration singletons etc in our DI.
What feature would you like to get added? What problem is it solving?
Please add an event to the AddAzureKeyVault method that allows us to specify a function/lambda that can reload these singletons as a result of a reload from Azure.

Secret configuration provider already fires configuration system reload token: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/src/AzureKeyVaultConfigurationProvider.cs#L141
You can use https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration.getreloadtoken?view=dotnet-plat-ext-3.1#Microsoft_Extensions_Configuration_IConfiguration_GetReloadToken to retrieve the reload token.
An article about using change tokens https://docs.microsoft.com/en-us/aspnet/core/fundamentals/change-tokens?view=aspnetcore-3.1

Thanks. Bizzarely complex, but it works! Thanks!

Here's my complete implementation:
		public static void ApplyKeyVaultToConfig(IConfigurationBuilder config)
		{
			var builtConfig = config.Build();
			var connectionStrings = ConnectionStrings.GetSettings(builtConfig);
			if (connectionStrings.AzureKeyVault == null)
				return;

			var client = connectionStrings.AzureKeyVault.GetSecretClient();

			var options = new AzureKeyVaultConfigurationOptions
			{
				ReloadInterval = TimeSpan.FromMinutes(5),
			};

			//HACK: This is here until microsoft gives us a better way to make sure that Azure Keyvault doesn't override environment variables etc.
			var tKeyVaultSource = options.GetType().Assembly.GetType("Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationSource")!;

			var source = Activator.CreateInstance(tKeyVaultSource, new object[] { client, options }) as IConfigurationSource;

			config.Sources.Insert(0, source);
		}

ReloadInterval =  is the key to it just doing it automatically from what I can tell. In the past I had to do WAY more work to get it to reload using the old library.

Why are these needed?
var tKeyVaultSource = options.GetType().Assembly.GetType("Azure.Extensions.AspNetCore.Configuration.Secrets.AzureKeyVaultConfigurationSource")!;
var source = Activator.CreateInstance(tKeyVaultSource, new object[] { client, options }) as IConfigurationSource;
config.Sources.Insert(0, source);

That puts Azure Keyvault first instead of last in the order of configuration providers because literally everything else should come after it for overriding your keyvault.  If you don't do this, then command line, environment variables and even .config files will be ignored.
Typically you'll want to have specific settings in environment variables in docker as an example that override certain values per environment.

Thanks @JohnGalt1717 !


epics-api

Please use the form below, leaving the prefilled data to help us. Thank you.
Page link: epics-api
Document link: epics-api.md
My Issue/Suggestion
From the documentation it is not clear how epics and stories are linked (and they are linked in the Mendix portal). It is also not clear if and to what extent the 'old' stories API is still operational and if we can still use it. Given that the stories API provided a much more detailed way of interacting with individidual user stories it would definitely be a plus if the same functionality was made available in the Epics API (before removing the stories API).
It does not seem to be possible to manage epics at all, just get an overview of epics recorded in the Mendix portal. There is no data on epics with the user stories, although each user story is linked to an epic in the Mendix portal.
Suggestions for improvement:

Make it possible to retrieve individual epics.
Make it possible to create/update epics
Add a reference to an epic in the user stories and allow to read and update the epic
Make it possible to get all stories related to an epic
Allow for images and objects to be accessible through the API as well (even if only by providing a URL)

@rvpuijenbroek Hey, thank you very much for the feedback.
Regarding how epics and stories are linked – if you mean the project management tools Epics (the current tool) and Stories (the old tool), then you should migrate data in Stories to Epics, and manage your project in Epics. If you mean the terms "epics" and "stories" which are used in the context of project management, then the stories are grouped under an epic, which can be seen in the project management tool.
The Stories API will be retired at certain point. I will let you know when I get more information about the plan.
I have shared your suggestions for improvement with the Project Manager. They will see what they can plan. Thank you again for sharing your valuable feedback on this.

@Luyao-Zhang-1
Thank you for your reply.
My concern has to do with the Epics-API not being functionally complete, not so much with the portal functionality. We are already using the Epics functionality in the portal. I am aware that we can group stories under an epic.... in the portal.
However, we want to use the API to get, for example, all stories for an epic, or create/update a story and link it to an epic, or even create an epic through the API. At the moment, the Epics-API has no support for these basic functions (at least the documentation does not mention this).
If I look at the documentation for the Epics API, then at the moment:

We can only get all Epics for a project through the API, but not create or update one (or retrieve even a singular epic)
We can only get all stories for a project, but not all stories for an epic (or retrieve even a singular user story)
We cannot link a story to an epic when creating/updating a story

Before retiring the old stories-API.

@rvpuijenbroek Thanks you for your reply. I forwarded your suggestions to the development team! I cannot promise when they can implement these endpoints, but once these end points are added, you will find them in the documentation. I will close this issue, because as the Docs team we cannot do much at this point for this.
Thank you again. Please feel free to reach out to us if you see anything on the Docs site that needs to be improved.
Have a good weekend!


Student ui

Motivation and Context

The student experience on MarkUs has a variety of aspects that can be improved. This pull request will address some improvements that can be made, including the following:

Combining the display of marks spreadsheets and assignments in the landing page (since students need not appreciate the admin level differences in these evaluations.
Highlighting upcoming assessments before past assessments.

Your Changes

Description:

Changes to the list of assignments displayed on the home page for students.

Type of change (select all that apply):

[x] New feature (non-breaking change which adds functionality)

Testing

Questions and Comments (if applicable)

Checklist

[ ] I have performed a self-review of my own code.
[x] I have fixed any Hound bot comments.
[ ] I have verified that the TravisCI tests have passed.
[ ] I have reviewed the test coverage changes reported on Coveralls.
[x] I have added tests for my changes.
[ ] I have updated the Changelog.md file.

Required documentation changes (if applicable)

@david-yz-liu Waiting for Travis and Coveralls, but I am unsure about the tests for the upcoming method in the case the method is called from the assignment model. I covered the cases where the student is in a grouping and not in a grouping, but I did not write any tests that check for specific section due dates, because the factory setup was a little confusing. Let me know if I need to do this, then I will try tomorrow.


[FEATURE]: Enhance Longhorn RBAC from Rancher

Is your feature request related to a problem? Please describe.
Currently Longhorn is seen as an admin UI and only users that have access to the Project in Rancher can get to the Longhorn UI, and then immediately have full admin privileges.
Is your feature request related to a problem? Please describe.
It would be nice to have certain roles in place to give users different type of permissions. Those roles should be set in Rancher and will provide a user with a certain set of capabilities. Like, creating volumes, creating snapshots/backups, deleting volumes, editing settings, etc.
Describe the solution you'd like
RBAC that integrates with Rancher. So, the administrator has one central UI for managing all permissions. Those permissions then don't have to be set per Longhorn instance.

The only thing in the list that cannot be solved by implementing CSI snapshotter is editing settings, and create snapshots(since Longhorn will create backups for CSI snapshotter). But I think the normal user should have the ability to edit the setting since it's globally available.

Hi @yasker, again apologies for missing these questions. We've just spoken on slack and have concluded that implementing the CSI snapshotter would already meet most of the requirements for this. So, for the moment there is no need to further expand the scope of the current solution.


Plotting response curves for the allocation period

I need help in Plotting the simulated response curve for the entire budget allocation period
I managed to extract the values and plot the response curves and mean spend per channel by fetching the adstocked_media and decomp_media from the pareto_media_transform_matrix.csv.
However, I would like to plot the simulated response curve for the entire budget allocation period. Can you please point me towards how this can be achieved.

I have spent few weeks researching this topic and searching for help with zero results. From what I understand it is unclear how Robyn accounts for delayed and adstock effect when using longer time periods for simulation.

I am sure there must be a way since these plots are available in the output. But I am unsure how I can extract the discrete values to be able to replicate it.

You have everything in the object returned by robyn_allocator function:
I managed to recreate the plot from this data
#assuming you ran robyn_allocator function and saved the result in an 'AllocatorCollect' object
scurve = list()
scurve[['data']]  <- AllocatorCollect$plots$p3$data
scurve[['main']]  <- AllocatorCollect$mainPoints

Is this what you were after?

Thank you very much! This is what I was looking for


sched/semaphore: rework semaphore holder check for priority inheritance

Summary
Optimize semaphore holder check for priority inheritance
Impact
Should be none. Code clean-up
Testing
Passed ostest with spresense:smp with priority inheritance enabled

Just drafted changes, but really didn't have time to run ostest. I would appreciate someone helping with that.

Just drafted changes, but really didn't have time to run ostest. I would appreciate someone helping with that.

I noticed one strange thing. I tried to run spresense:smp with priority inheritance enabled and CONFIG_SEM_PREALLOCHOLDERS == 0, but the system crash on start-up. If I enable debug assertions the crash disappear and I can pass ostest. @masayuki2009 could you please take a look?

It is strange. I just rebuilt the code and can't reproduce the crash. I will do more experiments.

Just reproduced the crash
[CPU0] _assert: Current Version: NuttX  3.6.1 7b6a424c6d Apr  4 2023 10:56:00 arm
[CPU0] _assert: Assertion failed panic: at file: irq/irq_unexpectedisr.c:54 task(CPU0): CPU0 IDLE 0xd003339
[CPU0] up_dump_register: R0: 2d02bdc4 R1: 2d02bdb8 R2: 00154100  R3: 001540e0
[CPU0] up_dump_register: R4: 2d02bdb8 R5: 0d004861 R6: 00000000  FP: 00000001
[CPU0] up_dump_register: R8: 2d0298dc SB: 2d029a1c SL: 2d029a6c R11: 0d003339
[CPU0] up_dump_register: IP: 00000001 SP: 2d02bd40 LR: 0d00486f  PC: 0d0047b0
[CPU0] up_dump_register: xPSR: a1000000 BASEPRI: 00000080 CONTROL: 00000000
[CPU0] up_dump_register: EXC_RETURN: ffffffe9
[CPU0] dump_stack: IRQ Stack:
[CPU0] dump_stack: sp:     0x2d028d68
[CPU0] dump_stack:   base: 0x2d028650
[CPU0] dump_stack:   size: 00002048
[CPU0] stack_dump: 0x2d028d60: 0d003339 00000000 00000000 7474754e 00000058 00000000 00000000 00000000
[CPU0] stack_dump: 0x2d028d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[CPU0] stack_dump: 0x2d028da0: 362e3300 0000312e 00000000 00000000 00000000 62370000 32346136 64366334
[CPU0] stack_dump: 0x2d028dc0: 72704120 20342020 33323032 3a303120 303a3635 00000030 00000000 00000000
[CPU0] stack_dump: 0x2d028de0: 00000000 00000000 6d726100 00000000 00000000 00000000 00000000 00000000
[CPU0] stack_dump: 0x2d028e00: 00000000 00000000 2d0297b8 00000003 00000000 2d0298dc 2d029a1c 0d007e17
[CPU0] stack_dump: 0x2d028e20: 00000080 0d00367f 0d003669 0d00363f 00000000 0d001797 0d01cdbc 2d02bdb8
[CPU0] dump_stack: User Stack:
[CPU0] dump_stack: sp:     0x2d02bd40
[CPU0] dump_stack:   base: 0
[CPU0] dump_stack:   size: 00000000
[CPU0] dump_stack: ERROR: User Stack pointer is not within the stack
[CPU0] show_tasks:    PID GROUP   CPU PRI POLICY   TYPE    NPX STATE   EVENT      SIGMASK  STACKBASE  STACKSIZE   COMMAND
[CPU0] show_tasks:   ----   ---  ---- --- -------- ------- --- ------- ---------- -------- 0x2d028650      2048   irq

And seems like I have the steps to reproduce:

tools/configure.sh spresense:smp
make menuconfig -- and enable priority inheritance
make -j8 -- all is working now
make menuconfig -- and set CONFIG_SEM_PREALLOCHOLDERS to 0
make -j8 -- now I'm getting the crash
make clean
make -j8 -- now all is working

So it seems like some dependencies are not refreshed with make menuconfig and build system is using object files from the previous configuration. I will try to compare binaries and map files after steps 5 and 7.

Just reproduced the crash

@pkarashchenko
What version of the arm gcc are you using?

Just reproduced the crash

@pkarashchenko What version of the arm gcc are you using?

arm-none-eabi-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205

It is strange. I just rebuilt the code and can't reproduce the crash. I will do more experiments.

@pkarashchenko
I tried this PR with
--- a/boards/arm/cxd56xx/spresense/configs/smp/defconfig
+++ b/boards/arm/cxd56xx/spresense/configs/smp/defconfig
@@ -40,12 +40,14 @@ CONFIG_NSH_ARCHINIT=y
 CONFIG_NSH_BUILTIN_APPS=y
 CONFIG_NSH_READLINE=y
 CONFIG_PREALLOC_TIMERS=4
+CONFIG_PRIORITY_INHERITANCE=y
 CONFIG_RAM_SIZE=1572864
 CONFIG_RAM_START=0x0d000000
 CONFIG_READLINE_CMD_HISTORY=y
 CONFIG_RR_INTERVAL=200
 CONFIG_RTC=y
 CONFIG_RTC_DRIVER=y
+CONFIG_SEM_PREALLOCHOLDERS=0
 CONFIG_SMP=y
 CONFIG_SMP_NCPUS=2
 CONFIG_SPI=y

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (Arm GNU Toolchain 12.2.MPACBTI-Rel1 (Build arm-12-mpacbti.34)) 12.2.1 20230214
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And the ostest passed without any errors.
NuttShell (NSH) NuttX-3.6.1
nsh> uname -a
NuttX 3.6.1 7b6a424c6d-dirty Apr  4 2023 17:35:14 arm spresense
nsh> ps
  PID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK           STACK COMMAND
    0     0   0   0 FIFO     Kthread N-- Assigned<PHONE_NUMBER>000000 001000 CPU0 IDLE
    1     1   1   0 FIFO     Kthread N-- Running<PHONE_NUMBER>000000 001000 CPU1 IDLE
    3     3 --- 200 RR       Task    --- Waiting  MQ empty<PHONE_NUMBER>000000 000976 cxd56_pm_task
    4     4   0 100 RR       Task    --- Running<PHONE_NUMBER>000000 002000 spresense_main
nsh> free
                   total       used       free    largest  nused  nfree
        Umem:    1392840      15744    1377096    1374864     77      3
nsh> ostest
stdio_test: write fd=1
stdio_test: Standard I/O Check: printf
stdio_test: write fd=2
...
user_main: priority inheritance test
priority_inheritance: Started
priority_inheritance: Starting lowpri_thread-1 (of 1) at 1
priority_inheritance: Set lowpri_thread-1 priority to 1
priority_inheritance: Waiting...
lowpri_thread-1: Started
lowpri_thread-1: initial priority: 1
lowpri_thread-1: Waiting for the midle pri task to run
    g_middlestate:  0
    g_highstate[0]: 0
    I still have a count on the semaphore
lowpri_thread-1: Waiting for the midle pri task to run
    g_middlestate:  0
    g_highstate[0]: 0
    I still have a count on the semaphore
priority_inheritance: Starting medpri_thread at 99
priority_inheritance: Set medpri_thread priority to 99
priority_inheritance: Waiting...
medpri_thread: Started ... I won't let go of the CPU!
lowpri_thread-1: Sem count: 0, No. highpri thread: 0
lowpri_thread-1: SUCCESS priority before sem_post: 1
lowpri_thread-1: SUCCESS final priority: 1
lowpri_thread-1: Okay... I'm done!
priority_inheritance: Starting highpri_thread-1 (of 1) at 255
priority_inheritance: Set highpri_thread-1 priority to 255
priority_inheritance: Waiting for highpri_thread-1 to complete
highpri_thread-1: Started
highpri_thread-1: Calling sem_wait()
highpri_thread-1: SUCCESS midpri_thread is still running!
highpri_thread-1: Okay... I'm done!
priority_inheritance: Waiting for medpri_thread to complete
medpri_thread: Okay... I'm done!
priority_inheritance: Waiting for lowpri_thread-1 to complete
priority_inheritance: Restoration Test:
priority_inheritance: Task0 initial priority is:200
priority_inheritance: Task1 initial priority is:210
priority_inheritance: Waiting for Task-0 to complete
priority_inheritance: Task2 initial priority is:220
priority_inheritance: Task0 Started, waiting 0 uS to take count
priority_inheritance: Task1 Started, waiting 10000 uS to take count
priority_inheritance: Task2 Started, waiting 20000 uS to take count
priority_inheritance: Task0 Posted
priority_inheritance: Task0 priority was:200 is:200
priority_inheritance: Waiting for Task-1 to complete
priority_inheritance: Task2 Posted
priority_inheritance: Task2 priority was:220 is:220
priority_inheritance: Task1 Posted
priority_inheritance: Task1 priority was:210 is:210
priority_inheritance: Waiting for Task-2 to complete
priority_inheritance: PASSED Priority were correctly restored.
priority_inheritance: Finished

End of test memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena      1540c8   1540c8
ordblks        11       12
mxordblk   143ed8   143ed8
uordblks     8520     a828
fordblks   14bba8   1498a0

user_main: vfork() test
vfork_test: Child 94 ran successfully

Final memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena      1540c8   1540c8
ordblks         4       12
mxordblk   14b720   143ed8
uordblks     74e8     c028
fordblks   14cbe0   1480a0
user_main: Exiting
ostest_main: Exiting with status 0

@masayuki2009 seems like we have some issue with the build system. The map file generated after make menuconfig and after make clean with the sam config are different (and binaries as well)

@xiaoxiang781216 do you have any idea how we can debug this? I mean is that an issue of a build system or some interference with compiler version.

I will fill a ticket related to build problem. Anyway it is not directly related to this PR

@xiaoxiang781216 do you have any idea how we can debug this? I mean is that an issue of a build system or some interference with compiler version.

I never expect that the incremental build will work after you change config. My suggestion is always to clean and rebuild the image in this case.

Please revert https://github.com/apache/nuttx/pull/8938 and apply your change after it.

Please revert #8938 and apply your change after it.

Done

@xiaoxiang781216 do you have any idea how we can debug this? I mean is that an issue of a build system or some interference with compiler version.

I never expect that the incremental build will work after you change config. My suggestion is always to clean and rebuild the image in this case.

Ok. Makes sense. I'll close the issue. Most of the code is rebuilt because of #include <nuttx/config.h>, but there are some files that do not include it directly, so stale objects are used.

@xiaoxiang781216 please take a look if your question are answered. Thanks!

@patacongo may I get your approval on this change?

Current Version: NuttX  3.6.1

Any idea why it is happening? Seems there is some issue in our current script and sometimes when we aren't in the upstream branch it get confused.

Current Version: NuttX  3.6.1

Any idea why it is happening? Seems there is some issue in our current script and sometimes when we aren't in the upstream branch it get confused.

I have no idea, but this is what I get from building the latest master

@acassis Fetch the tags.

@pkarashchenko We ran in to an issue with an older version of the PI code and I am wondering if it exits in the latest code?
sched_lock() is not respected on a call to sem_post that reprioritizes
Causing code like following to not work
          sched_lock();
          nxsem_post(&dev->d_bfsem);   ------------>Swapped out if there is a higher priority waiter.
          ret = nxsem_wait(&dev->d_wrsem);
          sched_unlock();

Has this been fixed? If so, can you point me to the mitigation?

@davids5 I expect this to be fixed by https://github.com/apache/nuttx/pull/7464 and later optimised by https://github.com/apache/nuttx/pull/9039
But above example will be working only in non-SMP case since sched_lock()/sched_unlock() will not work if threads are running on the different cores. Or you need to add pthread_attr_setaffinity_np() for two pthreads and bind them to the same CPU.
I will prioritise addressing all comments from https://github.com/apache/nuttx-apps/pull/1711 this week as all prerequisites seems to be met.


The project file could not be loaded

VSCode Version: Code 1.7.2 (7ba55c5860b152d999dda59393ca3ebeb1b5c85f, 2016-11-21T22:06:37.428Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions: csharp

Extension
Author
Version

csharp
ms-vscode
1.5.3

Steps to Reproduce:

Open C# project with following project.json

{
  "version": "1.0.0-*",
  "buildOptions": {
    "debugType": "portable",
    "emitEntryPoint": true
  },
  "dependencies": {},
  "frameworks": {
    "netcoreapp1.0": {
      "dependencies": {
        "Microsoft.NETCore.App": {
          "type": "platform",
          "version": "1.0.0"
        }
      },
      "imports": "dnxcore50"
    }
  }
}

Start debugging and this error is presented:

     1>Project "c:\path\to\project\project.json" on node 1 (Build target(s)).
     1>MSBUILD : error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

What could possibly be wrong on row 1, position 1? File encoding issue?

Moved to OmniSharp/omnisharp-vscode#1034


Fix build

Removes unnecessary code related to ShellProcessor to support local python app.

Looks good. Merged.


Fix link

The Hugo overhaul changed so much it was just spot checked
I assume. For some reason it replaced this link badly so
this just resets the value for this particular link.
Will fix others as we find them.
Fixes #1238
Signed-off-by: John Schnake<EMAIL_ADDRESS>

@jonasrosland FYI In case you see this in other OSS sites.

It doesn't play great with the netlify preview since it isn't a relative link but this is what the old code had so I'm inclined to just merge it as is.


Make saveAll thread-safe

PgBulkInsert synchronizes the write methods for each column, but currently doesn't synchronize the writing of an entire row.  This means that, when passing a parallel stream to saveAll, writes of different rows might be interleaved with one another.
This patch factors out writing an entity into its own method, and synchronizes writes in terms of each writer, thereby making it safe to pass a parallel stream to saveAll.

Thanks for the Contribution! :+1: :+1: :+1:


Typo in 1st note

[Enter feedback here]
you use the Over-Receive field top handle should read you use the Over-Receive field to handle

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 27756a8b-eafb-abaa-c57a-737aa025f670
Version Independent ID: 936c08fc-81e2-ceee-d714-26e295e434a9
Content: How to Receive Items - Business Central
Content Source: business-central/warehouse-how-receive-items.md
Service: dynamics365-business-central
GitHub Login: @SorenGP
Microsoft Alias: sgroespe

Thank you for your feedback! This will be fixed in the next doc update.


Model Complexity：Hello, how do you measure FLOPs, Parameters, and Memory?

Hello, how do you measure FLOPs, Parameters, and Memory?

hello, you can refer to this link: https://blog.csdn.net/qq_45359549/article/details/134813792.
The memory usage: You can loop the model and record memory usage information using cmd nvidia-smi.

hello, you can refer to this link: https://blog.csdn.net/qq_45359549/article/details/134813792. The memory usage: You can loop the model and record memory usage information using cmd nvidia-smi.

Thank you for your reply.


Library Deploys Bug

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[x] Foundryup

What version of Foundry are you on?
forge 0.2.0 (fcae63a 2023-10-08T00:31:37.838144000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
Library Deploys Twice error still exists.
forge version :  forge 0.2.0 (fcae63a 2023-10-08T00:31:37.838144000Z)
source code:
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.14;

library Add{
    function addOne(uint256 num) public pure returns(uint256 outNum){
        outNum = num+1;
    }
}

// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.14;

library Reduce{
    function reduceOne(uint256 num) public pure returns(uint256 outNum){
        outNum = num-1;
    }
}

pragma solidity 0.8.14;
import "./libraries/add.sol";
import "./libraries/reduce.sol";

contract EthereumTest{
    function test(uint256 input) public pure returns(uint256 output){
        uint256 result = Add.addOne(input);
        output = Reduce.reduceOne(result);
    }
}

script:
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import "../src/ethereum/EthereumTest.sol";

contract DeployTest is Script {
    function run() external {
        uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
        vm.startBroadcast(deployerPrivateKey);

        new EthereumTest();

        vm.stopBroadcast();
    }
}

output:
###
Finding wallets for all the necessary addresses...
##
Sending transactions [0 - 2].
⠙ [00:00:00] [##########################################################################] 3/3 txes (0.0s)
Transactions saved to: /Users/zyq/Contract/Tusima/zkBridge-lightClient/contracts/broadcast/EthereumTest.s.sol/5/run-latest.json

Sensitive values saved to: /Users/zyq/Contract/Tusima/zkBridge-lightClient/contracts/cache/EthereumTest.s.sol/5/run-latest.json

##
Waiting for receipts.
⠚ [00:00:19] [######################################################################] 3/3 receipts (0.0s)
##### goerli
✅  [Success]Hash: 0x318a78911515c3e0a31fb243590bc95f9fb927b275c97294ee1c1a70fcbebe74
Contract Address: 0x22a54684a72A098c8bF475361255B185FCA37390
Block: 9835454
Paid: 0.00030402900202686 ETH (101343 gas * 3.00000002 gwei)

##### goerli
✅  [Success]Hash: 0x7e8e67bffd4c5b0877035baffc5c24d2750b38ac5b5e5b44b3a63fe326fccae3
Contract Address: 0x0755517A344160deC513193Dc75D21d25134eeB9
Block: 9835454
Paid: 0.00030338100202254 ETH (101127 gas * 3.00000002 gwei)

##### goerli
✅  [Success]Hash: 0x6f51b3f65caffdbed7f4a855d976a57784d71bc1bbac45879998ff770df76c20
Contract Address: 0x371180E01b412606A5749C70534614Eb9Ccb3347
Block: 9835454
Paid: 0.00044258700295058 ETH (147529 gas * 3.00000002 gwei)

three contract deployed, Two of them are library, details in goerli:
library Add:0x318a78911515c3e0a31fb243590bc95f9fb927b275c97294ee1c1a70fcbebe74
library Reduce: 0x7e8e67bffd4c5b0877035baffc5c24d2750b38ac5b5e5b44b3a63fe326fccae3
The only contract that should be deployed：0x6f51b3f65caffdbed7f4a855d976a57784d71bc1bbac45879998ff770df76c20

See the library functions are marked as public and not internal. Does it still deploy the libraries if they are marked as internal?

It supports public types. The issue is that with public types is that even if all functions are inlined by the linker (same as with internal), forge still sees the external functions and assumes it needs to deploy the library (public means internal and external).
This is further complicated by libraries first needing to get deployed before linking. Only way I can think of resolving this at the moment, would be to do a dry run on the linking stage and determine whether linking has any effect. If it has no effect, then we can assume the library is not needed. This is unnecessarily complex for something that can be avoided by just using internal.


Slot2input does not autofocus on page load

Despite my best efforts, slot2input does not always gather the browser's focus on page load in Chrome extension mode. In normal HTML page mode, the focus will act as expected.

According to the Google Chrome Developer's documentation on Override Pages, this is no longer possible.
More information can be found on Stack Overflow.
Closing this issue for now, in hopes Chrome re-enables this capability.


Apply go fmt

gofmt will be 100%.
https://goreportcard.com/report/github.com/bwmarrin/discordgo#gofmt

Took master branch... Please just ignore this pull-request.

Hey, I appreciate the effort all that same 😃