Allow the Subquery struct to satisfy the Field interface

It would be useful if the Subquery type could satisfy the Field interface, so that it could be used to embed subqueries in a select clause, without needing to add it to the from clause.
e.g. it would make it possible to write the following query (pulled from a project I'm working on)
SELECT
	matches.id,
	matches.date_created,
	matches.num_players,
	(select jsonb_agg(
		jsonb_build_object(
			'ID', match_users.id,
			'MatchID', match_users.match_id,
			'UserID', match_users.user_id,
			'Order', match_users.turn_order,
			'IsCreator', match_users.is_creator,
			'IsWinner', match_users.is_winner
		))
		from public.match_users where match_users.match_id = matches.id
	) as "match_users"
	FROM public.matches
        WHERE matches.id = $1;

Is there another way of doing this that I'm not aware of with this library? I don't mind reverting to plain SQL for cases like these, it would just be a nice addition to the query builder.

Ah yeah I had this use case in mind when I added Fieldf and Predicatef  (they let you convert arbitrary SQL expressions or queries into a Field or Predicate) , but now I'm not so sure whether it works with subqueries. It works with plain SELECT queries though, so you might need to check between using a subquery and a select query:
mu := MATCH_USERS()
m := MATCHES()
q := sq.
    Select(
        m.ID
        m.DATE_CREATED
        m.NUM_PLAYERS,
        sq.Fieldf("(?) as \"match_users\"", sq.
            Select(sq.Fieldf("jsonb_agg(jsonb_build_object(?))", []interface{
                "ID", mu.ID,
                "MatchID", mu.MATCH_ID,
                "UserID", mu.USER_ID,
                "Order", mu.TURN_ORDER,
                "IsCreator", mu.IS_CREATOR,
                "IsWinner", mu.IS_WINNER,
            })).
            From(mu).
            Where(mu.MATCH_ID.EqInt(m.ID)),
            // Subquery("match_users"), // <-- does changing the select query into a subquery still work?
        ),
    ).
    From(m).
    Where(m.ID.EqInt(id))

uh wait, I think the []interface{} slice expansion will not do what I expect it to do. I expect
Select(sq.Fieldf("jsonb_agg(jsonb_build_object(?))", []interface{
    "ID", mu.ID,
    "MatchID", mu.MATCH_ID,
    "UserID", mu.USER_ID,
    "Order", mu.TURN_ORDER,
    "IsCreator", mu.IS_CREATOR,
    "IsWinner", mu.IS_WINNER,
}))

to expand into
jsonb_agg(jsonb_build_object(
    $1, match_users.id,
    $2, match_users.match_id,
    $3, match_users.user_id,
    $4, match_users.turn_order,
    $5, match_users.is_creator,
    $6, match_users.is_winner
))

but looking at the code I believe it will expand into
jsonb_agg(jsonb_build_object(
    $1, $2,
    $3, $4,
    $5, $6,
    $7, $8,
    $9, $10,
    $11, $12
))

Can you confirm if this is the case?

Yep, it doesn't expand correctly. For this code:
	m := tables.MATCHES()
	mu := tables.MATCH_USERS()
	var matchTmp scrabble.Match
	var matchUsersRaw string

	err := sq.WithDefaultLog(sq.Lverbose).From(m).
		SelectRowx(func(r *sq.Row) {
			matchTmp.ID = r.Int(m.ID)
			matchTmp.DateCreated = r.Time(m.DATE_CREATED)
			matchTmp.NumPlayers = r.Int(m.NUM_PLAYERS)

			subquery := sq.
				Select(sq.Fieldf(`jsonb_agg(jsonb_build_object(?))`, []interface{}{
					"ID", mu.ID,
					"MatchID", mu.MATCH_ID,
					"UserID", mu.USER_ID,
					"Order", mu.TURN_ORDER,
					"IsCreator", mu.IS_CREATOR,
					"IsWinner", mu.IS_WINNER,
				})).
				From(mu).
				Where(mu.MATCH_ID.Eq(m.ID))

			r.ScanInto(&matchUsersRaw, sq.Fieldf(`(?) as match_users`, subquery))
		}).
		Where(m.ID.EqInt(matchID)).
		Fetch(DB)

        if err != nil {
                fmt.Println(err)
        }

I get the following terminal output:
----[ Executing query ]----
SELECT matches.id, matches.date_created, matches.num_players, (SELECT jsonb_agg(jsonb_build_object($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)) FROM public.match_users WHERE match_users.match_id = matches.id) as match_users FROM public.matches WHERE matches.id = $1 [ID match_users.id MatchID match_users.match_id UserID match_users.user_id Order match_users.turn_order IsCreator match_users.is_creator IsWinner match_users.is_winner 725]
----[ with bind values ]----
SELECT matches.id, matches.date_created, matches.num_players, (SELECT jsonb_agg(jsonb_build_object($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)) FROM public.match_users WHERE match_users.match_id = matches.id) as match_users FROM public.matches WHERE matches.id = 'ID'
2021/08/13 14:32:32 matches.go:204: [sq]
(Fetched 0 rows in 254.833µs)
sql: converting argument $2 type: unsupported type sq.NumberField, a struct

When I change the inner select query to be a .Subquery("") with the following code:
	m := tables.MATCHES()
	mu := tables.MATCH_USERS()
	var matchTmp scrabble.Match
	var matchUsersRaw string

	err := sq.WithDefaultLog(sq.Lverbose).From(m).
		SelectRowx(func(r *sq.Row) {
			matchTmp.ID = r.Int(m.ID)
			matchTmp.DateCreated = r.Time(m.DATE_CREATED)
			matchTmp.NumPlayers = r.Int(m.NUM_PLAYERS)

			subquery := sq.
				Select(sq.Fieldf(`jsonb_agg(jsonb_build_object(?))`, []interface{}{
					"ID", mu.ID,
					"MatchID", mu.MATCH_ID,
					"UserID", mu.USER_ID,
					"Order", mu.TURN_ORDER,
					"IsCreator", mu.IS_CREATOR,
					"IsWinner", mu.IS_WINNER,
				})).
				From(mu).
				Where(mu.MATCH_ID.Eq(m.ID)).
				Subquery("match_users")

			r.ScanInto(&matchUsersRaw, sq.Fieldf(`(?) as match_users`, subquery))
		}).
		Where(m.ID.EqInt(matchID)).
		Fetch(r.DB)

	if err != nil {
		fmt.Println(err)
	}

I get the following output:

----[ Executing query ]----
SELECT matches.id, matches.date_created, matches.num_players, (SELECT jsonb_agg(jsonb_build_object($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)) FROM public.match_users WHERE match_users.match_id = matches.id) as match_users FROM public.matches WHERE matches.id = $13 [ID match_users.id MatchID match_users.match_id UserID match_users.user_id Order match_users.turn_order IsCreator match_users.is_creator IsWinner match_users.is_winner 733]
----[ with bind values ]----
SELECT matches.id, matches.date_created, matches.num_players, (SELECT jsonb_agg(jsonb_build_object('ID', '{}', 'MatchID', '{}', 'UserID', '{}', 'Order', '{}', 'IsCreator', '{}', 'IsWinner', '{}')) FROM public.match_users WHERE match_users.match_id = matches.id) as match_users FROM public.matches WHERE matches.id = 733
2021/08/13 14:35:46 matches.go:205: [sq]
(Fetched 0 rows in 254.833µs)
sql: converting argument $2 type: unsupported type sq.NumberField, a struct

It seems to me that if the parameter expansion is fixed, this approach would work quite well? Definitely would deserve an addition to the docs, I think it's a relatively useful case to have explicitly documented.

Here's an approach that I've got working - it's not the prettiest, but it is quite robust. We could add a Literal type to the postgres (or mysql) package, which is just a type alias for string:
type Literal string

This is used in the node-sql library.
It could be then in queries to drop-in literal sql text - instead of assigning "ID", "MatchID", etc. as parameters, using sq.Literal indicates that these aren't user-inputs, so we can add them directly to the query without worrying about injection:
	err := sq.WithDefaultLog(sq.Lverbose).From(m).
		SelectRowx(func(r *sq.Row) {
			matchTmp.ID = r.Int(m.ID)
			matchTmp.DateCreated = r.Time(m.DATE_CREATED)
			matchTmp.NumPlayers = r.Int(m.NUM_PLAYERS)

			subquery := sq.
				Select(sq.Fieldf(`jsonb_agg(jsonb_build_object(?))`, []interface{}{
					sq.Literal(`'ID'`), mu.ID,
					sq.Literal(`'MatchID'`), mu.MATCH_ID,
					sq.Literal(`'UserID'`), mu.USER_ID,
					sq.Literal(`'Order'`), mu.TURN_ORDER,
					sq.Literal(`'IsCreator'`), mu.IS_CREATOR,
					sq.Literal(`'IsWinner'`), mu.IS_WINNER,
				})).
				From(mu).
				Where(mu.MATCH_ID.Eq(m.ID))

			r.ScanInto(&matchUsersRaw, sq.Fieldf(`(?) as match_users`, subquery))
		}).
		Where(m.ID.EqInt(matchID)).
		Fetch(r.DB)

This also allows us to simply deal with case-sensitive SQL. Then, in the appendSQLValue function in string_util.go:
type AppendSQLExcludable interface {
	AppendSQLExclude(*strings.Builder, *[]interface{}, map[string]int, []string)
}

func appendSQLValue(buf *strings.Builder, args *[]interface{}, excludedTableQualifiers []string, value interface{}) {
	switch v := value.(type) {
	case nil:
		buf.WriteString("NULL")
		return
	case AppendSQLExcludable:
		v.AppendSQLExclude(buf, args, nil, excludedTableQualifiers)
		return
	case interface {
		AppendSQL(*strings.Builder, *[]interface{}, map[string]int)
	}:
		v.AppendSQL(buf, args, nil)
		return
	}
	switch typ := reflect.TypeOf(value); typ.Kind() {
	case reflect.Slice:
		if typ.Elem().Kind() == reflect.Uint8 {
			break
		}
		s := reflect.ValueOf(value)
		if l := s.Len(); l == 0 {
			buf.WriteString("NULL")
		} else {
			for i := 0; i < l; i++ {
				if i != 0 {
					buf.WriteString(", ")
				}

				item := s.Index(i).Interface()
				switch v := item.(type) {
				case AppendSQLExcludable:
					v.AppendSQLExclude(buf, args, nil, excludedTableQualifiers)
					case Literal: {
						buf.WriteString(string(v))
					}
				default:
					buf.WriteString("?")
					*args = append(*args, item)
				}
			}
		}
		return
	}
	buf.WriteString("?")
	*args = append(*args, value)
}

With this code, the query that is generated is as follows:
SELECT matches.id, matches.date_created, matches.num_players, (SELECT jsonb_agg(jsonb_build_object('ID', match_users.id, 'MatchID', match_users.match_id, 'UserID', match_users.user_id, 'Order', match_users.turn_order, 'IsCreator', match_users.is_creator, 'IsWinner', match_users.is_winner)) FROM public.match_users WHERE match_users.match_id = matches.id) as match_users FROM public.matches WHERE matches.id = $1 [797]

yeah having to use sq.Literal() over and over is quite clunky, but at least it is explicit. I'd prefer to implement AppendSQLExclude on it though so that a special case doesn't have to be added to appendSQLValue(). Also I think SQLExcludeAppender would be more appropriate so that the other interface can logically be called SQLAppender.
type SQLExcludeAppender interface {
    AppendSQLExclude(*strings.Builder, *[]interface{}, map[string]int, []string) error
}

type SQLAppender interface {
    AppendSQL(*strings.Builder, *[]interface{}, map[string]int) error
}

type Literal string

func (l Literal) AppendSQLExclude(buf *strings.Builder, _ *[]interface{}, _ map[string]int, _ []string) error {
    buf.WriteString(string(l))
}

this means an extra case for AppendSQL should be added
item := s.Index(i).Interface()
switch v := item.(type) {
case SQLExcludeAppender: // <- sq.Literal would fall into this case
    v.AppendSQLExclude(buf, args, nil, excludedTableQualifiers)
case SQLAppender:
    v.AppendSQL(buf, args, nil)
default:
    buf.WriteString("?")
    *args = append(*args, item)
}

Additionally I propose adding a new method (*Row).ScanJSON to handle json-unmarshalable structs, so that JSON results don't have to be held in raw byte slices first before being unmarshaled into a struct:
func (r *Row) ScanJSON(dest interface{}, field Field) {
    if r.rows == nil {
        var b []byte
        r.fields = append(r.fields, field)
        r.dest = append(r.dest, &b)
        return
    }
    bptr := r.dest[r.index].(*[]byte)
    err := json.Unmarshal(*bptr, dest)
    if err != nil {
        // collect caller info because it is quite possible the unmarshalling
        // may fail due to user error, and we want the user to know which line
        // caused it
        _, file, line, _ := runtime.Caller(1)
        panic(fmt.Errorf("%s:%d unmarshaling json '%s' into %T: %w", file, line, string(b), dest, err))
    }
    r.index++
}

// used like this
func(r *Row) {
    r.ScanJSON(&matchUsers, sq.Fieldf(`(?) as match_users`, subquery))
}

What do you think?
side note 1: I'm slightly concerned that the VerboseLogger doesn't seem to be interpolating the values in your first SelectQuery example, and only works if the SelectQuery is converted into a Subquery. But that's just a cosmetic level issue so I'm not touching it yet.
side note 2: node-sql is very similar in spirit to sq, and that examples page is really good. Are you using it as well?

I really like the new additions, especially ScanJSON. Is the intention of including the SQLAppender that the subquery object in your last example would be the sq.Subquery type? I think that would be a pretty clean way of doing it.
Are we sure we want to export the two new interfaces? I think while we're at it, it probably makes sense to nest these two interfaces  into the existing interfaces which require the AppendSQL and AppendSQLExclude methods, so that there's one source of truth for those functions' signatures.
It might be worth adding a helper to facilitate building the arguments list to jsonb_build_object, since the sq.Literal type is a bit clunky. However, I think for now the sq.Literal approach better conforms to good Go patterns, choosing to be more explicit but verbose. Maybe through using the new additions to the library, a helper function will eventually become obvious, but my instinct is to not try and add it right now.
I use node-sql for my job! Or a slightly bastardized version, at least. Our DB schema changes relatively frequently, and there's lots of columns to remember, so I find that code generation + query builder is a really excellent combo for a good DX. Obviously the same sort of dynamically typed nonsense isn't possible in Go, but I started using your library since it has all the same benefits, plus the struct mapper is awesome, especially for keeping the domain types free of any struct tags.

It might be worth adding a helper to facilitate building the arguments list to jsonb_build_object

You could write a custom []interface{} type that implements AppendSQL or AppendSQLExclude, which does the logic of literally interpolating the values. something like
type MyValues []interface{} // idk what to call it. InterpolatedValues? too clunky to write

func (values MyValues) AppendSQLExclude(...) error {
    for i, value := range values {
        if i != 0 {
            buf.WriteString(", ")
        }
        switch v := value.(type) {
        case SQLExcludeAppender:
            err = v.AppendSQLExclude(...)
        case SQLAppender:
            err = v.AppendSQL(...)
        default:
            buf.WriteString(interpolateSQLValue(value))
        }
    }
}

// and then used like
sq.Fieldf(`jsonb_agg(jsonb_build_object(?))`, MyValues{
    "ID", mu.ID,
    "MatchID", mu.MATCH_ID,
    "UserID", mu.USER_ID,
    "Order", mu.TURN_ORDER,
    "IsCreator", mu.IS_CREATOR,
    "IsWinner", mu.IS_WINNER,
})

which should hopefully give
jsonb_agg(jsonb_build_object(
    'ID', match_users.id,
    'MatchID', match_users.match_id,
    'UserID', match_users.user_id,
    'Order', match_users.turn_order,
    'IsCreator', match_users.is_creator,
    'IsWinner', match_users.is_winner
))

This type can be defined in the application, though. I don't know if it should be defined in the library yet, because it is slightly unsafe if the inputs aren't trusted.

That looks like it'd work! I think for now best to leave it out. Does the PR look good to merge?

oh I didn't notice it was up, closing


How to set contour-specific-ingress-annotations

where the https://github.com/heptio/contour/blob/master/docs/annotations.md#contour-specific-ingress-annotations should be set, in each ingress or contour deployment?
and btw thanks for the contour, really awesome product, it works very well together with cert-manager 👍

Ingress annotations go on the ingress object.

On 9 Apr 2018, at 01:58, Rimas Mocevicius<EMAIL_ADDRESS>wrote:
where the https://github.com/heptio/contour/blob/master/docs/annotations.md#contour-specific-ingress-annotations should be set, in each ingress or contour deployment?
and btw thanks for the contour, really awesome product, it works very well together with cert-manager 👍
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Closing, answered.

hmm, thought that too, but still getting timeouts

Can you give me some more information? What annotations are you using? Can you attach the ingress and service documents you applied.

Copied from my helm chart, app's service:
apiVersion: v1
kind: Service
metadata:
  name: {{ template "fullname" . }}
  labels:
    app: {{ template "fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
spec:
  ports:
  - name: app1
    port: 8069
    targetPort: 8069
  selector:
    app: {{ template "fullname" . }}

apps' ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: {{ template "fullname" . }}
  annotations:
    kubernetes.io/ingress.class: "contour"
    kubernetes.io/tls-acme: "true"
    ingress.kubernetes.io/force-ssl-redirect: "true"
    certmanager.k8s.io/cluster-issuer: "letsencrypt-prod"
    contour.heptio.com/request-timeout: "15m"
spec:
  rules:
{{- if .Values.domain.www }}
  - host: www.{{ .Values.domain.host }}
{{- else }}
  - host: {{ .Values.domain.host }}
{{- end }}
    http:
      paths:
      - path: /
        backend:
          serviceName: {{ template "fullname" . }}
          servicePort: 8069
  tls:
    - hosts:
      {{- if .Values.domain.www }}
        - www.{{ .Values.domain.host }}
      {{- else }}
        - {{ .Values.domain.host }}
      {{- end }}
      secretName: {{ template "fullname" . }}-tls

Are you able to show me the -o yaml output of the object that's applied?

sure:
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    annotations:
      certmanager.k8s.io/cluster-issuer: letsencrypt-prod
      contour.heptio.com/request-timeout: 15m
      ingress.kubernetes.io/force-ssl-redirect: "true"
      kubernetes.io/ingress.class: contour
      kubernetes.io/tls-acme: "true"
    name: host1-app-v11
    namespace: host1-app
  spec:
    rules:
    - host: host1-app.eu
      http:
        paths:
        - backend:
            serviceName: host1-app-v11
            servicePort: 8069
          path: /
    tls:
    - hosts:
      - host1.domain.eu
      secretName: host1-app-v11-tls
  status:
    loadBalancer:
      ingress:
      - ip: x.x.x.x
      - ip: x.x.x.x
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

rename app related names and took IPs' off

the website works just fine, Lets Encrypt certificate has been issued too, when I try to upload a big backup file then I get the timeout error.

Thank you for clarifying, I have updated the issue description to capture this.

Non-essential for closing out IngressRoute work, moving to 0.7.0

Hey @rimusz do you know what operation you are doing to upload? I'm having troubles recreating the issue.
For my test, I started a simple owncloud (https://owncloud.org/) pod and uploaded a 1gb file which took a few minutes. Not sure if it's splitting up files though.

been testing some app awhile ago, need to check it out with contour v0.7

Thanks. Please test with 0.7 and update the ticket with what you discover.
On 26 October 2018 at 20:11, Rimas Mocevicius<EMAIL_ADDRESS>wrote:

been testing some app awhile ago, need to check it out with contour v0.7
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/heptio/contour/issues/318#issuecomment-433342181, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcAzhuVPPqeg5QUK7CpgorkN1cylloks5uotHGgaJpZM4TLl39
.

I'm going to close this bug as answered. Please feel free to reopen it if the latest release of contour has not solved the problem.


Don't return garbage events from peek_events

SDL_PeepEvents returns the number of events it put in the buffer, which is
usually less than max_amount.

Nice one.


Automate commenting on issues when they are cherrypicked to a release channel

Would be nice if cocoon monitored github webhooks on pushing commits to release branches, and commented to each issue affected the version that it had been merged in.
To get this, we would likely need to track issues in flutter conductor (right now it tracks the commits of the fix.

cc @yjbanov

Triaged: This is still a requested feature.

This work is a backlog item.


Passing through PCI device

I am attempting to passthrough iGPU using Terraform and Telmate provider.  I need the equivalent of this screen shot.

When I pass through manually, it works, when I pass through using args in terraform file like this, it does not work:
args = "-device vfio-pci,host=00:02.0,x-vga=off"
I did not see much in the doc on how to do this. Does Telmate support this?

@braucktoon yeah the pcie isn't that well supported. There are plans to overhaul it in the library we use to talk to PVE proxmox-api-go, as the datastructure of the library does not match with PVE.

I am also struggling to get this working


[DevOps] Prepate testing environment for DAO bot

Test environment is configured, for access, please contact project maintainers.


fix ssh

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.86%. Comparing base (116b3da) to head (257a776).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #55   +/-   ##
========================================
  Coverage    71.86%   71.86%
========================================
  Files            7        7
  Lines          263      263
========================================
  Hits           189      189
  Misses          74       74

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[FEATURE] Comments and code blocks should use light theme when theme is light

Mostly done in bcadfdd
A bug on http://jessewei.dev/posts/setup_site/#syntax-highlighting-via-chroma light mode

Not fixed when commenting out the line in assets/css/extended/custom.css.

There's also this

Scrollbar looks a bit weird in safari dark mode when website theme is light but this seems to be a PaperMod thing


Limit stack traces

The DefaultCasDelegatingWebflowEventResolver generates full stack traces at the WARN level which pollutes the logs with no real value.
For an authentication failed, there is already a log from the PolicyBasedAuthenticationManager for example:
2019-12-03 08:54:45,004 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [UsernamePasswordCredential(username=non, source=null, customFields={})] of type [UsernamePasswordCredential]. Examine the configuration to ensure a method of authentication is defined and analyze CAS logs at DEBUG level to trace the authentication event.>
2019-12-03 08:54:45,011 WARN [org.apereo.cas.web.flow.resolver.impl.DefaultCasDelegatingWebflowEventResolver] - <1 errors, 0 successes>
org.apereo.cas.authentication.AuthenticationException: 1 errors, 0 successes
	at org.apereo.cas.authentication.PolicyBasedAuthenticationManager.evaluateFinalAuthentication(PolicyBasedAuthenticationManager.java:350) ~[cas-server-core-authentication-api-6.2.0-SNAPSHOT.jar:6.2.0-SNAPSHOT]
	at org.apereo.cas.authentication.PolicyBasedAuthenticationManager.authenticateInternal(PolicyBasedAuthenticationManager.java:328) ~[cas-server-core-authentication-api-6.2.0-SNAPSHOT.jar:6.2.0-SNAPSHOT]
	at org.apereo.cas.authentication.PolicyBasedAuthenticationManager.authenticate(PolicyBasedAuthenticationManager.java:136) ~[cas-server-core-authentication-api-6.2.0-SNAPSHOT.jar:6.2.0-SNAPSHOT]
...

So my proposal is to keep that kind of stack traces at the DEBUG level and be less verbose at the WARN level.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 All committers have signed the CLA.


Flash Attention Support for Pytorch 2.3

Hi! Wondering if there were any plans on building wheels for pytorch 2.3. As of right now pip installing will cause us to have to build from source, which is extremely slow with limited hardware.

i don't think it's out?

Sorry -- pytorch nightly

Sure, do you want to send a PR?

yup!

@tridao mind linking an example pytorch bump PR?

https://github.com/Dao-AILab/flash-attention/commit/43ceab630bc6c27712428da5a33fc9cb5c369d91

@j316chuck @KuuCi -- sorry for preempting you with a PR https://github.com/Dao-AILab/flash-attention/pull/793 but we recently started using PyTorch 2.3 and our Docker builds / pip installs for flash-attention went from seconds to more than an hour.


MLSIM V2

Seems to have trouble with rolling hills. When going over rolling hills the path lifts up off the road like it doesn’t know how to follow the hill. This results in pretty poor lateral performance, especially if there’s curves on the rolling hills. Noticed this behavior a little with mlsim v1, but is much more apparent on mlsim v2

Fully trained model coming later today. This model is only trained to 25% which explains the behavior in complex situations like hills, turns, etc.

Yep, latest update is significantly better. It does seem to want to cut in on curves pretty bad though. Had a couple hill crests where it felt like it wanted to go off the road as well, but that isn’t necessarily a new issue

Latest version seems to have resolved the worst of the cutting. Still cuts a bit more than other models, but only went over the line a couple times on my latest drive vs nearly every curve on my previous comment. Noticed some occasional odd behavior like floating towards the center line. Overall though I have enough confidence in this version to not bother with reverting back to mlsim_v1


Please consider to make ipyc.exe can compile Python code to .NET 5 dll?

Hello everyone
According to a question that I asked in IronPython users mailing and answers from Stéphane Lozier and Markus SchaberSep which are very useful.
I have a use case that business logic is written in Python code and my website is ASP.NET Core MVC.
Therefore, it would be nice if I can use ipyc.exe to compile Python code to dll and use it in my .NET Core project and deploy to a Linux server.
From Markus SchaberSep answer, would IronPython team consider to implement a new ipyc with Roslyn and make output dll target .NET 5 or a newer version?
Thank you.

Does Roslyn support emitting IL and compiling lambdas into assemblies?


Bug - Always Redirects To Home Page

Hi! Thanks for making this plugin. I am having some small issues getting it to work though.
I think I have configured it according to the docs, but now whenever I enter a non-homepage route into the address bar it always redirects to the home page (it should just go to the non-page route)
Here's what I did:

set error page to "index.html" in the s3 bucket
redirect 400, 403, and 404 errors to "index.html" in cloudfront
install the s3 plugin and add it to gatsby-config.js with my bucket name.

Then I deployed with the special gatsby command: "gatsby-plugin-s3 deploy --yes"
Interestingly, it spit out a url that does work correctly when I try to go to other pages:
http://aaa-evaluates2-site-production.s3-website-us-east-1.amazonaws.com
With AWS Route53 I am pointing a domain name to this cloudfront url.
https://evaluates2.com
So that's my issue- it works with the cloudfront url and not with the real domain. It there something extra I am missing to get it working with the real domain?
Thanks!
PS. unfortunately, the code for this site is private and I can't show it.

I also started a thread about this here: https://spectrum.chat/gatsby-js/general/router-pages-not-working-properly-on-hosted-gatsby-site~15b33397-e5e6-44c5-8846-c2e3e0d8a8ff
thanks

I'm not really sure what's going on here, but it doesn't look like it's an issue with CloudFront/S3 to me. When I request https://evaluates2.com/engineering I get a 200 response, no redirect. The redirect appears to happen in JavaScript, but I can't work out why.

Hi @JoshuaWalsh, thanks so much for getting back to me. Apart from a few strings changed, this is what's in my gatsby-config.js file:
require('dotenv').config({
  path: `.env.development`,
});

module.exports = {
  siteMetadata: {
    title: `Derp`,
    description: `Derp`,
    author: `Jimbo`,
    url: `https://derpsauce.com`,
  },
  plugins: [
    `gatsby-transformer-json`,
    {
      resolve: `gatsby-plugin-create-client-paths`,
      options: { prefixes: [`/team/*`] },
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `json`,
        path: `${__dirname}/src/data`,
      },
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `images`,
        path: `${__dirname}/src/images`,
      },
    },
    `gatsby-plugin-react-helmet`,
    `gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: `gatsby-starter-default`,
        short_name: `starter`,
        start_url: `/`,
        background_color: `#663399`,
        theme_color: `#663399`,
        display: `minimal-ui`,
        icon: `src/data/logo.png`, // This path is relative to the root of the site.
      },
    },
    'gatsby-plugin-emotion',
    `gatsby-plugin-styled-components`,
    {
      resolve: `gatsby-plugin-s3`,
      options: {
        bucketName: 'aaa-jimbos-bucket',
      },
    },
    // this (optional) plugin enables Progressive Web App + Offline functionality
    // To learn more, visit: https://gatsby.app/offline
    // 'gatsby-plugin-offline',
  ],
};

Oh duh, it is probably because I don't have protocol and hostname in the gatsby-plugin-s3 options up here! 🤦♂

@JoshuaWalsh I added protocol and hostname, but it still doesn't work. My new gatsby-config.js:

(Sorry, thought it was fixed but it's actually not)

@JoshuaWalsh is there maybe some other options param I am missing? Thanks

^ This is my route53 config

^ This is my cloudfront re-routing

It would be great if someone could help me out on this. Thanks

@JoshuaWalsh Should I need to change anything in
gatsby-browser.js, gatsby-node.js, or gatsby-ssr.js

So, a few observations.

S3 should serve the correct 404 error page already, there's no need for the additional cloudfront error pages. You can remove all of them.
Also, just as an FYI, returning 200 when a 404 has occurred is considered pretty bad practice.
The redirect does happen client side, but this is only because cloudfront is serving the index page
DNS records are public, not sure why you censored them.
What does your origin look like?
It should use the static website endpoint (http://aaa-evaluates2-site-production.s3-website-us-east-1.amazonaws.com/) as a custom origin, and not the S3 bucket (they are different things).
If it says 'S3 Origin', then delete it and add a new custom origin with the aforementioned static site endpoint.

Also, kindly refrain from posting multiple comments after eachother, it clutters my email inbox and this thread.

Ah, Jari is correct about the clientside redirect being caused by the index page being served. So the issue is definitely with your CloudFront+S3 setup.
We have a tutorial for how to set up CloudFront+S3 correctly here.

The problem definitely is in the CF setup, and not the code.

@jariz @JoshuaWalsh
Thank you for getting back to me, but @jariz as I said I ALREADY TRIED THAT.
I just removed the cloudfront error redirects, but indeed it still not NOT work. evaluates2.com/page-2 is still redirecting to the home page.
@jariz I don't know what you mean by "my" origin, but yes that is the static endpoint (http://aaa-evaluates2-site-production.s3-website-us-east-1.amazonaws.com/). As I said before, it does work properly when you enter  http://aaa-evaluates2-site-production.s3-website-us-east-1.amazonaws.com/page-2
I understand that you guys are busy, but this is a very urgent issue for us.
PS. Has anyone actually used this plugin with a real domain name before releasing it into the world?

@jariz Can you recommend anything else for me to change in the CF setup?
I am now back to being completely stuck...

https://evaluates2.com/page-2/ ~is~ was returning a 403 so I'm still pretty convinced there's something wrong with your origin settings or your permission settings in S3.
What I mean with "your" origin is the origins tab in the CF config; it should look like something along the lines of

Additionally, check if your bucket is set to public.

Has anyone actually used this plugin with a real domain name before releasing it into the world?

I personally have this plugin running in multiple pretty large projects that utilise a wide range of the plugin's features.
Gonna close this now because it's not really relevant to the plugin itself.

@jariz For Origin Type mine says "S3 Origin", not "Custom Origin" like yours... Can you screenshot when it looks like when you hit Edit?
What am I supposed to change here? I am using the default one from cloufront, but it seems like you had to make some customizations.
And JFC, is this is the docs anywhere??????

Like I said earlier, it shouldn't say "S3 origin".
When editing, don't use the dropdown and enter aaa-evaluates2-site-production.s3-website-us-east-1.amazonaws.com as the domain. (notice the .s3-website-` part in this domain)
Here's a screenshot (but it's basically the same screen as you should see yourself when editing now)

And JFC, is this is the docs anywhere??????

"In order for all the features of your site to work correctly, you must instead use your S3 bucket's Static Website Hosting Endpoint as the CloudFront origin. "

Thanks @jariz.
Still doesn't work though.
I changed it to say exatly this (aaa-evaluates2-site-production.s3-website-us-east-1.amazonaws.com), but I still get the exact same behavior...

It does on my side though?

Could be that your CF edge location is serving a old version.
Also, it would have been nice if you didn't ignore me for 3 days...

Sorry to be a douche @JoshuaWalsh @jariz but this has been super frustrating and unpleasant for us.
Thanks though!

I've mentioned all this previously already a couple hours ago but you chose to ignore it.
As for the timeframe, we're volunteers and not part of the gatsby team.
A word of advice: other people might not be as patient as me when you're responding to them like this on a OSS repo.

Sorry to be a douche JoshuaWalsh jariz but this has been super frustrating and unpleasant for us.

This has also been the least pleasant experience that I've had in open source. I'm a consultant and even my paying customers are only guaranteed a response within 24 hours. If you re-read this conversation you will see that we have been nothing but helpful and polite, while you have abused us and insulted our project. It's not just that your words have been rude, but the fact that you continued double-posting even after we both asked you to stop is a huge breach of internet etiquette.

ok it's finally working. jesus god damn christmas trees, you need to make the docs more clear...

I'm not really sure how much clearer we can make it, we have a tutorial that works perfectly if you read it and follow it, including two paragraphs explaining why you need to use a Custom Origin instead of an S3 Origin.
Additionally, Jari specifically told you to check this in his first reply, and instead of following his advice (which later fixed your problem) you sent a snarky reply.
It doesn't matter how good our docs are if you don't read them.
Learn some manners.

+1 @JoshuaWalsh


Tags cannot be removed by Finder

This is a really nice program, but it has a little glitch in the examples:
When tags are set programmatically, they cannot be reset by editing tags in Finder.
Why?
Finder uses Upper case tag names, mac_tag.py uses lowercase.
You should update your examples to use Uppercase and put a note into the
description that this is a Finder-inconsequence that it shows the tags ignoring
the case, but fails to remove a lowercase attribute.

thx. examples updated


ColorField to get de-focused on submit (post enter key press)

🙋 Feature Request
When user is done modifying value in ColorField and enter is pressed to submit it then highlighting (blue border) of ColorFiled should be turned off but keyboard focus should be on it only, i.e. when TAB is pressed then focus should move to next element.

🤔 Expected Behavior
Blue color border should be turned off when enter is pressed i.e. onSubmit

😯 Current Behavior
Blue color border is not turned off when enter is pressed i.e. onSubmit

💁 Possible Solution

🔦 Context
As part of Adobe Color we are providing Color-Picker component which is integrated in CC Web Canvas (https://stage.creativecloud.adobe.com/cc/canvas), for all elements as on canvas this behaviour can be observed.
We want to provide consistency in behaviour.

💻 Examples
Expected SS

Current SS

🧢 Your Company/Team
Adobe Color

🎁 Tracking Ticket (optional)

I believe your example is an accessibility violation. Focus must be visible at all times for keyboard users. See https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html

Hey. This has been discussed with Adobe Color PM/design and they want it fixed.

Hey. This has been discussed with Adobe Color PM/design and they want this feature.

We should not implement a behavior that violates a WCAG accessibility requirement. When the user is interacting using the keyboard, the focus ring must be visible. It sounds like design is looking for some visual confirmation that a the value has been submitted. ColorField and NumberField support validationState, could we use that to confirm valid input, without removing the focus ring from a field that still has focus.


Getting NaN Error

i keep getting this error on Edge browser
But i dont get it on chrome

Hi @Kolajosh, please help with more information as the details you have provided do not help me replicate the issue.


[Feature request]: im using godot 3.6

What is your idea?
please make it for version godot 3.6 or below
Additional information
No response

Not planned at all because it works completely different. It has gdnative not gdextension. For that please use another plugin in the asset store or upgrade you Godot Engine version. Because this is the only plugin for 4.X out there i have enough work with it already in my freetime.


Changes required by the refactoring of AbstractMessageChannelBinder

Merge after https://github.com/spring-cloud/spring-cloud-stream/pull/624

LGTM; merged


Fix for an intermittently failing integration test

Signed-off-by: Dmitri Dolguikh<EMAIL_ADDRESS>This is  fix for intermittent failures in a vhds_integration_test: VhdsVirtualHostAddUpdateRemove.
Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

ping @htuch, @mattklein123.

@dmitri-d can you describe the testing you did to validate that this is no longer flaking? Did you use --runs_per_test=... or the like and see an improvement.

@htuch:  I used --runs_per_test=10 and --runs_per_test=20 10-15 times with no failures. Before the fix there would be 1 failure every 10 runs or so. I haven't seen any failures with the fix applied.


docs: update docs to add an ENV var

As of #8062, the desktop/mobile-specific config files have been consolidated
into the src/config.ts file
Add note to type a new sharify addition

cc/ @sonecabr @dzucconi

Thank you for the doc update!


Query string in raw access are being formatted to lowercase?

Describe the bug
I'm trying to use a raw access with the following query:
var result = await session.dbNext.unsafeQueryMappedResults(
  session,
  r"SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (PARTITION BY call_simulation_test.userId ORDER BY call_simulation_test.createdAt DESC) AS row_num FROM call_simulation_test ) AS latest_tests WHERE row_num = 1",
);

Serverpod is throwing this error:
PostgreSQLSeverity.error 42703: column call_simulation_test.createdat does not exist Hint: Perhaps you meant to reference the column "call_simulation_test.createdAt".

Tried to use raw string literal as well. Is there something wrong with my query or is it something else?
Expected behavior
Results should be returned if there is.
Serverpod versions
Serverpod version: 1.2.5
Platform information
Platform: Web
Server runs locally in Windows
Additional context
Add any other context about the problem here.

Okay i think it's not an issue. For new developers like me this is quite overwhelming. So it needs to be like this:
SELECT *
FROM (
    SELECT *,
           ROW_NUMBER() OVER (PARTITION BY call_simulation_test."userId"  ORDER BY call_simulation_test."createdAt"  DESC) AS row_num
    FROM call_simulation_test
) AS latest_tests
WHERE row_num = 1;

the postgres returning is quite confusing


IOS / Webkit Support

Is it possible that an IOS support will be introduced? Basically everything works except for adjusting the map size. It would be great if this is somehow integrated. Personally, it would be enough for me if there was a menu item in which I could customize the following CSS code. (height is enough)

Afaik this was raised in https://github.com/exodus4d/pathfinder/issues/942 - but we (the current maintainers) don't use iOS so debugging and/or solving it is problematic.
If someone feel like doing a PR however, I don't see any good reason to not merge it.


Feedback for: machine/get-started.md

URL: https://docs.docker.com/machine/get-started.md
Under the section, "If you are using Docker for Windows"
The first line mentions:

Docker for Windows uses Microsoft Hyper-V for virtualization, and Hyper-V and Oracle VirtualBox are incompatible

Is there a typo error? Because Hyper-V for virtualization and Hyper-V seems to be pointing to the same thing.
.

@engcheng I can't repro there being more than one link. Which browser are you using?

@johndmulhausen thanks for feedback. I'm using Firefox 45.4.0 on Linux 64 bits.
The url with typo which I'm referring to can be traced in the following sequence:

Get started with Docker Machine and a local VM
Prerequisite Information
If you are using Docker for Windows
Line 1

I've also attached a screenshot for further clarity in PicPaste
Hope its clearer now.

Thanks, @engcheng that does help, especially the screenshot. :)
So by "point to the same thing" you don't mean that there are two Hyper-V links pointing to the same thing, you mean that "Hyper-V" is being used twice in this sentence and it is not clear why, correct?

yes @johndmulhausen
If we break the statement into 2 parts,
First, it mentions: "Docker for Windows uses Microsoft Hyper-V for virtualization"
Then, followed by "and Hyper-V and Oracle VirtualBox are incompatible"
Substituting the product name by symbols, "Docker for Windows uses A for virtualization, and A and B are incompatible". Thus it creates an impression A is both compatible and incompatible.
Think I get it. The first statement is stating what works. The second statement is saying what don't work, right?
If that's the case, perhaps may I suggest:

it may be clearer to state that Hyper-V needs to be the only hypervisor.
reword using however. "Docker for Windows uses A for virtualization. However, A and B are incompatible. Therefore, you cannot run the two solutions simultaneously.".

Do you think its clearer? Thanks for taking time to enlighten :smile:

I think I might understand this. You can't use Hyper-V with VirtualBox because they are incompatible. There are not enough specific nouns used in the sentence. Let me take a stab at this.

@engcheng PTAL at #256


src: fix spelling in TypeScript files

Fixed some typos in code comments

@microsoft-github-policy-service agree

Please see guidance at https://github.com/microsoft/vscode/wiki/How-to-Contribute#spell-check-errors


updated resolution filters for 4k

updated 4k resolution filter, based on various formats as per https://en.wikipedia.org/wiki/4K_resolution

thx.
Please use always the "devel" branch for developing/pushing.
But since we are always returning the same 4k resolution, it is imho not needed to speicfy all the formats on it's own. Since we do only a <= comparison, just the max values for 4k might be sufficent?
So  (w <= blur(4096) && h <= blur(2160)) should do the trick as well?!

it shall do the trick, but I'd rather stick to predefined/known formats and
handle every other size separately as per users' request
On Mon, Jul 17, 2017 at 1:50 AM, Myron<EMAIL_ADDRESS>wrote:

thx.
Please use always the "devel" branch for developing/pushing.
But since we are always returning the same 4k resolution, it is imho not
needed to speicfy all the formats on it's own. Since we do only a <=
comparison, just the max values for 4k might be sufficent?
So (w <= blur(4096) && h <= blur(2160)) should do the trick as well?!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tinyMediaManager/tinyMediaManager/pull/170#issuecomment-315679038,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATixWY2s5ER2BCmZFIex3HxVb5JJUj8fks5sOwROgaJpZM4OY6XK
.

please close this PR and re-create it against the devel branch.
we won't merge directly into master


Codeunit 90 new event on procedure InsertReturnShipmentLine

Hi,
We need a new event on Codeunit 90 procedure InsertReturnShipmentLine :
...

        if (PurchLine.Type = PurchLine.Type::Item) and (PurchLine."Return Qty. to Ship" <> 0) then begin
            // > New event
            CAGNA_OnInsertReturnShipmentLineOnBeforeProcessWhseShipWhseReceive(xPurchLine, ReturnShptHeader, ReturnShptLine, WhseShip, WhseReceive);
            // < New event
            if WhseShip then
                CreatePostedWhseShptLine(PurchLine, ReturnShptLine);

            if WhseReceive then
                CreatePostedRcptLine(PurchLine, ReturnShptLine);

....

[IntegrationEvent(false, false)]
    local procedure OnInsertReturnShipmentLineOnBeforeProcessWhseShipWhseReceive(xPurchLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; WhseShip: boolean; WhseReceive: Boolean)
    begin
    end;

..

We will add 2 missing params to OnInsertReturnShipmentLineOnAfterReturnShptLineInit instead, you can use that

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


How should I create a blank slide

How should I create a blank slide? I did not find any methods related to creating a new slide.
If I use
var pres = SCPresentation.Create();
var slide = pres.Slides[0];

to get a slide and then add it to the PowerPoint using pres.Slides.Add(slide), all the pages are references to the same slide, and I cannot set each slide independently. So my question is how to create a blank slide.

sorry i found :
var slide = ppt.Slides.AddEmptySlide(SCSlideLayoutType.Blank);


clarify : how to pass arguments to new Headers.append  .set

i want to construct headers for fetch (v3.1) all goes well if i pass an obj {'key':'value'} but not if i do from a  variable
Example Code

import {Headers} from 'node-fetch';
const headers = new Headers()
const headers_default=['referer:somesite.com', 'key1:value1']
headers.append(headers_defaults)

Expected behavior, if applicable
how to get headers as {'referer':'somesite.com'  }?
A clear and concise description of what you expected to happen.
what i miss?
Environment

software
version

node-fetch
3.1

node
14.1

npm
8.1

Operating System
ubuntu

headers takes either a 2D array or an object, not a flat array...
new Headers([
  ['referer:somesite.com', 'key1:value1'],
  ['content-type': 'text/plain']
])


Add clock as controler in visual stuido  toolbox

Issue Type

[ ] Bug Report
[ ] Feature Request
[ ] Sample request
[ ] Documentation issue or request
[ ] Other – Please describe:
UserVoice link

Current Behavior

Expected Behavior

Steps to Reproduce (for bugs)

Your Environment

SDK #:
Operating System build # :
Visual Studio Version # :

من مهدی هستم


File working in demo - excluding features in JSON file

Hey there - We are working on an animation for an app and we have the animation working and rendering correctly. We have tested it in the demo and see it all loading, however when we pass it over to the developer it is cutting out a certain layer. The logo isn't fully loading and missing two features, an eye and a beak on the store front. I've attached the zip file of the After Effects file and the screenshot of what our developer sends back.
We believe there is an issue with layer: CFA logo/Drive-Thru Illo Outlines 2
Can someone please take a look and let us know what issue we are having? Thank you!
CFA AEP and Screenshot.zip

Also, please take a look at “Car loop 01”composition 28 seconds long

@mlmaloney hi, I'm exporting the animation and it seems to work fine.
Can you share a link where it is failing?

Hey yes, correct. From our side we are seeing it work great but when we send it to the development team it's getting cut off. Screenshot attached to show what they see.

I see, if it's failing using Lottie, you should contact them directly and attach the .aep.
They'll have a better idea of what might be wrong.
https://github.com/airbnb/lottie-android

Hi again,
I am working with mlmaloney, this is the problem layer (json file attached) we are recieving back from the development team. Can you decipher what to change/ remove in the After Effects file I have attached?
Drive thru_building only.aep 4.zip
problemLayer.json.zip

Does it fail on ios or on the web?

it's failing on ios


Add forking and PR instructions to the README.

I've added simple instructions to fork the repo, manage changes, and submit a PR.
I wonder—are these sitting in a good place in the file, or should we move them after the dev environment setup content. lmk!
Fixes #26

@gino-m I've hopefully resolved all of your comments. Left one unresolved for you to take a look at. lmk what you think!

I'll copy this content over to the other repo too, once it's good to go. 👍


php and javascript mixed breaks the highlighting of the editor

Prerequisites

[ ] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
If I have a php- or phtml-file with a script-tag, where I enter some php-code. The editor-highlighting becomes wrong after this php-Statement
Steps to Reproduce

create a php-file
write some HTML
create a script-tag
write a php-tag inside of this script-tag
the HTML after this php-tag is all wrong highlighted

Expected behavior: The Code after the php-inside-the-script-tag is highlighted normal

Actual behavior: The Code after the php-inside-the-script-tag is all black and red

Reproduces how often: 100%
Versions
Atom    : 1.12.9
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0
apm  1.12.9
npm  3.10.5
node 4.4.5
python 2.7.12
git 2.7.4
Additional Information
Ubuntu Gnome
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release:	16.04
Codename: xenial
Kernel: 4.4.0-57-generic

This has been fixed in Atom 1.13, currently in beta.


Add support for EvoHome - EvoHomeController (ramses:EvoHomeController)

Device information

Reported by @wzwart76.
Device details

Hub: Somfy TaHoma

2021-03-15 20:48:52 DEBUG (MainThread) [custom_components.tahoma] Unsupported device detected (ramses:EvoHomeController - EvoHome - EvoHomeController - ramses://xxxx-xxxx-xxxx/xxxxxx/xxx#1)

Device commands
{
	"commands": [{
		"commandName": "setOperatingMode",
		"nparams": 2
	}],
	"states": [{
		"values": ["auto", "eco", "holidays", "off"],
		"type": "DiscreteState",
		"qualifiedName": "ramses:RAMSESOperatingModeState"
	}, {
		"type": "DataState",
		"qualifiedName": "ramses:RAMSESOperatingModeTimeoutState"
	}],
	"dataProperties": [],
	"widgetName": "EvoHomeController",
	"uiClass": "EvoHome",
	"qualifiedName": "ramses:EvoHomeController",
	"type": "ACTUATOR"
}

@wzwart76 if you could give this version a try and report here if it works. Afterwards I will make sure that this functionality is included in the next release.

Hi Mick,
Just tried the new version and I can set my Evohome to Auto and Off. Is that the correct behavior?
Grtz,
Willem

It should be possible to set your EvoHome to 'holiday' and 'day-off' as well via presets. Is that not supported?
If so; could you share a screenshot of your climate card in Lovelace.

@wzwart76 should we merge this, or is it not working yet? :-)


create contributions file

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

heh ? you can use git log to list authors. What's the benefit ?

This appears to be some hacktoberfest spam :-1:


Fix init command used to download remote configurations

This PR fixes #174 and #176. We’ve been using the terraform init command to download remote Terraform configurations for a while now. As of Terraform 0.9, this same command also tries to configure backends, download modules, etc. When updating Terragrunt to support Terraform 0.9, we forgot to update this original init call to pass backend parameters.

@josh-padnick I'm going to merge this in so I can submit a couple more fixes. Feedback welcome!


Input gets blurred after a character is typed

This happens on v3.0.0-rc2, here's a sample snippet that causes the problem.
              element.input([
                attribute.on_change(GotUsername),
                attribute.value(dynamic.from(state.username)),
              ]),

We explored this a bit more in the discord thread

Since migrating away from React this is no longer a bug! 🎉


Sidecar egress hosts are partially propagated

Describe the bug
Hello community,
We experience an issue when not all egress hosts from a Sidecar spec are propagated to envoy proxies.
Sidecar for example-svc:
apiVersion: networking.istio.io/v1beta1
kind: Sidecar
metadata:
  name: example-svc
  namespace: myns
spec:
  egress:
  - hosts:
    - istio-system/*
    - somens/*
    - core/core-svc.core.svc.cluster.local
  workloadSelector:
    labels:
      app: example-svc

DestinationRule for example-svc:
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  name: example-svc
  namespace: myns
spec:
  host: example-svc
  trafficPolicy:
    loadBalancer:
      simple: ROUND_ROBIN
    outlierDetection:
      baseEjectionTime: 30s
      consecutive5xxErrors: 3
      interval: 10s
      maxEjectionPercent: 100
    tls:
      mode: ISTIO_MUTUAL

VirtualService for core-svc:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: core-svc
  namespace: core
spec:
  gateways:
  - mesh
  hosts:
  - core-svc
  http:
  - retries:
      attempts: 5
      perTryTimeout: 60s
      retryOn: gateway-error,connect-failure,refused-stream
    route:
    - destination:
        host: core-svc
    timeout: 300s

Service for core-svc:
apiVersion: v1
kind: Service
metadata:
  name: core-svc
  namespace: core
spec:
  internalTrafficPolicy: Cluster
  ipFamilies:
  - IPv4
  ipFamilyPolicy: SingleStack
  ports:
  - name: http-18080
    port: 80
    protocol: TCP
    targetPort: 18080
  selector:
    app: core-svc
  sessionAffinity: None
  type: ClusterIP

core-svc deployment is up and running.
There is no EnvoyFilter that may impact routes.
There is no ServiceEntry for core-svc.
There is no Sidecar duplicates for the same workload selector.
istioctl pc cluster and istioctl pc route show entries for istio-system and somens namespaces, but no entry for core-svc.
Debugging logs for istiod and istio-proxy do not show anything suspicious. istiod debug was turned on with default:debug,all:debug. istio-proxy debug was turned on with istioctl proxy-config log POD --level=trace.
istiod config_dump for example-svc doesn't have core-svc.
Meanwhile, for another application in the same cluster, in the same namespace, with a similar Sidecar configuration it works:
apiVersion: networking.istio.io/v1beta1
kind: Sidecar
metadata:
  name: example2-svc
  namespace: cloud
spec:
  egress:
  - hosts:
    - istio-system/*
    - ./*
    - core/core-svc.core.svc.cluster.local
    - core/another-svc.core.svc.cluster.local
  workloadSelector:
    labels:
      app: example2-svc

What else we can check/debug/trace to see why the route has not been respected?
Any help would be appreciated.
Please let me know if any additional info is required.
Thanks!
Expected behavior
All hosts from Sidecar spec propagated.
Additional context
k8s version: v1.24.13-gke.2500
istio operator version: v2.16.1
istio-proxy version: istio-proxyv2:1.15.0

we found an RC using istioctl analyze
it found a malformed Sidecar
TIP: if istioctl crashes, try to upgrade to the latest version
our version is 1.19.0


add: display edit buttons on all human messages

close https://github.com/sourcegraph/cody/issues/2619
The goal of this PR is to address the following items described in the design figma:

This PR includes the following changes:

display edit button on each human message
update the handleEdit function in SimpleChat to support commands and regular chat input properly

instead of only able to edit the last human message, user can now choose any human messages in their chat session to edit
also updated to support /commands in edited messages

New tests added to cover the new changes

update tests for the edit function in agent
add new e2e test for the updated user journey for editing chat messages

Follow-up

the new design update for the edit text area https://github.com/sourcegraph/cody/issues/2762

Test plan

Build from this branch
in debug mode, ask Cody multiple questions, including using chat commands (e.g, /explain)

confirm edit button shows up on each message submitted when no message is in progress

click on an edit button to start the editing process

confirm the edit text area only shows up for the message you clicked the edit button on

update the message to something else and then submit the edit

confirm all the messages after the edited messages are removed (similar to how editing old messages work in chatGPT)
confirm the previous message has been replaced by the updated message
confirm cody is responding to your updated message when replying

Added new tests to agent to cover this updated behavior for edit. All tests are passing locally:

Demo
https://github.com/sourcegraph/cody/assets/68532117/4a1b1cc5-f87f-4e2e-a491-412de82120b4

more works are being done in a newer branch for the latest change in the figma design 🚧
https://github.com/sourcegraph/cody/pull/2811

repalced by https://github.com/sourcegraph/cody/pull/2826


Actions with ActivityParty entity as input parameter not available in dialogs/workflows

It looks as though you can't use actions in dialogs/workflows that have ActivityParty entity as an input parameter.

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

ID: 01383382-8b73-4cb5-08db-85be415ca5f2
Version Independent ID: a56af52f-5094-bd03-a1c1-6498cd013e0c
Content: Invoke custom actions from a workflow with PowerApps
Content Source: ce/customize/invoke-custom-actions-workflow-dialog.md
Service: crm-online
GitHub Login: @Mattp123
Microsoft Alias: matp

Actually any Input parameter that has entity as type, cannot be invoked from Workflow Process.


Unset executable permission bits

I didn't really understood it, @spl can you help ? 😅

No, nothing about the content or existence of the files changes here. Only the permissions change. Now, these files are no longer executable. It's a relatively minor thing, but I find it a bit annoying to see all these files as executable using ls when they don't need to be. Depending on how you browse files, you may not even notice it.

This is a rather innocuous change, so I'll just merge it.


Audit cookbook failing to install from internal Ruby gem mirror

Cookbook version
2.4.0
Chef-client version
12.19.36
Platform Details
OEL 5.11
Scenario:
Running the audit::default recipe on a node fails to install latest inspec from an internal mirror
Steps to Reproduce:
Update default['audit']['inspec_gem_source'] to point to an internal mirror and converge chef-client
Expected Result:
The internal mirror has the latest version of inspec staged as well as its dependencies. When chef-client runs it should pull inspec and its dependencies from the mirror and install them on the node
Actual Result:
* chef_gem[inspec] action install[2017-03-10T10:13:21-08:00] INFO: Processing chef_gem[inspec] action install (audit::inspec line 20)
[2017-03-10T10:13:36-08:00] INFO: chef_gem[inspec] installed inspec at 1.15.0

   - install version 1.15.0 of package inspec

 ================================================================================
 Recipe Compile Error in /var/chef/cache/cookbooks/audit/recipes/default.rb
 ================================================================================

 Gem::ConflictError
 ------------------
 Unable to activate train-0.22.0, because net-ssh-4.0.1 conflicts with net-ssh (< 4.0, >= 2.9)

 Cookbook Trace:
 ---------------
   /var/chef/cache/cookbooks/audit/libraries/compliance.rb:5:in `load_inspec_libs'
   /var/chef/cache/cookbooks/audit/recipes/inspec.rb:28:in `from_file'
   /var/chef/cache/cookbooks/audit/recipes/default.rb:20:in `from_file'

 Relevant File Content:
 ----------------------
 /var/chef/cache/cookbooks/audit/libraries/compliance.rb:

   1:  # encoding: utf-8
   2:
   3:  # load all the inspec and compliance bundle requirements
   4:  def load_inspec_libs
   5>>   require 'inspec'
   6:    if Inspec::VERSION != node['audit']['inspec_version'] && node['audit']['inspec_version'] !='latest'
   7:      Chef::Log.warn "Wrong version of inspec (#{Inspec::VERSION}), please "\
   8:        'remove old versions (/opt/chef/embedded/bin/gem uninstall inspec).'
   9:    else
  10:      Chef::Log.warn "Using inspec version: (#{Inspec::VERSION})"
  11:    end
  12:    require 'bundles/inspec-compliance/api'
  13:    require 'bundles/inspec-compliance/http'
  14:    require 'bundles/inspec-compliance/configuration'

 Platform:
 ---------
 x86_64-linux

 Running handlers:
[2017-03-10T10:13:36-08:00] ERROR: Running exception handlers
 Running handlers complete
[2017-03-10T10:13:36-08:00] ERROR: Exception handlers complete
 Chef Client failed. 1 resources updated in 25 seconds
[2017-03-10T10:13:36-08:00] INFO: Sending resource update report (run-id: 565663ad-610e-4b4a-bba9-3edb4af373c7)
[2017-03-10T10:13:38-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-03-10T10:13:38-08:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-03-10T10:13:38-08:00] ERROR: Unable to activate train-0.22.0, because net-ssh-4.0.1 conflicts with net-ssh (< 4.0, >= 2.9)
[2017-03-10T10:13:38-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

If I logon to the host and manually install the gem everything works.

@smford22  So far I it looks like chef client 12.19.36 inspec 1.15.0 work without an issue. I have a kitchen setup with centos 5.11 in #201. Do you have any other idea that we can look into?

Here is my gem list from that machine:
[root@default-bento-centos-511 ~]# /opt/chef/embedded/bin/gem list

*** LOCAL GEMS ***

addressable (2.4.0)
appbundler (0.10.0)
ast (2.3.0)
bigdecimal (default: 1.2.8)
binding_of_caller (0.7.2)
blankslate (<IP_ADDRESS>)
builder (3.2.3)
bundler (1.12.5)
byebug (9.0.6)
chef (12.19.36)
chef-config (12.19.36)
chef-zero (5.3.0)
cheffish (4.1.1)
chefstyle (0.5.0)
coderay (1.1.1)
debug_inspector (0.0.2)
did_you_mean (1.0.0)
diff-lcs (1.3)
docile (1.1.5)
docker-api (1.33.2)
erubis (2.7.0)
excon (0.55.0)
faraday (0.11.0)
ffi (1.9.17)
ffi-yajl (2.3.0)
fuzzyurl (0.9.0)
gssapi (1.2.0)
gyoku (1.3.1)
hashie (3.5.3)
highline (1.7.8)
httpclient (2.8.3)
iniparse (1.4.2)
inspec (1.15.0)
io-console (default: 0.4.5)
ipaddress (0.8.3)
json (2.0.3, default: 1.8.3)
libyajl2 (1.2.0)
little-plugger (1.1.4)
logging (2.2.0)
method_source (0.8.2)
mini_portile2 (2.1.0)
minitest (5.8.3)
mixlib-archive (0.4.1)
mixlib-authentication (1.4.1)
mixlib-cli (1.7.0)
mixlib-config (2.2.4)
mixlib-log (1.7.1)
mixlib-shellout (2.2.7)
multi_json (1.12.1)
multipart-post (2.0.0)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (4.0.1)
net-ssh-gateway (1.3.0)
net-ssh-multi (1.2.1)
net-telnet (0.1.1)
nokogiri (<IP_ADDRESS>)
nori (2.6.0)
ohai (8.23.0)
parallel (1.11.1)
parser (<IP_ADDRESS>)
parslet (1.5.0)
plist (3.2.0)
power_assert (0.2.6)
powerpack (0.1.1)
proxifier (1.0.3)
pry (0.10.4)
pry-byebug (3.4.2)
pry-remote (0.1.8)
pry-stack_explorer (<IP_ADDRESS>)
psych (default: 2.0.17)
rack (2.0.1)
rainbow (2.2.1)
rake (11.3.0, 10.4.2)
rb-readline (0.5.4)
rdoc (default: 4.2.1)
rspec (3.5.0)
rspec-core (3.5.4)
rspec-expectations (3.5.0)
rspec-its (1.2.0)
rspec-mocks (3.5.0)
rspec-support (3.5.0)
rspec_junit_formatter (0.2.3)
rubocop (0.47.1)
ruby-prof (0.16.2)
ruby-progressbar (1.8.1)
ruby-shadow (2.5.0)
rubygems-update (2.6.10)
rubyntlm (0.6.1)
rubyzip (1.2.1)
serverspec (2.38.0)
sfl (2.3)
simplecov (0.13.0)
simplecov-html (0.10.0)
slop (3.6.0)
specinfra (2.66.9)
sslshake (1.0.13)
syslog-logger (1.6.8)
systemu (2.6.5)
test-unit (3.1.5)
thor (0.19.4)
toml (0.1.2)
train (0.22.1)
unicode-display_width (1.1.3)
uuidtools (2.1.5)
winrm (2.1.3)
winrm-fs (1.0.1)
wmi-lite (1.0.0)
[root@default-bento-centos-511 ~]#

Install Train 0.22.0 and then remove Train 0.22.1

Train 0.22.0 was installed previously due to older chef-client/inspec versions

Installing a new version of Inspec will not update Train since 0.22.0 is installed and its the minimum version required.

@koldrid Thank you for your finding. Seems like we should add some special handling here to ease the use of the new chef client.

Resolved by https://github.com/chef-cookbooks/audit/issues/203


Dependabot fails when including a git submodule Gradle project using Gradle includeBuild feature

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
Gradle
Package manager version
Gradle 7.6
Language version
Kotlin 1.8.20
Manifest location and content before the Dependabot update
/build.gradle.kts
/settings.gradle.kts
/somemodule1/build.gradle.kts
/somemodule2/build.gradle.kts
/subproject/build.gradle.kts
/subproject/settings.gradle.kts

This is the git submodule folder pointing to a different GitHub repository, which should be ignored by Dependabot:

/CommonLibraries

(in the submodule):

/CommonLibraries/commonGradleConfiguration/build.gradle.kts
and some more files
dependabot.yml content
version: 2
updates:
  - package-ecosystem: "gradle"
    directory: "/"
    schedule:
      interval: "daily"
    target-branch: "development"
    open-pull-requests-limit: 50

Updated dependency
No response
What you expected to see, versus what you actually saw
Error provided by GitHub:
Dependabot couldn't find a build.gradle.

Dependabot requires a build.gradle to evaluate your Java dependencies. It had expected to find one at the path: /CommonLibraries/commonGradleConfiguration/build.gradle.

If this isn't a Java project, you may wish to disable updates for it in the .github/dependabot.yml config file in this repo.

It seems Dependabot cannot read git submodules. The CommonLibraries folder is a git submodule pointing to another  (private) GitHub repository. That repository contains another (standalone) Gradle project, which has its own Dependabot configuration in that repository.
I think Dependabot should just ignore the gradle files in that submodule, as it can't even update them even if it could read them. The reason Dependabot is looking for gradle files in that directory is probably because the CommonLibraries project is included using the Gradle includeBuild feature. Is there a way to exclude this from Dependabot? Currently I cannot get it working due to this issue.
The file /subproject/settings.gradle.kts contains the following which references the git submodule:
includeBuild("../CommonLibraries/commonGradleConfiguration")
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
Private repository
Smallest manifest that reproduces the issue
No response

https://github.com/dependabot/dependabot-core/pull/7078 should fix this, not pretty but effective.

Does anyone know of a workaround for this issue?

Does anyone know of a workaround for this issue?

I didn't test it but you should be able to move includeBuild("../CommonLibraries/commonGradleConfiguration") to a file Dependabot doesn't scan, e.g.

Move includeBuild("../CommonLibraries/commonGradleConfiguration") line from /subproject/settings.gradle.kts to /subproject/hidden_from_dependabot.gradle.kts and
Add apply(from = "hidden_from_dependabot.gradle.kts") to /subproject/settings.gradle.kts.

Does anyone know of a workaround for this issue?

I didn't test it but you should be able to move includeBuild("../CommonLibraries/commonGradleConfiguration") to a file Dependabot doesn't scan, e.g.
1. Move `includeBuild("../CommonLibraries/commonGradleConfiguration")` line from `/subproject/settings.gradle.kts` to `/subproject/hidden_from_dependabot.gradle.kts` and

2. Add `apply(from = "hidden_from_dependabot.gradle.kts")` to `/subproject/settings.gradle.kts`.

Just adding my testimony here, that this works flawlessly.
Here's a commit showing the work-around:
https://github.com/wireapp/wire-android-reloaded/commit/0c79cbe0d75fd76674815a0b0627fdda9778b881


round_robin load balancing is not thread-safe (race condition)

What version of gRPC and what language are you using?
Python, 1.21.1
What operating system (Linux, Windows,...) and version?
MacOS 10.14
What runtime / compiler are you using (e.g. python version or version of gcc)
Python, 1.21.1
What did you do?

Create a shared channel with a round_robin load balancing policy.
Make 10 concurrent requests starting at the exact same time.

channel = grpc.insecure_channel(URL, [("grpc.lb_policy_name", "round_robin")])

with ThreadPoolExecutor(10) as executor:
   for i in range(10):
       stub = ExampleStub(channel)
       executor.submit(stub.ExampleRequest)

What did you expect to see?
Requests being load balanced and sent to different servers.
What did you see instead?
All requests go to the same server.
When I add a little bit of a time buffer in the code, the problem goes away (requests go to different servers).
channel = grpc.insecure_channel(URL, [("grpc.lb_policy_name", "round_robin")])

with ThreadPoolExecutor(10) as executor:
   for i in range(10):
       stub = ExampleStub(channel)
       executor.submit(stub.ExampleRequest)
       time.sleep(1)

My theory is that the underlying load balancing code is not thread safe (e.g. the round robin isn't updated by the first thread making the request in time for the second thread to see it).

Not sure if this is the right place for this question:
Is batching implemented in python? My use case is sending a large number of small protobufs over rpc -- I need to batch them for throughput. Sample python client code -- which does not work (I.e. no speedup by changing any of the option values) --
channel = grpc.insecure_channel('localhost:2020', options=[('grpc.max_concurrent_streams', 1),
('grpc.max_send_message_length', 1 * 1024 * 1024),
('grpc.max_receive_message_length', 1 * 1024 * 1024),
('grpc.http2.max_frame_size', 16777215),
('grpc.http2.write_buffer_size', 10 * 1024 * 1024),
('WriteFlag.buffer_hint', True)
Am I missing something?

@sandlerben The round_robin implementation is thread safe. The reason that you are seeing all the requests going to the same server is that connection to server needs time. In details, when you start connecting to 10 severs, the connection attempts are in parallel. When the first server is connected, we will have a ready server pool of size 1. So all your requests go to that server. When more servers are connected, the pool will include them one by one. If you add some time buffer, I guess all the 10 servers are connected and are in the pool, so your requests will be load balanced as expected.
Please re-open if you have further questions.

@dsethi Please open a separate issue for proper tracking. Thanks!

@AspirinSJL is there any way to have the connections open when the application starts or just before requests are made?

Nope, we don't have any way to make sure all the servers are connected before requests are made. In principle, only the connectivity of the whole channel is visible to users.The load balancing part should be transparent.

That makes sense. Do you think there any good ways to support this use-case, though? I imagine it is shared by other users (it's a pain shared by others at my company).

What's the reason to have this feature? I assume you want perfect balancing among your backend servers. If that's the case, will you allow RPCs to be issued if any previously connected backend fails?

cc @markdroth

To say this another way, I think it would be very bad for reliability to have the client not send any RPCs until all of the backends are up, beacuse that would mean that a single backend being down would cause all RPCs to fail.  I don't think this feature request is a good idea.

I agree with you, I wouldn't want to wait for "all" back-ends (how can the client even know the number of back-ends). I guess there's really no way around it because all the requests should be sent the moment any connection is made. I think the best solution, if any, is a way to have the grpc client exposes functionality to try to make connections. That can be called explicitly before requests are made (e.g. when application starts up).

We already have an API for asking a channel to connect before you send an RPC on it.  It's part of the channel state API.  @lidizheng or @gnossen can probably point you at the right API to use for that in Python.

Fantastic that's exactly what I need. Looking forward to turning that on.

@sandlerben I think the API you are looking for is grpc.channel_ready_future.

Perfect, that worked!


primites string charset to int enhance charset

https://github.com/wurstscript/WurstStdlib2/blob/aec0c1ab6103bbfa60a5e77f71b450b65df2ba37/wurst/_handles/primitives/String.wurst#L5
maybe make the charset configurable or enhance it by all allowed chars known for wc3?

Isn't that this https://github.com/wurstscript/WurstStdlib2/blob/be3aa21ffe963757e924232c0382e7adbb03f4e9/wurst/util/StringUtils.wurst#L45

basically yes

yea I'm not sure why we have both tbh

move it on hold to "refactoring", and close its ok


Update tutorial-postgresql-azure-postgresql-online.md

This command has been changed. Below is the list of new parameters -
Command
az dms project task cutover : For an online migration task, complete the migration by performing
a cutover.
To see the result of the request, please use the 'task show' command:
az dms project task show ... --expand command.
Arguments
--name -n           [Required] : The name of the Task. DMS Task is the activity that performs a
migration related task. There could be multiple Tasks
associated to a Project.
--project-name      [Required] : The name of the Project. DMS Project is a logical grouping that
encompasses source database connection, target database
connection and a list of databases to migrate.
--resource-group -g [Required] : Name of resource group. You can configure the default group
using az configure --defaults group=<name>.
--service-name      [Required] : The name of the Service. DMS Service is an Azure instance that
performs database migrations.
--immediate                    : For MongoDB migrations, whether to cutover immediately or to
let the currently loaded events get migrated. For all other
migration types, this has no effect.
--object-name                  : For MongoDB migrations, the qualified name of the database or
collection you wish to cutover. Leave blank to cutover the
entire migration. For all other migration types, the name of
the database on the source you wish to cutover.

@neetusingh-ms : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Shorten Mauve special test names for keeping Windows path length short

Related to https://github.com/eclipse/openj9/issues/9982
Signed-off-by<EMAIL_ADDRESS><EMAIL_ADDRESS>

Test : Test_grinder/job/Grinder/8558/console

<EMAIL_ADDRESS>- Could you please review?


Update es.json

Updated and double checked spell in Spanish (SP)- Works for Spain and Latin America. There was missing translations and there are some terms that should not be translated as the Swap titles ( Atomic Swap)  or "billetera" , since they are wide used anglicism and translate them makes them go out of context.
Checklist

[ ] I have read the CONTRIBUTING guide
[ ] Good naming (as clear and simple as possible)
[ ] Correct behavior if external API endpoints are down, return 404, 504 (or no answer), 401 errors (ddos simulation)
[ ] I tested desktop/mobile resolution
[ ] I tested light/dark theme
[ ] I tested different languages
[ ] I checked the functionality once again (AFFECT MONEY)
[ ] I checked the work on the Testnet
[ ] I checked the work on the Mainnet
[ ] I checked the work in the plugin
[ ] I checked the PR once again

Tests
Please start auto tests as follows:

add a label swap test to start swap tests
add a label withdraw test to start withdraw tests

You can skip these tests if you completely sure that your changes aren't related to this functional
Original issue

Video / screenshot proof

Thank you @chawake !!


edited version (AhmedMagdyy)

@AhmedMagdyy-eng Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@AhmedMagdyy-eng Thank you for signing the Contributor License Agreement!


(ova) collect syslogs

   creating: ova/
  inflating: ova/version.out
  inflating: ova/syslog.2.gz
  inflating: ova/root-bash_history.out
  inflating: ova/syslog
  inflating: ova/status.out
  inflating: ova/root-timestamped-bash_history.out
  inflating: ova/syslog.3.gz
  inflating: ova/disk_data.out
 extracting: ova/apicadm-bash_history.out
  inflating: ova/syslog.1

I see the syslogs in the postmortem zip and made sure that the syslogs have content. script ran and succeeded fine with exit code 0


readme typos

There are a couple typos in the readme.
"It's also common to only focus on one conditon, even though knowledge about even though knowledge about most of them is lacking."
I'm something of a proofreader/copy editor and aspiring dev, but I tend to not offer fixes because I don't want to be perceived as "nit-picky." However, with a project such as this, where I have a personally vested interest (bipolar 1, schizoaffective, treatment resistant depression, social anxiety dis, etc) in its success and presentation in the best possible light, I don't think I'm being ocd or nit-picky; just trying to help in whatever way I feel I can. Code contributions can come later, if ever required, but what I can do immediately is scour the copy as a proofreader, and begin making the edits myself as opposed to pointing things out but not being proactive in rectifying what I find. If that would be considered useful, great. If not, no worries. Thanks for the project and all your efforts Alvar. =)
Gene

That would be perfect! I'm quite terrible at editing myself. I'm dyslectic. You're not being "ocd" at all, in fact it has nothing to do with OCD :). The readme is the only the only thing I want edited here, the rest is better in the Google Docs linked in the Discord.

@csggene3 Did you find yourself to the links in the Discord?

I'll close this now. The links to the Google Docs are in the Discord at #doc-links. Here is a direct link.
https://discord.com/channels/835592135830011997/878383962546905119


can't ping SMTP Skiff hostname and port

i can't ping the Skiff Email Server which is inbound-smtp.skiff.com:25 through my Uptime Kuma instance (hostname and port using TCP Port monitor), but it works if

I ping the port and hostname through my PC
or check-host.net

Configuration

monitoring results
configuration

Edit: integrated comment into this message

BUMP

What is the "down" message shown in the monitor events list?

tcpping is executed here and should default to 5s according to their docs
https://github.com/louislam/uptime-kuma/blob/538f83205d75fdfc437bece61764e864ae90a5b0/server/util-server.js#L99-L118
Relevant docs: https://www.npmjs.com/package/tcp-ping#pingoptions-callback

@antonioraminhos any clues why a ping might take this long?

idk

can you try on your uptime kuma instance? i tried on the demo and it also didn't work

I tried this on a separate local instance and there is some weirdness going on.
I don't think this is weirdness on our end tbh. Have you got a firewall/fail2ban/... in your network path?
Is there a reason why the german educational network (eduroam) might be blocked but german resitential internet might not?

i don't know, but i just tried running a docker container for uptime kuma on my personal pc and it just works, but on my AWS EC2 VPS, it doesn't, maybe AWS don't allows pings to port 25? i just don't know at this point.

If I understand it correctly, AWS is indeed not allowed that by default.

On all instances, Amazon EC2 restricts outbound traffic to public IP addresses over port 25 by default.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html

In my opinion, I was always not happy with these "top-tier" VPSs. If your server is dedicated for Uptime Kuma only, I would recommend DigitalOcean or Linode.

I think with said wiki article clearing up why this is behaving so weird this issue is resolved


Make path for .spark-dist folder always accessible [ZEPPELIN-902]

What is this PR for?
Current Path for .spark-dist is outside the reactor, which can breaks build.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.337 s
[INFO] Finished at: 2016-05-30T15:34:30+02:00
[INFO] Final Memory: 73M/469M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.googlecode.maven-download-plugin:download-maven-plugin:1.2.1:wget (download-pyspark-files) on project zeppelin-spark-dependencies: IO Error: Destination '/opt/zeppelin-master/spark-dependencies/target/../../.spark-dist/spark-1.6.1.tgz' directory cannot be created -> [Help 1]
What type of PR is it?
[Improvement]
Todos
What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN/ZEPPELIN-902

How should this be tested?
Build with pyspark profile
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Hi, thanks for taking care of the build stability!
.spark-dist was introduced as our CI build cache dir, and is used in multiple places
As far as I understand, you suggest using different dirs for bin and src downloads, and src dir will not be part of Travis CI cache any more, so it will be actually dowloaded from Apache mirror on every build again, which is from our previous experience make build very unstable and error-prone.
I do not think it's possible to cache things in the paths, that are going to be overridden by CI's git clone .... Do you have suggestions on how to make it cache friendly and do not break the build?

.spark-dist is outside the reactor, which can breaks build
Also, could you please help me to understand why the fact of being outside of reactor can break the build?

@bzz Just commented on ZEPPELIN-902 - My concern was on my local build, not on Travis stability.
As mentionned onthe JIRA, the target target folder is not present after a clean, because the download-pyspark-files is binded to the validate phase.
I guess using ${basedir} could do the job, but then we are not 100% safe because building in the spark-dependencies folder would put the spark-dist at a different location...
Maybe ${session.executionRootDirectory} ? (see http://stackoverflow.com/questions/3084629/finding-the-root-directory-of-a-multi-module-maven-reactor-project).
Another approach would be to bind to the compile phase, but I guess it will have side-effects.

Thanks for explaining!
So as far as I have understood, the pain point is: after mvn clean, on the same repo mvn validate faild due to  maven-download-plugin exception
iO Error: Destination '/opt/zeppelin-master/spark-dependencies/target/../../.spark-dist/spark-1.6.1.tgz' directory cannot be created

who presumably complaining about non-existant /target/ part of it's destination path?
and what you suggest is that we put there some different path, that is not target-related, and what I suggest is that we better make it still pointing to the same .spark-dist dir, one level above the repo root.
${session.executionRootDirectory}/../.spark-dist sounds as a good solution to me.
Or another, harder way could be: if you could provide the stack trace of the same error (running mvn -X ...) we could look into the implementation of maven-download-plugin and see if we could improve it to behave like mkdir -p in this case.

Tried with the ${session.executionRootDirectory} and got  [ERROR] around Ant part ...<untar src="${session.executionRootDirectory}/.spark-dist/spark-1.6.1.tgz"
Sounds like maven-antrun-plugin (even last version) is not happy with  ${session.executionRootDirectory}
Hacking maven-antrun-plugin or maven-download-plugin is not on my list. I guess we can simply live with this for now.

ping

pong :) I don't see any solution for this. Does this issue bother anyone else?

No. I just wonder if this is not merged even if it passes CI for a long time ago.

@echarles @bzz So is this Ready for merge?

No, not ready. None of the envisaged solutions are practicable.

Closing this PR, I can not reproduce the issue anymore.


lack of updates, examples and bugs (not lack of)

Quite a few pull requests and issues lodged but no reply. Good to still be able to work on it all together in github... maybe we need a new primary fork to take over...

Im confused, if the /lib/*.js files are uploaded to netsuite to create the endpoints, where does node.js fit in ? what do you use it for ?

ive gotten curl requests to work but only after finding examples in the other issues...  i think i will add to the wiki

https://github.com/hayden-t/rest_suite


📝 Documentation: Can I disable logging [Million Lint] Ingested ${n} events in browser console?

Bug Report Checklist

[X] I have pulled the latest main branch of the repository.
[X] I have searched for related issues and found none that matched my issue.

Overview
Thank you for developing this. Seems that the current document is leak of information about "Can I disable logging [Million Lint] Ingested ${n} events in browser console?"
Additional Info
No response

Please get to this soon, seems extremely simple.

Hey @charlieforward9 @alissa-tung, we removed this log in the latest version! Can you try running the setup script npx million@latest. Once it's done, please restart your VSCode/Cursor. Let me know if that works for you!

Hey @charlieforward9 @alissa-tung, we removed this log in the latest version! Can you try running the setup script npx million@latest. Once it's done, please restart your VSCode/Cursor. Let me know if that works for you!

Thank you


Added lock to protect the RNG.

CODE REVIEW
Apparently, the RNG is not threadsafe.  Need to protect that in the package.  Allocating a new generator at every run proved to be more costly than protecting with lock.
@tannermiller-wf @alexandercampbell-wf @beaulyddon-wf @rosshendrickson-wf @ericolson-wf @stevenosborne-wf @tylertreat-wf

+1

+1

+1


[WIP] Move queue_capture to provider metric_capture_object

extracted / Blocked:

[x] #19511
[x] #19506
[x] #19507
[x] #19541
[x] #19599
[x] #19610

Overview

Cap&U is a single workflow that is used by all providers.
It puts too many messages on the queue.
It doesn't pacing itself and relies upon put_or_update to avoid some of the duplicate work.
It takes hours to run because it hits the provider too many times, many of which are duplicate.
The cache in the broker alleviates some of the duplicate calls.

This PR is focused on queuing.
Before

Queuing capture was mixed into Vm, Host, and Storage models.
The different models and providers work differently, this was handled by if checks on the provider class.

After

Queuing capture is part of the provider's MetricCapture object
The different models and providers are still handles by if checks, but since there is now a hierarchy, they can use traditional inheritance.
zone, queue name, ems are only looked up once. This removes quite a few calls.

There's a lot of movement in this PR, so it's hard to see if this is just moving things around or if there are actual code changes along with the moves.  Are there specific commits that help the review of this?

sigh. let me know if we want to handle these cops. I got it down to 2 which is good.
I just rebased and pushed another version with a lot more comments and organized the commits slightly differently.
Hoping the comments make it easier to merge.
Thought I'm guessing splitting this up may be the best way

wip: going to focus on tests first then will work on getting the remaining commits in

Did all the work except for combining messages. Doing that in https://github.com/ManageIQ/manageiq/issues/20071 instead


No registrationId on Samsung S5 LTE+

Hello,
thanks for this plugin!
But i have trooble with on Device:
Samsung SM-G901F / S5 Lte + (German Telekom)
Android 5.0.2
All other testing devices runs greate
Problem:
Only on this device i get no registrationId
push.on('registration', (data) => {
console.log("##########################################################");
console.log(data.registrationId);
}
Is there any settingsoption that must be aktivate or something?
Thanks

fixed: clearing Google-Service and Google-Framework cache, reboot device


Bug with loop=true and more than 1 item per view

Demo: https://stackblitz.com/edit/github-ph1huz

loop = true
itemsPerView = 3

Click itemsPerView (3) times up.
Expected
To see an element previous to the current one
Actual
No elements are shown previous to the current one

This is just a wrapper for Swiper so any bugs related to the Swiper does not concern this library. Maintainer of Swiper has been ignoring any problems related to using Swiper with Angular so I would not expect much help by reporting the problem for Swiper. Most issues are due to the async nature of Angular and many problems can be fixed by either making sure that the dom is fully ready before initializing Swiper or by calling update manually once the dom is ready.


[turborepo] with-docker example not working even when cloning turbo repository

What version of Turborepo are you using?
latest
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
When tryomg to build docker image gets the follow error:
➜  with-docker git:(main) docker build apps/web
[+] Building 0.7s (20/26)
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 74B                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load metadata for docker.io/library/node:alpine                                                                                0.6s
 => [internal] load build context                                                                                0.0s
 => => transferring context: 819B                                                                                0.0s
 => [runner 1/9] FROM docker.io/library/node:alpine@sha256:a67a33f791d1c86ced985f339fa160f6188f590ebbe963fe11cc00adc971fa41                             0.0s
 => CACHED [runner 2/9] WORKDIR /app                                                                                0.0s
 => CACHED [runner 3/9] RUN addgroup --system --gid 1001 nodejs                                                                                0.0s
 => CACHED [runner 4/9] RUN adduser --system --uid 1001 nextjs                                                                                0.0s
 => CACHED [builder 2/7] RUN apk add --no-cache libc6-compat                                                                                0.0s
 => CACHED [builder 3/7] RUN apk update                                                                                0.0s
 => CACHED [builder 4/7] WORKDIR /app                                                                                0.0s
 => ERROR [installer  5/11] COPY .gitignore .gitignore                                                                                0.0s
 => CACHED [builder 5/7] RUN yarn global add turbo                                                                                0.0s
 => CACHED [builder 6/7] COPY . .                                                                                0.0s
 => CACHED [builder 7/7] RUN turbo prune --scope=web --docker                                                                                0.0s
 => CACHED [installer  6/11] COPY --from=builder /app/out/json/ .                                                                                0.0s
 => CACHED [installer  7/11] COPY --from=builder /app/out/yarn.lock ./yarn.lock                                                                         0.0s
 => CACHED [installer  8/11] RUN yarn install                                                                                0.0s
 => CACHED [installer  9/11] COPY --from=builder /app/out/full/ .                                                                                0.0s
 => ERROR [installer 10/11] COPY turbo.json turbo.json                                                                                0.0s
------
 > [installer  5/11] COPY .gitignore .gitignore:
------
------
 > [installer 10/11] COPY turbo.json turbo.json:
------
failed to compute cache key: "/turbo.json" not found: not found
➜  with-docker git:(main)

Expected Behavior
Build a docker image
To Reproduce

Clone turbo repo repository
Go to ./examples/with-docker folder
Run: docker build apps/web

Reproduction Repo
No response

This example is setup with docker-compose. Try:
# Create a network, which allows containers to communicate
# with each other, by using their container name as a hostname
docker network create app_network

# Build prod using new BuildKit engine
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yml build

# Start prod in detached mode
docker-compose -f docker-compose.yml up -d

There are not example without docker-compose to use with CI?


⚠ Bofrost.be has degraded performance

In 8572d10, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 3150 ms

Resolved: Bofrost.be performance has improved in 6ce4efb.