Instruction.params updates not reflected in definition (if definition already called)

Information

Qiskit Terra version: master
Python version: 3.5
Operating system: osx 10.14

What is the current behavior?
.params values are fixed in gate definitions the first time ._define is called, and not updated, even if Instruction.params changes.
>>> from qiskit.extensions.standard import RZGate
>>> # Create a gate, and check the parameter values in its definition
...
>>> g = RZGate(0.1)
>>> g.definition
[(<qiskit.extensions.standard.u1.U1Gate object at 0x10b181208>, [Qubit(QuantumRegister(1, 'q'), 0)], [])]
>>> g.definition[0][0].params
[0.1]
>>> # Create a gate, change its parameters, then check parameter values in its definition
...
>>> g = RZGate(0.1)
>>> g.params[0] = 0.2
>>> g.definition[0][0].params
[0.2]
>>> # Create a gate, check its definition, updates its params, and see if the update is reflected in the definition
...
>>> g = RZGate(0.1)
>>> g.definition[0][0].params
[0.1]
>>> g.params[0] = 0.2
>>> g.definition[0][0].params
[0.1]

priority: medium because bug is obscure and might hide misbehavior. Reassess if disagree.

I can grab this one if no one's started. Looks like the fix and test cases have already been spelled out.
I had a question though, because I'm a python newbie:
The case in the issue description, g.params[0] = 0.2, bypasses the params setter invocation, so resetting self._definition there wouldn't work. Is mutating instance attributes like that a common pattern that we have to anticipate?
In contrast, I can see why g.params = [0.2], which does invoke the setter, is a case we should handle (and does get fixed by resetting self._definition).

The case in the issue description, g.params[0] = 0.2, bypasses the params setter invocation, so resetting self._definition there wouldn't work. Is mutating instance attributes like that a common pattern that we have to anticipate?

In general, yes and you're right that this wouldn't trigger the params setter. It is possible to work around this (e.g. what's done with QuantumCircuit.data and the QuantumCircuitData class in #2838 ), but it's not necessarily trivial.

Oh interesting, so this is a recurring issue in a way. That is, we need to execute additional logic when updating certain properties of a circuit component (or the circuit itself, in the case of QuantumCircuit.data), while maintaining the list interface of that property.
Maybe it's worth generalizing that? E.g. have a new class like ComponentData that sits between QuantumCircuit.data/Instruction.params and MutableSequence, to manage those properties.

Still valid. Here's a cleanup of the example:
from qiskit.circuit.library import RZGate
print('Create a gate, and check the parameter values in its definition')
g = RZGate(0.1)
print(g.definition)
print(g.definition[0][0].params)
print('Create a gate, change its parameters, then check parameter values in its definition')
g = RZGate(0.1)
g.params[0] = 0.2
print(g.definition[0][0].params)
print('Create a gate, check its definition, updates its params, and see if the update is reflected in the definition')
g = RZGate(0.1)
print(g.definition[0][0].params)
g.params[0] = 0.2
print(g.definition[0][0].params)

Personally, I'm not convinced params should be publically writeable at all. It might be both safer to users and easier for us to handle if gates define setters for mutable attributes. Parameterized gates, for instance, can be bound (or re-bound in future?) to certain values but covering the bind_parameters path and a direct access seems overcomplicated. ]


fix(css): resolve style tags in HTML files correctly for lightningcss

Description
This PR

correctly fixes the issue that #13776 fixed

the cause was https://github.com/parcel-bundler/lightningcss/issues/874

refactors to use projectRoot option to make the code a bit simpler

it was added in v1.18.0. we specify ^1.21.0 so we can use it.

I'll split the PR if needed.

I rebased on main branch (instead of merging) to resolve the conflicts while keeping the commits.


Sema: Avoid diagnosing missing imports for desugared typealiases in non-resilient modules

The following diagnostic is meant to prevent broken swiftinterfaces from being emitted:
'SomeAlias' aliases 'SomeDesugaredType' and cannot be used here because 'DesugaredTypeModule' was not imported by this file; this is an error in Swift 6

If the module exporting the reference to the typealias is non-resilient, though, then the module is not expected to have a buildable swiftinterface and therefore the diagnostic is superfluous.
Resolves rdar://104749045

@swift-ci please smoke test

@swift-ci please smoke test


correct visualization by adding render:True to panda_gym envs in abse…

resolves #310

Update the changelog and we're good


Error installing ballerina plugin for vs code

Description:
Trying to install ballerina plugin on VS Code fails
Steps to reproduce:
Affected Versions:
VS Code:  1.29.1 (1.29.1)
Ballerina VS Code plugin: 0.983.0
OS, DB, other environment details and versions:
Mac OS X (10.12.6)
This is what pops up

https://groups.google.com/forum/#!topic/ballerina-dev/cBPV0cw2pRY

So I'm still seeing errors:

And I get no autocomplete or "intellisense"

I am getting similar errors to christian

VSCode Version: 1.29.1
Ballerina VSCode  Version: 0.983.1
OSX: 10.14.1

I will attempt a downgrade. That version was giving me the same issues the other day.

Also, try to remove other ballerina plugin versions from the extensions directory

Hadn't thought to do that. Gave it a try uninstalled and deleted the folders in the extensions dir. Same result, tried with both 0.983.1 and 0.983.0.

0.983.0 doesn’t even stay installed on my end, gets removed when VS code
restarts
On Wed, Nov 28, 2018 at 7:39 PM Chris Carty<EMAIL_ADDRESS>wrote:

Hadn't thought to do that. Gave it a try uninstalled and deleted the
folders in the extensions dir. Same result, tried with both 0.983.1 and
0.983.0.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ballerina-platform/ballerina-lang/issues/11958#issuecomment-442684997,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADP0V9ZVxKtT35jrUuEzKmz9sP-Nqfeks5uz0jRgaJpZM4Y2uVW
.

--
Christian Posta
twitter: @christianposta
http://blog.christianposta.com http://www.christianposta.com/blog

@christian-posta can you provide the following information?
You have installed the ballerina v0983.0
You have installed the ballerina vscode plugin version 0.983.1
If you have set ballerina.home in vscode settings.json, please remove it
You have installed VSCode 1.26.0 or higher.
If you are getting further errors what are the errors you are seeing?

I am not seeing this issue with plugin version 0.983.1 too.

@christian-posta, @cartyc can you open the extensions tab and see whether there are two Ballerina extensions are listed as installed. One with the id ballerina.ballerina and another one with ballerina.ballerina-temp, both versioned as 0.983.1.
One with the id suffix "-temp" was shared in the thread  as a workaround for those who were blocked and needed an immediate fix - as we were not sure about the time it takes to get the extension republished in market place.
If this is the case, please uninstall the one with id "ballerina.ballerina-temp" and see.

@kaviththiranga I only have the one listed.

@kaviththiranga Is there anything else I can provide to help?

Can you please provide some details for the points mentioned in this comment?
https://github.com/ballerina-platform/ballerina-lang/issues/11958#issuecomment-442907471
Specially the 3rd point and the last two points as you have provided details on other points....

@cartyc Please remove below entry from the settings.json and let us know the results.
 "ballerina.home": ""

Hi, today I'am getting similar error
Unknown Error : Failed to start Ballerina Plugin
My environment
Ballerina 0.983.0
VSCode version: 1.29.1
Ballerina VSCode plugin version: 0.983.1 (from marketplace)
OS: Windows
In the output window I found the exception:
java.lang.UnsupportedClassVersionError: org/ballerinalang/langserver/launchers/stdio/Main : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Exception in thread "main" [Info  - 2:51:43 PM] Connection to server got closed. Server will restart.

After some retry with failure:
Exception in thread "main" [Error - 2:51:54 PM] Connection to server got closed. Server will not be restarted.

Hi @ponsilva No, that's a different issue.
Unsupported major.minor version 52.0 means you are running ballerina on-top of an older JRE(less than JRE8).
By any means did you download zip distribution? I recommend you to download platform-specific distribution to make things straight forward.

I installed Ballerina using ballerina-windows-installer-x64-0.983.0.msi
I check again my env variables, thanks

It has been removed, my settings.json now looks like.
{
"window.zoomLevel": -1,
"extensions.autoUpdate": false,
}
Same error.

@hevayo Thanks for taking the time to help troubleshoot this
I ran the language server and I got the following output:
sh /Library/Ballerina/ballerina-0.983.0/lib/tools/lang-server/launcher/language-server-launcher.sh Error: Ballerina is supported only on JDK 1.8
So I checked which java version:
java -version java version "9.0.1" Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
Looks like that might be the issue?

@cartyc, thanks for the info. Yes, this seems to be the issue. Ideally it should be using the JRE provided by Ballerina installer, but seems this is a bug in the script. We will fix this for the next release and meanwhile provide you a script with the fix, soon.

Thanks that sounds great. Looking forward to the fix 😊

@cartyc fix is merged and will be available with next release.
https://github.com/ballerina-platform/ballerina-lang/pull/12226
Please apply the diff to script in your local installation dir. Uploading shell scripts is not allowed on github, hence I am unable to provide it here.
Thanks.

I just gave the new script a test and it works!
Thanks so much @kaviththiranga

In Windows, I had to set JAVA_HOME as
C:\Programmi\Ballerina\ballerina-0.983.0\bre\lib\jre1.8.0_172
before running VS Code and then it works.

JAVA_HOME in my environment is set by default to
C:\Programmi\Java\jdk1.7.0_21

@ponsilva, thanks for the information. We will investigate the lang-server script for Windows and get back to you. Initially we could find the issue in only sh file, hence the fix only addressed it.

@ponsilva - Thanks. We were able to reproduce the issue. We'll fix it and give an update.

@ponsilva - Fixed issue in #12316 and it will be available in the next release.
For the time being please apply the diff to the script in your local installation directory (e.g. C:\Program Files\Ballerina\ballerina-0.983.1\lib\tools\lang-server\launcher\language-server-launcher.bat). Uploading shell scripts is not allowed on GitHub, hence I am unable to provide it here.
Thanks.

Using the updated language-server-launcher.bat VS Code starts Ballerina Plugin without errors.
Thanks @jeradrutnam

Closing since all the issues are resolved. Please reopen if you think otherwise.


fix ClassCircularityError

We are also suffering from this issue. But it is not possible to reproduce it.

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #12572.
[x] Update the CHANGES log.

Since the discussion has not been updated for days. I would like to cherry-pick the commit from dd-trace-java.
The only issue for me is how to verify?

Please revert the unexpected changes.

The only issue for me is how to verify?

There isn't an easy way to reproduce. Only in the environment it happened and waited.

Please revert the unexpected changes.

Fixed

Please recheck CI, or rerun? Others, I am good.

#718 preferred


Fix Make Image

Description
Last version of Redhat-ubi7 has already installed redhat-lsb-core and libcurl-devel for different platforms, so try to install/update them using yum produce an errors during the make image process.
Details
Remove no needed packages:

redhat-lsb-core
libcurl-devel

I have just successfully built master based on registry.access.redhat.com/ubi7:latest cfd6d0c09e95.

So then we can expect a proper tag for the project, it would be useful

This is the version we are using:
https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.9-228

This is the same image I have tried with: cfd6d0c09e95. Please show post here the error messages you get.

I was not able to reproduce the error again. It was related with redhat-lsb-core and libcurl-devel are installed for different platforms and yum were not able to update them.
This error appeared in 2 consecutive days in different machines, and now looks like it is solved.
We can close this PR and recover it later if the error appears again.
Thanks @cpendus.


Tickets list is not updated after creating new ticket

Describe the bug
Whenever we create a new ticket, and return to the screen containing the list of the tickets, then we need to manually refresh the contents to see the newly added ticket.
To Reproduce
Go to the Tickets section, create a new ticket and return to the tickets screen. The new ticket will nnot be present there.
Expected behavior
The list should be updated.
Logs
NA
Screenshots

Smartphone Info:
|Device|         Redmi Note 4
|Android Version|  Nougat 7.1.1
Additional context
Would you like to work on the issue?

[X] Yes
[ ] No
Other:

I want to work on this.


Error connecting to kafkaJS with TLS.

I share in detail the steps I took and the mistakes I got.
First of all, I have a basic typescript project. And kafkaJS is installed in it. ( https://kafka.js.org/docs/getting-started )
my transactions:
first uninstalling 1 broker and 1 monitoring on aws

cd aws

terraform apply ( Necessary parameters and public_keys have been created for the machine. )

and the machines I wanted were successfully created on aws.
Installing redpanda and grafana on broker with ansible.

ansible-playbook --private-key ./Production_Redpanda_Broker_OpenSSH -e advertise_public_ips=true -e grafana_admin_pass=******* -i hosts.ini -v ansible/playbooks/provision-node.yml

and successful redpanda installation on broker. I can also connect to grafana with the password I specified.
private createKafkaConsumer(clientId: string, groupId: string): Consumer {

        const kafka = new Kafka({
            clientId: clientId,
            brokers: ['*.*.*.*:9092']
        })
        const consumer = kafka.consumer({ groupId })
        return consumer
    }

I can successfully connect to the broker with the code snippet above.
Up to this stage I can successfully use redpanda. But there is insecurity here. So I have to activate TLS.
Here are the steps I need to do according to the documentation for TLS.

ansible-playbook --private-key ./Production_Redpanda_Broker_OpenSSH -i hosts.ini -v ansible/playbooks/create-ca.yml

ansible-playbook --private-key ./Production_Redpanda_Broker_OpenSSH -i hosts.ini  -e -v ansible/playbooks/generate-csrs.yml

ansible-playbook --private-key ./Production_Redpanda_Broker_OpenSSH -i hosts.ini -e -v ansible/playbooks/issue-certs.yml

ansible-playbook --private-key ./Production_Redpanda_Broker_OpenSSH -i hosts.ini -e -v ansible/playbooks/install-certs.yml

After these steps, the redpanda.yml file in the broker is updated accordingly. It is updated as in the template specified for redpanda.yml in the ansible playbook section.
Now I'm trying to connect to the broker again.
private createKafkaConsumer(clientId: string, groupId: string): Consumer {

        const kafka = new Kafka({
            clientId: clientId,
            brokers: ['*.*.*.*:9092'],
            ssl: {
                rejectUnauthorized: false,
                ca: [fs.readFileSync('/tls/ca/ca.crt', 'utf-8')]
            }
        })
        const consumer = kafka.consumer({ groupId })
        return consumer
    }

I can no longer connect to the broker I was able to connect to without TLS. I'm doing something wrong but I can't find it.
This is the error I got.
{"level":"INFO","timestamp":"2023-01-05T20:48:59.897Z","logger":"kafkajs","message":"[Consumer] Stopped","groupId":"WebSiteProducer_Group"}
{"level":"ERROR","timestamp":"2023-01-05T20:48:59.897Z","logger":"kafkajs","message":"[Consumer] Restarting the consumer in 300ms","retryTime":300,"groupId":"WebSiteProducer_Group"}
{"level":"INFO","timestamp":"2023-01-05T20:49:00.198Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"WebSiteProducer_Group"}
{"level":"ERROR","timestamp":"2023-01-05T20:49:01.345Z","logger":"kafkajs","message":"[Connection] Connection timeout","broker":"<IP_ADDRESS>:9092","clientId":"71b80823-8058-4279-9814-4561eb3840a4"}
{"level":"ERROR","timestamp":"2023-01-05T20:49:01.345Z","logger":"kafkajs","message":"[Consumer] Crash: KafkaJSConnectionError: Connection timeout","groupId":"WebSiteProducer_Group","stack":"KafkaJSConnectionError: Connection timeout\n    at Timeout.onTimeout [as _onTimeout] (/home/emredarak/repo/consumer/node_modules/kafkajs/src/network/connection.js:223:23)\n    at listOnTimeout (node:internal/timers:559:17)\n    at processTimers (node:internal/timers:502:7)"}
{"level":"INFO","timestamp":"2023-01-05T20:49:01.345Z","logger":"kafkajs","message":"[Consumer] Stopped","groupId":"WebSiteProducer_Group"}
{"level":"ERROR","timestamp":"2023-01-05T20:49:01.346Z","logger":"kafkajs","message":"[Consumer] Restarting the consumer in 300ms","retryTime":300,"groupId":"WebSiteProducer_Group"}
{"level":"INFO","timestamp":"2023-01-05T20:49:01.647Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"WebSiteProducer_Group"}

Hi @emredarak. Please can you enable debug...
const { Kafka, logLevel } = require('kafkajs')

const kafka = new Kafka({
    clientId: clientId,
    brokers: ['*.*.*.*:9092'],
    ssl: {
        rejectUnauthorized: false,
        ca: [fs.readFileSync('/tls/ca/ca.crt', 'utf-8')]
    },
    logLevel: logLevel.DEBUG
})

It would be helpful if you're able to share the Redpanda log too. Thanks!

Logs after adding logLevel.DEBUG.
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.428Z","logger":"kafkajs","message":"[Connection] Connecting","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","ssl":true,"sasl":false}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.530Z","logger":"kafkajs","message":"[Connection] Request ApiVersions(key: 18, version: 2)","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","correlationId":0,"expectResponse":true,"size":50}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.571Z","logger":"kafkajs","message":"[Connection] Response ApiVersions(key: 18, version: 2)","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","correlationId":0,"size":212,"data":{"errorCode":0,"apiVersions":[{"apiKey":0,"minVersion":0,"maxVersion":7},{"apiKey":1,"minVersion":4,"maxVersion":11},{"apiKey":2,"minVersion":0,"maxVersion":4},{"apiKey":3,"minVersion":0,"maxVersion":7},{"apiKey":9,"minVersion":1,"maxVersion":7},{"apiKey":10,"minVersion":0,"maxVersion":2},{"apiKey":16,"minVersion":0,"maxVersion":2},{"apiKey":18,"minVersion":0,"maxVersion":3},{"apiKey":11,"minVersion":0,"maxVersion":5},{"apiKey":12,"minVersion":0,"maxVersion":3},{"apiKey":13,"minVersion":0,"maxVersion":3},{"apiKey":14,"minVersion":0,"maxVersion":3},{"apiKey":19,"minVersion":0,"maxVersion":6},{"apiKey":8,"minVersion":1,"maxVersion":7},{"apiKey":32,"minVersion":0,"maxVersion":2},{"apiKey":33,"minVersion":0,"maxVersion":1},{"apiKey":20,"minVersion":0,"maxVersion":5},{"apiKey":15,"minVersion":0,"maxVersion":4},{"apiKey":17,"minVersion":0,"maxVersion":1},{"apiKey":36,"minVersion":0,"maxVersion":1},{"apiKey":44,"minVersion":0,"maxVersion":0},{"apiKey":42,"minVersion":0,"maxVersion":1},{"apiKey":29,"minVersion":0,"maxVersion":1},{"apiKey":35,"minVersion":0,"maxVersion":1},{"apiKey":30,"minVersion":0,"maxVersion":1},{"apiKey":31,"minVersion":0,"maxVersion":1},{"apiKey":22,"minVersion":0,"maxVersion":3},{"apiKey":24,"minVersion":0,"maxVersion":2},{"apiKey":28,"minVersion":0,"maxVersion":3},{"apiKey":25,"minVersion":0,"maxVersion":1},{"apiKey":26,"minVersion":0,"maxVersion":2},{"apiKey":37,"minVersion":0,"maxVersion":3},{"apiKey":23,"minVersion":0,"maxVersion":3}],"throttleTime":0,"clientSideThrottleTime":0}}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.571Z","logger":"kafkajs","message":"[Broker] Verified support for SaslAuthenticate","broker":"*.*.*.*:9092","supportAuthenticationProtocol":true}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.575Z","logger":"kafkajs","message":"[Connection] Request Metadata(key: 3, version: 6)","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","correlationId":1,"expectResponse":true,"size":72}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.621Z","logger":"kafkajs","message":"[Connection] Response Metadata(key: 3, version: 6)","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","correlationId":1,"size":145,"data":{"throttleTime":0,"brokers":[{"nodeId":0,"host":"*.*.*.*","port":9092,"rack":null}],"clusterId":"redpanda.d13ad443-887e-4913-a0f3-91a3d97ac9dc","controllerId":0,"topicMetadata":[{"topicErrorCode":0,"topic":"WebSiteProducer","isInternal":false,"partitionMetadata":[{"partitionErrorCode":0,"partitionId":0,"leader":0,"replicas":[0],"isr":[0],"offlineReplicas":[]}]}],"clientSideThrottleTime":0}}
{"level":"INFO","timestamp":"2023-01-06T09:55:13.622Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"WebSiteProducer_Group"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:13.623Z","logger":"kafkajs","message":"[Connection] Connecting","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","ssl":true,"sasl":false}
{"level":"ERROR","timestamp":"2023-01-06T09:55:14.625Z","logger":"kafkajs","message":"[Connection] Connection timeout","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.625Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.626Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.626Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.626Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.626Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.626Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"ERROR","timestamp":"2023-01-06T09:55:14.628Z","logger":"kafkajs","message":"[Consumer] Crash: KafkaJSConnectionError: Connection timeout","groupId":"WebSiteProducer_Group","stack":"KafkaJSConnectionError: Connection timeout\n    at Timeout.onTimeout [as _onTimeout] (/home/emredarak/repo/consumer/node_modules/kafkajs/src/network/connection.js:223:23)\n    at listOnTimeout (node:internal/timers:559:17)\n    at processTimers (node:internal/timers:502:7)"}
{"level":"INFO","timestamp":"2023-01-06T09:55:14.629Z","logger":"kafkajs","message":"[Consumer] Stopped","groupId":"WebSiteProducer_Group"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.629Z","logger":"kafkajs","message":"[Consumer] consumer has stopped, disconnecting","groupId":"WebSiteProducer_Group"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.629Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.629Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"ERROR","timestamp":"2023-01-06T09:55:14.630Z","logger":"kafkajs","message":"[Consumer] Restarting the consumer in 300ms","retryTime":300,"groupId":"WebSiteProducer_Group"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.668Z","logger":"kafkajs","message":"[Connection] disconnecting...","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.669Z","logger":"kafkajs","message":"[Connection] disconnected","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e"}
{"level":"INFO","timestamp":"2023-01-06T09:55:14.931Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"WebSiteProducer_Group"}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:14.931Z","logger":"kafkajs","message":"[Connection] Connecting","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","ssl":true,"sasl":false}
{"level":"DEBUG","timestamp":"2023-01-06T09:55:15.019Z","logger":"kafkajs","message":"[Connection] Request Metadata(key: 3, version: 6)","broker":"*.*.*.*:9092","clientId":"1e8a809c-df6b-4226-b525-37ed154b8b6e","correlationId":2,"expectResponse":true,"size":72}

Hi @emredarak , could you check that TLS is actually enabled and that the SAN works, here's an example from my cluster:
openssl s_client -connect <IP_ADDRESS>:9092 -CAfile /etc/redpanda/certs/truststore.pem
CONNECTED(00000003)
Can't use SSL_get_servername
depth=1 O = Vectorized, CN = Vectorized Test CA
verify return:1
depth=0 O = Vectorized
verify return:1
---
Certificate chain
 0 s:O = Vectorized
   i:O = Vectorized, CN = Vectorized Test CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDTjCCAjagAwIBAgIBATANBgkqhkiG9w0BAQsFADAyMRMwEQYDVQQKDApWZWN0
b3JpemVkMRswGQYDVQQDDBJWZWN0b3JpemVkIFRlc3QgQ0EwHhcNMjMwMTA2MDgy
NzQxWhcNMjUwMTA1MDgyNzQxWjAVMRMwEQYDVQQKDApWZWN0b3JpemVkMIIBIjAN
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2FkAisypBkurBiynzk8KGd46uX9d
Pi0Xhjv1oQZJuq/JKTfIqvzN3lKH2kuuLascCk426voitnouoL8Hfrij7YKfRmwc
DlV1mPkm6pMypJUFYulU50G9gfKGnDr2H3NDPajY77D/g/q5wvCVxF9LYaGaTOvb
eX32a/tIAbtV9WeCS09CgcyIzWoVSu1HegvNfvjiiUtf0sEqna3YIgLr64L9j7Yj
8d8m+zNVZat1bwQwg4C2uoPT7E18HaEifhJS5h6YKZACrxAycrjDUe6Wafiiejnx
DyZiNbar+b+0Rkm4u/wO6J76XSTsmBR5qGU1acYYlnes/mt5V4ekp+I2ywIDAQAB
o4GLMIGIMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYB
BQUHAwIwVwYDVR0RAQH/BE0wS4IQaXAtMTcyLTMxLTEyLTI1M4IraXAtMTcyLTMx
LTEyLTI1My51cy13ZXN0LTIuY29tcHV0ZS5pbnRlcm5hbIcEEvYsGIcErB8M/TAN
BgkqhkiG9w0BAQsFAAOCAQEAPNDPM01jVfwrle7+MyCbQ9q26JYP173gbGI6+Cde
l1UMl33lSI4TDoKLYquKmv6/c8qWA1OEUYKjjSrySwMJYUNvNeDVC6bSc88irnH2
/9I6n/VreA8cosHV2Z1+VpQ5zTBU6XMYRpH93jI3SWQxjlToh1CHnznKc+HZO71r
+zk8rNZWMhIjN5jcEEG4Pqeu4te0ST/Dk/pLf2xjr+3+9tPJ2j+cHg08iQ1Dkur8
RRRyKjNTCUPmiVFNx48kSAUQuSRBJ2z3dd6WL2ynnH9DP16bJ5JZh/o4YoOsUWfh
hmQQfGjsqbYt1egS3HJYkPV2qQS7gXnywLiCA2Y9U+hLoQ==
-----END CERTIFICATE-----
subject=O = Vectorized

issuer=O = Vectorized, CN = Vectorized Test CA

---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1406 bytes and written 363 bytes
Verification: OK
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 2048 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)

Thanks. Debug doesn't reveal much more. I presume the broker address *.*.*.*:9092 is redacted? With TLS enabled the broker address needs to match the subject alternate name in the certificate.

Actually, I'm not creating certificates, etc from scratch. I am following the steps in Ansible. Assuming there is nothing wrong there, there are no certificate errors.
Ansible creates ca.key first and then ca.crt.
Then, using these 2 files, 3 files are generated for the broker:

node.crt
node.key
truststore.pem => pem version of ca.crt.

Here is the redpanda.yml file.
organization: redpanda-test
cluster_id: redpanda
redpanda:
data_directory: /var/lib/redpanda/data
seed_servers: []
rpc_server:
address: <IP_ADDRESS>
port: 33145
rpc_server_tls:
- key_file: /etc/redpanda/certs/node.key
cert_file: /etc/redpanda/certs/node.crt
truststore_file: /etc/redpanda/certs/truststore.pem
enabled: true
kafka_api:
- address: <IP_ADDRESS>
port: 9092
kafka_api_tls:
- key_file: /etc/redpanda/certs/node.key
cert_file: /etc/redpanda/certs/node.crt
truststore_file: /etc/redpanda/certs/truststore.pem
enabled: true
admin:
- address: <IP_ADDRESS>
port: 9644
admin_api_tls:
- key_file: /etc/redpanda/certs/node.key
cert_file: /etc/redpanda/certs/node.crt
truststore_file: /etc/redpanda/certs/truststore.pem
enabled: true
advertised_rpc_api:
address: <IP_ADDRESS>
port: 33145
advertised_kafka_api:
- address: <IP_ADDRESS>
port: 9092
rpk:
kafka_api:
brokers:
- <IP_ADDRESS>:9092
tls:
truststore_file: /etc/redpanda/certs/truststore.pem
admin_api:
addresses:
- <IP_ADDRESS>:9644
tls:
truststore_file: /etc/redpanda/certs/truststore.pem
tune_network: true
tune_disk_scheduler: true
tune_disk_nomerges: true
tune_disk_write_cache: true
tune_disk_irq: true
tune_cpu: true
tune_aio_events: true
tune_clocksource: true
tune_swappiness: true
tune_ballast_file: true
pandaproxy: {}
The certificate I used here is ca.crt. I'm connecting from without creating a certificate for the client.

openssl s_client -connect *.*.*.*:9092 -CAfile ./ca.crt

CONNECTED(00000003)
Can't use SSL_get_servername
depth=1 O = Vectorized, CN = Vectorized TLS CA
verify return:1
depth=0 O = Vectorized
verify return:1
---
Certificate chain
 0 s:O = Vectorized
   i:O = Vectorized, CN = Vectorized TLS CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDWjCCAkKgAwIBAgIBATANBgkqhkiG9w0BAQsFADA5MRcwFQYDVQQKDA5GdW52
ZXJzZSBHYW1lczEeMBwGA1UEAwwVRnVudmVyc2UgR2FtZXMgVExTIENBMB4XDTIz
MDEwNjA5MzUwM1oXDTMzMDEwMzA5MzUwM1owGTEXMBUGA1UECgwORnVudmVyc2Ug
R2FtZXMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCn5lk1hH/yyUg0
szIHTjXbExliPfJwijwRxSmoeGG2XuuQsp3bNMRrbd3xDcVJtlHYOy45r6HV7xD2
UN/VdsbeFnASfXgPaCI97aZGBdoLvTpbOml7vtp0GfNTCnGSuDzdGn6a7mL5w9b9
W71BRGmDv/9zkbjqaI5mXcIZH3tIvq/oCFBCbg1R+LZgbw3faSHWHtE0UN0TEoic
v9KHVQfuC4fCViQCOBTeeR8aSZTIMEYNqTOiZOCMHuli9dE0+tvmN+CJgkdD9s9Y
HgRH5W7jwerEjEHwAC7zg16kpQ1ndYxEmhNVJW20ApUyHct1Y7OXTsCufv+kkVt4
XsmdPYDJAgMBAAGjgYwwgYkwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsG
AQUFBwMBBggrBgEFBQcDAjBYBgNVHREBAf8ETjBMgg9pcC0xNzItMzEtMTYtOTGC
LWlwLTE3Mi0zMS0xNi05MS5ldS1jZW50cmFsLTEuY29tcHV0ZS5pbnRlcm5hbIcE
EsUygIcErB8QWzANBgkqhkiG9w0BAQsFAAOCAQEAFX7cHyimfLM6mtHJtmh3tpEe
SYFHS+QPNQFKeSPDhVVCVFtH1pGie8BKZXB1kx2+abBzIiLEEODVhyV/C3FB8s/H
BU/RCOaMX0s1Z9TT7gDO4hcICrXmRSCjcamzP9mlR0jRX3oJ2YnMKrZGdth8vHpf
vhsg5hx9sKehLhPdQ92R8/GCWZhbfapVecQr0unjuAt6RfgGgAFHaPzSiKy5gZcI
sJU2Ue6PUMJwk8DZA4LlkZevNlqzmdyj4cApaTzSY/qZSiphNIofIchYkP0IZgsT
SdYvz26p0G3IXzDiSgE0ibq8mWWIxC9ScjtRX3JAnwytLEig9pkzYqlNxYjnGw==
-----END CERTIFICATE-----
subject=O = Vectorized

issuer=O = Vectorized, CN = Vectorized TLS CA

---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1418 bytes and written 363 bytes
Verification: OK
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 2048 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)

I am using kafkaJS wrong or there is some other situation?

Looking at the server certificate the subject alternate names it expects are:
X509v3 Subject Alternative Name: critical
    DNS:ip-172-31-16-91, DNS:ip-172-31-16-91.eu-central-1.compute.internal, IP Address:<IP_ADDRESS>, IP Address:<IP_ADDRESS>

So your brokers address should be one of these values.

docker run -p 8080:8080 \
  -v $(pwd)/src:/etc/console-mounts \
  -e KAFKA_BROKERS=<IP_ADDRESS>:9092 \
  -e KAFKA_TLS_ENABLED=true \
  -e KAFKA_TLS_CAFILEPATH=/etc/console-mounts/ca.crt \
  docker.redpanda.com/vectorized/console:latest

I opened a separate machine for testing. now Redpanda Console is opening but it's so slow

For security, I recommend that the previous posts are redacted/deleted once we have this working. Better still, recreating the environment and certificates, etc will ensure that the details contained in this issue are no longer relevant.

for security reasons I will turn off all the machines I am currently using and create another one. Thank you.

The whole problem was that I did not use this parameter, which I used at first when creating tls certificates. I close the doors that I opened at first :D Sometimes such things can be overlooked when dealing with a lot of things. Thank you for your efforts.
 -e advertise_public_ips=true

The whole problem was that I did not use this parameter, which I used at first when creating tls certificates. I close the doors that I opened at first :D Sometimes such things can be overlooked when dealing with a lot of things. Thank you for your efforts.
 -e advertise_public_ips=true


fixed listing empty folder of cheatsheets

When setting CHEAT_PATH to "", in order to only make use of CHEAT_USER_DIR, it initially happens that there are no cheatsheets.
Hence, cheat -l crashes because the max() function operates on an empty list. I fixed the crash by introducing the default parameter for max().

Hi, @exploide, I also made a PR(#453) that fixes the same problem with a different way.
This PR(#447) prints nothing. This is similar to how many Unix commands do.
For example, ls | grep something-dose-not-exist would print nothing.
It does not print something like Opps, there's nothing found :P .
This "quiet behavior" of many commands is intended because

First, this (empty result) happens frequently and even expected before execution, so extra "guide message" would be repeatitive and unnecessary.
Second, printing default message might be interpreted as a "result" of execution, which may confuse users.
Third, it helps pipelining. Empty result is much easier for other programs to interpret.

However, my PR(#453) prints a instructive message below.
No cheatsheets yet. Create and edit by `cheat -e <your-cheatsheet>`.

This is because

Having no cheatsheets does not happen frequently. It is highly expected that only new users, who've just installed cheat, would be in this situation. For them, a guide message make them feel quite convenient.
In this case, no one would think this message as a standard result of cheat -l. So this behavior is not confusing.
cheat is, and should be, used only by human user. It's not expected for other programs to use or pipeline. For those use cases, they are encouraged to seek through filesystem ($CHEAT_USER_DIR or $CHEAT_PATH).

Therefore I got a conclusion that PR for guiding message is needed so I made it.
How do you think about this perspective?

Hi @jjangga0214. Yes, sounds reasonable, good idea. I do not really care which solution gets merged, as long as the crash gets fixed. I would leave my PR open since it could happen that the maintainer does not like printing that message.
But I'm happy when your PR gets merged :)

closing; it's obsolete due to the Go rewrite :)

Thanks, @exploide :slightly_smiling_face:


Update stable version in repo from 0.0.0 to 0.0.6

Think about adding version 0.0.6 to stable repository.
Version: stable=0.0.0 (0 days old) => latest=0.0.6 (105 days old)
Installs: stable=0 (0%), latest=3 (75%), total=4
Click to edit

This issue seems to be outdated.
This issue suggests to update the stable version of this adapter to 0.0.6 but in the meantime an update to version 0.1.0 is suggested.
So this issue will be closed and replaced by an updated one.


test_timetravel is flaky

Just one report to share so far:

https://neon-github-public-dev.s3.amazonaws.com/reports/pr-6039/7102533709/index.html#suites/3ccffb1d100105b98aed3dc19b717917/fa174fb7b272da7c

One failure in past 7 days

It's not clear, which failure occurred several days before April 2 (maybe it had a different cause), but the latest commit I could reproduce this failure, namely "Exception: timed out while waiting for last_record_lsn to reach 0/8842DE8, was 0/87540F0", on is fb518aea0~1. (Running 8 tests in parallel is enough to get the test failed on the first iteration.) On commit fb518aea0 (dated 2024-01-03), the test failure is not reproduced (10 iterations passed successfully for me), so I think this issue should be closed as resolved by #5886 unless the aforementioned March/April failure log found and it contains the same Exception.


GridView control freezes when scrolling until mouse is moved to titlebar buttons to trigger messages in app message queue

Describe the bug
Previously I reported ListView control freezing with C++/WinRT #7972. This time it's GridView freezing and with Microsoft's own sample code PhotoEditor (C#)
See video attached.
https://user-images.githubusercontent.com/63170829/208231498-ef74e570-d5a4-4d6f-be9b-6be6e5a290a3.mp4
Steps to reproduce the bug

Get latest code from https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/PhotoEditor/cs-winui
Modify sample code to enable reading from Picture's Library in MainPage.xaml.cs
// Get the Pictures library. (Requires 'Pictures Library' capability.) Windows.Storage.StorageFolder picturesFolder = Windows.Storage.KnownFolders.PicturesLibrary; /* OR Get the Sample pictures. StorageFolder appInstalledFolder = Package.Current.InstalledLocation; StorageFolder picturesFolder = await appInstalledFolder.GetFolderAsync("Assets\\Samples"); */
Update all NuGet packages of solution to latest available.
Build and run the program with lots of pictures in the Pictures Library

Expected behavior
Controls should not freeze. Microsoft should provide guidelines and code to clearly show how large collection of items can be loaded in controls without the the user interface getting hung. I would not call my collection of pictures library large. My pictures library has just 4,610 files.
Screenshots

No response
NuGet package version
WinUI 3 - Windows App SDK 1.2.2: 1.2.221209.1
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response

It has been more than 2 months.  Is there any workaround for this issue ? It is preventing me from releasing my app (migrated from UWP to Windows App SDK) to the store

I am no longer able to repo this with the 1.3 stable release. Kindly update whether this issue was intentionally fixed.

unable to repro with 1.3 stable release


Enabled ability to run application elements & emulated storage in Docker

The existing docker implementation was incomplete, this work rounds out the ability to run the application elements inside of containers, and also to use Azurerite to emulate Azure Storage, also run inside a container.
Tasks Completed

Fixed build issues stopping docker build from running successfully
Tidied .env.template to make it clearer what parameters are required and which are optional
Updated Docker section of Readme to clarify steps required.

This looks great @robearlam! Are you omitting the cosmos db emulater for complexity reasons or was there another reason perhaps?

This looks great @robearlam! Are you omitting the cosmos db emulater for complexity reasons or was there another reason perhaps?

It's next on my list, it didn't look quite as simple as the storage emulator, so I figured I'd merge it in stages so people can at least get up and running a bit simpler in the meantime while I figure out the cosmos emulator.

Roger that, sounds good


auto trigger and fill of action item card

Feature Request
to provide option to trigger an action item during review of a retro card and to maintain the association; and to reflect the "like" count from the retro card in the action item
Optional user story format:
Context
An automatic link from an action item to the source retro card maintains context of action without having to copy/paste or summarize the source retro card -- plus it saves time.  Reflecting the "like" count from the retro card in the action item provides an option for prioritizing actions.
Story
As a retro lead/facilitator
I need a button on the source card active during review that when clicked creates an action item card either linked to the source card/or pre-populated with the source card text to retain context AND that reflects the "like" count of the source card on the action card
So that context of the action is not lost and the retro process is not slowed by having to copy/paste or summarize (due to space limitations) the source card to ensure source integrity AND there is an option to sort the action items by the "like" counts for prioritizing.
Acceptance Criteria
Given (some context)
When (some action is carried out)
Then (some consequences)
Notes
Design

Action items might be associated to a thought, but not necessarily every action item. We don't know what that would look like. We're going to close this until someone has a more fleshed out idea of what that would look like.


Session id is regenerated at every request

I have a problem similar to #17649 . The session id is regenerated every time and the session is lost when the user is guest.  Is it related to #18646 ? The issue appeared in 2.0.44 and not is present in 2.0.43. Same codebase downgrading to 2.0.43 working.

What do you mean by 2.0.44? It has not been released yet - do you mean current master?

current dev-master

Do you use databse storage for session as well?

We have a this problem. Now changed composer yii version to 2.0.43. Now project is stable and bug fixed.

@burakcomer Do you use databse storage for session?

@samdark . I have tried both: db session and default file session.

Got it. So to reproduce it with a clean basic application template I need just to store something in a session without logging in and do refresh? No extra configuration needed?

Got it. So to reproduce it with a clean basic application template I need just to store something in a session without logging in and do refresh? No extra configuration needed?

We are use database.

Got it. So to reproduce it with a clean basic application template I need just to store something in a session without logging in and do refresh? No extra configuration needed?

I'm not sure about that. I will try to reproduce in a basic template.

@ventoh that would be very helpful. Thanks.

Sorry, I haven't been able to reproduce in basic template. I have a custom web identity file and need some custom work.I will try again when I have a little more time.

@tsanchev would you please help with a way to reproduce the issue?

@samdark install with composer:
composer create-project --prefer-dist --stability=stable yiisoft/yii2-app-advanced D:\web\www\yii2test\app
then
init --env=Development --overwrite=All
and then print the session in any view
session->id ?>

@bizley would you please look into this one?

Reproduced. I'm looking into this.

Caused by https://github.com/yiisoft/yii2/commit/c94d7049c51343c1512772b321005cfeb83e1746


Debian 8.5 installation problem

Hi. when I try to install brackets on linux debian 8.5 it doesn't work and I can't install it.
`hanzo@debian:~/Downloads$ sudo dpkg -i Brackets.Release.1.7.64-bit.deb
[sudo] password for hanzo:
dpkg: error: dpkg status database is locked by another process
hanzo@debian:~/Downloads$ sudo dpkg -i Brackets.Release.1.7.64-bit.deb
Selecting previously unselected package brackets.
(Reading database ... 217805 files and directories currently installed.)
Preparing to unpack Brackets.Release.1.7.64-bit.deb ...
Unpacking brackets (1.7.0-16898) ...
dpkg: dependency problems prevent configuration of brackets:
brackets depends on libgcrypt11 (>= 1.4.5); however:
Package libgcrypt11 is not installed.
dpkg: error processing package brackets (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.13-1) ...
Errors were encountered while processing:
brackets
`

Hello @mohammadyaghobi
Brackets depends on libgcrypt11 library but libgcrypt20 is installed on debian 8.5 by default.
You can check these comments to get libgcrypt11 for debian 8.5 https://github.com/adobe/brackets/issues/10255#issuecomment-89624539 or http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/libg/libgcrypt11/
The actual reason behind the issue you are facing is discussed in issue #10255
Regards,
Prateek

@pratts thank you for have answered.
We are tracking the problem on #10255.
Closing as duplicate


Update Get started with Swashbuckle to 3.0

Fixes #13872
adds Swashbuckle/OpenAPI sample for docs.microsoft.com/samples
updates to 3.0

@scottaddie - updated. Thanks for the quick review.

Ok, good to go now @scottaddie

Thank you, @spboyer!


Menu > Flyout links are missing .govuk-link styles

Describe the bug
The styling (size and colour) of some of the links on the flyouts which open when you click on a menu button is incorrect. It is being overriden by other styles.
To Reproduce
Steps to reproduce the behavior:

any form in the designer
click on any menu button (apart from form details - it does not have any links) - lists is a better example though
see ,

the sizing and colour should look more like this:

Repository

designer

Desktop (please complete the following information):
universal
Additional context
Add any other context about the problem here.

resolved in #438


Last-minute fixes

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3912/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/5176/
Test PASSed.


Requests to localhost are handed to DNS resolver

...where they invariably fail.

Hi there. Is there any solution planned for this? It bit me today :smile:

This is actually a bigger issue when working with linked containers in Docker.
Explanation:
In Docker, when a link is created from one container to the other, for example from a php container to a db or service container, then the (dynamic) ip & hostname for that target container is written into /etc/hosts, Since the DNS resolver does not honor /etc/hosts, the lookup fails.

There is an issue about this on on the DNS component: https://github.com/reactphp/dns/issues/10
Since I'm also working on the filesystem component we should look into using that to resolve this :+1: /cc @clue

BTW, I found a temporary workaround using "dnsmasq" and described it in my blog

+1 for docker

Big +1 for getting this in, both for convenience ("localhost" etc.) and for Docker containers!
I've started looking into this a few weeks ago, but have postponed this for now because the DNS component is currently undergoing some major architectural refactorings.

I used it
http://php.net/manual/en/function.gethostbyname.php

One solution would be to implement a HostsExecutor and a FallthroughExecutor, combining these you would be able to have proper hosts file functionality, if you want it.


Add --version

Retrieve the version of the binary with device-init --version.

Closing as we switch over to cloud-init/cloud-config's user-data file.


Add window for editing snippet files

First off, thank you for making this extension, I can never remember my snippet names.
I do a lot of adjustments of my snippets and heavily utilize the edit_snippet_files call. I have a possible feature request. It would be nice to have a telescope picker for selecting snippet files to edit when using edit_snippet_files.
A good starting place might be to have the default window show the snippet files associated with the current file in the buffer, then an additional option to show all snippet files. Since the snippet file locations can be quite different between vscode, snipmate, and lua, I'm not quite sure how the config of this would work. Would the extension be using the luasnip configs we would be setting for the snippet file location?

This plugin was designed to be a simple knockoff of the telescope-ultisnips plugin, so at first blush, this would be outside the scope of what I'm trying to achieve with this plugin.
That said, I understand the utility of something like this, because I'm always messing with my snippets, and it is a faff to find them, then reloading Neovim to pick them up (am I doing this right? 😆)
I'm a bit slammed with work and study at the moment, so if somebody would like to do a quick spike/investigation of how this might work in the UI and in code, we can put something together?


fix(edge): updates incorrect Safari check (#94)

Updates Safari sniffer to check window.safari instead of userAgent string. Checking navigator.userAgent is unreliable, as Edge contains the word "Safari" in its userAgent string.

When will this be released?


It appears that "import { sql } from '@vercel/postgres';" causes errors in production

I started a project consisting of a single API function that imports @vercel/postgres (import { sql } from '@vercel/postgres';
) where the only package I ever installed with npm was @vercel/postgres (npm i @vercel/postgres). It works on localhost when I run 'vercel dev', but when it is pushed to production on vercel, the API function fails with this error:
2023-07-11T14:55:44.204Z	undefined	ERROR	Cannot find module<EMAIL_ADDRESS>2023-07-11T14:55:44.204Z	undefined	ERROR	Did you forget to add it to "dependencies" in `package.json`?
RequestId: a4dc0c40-e5ff-4a94-befb-dbdc8198d56d Error: Runtime exited with error: exit status 1
Runtime.ExitError

Thanks for the report @619. Before we can help, we'll need more context on the problem - ideally a minimal reproduction. We'll need to know things like:

Node version
Vercel CLI version
The contents of the package.json
The contents of the vercel.json, if any. (this is not related to your .vercel directory)
Your file structure and an example of the API handler
How you are deploying the code - via git or via vercel deploy command?

To best help us solve the issue here, an exact reproduction published to Github would be great.


[stable/magento] Set dependencies to latest version

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Logs:
Welcome to the Bitnami magento container
Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-magento
Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-magento/issues

nami    INFO  Initializing apache
apache  INFO  ==> Patching httpoxy...
nami    INFO  apache successfully initialized
nami    INFO  Initializing php
nami    INFO  php successfully initialized
nami    INFO  Initializing mysql-client
nami    INFO  mysql-client successfully initialized
nami    INFO  Initializing magento
magento INFO  Preparing PHP environment...
magento INFO  Preparing webserver environment...
magento INFO  Preparing Magento environment...
mysql-c INFO  Trying to connect to MySQL server
mysql-c INFO  Found MySQL server listening at pouring-rodent-mariadb:3306
mysql-c INFO  MySQL server listening and working at pouring-rodent-mariadb:3306
magento INFO  Installing Magento...
magento INFO  Deploying to developer mode...
magento INFO  Reindexing...
magento INFO  Flushing cache...
magento INFO  Cleaning up cache folders after installing
magento INFO
magento INFO  ########################################################################
magento INFO   Installation parameters for magento:
magento INFO     Username: user
magento INFO     Site URL: http://<IP_ADDRESS>/
magento INFO     Admin URL: http://<IP_ADDRESS>/admin
magento INFO   This installation requires no credentials.
magento INFO  ########################################################################
magento INFO
nami    INFO  magento successfully initialized
INFO  ==> Starting magento...
<IP_ADDRESS> - - [11/Jun/2018:10:48:20 +0000] "GET /index.php HTTP/1.1" 500 -
<IP_ADDRESS> - - [11/Jun/2018:10:48:25 +0000] "GET /index.php HTTP/1.1" 500 -

/ok-to-test
/lgtm

/approve cancel

Can you update the README including those changes? Thanks

/ok-to-test


Upgrade examples to 1.2 (for testing)

This PR is intended to do some testing on Vercel previews, not to be merged.

Closed in favor of https://github.com/liveblocks/liveblocks/pull/1034


clusternet proxy should not response 301 to ask client redirect

What happened:
default go client enable the redirect func, but clusternet proxy will response 301 with a internal IP, which the client can't access.

What you expected to happen:
should not response 301.
How to reproduce it (as minimally and precisely as possible):
curl -s -f -I -L -k https://{pub_IP}:6443/apis/proxies.clusternet.io/v1alpha1/sockets/xxxxxxxx/proxy/direct
Anything else we need to know?:
Environment:

Clusternet version:

Clusternet-agent version (user clusternet-agent --version=json):
Clusternet-hub version (user clusternet-hub --version=json):

Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Others:

close this issue.
@leoryu Feel free to reopen this if you've got any questions.


Needs a tool to automatically translate sass to styled components.

In many situations, we got a project with sass, and we want to migrate it to styled component. Because we ❤ styled components.
But often there are more than hundreds lines of sass codes.
And I know there is an approach to translate variables from sass by  sass-extract and sass-extract-js. But is there any automatic tool to translate the sass codes which using these variables. i.e. color: $sass-font-color; => color: ${props => props.theme.sassFontColor} in all sass files? Before do it by self implementing a very simple and basic tool, I just think this should be a commonly needs, and if there was a handy and powerful tool to completely translate sass to styled-component would be an absolutely lifesaver.

So, adding this code to sass should be relatively straightforward, I'm just not sure what the value of it would be over, say, a custom IDE snippet... What you end up with is invalid sass, and you'd need to carefully copy-paste your sass-code over to js or ts files anyway... It's definitely out of scope for styled-components itself, but if you want to take a stab at it, this sounds like something we'd love to link to in awesome-styled-components.


How to localize exception messages?

What's the recommended way of localizing exception messages?
try {
    $this->account->onSignin();
}
catch(Exception $e) {
    // should I check for the exception message here and throw a new message accordingly?
    throw new AuthException('exception message in another language');
}

I am specifically asking about exceptions that are thrown from \October\Rain\Auth\Manager, which are hard coded and and are not available in language files, for example in the findUserByCredentials method:
if (!$user = $query->first()) {
    throw new AuthException('A user was not found with the given credentials.');
}

Any advice would be appreciated!

@meysammahfouzi try https://github.com/rainlab/user-plugin/issues/223#issuecomment-303826726


problems connecting to mqtt

I can't get this to work on my 100U7KQ Hisense TV form 2023
If I connect to the TV from my MQTT Explorer with the following details it wont connect.
are there any changes on new hisense tv´s mine uses VIDAA as operation system.
I tryed with ectyption on/off and Validate certificate on/off with on luck

Hisense made the login flow a lot more complicated with the 2023 models, see krazy998/mqtt-hisensetv#14
This integration should work with some modifications, but it would have to periodically refresh its access token.

I have no idea how to fix this, so I'm hoping for a finish solution with a guide 😊


Integration Broken Following HA 2023.02 Upgrade

Hello,
After upgrading to the 2023.02 version of HA, the integration no longer seems to be working.  I am seeing these two errors on startup and the integration no longer functions.
Logger: homeassistant.util.package
Source: util/package.py:100
First occurred: 12:16:27 AM (3 occurrences)
Last logged: 12:16:40 AM
Unable to install package scapy==2.4.5: ERROR: Cannot install scapy==2.4.5 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts [notice] A new release of pip available: 22.3 -> 23.0 [notice] To update, run: pip install --upgrade pip
Logger: homeassistant.setup
Source: setup.py:205
First occurred: 12:16:40 AM (1 occurrences)
Last logged: 12:16:40 AM
Setup failed for custom integration tailwind_iq3: Requirements for tailwind_iq3 not found: ['scapy==2.4.5'].

Please update the component to 0.4.0 (either via HACS if that's how you installed it, or by manually downloading the latest version and updating the files in your custom_components directory).


Automatic client side scanning test

What

The scanner seems to work really good lately but as we know this can't be assured for all devices and forever. We update a related dependency and no scanning is possible anymore.

So my idea was to have a image with a barcode in the assets which we feed to to mlkit / zxing isolate on app start or on every first app start per version and check if it returns the barcode.
Using this we can create analytics of broken devices and controll on the fly which mode we should use.
What do you think of this idea @g123k

My 2 cents: If we implement this we should respect the option that the user selects in regards to tracking at the first start of the app

So it's more like  testing but seems to be a good idea, if we could do this


Fix data race of DeltaIndexManager.

What problem does this PR solve?
Issue Number: close #4405
Problem Summary: current_size may be read and written concurrently.
What is changed and how it works?
Check List
Tests

[x] Unit test
[x] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-cherry-pick release-5.2

/run-cherry-pick

/cherry-pick release-5.4

/cherry-pick release-5.0

/cherry-pick release-5.1

/cherry-pick release-5.3


You need to use a Theme.AppCompat theme (or descendant) with this activity.

java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
compileSdkVersion 22
buildToolsVersion "22.0.1"

hey yanbing177 recently I had the same problem and I resolve changing the theme in the styles.xml file in your project, I guess that you activity extends from AppCompatActivity.., try  to change that with another theme like Theme.AppCompat in my file i have right now this lines..
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
          <item name="colorPrimary">@color/colorPrimary</item>
          <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
          <item name="windowActionBar">false</item>
          <item name="windowNoTitle">true</item>
</style>
and in your AndroidiManifest.xml you have to reference to that style declared
<application
      	android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
       android:label="@string/app_name"
        android:theme="@style/AppTheme">
hope you be useful..

@enriqif is right, you are probably using AppCompatActivity.
This library explicitly does not depend on AppCompat for this reason.
I'm closing this as it is not a bug in this library.


Vimeo Download Issue

I am having problem while downloading vimeo videos lately. The download use to work just fine but just for the last few days, it simply stopped working. I am using youtube-dl version 2<IP_ADDRESS>.
youtube-dl --verbose https://vimeo.com/167472147
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://vimeo.com/167472147']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.3 - Linux-3.2.0-23-generic-x86_64-with-Ubuntu-12.04-precise
[debug] exe versions: avconv 0.8.16-4, avprobe 0.8.16-4, ffmpeg 0.8.16-4, ffprobe 0.8.16-4, rtmpdump 2.4
[debug] Proxy map: {}
[vimeo] 167472147: Downloading webpage
[vimeo] 167472147: Extracting information
ERROR: Unable to extract info section (caused by RegexNotFoundError(u'Unable to extract \x1b[0;34minfo section\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/vimeo.py", line 366, in _real_extract
flags=re.DOTALL)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 644, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract info section; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 676, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 341, in extract
return self._real_extract(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/vimeo.py", line 380, in _real_extract
cause=e)
ExtractorError: Unable to extract info section (caused by RegexNotFoundError(u'Unable to extract \x1b[0;34minfo section\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

There is no video at https://vimeo.com/167472147 but redirect to http://www.cheddar.com/.

Actually, you are correct. Most of the videos on that channel are now unavailable where the ones available can be downloaded using youtube-dl. Thanks for looking into that.


More portable executable checking with find

Hey,
I found that when trying to install CCL on linux with find 4.5.11 it can't find the executable file.  I believe this patch should be more portable as it uses the test command instead.  At some point the + combined with octal permissions was removed from the GNU Find command because it conflicts with the symbolic permission descriptions.  Most people seemed to be quoting 4.5.12 but it didn't work for me on debian sid so who knows.
Building ccl-1.10
+ cim_arch
+ uname -m
+ echo intel/64/l
+ find /home/russell/.cim/src/ccl-1.10/ -maxdepth 1 -perm +111 -type f -name *64
+ executable=
+ return 1
+ exit 1
+ rm -f /home/russell/.cim/tmp/ccl-1.10.lock

Thank you :sushi:


Feat(INVT_CPC751):Added the Front end code for delete all product and inventory

JIRA: link to jira ticket
https://champlainsaintlambert.atlassian.net/browse/CPC-751
Context:
Added front-end code.
Changes
-Added Delete all inventory controller
-Added Delete all inventory HTML
-Added Delete all product in inventory controller
-Added Delete all product in inventory HTML
Before and After UI (Required for UI-impacting PRs)
Delete all products in inventory:

Delete all inventory:

If this is a change to the UI, include before and after screenshots to show the differences.
If this is a new UI feature, include screenshots to show reviewers what it looks like.

Collaborator

I have renamed  the PR  to follow proper naming conventions


Fix pytest

Fix errors about "calling fixtures directly" in pytest. Tests pass for me locally now (except for one known failure in test_geminga_paper. Would be happy about feedback, I'm not an expert on pytest.

Ugh... Tests still fail.
For python 2,  tons of ValueError: cannot set WRITEABLE flag to True of this array. ( https://travis-ci.org/github/threeML/hawc_hal/jobs/738193403#L1850 )
For python 3, pip install hawc_hal fails, see https://github.com/threeML/hawc_hal/issues/38
🙈

Ok. The good news is that the install seems to work & tests pass for python 3.7 (at least for macos).
For python 2.7, there are still issues: In the Mac environment, the conda environment could not be resolved. In the linux one, conda installed a really old version of astromodels/threeML (and some other packages) for some reason, leading to compatibility issues down the line. I'm looking into it, but not sure what's going on.
Do we need to keep python 2.7 support?

Ok. The good news is that the install seems to work & tests pass for python 3.7 (at least for macos).
For python 2.7, there are still issues: In the Mac environment, the conda environment could not be resolved. In the linux one, conda installed a really old version of astromodels/threeML (and some other packages) for some reason, leading to compatibility issues down the line. I'm looking into it, but not sure what's going on.
Do we need to keep python 2.7 support?

Hi @henrikef, I think the reason is that the script is trying to install root5 but this is no longer supported since version 2.0.0. You can also "help" conda to solve the environment by requiring to install "threeML>=2" and "astromodels>=2". Let me know if it helps.

Thanks! I've been trying offline to get HAL running in a python 2.7 environment, but no luck so far. I'm having problems installing root_numpy and there are some conflicts with the chainconsumer package, I'm not even sure where that dependency comes from. I'll try again and make sure not to use root5.

Mmh, interesting. Let me know if you need help with it.

Hm.
Any ideas? (This is on macOS 10.15.7).
I attach the full output of both the conda install and the (failed) pip install below.
conda.log
pip.log

Let me try on my laptop.

I will go ahead and merge this one for now, as we were not able to get the python2 tests to pass offline either, but python 3 seems fine.


default test/resources structure [including default property files and template data/suite files] should be created automatically after first run

Is your feature request related to a problem? Please describe.
default resources structure must be manually copied before first run, which makes it difficult to start a new project using SHAFT_Engine
Describe the solution you'd like
It would be great if shaft automatically creates the needed directories if it discovers that they're not present.
Describe alternatives you've considered
N/A
Additional context
N/A

will be handled by #138


Changing the color and appearance of the quotes.

Currently the quotes seems to be out of place because of its color. It has the same color as the background image and is mostly indistinguishable.
Please assign me this task so that i can work on this issue by adding some CSS stylings.
( Requesting as a part of GSSoC '24 )

I would like to work on this project. Please assign it to me.

Could you plz assign this task to me


TypeError: Cannot read properties of null (reading '__next_navigation_guard_token')

Thank you so much for this library; it’s incredibly useful!
I’m currently using the app router, and I’ve encountered a TypeError when the modal appears:

I noticed this comment in your code (useInterceptPopState.ts line 44):
// NOTE: Called before Next.js router setup which is useEffect().
//https://github.com/vercel/next.js/blob/50b9966ba9377fd07a27e3f80aecd131fa346482/packages/next/src/client/components/app-router.tsx#L518
// NOTE: capture on popstate listener is not working on Chrome.

Could you explain what this means? Is there a way to fix my error? Interestingly, your demo works fine in Chrome. Could you help me out?

Just a heads-up: I resolved the issue. I had used an onClick with a router.push() method in my breadcrumb, which conflicted with your library. I fixed it by adding an event.preventDefault to this onClick.


Active Directory RSAT Get-ADUser issue

Steps to reproduce
Install Optional Features to enable RSAT for Active Directory, reboot, then run PSCore6 and test AD cmdlets by doing "Get-ADUser username"  - this should show you your NT acct details. If that does work without issue (indicating the modules loaded as expected) you can reproduce my error by running
Get-ADUser username -Properties *
Expected behavior
You should get an export of all your AD acct properties like below (taken from Windows Powershell - which works as expected)

Actual behavior

Environment data
PS C:\Users\nmyron> $PSVersionTable
Name                           Value

PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Yeah, this is a known issue with the types backing the AD commands. I don't have the link handy right now, but it's been looked at, and I believe there were some regressions in .NET Core that needed to be patched. From memory, it should be functional within a few more preview releases of .NET Core (I think they ballparked it at preview8 of .NET Core 3).
I think @corbob might know where that issue thread was at, it was in either the AD commands repo or the .NET Core repo...

Well, it was an adventure learning about GitHub searching and such. It's over here: https://github.com/PowerShell/PowerShellModuleCoverage/issues/5 including a workaround if you're so inclined.

@corbob Thanks for the reference.
Latest daily PowerShell 7.0 is based on .Net Core 3.0 so I expect the issue is gone. Please confirm.

Not sure that fix has made it all the way here yet. It was merged to net core, but I think that was after preview6 of .net core 3 (which is the current one we're building on if I recall correctly?)
@bergmeister has a branch where he's building against a more recent version of .net core 3, so he may be able to check if it's still an issue and confirm. If not, I'll give it another look when his PR is merged :)

You can try using the build of PR #9888, which updates .net core from preview 5 to 6 and more importantly the out of band nuget packages that are still on 2.1 for 7.0-preview1 of pwsh

hi to all.
still have same issue PowerShell 7.0.0-preview.2

I just had a dig at the underlying issue in .Net Core that causes this: https://github.com/dotnet/corefx/issues/34151
The following PR fixes this: https://github.com/dotnet/corefx/pull/38283
However, the PR was merged on June the 6th and it seems at that time .Net Core 3.0 Preview6 has already branched off and therefore it did not make it into Preview6, which  PowerShell 7.0.0-preview.2 uses now. I expect .Net Core to release preview 7 (or an RC) in the next days or weeks, which will have this fix, meaning it will likely be in PowerShell 7.0.0-preview.3

P.S. I've manually tested that the recently published preview7 actually fixed this by building PowerShell and running the command. The upgrade of the .Net Core runtime to preview7 will happen in PR #10227, which I expect to be part of 7.0-preview3


Adds readme to nuget

added a few infos to readme and referenced it in the .nuspec so it would show up on nuget.org

Merged, thanks!


ADC private messages forwarded as BMSG instead of DMSG

Private messages are actually wrapped in a Broadcast-type frame:
https://github.com/direct-connect/go-dcpp/blob/8bc128e8f1def6e40b638c81e50d8f6c40d46af9/hub/hub_adc.go#L1052
In most hubs, private messages are wrapped in Direct-type frames. The specification does not directly address this point, but provides examples that show how public messages are sent via BMSG, and private messages via DMSG:
https://adc.dcbase.org/Protocol
Is there a specific reason for this choice? this discrepance was again reported by automated tests.
Thanks

Definitely a bug, probably a type from a refactoring. Should definitely be fixed ASAP.


Strong name for VroomJs assembly

I want to switch ReactJS.NET from using its embedded version of VroomJs to instead using your fork. Currently, all the ReactJS.NET assemblies are strong named - This was mainly to support enterprise-ish environments where the websites use strong names (and thus all dependencies must also use a strong name). This diffs adds a strong name for the VroomJs assembly.

I'll push a NuGet update this evening, when I get out of work.

Hey @pauldotknopf! Is it possible to push this update to NuGet? Thanks! 😄

Oops, sorry, brain-fart, it is pushed now.


How do you get it to run?

im not sure how to even run the program do i need a .BAT file or something?

please close as duplicate of #15


Added complete list of of Postgres libpq-connect options to Postgres Driver

Thanks to all of you who work to keep CodeIgniter running!
In an earlier bug report/issue (https://github.com/bcit-ci/CodeIgniter/issues/5057) there was discussion about the list of options currently supported in the Postgres libpq-connect string. In my own app I'm using the 'sslrootcert' option. I went to the Postgres documentation to see what else is allowed: https://www.postgresql.org/docs/9.1/static/libpq-connect.html
I have updated the list to include all valid options. I'm thinking the purpose of the foreach loop is to prevent programmers/whoever from generating non-valid options to postgres. The way it stands now it prevents valid (and in my case necessary) options.
BTW, it is not a big deal for me to just patch the core with my own option list ... and as far as I can tell, I'm the only person on the planet who uses this section of code! :-) Part of me is not particularly thrilled that I will have to go through such a long list every time I connect to the db. Anyway, let me know your thoughts ... I'm fine with whatever gets decided.
P.S. I wasn't sure what to do about the key/$key issue since that was already accepted.

I did some more reading (https://www.postgresql.org/docs/9.1/static/libpq-pgservice.html) and learned something new. Apparently the 'service' option allows you to specify multiple parameters via a file ... which would allow getting around the absence of sslrootcert without having to add it to the list of accepted options.
So maybe the original list is fine.

If we'd have to do this for 20 options, I'd rather just get rid of the whitelist ...
However, for the SSL options in particular, please read https://github.com/bcit-ci/CodeIgniter/issues/5057#issuecomment-287690638) more carefully.

I think you are about to talk me into deciding to make no change (unless it is to remove the whitelist altogether). It does seem to be overkill to list all the options the way I listed it.
I re-read https://github.com/bcit-ci/CodeIgniter/issues/5057#issuecomment-287690638 and took a look at config/database.php and the options listed in its documentation. One issue is that sslrootcert exists as an option for Postgres and doesn't exist for MySQL.  Limiting options to ones that both DBMS's share will necessarily restrict functionality in one or both of the others.
FWIW, I don't even use database.php in my application so removing the whitelist would allow me to put any valid option. Also, now that I learned about the "service" option I can probably get around the absence of sslrootcert even if the whitelist is in place.
So, I think I'm recanting this proposed pull request in favor of one of these:

leave the whitelist as it is
or
remove the whitelist altogether (if this is something you think we should pursue I don't mind generating another pull request with the proposed change)

Thanks for your consideration!

Removing the whitelist is a better option.


Upgrade to polkadot-v0.9.20

Hi team,
We're currently blocked by this update and was wondering if we could contribute this.

substrate/polkadot-v0.9.20
cumulus/polkadot-v0.9.20
polkadot/release-v0.9.20

Thanks!

Codecov Report

Merging #739 (37b271b) into master (c673da3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #739   +/-   ##
=======================================
  Coverage   77.68%   77.68%
=======================================
  Files          88       88
  Lines        9069     9069
=======================================
  Hits         7045     7045
  Misses       2024     2024

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

LGTM


Fix delta dependency in IntelliJ

What is the context for this pull request?

I cannot compile/run tests inside IntelliJ.
What changes were proposed in this pull request?

This PR proposes to fix the dependency for delta to compile/run tests in IntelliJ.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Manual testing.

Looks like enabling auto-import build.sbt fixed the issue. Closing this.

Looks like enabling auto-import build.sbt fixed the issue. Closing this.


Disable WebAssembly and Webgl to avoid security or privacy threats

Hello, I use Quark player to watch the videos, so I don't need WebAssembly and Webgl which can pose a threat to security or privacy or slow down browsing and consume battery power and webassembly can be used for crypto mining jacking ....... and I even disable WebAssembly and Webgl on classic web browsers because I don't install web apps and I don"t use 3D so my browsing is more fluid and faster..... that will be great to add an option to disable WebAssembly and Webgl , thank you very much !
https://github.com/stevespringett/disable-webassembly
"Based on the above facts, here are some potential threats in using browsers that support WebAssembly:
 Static code analysis becomes increasingly difficult as source code may not be available
 Sandboxing is prone to breakouts and effectiveness varies largely by implementation. Adobe Flash is an example of a technology that was sandboxed after a series of exploits, yet exploits and breakouts still occurred.
 Transmitting a binary executable format over an insecure channel is susceptible to man-in-the-middle attack.
 Code signing, the process of verifying software has not been tampered with, is not currently possible with WASM. WASM is selling itself as the ability to run desktop-like applications in the browser, yet the operating systems it supports all have code signing requirements for installed software. Allowing random drive-by software to execute unsigned seems to be a 'feature' of WebAssembly.
 WebAssembly assumes that 'safe applications' can be derived from language subsets and a few rules to prevent specific type of behavior. This is similar to blacklisting in the security world, a technique that rarely works. The specification omits the possibility of misuse cases from their security dialog. Exploits can occur in 'safe applications' simply by using the application in a way it wasn't designed to run. Since static code analysis is not currently possible, automatically identifying potential performance, insider-threats, security, and misuse cases is not possible.

The WebAssembly specification does not address any of the above threats. Therefore, I have disabled WASM on my personal browsers and have discounted use of browsers that do not allow WASM to be disabled. To be fair, many of the threats above also apply to Javascript, which can be statically analyzed or outright disabled."

@trimechee I can't disable these, because many of the streaming sites (and websites in general) use webassembly and webgl for working correctly. WebGL does not have any privacy or security threats above the baseline.
While webassembly can be used maliciously, it is used on most streaming sites.

Ahh, i understand, thank you !
just to to specify that I disabled webassembly and webgl on the browser I use to watch streaming sites and even to check my gmail and surf on twitter and facebook and I didn't notice anything weird, everything works perfectly.....webgl seems to have privacy issue:
https://browserleaks.com/webgl
WebGL is a JavaScript API used to render 3D graphics within a web browser by utilizing the device's GPU. This makes it possible for websites to gather detailed information about a user's graphics card, which can be used to create a unique browser fingerprint.


Review: documentation

Required C standard should be C11
If any of the development libraries and headers noted as required are just for the SDK, they can be omitted here
Note that open62541 at version 0.1.0 is obtained as part of the build scripts
Document the command-line arguments
The example-config folder seems to contain what you would need to run against a simulator; document how to do this
Include information for people writing device profiles. What are the nodeID, nsIndex and IDType attributes? Are there others that are supported? What EdgeX datatypes can be used and how do they correspond to OPCUA types?

closed #19


RuntimeError: dictionary changed size during iteration

I recently upgraded this package to the latest version and encountered a runtime exception when trying to login. Traceback:
  File "/home/rob/virtualenvs/py3.9/bin/awslogin", line 8, in <module>
    sys.exit(main())
  File "/home/rob/virtualenvs/py3.9/lib/python3.9/site-packages/mfa_tools/main.py", line 100, in main
    credentials = get_aws_credentials(args.profile, args.config, args.mfa, args.token)
  File "/home/rob/virtualenvs/py3.9/lib/python3.9/site-packages/mfa_tools/login.py", line 61, in get_aws_credentials
    for key in env_vars.keys():
RuntimeError: dictionary changed size during iteration

I suspect this is caused by the changes recently introduced in #3.
I set AWS_PROFILE in my .bashrc file, which probably caused this issue. I was able to work around this by unsetting this environment variable. I use this environment variable to set my default profile when using the AWS CLI. It would be great if this environment variable is also supported by awslogin.
Please let me know if you need additional information. Thanks for creating this package, btw, It's very helpful. Cheers!

Hey @robbawebba,
thanks for the feedback and I'm happy that the tool is useful.
I just released version 0.2.1 with the fix. It also has a list feature to check which profiles do you have configured.


Sso only

[x]  remove devise log in screens
[x]  remove old fields on user table
[ ]  tidy up sign in and login spec helper methods

@dan-palmer I've added an isolated commit that addresses the issue of logging out in mock mode (using the logout URL contained in the SSO data).
Basically, the approach I took was to redirect the user to the new_session_path in development, and to create a (very basic) mocked SSO app for testing purposes.
Please 👓  ;)

👍

Beautiful 👸 🤴


New recurring Thrift server errors

There is a new recurring Thrift server error; a log sample is available here. This seems to be triggered by this healthcheck.

As discussed, this is not a new error as it was pointed out earlier: https://github.com/google/fhir-data-pipes/issues/483 .. I am not sure what is the fix here as I tried few things and I did not get success..

Even if I send commands using beehive cli, I get these exceptions on thriftserver

There was an issue logged for apache thrift: https://issues.apache.org/jira/browse/THRIFT-5411
The issue was closed using this commit: https://github.com/apache/thrift/commit/be20ad7e08fab200391e3eab41acde9da2a4fd07
I can see the above code in thrift-0.15 and thrift-0.16 but from thrift-0.17 onwards, it is not again anymore.


S3 integration - remove old versions

If I previously generated main-a.js and uploaded it to S3, and now I do some modifications and I end up with a different static file like main-b.js, how to I tell S3 to remove main-a.js after I upload main-b.js?

This can be accomplished with a webpack plugin and is outside of the Django
loader’s domain.
https://github.com/johnagan/clean-webpack-plugin
On Sat, 24 Feb 2018 at 4:29 pm, Mihai Zamfir<EMAIL_ADDRESS>wrote:

If I previously generated main-a.js and uploaded it to S3, and now I do
some modifications and I end up with a different static file like
main-b.js, how to I tell S3 to remove main-a.js after I upload main-b.js?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ezhome/django-webpack-loader/issues/149, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAdy9h8jjnRj98X2AaBdVLHX72ZZ-LU6ks5tX8iAgaJpZM4SRzyi
.

If you are publishing to S3 using Django's staticfiles system then check how it can be configured to remove outdated assets. @KyeRussell already shared one plugin for webpack if you want to handle it there.
I personally generate assets so that they are stored in sub-directories. That way I can write scripts to remove entire sub-directories older than the latest 2.


Add files via upload

@AlexSchuy
Took around 9 hours.

General Comments
When you quote problem text, you should italicize it.
Problem 1
1.A.1) The idea was to simulate 100k events, i.e., randomly sample 100k times from the distribution and make a histogram.
1.A.2) When a 'statistical question' is asked for, it is as a means of defining what a probability refers to in this problem. The key points are: (1) defining the distribution involved; and (2) defining the limits of integration. In this problem, the idea was that since fluctuations can occur in either direction, you need to integrate from x to infinity and from -infinity to 2*mu - x (the corresponding point to x on the other side of the mean).
1.A.3) Fine, could be clearer. Latex would be nice.
1.A.4) Fine, but missing table.
1.B/C) Good. The long list of calculations for different sigmas are unnecessary; present the data in a table or plot, instead.
Problem 2
2.1) Note that sigma is related to probability, so you know immediately "how likely is it that the signal is outside the acceptable range of 5 sigma."
2.2) The idea is to identify the variable of interest, distance, which is d = sqrt(dx^2 + dy^2). Then, note that this variable is Rayleigh distributed. The probability of observing data as signal-like as d = m, for some measurement m, then, is determined from integrating the Rayleigh distribution from m to infinity, since larger distances correspond to more movement.
Problem 3
3.1/2) See my previous comment on statistical questions. Make sure to identify the distribution you need to integrate and over what limits.
3.3) The procedure here is similar to previous assignments; integrate the background distribution over some limits to calculate a probability. Convert the probability to a sigma using the icdf of the normal distribution. In this case, the key point was that the integral should be from 0 to the measured value of 6800.


Rendering of quotations breaks if the stream name contains parenthesis

https://chat.zulip.org/#narrow/stream/384-test-stream.20with.20.28parens.29.20in.20name/topic/stream.20events/near/1217840 for an example. The cause seems to be having () in the stream name.

@zulipbot claim

This appears to be a bug specific to mentioning a system bot, and has nothing to do with parens in the stream name, so closing this for now.

@zulipbot abandon


FIX: Scroll Area overflows in certain conditions.

#4497
FIX: Scroll Area overflows when in a grand parent container set to h-screen & parent container set to h-full & ScrollArea set to h-full

https://stackblitz.com/edit/stackblitz-starters-87rbtc?file=app%2Fpage.tsx

https://shop.fck.de/
William Stoneham @.***> schrieb am So., 4. Aug. 2024,
17:30:

https://stackblitz.com/edit/stackblitz-starters-87rbtc?file=app%2Fpage.tsx
—
Reply to this email directly, view it on GitHub
https://github.com/shadcn-ui/ui/pull/4498#issuecomment-2267581264, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BIO77CPPKLULBFSKYBYFC7LZPZCJFAVCNFSM6AAAAABL65W3P6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGU4DCMRWGQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


ques: should the wire of initApp() be writed in cmd/xx. instead of internal/server/xxx?

It's more easy to do e2e test when initApp move to internal/server/xxx


Bump actions/checkout

GitHub is planning to upgrade to Node 20. Versions prior to actions/checkout v3 use an outdated version of node, so we will upgrade to actions/checkout v4, where Node 20 is the default.

Thank you!


How to reproduce the secode git???

for default config, I wonder how to achive the second gif that select multi line at its start position????

#39 as linked in the readme.
Example 2

select the line with V
go to the end of the file with G
press  to add a cursor at the beginning of every line and move to normal mode
press I to insert at the beginning of the line
type ", move to end of line with , type another " followed by ,
move every cursor down one line with (this is a custom mapping of mine in Insert mode)
hit , now all the words are on the same line
the rest is just normal Vim

thank you, I found the wanted from you ref link.


net: SplitHostPort errors if no port is specified, but not if input ends with a trailing ":"

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
All
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
All
What did you do?
Repro case:
https://play.golang.org/p/etsLIZv_Oz8
What did you expect to see?
An error due to improper "host:port" syntax.
What did you see instead?
An empty port in the result and no error.

Note that godoc for Listen specifically calls out "<IP_ADDRESS>:" as a valid usage (why?), so this behavior cannot be changed unless Listen handles that case manually.  I imagine any behavior change here would not be allowed for backward-compatibility reasons anyway, even though omitting the port doesn't appear to be a valid input in the docs for SplitHostPort itself.

@bradfitz

IIRC this was a historical accident that we're unable to fix now (I think we tried once?). But we could try again or at least document the meaning of the empty port.
/cc @mikioh @alexbrainman @ianlancetaylor for if they recall.

See #14836 and https://tools.ietf.org/html/rfc3986#section-6.2.3 .

I'm not sure RFC3986 is relevant, because: a) this is not an RFC3986 parser (that's what the url package is for), and b) that section also lists "example.com" as valid, but that input will error when passed to net.SplitHostPort, because it is missing a port.

"<IP_ADDRESS>:" as a valid usage (why?)

IIUC, the form "host:port" is specific to the "net" package of the Go standard library, though the form refers to several RFCs. I can guess that original API designer on the net package API didn't have much time for the form because when I looked at the implementation it didn't treat much enough a) clear isolation between standardized notation and classical, conventional implementation-dependent forms, b) literal IP addresses especially IPv6 literals and c) various meaning and encoding schemes for the form.
For (a), it's clunky but at least accepting empty strings is required for backward compatibility in the case of traffic reception on any unicast and anycast IP addresses of the local system. For (b), we needed a minimal parser for fixing the conflict of the delimiter ":" with IPv6 literals. For (c), this is still the hardest part because no one knows what's the sustainable solution.
As a compromised result, SplitHostPort and JoinHostPort keep focusing on the manipulation of the form with required minimal parsing.

traffic reception on any unicast and anycast IP addresses ...

traffic reception on any unicast and anycast IP addresses with automatically assigned identifiers, for example, transport service names or literal transport protocol port numbers on the internet protocol suite.