Postgres Existing Secret

Hello
I am trying to keep the Postgres password in an existing secret, however it is not at all clear how to do this.
I have tried the following:
postgresql:
  auth:
    existingSecret: database-passwords
    userPasswordKey: user_password

However, I have no idea how to tell Netbox what the password is.
I am using chart version 4.0.1.
Appreciate any help.
Thanks

To clarify, are you using an external Postgres instance, or the bundled subchart? If the former, you'll want to set things up with the externalDatabase key, similar to the following:
externalDatabase:
  host: <redacted>
  port: 5432
  database: netbox
  username: netbox
  existingSecretName: netbox-postgres
  existingSecretKey: password

If you're planning on using this for any kind of production use it's strongly recommended to manage the PostgresQL database separately, e.g on a separate host or with the Zalando operator.
If you're choosing to use the bundled Postgres chart, Netbox should pull the value of the password from the Postgres chart's secret, if I'm reading the manifests correctly, referencing the deployment, and the helpers defined here and here.
If that's not working, I'd be useful to see the resultant volumes section of the deployment.

Thanks for the quick response. I am using the bundled Postgres chart.
I've used these values now, after inspecting the inner workings of the chart/s:
postgresql:
  enabled: true
  existingSecret: database-passwords
  secretKey: postgresql-postgres-password

Which enabled Postgres to start properly, however I get the following from Netbox:
MountVolume.SetUp failed for volume "secrets" : secret "netbox-postgresql" not found

Looking at the helpers:
{{- define "netbox.postgresql.secret" -}}
{{- if and .Values.postgresql.enabled .Values.postgresql.existingSecret -}}
{{ .Values.postgresql.existingSecret }}

This should mean that as long as postgres.enabled, and postgresql.existingSecret are defined, then the secret name should be the postgresql.existingSecret. However, I see the secret is generated as below (netbox-postgresql), which does not match the name I gave:
          - secret:
              items:
              - key: postgresql-password
                path: db_password
              name: netbox-postgresql

Any ideas?
Thanks

The Helm chart checks for postgresql.existingSecret, but requires postgresql.auth.existingSecret to pass credentials into Postgres, which I think is where things are getting confused. I think what's needed is to update the Helm chart check for postgresql.auth.existingSecret, like so:
diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl
index ec5186b..50b4c55 100644
--- a/templates/_helpers.tpl
+++ b/templates/_helpers.tpl
@@ -91,8 +91,8 @@ Create the name of the service account to use
 Name of the Secret that contains the PostgreSQL password
 */}}
 {{- define "netbox.postgresql.secret" -}}
-{{- if and .Values.postgresql.enabled .Values.postgresql.existingSecret -}}
-{{ .Values.postgresql.existingSecret }}
+{{- if and .Values.postgresql.enabled .Values.postgresql.auth.existingSecret -}}
+{{ .Values.postgresql.auth.existingSecret }}
 {{- else if .Values.postgresql.enabled -}}
 {{ include "netbox.postgresql.fullname" . }}
 {{- else if .Values.externalDatabase.existingSecretName -}}

I'll draft a PR and test when I've got a few more minutes to spare, unless someone beats me to it!

Thanks for debugging this @rjhenry that seems sensible...

Hmm I'm not sure, correct me if wrong. If the mentioned fix would work then the below values should work?
postgresql:
  enabled: true
  auth:
    existingSecret: database-passwords
  existingSecret: database-passwords
  secretKey: postgresql-postgres-password

However, I get the same results.
Thanks

I've done some further investigation and found that the line below does not work (the existingSecret is not used when both postgresql.enabled and Postgres.existingSecret are defined):
{{- if and .Values.postgresql.enabled .Values.postgresql.existingSecret -}}

Here is my fix suggestion (similar to how Redis is handled):
diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl
index ec5186b..05c0804 100644
--- a/templates/_helpers.tpl
+++ b/templates/_helpers.tpl
@@ -91,15 +91,17 @@ Create the name of the service account to use
 Name of the Secret that contains the PostgreSQL password
 */}}
 {{- define "netbox.postgresql.secret" -}}
-{{- if and .Values.postgresql.enabled .Values.postgresql.existingSecret -}}
-{{ .Values.postgresql.existingSecret }}
-{{- else if .Values.postgresql.enabled -}}
-{{ include "netbox.postgresql.fullname" . }}
-{{- else if .Values.externalDatabase.existingSecretName -}}
-{{ .Values.externalDatabase.existingSecretName }}
-{{- else -}}
-{{ .Values.existingSecret | default (include "netbox.fullname" .) }}
-{{- end -}}
+  {{- if .Values.postgresql.enabled -}}
+    {{- if .Values.postgresql.existingSecret -}}
+      {{- .Values.postgresql.existingSecret }}
+    {{- else }}
+      {{ include "netbox.postgresql.fullname" . }}
+    {{- end }}
+  {{- else if .Values.externalDatabase.existingSecretName -}}
+    {{- .Values.externalDatabase.existingSecretName }}
+  {{- else -}}
+    {{ .Values.existingSecret | default (include "netbox.fullname" .) }}
+  {{- end -}}
 {{- end }}

 {{/*

However, I am now getting the below from netbox:
settings.DATABASES is improperly configured. Please supply the NAME or OPTIONS['service'] value

Thanks

I finally have this working with my above patch and the following values:
postgresql:
  enabled: true
  postgresqlUsername: netbox
  postgresqlDatabase: netbox
  existingSecret: database-passwords

I've just had a look at this and it looks like the patch isn't necessary; I get the same result with or without it. It does make the template a bit cleaner, though, so I'm going to apply a version of it anyway.
I think the confusion comes from this chart using the PostgeSQL 10.x chart not the current version 11.x which moves this around. I'll have to keep that in mind for the next major version of this chart.


Reuse secrets correctly

Fixes some issues regarding the deployed secrets on the upgrade path, see this comment https://github.com/camunda/camunda-platform-helm/issues/309#issuecomment-1116014190 for further details
closes #309
@oleschoenburg I did most changes I think you can already have a look. I will add the upgrade test we discussed tomorrow.

Ok this was a fight @oleschoenburg but I got it working :grin: I think it was great to add this, because I realized that if for example you set the secret to a wrong value your are not able to login anymore which is great :+1:

Thanks for the review @oleschoenburg :bow:


dependency check - added gradle plugin

Signed-off-by: Sally MacFarlane<EMAIL_ADDRESS>Add plugin for gradle dependency check
Changelog

[x] I thought about the changelog and included a changelog update if required.

it seems a better solution is the homebrew install
brew install dependency-check
dependency-check -s build/distributions


Fix tests for arm64 abi spare bits change

The bottom 4 bits of the top byte are now reserved on arm64. Adjust tests that are dependent on those spare bits.
rdar://47047734

@swift-ci Please test

@swift-ci please test

@swift-ci Please test

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 3609dadef44393f3307240a879ec6973927f689c

Fails due to an unrelated timeout in on of the lldb tests:
 TIMEOUT: test_dsym (lang/swift/closure_shortcuts/TestClosureShortcuts.py)

@swift-ci Please test os x


Single task model

Completed single task model pipeline.

Need test and improve runoff prediction, please wait for merge.

Change training strategy to Sadler et al. 2022, WRR.
Some bug in loss.py, fix in next pull.


using .pug extension

Using .pug extension is impossible. Even using spring-jade4j suffix=.pug.
If I request files without extension - .jage is forced by ensureJadeExtension
If I request files with explicit .pug extension - includes interpret it as plain text without parsing because of https://github.com/neuland/jade4j/blob/master/src/main/java/de/neuland/jade4j/parser/Parser.java#L387

Fixed in 1.2.6


How to best run tests locally on just the exercise being worked on?

I'm working on updating existing exercises per the canonical data in the problem-specifications repository.
The README says to execute dart test in order to run the tests for all the exercises. Doing this takes a very long time, even if there are no outdated dependencies.

Is there a way to skip the dependency check?
Is there a way to run the tests for a single exercise? Right now if I call the command with the path to the exercise, it fails because it is running against the stub rather than the example solution.

Looks like it's possible to set the environment variable EXERCISE to specify which exercise to test.
So to run only the tests for pig-latin:
EXERCISE=pig-latin dart test

@HornMichaelS Thank you so much. Where did you find that?

Just looking at the code for test/exercises_test.dart - I don't think it's documented.

Oh, that's totally not where I was looking for test scripts. In languages I've worked in the scripts would be in bin/ and the library tests would be in test. Thanks! I'll open a PR to document it.

The exercises_tests is kind of a script, but it's really a test suite to run all the tests of any practice or curriculum exercise.


Feature/opml

OPML Test Suite
OPML refactor
Fix various bugs at the controller level
Added podcast support

WIP, test suite fails every now and then

something weird with og log output

Its ready @tbarbugli


Update sbt-mdoc to 2.2.4

Updates org.scalameta:sbt-mdoc from 2.2.3 to 2.2.4.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "sbt-mdoc" } ]

labels: sbt-plugin-update, semver-patch

Codecov Report

Merging #122 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #122   +/-   ##
=======================================
  Coverage   97.04%   97.04%
=======================================
  Files          34       34
  Lines         169      169
  Branches        1        1
=======================================
  Hits          164      164
  Misses          5        5

Flag
Coverage Δ

#unittests
97.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


grafana: Ensure Dashboard Vars Depending on LabelNames; LabelValues; Series are limited to certain time period / Add ability to set default in querier

Currently unlimited time range for Label and LabelValues and Series Thanos APIs return and touch all the data as .. expected. This is great, but it does not make much sense for most of the cases.
We recently added time range parameters to those API endpoints for both Thanos & Prometheus: https://github.com/thanos-io/thanos/issues/1811 However we need to make sure that Grafana utilizes those. Otherwise Grafana always load years worth of series and labels every time params are refreshed.
Let's:

Add issue on Grafana side
Allow setting a sane default if time params are not specified. This is what Cortex team is doing - they allow fetching last 2h for non specified time ranges.

We also expect those endpoints to be cached in next iterations of Query Frontend (cc @kakkoyun ) but still this issue is valid.
Help wanted (:

xref: https://github.com/grafana/grafana/issues/11184

Add issue on Grafana side
https://github.com/grafana/grafana/issues/27537

Allow setting a sane default if time params are not specified. This is what Cortex team is doing - they allow fetching last 2h for non specified time ranges.

https://github.com/thanos-io/thanos/pull/3147

I'll handle what's left for this issue soon.

/remind me to finish this in a week

/remind me to finish this in a week

@kakkoyun Was this issue solved already by #3147?

@yeya24 Only a minor part is left, we need to adjust the default values for the interval. I want to do it for 0.20.
/remind me to finish this next Monday


dashboard: layout DAG algorithm in a single function

streamChartHelper.js looks too complex for now. We can only retain the layout algorithm and refactor it. Afterwards, someone can help implement the actual render procedure.

fixed with https://github.com/risingwavelabs/risingwave/pull/5180


Multiqubit gate kernel

Implements the multi-qubit gate kernel following the same approach as qiboteam/qibojit#20. Note that this is approach does not use hard-coded kernels like the numbers recently quoted in qiboteam/qibojit#21.  I see a large difference in comparison to the table in the qibojit repo.

@stavros11 thanks, but does the qibojit numbers are correct? I see a large difference in comparison to the table in the qibojit repo.

Yes, all numbers in this table are correct. The difference with the times in the qibojit repo (for example here) is because there I use the hard-coded qibojit kernels which have higher compilation times but better simulation. Here I am using the branch from qiboteam/qibojit#20 because this is the equivalent to the Tensorflow implementation I did here. The difference is that here ntargets is a variable that takes a value during run-time, while in the hard-coded it takes its values during compile time. We can use the latter approach for tf too and may lead to even better simulation times.


How to unmarshall a XML without namespace using the Jakarta XML Unmarshaller?

I am trying to unmarshal an XML into a Java object using the jakarta.xml.bind.Unmarshaller but my XML does not contain some of the default namespaces as they are part of the XSD already. How to either explicitly mention to Unmarshaller to ignore these default namespaces or add them to the XMLStreamReader at the runtime so Unmarshaller can use them?
Following is the XML which fails to unmarshal to Java object:
<foo>
 <bar>Hello</bar>
</foo>

If I change to this then it would work as expected:
<foo xmlns="http://tempuri.org/">
 <bar>Hello</bar>
</foo>

I looked at a few examples on StackOverflow but the provided approach does not work. I do not wish to use an additional library such as Sax rather I want to handler at the XMLStreamReader level or by using the Unmarshaller.
How to achieve this?
Following is the method for doing the unmarshalling of XML:
Main.class:
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBException;
import jakarta.xml.bind.Unmarshaller;

import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import java.io.InputStream;

public class Main {
    public static void main(String[] args) throws XMLStreamException, JAXBException {
        final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
        inputFactory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
        inputFactory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, Boolean.FALSE);
        final InputStream inputStream = Main.class.getResourceAsStream("/SampleXML.xml");
        final XMLStreamReader xmlStreamReader = inputFactory.createXMLStreamReader(inputStream);
        final JAXBContext jaxbContext = JAXBContext.newInstance("io.convert.test", Thread.currentThread().getContextClassLoader());
        final Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
        xmlStreamReader.next();

        while (xmlStreamReader.hasNext()) {
            Object event = unmarshaller.unmarshal(xmlStreamReader, Foo.class).getValue();
            System.out.println(event.toString());
        }
    }
}

Foo.class:

import jakarta.xml.bind.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "foo")
@XmlType(
        name = "Foo",
        propOrder = {
                "bar",
                "anyElements"
        },
        factoryClass = ObjectFactory.class,
        factoryMethod = "createFoo")
@ToString(callSuper = true)
public class Foo {
    private String bar;

    @XmlAnyElement(lax = true)
    private List<Object> anyElements;
}

ObjectFactory.class:
import jakarta.xml.bind.annotation.XmlRegistry;

@XmlRegistry
public final class ObjectFactory {
  private ObjectFactory() {}
  public static Foo createFoo() {
    return new Foo();
  }
}

An error occurred when XML used without namespace:
Exception in thread "main" jakarta.xml.bind.UnmarshalException
 - with linked exception:
[Exception [EclipseLink-25004] (Eclipse Persistence Services - 4.0.2.v202306161219): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,15]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?test&test:one]
	at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:1132)
	at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:471)
	at io.openepcis.convert.test.Main.main(Main.java:24)
Caused by: Exception [EclipseLink-25004] (Eclipse Persistence Services - 4.0.2.v202306161219): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document

@Aravinda93
You must create a package-info.java on io.convert.test package to set elementformdefault (unset by default) to unqualified
@XmlSchema(elementFormDefault = XmlNsForm.UNQUALIFIED)
package io.convert.test;

import jakarta.xml.bind.annotation.XmlNsForm;
import jakarta.xml.bind.annotation.XmlSchema;

If you don't inform this attribute, JAXB always expects qualified namespace to unmarshall execution.
Regards,
Antonio.

@antoniosanct
Thanks a lot for the response. I tried the approach you suggested but still getting the following error:
jakarta.xml.bind.UnmarshalException
 - with linked exception:
[Exception [EclipseLink-25004] (Eclipse Persistence Services - 4.0.2.v202306161219): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,15]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#ElementPrefixUnbound?test&test:on

I have added your package-info.java in the same package as the other class, but still getting the error. Following is my project structure:

e]
I am not using the NamespaceIgnoringXMLStreamReader class since I have added the package-info.java:
@XmlSchema(elementFormDefault = XmlNsForm.UNQUALIFIED)
package io.convert.test;

import jakarta.xml.bind.annotation.XmlNsForm;
import jakarta.xml.bind.annotation.XmlSchema;

Following is my main class:
public class Main {
    public static void main(String[] args) throws XMLStreamException, JAXBException {
        final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
        final InputStream inputStream = Main.class.getResourceAsStream("/SampleXML.xml");
        final XMLStreamReader xmlStreamReader = inputFactory.createXMLStreamReader(inputStream);
        final JAXBContext jaxbContext = JAXBContext.newInstance("io.openepcis.convert.test", Thread.currentThread().getContextClassLoader());
        final Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();

        xmlStreamReader.next();
        try {
            while (xmlStreamReader.hasNext()) {
                Object event = unmarshaller.unmarshal(xmlStreamReader);
                if (event instanceof Foo foo) {
                    System.out.println(foo);
                }
            }
        } catch (UnmarshalException e) {
            e.printStackTrace();
        }
    }
}

@antoniosanct Can you please let me know if I need to change anything to make the unmarshaling work?

@Aravinda93
I don't have these error using JDK 21 and jaxb-ri master branch. Maybe some dependency are conflicting in your project and avoids that unmarshalling process works fine. I'm only using this deps:
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.2</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>jakarta.xml.bind</groupId>
			<artifactId>jakarta.xml.bind-api</artifactId>
			<version>4.0.1</version>
		</dependency>
		<dependency>
			<groupId>org.glassfish.jaxb</groupId>
			<artifactId>jaxb-runtime</artifactId>
			<version>4.0.5-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId>
			<version>4.0.5-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<version>1.18.30</version>
		</dependency>

Regards,
Antonio

@antoniosanct Thanks there were some dependency problem it works now.


Cosmos track 2 migration

Moves Cosmos Track 2 code (V3 branch) as it is to 'sdk/cosmos/' location in central repo.
Follow up PR to:

rename sdk/cosmos/sdk to sdk/comos/azure-cosmos
Build Integration to central repo track 2 build.
Live + Emulator Tests Dev Ops pipeline integration.
Checkstyle + Spotbugs cleanup.

Looks like you need to update docsettings to fix the readme errors and I left a few comments about directory names otherwise this looks reasonable for an initial port. We will of course want to more integrate it into the repo as we start to do work on it and clean-up some things. It would be good to file an issue (or set of issues) to track that work.


Friendly script for distros based on Ubuntu

Proposed changes
Use -u to show upstream LSB data.
I use Elementary OS, it's a distro based on Ubuntu and with the command lsb_release -cs the output is juno.
If I use lsb_release -u -cs the output is bionic

Deploy preview for docsdocker ready!
Built with commit cbf5def115bea4d00933b887bad1f8edccc5bac9
https://deploy-preview-7585--docsdocker.netlify.com

@thaJeztah can you please have a look? Thanks!

Thank you for your feedback! We have received and reviewed your changes. To remain consistent with existing technical specifications, we did not incorporate your suggested changes. If you have additional concerns, submit a new issue in this repository.


Improve compatibility between python2 and python3

use dot imports for local imports
use six.print_ instead of python2 print statement

Coverage decreased (-0.0006%) to 0.662% when pulling a9c6e3b7940648a6c2c95ac71b7544b3b623b568 on enricobacis:python3 into 14e50dbe3bcafa2224083606855038bba9a4a5c4 on lakewik:master.

I'll recreate the PR on the develop branch


Add retry=0 to always retry proxy

This PR fixes the issue where the UI will stop trying to send requests to the API when it discovers the API is down. Currently even if the API comes back up the UI will not attempt to send traffic to it and will require the container to be restarted. This configures httpd to always retry the proxy and to retry immediately.

@nireeshT lgtm , can you approve this?


Set sampling per-texture-basis

Right now we set MAG_POINT sampling universally - however this breaks non-pixel-perfect applications when scaling.
See with MAG_POINT

And without MAG_POINT

It's a fairly quick fix, bgfx_set_texture should respect texture clamp/sampling via uint32_t.max, and in texture construction we should allow overriding the sampling. Make a clearly documented API on this one to avoid confusion.

It should be pointed out that you're kinda stuck with MAG_POINT if using dense tilesheets - and ideally a logical scale should be used with MAG_POINT. This is perfect for 2d pixel art, tiled maps, etc, but not so great for more modern styles.

Note both screenshots are at 1920x1080p fullscreen w/ vulkan, logical render size 1366x768.

Also we need to stop abusing npow2 textures in our demos. >_>


Fix minor bugs/changes in the RKI algorithm interface

improved naming of output variables for visualization team,

using of dynamic path for saving and retrieving of json files with input/output variables,

catching variational phrases for negative/positive/not detected test result in the AQL,

temporary saving of AQL results for faster local retrieving for visualization,

[x] catching variational phrases for negative/positive/not detected test result in the AQL,

temporary saving of AQL results for faster local retrieving for visualization -> in json


Build plugin extra steps

Current

Launchrctl may include plugins (adding commands and other stuff) and build a binary as a result, as defined in documentation)

launchrctl build -p githib.com/example/plugin

Building is then a rather straight forward 1-step process

Expected

Some plugin may require to execute additional steps during their build process
For instance in case of web-ui plugin, a dist archive containing compiled frontend code is stored remotely and need to be downloaded to be embeded in final binary
It means that launchrctl need to be update to give the ability to plugins to define extra build steps

https://github.com/launchrctl/launchr/pull/42
https://github.com/launchrctl/web/pull/49


playbooks/byo/config.yml could not be found

This playbook does not exist. Does it matter that it didn't run?
https://github.com/onknows/terraform-azure-openshift/blob/eec212b3baa0d1f410599319c99d2281ada11b8b/scripts/install.sh#L45

This needs to be changed to playbooks/byo/config.yml

This code is old, a lot of things have changed in OpenShift since.
All the issues you have reported are due to changes in the way it has to be installed now.
Sorry but I no longer have access to an Azure account in order to test it again, feel free to modify it yourself.

I've updated it to Openshift 3.9


Error at installing: ER_ERROR_FIRST not declared

For me, pip install oursql fails with the following error message
oursqlx/_exceptions.c:620:24: error: 'ER_ERROR_FIRST' was not declared in this scope
                 if (err >= ER_ERROR_FIRST && err <= ER_ERROR_LAST)
oursqlx/_exceptions.c:620:49: error: 'ER_ERROR_LAST' was not declared in this scope
                 if (err >= ER_ERROR_FIRST && err <= ER_ERROR_LAST)

The same is true when cloning the repo manually and installing via python setup.py build_ext. I tested it with and without Cython installed (the latter only for the pip-based installation). Apart for my default compiler clang (v. clang-700.1.76) I tested it also for gcc (v. gcc 5.2.0 --without-multilib). I'm running OS X 10.11.1.
Commenting out lines 620 and 621 (and removing the else from line 622) in _exceptions.c solves the problem for me, but this surely suppressed some errors, so it's only an intermediate solution.

Same for me:
pip install oursql
...
clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c oursqlx/compat.c -o build/temp.macosx-10.11-x86_64-2.7/oursqlx/compat.o -I/usr/local/Cellar/mysql/5.7.9/include/mysql -fno-omit-frame-pointer
In file included from oursqlx/compat.c:55:
oursqlx/_exceptions.c:620:24: error: use of undeclared identifier 'ER_ERROR_FIRST'
if (err >= ER_ERROR_FIRST && err <= ER_ERROR_LAST)
^
oursqlx/_exceptions.c:620:49: error: use of undeclared identifier 'ER_ERROR_LAST'
if (err >= ER_ERROR_FIRST && err <= ER_ERROR_LAST)
^
2 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------

(env)mbp:devportal allexx$ clang --version
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posigcc
(env)mbp:devportal allexx$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix

This broke because of a change in recent versions of mysql. ER_ERROR_FIRST is defined in /usr/local/include/mysql/mysqld_error.h. This constant was removed somewhere between mysql 5.6.26 and mysql 5.7.9. Switching to mysql 5.6.26 should solve the issue until oursql devs update their code.

I had the same error, this solved it for me:
1- Download the package manually.
2- Go to: DOWNLOAD_DIR/oursql-<IP_ADDRESS>/oursqlx/_exceptions.c
3- Comment the last “default” (from line 613 to line 623)
4- Run: python setup.py install


[nemo-qml-plugin-email] Simplify body creation.

Adding attachment already move the body
to a first part and set a multipart/mixed
content type, in the QMF code.
@pvuorela, still looking on attachment code, I've noticed that some code were duplicated between QMF and the nemo plugin. But, it's a bit tricky in the sense, that setAttachments() actually changes the multipart to multipart/mixed and clear the existing parts. Which is basically what was done in the plugin. But the clear parts in the plugin was done before setting the body. From my understanding, this should not have any impact. Tests also show no regression (creating a draft with attachment, then reediting the draft to remove the attachment for instance). But I'm not 100% sure because of the slightly different code path and QMF being quite a complex code.
Another question also: I needed to add the change of attachment flag because removing the attachments from a draft didn't remove the icon in the email list (already existing bug). I think, this does not belong to here and should be done at QMF level, since setting the flag is done at QMF level by the call to setAttachments(). But I'm not completely sure where to put it. It seems to me that it should be in ::setBody(). Looking at the code there, I've noticed that you can set a body to a partcontainer that already contains parts (_messageParts is non empty), which is basically what we're doing when removing the attachments of draft with attachments. In that case, the _messageParts is not cleared, and you can still have ::hasBody() that is true and ::partCount() that is strictly greater than 0. Which is inconsistent as far as I can say. Do you agree with me ? Should I provide a patch in QMF that empties the parts when setting a non empty body (and as a consequence unset the attachment flag) ?

So, suppose the clearParts omission is now requiring the messagingframework update to go in, right?

Indeed, I'm waiting for the naming scheme patch to go in upstream, and I'll update sailfishos/messagingframework#15 accordingly. Since upstream now contains https://codereview.qt-project.org/c/qt-labs/messagingframework/+/531966, merging sailfishos/messagingframework#15 will allow to accept this PR.

Finaly, since setBody() is resetting the attachment flag in QMF, I've removed the flag change from this piece of code. With the latest PR from messagingframework, it is now possible to check this PR. Thank you @pvuorela


[Bug] CRDs not included in artifact pull for 5.9.1 release

Describe the bug
CRDs missing from 5.9.1 version of the grafana-operator manifests when using flux pull artifact
Version
v5.9.1
To Reproduce
Steps to reproduce the behavior:

run flux pull artifact oci://ghcr.io/grafana/kustomize/grafana-operator:v5.9.1 --output ./grafana-operator/ to pull the manifests

Expected behavior
A clear and concise description of what you expected to happen.
Expected CRDs to be included as they were in previous releases, however they are absent with the 5.9.1 release version.
Suspect component/Location where the bug might be occurring
Please provide this if you know where this bug might occur otherwise leave as unknown
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):

OS: [e.g. Linux,Fedora,Mac]
Grafana Operator Version [e.g. v5.0.0]
Environment: [e.g Openshift,Kubernetes,minikube etc. please specify versions]
Deployment type: [e.g Openshift OLM/Helm/kustomize]
Other: [Other variables/things that might be relevant to this bug, versions of other services e.g. operator-sdk]

Additional context
Add any other context about the problem here.

Thanks for reporting this! #1562 aims to fix the flux artifact publishing process.

We'll close it once the artifact for v5.9.1 is replaced

@ak185158 We'll soon publish version v5.9.2 (@theSuess is already working on this), it should contain correct artifact this time. Sorry for the inconvenience!

v5.9.2 is now released and pullable via flux!


Crash when client sends non utf-8 data

Probably it was latin-1. Traceback here:
mud_1           | Traceback (most recent call last):
mud_1           |   File "./server.py", line 106, in <module>
mud_1           |     sessions[sender_client].process_message(message)
mud_1           |   File "./server.py", line 24, in process_message
mud_1           |     self.current_verb.process(message)
mud_1           |   File "/usr/src/app/verbs/go.py", line 17, in process
mud_1           |     elif [exit in room_exit for room_exit in self.session.user.room.exits.keys()].count(True) > 1:
mud_1           |   File "/usr/src/app/verbs/go.py", line 17, in <listcomp>
mud_1           |     elif [exit in room_exit for room_exit in self.session.user.room.exits.keys()].count(True) > 1:
mud_1           | TypeError: 'in <string>' requires string as left operand, not Quitter
mud_1           | Traceback (most recent call last):
mud_1           |   File "./server.py", line 93, in <module>
mud_1           |     server.update()
mud_1           |   File "/usr/local/lib/python3.8/site-packages/telnetserver/telnetserver.py", line 123, in update
mud_1           |     self._check_for_messages()
mud_1           |   File "/usr/local/lib/python3.8/site-packages/telnetserver/telnetserver.py", line 288, in _check_for_messages
mud_1           |     data = cl.socket.recv(4096).decode(self.encoding)
mud_1           | UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 5: invalid continuation byte

This was resolved by b2cb360.

This was resolved by b2cb360.


useAsyncData is not cleared when using defineNuxtComponent

Environment

Operating System: Linux
Node Version:     v20.11.1
Nuxt Version:     3.11.2
CLI Version:      3.11.1
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools
Runtime Modules:  -
Build Modules:    -

Reproduction
https://github.com/daniluk4000/nuxt-refresh-data-duplicate

yarn
yarn dev
Go to index page
Go to second page
Watch second page async data to be repeated
If you do that many times, you will find many duplicate repeates when coming back to first page

Describe the bug
When you use useAsyncData on one page and navigate to another, and then try to use refreshNuxtData, all previous async datas are triggered even when page was already unmounted, which leads to falsey errors and/or duplicate requests.
Additional context
I was like "HAHA FOUND YA LENNY" when I got the reason for this. We are facing weird issues in our project and I wasn't able to reproduce it on clear project until I finally got the reason for this.
Logs
No response

Caused by: https://github.com/nuxt/nuxt/pull/26554/files#diff-6b54d0385d537fe28bf4bca3e034a7de05f5a2fef365d3c1052a119df884313bL381


Changing chessboard style to flexbox

By changing the display of the chessarea to flexbox, it is will be easier for things to be centered like pieces, as well as it will help resize the chessboard on the html embed within the svelte project.

Fixed with 3423b3b8b3148f65a0cd64d6c236da5f9d814ca1


Rollover error - cannot verify enc sig

I've run into this one:
2022-01-28 12:04:55  WARN daemon::model::cfd: Rollover failed: Rollover protocol failed: CET signatures don't verify: enc sig on CET does not verify: failed to verify encsig spend tx: failed to verify adaptor signature order_id=e1f0caea-a84f-4805-a95b-de1f46917f1a
One of the side effects of it is that the CFD gets stuck in "Rollover Proposed" state for longer than usual.
In eventually went back to open, but I have no idea whether the rollover worked or not via the UI - a "Funded until:" or similar field would be really beneficial.

Certainly a bug but nothing critical. The error handling (timeout waiting for the other parties response) worked as expected.

but I have no idea whether the rollover worked or not via the UI

I am tempted to say the we shouldn't even expose when exactly rollover happens. I am not against a "Funded until" field but it is not really in the spirit of a CFD so I would like to hide the technical details of how we achieve perpetual positions. For example, if we would precompute 10 commit transactions that are all timelocked so we might not use them, what should Funded until display?

closed because it might be outdated.

might be the same as: #1617


Docstrings for tasks library (protos) are wrapping references causing failures

If you wrap a reference so that the '<' that starts a ref is on a different line than the ref it will inject spaces to the link and fail. See the following commit/line for an example:
https://github.com/GoogleCloudPlatform/google-cloud-python/commit/568779a0346f478dfdb49fb8433262cc17d98d33#diff-ed5bfbb1dceb1a0c0c401ca805fa9b16L443

@lukesneeringer Updates?

@lukesneeringer Is this issue still happening?

@lukesneeringer @hzyi-google Any updates on this? We're out of SLO.

Please correct me if I'm wrong, but this looks like a protobuf generator issue, at least at a glance.


BluetoothLE CPPwinrt doesn't build

Hi there,
I am trying to build the BluetoothLE cppwinrt solution/project in Visual Studio 16.2.3 but the sample doesn't build - C# project does work though- It fails with loads of syntax errors/missing types etc - attached- I have also added "microsoft.windows.cppwinrt.2.0.190730.2.nupkg" to my visual studio nupkg.
Cheers,
Kard-Anne
cppwinrt_errors.txt

I think you have an outdated version of the XAML compiler. Make sure you're using the one in 10.0.18362.0.


Use direct dart API from dart:ui_web rather than JS shim.

This is based off (and dependent on) these changes in the web engine that expose web-specific APIs: https://github.com/flutter/engine/pull/40608

CI is obviously not going to pass until after I merge https://github.com/flutter/engine/pull/40608, but things do appear to work for me locally when I run with --local-web-sdk and the built version of that branch.


404 node-v111-linux-x64-Release.tar.gz

Describe the bug
this link is dead: https://github.com/maplibre/maplibre-gl-native/releases/download/node-v5.2.0/node-v111-linux-x64-Release.tar.gz
node-pre-gyp http GET https://github.com/maplibre/maplibre-gl-native/releases/download/node-v5.2.0/node-v111-linux-x64-Release.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/maplibre/maplibre-gl-native/releases/download/node-v5.2.0/node-v111-linux-x64-Release.tar.gz

We are only supporting node stable releases 14,16,18 right now, see https://github.com/maplibre/maplibre-gl-native/tree/main/platform/node
we aren't generating binaries for node 19 (abi 111) , which is why there is not binary for node-v111 . You can see at https://github.com/maplibre/maplibre-gl-native/releases/tag/node-v5.2.0 that file doesn't exists

There were changes in the last release that allows maplibre-native to build for node 19, but it is currently not in the list of versions we are publishing ( https://github.com/maplibre/maplibre-gl-native/blob/main/platform/node/scripts/publish.sh#L12 )


Check consistency with BEP032 version 0.2.0

BEP032 had some updates recently. We should check for consistency between the current probeinterface version and BEP032 version 0.2.0.

@JuliaSprenger can we close this?


.github/cilium-actions: remove github action helper message

Setting a label to avoid the PR from being merged should be sufficient
for a Cilium janitor to set the appropriate release note label of a
particular PR. Having a helper message might also be confusing for new
corners where they won't be able to set labels for a PR so it might be
confusing for them to fix the errors presented by the maintainer's
little helper.
Signed-off-by: André Martins<EMAIL_ADDRESS>

Coverage increased (+0.02%) to 36.94% when pulling 6cd37c517050d7c59fb3772a4287a1b5a970022b on aanm:pr/remove-gh-action-helper-message into b99c7b82bc692e53c79806e2c81ed0fe1bd01ab9 on cilium:master.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/395 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target.git

Docs Build status updates of commit 8efc1ee:
:clock10: Pending: waiting for processors (14 builds ahead of you)
:warning: Docs Build is busy, currently there are 14 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 8efc1ee:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error] An exception occurred during the build process. Please check the raw log and retry building your content again. If the issue persists, please open a ticket in https://SiteHelp and include the URL of publishing report as well as below information: One or more errors occurred..

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Remove devlace reference from release pipeline

Encountered the following error in the release pipeline:
The pipeline is not valid. Could not get the latest source version for repository devlace/mdw-dataops-clone hosted on https://github.com/ydaponte/mdw-dataops-fork using ref refs/heads/adf_publish. GitHub reported the error, "Not Found"
20241115.1
The devlace/mdw-dataops-clone reference needs to be replaced by a dynamic reference for the current user

It seems that the seed command didn't worked properly. It seems to be working fine now. Closing the issue.


Feature: target-host token expansion in get-file

As far as I can tell, --get-file requires exactly two arguments, both literal strings - the file to get, and the destination to write to. And no token expansion is supported, so you can't fetch the same file from lots of targets in one run and have each land in a unique filename.
It would be nice to be able to cme smb targetsfile ... ---get-file '\path\to\file' '%TARGET%_outfile' or similar.

@mpgn Added a --append-host flag to address this request.
crackmapexec smb ../hosts.txt -u Administrator -p 'Welcome1234!' --get-file tempfile.txt.txt test --append-host
SMB         <IP_ADDRESS>  445    DC01             [*] Windows 10.0 Build 17763 x64 (name:DC01) (domain:crash.lab) (signing:True) (SMBv1:False)
SMB         <IP_ADDRESS>  445    DC01             [*] Windows 10.0 Build 20348 x64 (name:DC01) (domain:burn.lab) (signing:True) (SMBv1:False)
SMB         <IP_ADDRESS>  445    DC01             [+] crash.lab\Administrator:Welcome1234! (Pwn3d!)
SMB         <IP_ADDRESS>  445    DC01             [*] Copy tempfile.txt to test
SMB         <IP_ADDRESS>  445    DC01             [+] File tempfile.txt was transferred to test_<IP_ADDRESS>
SMB         <IP_ADDRESS>  445    DC01             [+] burn.lab\Administrator:Welcome1234! (Pwn3d!)
SMB         <IP_ADDRESS>  445    DC01             [*] Copy tempfile.txt to test
SMB         <IP_ADDRESS>  445    DC01             [+] File tempfile.txt was transferred to test_<IP_ADDRESS>

Woo, awesome, thanks!

thanks you @twosevenzero


Set event.sourceEvent in ExecuteCodeAction callback for pointer triggers

When an ExecuteCodeAction is created with a pointer trigger, the callback's ActionEvent.sourceEvent member is set to undefined.
This change sets the callback's ActionEvent.sourceEvent member to the original event causing the action to be triggered.
Requested on forum: https://forum.babylonjs.com/t/action-enhancements/38043.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/13518/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13518/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13518/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/13518/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/13518/merge
https://gui.babylonjs.com/?snapshot=refs/pull/13518/merge
https://nme.babylonjs.com/?snapshot=refs/pull/13518/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/13518/merge#BCU1XR#0


Make regiontrigger ranges appear in HITBOXDEBUG

This was removed at some point and i hate not having it.

https://github.com/alesan99/mari0_ae/pull/443


Swap installer names

Fixes the windows hosting bundle build. The wrong variable was being set for each installer.

@muratg @shirhatti @Eilon let's figure out if/how we are going to deliver this to the preview3 hosting bundle.

Fixes: https://github.com/aspnet/AspNetCore/issues/8249

We decided we wouldn't fix this in preview3. Changing to master.

@mikaelm12 another failure
  com.microsoft.signalr.HubConnectionTest > TransportAllUsesLongPollingWhenServerOnlySupportLongPolling() FAILED
      java.lang.RuntimeException at HubConnectionTest.java:1518
          Caused by: java.lang.Exception at HubConnectionTest.java:1518


AmazonApiGatewayManagementApiClient WebSocket PostToConnectionRequest Forbidden

Hi,
we are facing the same issue of "Forbidden Exception",  there is no VPC for the lambda and also the API gateway. I am using AWSApiGatewayManagementClient to do the request. . Below is the code
AWS API Gateway Client
AmazonApiGatewayManagementApiClient apiClient = new AmazonApiGatewayManagementApiClient(new AmazonApiGatewayManagementApiConfig
                {
                    ServiceURL = AWSHelper.WebSocketEndPoint
                });

Connection Request
var postConnectionRequest = new PostToConnectionRequest
                    {
                        ConnectionId = connectionId,
                        Data = stream
                    };
var connectionresponse = await apiClient.PostToConnectionAsync(postConnectionRequest);

Above connectionId is from DynamoDB and stream is a message text.
Below is the log from the cloud watch for the request  and I replaced actual apiid with {api-id} in the below screenshot
"Config": {
        "RegionEndpointServiceName": "execute-api",
        "ServiceVersion": "2018-11-29",
        "UserAgent": "aws-sdk-dotnet-coreclr/<IP_ADDRESS> aws-sdk-dotnet-core/<IP_ADDRESS> .NET_Core/4.6.28325.0 OS/Linux_4.14.165-102.205.amzn2.x86_64_#1_SMP_Fri_Feb_14_22:46:57_UTC_2020 exec-env/AWS_Lambda_dotnetcore2.1",
        "SignatureMethod": 1,
        "SignatureVersion": "4",
        "UseAlternateUserAgentHeader": false,
        "RegionEndpoint": null,
        "ServiceURL": "https://{api-id}.execute-api.ap-southeast-1.amazonaws.com/prod",
        "UseHttp": false,
        "AuthenticationRegion": null,
        "AuthenticationServiceName": "execute-api",
        "MaxErrorRetry": 4,
        "IsMaxErrorRetrySet": false,
        "LogResponse": false,
        "ReadEntireResponse": false,
        "BufferSize": 8192,
        "ProgressUpdateInterval": 102400,
        "ResignRetries": false,
        "AllowAutoRedirect": true,
        "LogMetrics": false,
        "DisableLogging": false,
        "ProxyCredentials": null,
        "Timeout": null,
        "UseDualstackEndpoint": false,
        "ThrottleRetries": true,
        "CorrectedUtcNow": "2020-06-10T04:39:08.0045979Z",
        "ClockOffset": "00:00:00",
        "DisableHostPrefixInjection": false,
        "EndpointDiscoveryEnabled": false,
        "EndpointDiscoveryCacheLimit": 1000,
        "RetryMode": 0,
        "FastFailRequests": false,
        "CacheHttpClient": true,
        "HttpClientCacheSize": 2,
        "ReadWriteTimeout": null,
        "ProxyHost": null,
        "ProxyPort": 0,
        "MaxConnectionsPerServer": null,
        "HttpClientFactory": null
      }

Below is the exception
{
      "ErrorType": 2,
      "ErrorCode": "ForbiddenException",
      "RequestId": "5b0d0a0a-2f75-4ed6-a8b6-b439b4074938",
      "StatusCode": 403,
      "Retryable": null,
      "Message": "Forbidden",
      "Data": {
      },
      "InnerException": {
        "Response": {
          "StatusCode": 403,
          "IsSuccessStatusCode": false,
          "ContentType": "application/json",
          "ContentLength": 23,
          "ResponseBody": {
          }
        },
        "Message": "Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown.",
        "Data": {
        },
        "InnerException": null,
        "StackTrace": " at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken)\n at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)",
        "HelpLink": null,
        "Source": "AWSSDK.Core",
        "HResult": -2146233088
      },
      "StackTrace": " at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception)\n at Amazon.Runtime.Internal.ErrorHandler.ProcessException(IExecutionContext executionContext, Exception exception)\n at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext)\n at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext)\n at QI.TrackSynqUtilities.Serverless.Functions.NotifierEventHandler(APIGatewayProxyRequest request, ILambdaContext context) in D:\\QI\\BitbucketRepos\\tracksynqutilities\\QI.TrackSynqUtilities.Serverless\\Functions.cs:line 519",
      "HelpLink": null,
      "Source": "AWSSDK.Core",
      "HResult": -2146233088
    }

Below is the permission both for  lambda and deployment profile user
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "execute-api:*",
            "Resource": "*"
        }
    ]
}

I already checked the issue ticket at #1264  but could not find the solution, Can someone help on this?

HI
Any one can help on the above issue

Hi,
So is it confirmed a bug in SDK? If so when can the bug fix expected.

I don't think this is a bug as we know this works. The IAM permissions looks correct.  Can you give an example of what AWSHelper.WebSocketEndPoint is set to? I suspect you is not correct.

Hi @normj
Below is the full log of the connection client
 "apiClient": {
            "Config": {
                "RegionEndpointServiceName": "execute-api",
                "ServiceVersion": "2018-11-29",
                "UserAgent": "aws-sdk-dotnet-coreclr/<IP_ADDRESS> aws-sdk-dotnet-core/<IP_ADDRESS> .NET_Core/4.6.28325.0 OS/Linux_4.14.165-102.205.amzn2.x86_64_#1_SMP_Fri_Feb_14_22:46:57_UTC_2020 exec-env/AWS_Lambda_dotnetcore2.1",
                "SignatureMethod": 1,
                "SignatureVersion": "4",
                "UseAlternateUserAgentHeader": false,
                "RegionEndpoint": null,
                "ServiceURL": "https://5mikwqm1i8.execute-api.ap-southeast-1.amazonaws.com/prod",
                "UseHttp": false,
                "AuthenticationRegion": null,
                "AuthenticationServiceName": "execute-api",
                "MaxErrorRetry": 4,
                "IsMaxErrorRetrySet": false,
                "LogResponse": true,
                "ReadEntireResponse": false,
                "BufferSize": 8192,
                "ProgressUpdateInterval": 102400,
                "ResignRetries": false,
                "AllowAutoRedirect": true,
                "LogMetrics": false,
                "DisableLogging": false,
                "ProxyCredentials": null,
                "Timeout": null,
                "UseDualstackEndpoint": false,
                "ThrottleRetries": true,
                "CorrectedUtcNow": "2020-06-12T07:19:58.4984554Z",
                "ClockOffset": "00:00:00",
                "DisableHostPrefixInjection": false,
                "EndpointDiscoveryEnabled": false,
                "EndpointDiscoveryCacheLimit": 1000,
                "RetryMode": 0,
                "FastFailRequests": false,
                "CacheHttpClient": true,
                "HttpClientCacheSize": 2,
                "ReadWriteTimeout": null,
                "ProxyHost": null,
                "ProxyPort": 0,
                "MaxConnectionsPerServer": null,
                "HttpClientFactory": null
            }
        }

Thanks sorry I didn't fully realize what I was looking at.
So I see you are going to https://5mikwqm1i8.execute-api.ap-southeast-1.amazonaws.com/prod with prod being your API Gateway stage name. I suspect in API Gateway it is really called Prod with capital P. I can recreate the issue when I change the case of the stage name. I believe from the HTTP spec the casing of the resource path doesn't matter but by changing the casing it alters how the AWS SigV4 signing is computing causing a mismatch and the Forbidden error.

Hi @normj
Thanks the problem is with the casing only and now it no more Forbidden exceptions after fixing it but isn't it a bug in the SDK and the AWS SigV4 should follow the HTTP spec? Also there is no proper documentation on the SDK for this specific part.

Hi @normj
any comment on the above question?

We have the same issue with an ECS task that is in a private subnet inside a VPC and tries to call API GW.
`
EndpointConfiguration endpointConfiguration = new EndpointConfiguration(properties.getUrl(), properties.getRegion());
AmazonApiGatewayManagementApiAsync api =
AmazonApiGatewayManagementApiAsyncClientBuilder
.standard()
.withEndpointConfiguration(endpointConfiguration)
.build();
PostToConnectionRequest request =
    new PostToConnectionRequest()
        .withConnectionId(terminal.getConnectionId())
        .withData(ByteBuffer.wrap(token.getBytes()));

api.postToConnectionAsync(request).get();

`
Our ecs task's role has execute-api:* policy attached.
Egress allows all traffic.

Hey @chukkalasandeep,
Sorry for the delayed response. You are correct that the documentation on this should be improved to properly indicate that SigV4 is case-sensitive. That said, this is not something we are going to change.
For now, I am going to leave the issue open, but indicate that this should be a fix with the documentation.
😸 😷

Closing as the issue was casing. I agree it should be case insensitive but that is out of the scope of what we can do in the SDK.


Rename delegationDeposit to deposit

Changelog
- description: |
    Rename the `delegationDeposit` field in the output of the `stake-address-info` query to `deposit
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
This closes #417. The other possible solution discussed there, namely to distinguish between the delegation deposit and the other deposits associated to the stake address, seems impracticable: The ledger maintains only one deposit for each staking credential.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated. See Running tests for more details
[ ] Self-reviewed the diff

I'm a little bit concerned there is a golden test change to match.  It is possible to add a golden test?


Make sorting of the *-bucket consistent and controllable

The spot taken by the *-bucket row in the results of a query can vary from query to query (and sometimes for the same query issued before or after ANALYZE;!).
In a nutshell, the Sort plan node may or may not be pushed down by the planner, to a spot before the Agg / BucketScan nodes. If it is then the ORDER BY sorting will not impact it, meaning it will come first. In other circumstances, if the Sort node comes last, it is impacted by ORDER BY.
Example query where it didn't get pushed down:
SELECT age, count(*), diffix.is_suppress_bin(*) FROM customers GROUP BY 1 ORDER BY 1 NULLS FIRST
 Sort
   Sort Key: age
   ->  Custom Scan (BucketScan)
         ->  HashAggregate
               Group Key: age
               ->  Seq Scan on customers

And where it did (because id has many unique columns per ANALYZE;, and the HashAggregate has been changed to Sort -> GroupAggregate:
prop_test=# explain SELECT id, count(*), diffix.is_suppress_bin(*) FROM customers GROUP BY 1 ORDER BY 1 NULLS LAST;
 Custom Scan (BucketScan)
   ->  GroupAggregate
         Group Key: id
         ->  Sort
               Sort Key: id
               ->  Seq Scan on customers

Ideas from slack thread:

ORDER BY volatile_func(id) where that function does nothing but is marked as VOLATILE
Extract the ORDER BY clause from the query plan and insert the *-bucket conformant to this order. As in, whilst we emit the buckets, we "wait" for the first bucket which doesn't satisfy the sorting criteria, and then emit the *-bucket
~prepend~ Append an ORDER BY is_suppress_bin(*) and let the planner figure it out

Unfortunately, when trying (3.) manually, I ran into more problems, where the *-bucket was missorted, likely due to an Incremental Sort node being used:
SET pg_diffix.session_access_level = 'direct'; DELETE FROM pg_seclabel WHERE provider = 'pg_diffix' AND label = 'aid'; SECURITY LABEL FOR pg_diffix ON COLUMN taxi.hack IS 'aid'; SET pg_diffix.strict = off; SET pg_diffix.noise_layer_sd = 0.0;SET pg_diffix.low_count_layer_sd = 0.5 ; SET pg_diffix.low_count_min_threshold = 1;SET pg_diffix.low_count_mean_gap = 0;SET pg_diffix.outlier_count_min = 0;SET pg_diffix.outlier_count_max = 0;SET pg_diffix.top_count_min = 1;SET pg_diffix.top_count_max = 1; SET pg_diffix.salt = "diffix"; SET pg_diffix.session_access_level = 'anonymized_trusted'; \pset pager off

SELECT sf_flag, dropoff_datetime FROM taxi GROUP BY 1, 2 ORDER BY 1 NULLS FIRST, 2 NULLS FIRST, diffix.is_suppress_bin(*) DESC LIMIT 40;

(...SNIP...)
         | 2013-01-08 00:24:00
         | 2013-01-08 00:24:21
         | 2013-01-08 00:25:00
         | 2013-01-08 00:26:00
         | 2013-01-08 00:27:00
 *       | *
         | 2013-01-08 00:28:00
         | 2013-01-08 00:29:00
         | 2013-01-08 00:30:00
         | 2013-01-08 00:31:00
         | 2013-01-08 00:32:00
         | 2013-01-08 00:33:00
         | 2013-01-08 00:34:00
         | 2013-01-08 00:35:00
(40 rows)

As you can see above, the *-bucket row doesn't observe the requested sorting. reference is getting this right.
The Incremental Sort node:
prop_test=# explain SELECT sf_flag, dropoff_datetime FROM taxi GROUP BY 1, 2 ORDER BY 1 NULLS FIRST, 2 NULLS FIRST, diffix.is_suppress_bin(*) DESC LIMIT 40;
                                              QUERY PLAN
-------------------------------------------------------------------------------------------------------
 Limit
   ->  Incremental Sort
         Sort Key: sf_flag NULLS FIRST, dropoff_datetime NULLS FIRST, (diffix.is_suppress_bin(*)) DESC
         Presorted Key: sf_flag, dropoff_datetime
         ->  Custom Scan (BucketScan)
               ->  GroupAggregate
                     Group Key: sf_flag, dropoff_datetime
                     ->  Sort
                           Sort Key: sf_flag NULLS FIRST, dropoff_datetime NULLS FIRST
                           ->  Seq Scan on taxi

Can we use get_relation_stats hook to give the column a distribution that does not trigger that plan path?

Can we use get_relation_stats hook to give the column a distribution that does not trigger that plan path?

This sounds a little complex and might have some unexpected side-effects - judging just after throwing a first glance. Let's keep it as another possible solution.
Also: SET enable_incremental_sort=off; seems to fix the Incremental Sort problem, but might not be the solution we're looking for.


Add to the Azure API does the support for create_mode of GeoRestore for Postgres Flexible Server

We would like to be able to automate DR Geo Restore of our Postgres Flexible Server

@SebTardif Apologies for the late reply. Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

@SebTardif You can refer this latest preview swagger changes here: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/FlexibleServers.json
Hope this helps.

@SebTardif I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you had any updates on this. Awaiting your reply.

@navba-MSFT Thanks, that what I was looking for.

@SebTardif Thanks for getting back. We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.


Invalid duplicate variable error

function f() {
  for (let y = function() {
    for (let z; ; ) {}
  }, x; ;) {}
}

Changing the example slightly to
for (
    let y = function() {
      for (let z; ; ) {
        x
      }
     }, x; ;) {
}

gives a
[RangeError: Maximum call stack size exceeded]
error. (Whether the code is wrapped into function f() or not does not matter.)

Even simpler: With commenting out
  addDeclaration(tree, type, reporter) {
    var name = tree.getStringValue();
    if (this.lexicalDeclarations[name] || this.variableDeclarations[name]) {
      //reportDuplicateVar(reporter, tree, name);
      return;
    }
    this.lexicalDeclarations[name] = {type, tree};
  }

the code
  for (
      let y = function() {
        x(y)
       }, x
       ; ;) {

      }

compiles to
  var $__0 = function(y, x) {};
  for (var y = function() {
    x(y);
  },
      x = void 0; ; ) {
    $__0(y, x);
  }

I started looking at this a few days ago. The problem is that we visit the tree twice so we run into the same variable again.

Even if this was resolved, doesn't my example (from my previous post) show that the transformer does something wrong?
In
    var $__0 = function(y, x) {};
    for (var y = function() {
      x(y);
    },
        x = void 0; ; ) {
      $__0(y, x);
    }

the variable referenced by x in the body of y is not the one that would be accessible in the loop's body, which has been wrapped in the $__0 function.

P.S.: Here is an example that does compile with the current Traceur version:
for (let x = 0,
         y = function() {
           assert.equal(x, 1);
         }; ;) {
  x = 1;
  y();
  break;
}

The transpiled output is
var $__1 = function(x, y) {
  x = 1;
  y();
  return 0;
},
    $__2;
$__0: for (var x = 0,
    y = function() {
      assert.equal(x, 1);
    }; ; ) {
  $__2 = $__1(x, y);
  switch ($__2) {
    case 0:
      break $__0;
  }
}

which is clearly wrong.

What about this one?
let c = 0;
let y;
for (let x = 0; x < 10; ++x) {
    y = function () { return x; } // to trigger the transformer
    c += x;
    x = 10
  }

assert.equal(c, 0);

Transpiled output is:
  var c = 0;
  var y;
  var $__5 = function(x) {
    y = function() {
      return x;
    };
    c += x;
    x = 10;
  };
  for (var x$__4 = 0; x$__4 < 10; ++x$__4) {
    $__5(x$__4);
  }
  assert.equal(c, 0);

More input. The block binding transformer also has problems with the following code that contains not lets:
for (var x = function() {
  try {
    for (y; ;) {
    }
  } catch (e) {
  }
}, y; ;) {}

It is not clear why it is even transforming that?

At least I found a way to resolve #1677. Please see there. Thx.


what is failed to verify your humanity

i setuo my proxy on cloudflare but there are 2 which is one is named simple proxy another is the one i created in the documentation and the cilent i hosted it in vercel

YOU DONT NEED A PROXY


Allow multiple discovery/localnet families for sequencer

Update sequencer expectation when device supports multiple discovery/localnet families

family_ether_addr
family_ipv4_addr
family_ipv6_addr
periodic_scan

The format for the localnet state families should not have the interface name in them, rather just the name of the address family { ipv4, ether, etc... }. If there are multiple, then the system state should indicate the address for the primary interface (as determined by, e.g., the default route).  The reason being is that backend systems don't really care about the interfaces (and there really should just be one anyway) -- rather they just want to know about the IPv4 address for the device!

@grafnu I updated PR to only fix periodic scan sequence for now.
It should be reproducible by discovering 2 (AHU-22 and one more) devices using virtual family


Update resume timeline to include new role

What does this PR do?

Update the resume timeline to include my new role 😊
Upload updated resume to s3

 Update website to include Unabridged


Simulation result staleness checking

Tickets addressed: #1563
Review: By commit
Merge strategy: Merge (no squash)

Description
This PR implements a staleness check for the internal procedural scheduling implementations. The editable plan instance keeps track of sim results that it has produced using weak references, and can dynamically update their staleness if the plan is changed after it was simulated. The process is this:

InMemoryEditablePlan has a set of weak references to simulation results objects that are currently up-to-date. I used weak references because if the user can't access it anymore, staleness doesn't matter and we might as well let it get gc'ed.
When the user gets simulation results, either through simulation or by getting the latest, it always checks for plan equality between the returned results and the current plan, even if we just simulated. If it is up-to-date, a weak ref is added to the set.
When an edit is made, the sim results in the current set are marked stale; then the set is reset to new reference to an empty set.
When a commit is made, the commit object takes shared ownership of the set. If a new simulation is run (step 2) the plan can still add to the set while it is still jointly owned by the commit. Then when an edit is made (step 3) the commit will become the sole owner of the set.
When changes are rolled back, any sim results currently in the plan's set are marked stale, the previous commit's sim results are marked not stale, then the plan will resume joint ownership of the previous commit's set.

The joint ownership freaks me out a wee bit, but I think it's safe because the commits are only used to keep the previous sets from getting gc'ed in the event of a rollback. Only the plan object actually mutates the set.
Verification

I added some unit tests to the scheduler-driver.
Documentation
This doesn't need to be explained to the user, but I've copied the above description into the doc comment on InMemoryEditablePlan.
Future work

The stateless scheduler will probably need something like this too.
I'm expecting that when I implement deletion, we will get false positives of staleness, because I've intentionally stayed away from constantly performing plan equality checks and storing a bunch of copies of the plan. Maybe that was premature optimization. The false positive would happen like this:

simulate
add activity; sim results marked stale
delete activity (not rollback); sim results not marked un-stale.
sim results now say they are stale when they actually aren't.

Does moving Commit inside of the InMemoryEditablePlan help ease any anxieties about the shared ownership?

Nope. I just did it because the Commit class isn't used anywhere else, so I didn't want to make it look like it was part of a public interface.


On startup current folder not selected

Description
On Startup the current folder not selected in the sidebar
"Continue where you left off" Setting:

"Open a new tab" Setting

instead of

Steps To Reproduce
No response
Expected behavior
Select the current folder in the sidebar
Files Version
Version: <IP_ADDRESS> OS Version: 10.0.19043.1110
Windows Version
Win10 21H1
Relevant Assets
No response

This has been fixed in <IP_ADDRESS>


Make it work offline

I'm struggling to make this work. If anyone could help, that'd be sweet.
To get it going, you can run npm run start which will start quik. quik does some fancy things. If you want to try it without anything special, run npm run predeploy to build all the files and stuff, then run npm run serve:dist to serve the site on port 8080. You'll notice that pretty much the whole app is inlined in index.html. Only extras are the favicon and the service-worker.js script.
The file responsible for starting the service worker is start-service-worker.js. Then the actual service-worker code is service-worker.js. It has the cache polyfill included.
I'm a total newb at this. Thanks for any help!

Works for me on surge, I'm not sure what the problem here is!

Oh really!? Neat!

Totally! Works for me, except when I try to simulate offline in Google Chrome DevTools... Any idea why?

I think "offline" in devtools makes the tab offline, but not other threads like workers :/

Ah! That's a big gotcha! So how do you test it?

You can open the devtools for the service worker and change the network there too. Or disconnect your machine from the network :D

For anyone seeing this later, to open Service Worker devtools, go to chrome://inspect/#service-workers and find your tab and click "inspect" then go to the Network tab and use network throttling to simulate being offline.
:+1: thanks @jakearchibald!

You can also get to this from devtools, see the "service workers" section in the "resources" tab.


Include publicationId in message execution xdm schema

Adding messagepublicationid in messageExecution
With changes in MessageExecutionId it is now just a function of messageId we would need to pass around messagepPublicationId to ensure we can determine what exact message was sent to a profile

+1. Looks good to me.

@cmathis can you please have a look at this and merge if it looks fine?


ignite-22241: Made ClusterManagementGroupManager extensible

Thank you for submitting the pull request.
To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:
The Review Checklist

[ ] Formal criteria: TC status, codestyle, mandatory documentation. Also make sure to complete the following:
- There is a single JIRA ticket related to the pull request.
- The web-link to the pull request is attached to the JIRA ticket.
- The JIRA ticket has the Patch Available state.
- The description of the JIRA ticket explains WHAT was made, WHY and HOW.
- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
[ ] Design: new code conforms with the design principles of the components it is added to.
[ ] Patch quality: patch cannot be split into smaller pieces, its size must be reasonable.
[ ] Code quality: code is clean and readable, necessary developer documentation is added if needed.
[ ] Tests code quality: test set covers positive/negative scenarios, happy/edge cases. Tests are effective in terms of execution time and resources.

Notes

Apache Ignite Coding Guidelines

Hey @rpuch and @sashapolo, would you mind having a look at these changes?
Do you think it's necessary to introduce some tests to check if the events are fired? Didn't seem very error-prone to me.


Legal aspects of a Repairnator and program repair bots

see also #755

Law and intellectual property: "Let us dwell on one point in particular, the question of intellectual property. On May 3rd, 2018, Repairnator produced a good patch for GitHub project eclipse/ditto. Shortly after having proposed the patch, one of the developers asked “We can only accept pull-requests which come from users who signed the Eclipse Foundation Contributor License Agreement.”. We were puzzled because a bot cannot physically or morally sign a license agreement and is probably not entitled to do so. Who owns the intellectual property and responsibility of a bot contribution: the robot operator, the bot implementer or the repair algorithm designer? This is one of the interesting questions uncovered by the Repairnator project."
<EMAIL_ADDRESS>

What about taxing Repairnator?
https://www.nytimes.com/2019/02/23/sunday-review/tax-artificial-intelligence.html
(thanks to @bbaudry for the link)

AI Authorship? Considering the role of humans in copyright protection of outputs produced by artificial intelligence.
http://cacm.acm.org/magazines/2020/7/245693-ai-authorship


Added TKTAuthGuestEmpty configuration option

Added TKTAuthGuestEmpty to allow fallback to native application
authorization on guest logins.  If set to on, then guests
will have a REMOTE_USER of "" (empty string).  Many http-auth
systems will then allow authentication to be handled by the next
highest authenticator (or a built-in default).
Updated doc and test suites as well.

Thanks for your work on this Scott. I'm finally doing some more work on mod_auth_tkt and have merged this in. Cheers!


Error in the constants:  CURLOPT_***

I am currently getting the error that the constant CURLOPT_URL is not defined. 3 days ago RainLoop was still running and since the day before yesterday nothing works anymore. Only the background is loaded from the frontend, but not the app. New installation of Rainloop didn't work either. Do you have a solution?
PHP Error Log:
[Tue Sep 19 17:33:58.411603 2017] [proxy_fcgi:error] [pid 31252] [client <IP_ADDRESS>:49998] AH01071: Got error 'PHP message: PHP Notice:  Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 577\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_HEADER - assumed 'CURLOPT_HEADER' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 578\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_FAILONERROR - assumed 'CURLOPT_FAILONERROR' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 579\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 580\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 581\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 582\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_MAXREDIRS - assumed 'CURLOPT_MAXREDIRS' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 583\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_FILE - assumed 'CURLOPT_FILE' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 584\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 585\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_USERAGENT - assumed 'CURLOPT_USERAGENT' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 590\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 460\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 460\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 462\nPHP message: PHP Notice:  Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 462\nPHP message: PHP Fatal error:  Call to undefined function curl_init() in /myDirectory/rainloop/v/1.11.1/app/libraries/MailSo/Base/Http.php on line 618\n'
RainLoop Error Log:
[15:14:13.350][2b48b9bb] INFO[DATA]: [DATE:19.09.17][OFFSET:-00][RL:1.11.1][PHP:5.6.30-0+deb8u1][IP:<IP_ADDRESS>][PID:7590][Apache/2.4.10 (Debian)][fpm-fcgi]
[15:14:13.351][2b48b9bb] INFO[DATA]: [Suhosin:off][APC:off][MB:on][PDO:mysql][Streams:tcp,udp,unix,udg,ssl,sslv3,tls,tlsv1.0,tlsv1.1,tlsv1.2]
[15:14:13.351][2b48b9bb] REQUEST[NOTE]: [GET] https://myserver/?/Css/0/User/-/Clear/-/c64c89ac924b3b28e3c4d84d71028456/Hash/-/
[15:14:13.352][2b48b9bb] INFO[MEMORY]: Memory peak usage: 768KB
[15:14:13.353][2b48b9bb] INFO[TIME]: Time delta: 0.015208005905151

[15:14:13.494][96613e48] INFO[DATA]: [DATE:19.09.17][OFFSET:-00][RL:1.11.1][PHP:5.6.30-0+deb8u1][IP:<IP_ADDRESS>][PID:7613][Apache/2.4.10 (Debian)][fpm-fcgi]
[15:14:13.494][96613e48] INFO[DATA]: [Suhosin:off][APC:off][MB:on][PDO:mysql][Streams:tcp,udp,unix,udg,ssl,sslv3,tls,tlsv1.0,tlsv1.1,tlsv1.2]
[15:14:13.494][96613e48] REQUEST[NOTE]: [GET] https://myserver/?/AppData@no-mobile-0/0/9096158179135427/
[15:14:13.500][96613e48] IMAP[NOTE]: Start connection to "ssl://localhost:993"
[15:14:13.519][96613e48] IMAP[NOTE]: Connected (success)
[15:14:13.557][96613e48] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5] Dovecot ready.\r\n
[15:14:13.557][96613e48] IMAP[DATA]: > TAG1 AUTHENTICATE PLAIN\r\n
[15:14:13.558][96613e48] IMAP[DATA]: < + \r\n
[15:14:13.558][96613e48] IMAP[SECURE]: > *******\r\n
[15:14:13.568][96613e48] IMAP[DATA]: < TAG1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in\r\n
[15:14:13.615][96613e48] INFO[DATA]: cUrl: URL: http://api.rainloop.net/status/myserver
[15:14:13.615][96613e48] INFO[MEMORY]: Memory peak usage: 1.25MB
[15:14:13.615][96613e48] INFO[TIME]: Time delta: 0.13416504859924

Error in Browser:

When I load the error file

Do you have any solution?

Something is wrong with your PHP, it lost curl extension.

Fixed the error. PHP-Curl was not installed anymore O.o
Thanks for you help!


Testing older version to evaluate if there is a bug

Signed-off-by: Ramona Beermann<EMAIL_ADDRESS>

In order to review this I'd need more details on which bug behaviour to look for that requires downgrading versions.

IMO this change should trigger all molecule jobs, they should include the changed file in their paths triggers. But o.k., let's test by merging this, maybe we'll completely redo the testing when moving to zuul anyway.


when/always/error like README example yields XCode error

This project needs more working examples.  Using the example in the readme, I tried to create something similar but I'm getting this error:
Missing return in a closure expected to return 'AnyPromise'
I am using the CocoaPods version of PromiseKit.  Feel free to use this code as an example if you can fix it.
import Foundation
import UIKit
import PromiseKit

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        UIApplication.sharedApplication().networkActivityIndicatorVisible = true

        when(getUsers(), getPhotos(), getComments()).then { (userData, photoData, commentData) -> AnyPromise in
            let json = JSON(data: userData)
            print("\(json[0]["name"])")
        }.always {
            UIApplication.sharedApplication().networkActivityIndicatorVisible = false

            }.error { error in
        }

        self.getUsers().then { (data:NSData) -> Void in
            let json = JSON(data: data)
            print("\(json[0]["name"])")
            }.then {
                self.getPhotos().then { (data:NSData) -> Void in
                    let json = JSON(data: data)
                    print("\(json[0]["title"])")
                    }.then {
                        self.getComments().then { (data:NSData) -> Void in
                            let json = JSON(data: data)
                            print("\(json[0]["name"])")
                        }
                }
        }
    }

    func getUsers() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/users")
    }

    func getPhotos() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/photos")
    }

    func getComments() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/comments")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

Here's how I would write it. If you don't want to use firstly then I can rewrite it without... I just really like how it reads.
import Foundation
import UIKit
import PromiseKit
import SwiftyJSON

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        UIApplication.sharedApplication().networkActivityIndicatorVisible = true

        firstly {

            return when(getUsers(), getPhotos(), getComments())

        }.then { (userData: NSData, photoData: NSData, commentData: NSData) -> Void in

            let userJson = JSON(data: userData)
            print(userJson)

        }.always {

            UIApplication.sharedApplication().networkActivityIndicatorVisible = false

        }.error { error in

            print(error)

        }

    }

    func getUsers() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/users")
    }

    func getPhotos() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/photos")
    }

    func getComments() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/comments")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

Here is a version that shows you chaining...
import Foundation
import UIKit
import PromiseKit
import SwiftyJSON

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        UIApplication.sharedApplication().networkActivityIndicatorVisible = true

        firstly {

            return getUsers()

        }.then { (userData: NSData) -> NSData in

            let userJson = JSON(data: userData)

            return getPhotos()

        }.then { (photoData: NSData) -> NSData in

            let photoData = JSON(data: photoData)

            return getComments()

        }.then { (commentData: NSData) -> Void in

            let commentData = JSON(data: commentData)

            // Not returning anything, so closure returns Void... not AnyPromise

        }.always {

            UIApplication.sharedApplication().networkActivityIndicatorVisible = false

        }.error { error in

            print(error)

        }

    }

    func getUsers() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/users")
    }

    func getPhotos() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/photos")
    }

    func getComments() -> URLDataPromise {
        return NSURLConnection.GET("http://jsonplaceholder.typicode.com/comments")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

Thank you!!!!  Let's put this example in the project.  I think it will help others.  Also, is PromiseKit being used in any shipping apps?  Is it stable enough?

I probably wouldn't include these exact examples as they rely on SwiftyJSON, but I agree that updated Swift documentation on promisekit.org would be appreciated. I know there are are swift compiler issues that cause some of the existing examples to fail. It comes down to who is willing to revist the documentation and who has access to make changes.
My mastery of Swift isn't even close to that of the original PromiseKit author's mastery, so I have been hesitant to suggest updates to the documentation. It's also not clear on how someone would contribute as I haven't found a github repo that maps to the promisekit.org site. I actually enjoy writing documentation and would be willing to take a stab at updating Swift examples.
I would assume there are apps in production that use PromiseKit. I've been writing an app for a few months and I think PromiseKit is amazing. I certainly plan to use it for all of my future projects. I'm secretly hoping that Apple implements Promises because the resulting code is so much cleaner.


LTS-1.13 lacks base installed constraint

I just noticed the base/binary etc constraints which used to say "installed" have been removed. Was that deliberate? I had Hoogle relying on that, which isn't a great idea. But just checking they weren't lost by accident.

That's definitely accidental, thanks for pointing it out. I just switched to a new method for uploading bundles, it's certainly a bug there. I'll look into it later today.

Thanks, I was wondering about this as well, but I forgot to ask!

I'm just testing the fix now, I'll deploy and upload a new LTS soon thereafter.

I was referring to normal stackage snapshots, is that part of this fix?

Yes, this fix will address both the LTS and Nightly releases.

Great, thanks!

Thanks again for the heads-up guys. I've fixed the bug in the codebase, and added the missing rows to the database. For the record, I used the following:
insert into package("stackage","name","version","overwrite","has_haddocks","core") select 434,name,version,overwrite,has_haddocks,core from package where core and stackage=428;

Everything should be fine now, can you confirm?

Looks good to me, although I have since switched Hoogle to a different method of identifying which packages are in the set (union platform and stackage, rather assuming stackage is a superset) so it no longer impacts me.


Events; add missing fields to response

To create the cards on the FE we need extra information that we're not currently providing;

isRelaxedPerformance to display as part of the primary labels. In Prismic, it's a boolean field at the root, but should we return as part of the access needs? I'm thinking this would probably be a good one to have in the filters wouldn't it? This one is on pause until we figure out what it's for (See Slack thread)
audiences; this we will need both for primary labels but also for the query as it'll become a filter. On the FE we just need an array of audiences' titles.
times.isFullyBooked so we can update the event's status on the card as "Fully booked".
series, probably just the series' title so we can display "Part of [series name]" on the card (or make it searchable as a query term?)

I noticed ZWR9MRUAACUAVOIP is fully booked but this is not displayed on the card, only on the event page itself
Also, for scheduled events such as https://wellcomecollection.org/events/ZQgdkREAAAbr6cRR we can't tell the status, there's a "Check for tickets" button directing to Eventbrite
For consistency's sake I'm going to leave isFullyBooked and onlineIsFullyBooked from the display object

Ohh interesting. I might have to investigate if that's on purpose or a bug as I think there is code to display it.
I'll have a look this PM!

As discussed, it was a bug, so great find thank you! I have a PR here for it https://github.com/wellcomecollection/wellcomecollection.org/pull/10595 but I think I'll add a test to check it's there to prevent it happening again, so not 100% ready for review.

As discussed just now, let's figure out more about isFullyBooked and how it works with isFullyBooked/onlineIsFullyBooked and the fact that there is one for every time. We'll need to figure out the logic as currently the cards on the FE only display "Fully booked" if BOTH isFullyBooked/onlineIsFullyBooked  are true, but we don't really see the sense in that (especially if an event isn't online).
I'll try to talk to editorial about it tomorrow morning, see what we can do as it'll be a bit of an intense day.


Possible bug in EN_setlinktype

There seems to be a bug in EN_setlinktype in the following code where i is the index of the link whose type is being changed:
  if (toType <= EN_PIPE) {
    net->Npipes++;
  } else if (toType == EN_PUMP) {
    net->Npumps++;
    net->Pump[net->Npumps].Link = i;
  } else {
    net->Nvalves++;
    net->Valve[net->Nvalves].Link = i;
  }

It seems that while the number of pumps or valves is increased by 1, the Pump and Valve arrays are not re-sized to accommodate the new entry. Also, if a pump or valve is changed to another type, the corresponding entry in these arrays is not deleted.

why we increase pump and valve number  but do not increase valve number
 if (fromType <= EN_PIPE) {     net->Npipes--;   } else if (fromType == EN_PUMP) {     net->Npumps--;   }


Add Platform day to statistics page

Add Platform day to statistics page

Maybe replace "transactions" with "Days of Operation"

Design is here: http://balanced-development.s3-website-us-east-1.amazonaws.com/stats-dev/


why not response the total count with pagination

Describe the bug
the query API did not return the total count of the query result. --  https://developers.notion.com/reference/pagination
we can't render a pagination for user.
so why not return the full information in this API?
like this:
{   result: []   total: 999, }
Expected behavior
return the total info or add a new api named count?

This would be very useful for me too. Getting the count of a query is an expensive operation since I have to paginate through all the results. Would be great if there was a count api.

Thanks for providing this feedback! This isn't something we can easily add just yet but we've passed along this request to the team and are considering it. 👍


Add recency and tf-idf weighted edges for project-focused graphs

@JamesKunstle Addresses #216 by:

Adding a helper function to calculate recency weights
Adding a helper function to calculate contributor tf-idf

Let me know if you want to see these in a separate nb and/or applied to a visualization, especially contributor tf-idf.
cc: @hemajv @oindrillac

@JamesKunstle Changes made:

Created copies of input dataframes before processing them
Updated docstrings to describe in detail what each method does

@christinaexyou requested a couple of comment modifications. once those are updated I'll go through the analysis very carefully, then I think this'll be ready to merge as additional functionality.

@JamesKunstle the following changes were made:

Added a method named preprocess to convert timestamp and contributor id dtypes
Reworded docstrings in calc_recency_weights and calc_tfidf_weights methods

@christinaexyou I read through this very carefully- I think your work here is excellent, and I feel good about merging this.