how to use java library in rule yml file

i have to compare two list in return true if both are equals regardless of order.
one list i will get from facts and one i need to keep in yaml file.
eg
name: "datalake rule"
description: "check whether target are covid or not"
priority: 1
condition: "list.equals(Arrays.asList("A"))."
actions:

"System.out.println("Shop: Sorry, you are not allowed to buy alcohol" );"

but getting below error
[Error: unresolvable property or identifier: Arrays]

https://github.com/j-easy/easy-rules/blob/d4450831533e47a5c0cb361edb80dad43db228a4/easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELActionTest.java#L84-L87
https://github.com/j-easy/easy-rules/blob/d4450831533e47a5c0cb361edb80dad43db228a4/easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java#L52-L60
You need to customize the initialization Parameter parserContext  of class MVELAction.

hi @daidai21  Thanks for reply but i need in yml file .
eg
"Arrays.asList("X", "Y", "Z", "A").equals(target) "

So, how is everything going? Is there any progress about this issue :)


cat-paginated-refresh is listened on root scope

The point on having the event listener is that each list can be refreshed on its own. Therefore the listener should be instantiated on cat-paginated's own scope.

PR is coming...


Pulsar IO - KafkaSource - allow to manage Avro Encoded messages

Motivation
Currently KafkaSource allows only to deal with strings and byte arrays, it does not support records with Schema.
In Kafka we have the ability to encode messages using Avro and there is a Schema Registry (by Confluent®)
Modifications
Summary of changes:

allow current KafkaSource (KafkaBytesSource) to deal with io.confluent.kafka.serializers.KafkaAvroDeserializer  and copy the raw bytes to the Pulsar topic, setting appropriately the Schema
this source support Schema Evolution end-to-end (i.e. add fields to the original schema in the Kafka world, and see the new fields in the Pulsar topic, without any reconfiguration or restart)
add Confluent® Schema Registry Client to the Kafka Connector NAR, the license is compatible with Apache 2 license and we can redistribute it
the configuration of the Schema Registry Client is done done in the consumerProperties property of the source (usually you add schema.registry.url)
add integration tests with Kafka and Schema Registry

Verifying this change
The patch introduces new integration tests.
The integration tests launch a Kafka Container and also a Confluent Schema Registry Container
Documentation
I will be happy to provide documentation once this patch is committed.

@eolivelli
Unfortunately, I disagree with you on this. This approach creates a very bad example for other people to follow.
First of all, it basically creates a "connector" class per schema type. This is a very bad practice. I would discourage a connector implementation going down this route. It is impossible to maintain.
Secondly, it solves a very narrow scoped problem by introducing a specific type of source connector in which the key is a string and the value is AVRO. All the key schema information is dropped. Key schema information is important to a lot of streaming use cases. You can't solve the problem with this approach. Following your approach, you will end up creating N*N connector classes (where N is the number of schema types).
I would encourage people not introducing a code change that is specialized for their own needs. The connector implementation should be beneficial to broader users.

I would like not to enter the details of how Kafka and Confluent serialize data

Unfortunately, the Kafka AVRO is a confluent open-source thing not a Kafka community thing.
We are always in the game of touching serialization details when converting a message from X format to Y format. You either do the conversation at a high level using abstraction or at a low level by realizing the serialization details.
The approach you proposed also has a bad performance because it will churn a lot of object allocations. Realizing the serialization details can save a lot of memory copy and serialization/deserialization.

we allowing Sources to push GenericRecords,

This is a good initiative. But it should be isolated from this KafkaSource change.

@sijie  there no problem in disagreeing,
let's find together the right way to provide features to the users in the best way for the project.
I am going to split the patch into two parts, this way we can make one step at a time.

First of all, it basically creates a "connector" class per schema type. This is a very bad practice. I would discourage a connector implementation going down this route. It is impossible to maintain.

We already have KafkaBytesSource and KafkaStringSource, so I am just adding a new flavour of the KafkaSource, in fact the implementation is just about adding a new subclass of KafkaAbstractSource.
I am following the current style.
In my plans I would like to work more on this KafkaSource and on the KafkaSink and try to make the structure better.
There is an open work that will allow to put more sinks on the same nar and provide a better user experience.
https://github.com/apache/pulsar/pull/3678
In the meanwhile users of the Kafka source can go with "--classname" (or they can select it from a Web UI for interactive Pulsar Management Consoles)

in which the key is a string and the value is AVRO

we can work on this issue as well (and that's on my backlog), I didn't want to introduce too many features.
I have users that are used to advanced data mapping mechanisms both for the key and for the value, so mapping the key is very important to me.
That said, currently the  KafkaAbstractSource is working on a string key, that is a preexisting code
The approach you proposed also has a bad performance because it will churn a lot

of object allocations. Realizing the serialization details can save a lot of memory copy and serialization/deserialization.

I know about this fact, and I know how the StreamNative connector works.
Using the Java Model with GenericRecord adds that additional cost, but the benefit are:

to have simpler code, using code provided by the same vendors that are mantaining that serialization protocol
we can follow the evolutions just by upgrading the Confluent library
we are using pure Kafka/Pulsar APIs, totally integrated with the framework, this will allow us to leverage all future improvements

@sijie
This is the first part of the patch
https://github.com/apache/pulsar/pull/9481

Thank you @lhotari
Let's follow up in the linked pr.

let's find together the right way to provide features to the users in the best way for the project.

yes. I already pointed out the right direction that we should head down.

We already have KafkaBytesSource and KafkaStringSource, so I am just adding a new flavour of the KafkaSource, in fact the implementation is just about adding a new subclass of KafkaAbstractSource.
I am following the current style.

It was there doesn't mean it is the right pattern to follow. Kafka connector was not the first connect added it. Most of the MQ connectors don't have the schema information. Hence it is okay to maintain bytes or string connectors. But if we are talking about schema-aware connectors, let's avoid using this pattern. It is impossible to maintain the list of connectors. I would avoid going down this route.

we can work on this issue as well (and that's on my backlog), I didn't want to introduce too many features.

It is not about introducing too many features or not. This approach is hard to maintain.

Using the Java Model with GenericRecord adds that additional cost, but the benefit are:

The cost is huge when you have a very large struct. The connector should be designed to efficiently transfer data, instead of burning unnecessary CPUs. Let's avoid it as much as we can.

we can work on this issue as well (and that's on my backlog), I didn't want to introduce too many features.
It is not about introducing too many features or not. This approach is hard to maintain.

@sijie just to clarify, I meant that I didn't want to introduce too many changes in a single PR

@sijie I have addressed your main concern about deserialisation, now we are passing the whole payload (excerpt from the Kafka Schema Registry header).
Important issues to be fixed a follow up:

handle keys
handle JSON
have better packaging of NARs that contain multiple sources #3678

I will be happy to continue the work on this Source after we reach consensus over this patch

@sijie what about the current version of this patch ?

@sijie thank you for your pointers.
I managed to implement Avro support in KafkaBytesSource.
I would like to commit this initial patch and then add support for all of the primitive Schemas (1) and for JSON.
If you prefer I can continue to enhance this patch
(1) https://github.com/streamnative/pulsar-io-kafka/blob/master/src/main/java/io/streamnative/connectors/kafka/KafkaSource.java#L338

I have merged this branch with current master.
@sijie PTAL when you have time

/pulsarbot run-failure-checks

@sijie ping
PTAL

/pulsarbot run-failure-checks

@merlimat @rdhabalia @sijie
please help me moving forward on this topic

Apologized for the delay! will review it today or tomorrow.

@sijie

Why not implement Source or Source?
I am not sure we can save a memory copy this way.

In the end we have to return a byte[] during Schema#encode
https://github.com/apache/pulsar/blob/c01b1eeda3221bdbf863bf0f3f8373e93d90adef/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Schema.java#L72
The ByteBuffer we could return is pointing to a non-zero offset on the original array (we are skipping the magic number and the schema id), so we cannot re-use the same array and we will end-up in perform a copy.
https://github.com/apache/pulsar/blob/cd259a443625dfa0710e79a87de65fd11b85d5bc/pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/ByteBufferSchema.java#L58

/pulsarbot run-failure-tests

/pulsarbot run-failure-tests

/pulsarbot rerun-failure-checks

/pulsarbot rerun-failure-checks

@sijie ping

@sijie I have addressed your last comments.
I created a new issue regarding the management of the key.
https://github.com/apache/pulsar/issues/9848
this way we can move forward one step at a time

@freeznet @codelipenghui Can you review this PR?

@codelipenghui can you please help merging this patch?

@thank you very much @codelipenghui  and @sijie


texlive.combined: toward less derivation references

nix path-info --store https://cache.nixos.org -rsS /nix/store/0d0p2m27smgbhcj5zsf8hx9s6lcxvxwk-texlive-combined-full-2019

Indicates there are about 3,700 references that have to be downloaded to realize the texlive.combined.scheme-full attribute. Most of these packages are pretty small, so I believe we are running into significant overhead from there being this many references.
@Infinisil suggested maybe we could incorporate allowSubstitues = false; to limit the number of references in the combined derivation.
cc @veprbl

As far as I understand, disabling substitutes will completely disable Hydra caching. This is not expected to improve the download speeds.
If the number of references is too big, we could make full copies of the files instead of symlinks. But I'm not sure if Hydra is able to serve the big NAR's (#88045).

I'm going to close this for now, since I don't plan on working on it soon.


return expires_on from get-access-token

This is a fix for #19700. @jiasli made the code. It works. It will let us fix https://github.com/Azure/azure-sdk-for-rust/issues/1371 .
  "expiresOn": "2023-09-17 20:52:34.000000",
  "expires_on":<PHONE_NUMBER>,

If you want to rename it to expiresOnEpoch, either works for us.
Related command
az account get-access-token
Description
This returns the expire_on.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ x The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

Thank you for your contribution! We will review the pull request and get back to you soon.

Thanks for the contribution. I will discuss with our PMs regarding this topic.

@cataggar, do you prefer an integer expires_on or string expires_on?

"expires_on":<PHONE_NUMBER>
"expires_on": "1694976754"

@jiasli, I think a numeric type is better than a string. A uint32 would be good until 2106-02-07 06:28:15.

As there are more things to do besides simply uncommenting this line, I will do these tasks in another PR https://github.com/Azure/azure-cli/pull/27476.


Ability to change Navigation Bar Color for each connection

Feature description
WebSSH Blue Color is awesome 😇
But perhaps some users would like to change it to another one?

[ ] Implements a new option inside sshconfig in order to allow users to set they own color (CSS compatible)
[ ] Add missing documentation about this new option

Hello, I love this app, seems like the best ssh app I’ve found. One small thing that bothers me quite a bit: the blue of the top bar is quite intense (in light & dark modes) and distracts from the terminal. I would love an option to change its color to something neutral like black or grey.
Cheers,
Felix

Now available inside the latest beta release : https://testflight.apple.com/join/QSrBK59z


Release <IP_ADDRESS>301060755 no longer supports SSO (browser-based) login for Snowflake

Description
The SSO (browser-based) login option for Snowflake is missing from the Edit Connection dialog.
DBeaver Version
<IP_ADDRESS>301060755
Operating System
No response
Database and driver
Snowflake JDBC
Steps to reproduce
No response
Additional context
No response

Hello @AVBTeague
Thanks for the report.
That was done intentionally as part of our extended support of Snowflake databases. Right now, SSO authentication through UI, as for most other databases, is exclusive to our PRO versions which you can try for free on dbeaver.com
Configuring SSO authentication through the JDBC driver remains unaffected so that it can be configured manually.

Wait. So, the functionality was deprecated in the Community version? We were never on Pro, just the Community version, and had SSO as an Authentication option. Those who didn't upgrade to this version still have it. What is the "manual" configuration? Selecting externalbrowser? Selecting this or snowflake still requires the password to be saved with the connection, correct?

OK. Tried that. I'm still prompted for a password.

How was this issue resolved? I am using the community version as well, and am being prompted to enter password despite choosing externalbrowser as the Atuhentication method.

Not resolved. I have to save my login in the Edit Connection dialog's Authentication (Database native) section.

It's been a long time since no update here. Let me know, if the issue still actual, and provide additional information.

I tested with latest dbeaver as of today and the latest snowflake 3.14.2.  I am getting a 401 but if I switch to external browser i can login without issue.


Video library app

Resolution for Password encryption is missing on user authentication #63
createdAt and updatedAt have been added to user db. #12
MockBEE templated added to homepage #33
Testing API behavior for all the endpoints.

Changes implemented

initialUserData object was being used to append to the user's list and any newly created user. However, this approach would update all the instances (since its reference is the same object).
Renamed create and delete playlist handler function names.
Duplicate entries of the same video are eliminated. An error would be thrown if a user tries to add the same video twice into liked/history/playlist.

Hi @sohamsshah
With this PR, we close the following issues.

#12
#33
#35
#63

Thanks @supminn for this awesome contribution!


[FR] - Make it easier to connect to a local node using the API

Internal/External
Internal   (an IOHK staff member)
Area
API
Describe the feature you'd like
In order to connect to the local node (eg for submitting a transaction) one needs to fill in the following struct (Cardano.Api.IPC):
data LocalNodeConnectInfo mode =
     LocalNodeConnectInfo {
       localConsensusModeParams :: ConsensusModeParams mode,
       localNodeNetworkId       :: NetworkId,
       localNodeSocketPath      :: FilePath
     }

Why can't we just provide the node socket path and get the rest filled in by connecting to the node?
Describe alternatives you've considered
One can fill in that struct but its a huge pain in the neck.

Filling in the localConsensusModeParams parameter is even worse than I though.
data ConsensusModeParams mode where

     ByronModeParams
       :: Byron.EpochSlots
       -> ConsensusModeParams ByronMode

     ShelleyModeParams
       :: ConsensusModeParams ShelleyMode

     CardanoModeParams
       :: Byron.EpochSlots
       -> ConsensusModeParams CardanoMode

To construct ConsensusModeParams CardanoMode one has to provide the number of slots per epoch for Byron. That is just NUTS in my opinion.

I finally got something that compiles and will be correct for mainnet:
    _localNodeConnectInfo :: LocalNodeConnectInfo Api.CardanoMode
    _localNodeConnectInfo =
      LocalNodeConnectInfo
        { localConsensusModeParams = Api.CardanoModeParams (Api.EpochSlots 21600)
        , localNodeNetworkId = networkId
        , localNodeSocketPath = nodeSocket
        }

but the 21600 magic number (which is correct for mainnet) just should not be there.

I know this is a slight inconvenience for the programmer but it saves headaches when misconfiguration a complext system.  If you're service expects to see mainnet node on the other end, the issue should be solved in cardano-api by providing smart constructors; if you're service doesn't care about the node it connects to (e.g. cardano-cli query tip) then there's a room for improvement.

The node socket is the source of truth. What can go wrong?

What can go wrong is that there can be a mismatch of expectations. The client can think that it is connecting to the testnet, while the node is on the mainnet, or the other way around. So specifying the network you think you're connecting to is a useful sanity check.
I agree that it would be nice for that to be an optional sanity check.
Similarly for the mode. Things will go squiffy quickly if you connect to a node that's in a different mode to the one you expected, and not necessarily with very good error messages (since you're talking almost but not quite the same protocols).
That said, I agree we would rather not have to specify the epoch slots. That should be known for the cardano mode.
To make either of these optional sanity checks will require changes to the local IPC handshake.
On the topic of making it easier to connect to the node: we do still have a branch with support for getting the initial ledger config & state from the node, so that it's not needed to read the genesis file or other config files. The branch was approved but got held back by various code freezes and other priorities.


StartTime EndTime Flags don't wrap around - can block reboots

Problem
If the startTime command flag is set to be after endTime kured can never reboot. timewindow.Contains() always returns false.
Potential Unit Test Showing the Problem
You can add the following test case to pkg/timewindow/timewindow_test.go
	tests := []struct {
		days  string
		start string
		end   string
		loc   string
		cases []testcase
	}{
....
		{"mon,tue,wed,thu,fri", "9pm", "5am", "America/Los_Angeles", []testcase{
			{"2019/04/04 00:49 PDT", true}, // Would expect 12:49am to be between 9pm and 5am
			{"2019/04/04 22:49 PDT", true}, // Would expect 10:49pm to be between 9pm and 5am
			{"2019/04/05 08:59 PDT", false},
			{"2019/04/05 9:01 PDT", false},
			{"2019/03/31 10:00 PDT", false},
			{"2019/04/04 12:00 PDT", false},
		}},

And it will fail.
$ go test -timeout 30s github.com/weaveworks/kured/pkg/timewindow -run ^TestTimeWindows
--- FAIL: TestTimeWindows (0.00s)
    timewindow_test.go:64: (---MonTueWedThuFri--- between 21:00 and 05:00 America/Los_Angeles) contains (2019/04/04 00:49 PDT) didn't match expected result of true
    timewindow_test.go:64: (---MonTueWedThuFri--- between 21:00 and 05:00 America/Los_Angeles) contains (2019/04/04 22:49 PDT) didn't match expected result of true
FAIL
FAIL    github.com/weaveworks/kured/pkg/timewindow      0.006s
FAIL

If kured is setup this way nothing happens other timewindow.Contains() returns false for all times.
Impact
A user of kured can improperly configure kured in way that will result in kured never rebooting for no obvious reason. Nothing is printed to the log. The startup of kured looks reasonable. (The following is for a slightly different configuration).
$ kubectl logs -n kube-system kured-hsgrx
time="2020-09-14T20:05:21Z" level=info msg="Kubernetes Reboot Daemon: 1.4.5"
time="2020-09-14T20:05:21Z" level=info msg="Node ID: <REDACTED>"
time="2020-09-14T20:05:21Z" level=info msg="Lock Annotation: kube-system/kured:weave.works/kured-node-lock"
time="2020-09-14T20:05:21Z" level=info msg="Reboot Sentinel: /var/run/reboot-required every 1h0m0s"
time="2020-09-14T20:05:21Z" level=info msg="Blocking Pod Selectors: []"
time="2020-09-14T20:05:21Z" level=info msg="Reboot on: SunMonTueWedThuFriSat between 21:00 and 05:00 America/Chicago"
time="2020-09-14T20:05:21Z" level=info msg="Force annotation cleanup after: 2h0m0s"

Suggested Fix
A simple stop gap would be to include in the readme and other examples a warning that the startTime flag MUST be before the endTime flag. Wrap around is not possible.
Code fixes could include:

Don't allow kured to start if startTime is after end time with a meaningful error message.
Support time wrap around in timewindow.Contains.

Please confirm if an actual issue. Have similar setup where i want the reboot window to be from 2300 - 0600:
- --end-time=06:00
- --start-time=23:00
- --time-zone=America/New_York

Very good issue!
I don't have time to tackle this right now, but I think it's a simple fix.

I would like to tackle this, if it is OK.

Please go ahead @chentex ! :)


Please add an option to show filename on the tab instead of PDF title.

In most cases of using PDFs people often change the file name of the PDF from their OS instead of changing the title using an app. As a result, the title is often "PowerPoint Presentation", because PDFs are often made from ppt slides.
Now if I open such a PDF and the title is shown on the tab instead of the filename, it becomes difficult to identify what file I opened and can cause many more confusions.
So, if possible please add an option to show the filename on the tab instead of title.
Thanks.

@FrostedVolcano That is a really good point, thanks for suggesting it!
Currently the title of the tab is assigned by the PDF library (PDF.js). I will look in to how this can be configured.

@FrostedVolcano Can you attach one of the PDF file generated from PowerPoint that demonstrates the issue?

@shivaprsd sure, here's one:
Flow through pipes_1.pdf
If you open this with doqment, then on the tab it says "PowerPoint Presentation".

@FrostedVolcano Thanks! I just realised that PDF.js already shows the filename after the title (and only the filename if title is absent). The only problem is that the filename may not be visible if the title is long.
E.g. when I open a new empty viewer in Brave (i.e. Chromium) and then drag and drop your file, the title and the file name are visible on hover:
https://github.com/user-attachments/assets/999408af-ca23-416a-880e-3b3ba7c9c44a
Same with Firefox:

Only when you open it as a file:// URL on Chrome(ium), only the title is visible:

This is actually since a recent update, doqment shows the viewer inside an iframe, and the title of the page is set by the browser and unmodified by PDF.js.
We could do two things here:

make the behaviour in the last case above similar to the other two cases
add the option to show only the file name even when a PDF title is present

@shivaprsd I also noticed that the file name is actually visible after the title. I forgot to mention that.
Anyways, thanks for caring about users.


Auto Refresh Error

during editing the html template i got the following errors in my console.
Brower Chrome latest Win7
GET http://localhost:4502/libs/granite/csrf/token.json 404 (Not Found)
PUT http://localhost:4502/apps/repl/components/repl/template.html 405 (Method Not Allowed)

@AxelHo, what version of the REPL tool did you use? On what AEM release did you install REPL?

aem-6.0.0-SP2-hotfix-6316.jar
Update to  REPL latest with the "click method" described in the readme

Facing the exact same problem. 404 when requesting the token, 405 when trying to issue the PUT request.

Adobe Experience Manager, Version 6.0.0.SP1
com.adobe.granite.sightly.repl-1.0.2.zip (the package linked in the README.md)

Chrome 44.0.2403.155 m on  Windows 8.1 Enterprise, same thing happening in Firefox 40.0.2 so I strongly doubt it's due to browser issues.


cmake: pkgconfig files not installed

In grpc-1.2.3,
[    3s] + mkdir -p build
[    3s] + cd build
[    3s] + /usr/bin/cmake /home/abuild/rpmbuild/BUILD/grpc-1.2.3/. '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -DNDEBUG' '-DCMAKE_CXX_FLAGS=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -DNDEBUG' '-DCMAKE_Fortran_FLAGS=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -DNDEBUG' '-DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64 -DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_MODULES_INSTALL_DIR=/usr/share/cmake/Modules -DgRPC_PROTOBUF_PROVIDER=package -DgRPC_SSL_PROVIDER=package -DgRPC_ZLIB_PROVIDER=package -DgRPC_USE_PROTO_LITE=BOOL:ON
[...]
+ make install
[...]
+ find /tmp/F|grep pc$
/tmp/F/usr/include/grpc

However, the plain top-level Makefile does have rules for creating .pc files, but the cmake thing does not‽

#12968 is a duplicate of this issue, and this bug still exists in v1.9.1!

The cmake build scripts are meant mostly for:

be able to build on Windows (where cmake is our primary build system).
to be able to integrate well with cmake based projects on other platforms (cmake is not our primary build system on Linux and Mac).

If you are needing the pkgconfig files, why don't you just install using make install (not using cmake at all)? The cmake-based install is there mostly to provide a gRPCConfig.cmake so that other cmake based project can include gRPC using find_package().  So I am not sure if duplicating the pkgconfig files duplication makes sense.

If you are needing the pkgconfig files, why don't you just install using make install (not using cmake at all)?

 There is no standardization. Everyone is keen on inventing 1. their own variable names (PREFIX vs. prefix), 2. funny installation paths / not heeding the FHS split between "bin" and "share" and just dumping everything into one directory, 3. mess up with the basic expectations we usually get from build systems like autotools, cmake, (or whatever else there is). Like the complete lack of a make install target, or, in case of grpc, I just found a complete lack of DESTDIR support:
[   30s] + make install DESTDIR=/home/abuild/rpmbuild/BUILDROOT/grpc-1.9.0-0.x86_64
[   33s] [INSTALL] Installing public C headers
[   33s] install: cannot create directory '/usr/local/include/grpc': Permission denied

So no. Whenever there is a build system file, distros will try to use it. We will even write one ourselves if plain makefilery is just way too bulky/complicated/faulty.

@jengelh  do you feel like creating a pull request with the desired changes?

If you are needing the pkgconfig files, why don't you just install using make install (not using
cmake at all)?

In addition to what @jengelh said: because the Makefiles do not install the gRPCConfig.cmake file either.  How the library is used (via CMake, via pkg-config, via something else) should not depend on how the library was compiled and linked.

So I am not sure if duplicating the pkgconfig files installation makes sense.

So don't.  Use CMake for all builds on Windows, Linux and macOS.  Always install the *.pc files (even on Windows, some folks use pkgconfig and Makefiles there too), and always install the *.cmake files.  You cut one build system to support (yes, I know you use templates to generate them, but still...), and your users get to use the build system that they wanted to.

I believe this is still an issue.

@jtattermusch Since this has been fixed by #20211, can it be moved to the "Done" category?

@KyleFromKitware  moved.


Floating top nav covers anchor-linked content

As a user, it's very confusing to click on an anchor link and the content of the anchor is chopped off at the top.  It's disorienting and leaves me not sure what I'm supposed to look at.
I think we have a few options to address this:

If we must float the navbar we could add some logic to slide the page content down by whatever amount of screen the navbar consumes.

If floating the navbar in the /docs section of the site is not a requirement, we could turn it off.  (I would prefer this option as a frequent reader of the docs, but of course there are other considerations.)

Something else?

(Adding some illustrative screenshots as comments below.)

Blocked anchor content (half of table cell is occluded):

Without the floating nav:

This is a dup of https://github.com/cockroachdb/docs/issues/1451, I believe, so closing. But please comment on the other issue to give it more weight. I definitely agree that this is very annoying.


Bootstrap components

Hi, I have downloaded the module and  it's just awesome.
Well I have been in a little trouble with bootstrap, indeed when I try to use some bootstrap component inside sidebar content area, the height of sidebar is equal to the height of whole bootstrap components inside and not the height of the screen.
I hope I have well explained my issue.

I don't have enough info to help, unfortunately. You can probably try to debug it by looking at the elements' style properties in dev tools.


feat: implemented message encryption & interactive CLI

Description

Implemented interactive CLI.
Implemented message encryption.
Improved .gitignore  to prevent pushing local files to the remote repository.
Refactored code base with cargo fmt for consistent code formatting in this repo.

By the way, I will suggest that you stick with using cargo fmt before pushing any future pull requests, you can read about the reason why I'm suggeting it here actually: https://github.com/rust-lang/rustfmt
Impact
Now the CLI takes message input and encrypts/decrypts the message content during sending and receiving.
Side note:
You can get more fancy with it, I have limited time, but this PR should facilitate your progress on this repo...

This looks good, I tried it out. This helps provide more structure, I also appreciate your suggestion about cargo fmt and thanks for the link.


[front] - enh(front): member management

Description
This PR enhances member management and invitation handling in the frontend application by introducing new modals for managing invitations, adding a roles dropdown component, and improving data handling with the inclusion of creation dates for invitations. Additionally, it includes significant refactoring to streamline components and improve code clarity. These updates aim to provide a more efficient and user-friendly interface for workspace member management.

Risk
Not much
Deploy Plan
Deploy front

@spolu regarding InvitationModal.tsx: it consists of a bunch of functions that were already used before but that I moved here, along with the new ability to edit sent invitations.
New stuff:

https://github.com/dust-tt/dust/blob/27c04443bc30f74397f726216079c974fcebe624/front/components/members/InvitationModal.tsx#L258
https://github.com/dust-tt/dust/blob/27c04443bc30f74397f726216079c974fcebe624/front/components/members/InvitationModal.tsx#L362


Remove AddFinalizer event

Manual stress testing produces the following error on rare occasions:
k8s.io/client-go/tools/record.(*recorderImpl).Event(0xc009c16d20?, {0x2bdf0d8?, 0x0?}, {0x27df624?, 0x0?}, {0x280249e?, 0xc0006671f0?}, {0x28252cc?, 0xc0006671f0?})
	k8s.io/client-go@v0.26.3/tools/record/event.go:363 +0x4f
github.com/iter8-tools/iter8/controllers.broadcastEvent({0x2bdf0d8, 0x0}, {0x27df624, 0x6}, {0x280249e, 0x15}, {0x28252cc, 0x22}, {0x2c16f28, 0xc00094f9b0})
	github.com/iter8-tools/iter8/controllers/events.go:23 +0x1de
github.com/iter8-tools/iter8/controllers.addFinalizer.func1()
	github.com/iter8-tools/iter8/controllers/finalizer.go:78 +0xb12

To Reproduce
Observed running 150 apps (configmaps) each in loop that does:
deploy candidate
sleep 5
promote candidate
sleep 5

Expected behavior
No crash.

Remove AddFinalizer event. Not needed.


Specify region and job type

@kyliedale were you going to add/change some details from today or is this good to go?

Going to make some changes. I'll reassign to you after I finish them.

Changes look good @kyliedale, thanks. I did add back some comments about selecting the bucket, just so we keep a reference of what not to do (and a link to the relevant thread). If that looks good to you, go ahead and merge it in.


Exit feature

:bulb: Idea

Please add a menu entry to exit the app! Thanks!
:computer: Target components

Android apps don't really have "exit" buttons. Just press the home button.

But this is a foreground service that can not be easily stopped. Check out google maps or waze navigation when they are on the foreground, they all have an exit button in the notif.


Android renders blank pages in monospaced text colored with Prism

When the WebGL-enabled EPUB (insert link here) is rendered on Android (Readium 0.22.2) the first page in chapter 2 is fine but subsequent text pages in that chapter are blank - only the buff background is rendered but no text.  The text is being context-colored using the Prism.js library so perhaps that has something to do with it.  There is a report of a Readium problem with Prism, but that was on readium.js, but perhaps that is misleading and the problem is in shared-js?

Confirmed that the problem is related to prism.js.  I created another EPUB that did not use prism and the text is rendered without problems.  The second test file is here.
Note that this problem ONLY occurs on Android. Works fine on all other platforms tested.

Here's another odd data point.  If you go to page 1 of chapter 2 on Android the next page (reached by using the navigation buttons) is blank, i.e. only the buff-colored background is rendered.  BUT if you go to page 1 of chapter 2 and then touch the screen and slide sideways (towards the right) the whole page slides over part way and the rendered text for page 2 can be seen.  So it looks like prism is doing something funky with columns or divs and that is confusing the browser.

Hi,
we want to integrate our code into SDK-Launcher ios in Swift.And objective
c written code is accessible in swift by creating Header-bridge.
My question is if we go ahead with swift then will be able to aceess
required functions or not .Please also suggest if any issue exist with
Swift .
Regards
Rakesh
On Thu, Feb 25, 2016 at 12:34 AM, Ric Wright<EMAIL_ADDRESS>wrote:

Here's another odd data point. If you go to page 1 of chapter 2 on Android
the next page (reached by using the navigation buttons) is blank, i.e. only
the buff-colored background is rendered. BUT if you go to page 1 of chapter
2 and then touch the screen and slide sideways (towards the right) the
whole page slides over part way and the rendered text for page 2 can be
seen. So it looks like prism is doing something funky with columns or divs
and that is confusing the browser.
—
Reply to this email directly or view it on GitHub
https://github.com/readium/readium-sdk/issues/226#issuecomment-188407607
.

@sharak16   Please do not insert random comments or questions in the middle of issues about other subjects.  If you have questions, please open a new issue or send your question directly to the readium-dev mailing list or ask in Slack.  See the Readium communication page here.


uncrustify_vendor: 2.0.0-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository uncrustify_vendor to 2.0.0-1:

upstream repository: https://github.com/ament/uncrustify_vendor.git
release repository: https://github.com/ros2-gbp/uncrustify_vendor-release.git
distro file: rolling/distribution.yaml
bloom version: 0.10.7
previous version for package: 1.5.3-1

Please hold for coordinated merge.


Uninstall or toggle on/off

Hi there,
I haven't tried this yet, but before i nuke my settings ;-) is there an easy way to revert back to "pre-installed"?
Might be a good idea to add that to the README.md? There's an install section, but no uninstall section.
Thank you!

@notDavid
You're right. The documentation is lacking. The script will detect existing files and move them to .backup (e.g. .zshrc --> .zshrc.backup). You can also follow the Demo section.
I will update the documentation as well.

👍
Also perhaps include how to set the shell back to the default in macOS.

@notDavid
Uninstall script added


Add name based selection of boards to launch configuration

using board ids isn't user friendly, names would be better.

imo id numbers are faster, and id argue 80% of the users wont ever have more than 1 eeg so once the number is known its memorized, more options are always better!


sudo sh ~/Downloads/crouton -t xiwi,xfce wont work. I'm trying to turn my Acer Computer Into a Ubuntu Linux Computer

Please paste the output of the following command here: sudo edit-chroot -all
: 0: Refusing to exec /home/chronos/user/Downloads/crouton from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

Please describe your issue:
When running the command sudo sh ~/Downloads/crouton -t xiwi,xfce the crouton will not download. I got the crouton extension so it should work.
If known, describe the steps to reproduce the issue:
Type in sudo sh ~/Downloads/crouton -t xiwi,xfce and you'll likely download it.

@damianeisold,
There are new instructions for installing crouton, the old way doesn't work on 'noexec 'mounts as you've discovered. See the README for more info. but here's an excerpt from it:

If you're just here to use crouton, you can grab the latest release from https://goo.gl/fd3zc. Download it to Downloads, pop open a shell (Ctrl+Alt+T, type shell and hit enter), make the installer executable with:
sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
Then launch it with sudo crouton to see the help text. See the "examples" section for some usage examples.

Hope this helps,
-DennisLfromGA

I'm having the exact same issue:

@jmw2017,
In the screenshot above it appears that the first time you attempted to install crouton it was successful, it doesn't report success.
But, in subsequent attempts, the same command seems to fail so please make sure when you download crouton you place it in your Downloads folder.
You can check to see if it's installed by entering the following command:

ls -l /usr/local/bin/crouton

That should display the following if it's installed:
chronos@localhost ~ $ ls -l /usr/local/bin/crouton
-rwxr-xr-x. 1 root root 4.0K Jul 10 11:28 /usr/local/bin/crouton

The edit-chroot command failed because you first need to install a chroot using the crouton command.
Hope this helps,
-DennisLfromGA

Hi, i start saying that i'm at beginning, i tried to use your instructions @DennisLfromGA
sudo install -Dt /user/local/bin -m 755 ~/Downloads/crouton
but answer for me is
install: cannot create directory '/user': Read-only file system
so i tried what is written in crouton .txt
Ensure the cache directory is marked as exec. For reasoning, see:
https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md
if ! mountpoint -q "$CACHEDIR"; then
if ! mount --bind "$CACHEDIR" "$CACHEDIR"
|| ! mount -o remount,exec "$CACHEDIR"; then
echo "Unable to change permissions of the cache directory." >&2
fi
fi

i'm on a chromebook with intel gemini lake (i only wanted to install ubuntu, i didn't thought i'll be here) thanks

@cas9san6o,
You may not have noticed but this is a 'closed' issue.
You need to read the installation instructions carefully before typing in the commands.
The installation directory is /usr/local/bin NOT /user/local/bin
-DennisLfromGA

@cas9san6o,
Well, now you install a chroot.
See the https://github.com/dnschneid/crouton#examples for examples.
-DennisLfromGA


parts.horse

https://parts.horse
https://gtmetrix.com/reports/parts.horse/hn6zqvh7/ (homepage, 1.81KB)
https://gtmetrix.com/reports/parts.horse/1Iz3YZEX/ (individual component page, 12.3KB)

I'm using the https://parts.horse/parts page because it has at least some content. Maybe consider adding some explanation in the index page?


The process '/Users/runner/work/1/s/gradlew' failed with exit code 1

Description
While running the pipeline in azure devops for Android application, there was an issue due to which the pipeline failed -
"The process '/Users/runner/work/1/s/gradlew' failed with exit code 1"
Here is the iscreenshot

What can be done to mitigate the above issue as sometimes when we are running the pipeline, pipeline is successful but sometimes it is getting the error as mentioned above.
Recently it has started failing a lot and success rate is a bit low which is causing problem as it is much more time consuming.
Platforms affected

[X] Azure DevOps
[ ] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 11
[X] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[ ] macOS 14 Arm64
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
Runner Image
Image: macos-12
Version: 20240514.3
Included Software: https://github.com/actions/runner-images/blob/macOS-12/20240514.3/images/macos/macos-12-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20240514.3
Runner Image Provisioner
2.0.369.1+55cddbb57f254a369b6e7b3b508cebdbee5d24be
Current image version: '20240514.3'
Is it regression?
Yes, but could not provide build link
Expected behavior
Pipeline should be working as expected.
Actual behavior
It was working few days ago, but currently not working as mentioned in description.
Repro steps
Android
Build your Android project with Gradle.
Add steps that test, sign, and distribute the APK, save build artifacts, and more:
https://docs.microsoft.com/azure/devops/pipelines/languages/android
name: '$(prime).$(major).$(minor)'
pool:
vmImage: 'macos-latest'
steps:

task: Bash@3
inputs:
targetType: 'inline'
script: |
#!/usr/bin/env bash
MANIFEST_PATH=app/src/main/AndroidManifest.xml
VERSION_NAME=$(prime).$(major).$(minor)
BUILD_NUMBER=$(Build.BuildId)
TEMP_MANIFEST_PATH=${MANIFEST_PATH}.txt
echo "Version Code=$BUILD_NUMBER"
echo "Version Name=$VERSION_NAME"
cat ${MANIFEST_PATH} | sed "s/android:versionCode="."/android:versionCode="${BUILD_NUMBER}"/" > ${TEMP_MANIFEST_PATH}
cat ${TEMP_MANIFEST_PATH} | sed "s/android:versionName="."/android:versionName="${VERSION_NAME}"/" > ${MANIFEST_PATH}
rm -f ${TEMP_MANIFEST_PATH}

task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: assembleINTRelease

task: AndroidSigning@3
inputs:
apkFiles: '**/*.apk'
apksignerKeystoreFile: 'android_keystore'
apksignerKeystorePassword: '$(keystorePassword)'
apksignerKeystoreAlias: '$(keystoreAlias)'
apksignerKeyPassword: '$(keystoreAliasPassword)'
apksignerArguments: '--v1-signing-enabled true --v2-signing-enabled true --verbose'
zipalign: false

task: CopyFiles@2
inputs:
contents: '**/*.apk'
targetFolder: '$(build.artifactStagingDirectory)'

task: PublishBuildArtifacts@1

task: AppCenterDistribute@3
inputs:
serverEndpoint: 'Daimler_Android_AppCenter'
appSlug: 'Daimler-Care4Me-1/Care4Me-Int-1'
appFile: '$(build.artifactStagingDirectory)/**/*.apk'
symbolsOption: 'Android'
releaseNotesOption: 'input'
releaseNotesInput: 'Automated Release'
destinationType: 'groups'

HI team,
this is a urgent issue, we require immediate help on this.

Hi @erik-bershel
I confirm that there were similar problems before also, but with a lower fail rate.
Here are some failure records, with name and date.

As i can see, we are able to build the project without any error on android studio.
For providing access to fallen runs, we are checking internally that we can provide it to you or not due to policies.

Hey @TteamMBK!

I confirm that there were similar problems before also, but with a lower fail rate.

Then I can say with confidence that your builds are not compatible with the current runners realisation, unfortunately.
All I can recommend is to try hints from https://docs.veertu.com/anka/anka-virtualization-cli/nested-virtualization/#android-emulators or to set delay to allow Android emulator to boot. In some cases using GitHub larger runners helps also, but rarely.
I'm going to close this issue as a duplicate of https://github.com/actions/runner-images/issues/9194. Unfortunately, we cannot help with this.

Hi @erik-bershel
Could you please elaborate about "our builds are not compatible with the current runners realisation". So we can understand better and try to approach in a correct way.

Hey @TteamMBK!
Please read the description here: https://docs.veertu.com/anka/anka-virtualization-cli/nested-virtualization/#android-emulators.
Another examples: https://github.com/actions/runner-images/issues/9436, https://github.com/actions/runner-images/issues/9199, https://github.com/actions/runner-images/issues/9194
Anka does not support some nested virtualisation features because of some issues with the Apple virtualisation API. It results in poor Android emulator productivity.

@erik-bershel
I went through the sites you provided, but still i am not getting why we are referring our R&D towards android emulator.
Please make me clear that it is an android studio/emulator issue or pipeline issue or git issue.
FYI, i am asking you because recently pipeline got success once. we are still not understanding that "why is our pipeline getting failed sometimes"
We are open to connect with you on teams for better understanding of the issue. As we already mentioned, we need to find out its solution asap.

Hey @TteamMBK!
Sure! Let's start from the beginning.
At what step exactly does your build fail? Judging by the available information, it crashes during the testing stage. Since I have no other information about the code/config, I make the assumption that your project can also test the application using the Android Emulator. But as of recently, the already rather poor performance of this tool has reached its minimum among macOS runners due to our platform migration. The emulator's startup time exceeds that of almost any automatic tool which results in timeout while running tests. After the migration all the agents affected by https://docs.veertu.com/anka/anka-virtualization-cli/nested-virtualization/#android-emulators
At the same time, I cannot guarantee 100% that the problem is in the Android emulator - with the available information I can only guess.

We are open to connect with you on teams for better understanding of the issue. As we already mentioned, we need to find out its solution asap.

When you can provide more detailed information about the problem including an example-project or appropriate repro-steps, we can return to investigating the issue. Unfortunately, we do not directly support custom builds.

@TteamMBK is it possible to provide failed run logs too?
Also, please drop a couple of links to the latest successful and unsuccessful launches (just mark, please, which is which) - then I can check what is happening with the resources.

@erik-bershel
Here are the failed logs.
Failed pipeline logs.txt

@TteamMBK great, I'll take a look later. Please do not forget about build links also. No matter if private project - I don't need to open it.

@erik-bershel
could you please let me know, from where i can get Build links  ?

@TteamMBK

@erik-bershel
For repro steps, we have just pushed the code to the branch from android studio terminal and run the pipeline as usual, as the result,
Sometimes pipeline getting failed and sometimes success, we haven't done anything special and followed general practice.
Links for Failure pipeline :
Gradle link :-  https://daimler.visualstudio.com/Mercedes me Care/_build/results?buildId=5828955&view=logs&j=6b902995-b73d-5f5c-66fd-a7f66c857d2c&t=5c3b534e-a10d-5c45-5d5d-5f2c6dac839b
Bash :- https://daimler.visualstudio.com/Mercedes me Care/_build/results?buildId=5828955&view=logs&j=6b902995-b73d-5f5c-66fd-a7f66c857d2c&t=fb7842c6-7d51-58d9-ffcc-3576dc9c2f8b
Links for Success pipeline :
Gradle link : https://daimler.visualstudio.com/Mercedes me Care/_build/results?buildId=5759480&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=ea098990-53e4-52aa-5a84-5ead7c5f17f2
Bash : https://daimler.visualstudio.com/Mercedes me Care/_build/results?buildId=5759480&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=efa2bfe1-554a-50c8-79b6-ef106ad3c7c2

Hi @erik-bershel
is there any update on the issue ?

Hi @erik-bershel
Its been 2 weeks, we are in very urgent situation, this pipeline issue is creating a blockage for our application release and has many bad impact on business.
Could you please help us on priority to fix this issue together.

Hi @TteamMBK
Is Issue still occurring,  Can u please attach latest Failure & Success Logs, Will Analyse it.

Hi @vinaynaikr08,
Our project is in very difficult situation right now, we are facing blockage because of the pipeline issue. Please try to provide quick support.
I am sharing success and failure logs of pipeline. Please analyse and let me know if you need any other details.
latest failed logs.txt
latest success logs.txt

Hi @erik-bershel
any updates on the tickets.

Hey @TteamMBK!
After a dipper investigation of the failed run logs I may say that the issue itself should not be related to the virtualisation platform changes as I thought. There is no sign of resource related issues nether timeouts. From logs I found only some build issue that seems to be project and/or dependencies related.
Please run your build with the Gradle debug options like these to see more:
steps:
- task: Gradle@2
  inputs:
    workingDirectory: ''
    gradleWrapperFile: 'gradlew'
    options: '$current_options --debug --stacktrace'

In general we do not solve this kind of issues, but lets see more informative output just in case we could help.

Hey @TteamMBK!
Feel free to ping me when new logs collected. I'm closing this now as a stale.


Error is thrown if designated static folder doesn't contain a folder

Hi all,
Appreciate your work on this - really useful plugin!
But I ran into an issue when using it for a project where the designated static folder didn't contain a folder itself i.e. just files.
I was able to replicate this issue by deleting the "magic" folder from within the customOutInDistFolder from within your examples.
By taking a brief look at your code, it seems that if there isn't a directory present, then when copy is called within copyDir; mkdirSyncis never called resulting in anENOENT` error - since there is no target directory to transfer into.
I may be way off the mark with this if this is the intended behaviour: if so, it might be worth mentioning the required folder structure in the README to avoid other users encountering this error.
Thanks again!

hey @owenDods!
For sure this is (unexpected) bug, will fix it. And your brief looking is accurate folder is not created, so copying files failed. :-)
Thanks for finding this!

No worries! Glad I could help 😄

@owenDods it is fixed now with version 1.2.2. :-)


Use of the VideoPlayerController inside Chewie

I have two questions about chewie (which are tecnically speaking not 'issues') that i feel like would not make sense on github or gitter because of their specific nature. It would be great if you could help me out here! :)
That said, my current structure is simplified the following
new FutureBuilder<DocumentSnapshot>(
...
new Chewie(
	controller,
	aspectRatio: 16 / 9,
	autoPlay: true,
	looping: false,
	placeholder: new Container(
	color: Colors.grey,
	),
	autoInitialize: true,
),
),
...
  @override
  void initState() {
    controller = new VideoPlayerController(
        'https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.mp4');

    super.initState();
  }

As seen above, the controller is outsiede the scope of the Futurebuilder, so no data from the DocumentSnapshot can be used as a parameter for the VideoPlayerController.
So now my question: is it possible to implement the VideoPlayerController inside the Chewie widget, or can I maybe pass a value from the FutureBuilder down to the VideoPlayerController any other way? Any help would be highly appreciated!
On a sidenote, do you know whether it is possible to rotate the currently watched video into landscape mode as soon as the Fullscreen mode is activated? This way more screen real estate would be used and the user would be incentivised to rotate his/her device.

Hey @stemuk! Thanks for writing in :) We could consider changes to Chewie so it only took a Video URL rather than a Controller, but would it end up being much different in the end? In this example, would it be possible to do something like this?
new FutureBuilder<DocumentSnapshot>(
  future: firestore.getDocument()
  builder: (context, snapshot) {
    return new Chewie(new VideoController(snapshot.data['url']));
  },
);

I think your second suggestion actually makes a lot of sense. That's generally the default for most apps. I've created a separate issue to track that one! Any help implementing that functionality would be appreciated!
https://github.com/brianegan/chewie/issues/12

Thanks a lot for your answer @brianegan ! Yes, the example you mentioned would be possible if the state of Chewie would also be updated.
Looking the chewie-player.dart file the _buildFullScreenVideo Widget would have to be modified to rotate its children PlayerWithControls, maybe with https://docs.flutter.io/flutter/widgets/RotationTransition-class.html ? I have yet to learn animations in flutter but I will try to look into it more tomorrow.

@stemuk Ah yes, perhaps I should check in the didUpdateWidget method if the streamController has changed. If the controller is different than the previous controller, stop / teardown the previous controller and rebuild it with the new properties.

Heya @stemuk, I found some time to update Chewie today! It should include FullScreen -> Landscape Mode support on Andorid (iOS does not automatically rotate to Full Screen) and also supports providing a new VideoPlayerController to Chewie and it will properly switch / restart the vid if the URL / Asset path changes.

version 0.4.0 make my app crash when 0.3.0 work normally. Log

E/MethodChannel#flutter.io/videoPlayer(16128): Failed to handle method call
E/MethodChannel#flutter.io/videoPlayer(16128): java.lang.NullPointerException: uriString
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.net.Uri$StringUri.<init>(Uri.java:476)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.net.Uri$StringUri.<init>(Uri.java:466)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.net.Uri.parse(Uri.java:438)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1220)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1187)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer.<init>(VideoPlayerPlugin.java:57)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at io.flutter.plugins.videoplayer.VideoPlayerPlugin.onMethodCall(VideoPlayerPlugin.java:210)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:136)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.os.Looper.loop(Looper.java:135)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at android.app.ActivityThread.main(ActivityThread.java:7406)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
E/MethodChannel#flutter.io/videoPlayer(16128): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
E/flutter (16128): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (16128): PlatformException(error, uriString, null)
E/flutter (16128): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:547:7)
E/flutter (16128): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:279:18)
E/flutter (16128): <asynchronous suspension>
E/flutter (16128): #2      VideoPlayerController.initialize (package:video_player/video_player.dart:166:59)
E/flutter (16128): <asynchronous suspension>
E/flutter (16128): #3      _MaterialControlsState._playPause.<anonymous closure> (package:chewie/src/material_controls.dart:296:29)
E/flutter (16128): #4      State.setState (package:flutter/src/widgets/framework.dart:1125:30)
E/flutter (16128): #5      _MaterialControlsState._playPause (package:chewie/src/material_controls.dart:287:5)
E/flutter (16128): #6      _MaterialControlsState._buildHitArea.<anonymous closure> (package:chewie/src/material_controls.dart:136:17)
E/flutter (16128): #7      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
E/flutter (16128): #8      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:161:9)
E/flutter (16128): #9      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:94:7)
E/flutter (16128): #10     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9)
E/flutter (16128): #11     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
E/flutter (16128): #12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
E/flutter (16128): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:143:19)
E/flutter (16128): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
E/flutter (16128): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
E/flutter (16128): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
E/flutter (16128): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
E/flutter (16128): #18     _invoke1 (dart:ui/hooks.dart:134:13)
E/flutter (16128): #19     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:5)

thanks you. it work now

Using chewie 0.7.0. I am doing as stated above for using a snapshot to populate a videoplayercontroller with a future builder. If I navigate away doing nothing else but the initial build method the chewie/videoplayercontroller  seems to dispose correctly.  If however I even do one full screen expand and then go back to regular there is a chewie/videoplayercontroller that seems to keep running and I hear the audio still even though I am not on that page.  I have tried to track my controllers and force the dispose on pages dispose but i dont know why it keeps playing. Thoughts?

Hello,
I am having the same curious circumstance, that when navigating away from the video, the audio keeps on running... then, when navigating back again to the same video page, the video and the audio start playing simultaneously with the former audio, as there's seemingly no way to stop it...
My dart file presently looks as follows:
`import 'package:chewie/chewie.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
class EstrategiasPage extends StatefulWidget {
@override
_EstrategiasPageState createState() => new _EstrategiasPageState();
}
class _EstrategiasPageState extends State {
TargetPlatform _platform;
VideoPlayerController _controller;
@override
void initState() {
super.initState();
_controller = new VideoPlayerController.network(
'http://costari.ca/apps/iphe/videos/IPHE_metodologias_y_estrategias_bilingues.mp4',
);
}
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('Estrategias Bilingües'),
backgroundColor: Colors.indigo[900],
),
body: new Column(
children: [
new Expanded(
child: new Center(
child: new Chewie(
_controller,
aspectRatio: 3 / 2,
autoPlay: true,
looping: false,
showControls: true,
            // Try playing around with some of these other options:

            // showControls: false,
            // materialProgressColors: new ChewieProgressColors(
            //   playedColor: Colors.red,
            //   handleColor: Colors.blue,
            //   backgroundColor: Colors.grey,
            //   bufferedColor: Colors.lightGreen,
            // ),
            // placeholder: new Container(
            //   color: Colors.grey,
            // ),
            // autoInitialize: true,
          ),
        ),
      ),
    ],
  ),
);

}
}
`
I understand that you have successfully solved this issue:

Solved. I had my controller list in my widget and not in my state. I was trying to access the widget.controllers in the state and do a dispose which wasn't working. I moved the controller list to the state and dispose it there. Good to go.

but them, I am still a newbie to flutter and don't yet seem to understand how to implement your solution in my case... could you please be so kind to further explain the procedure?
thank you immensely !!!
Daniel


Add LDAP authentication to MEtabase

We would like to stop managing Metabase users as well as reduce the number of credentials our users have to remember.  As a devops engineer I would like users with -su access to also have rw access to Metabase. (and perhaps non-su read only)
To do this I'd like to integrate Metabase with LDAP (well, Azure AD). This should be a pretty straightforward exercise.
Details found here

Must use TLS!


Messages won't run unless you update Google Play Services

Hello
I'm running an Mi A1 Stock Oreo. I used the Terminal Debloater and removed as much of Google as I understand...
When I click on Messages I get a popup saying;
Update Google Play Services
Messages won't run unless you update Google Play Services
Apps Installed
Xposed - version 90-beta 3
FakeGapps - 2.0
Magisk 16.0
Services Core - com.google.android.gms-9258259.apk
Services Framework Proxy - com.google.android.gsf-8.apk
Store (FakeStore release) - com.android.vending-16.apk
DroidGuard Helper - org.microg.gms.droidguard-4.apk
I'm attaching two screen shots showing the microg settings.

Thanks

I guess that's Google's Messages, not AOSP. You can kick it off and get
something more FOSS, e.g. QKSMS (Messaging app) -
https://f-droid.org/app/com.moez.QKSMS

same with gdrive

Actually after dealing with this I started looking at Signal;
https://signal.org/
Then I read around, and of course there were articles talking the app down, but after further investigation it was just rubbish.
Signal looks to be as good as it gets, and everyone should spread the word on this app, and everyone should use it, and why, because in some parts of the world, Cellphone Providers retain sms/mms messages by law, under data retention...
I don't know about anyone else, I don't want my plain text messages and pics retained by anyone!
So I'll of course now rip out Google Crap 👎

No it does not (it used to, but stopped some years ago).

(See https://signal.org/blog/goodbye-encrypted-sms/)

@ArchangeGabriel my brain must be in a fog, because I do not understand what you are saying... :(
So what are you saying?
Sorry... :(

Oh ok, well, the HOME page;
https://signal.org/#page-top
This makes you think it's still using Encrypted messages, maye something has changed and that blog is old/outdated...
hmm

That’s because those messages are not SMS. Try sending a real SMS to someone that does not have Signal (or just turn data off), you will see that the message won’t be encrypted.

The word Data is what's confusing me, because you need a Data plan in order to use sms/mms...
So I don't understand what is being said about Data & sms? Make sense?
I'm assuming Signal is now still offering encrypted messages, just through a different method, that eliminates the sms/mms route...

@ArchangeGabriel
Oh my bad I guess all along you meant WiFi Data, not Cell Carrier Data...
But now after reading that blog, it doesn't seem like sms/mms encrypted is good, and an app like Silence isn't going to be good to use?
Hmm

Maybe we have an issue with terminology. For me data and data plan mean you can use internet with your phone. Whereas in my country, you can have unlimited SMS but not a single MB of data.

(No, it was not about WiFi)

I hear you on the Data aspect, that is true, can have SMS, but not Internet...
Well I guess maybe Silence for sms, and when you can use Wifi then use Signal for greater security...
You can never have enough security... LOL
Thanks


feat: external documentation support

This adds support for the external documentation object.
See https://github.com/OAI/OpenAPI-Specification/blob/3.0.1/versions/3.0.1.md#externalDocumentationObject
Closes #61

Do I have to fix wildcard imports?

Do I have to fix wildcard imports?

No,  i think its fine :+1: . Could you maybe disable the detekt-rule instead with this pr?  should be in "config/detekt.yml", line 786

Done 👍🏼

Looks good 👍 .  Thanks a lot for the pr. I will be creating+releasing a new version (2.4.0) with your changes as soon as possible.


Export not working (or not sure)

Expected behaviour

Run mermaid export
see my file, or ... something.

Actual behaviour

Run mermaid export (cmd-ctrl-p)
[nothing happens]

Where does it export to? Assuming cwd, it is not working. No log messages (despite checking mermaid export debug" in settings).
I searched issues, and this project's readme (doesn't contain the word "export"). Possibly related to #57 (in that I don't seem to have a working config).

This plugin does not support exporting the diagrams, only preview. Do you have other Mermaid plugins installed?

Hey, thanks. What do you mean by "export preview" -- does it export SVG, PNG, ... ? Maybe just adding a note about the export capability in the README would help.

Export means save in this context. There is already an open ticket tracking that. Closing this one in favour of #5.


Error android build on new solution after plugin installation.

In Windows, I installed nativescript dependencies and nativescript.
I created new project with --ng. I run into android device without any issues.
Then i installed plugin.
tns plugin add nativescript-push-notifications
On building android it throw the error
Z:\Development\Nativescript\mypushTesting\platforms\android\build\intermediates\
res\merged\F0F1\debug\values-v24\values-v24.xml:3: AAPT: Error retrieving parent
 for item: No resource found that matches the given name 'android:TextAppearance
.Material.Widget.Button.Borderless.Colored'.

Z:\Development\Nativescript\mypushTesting\platforms\android\build\intermediates\
res\merged\F0F1\debug\values-v24\values-v24.xml:4: AAPT: Error retrieving parent
 for item: No resource found that matches the given name 'android:TextAppearance
.Material.Widget.Button.Colored'.

:processF0F1DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processF0F1DebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Users\xx\AppData\Local\Android\android-s
dk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

Total time: 23.563 secs
Command Z:\Development\Nativescript\mypushTesting\platforms\android\gradlew.bat
failed with exit code 1

When i googled about the issue they say that this because of api version conflict.
Is this plugin requires specific version? But i didnt wrote a line of code.

Hi @Habeeb-mohamed how you managed to get the build process complete?
Thank you

@mounirka I updated the android sdk api. Then it started working.


Unable to load IronPython assembly while running a .NETCore2.1 Console App on VS2019

So I am trying to run a python script from my .NET Core App.
When the method that involves functions and classes, that are included in the IronPython Library, is invoked, it gives me the following error message :
Could not load file or assembly 'IronPython, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7f709c5b713576e1'. An operation is not legal in the current state. (Exception from HRESULT: 0x80131509)
I had installed the IRON Python library for .NET using the Nuget Package Manager.
Also, the present version of python installed in my system is 3.7.3
Can you please provide a solution.
Thanks in advance

Could you provide an example to reproduce the issue?


No pytorch_model.bin

I tried to run the example in the readme with from_tf enabled, while I found there huggingface does not have pytorch_model.bin. How I can fix this?
# Example does not work
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline

tokenizer = AutoTokenizer.from_pretrained(r"dmayhem93/toolformer_v0_epoch2")
model = AutoModelForCausalLM.from_pretrained(
    r"dmayhem93/toolformer_v0_epoch2",
    torch_dtype=torch.float16,
    low_cpu_mem_usage=True,
    from_tf=True,
).cuda()
generator = pipeline(
    "text-generation", model=model, tokenizer=tokenizer, device=0
)

Traceback (most recent call last):
  File "/scratch/yerong/ctoolformer/example.py", line 5, in <module>
    model = AutoModelForCausalLM.from_pretrained(
  File "/scratch/yerong/.conda/envs/tool/lib/python3.9/site-packages/transformers/models/auto/auto_factory.py", line 471, in from_pretrained
    return model_class.from_pretrained(
  File "/scratch/yerong/.conda/envs/tool/lib/python3.9/site-packages/transformers/modeling_utils.py", line 2511, in from_pretrained
    raise EnvironmentError(
OSError: dmayhem93/toolformer_v0_epoch2 does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

Loading from local snapshot works.


Rename index/chat commands to avoid clash with local utilities

@ajmcquilkin Just FYI. Hopefully it won't conflict with your PR.


RRN future

Hi everyone!
It’s been a very long time since I’ve been active on this repo. I’ve been really (really really) busy this whole year. I offer my humblest apologies for the unanswered issues and all your great PRs that have not been reviewed yet. But everything will be back to normal really soon, I promise.
I take this opportunity to share with you my thoughts about the future of the library, and especially the long-awaited v2. I don't want to give you any ETA yet, but be ready to get your hands on the alpha rather sooner than later! As a matter of fact, this matches with some technical needs inside my company, so you can expect a sustained development over the next few months.
Initially, this library wasn't meant to bring anything completely groundbreaking. It only allows you to combine the best of react-router@v4 - that offers an incredible API - with react-navigation, another library which offers lots of components for mobile app navigation.
One of the major problems of react-router-navigation is that it was initially developed as an experiment and I decided to publish it without thinking that it could exceed these 200 stars. So: my deepest apologises for never really taking the time to think about the evolution of this library. But this should end now. The upcoming v2 should allow a more user-friendly usage and cover a wider range of applications, without changing its API.
The main points of this new version are:

Documentation. Recurring questions have been asked about simple use cases of this library. I'm looking for some charitable souls to make up for this lack. A well-documented project is important to create a strong community and develop a library that is always accessible. Hit me up if you’re interested! 🙂
I also want to set up more tests to improve stability and robustness and isolate the different modules, including the library logic. This would ensure that any update of react-native or react-navigation would not endanger the proper functioning of the library. It should doable through simple unit tests with Jest, and E2E tests with Detox.
Add a <Modal /> component and a <Drawer /> component.
I also want to implement native navigation with react-native-navigation. This feature is part of an internal need at my company, that I would like to share with many people as possible. If some of you are interested, chime in! We have some great things to do together.

A stable v1 should be available in a few weeks. There are still a few issues to fix and updates of react-native, flow and react-navigation to operate.
I now give you the stage so that you can tell me your desires for this v2, just to be sure I haven't forget anything. I'm also interested in knowing how you use the library on a daily basis. Do you use it on iOS? Android? In production? In which company ? This will allow me to better understand how you use this library in order to guide its development towards the best possible path.
Stay tuned! 😊

Thanks for the update and great news!
Im using it with iOS and planning on Android too. Second I would like to see the option to customize the transitions between screens (direction of the new screen entering, like bottom), but maybe <Modal /> and a <Drawer /> will do what Im trying to archive.
Keep up the good work 👍


OnClick() is also triggering when doing long click

hi.
im exploring this awesome library and i have noticed some behavior which i think is weird.
the method OnClick() is triggering also if i long-click an item. is this by design?
shouldn't click and long-click be 2 completely separate events?
i mean, a user (in my opinion) should either clicks an item or long click an item and these 2 events should be handled separately ("regular" clicks should only trigger OnClick(), and long-clicks should only trigger OnLongClick()).

@or-dvir it depends. how did you implement your listeners?

i just have withOnClickListener() and withSelectOnLongClick(true).
my intention is that OnClick would be triggered when a user taps an item, and an item would be selected when a user long-clicks an item. however, if i user selects an item by long-clicking it, i do not want OnClick to be triggered.
i could very easily go around this issue by implementing an empty long click listener, but it feels unnecessary.

@or-dvir ah I see what you mean.

@mikepenz so is this a bug or by design? is it going to be fixed?

it was never considered as an issue as it's also the normal behavior of the click listeners. if there is no longlick the single click will trigger.
it could have bad impact if I change it at this time

After some more thoughts about this, I came to the conclusion that it would be not a good idea to automatically prevent the onClick event from happening, as some devs may want to have their own logic inside the click event.
Your solution with the longClick listener was the proper fix I think


New regression bug - deleting a Pod will not have another one recreated

Probably introduced by one of the latest commits

Issue is caused by the
logs
time="2018-09-18T19:02:42Z" level=info msg="DedicatedGameServer controller - update pod"
time="2018-09-18T19:02:42Z" level=info msg="Pod is being terminated" Pod=simplenodejsudp-collection-example-pstdw-vdxce
time="2018-09-18T19:03:13Z" level=info msg="DedicatedGameServer controller - update pod"
time="2018-09-18T19:03:13Z" level=info msg="Pod is being terminated" Pod=simplenodejsudp-collection-example-pstdw-vdxce
time="2018-09-18T19:03:23Z" level=info msg="DedicatedGameServer controller - update pod"
time="2018-09-18T19:03:23Z" level=info msg="Pod is being terminated" Pod=simplenodejsudp-collection-example-pstdw-vdxce
time="2018-09-18T19:03:23Z" level=info msg="DedicatedGameServer controller - delete pod"
time="2018-09-18T19:03:23Z" level=info msg="Pod is being terminated" Pod=simplenodejsudp-collection-example-pstdw-vdxce

This line
https://github.com/dgkanatsios/azuregameserversscalingkubernetes/blob/f99b02676c486ac6676a8ccf7b46332abd3cf3b5/controller/DGSController.go#L158
must be moved into syncHandler in a way that a new Pod will be created if the timestamp is != zero.


tenacity.RetryError: RetryError[<Future at 0x1467ed97eb0 state=finished raised AuthenticationError>]

`(ChatDev_conda_env) C:\Windows\System32\ChatDev>python run.py --task "[sandbox survival]" --name "[Fifth_Attempt]"
[Preprocessing]
ChatDev Starts<PHONE_NUMBER>0035)
Timestamp:<PHONE_NUMBER>0035
config_path: C:\Windows\System32\ChatDev\CompanyConfig\Default\ChatChainConfig.json
config_phase_path: C:\Windows\System32\ChatDev\CompanyConfig\Default\PhaseConfig.json
config_role_path: C:\Windows\System32\ChatDev\CompanyConfig\Default\RoleConfig.json
task_prompt: [sandbox survival]
project_name: [Fifth_Attempt]
Log File: C:\Windows\System32\ChatDev\WareHouse[Fifth_Attempt]_DefaultOrganization_20240831010035.log
ChatDevConfig:
ChatEnvConfig.with_memory: False
ChatEnvConfig.clear_structure: True
ChatEnvConfig.git_management: False
ChatEnvConfig.gui_design: True
ChatEnvConfig.incremental_develop: False
ChatEnvConfig.background_prompt: ChatDev is a software company powered by multiple intelligent agents, such as chief executive officer, chief human resources officer, chief product officer, chief technology officer, etc, with a multi-agent organizational structure and the mission of 'changing the digital world through programming'.
ChatGPTConfig:
ChatGPTConfig(temperature=0.2, top_p=1.0, n=1, stream=False, stop=None, max_tokens=None, presence_penalty=0.0, frequency_penalty=0.0, logit_bias={}, user='')
System: [chatting]

Parameter
Value

task_prompt
[sandbox survival]

need_reflect
True

assistant_role_name
Chief Product Officer

user_role_name
Chief Executive Officer

phase_prompt
ChatDev has made products in the following form before: Image: can present information in line chart, bar chart, flow chart, cloud chart, Gantt chart, etc. Document: can present information via .docx files. PowerPoint: can present information via .pptx files. Excel: can present information via .xlsx files. PDF: can present information via .pdf files. Website: can present personal resume, tutorial, products, or ideas, via .html files. Application: can implement visualized game, software, tool, etc, via python. Dashboard: can display a panel visualizing real-time information. Mind Map: can represent ideas, with related concepts arranged around a core concept. As the {assistant_role}, to satisfy the new user's demand and the product should be realizable, you should keep discussing with me to decide which product modality do we want the product to be? Note that we must ONLY discuss the product modality and do not discuss anything else! Once we all have expressed our opinion(s) and agree with the results of the discussion unanimously, any of us must actively terminate the discussion by replying with only one line, which starts with a single word , followed by our final product modality without any other words, e.g., " PowerPoint".

phase_name
DemandAnalysis

assistant_role_prompt
{chatdev_prompt} You are Chief Product Officer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer. You are responsible for all product-related matters in ChatDev. Usually includes product design, product strategy, product vision, product innovation, project management and product marketing. Here is a new customer's task: {task}. To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs.

user_role_prompt
{chatdev_prompt} You are Chief Executive Officer. Now, we are both working at ChatDev and we share a common interest in collaborating to successfully complete a task assigned by a new customer. Your main responsibilities include being an active decision-maker on users' demands and other key policy issues, leader, manager, and executor. Your decision-making role involves high-level decisions about policy and strategy; and your communicator role can involve speaking to the organization's management and employees. Here is a new customer's task: {task}. To complete the task, I will give you one or more instructions, and you must help me to write a specific solution that appropriately solves the requested instruction based on your expertise and my needs.

chat_turn_limit
10

placeholders
{}

memory
No existed memory

model_type
ModelType.GPT_3_5_TURBO_NEW

System: [RolePlaying]

Parameter
Value

assistant_role_name
Chief Product Officer

user_role_name
Chief Executive Officer

assistant_role_prompt
{chatdev_prompt} You are Chief Product Officer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer. You are responsible for all product-related matters in ChatDev. Usually includes product design, product strategy, product vision, product innovation, project management and product marketing. Here is a new customer's task: {task}. To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs.

user_role_prompt
{chatdev_prompt} You are Chief Executive Officer. Now, we are both working at ChatDev and we share a common interest in collaborating to successfully complete a task assigned by a new customer. Your main responsibilities include being an active decision-maker on users' demands and other key policy issues, leader, manager, and executor. Your decision-making role involves high-level decisions about policy and strategy; and your communicator role can involve speaking to the organization's management and employees. Here is a new customer's task: {task}. To complete the task, I will give you one or more instructions, and you must help me to write a specific solution that appropriately solves the requested instruction based on your expertise and my needs.

task_prompt
[sandbox survival]

with_task_specify
False

memory
No existed memory

model_type
ModelType.GPT_3_5_TURBO_NEW

background_prompt
ChatDev is a software company powered by multiple intelligent agents, such as chief executive officer, chief human resources officer, chief product officer, chief technology officer, etc, with a multi-agent organizational structure and the mission of 'changing the digital world through programming'.

Chief Executive Officer: [Start Chat]
[ChatDev is a software company powered by multiple intelligent agents, such as chief executive officer, chief human resources officer, chief product officer, chief technology officer, etc, with a multi-agent organizational structure and the mission of 'changing the digital world through programming'.
You are Chief Product Officer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer.
You are responsible for all product-related matters in ChatDev. Usually includes product design, product strategy, product vision, product innovation, project management and product marketing.
Here is a new customer's task: [sandbox survival].
To complete the task, you must write a response that appropriately solves the requested instruction based on your expertise and customer's needs.]
ChatDev has made products in the following form before:
Image: can present information in line chart, bar chart, flow chart, cloud chart, Gantt chart, etc.
Document: can present information via .docx files.
PowerPoint: can present information via .pptx files.
Excel: can present information via .xlsx files.
PDF: can present information via .pdf files.
Website: can present personal resume, tutorial, products, or ideas, via .html files.
Application: can implement visualized game, software, tool, etc, via python.
Dashboard: can display a panel visualizing real-time information.
Mind Map: can represent ideas, with related concepts arranged around a core concept.
As the Chief Product Officer, to satisfy the new user's demand and the product should be realizable, you should keep discussing with me to decide which product modality do we want the product to be?
Note that we must ONLY discuss the product modality and do not discuss anything else! Once we all have expressed our opinion(s) and agree with the results of the discussion unanimously, any of us must actively terminate the discussion by replying with only one line, which starts with a single word , followed by our final product modality without any other words, e.g., " PowerPoint".
Traceback (most recent call last):
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity_init_.py", line 382, in call
result = fn(*args, kwargs)
File "C:\Windows\System32\ChatDev\camel\utils.py", line 160, in wrapper
return func(self, *args, kwargs)
File "C:\Windows\System32\ChatDev\camel\agents\chat_agent.py", line 239, in step
response = self.model_backend.run(messages=openai_messages)
File "C:\Windows\System32\ChatDev\camel\model_backend.py", line 101, in run
response = client.chat.completions.create(*args, kwargs, model=self.model_type.value,
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\openai_utils_utils.py", line 299, in wrapper
return func(*args, kwargs)
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\openai\resources\chat\completions.py", line 598, in create
return self._post(
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\openai_base_client.py", line 1055, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\openai_base_client.py", line 834, in request
return self._request(
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\openai_base_client.py", line 877, in _request
raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-Hd-xi***************************************************************************nVgA. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Windows\System32\ChatDev\run.py", line 136, in
chat_chain.execute_chain()
File "C:\Windows\System32\ChatDev\chatdev\chat_chain.py", line 168, in execute_chain
self.execute_step(phase_item)
File "C:\Windows\System32\ChatDev\chatdev\chat_chain.py", line 138, in execute_step
self.chat_env = self.phases[phase].execute(self.chat_env,
File "C:\Windows\System32\ChatDev\chatdev\phase.py", line 295, in execute
self.chatting(chat_env=chat_env,
File "C:\Windows\System32\ChatDev\chatdev\utils.py", line 79, in wrapper
return func(*args, **kwargs)
File "C:\Windows\System32\ChatDev\chatdev\phase.py", line 133, in chatting
assistant_response, user_response = role_play_session.step(input_user_msg, chat_turn_limit == 1)
File "C:\Windows\System32\ChatDev\camel\agents\role_playing.py", line 247, in step
assistant_response = self.assistant_agent.step(user_msg_rst)
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity_init_.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity_init_.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity_init_.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x1467ed97eb0 state=finished raised AuthenticationError>]`

I insralled requirements , I setted new openai api. What should I do?

please note the error in your log, which is
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-Hd-xi***************************************************************************nVgA. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

so your openai key is invalid. Please use the correct openai key

please note the error in your log, which is
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-Hd-xi***************************************************************************nVgA. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

so your openai key is invalid. Please use the correct openai key

I've seen error code 401 time and time again. After continuously changing openapikey, I tried again, but the same problem occurred and I uploaded it.

I'm sorry, but it seems that this issue is not caused by ChatDev. Maybe you can write a toy example (like querying a "hello") to check the availability of your key.


Error occurred while executing query: duplicate key value violates unique constraint "app_config_pkey"

Describe the bug
When setting up the docker image of jellystat and creating a new user in First Time Setup Step 1 of 2 and hitting "Create User" the page refreshes to the exact same prompt and I get the following error message in the logs:
[JELLYSTAT]: Error occurred while executing query: duplicate key value violates unique constraint "app_config_pkey"
I have created the docker container with docker-compose.yaml and the default configuration.
Environment Details (please complete the following information):

OS: Arch Linux x86_64 Kernel: 6.9.7-arch1-1
Browser Firefox and Chrome
Jellystat Version 1.1.0
Jellyfin Version 10.9.8

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Task Logs
If applicable, add Task Logs for your problem.
Container Logs
If applicable, add Container Logs for your problem.
Additional context
Add any other context about the problem here.

I had the same thing happen to me, I fixed it by deleting the database (by default /postgres-data), starting the db container and waiting for it to init, after 30s I ran the second container and it worked


Typo in C.1.3.1 (release December 31, 2020)

release: December 31, 2020
print page number: 790
chapter: C.1.3.1
there is a minor typo on the second line:
instead of "or does not old"
should be "or does not hold"

fixed

fixed


[8.x] Bumped version

Master is now Laravel 8 (PHP 7.3+). I've not changed the Symfony versions at this time.

Thanks


Remove unnecessary comments

I removed unnecessary comments from shell/phpbrew.fish and binary files. :)

Hi. We should never edit the binary phpbrew files directly as this will cause phar signature to fail and when a new binary is built the changes would be lost anyway.
Always edit the sources only and do a pull request. The binary will be rebuilt (with make command) and pushed by one of the trusted maintainers.

@marcioAlmada
OK, I understood it. Thanks!