Repackage to org apache

What is the purpose of the change
Repackage to org apache
Brief changelog
Repackage to org apache
Verifying this change
All test cases are pass.
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[ ] Run mvn clean install -DskipTests & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #1941 into master will increase coverage by 0.59%.
The diff coverage is 62.97%.

@@             Coverage Diff              @@
##             master    #1941      +/-   ##
============================================
+ Coverage     49.78%   50.38%   +0.59%
- Complexity     4574     4737     +163
============================================
  Files           564      518      -46
  Lines         24670    25424     +754
  Branches       4360     4560     +200
============================================
+ Hits          12282    12809     +527
- Misses        10500    10662     +162
- Partials       1888     1953      +65

Impacted Files
Coverage Δ
Complexity Δ

...he/dubbo/rpc/cluster/support/BroadcastCluster.java
0% <0%> (ø)
0 <0> (?)

...igurator/override/OverrideConfiguratorFactory.java
0% <0%> (ø)
0 <0> (?)

...he/dubbo/rpc/cluster/support/MergeableCluster.java
0% <0%> (ø)
0 <0> (?)

...che/dubbo/rpc/cluster/support/FailfastCluster.java
0% <0%> (ø)
0 <0> (?)

...o/rpc/cluster/support/BroadcastClusterInvoker.java
0% <0%> (ø)
0 <0> (?)

...che/dubbo/rpc/cluster/support/FailbackCluster.java
0% <0%> (ø)
0 <0> (?)

...che/dubbo/rpc/cluster/support/FailsafeCluster.java
0% <0%> (ø)
0 <0> (?)

...che/dubbo/rpc/cluster/support/FailoverCluster.java
0% <0%> (ø)
0 <0> (?)

...cluster/loadbalance/ConsistentHashLoadBalance.java
0% <0%> (ø)
0 <0> (?)

...ache/dubbo/rpc/cluster/support/ForkingCluster.java
0% <0%> (ø)
0 <0> (?)

... and 1003 more

Continue to review full report at Codecov.

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

good job

Hi, This is quite a significant change, I think an ICLA is required here. [1]
[1] http://apache.org/foundation/how-it-works/legal.html#incoming-code

ICLAs are never required for contributions. They are only required for committers. Section 5 of the ALv2 gives all the permissions required.
Some projects ask for them from contributors making 'significant' contributions but that is a project choice and one that I'd argue creates an unnecessary barrier to participation.


Cannot immediately send on Dealer socket when using a monitor socket

I have the following code (which I modified from here ) that involves a dealer socket which I am monitoring for the connection event, this helps me to know that I have a successful connection and should be able to send messages now (I think!):

def event_monitor(monitor):
    evt = recv_monitor_message(monitor)
    evt.update({'description': EVENT_MAP[evt['event']]})
    print("Event: {}".format(evt))

    return evt

if dealer_monitor.poll(0):
    evt = event_monitor(dealer_monitor)

    if evt['event'] == zmq.EVENT_ACCEPTED:

        hello_msg = utils.MsgWrapper(
                        command = utils.hello_cip, t_uuid = t_uuid)
        dealer.send_string(json.dumps(hello_msg.serialize()))

The dealer socket never sends, however, if I modify this to send once the method consuming the monitor socket event has concluded, then the dealer socket can send. I am curious to know why, the docs make no mention of limitations of the dealer socket in this manner. I thought that once I have received the connected event, the socket is in a state that it can send. Is this not the case, or am I missing something?

Just thought I'd qualify a bit more. My environment is MacOS 10.14.5, I am using python 3.5.3 inside Blender 2.79. The versions for zmq are
zmq: 4.3.2
pyzmq: 18.1.0

Ahhhh crap! Sorry guys, I realised my mistake now, I should have been using zmq.EVENT_CONNECTED as the trigger to signal the socket had successfully connected. I have now corrected my code to:
def event_monitor(monitor):
    evt = recv_monitor_message(monitor)
    evt.update({'description': EVENT_MAP[evt['event']]})
    print("Event: {}".format(evt))

    return evt

if dealer_monitor.poll(0):
    evt = event_monitor(dealer_monitor)

    if evt['event'] == zmq.EVENT_CONNECTED:

        hello_msg = utils.MsgWrapper(
                        command = utils.hello_cip, t_uuid = t_uuid)
        dealer.send_string(json.dumps(hello_msg.serialize()))

This change has the code working as intended, the dealer socket sends now, turns out from my original code, the call to dealer.send was not called ever since the accept event occurs only on binding sockets, and the dealer was setup to connect, not bind.  ;P


improve math rendering of pymc model docs

This resolves issue #238

Not sure why the doctests are failing - they pass when I run then locally. Sometimes remote tests randomly fail and then pass when they are re-run, but that hasn't worked here (yet).

@drbenvincent The failure is coming from numpy when conftest is getting initialized, looks like it's the same issue on your website change pr. A new version was just released and the may have changed something. I've pinned version 1.24.4 (the most recent that github has before 1.26.0, I had 1.25.2 locally) and the tests are starting to run now.

The issue is actually coming from https://github.com/pymc-devs/pytensor/blob/main/pytensor/link/c/cmodule.py#L2720 in pytensor. Since CausalyPy and PyTensor don't have upper limits on the numpy version, this line throws an exception since v1.26.0 (released on Sept. 16th) no longer has the get_info() method.

Cool. I see you've dropped an issue in the pytensor repo https://github.com/pymc-devs/pytensor/issues/441
What do you think the best way forward is? Something like this?

Temporarily pin numpy<1.26.0 like you've done and create an issue to resolve this in the future.
That future resolution would also presumably require a version of pytensor which resolves your issue https://github.com/pymc-devs/pytensor/issues/441 ?


valPSNR increase very slowly

Nice work thanks!
I have a question about convergence speed
I've run your training code and almost passed 50 epoch.  The valPSNR is still under 15.5.
Is that normal?
also created clips seems to be not sequencial is that ok?

@avinashpaliwal  I have the same problem. I had  trained the model to 270 epoch, but the valPSNR  keep bellow 15, can you help me ?

@avinashpaliwal I have the same problem. I had trained the model to 270 epoch, but the valPSNR keep bellow 15, can you help me ?

the follow is valPSNR changing curve

Try the new create_dataset script to generate the dataset and try training again. The model starts converging right from the beginning.


[turborepo] Remote cache misses due to different hashes for binary files on different build environments

What version of Turborepo are you using?
1.9.6
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Describe the Bug
When using remote cache, the hashes generated for binary files are different in different environments. e.g., any png files will have a different hash in .turbo/runs/*.json as compared to the hashes generated on a different system, such as the CI builders
This causes a cache miss even when the files are identical
Expected Behavior
The computed hashes for binary files should be identical across different platforms/systems/environments
To Reproduce
Build a project containing .png or .tgz or any binary files on one system while using the --summarize flag.
Build this same project on a completely different environment and compare the .turbo/run/*.json files. You'll notice that all .js and text files will have the same hash, but there will be a mismatch for binary files.
Reproduction Repo
No response

Could you provide a reproduction repo (perhaps with Github Actions setup to run on macos and ubuntu) that shows the different hashes?


Project 1: Setup and mobile version skeleton

Project 1: Setup and mobile version skeleton
In this PR I added :

Added the toolbar (or header):
Added headline section (right after the header):

Project 1: Setup and mobile version skeleton
In this PR I added :

Add some padding to the title and paragraph in order to match the Figma design
Wrapping social media icons in ul tag and each one in li tag
Align headline elements using flexbox

Thank you @sumairq for your feedback and approval.


encrypted

How to confirm whether the compressed package is encrypted

Not currently implemented. Not really sure how to go about that, and I don't personally have a need for it, but anyone is welcome to submit a proposal here for how it would work!

Going to close this since there's nothing really actionable I can do with this, but if anyone else finds this and wants to submit a proposal then we can work with that. Thanks!


Mac OS X: bundle identifier is still com.github.atom

On Mac OS X, the 2 plist files still list the CFBundleIdentifier as com.github.com:
  <key>CFBundleIdentifier</key>
  <string>com.github.atom</string>

This shows up in a crash dialog (which I got on exit).

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use electron-prebuilt and electron-packager instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


Update List for Immediate Preprocessing of Items

fix #681

@garrettmflynn Sorry, can you submit a pre-PR to fix the new 'definitions' errors coming from the merge on NeuroConv?

@garrettmflynn Looks like some e2e tests failing on live services from this branch - (tests not required for merge which is why it went through, but still worth a look)
https://github.com/NeurodataWithoutBorders/nwb-guide/actions/runs/8727600075/job/23945456839


Make integration test suite more agile - change command line arguments

Introduction
See this white paper on the motivation and design changes planned for the integration-test-suite.
Details
Keep in mind, that the integration-tests are carried out by different scripts and files. They can be identified by following down the invocation chain from "test-integration": "bash ./test/sh_integration_test_run.sh" (package.json).
Adjust the integration-test-suite (ITS) to the following default behavior.

By default do the cleanup at the very beginning and the very end. Cleanup involves deleting the generated code, invoking down on the respective docker-compose, and deleting the respective Docker images.
The generated code shall as before be kept in the folder ./docker/integration_test_run/, Adjust the Docker-files to no longer copy the code into the respective images, but use mounts to make the code available inside the Docker containers.
Add the option --keep-running which skips the cleanup step at the end of the test-suite and keeps the Docker containers running.

Add new commands that deviate from the default behavior.

--restart-containers: This command stops the running containers via docker-compose down and restarts them. Because the containers managing the test-suite's databases do not use docker named volumes, but transient ones, the databases will be re-initialized by this command, too.
--generate-code: This option automatically starts by executing command 1. --restart-containers. Empty directory ./docker/integration_test_run/. Then, use the project's current base (as in your local copy of the code-generator-repository) to generate the code for the test models.
--run-tests-only: This option automatically starts by executing command 1. --restart-containers. Subsequently, execute the integration tests.
--generate-code-and-run-tests: Combines the commands 1., 2., and 3. in that order.
--cleanup: Executes the cleanup step as explained above in the default behavior.

Hint on how to delete and re-create the database:
You can use the node script testSequelizeDbServerAvailable.js as a template to implement the deletion and re-creation of the database used by the integration-test-suite. Make sure that the database is only deleted if it exists, and only created if it does not. See this post on Stackoverflow and the Sequelize documentation on how to execute SQL commands via Sequelize.
Note, that the npm install --save command in the Dockerfile.graphql_server will be no longer needed, but needs to be executed on startup of the graphql-server Docker container in the respective docker-compose-test.yml (see this docker-compose for details):
command:
      - /bin/sh
      - -c
      - |
        npm install
        ./migrateDbAndStartServer.sh

Also note, that the respective COPY commands will also no longer be needed in the Dockerfile.graphql_server.
Remove the existing command line arguments:

--run-docker-only which just creates the Docker images and starts the docker-compose, but does not execute the test-suite, and
-k <docker-image-name> which enables to save certain Docker images from being deleted by the cleanup process.

Please make sure that the documentation is updated. Documentation should be in the bash scripts in the form of a usage information printed out, in our Wiki, and in the respective Readme file of the code-generator repository

Hi!
The specified functionality is already implemented on branch i67. Documentation was already added to bash script in manpage style (-h option).
Following are examples of use.
If there are no comments. I would appreciate your approval to proceed to do merge of the brach 'i67' and to close this issue.
Thanks!
EXAMPLES:
To see full test-integration info:
$ npm run test-integration -- -h
To run default behavior (cleanup-genCode-doTests-cleanup):
$ npm run test-integration

To run default behavior but skip final cleanup (cleanup-genCode-doTests):
$ npm run test-integration -- -k

To restart containers:
$ npm run test-integration -- -r

To generate code and start containers:
$ npm run test-integration -- -g

To do the tests only and keep the containers running at end:
$ npm run test-integration -- -t -k

To generate code and do the tests, removing all Docker images at end:
$ npm run test-integration -- -T

To do a full clean up (removes containers, images and code):
$ npm run test-integration -- -c


Fix: OpenSSL 3.x reports unexpected EOF as SSL error

Prior versions used to report a syscall error with a zero return code but this has been considered a bug and changed to be reported as a SSL error with a specific reason in v3.
This patch is implementing the detection of an unexpected EOF for v3 while still supporting v1 as per the documentation:

https://www.openssl.org/docs/man1.1.1/man3/SSL_get_error.html#BUGS
https://www.openssl.org/docs/man3.2/man3/SSL_get_error.html#NOTES

But it doesn't fix the failing spec, which only seem to have started failing with OpenSSL v3.2 while the change was introduced in OpenSSL v3.0 :thinking:
Details:

return code is -1;
error type is SSL_ERROR_SYSCALL;
error code is 0;
error message is "unknown error or no error".

Refs #14200 #14168 #14169

I don't think I can do better. I'm really not sure about the hack to fix the spec.
I guess we should check with 2 processes talking through SSL and killing either one and see if the EOF is correctly detected. If someone's willing to check that...

I tried this patch with a simple SSL client/server communication. Both sides detect EOF correctly if the other end disappears.
So looks like everything works as expected.


AttributeError: 'int' object has no attribute 'encode'

Insert into a clickhouse table with int data is giving an encoding error.
[2022-12-12, 07:56:58 UTC] {clickhouse_hook.py:84} INFO - INSERT INTO table VALUES with ((1, 'Default manager', None<EMAIL_ADDRESS>None, 1, datetime.datetime(2020, 2, 3, 10, 29, 34), 2),)
[2022-12-12, 07:56:58 UTC] {taskinstance.py:1851} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow/operators/python.py", line 175, in execute
    return_value = self.execute_callable()
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow/operators/python.py", line 193, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/opt/airflow/dags/mysqltoclickhouse.py", line 18, in mysql_to_clickhouse
    ch_hook.run('INSERT INTO fm_revive.rv_agency VALUES', records)
  File "/home/airflow/.local/lib/python3.7/site-packages/airflow_clickhouse_plugin/hooks/clickhouse_hook.py", line 72, in run
    types_check=types_check,
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/client.py", line 354, in execute
    columnar=columnar
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/client.py", line 579, in process_insert_query
    types_check=types_check, columnar=columnar)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/client.py", line 631, in send_data
    self.connection.send_data(block)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/connection.py", line 604, in send_data
    self.block_out.write(block)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/streams/native.py", line 39, in write
    self.fout, types_check=block.types_check)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/columns/service.py", line 157, in write_column
    column.write_data(items, buf)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/columns/base.py", line 87, in write_data
    self._write_data(items, buf)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/columns/base.py", line 91, in _write_data
    self.write_items(prepared, buf)
  File "/home/airflow/.local/lib/python3.7/site-packages/clickhouse_driver/columns/stringcolumn.py", line 18, in write_items
    buf.write_strings(items, encoding=self.encoding)
  File "clickhouse_driver/bufferedwriter.pyx", line 54, in clickhouse_driver.bufferedwriter.BufferedWriter.write_strings
AttributeError: 'int' object has no attribute 'encode'

How can i bypass or handle this error?

This is not an Airflow ClickHouse Plugin related issue, you have probably misused the clickhouse-driver functionality itself. I think you have mixed the arguments order: the write_strings method writes strings and some of your inserted values are ints so check your arguments order.


Mobile - Update web-runner 1.1.61

Describe the task
Update web-runner 1.1.61
Refer: https://github.com/Koniverse/SubWallet-Extension/releases/tag/v1.1.61

Version test: v1.1.55
Device test: IP 11
Validation passed.

Check enable/disable Avail main


After creating multihost calico demo docker containers they are unable to reach

root@calico-01:/mnt# docker ps
CONTAINER ID        IMAGE                           COMMAND               CREATED             STATUS              PORTS               NAMES
3b60871450b2        busybox                         "sh"                  45 seconds ago      Up 44 seconds                           workload-A
63e5e4af97d0        calico/node-libnetwork:latest   "./start.sh"          29 minutes ago      Up 29 minutes                           calico-libnetwork
4167f753425f        calico/node:latest              "/sbin/start_runit"   29 minutes ago      Up 29 minutes                           calico-node```

``` On node 2
root@calico-02:~# docker ps
CONTAINER ID        IMAGE                           COMMAND               CREATED              STATUS              PORTS               NAMES
a62aead1855d        busybox                         "sh"                  About a minute ago   Up About a minute                       workload-Z
c0cc8ca65442        calico/node-libnetwork:latest   "./start.sh"          7 minutes ago        Up 7 minutes                            calico-libnetwork
ae8f3c0faad7        calico/node:latest              "/sbin/start_runit"   7 minutes ago        Up 7 minutes                            calico-node

root@calico-01:/mnt# docker exec workload-A ping -c 4 workload-Z.net1
PING workload-Z.net1 (<IP_ADDRESS>): 56 data bytes

ETCD setup is fine and reachable from the nodes:
root@calico-01:/mnt# telnet <IP_ADDRESS> 2379
Trying <IP_ADDRESS>...
Connected to <IP_ADDRESS>.
Escape character is '^]'.

ETCD_AUTHORITY=<IP_ADDRESS>:2379
etcd logs:
2015-11-17 20:40:48.608777 I | etcdserver: setting up the initial cluster version to 2.2
2015-11-17 20:40:48.624911 N | etcdserver: set the initial cluster version to 2.2
2015-11-17 20:40:48.625022 I | etcdserver: published {Name:default ClientURLs:[http://<IP_ADDRESS>:2379]} to cluster 7e27652122e8b2ae```

Where to find debug logs ? There is no firewall between nodes.

Hi @ajaybhatnagar,
Could you run calicoctl status and share the output here.  Also, could you perhaps run calicoctl diags on both hosts and send us the output?
Most of the logs of interest are in the calico-node container - however, we volumne mount the log directory, so you simply look at the logs on your host in /var/log/calico.

Here is the status. Have the diag files also ceated. Let me know where should I put them .
On first node creating the docker container fails though docker ps command does not list any. Remove the container and rerun the same command , it fails again.
Thanks
Ajay
root@calico-00:~# calicoctl status
calico-node container is running. Status: Up 2 hours
Running felix version 1.2.0
IPv4 BGP status
+---------------+-------------------+-------+----------+-------------+
|  Peer address |     Peer type     | State |  Since   |     Info    |
+---------------+-------------------+-------+----------+-------------+
| <IP_ADDRESS> | node-to-node mesh |   up  | 22:57:16 | Established |
| <IP_ADDRESS> | node-to-node mesh |   up  | 21:40:27 | Established |
| <IP_ADDRESS> | node-to-node mesh |   up  | 21:39:56 | Established |
+---------------+-------------------+-------+----------+-------------+
IPv6 BGP status
+--------------+-----------+-------+-------+------+
| Peer address | Peer type | State | Since | Info |
+--------------+-----------+-------+-------+------+
+--------------+-----------+-------+-------+------+
On node 1 root@calico-01:~# docker run --net net1 --name workload-A -tid busybox
ff4ca742b0f5c64280985843c9748211b12a42b8ed15011073c76bc8f9c3b30c
Error response from daemon: Cannot start container ff4ca742b0f5c64280985843c9748211b12a42b8ed15011073c76bc8f9c3b30c: container already connected to network net1
root@calico-01:~# docker ps
CONTAINER ID        IMAGE                           COMMAND               CREATED             STATUS              PORTS               NAMES
d5454fe32554        calico/node-libnetwork:latest   "./start.sh"          4 minutes ago       Up 4 minutes                            calico-libnetwork
c3c1bb4824db        calico/node:latest              "/sbin/start_runit"   4 minutes ago       Up 4 minutes                            calico-node
On Node 2 root@calico-02:~# docker ps
CONTAINER ID        IMAGE                           COMMAND               CREATED             STATUS              PORTS               NAMES
3c5be9c1b25f        busybox                         "sh"                  2 minutes ago       Up About a minute                       workload-B
c0cc8ca65442        calico/node-libnetwork:latest   "./start.sh"          About an hour ago   Up About an hour                        calico-libnetwork
ae8f3c0faad7        calico/node:latest              "/sbin/start_runit"   About an hour ago   Up About an hour                        calico-node
On Node 3:
root@calico-03:~# docker exec workload-C ping -c 4 workload-B.net1
PING workload-B.net1 (<IP_ADDRESS>): 56 data bytes
--- workload-B.net1 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
root@calico-03:~# docker ps
CONTAINER ID        IMAGE                           COMMAND               CREATED              STATUS              PORTS               NAMES
757ee78f0e0c        busybox                         "sh"                  About a minute ago   Up About a minute                       workload-C
4e11553f33c3        calico/node-libnetwork:latest   "./start.sh"          About an hour ago    Up About an hour                        calico-libnetwork
84d79b9827c4        calico/node:latest              "/sbin/start_runit"   About an hour ago    Up About an hour                        calico-node
From: robbrockbank<EMAIL_ADDRESS>Sent: Tuesday, November 17, 2015 5:08 PM
To: projectcalico/calico-docker
Cc: Ajay Bhatnagar
Subject: Re: [calico-docker] After creating multihost calico demo docker containers they are unable to reach (#633)
Hi @ajaybhatnagarhttps://github.com/ajaybhatnagar,
Could you run calicoctl status and share the output here. Also, could you perhaps run calicoctl diags on both hosts and send us the output?
Most of the logs of interest are in the calico-node container - however, we volumne mount the log directory, so you simply look at the logs on your host in /var/log/calico.
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico-docker/issues/633#issuecomment-157524644.

Hi @ajaybhatnagar,
I haven't had a chance to look at the diags just at the moment, but I have just hit an issue myself with the latest images - in particular images that are using the latest release of calico.  I've raise an issue with the core calico folk about that.
From your output, it looks as though you are using the latest images from the HEAD of master.  Until that is resolved, you might want to use the latest actual release of calicoctl - see release v0.11.0 here: https://github.com/projectcalico/calico-docker/releases/tag/v0.11.0

Problem is in release v0.11.0, able to connect with release v.0.10.0
Thanks
Ajay
From: robbrockbank<EMAIL_ADDRESS>Sent: Tuesday, November 17, 2015 10:14 PM
To: projectcalico/calico-docker
Cc: Ajay Bhatnagar
Subject: Re: [calico-docker] After creating multihost calico demo docker containers they are unable to reach (#633)
Hi @ajaybhatnagarhttps://github.com/ajaybhatnagar,
I haven't had a chance to look at the diags just at the moment, but I have just hit an issue myself with the latest images - in particular images that are using the latest release of calico. I've raise an issue with the core calico folk about that.
From your output, it looks as though you are using the latest images from the HEAD of master. Until that is resolved, you might want to use the latest actual release of calicoctl - see release v0.11.0 here: https://github.com/projectcalico/calico-docker/releases/tag/v0.11.0
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico-docker/issues/633#issuecomment-157589310.

Hi @ajaybhatnagar,
Thank you for the update.  I've just noticed that the documentation links for v0.11.0 were not updated correctly, so it is quite possible that the binaries you were using were actually from the master branch which was not working (although it should be working now).
I'll get the docs fixed up for v0.11.0 - hopefully this will resolve the problem, but it's good to know that you can use v0.10.0 for now.
Rob

I specifically tried with v0.11.0 links provided first then downgraded to v0.10
Thanks
Ajay
Sent from my BlackBerry 10 smartphone on the Rogers network.
From: robbrockbank
Sent: Wednesday, November 18, 2015 18:40
To: projectcalico/calico-docker
Reply To: projectcalico/calico-docker
Cc: Ajay Bhatnagar
Subject: Re: [calico-docker] After creating multihost calico demo docker containers they are unable to reach (#633)

Hi @ajaybhatnagarhttps://github.com/ajaybhatnagar,
Thank you for the update. I've just noticed that the documentation links for v0.11.0 were not updated correctly, so it is quite possible that the binaries you were using were actually from the master branch which was not working (although it should be working now).
I'll get the docs fixed up for v0.11.0 - hopefully this will resolve the problem, but it's good to know that you can use v0.10.0 for now.
Rob
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico-docker/issues/633#issuecomment-157899757.

Is it possible to use Zookeeper in place of ETCD , if yes, what changes may be needed?
Thanks
Ajay
From: robbrockbank<EMAIL_ADDRESS>Sent: Wednesday, November 18, 2015 6:40 PM
To: projectcalico/calico-docker
Cc: Ajay Bhatnagar
Subject: Re: [calico-docker] After creating multihost calico demo docker containers they are unable to reach (#633)
Hi @ajaybhatnagarhttps://github.com/ajaybhatnagar,
Thank you for the update. I've just noticed that the documentation links for v0.11.0 were not updated correctly, so it is quite possible that the binaries you were using were actually from the master branch which was not working (although it should be working now).
I'll get the docs fixed up for v0.11.0 - hopefully this will resolve the problem, but it's good to know that you can use v0.10.0 for now.
Rob
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico-docker/issues/633#issuecomment-157899757.

@ajaybhatnagar
We currently only support etcd.

@ajaybhatnagar
We've just released v0.12.0 which I believe will address the problem you were having with master and with v0.11.0.
I'll close the issue, but if you are still having problem please reopen and update.
Rob

Thanks  Rob.
I will verify it and update if necessary.
Ajay
From: robbrockbank<EMAIL_ADDRESS>Sent: Monday, November 23, 2015 3:55 PM
To: projectcalico/calico-docker
Cc: Ajay Bhatnagar
Subject: Re: [calico-docker] After creating multihost calico demo docker containers they are unable to reach (#633)
@ajaybhatnagarhttps://github.com/ajaybhatnagar
We've just released v0.12.0 which I believe will address the problem you were having with master and with v0.11.0.
I'll close the issue, but if you are still having problem please reopen and update.
Rob
—
Reply to this email directly or view it on GitHubhttps://github.com/projectcalico/calico-docker/issues/633#issuecomment-159061379.

It worked on v0.12.0 however when all nodes were running v0.12.0 not in mixed mode with some nodes on  v.010.0 and some on v0.12.0. Probably some incompatibility between versions.
Thanks


Content switcher animation not right

page: https://next.carbondesignsystem.com/assets/guidelines/color/usage
Looks like the content switcher animation moves vertically from the center of the button but it could start at the bottom and move up.
current

expected

Hey team! Please add your planning poker estimate with ZenHub @alisonjoseph @andreancardona @francinelucca @jdharvey-ibm


Replace identiy/identity in code

Probably there are 2 mistakes in code and need replace  identiy to identity
as example here:
https://github.com/dmachard/go-dnscollector/blob/e503fc1d1ee84d45534de83309a4e142797a4bfd/dnsutils/message.go#L18

thank to report this issue.
fix in commit https://github.com/dmachard/go-dnscollector/commit/c7a130dd7cdba7ce609d15ded608e53f2cb301a8

new release v0.6.0 available

thank you, I will test it tomorrow


iOS 8.x doesn't work with a form in the ion-title

The following markup breaks the app on iOS 8.x (but works on iOS 9):
<ion-navbar *navbar>
  <ion-title>
    <form [ng-form-model]="scheduleForm">
      <ion-segment ng-control="scheduleShowing">
        <ion-segment-button value="all">
          All
        </ion-segment-button>
        <ion-segment-button value="favorites">
          Favorites
        </ion-segment-button>
      </ion-segment>
    </form>
  </ion-title>
  <ion-nav-items secondary>
    <button (click)="openScheduleFilter()"><icon ios="funnel-outline" md="funnel"></icon></button>
  </ion-nav-items>
</ion-navbar>

but if we remove the form from the ion-title it will work (aesthetically):
<ion-navbar *navbar>
  <ion-title>
    <ion-segment [(ng-model)]="scheduleShowing">
      <ion-segment-button value="all">
        All
      </ion-segment-button>
      <ion-segment-button value="favorites">
        Favorites
      </ion-segment-button>
    </ion-segment>
  </ion-title>
  <ion-nav-items secondary>
    <button (click)="openScheduleFilter()"><icon ios="funnel-outline" md="funnel"></icon></button>
  </ion-nav-items>
</ion-navbar>

I can change the ng-control to ng-model but it doesn't update the value from the ion-segment. Need to investigate this further.

Looks like the content is being put next to the segment on iOS 8.4 for some reason:

What it should look like (iOS 9):

Why is there a form element in there? Can we do without it?

The form element is necessary for the ng-control, changing it to a ng-model doesn't work with ion-segment

This is no longer an issue for the conference app since A) we've removed the form and B) segment doesn't need to be in the title. Please reopen if you think this is something we need to handle.


lognote v1.0 is laggy and not responsive

I am using lognote from its early stages on a Windows machine. I have noticed that it is very laggy while collecting logcat live and not showing logs live as previous version (v0.3.5 up to v0.3.7 are working for me just fine) it would also hang and freeze badly. I cant scroll most of the times in the logs.
Please let me know if you need any memory dump or any sort of logs that could help you figure out what is happening

First, check if you have set the Scrollback value (top right)
https://github.com/cdcsgit/lognote?tab=readme-ov-file#mode
If the value is too large or not set, the log may accumulate in the memory and cause delay due to lack of memory.
And please let me know the version you are using and how to reproduce it for review.

First, check if you have set the Scrollback value (top right) https://github.com/cdcsgit/lognote?tab=readme-ov-file#mode If the value is too large or not set, the log may accumulate in the memory and cause delay due to lack of memory.
And please let me know the version you are using and how to reproduce it for review.

I am using the latest version v1.0. Scrollback(lines) is set to 100000 which is the default.
The way i reproduce it like this

connect my phone via cable, start lognote v1.0 and hit start. If I try to click on any line or scoll, then logging would not show anything and would only show logs after may be 5 seconds at once. However in v0.3.7 I don't see this behavior even with Scrollback(lines) is set to 100000 and it is very responsive and just works fine

When I tested on Windows 10, the issue was not reproduced.
java - version "1.8.0_202"
adb - Android Debug Bridge version 1.0.41, Version 35.0.2-12147458
Please run a callstack dump in the jdk with the jstack command and let me know the result.
jstack -l PID

When I tested on Windows 10, the issue was not reproduced. java - version "1.8.0_202" adb - Android Debug Bridge version 1.0.41, Version 35.0.2-12147458
Please run a callstack dump in the jdk with the jstack command and let me know the result.
jstack -l PID

for some reason I am not able to reproduce the issue now. If i face the issue again, I will collect the logs you requested and share here.


Add E2E test for: "Timeline is deactivated in no-trigger mode"

Test case description: https://app.qase.io/project/IBF?suite=9&previewMode=side&case=14


Permission Denial: reading com.google.android.apps.photos.contentprovider.impl.MediaContentProvider

All works well on iOS but I get the following error when trying to display the selected video on Android in a video tag in my html.
java.lang.SecurityException: Permission Denial: reading com.google.android.apps.photos.contentprovider.impl.MediaContentProvider uri content://com.google.android.apps.photos.contentprovider/0/2/content%3A%2F%2Fmedia%2Fexternal%2Fvideo%2Fmedia%2F2523/ORIGINAL/NONE/video%2Fmp4/394201964#t=0.1 from pid=7125, uid=10270 requires the provider be exported, or grantUriPermission()
I have tried searching for an answer for a couple days now and nothing has worked.  Wondering if you can provide some insight into this error and if any others have had this issue in the past.
const result = await FilePicker.pickMedia({
  multiple: true
});
result.files.forEach(file => {
  const url = Capacitor.convertFileSrc(file.path);
  // url is used as src in html
});

use https://capacitorjs.com/docs/apis/filesystem#requestpermissions

@kyleabens I'm not sure if it's the same bug but unfortunately embedding locale videos in the img tag on Android doesn't work at the moment, see https://github.com/ionic-team/capacitor/issues/6021
@KANekT Can you share your use case where you need to request permission? In my tests on Android (Android 13, Pixel 5) and iOS, request permissions has not been necessary so far. If you really need this, then i have to implement the method in this plugin.

sorry, I did not know that such a bug already exists in the core  Capacitor
I thought it was just a file permissions issue.

@KANekT I tried adding requestPermission and that unfortunately didn't resolve my issue.
@robingenz What I'm doing is giving users the ability to select images and videos and then display them in a modal that they can then upload to our server.  Images work fine on Android, it's only videos that are not displaying.  Also videos are not being placed in an img tag, I'm using the video tag for those (Eg. <video><source src="path"></video>).  I don't want to convert the videos to base64 since that's memory intensive and unnecessary for simply displaying them before uploading.
Again this works on browser and iOS no problem.  I'm assuming it has something to do with the videos I'm selecting being on Google photos?  However images work fine so idk.  At the end of the day I'm just trying to display a video in the html based on the path of that video

Might have to use something like this for the time being https://github.com/jepiqueau/capacitor-video-player

What I'm doing is giving users the ability to select images and videos and then display them in a modal that they can then upload to our server. Images work fine on Android, it's only videos that are not displaying. Also videos are not being placed in an img tag, I'm using the video tag for those (Eg. ).

Yes, that's the issue i linked: https://github.com/ionic-team/capacitor/issues/6021
One of my clients has the same problem. Therefore, this plugin will probably generate thumbnails for videos in the next version, which can be displayed to the user. Maybe you have another use case and this isn't a solution for you.


Fixes for microsite after circe-optics move

Codecov Report

Merging #984 into master will increase coverage by 0.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #984      +/-   ##
==========================================
+ Coverage   85.28%   85.45%   +0.17%
==========================================
  Files          75       75
  Lines        2351     2351
  Branches      160      160
==========================================
+ Hits         2005     2009       +4
+ Misses        346      342       -4

Impacted Files
Coverage Δ

.../core/shared/src/main/scala/io/circe/Decoder.scala
93.01% <0%> (+0.31%)
:arrow_up:

...les/core/shared/src/main/scala/io/circe/Json.scala
79.48% <0%> (+0.64%)
:arrow_up:

...re/shared/src/main/scala/io/circe/JsonNumber.scala
93.58% <0%> (+1.28%)
:arrow_up:

...d/src/main/scala/io/circe/NonEmptySeqDecoder.scala
100% <0%> (+8.33%)
:arrow_up:

Continue to review full report at Codecov.

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


Cause "Segmentation fault" in WSL in windows 10 when testing for huge ip list

As the title says, in Windows Linux Subsystem, running the app with "cat china_ip_list" (a Huge amount of IPs, the list is available in github), it would cause "Segmentation fault (core dumped)" error, thus made my os a bit crashed now.

Does it work with a smaller IP set?

It does work with small IP sets. BTW, running it in centos7 with large set would call the system to kill it, which shows "killed"(translated from chinese) after some time.


UPSERT & UNIQUE indexes not getting along on distributed transactions

I have set up a 3-node cluster (using both 2.0.13 and  2.1.0) and created the following class:
CREATE CLASS Person EXTENDS V
CREATE PROPERTY Person.uuid STRING
ALTER PROPERTY Person.uuid NOTNULL TRUE
ALTER PROPERTY Person.uuid MANDATORY TRUE
CREATE INDEX Person.uuid UNIQUE_HASH_INDEX

Now (in an over-simplification of my actual use case), trying to run the following batch against the server
script sql
BEGIN;
UPDATE Person SET uuid = '00000000-0000-0000-0000-000000000000' UPSERT WHERE uuid = '00000000-0000-0000-0000-000000000000';
UPDATE Person SET uuid = '00000000-0000-0000-0000-000000000000' UPSERT WHERE uuid = '00000000-0000-0000-0000-000000000000';
COMMIT;
end

yields
Error: com.orientechnologies.orient.core.exception.OTransactionException: Error on committing distributed transaction

Error: com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #25:3: found duplicated key '00000000-0000-0000-0000-000000000000' in index 'Person.uuid' previously assigned to the record #25:2 RID=#25:2

Am I overlooking something here?

In the first update are you checking the msisdn attibute but then you insert uuid?

@lvca I had changed the name of the field after opening the issue, for simplicity. Let's assume it is uuid (everywhere).

Why are you updating the same record in the same tx?

Fixed in v2.1.15


Fix grammar in provider.rs error message

s/temporary/temporarily

Do I also need to touch up the dashboard search results here: https://github.com/search?q=org%3Aneondatabase+"temporary+unavailable"&type=code

@danieltprice @bgrenon this is a user facing error message. Do you think the period should be substituted for a colon or something else? Lower case starts to sentences are annoying to me 😄.

Unless this is going against a wider convention, period is ok. But then the next sentence also needs to be fixed with a starting Cap and period.


Ability to run JS tests individually

Added pnpm test:js which allows us to only run the JS tests. With this, we can also run an individual test, making it quicker to verify the one test you're working on: pnpm test:js getOfferings.test.js

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1206571002797197

YAY. I've been wanting this


Feature Request: disable aliases using command prefixes

Summary of the new feature/enhancement
There are some default PowerShell aliases that shadow built-in (where.exe) or popular 3rd party command line tools (mv.exe, cat.exe, etc. that come with Git). In order to invoke this currently we need to use the command with extension (where.exe) or use the full file path.
It would be easier if PowerShell supported bash-like prefixes to ignore aliases. For example, \where would call C:\Windows\System32\where.exe instead of the Where-Object PowerShell alias.

Would we want to ignore just aliases, or functions and cmdlets too?

@vexx32 I think ignoring functions and cmdlets would be helpful as well.

Would love to see this, although i'm sure the team has many different syntaxes they'd love to see.
Since PowerShell is now many many platforms, it makes sense to support this because overriding cmdlets that don't quite work yet on a platform could give rise to shims as devs need to get things to work, prior to them/somebody else being able to do a pull request here.
For explanation, my use-case is overriding a built-in cmdlet, thus
#in a profile file, etc
PS> set-alias get-builtincmdlet get-replacementbuiltincmdletELS   # alias to a new enhanced thing that does something better/more`

function get-replacementbuiltincmdletELS
{
    if( $checkSomeHostPropertyOrOtherThingToSeeIfThisDoesntApply )
    {
            return \get-builtincmdlet @PSBoundParameters  # here call the old cmdlet which was fine/better for this case
     }

     # else do the wonderful new thing
}

@ericleigh007 that's already possible; you can qualify a cmdlet/function name by a module (e.g., Microsoft.PowerShell.Utility\Sort-Object) to accomplish that to whatever degree you need. 🙂
It also wouldn't be covered by this issue -- @saravanaj specifically mentioned that the target was native utilities and applications rather than PowerShell commands.

Thanks for that reminder.
The way I read it @saravanaj was using the utilities as an example, not constraining the issue.  The title is just "disable aliases .. using command prefixes".  My interpretation is that the author is looking for a generic, easy way to override the alias translation on a particular string (specifically mentioning "like bash does")
Whichever way you slice it, though, it seems a documentation upgrade to the about_aliases help could show this method of temporarily overriding aliases, as others have asked the question about doing so.
Thanks and sorry for the interruption.


raw string __esModule will break nextra

Link to reproduction
https://github.com/promer94/nextra-evil-string
To Reproduce
pnpm i
pnpm dev

then navigate to about page, the error will show up

root cause: https://github.com/vercel/next.js/pull/38181/files
MDX page will treadted as cjs module when it contains __esModule. Then webpack will try to resolve the require field of next/ssg which will cause the error

Oh this is blocking another site that I'm helping moving...

Is there a chance to workaround it inside Nextra? 💭

Super dirty hack: replace __esModule with __es[zero width space]Module in the content, lol.

Bundle next/ssg to both cjs and esm?


Updated Helm UI

Would like to add mass, but I'm unaware of how to get the PhysShip data from the Ship interface.

Nice, the top one i would show the slug doe, not the id. Have you tried to see if the velocity works when doing client/dedicated server.
There should be a way to get the total weight il look into it.

Nice, the top one I would show the slug doe, not the id. Have you tried to see if the velocity works when doing client/dedicated server.
There should be a way to get the total weight il look into it.

slug doe?
no I have not tried "velocity when doing client/dedicated server".

Nice, the top one i would show the slug doe, not the id. Have you tried to see if the velocity works when doing client/dedicated server.
There should be a way to get the total weight il look into it.

how am I supposed to fit the slug?

Nice, the top one i would show the slug doe, not the id. Have you tried to see if the velocity works when doing client/dedicated server.
There should be a way to get the total weight il look into it.

how am I supposed to fit the slug?

I would move the slug to the bottom box and expand it all the way to the right of the ui

Nice, the top one i would show the slug doe, not the id. Have you tried to see if the velocity works when doing client/dedicated server.
There should be a way to get the total weight il look into it.

how am I supposed to fit the slug?

I would move the slug to the bottom box and expand it all the way to the right of the ui

Im doing this

I suggest that we do a complete redesign in the future in combination with adding stuff like engine power, lift power, weight, and pressure

I suggest that we do a complete redesign in the future in combination with adding stuff like engine power, lift power, weight, and pressure

Yep is good, in what style would you want this gui? still vanilla or something else?

Ima let the builds finish and il merge then

I suggest that we do a complete redesign in the future in combination with adding stuff like engine power, lift power, weight, and pressure

Yep is good, in what style would you want this gui? still vanilla or something else?

this is kind of what I have in mind


wg_engine: clippath optimization

Full review of clipping workflow.
Before we are used separate render target for each clip path and compute shader to find clip path intersections with AND logic.
Now we are using depth buffer and transactions from depth to stencil and back to get AND logic intersections,
Compute shaders, layouts and pipelines was removed
Result:

Few clippathes on the single frame, frog_vr.json (Before/After)

Massive clippathes on the single frame, 5317-fireworkds.json (Before/After)

@SergeyLebedkin Thanks, please double check regressions, 3 svgs (red circles) are not displayed after this patch.
[before/after]

@hermet seems to all its an image processing... I will check it. Thanx for reporting

please check a comment.

fixed

@SergeyLebedkin
From browser, it shows significant performance improvement in 5317-fireworkds.json example.

As a result in the fireworks animation, improved 48%+ (63FPS in AVG to 120FPS). This animation's lowest FPS was 26FPS, now consistenly animates in 120FPS.

@SergeyLebedkin please check red circles:

@hermet

@SergeyLebedkin please check red circles:
Seeps to all wrong transformation for a clippath used in a case, if multiple clippases used for a shape.

Fixed

@SergeyLebedkin Could you please refine the commit message? Thanks.

@SergeyLebedkin Could you please refine the commit message? Thanks.

Fixed


Feat/improve continue

Description

Related Issues

Progress

Pull request checklist

[ ] Tests: This PR includes tests for covering the features or bug fixes (if applicable).
[ ] Docs: This PR updates/creates the necessary documentation.
[ ] CI: Make sure your Pull Request passes all CI checks. If not, clarify the motif behind that and the action plan to solve it (may reference a ticket)

How to test it

Visual reference

Closes #1

Not tested, soon I will refactor to use TS.

Close as stale. This work is actually done, but we didn't have much interest in merging this


Change consolehost pipeline thread to reuse main thread

PR Summary
Change ConsoleHost pipeline thread to use host's main() thread instead of creating a new one.
PR Context
This enables use of PSAvalonia, for example, which checks that the GUI thread is main() thread.
PR Checklist

[ ] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[ ] Summarized changes
[ ] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[ ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[ ] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[ ] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

Looks like this isn't viable without a bunch of work as the console host is hanging on some tests.


Fix for ObjectiveC++

In ObjectiveC++ (.mm files) we can't use modules.
http://stackoverflow.com/questions/32555710/xcode-modules-enabled-in-
settings-but-still-cant-use-import
Link to issue #27

Thank you for your help @gelldur!


Querying documents for null/undefined fields

This adds a document query "FieldIsEmptyQuery" that allows you to specify a field to query if the value of that field is (or isn't) null or undefined:
new FieldIsEmptyQuery({key: 'favoritefood', isempty: true})
Please let me know if the name (or anything else) should be changed to fit the current naming scheme, or if this should be gone about in a different way.

Thank you for the PR :)

I think the name should be FieldMissingQuery, because you want to capture both undefined and null. The "Is" does not bring that not much more value
You would have to add tests for me to be able to merge it (test that make sure both undefined and null works as expected, but it does not capture "" as missing).

However I am working on some refactor things at the moment might be worth postponing work (adding tests) on this PR until that is done

I closed this as resolved as I included the update in the latest perf. work. Example missing query


Add a send test notification button for push notifications.

Fixes #17059 and related to #14433.
This is still WIP.
Opened to check whether this approach is acceptable or not.
When the test notification link is clicked, we send a message through the users client
and in the do_send_messages codepath we check for this case and the bot replies.
For every message the user sends to the notification bot it replies.
So, added a check where the bot only replies if the message starts with the :smile: emoji.
( Not sure how to compare the message content for different languages. )

The number of queries increases by 3 due to fetching the ids of the 3 cross realm bots
for the initial home page load. Only the notification bot id is required, so I guess I
will update it to only pass the notification bot's id (num queries increases by 1 instead of 3).
https://user-images.githubusercontent.com/40122794/113513765-d6658380-9588-11eb-9c43-ea2ba3a10343.mp4

Closing, as #17059 was closed due to a different plan having been merged for the user problem. Thanks for the effort @ryanreh99!


fix(nfts): Fixing typo that was preventing NFT sweeping

:tada: This PR is included in version 2.2.1 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Apple News Renderer / Source

Our brands use Apple News as a distribution, and we have expertise in publishing to Apple News. We have a service at Condé Nast that supports this, and I'm interested in outlining a more holistic approach to Apple News that provides better support for folks.
From a high level, I'd like to provide the following:

Rendering an Apple News article.json that can be sent to Apple for use on the News app.
Previewing an Apple News article.json using a React application by leveraging atjson's React renderer.
Importing an Apple News article.json so there can be rich preview (and eventual addition / manipulation) using atjson

I played around with type definitions for the Apple News Format, and ended up creating a programmatically generated type definition file from Apple's own documentation, which can be found in this gist. The code used to generate this file can be found here.
Using these definitions, we can create annotations for the Apple News format. I recommend that the renderer and source for Apple News use the same annotations. This means that if you want to render to Apple News, you should convert your schema into the Apple News annotations.
At a high level, I expect us to have annotations for Components and the AricleDocument. There's some additional parsing for handling inline formatting provided by HTML or markdown, which is fairly minimal (bold, italic, strikethrough, links, and a few others).
We can then use the React renderer to render a facsimile of how the article would appear on the News app. This would involve a bunch of work building out components for Apple News. For our teams at Condé, it would be very beneficial, because they can preview their content as it would (approximately) appear on Apple News before publishing or sending it to Apple.
In addition, they would be able to catch errors with the document because the preview would using the same toolchain as our service delivering the article.json to Apple.
The goal here is to:

streamline work at Condé
provide Apple News specific capabilities to enrich / customize content
provide great tools that other editorial teams can benefit from

See https://github.com/CondeNast/atjson/tree/apple-news


UboDeclarationApiImpl.create() does not work

Steps to reproduce:

Edit com.mangopay.core.UboDeclarationApiImplTest and uncomment the method createUboDeclaration()
Run as JUnit test
Instead of a json response, the server returns a response with code 411 and html content which says:
HTTP Error 411. The request must be chunked or have a content length.

Attached the console output
consoleOutput.txt

Attached a patch
patch-issue-143.txt

Hey @vionescu ! Thanks for this patch. Can you do a Pull Request ? I will merge-it to the master version.
All the best,

Hi @Riwak. Tried that, but it seems that I don't have permission to push to this repository.
Attached the modified file:
RestTool.java.txt
The message that I get when trying to push a newly created branch:
Can't connect to any URI: https://github.com/Mangopay/mangopay2-java-sdk.git (https://github.com/Mangopay/mangopay2-java-sdk.git: git-receive-pack not permitted on 'https://github.com/Mangopay/mangopay2-java-sdk.git/')

Good day, we have the same issue while creating UBO Declaration with the java-library pulled from maven (mangopay2-java-sdk: 2.8.0).
@Riwak, could you please give any updates about possible patches or updates regarding the issue?
thx.
Log:
[2019-09-06 14:06:30.875 +0200] INFO  com.mangopay.core.RestTool  - FullUrl: https://api.sandbox.mangopay.com/v2.01/repayboxy/users/65550987/kyc/ubodeclarations
[2019-09-06 14:06:30.876 +0200] INFO  com.mangopay.core.RestTool  - HTTP Header: Authorization: bearer {{TOKEN}}<--
[2019-09-06 14:06:30.876 +0200] INFO  com.mangopay.core.RestTool  - HTTP Header: Content-Type: application/json
[2019-09-06 14:06:30.876 +0200] INFO  com.mangopay.core.RestTool  - RequestType: POST
[2019-09-06 14:06:31.022 +0200] INFO  com.mangopay.core.RestTool  - Response ERROR: Length RequiredLength RequiredHTTP Error 411. The request must be chunked or have a content length.
[2019-09-06 14:06:31.022 +0200] ERROR com.mangopay.core.RestTool  - EXCEPTION: [com.google.gson.JsonParser.parse(JsonParser.java:65), com.google.gson.JsonParser.parse(JsonParser.java:45), com.mangopay.core.RestTool.checkResponseCode(RestTool.java:1076), com.mangopay.core.RestTool.doRequest(RestTool.java:426), com.mangopay.core.RestTool.request(RestTool.java:142), com.mangopay.core.APIs.ApiBase.createObject(ApiBase.java:253), com.mangopay.core.APIs.ApiBase.createObject(ApiBase.java:272), com.mangopay.core.APIs.implementation.UboDeclarationApiImpl.create(UboDeclarationApiImpl.java:31), me.repay.webshop.component.payment.mangopay.utility.MangoPayUBOHelper.createUBODeclaration(MangoPayUBOHelper.java:68), ....

I have found multiples issues with the api for Ubo Declaration. It seems that it hasn't been tested at all (not even once). This was supposed to be a commercial product, right?
Anyway, since I cannot push to this repository, I have created a fork, check out branch "143-fix-ubo-declaration":
https://github.com/vionescu/mangopay2-java-sdk/tree/143-fix-ubo-declaration
Mangopay guys, please  look into my changes, and if it's ok please integrate them into your product.

@vionescu , thx for your updates. We will follow your branch but we really hope that the changes will be taken in main branch and published officially as a minor fixes etc..

Hi everyone,
A new 2.8.1 version will be shortly available on Maven and fix JSON issues on UBODeclaration methods.
Tests were badly commented are 2.8.0 release was made live even if obvious issues on all UBODeclaration flow remained to be fixed.
Apologies for all of that.  🙏
Feel free to share some feedbacks about it.

Fixed for me in 2.8.1. Thanks!


Getting "Unexpected exception importing component custom_components.garmin_connect" after 9.3 update

2 errors in the log, here's the tracebacks:
`Logger: homeassistant.setup
Source: loader.py:826
First occurred: 14:43:02 (1 occurrences)
Last logged: 14:43:02
Setup failed for custom integration garmin_connect: Unable to import component: Exception importing custom_components.garmin_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/garmin_connect/init.py", line 8, in
from garminconnect import (
File "/usr/local/lib/python3.11/site-packages/garminconnect/init.py", line 9, in
import garth
File "/usr/local/lib/python3.11/site-packages/garth/init.py", line 1, in
from .data import HRVData, SleepData
File "/usr/local/lib/python3.11/site-packages/garth/data/init.py", line 3, in
from .hrv import HRVData
File "/usr/local/lib/python3.11/site-packages/garth/data/hrv.py", line 6, in
from .. import http
File "/usr/local/lib/python3.11/site-packages/garth/http.py", line 10, in
from . import sso
File "/usr/local/lib/python3.11/site-packages/garth/sso.py", line 11, in
from .auth_tokens import OAuth1Token, OAuth2Token
File "/usr/local/lib/python3.11/site-packages/garth/auth_tokens.py", line 8, in
@dataclass
^^^^^^^^^
File "pydantic/dataclasses.py", line 231, in pydantic.dataclasses.dataclass
File "pydantic/dataclasses.py", line 224, in pydantic.dataclasses.dataclass.wrap
File "pydantic/dataclasses.py", line 347, in pydantic.dataclasses._add_pydantic_validation_attributes
File "pydantic/dataclasses.py", line 400, in pydantic.dataclasses.create_pydantic_model_from_dataclass
File "pydantic/main.py", line 1026, in pydantic.main.create_model
File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.new
TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 826, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.garmin_connect
 This error originated from a custom integration.
Logger: homeassistant.loader
Source: custom_components/garmin_connect/init.py:8
Integration: garmin_connect (documentation, issues)
First occurred: 14:43:02 (1 occurrences)
Last logged: 14:43:02
Unexpected exception importing component custom_components.garmin_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/garmin_connect/init.py", line 8, in
from garminconnect import (
File "/usr/local/lib/python3.11/site-packages/garminconnect/init.py", line 9, in
import garth
File "/usr/local/lib/python3.11/site-packages/garth/init.py", line 1, in
from .data import HRVData, SleepData
File "/usr/local/lib/python3.11/site-packages/garth/data/init.py", line 3, in
from .hrv import HRVData
File "/usr/local/lib/python3.11/site-packages/garth/data/hrv.py", line 6, in
from .. import http
File "/usr/local/lib/python3.11/site-packages/garth/http.py", line 10, in
from . import sso
File "/usr/local/lib/python3.11/site-packages/garth/sso.py", line 11, in
from .auth_tokens import OAuth1Token, OAuth2Token
File "/usr/local/lib/python3.11/site-packages/garth/auth_tokens.py", line 8, in
@dataclass
^^^^^^^^^
File "pydantic/dataclasses.py", line 231, in pydantic.dataclasses.dataclass
File "pydantic/dataclasses.py", line 224, in pydantic.dataclasses.dataclass.wrap
File "pydantic/dataclasses.py", line 347, in pydantic.dataclasses._add_pydantic_validation_attributes
File "pydantic/dataclasses.py", line 400, in pydantic.dataclasses.create_pydantic_model_from_dataclass
File "pydantic/main.py", line 1026, in pydantic.main.create_model
File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.new
TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
`

+1

Which other integrations do you have installed? It looks like a conflict between two or more

Which other integrations do you have installed? It looks like a conflict between two or more

From hacs only this and localtuya. Everything else is official and nothing too exotic.

Errors gone in the 2023.10.0

Can confirm, no more errors after today's update. Closing this.


Array destructuring typing in generic callbacks

var a = [1, 'abc'] as [number, string];

var [b, c] = a;
[a].forEach(([d, e]) => {
    alert(d);
    alert(e);
});

There's something amiss with the typing in the above code snippet. TypeScript can figure out that b is a number and c is a string, it can even figure out that the callbackFn of my forEach is a (value: [number, string], index: number, ...) => void, but it says d and e are any. I'd have expected it to also know that these are number and string respectively.

Which version of the compiler are you using? I'm seeing the expected result (d and e are number and string) with the compiler currently in master.

looks like a duplicate of #4949 that should already be fixed in master

I'll try the latest. I'm on the latest Visual Studio version (so 1.7.x I believe). Thanks!


How can I set error state for the calendar?

Setting the error class or adding a cornered label doesn't work here, so how can the field denote an erroneous value?

Adding the error class to the ui input div works for me.

Not for me (react jsx below but its the same idea)

	      <input type="text" placeholder="Date/Time"/>

Could you please provide a jsbin reproducing the issue?


Could not find package bluerhinos/phpmqtt.

[root@bemfa mqtt_plat]# composer require bluerhinos/phpmqtt
Do not run Composer as root/super user! See https://getcomposer.org/root for details
[InvalidArgumentException]
Could not find package bluerhinos/phpmqtt.
Did you mean this?
bluerhinos/phpmqtt
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...

root@ubuntu-s-1vcpu-1gb-lon1-01:~/phpMQTT# composer require bluerhinos/phpmqtt dev-master
Root package 'bluerhinos/phpmqtt' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?

@youngda Worked for me, Thanks!
For those seeing
composer require bluerhinos/phpmqtt
"[InvalidArgumentException]
Could not find a version of package bluerhinos/phpmqtt matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability."
This worked to fix that for me.

you have to remove namespace Bluerhinos; from phpMQTT.php file.

I am restarting this project so having a clear out of old issues (If you believe this is still valid please reopen)


[ZEPPELIN-5458] fix that zeppelin can not parse columns  which contains chinese character

What is this PR for?
fix that zeppelin can not parse columns  which contains chinese character
this PR do two things
the first one thing insert a special character (/u0001) which nerver use after every chinese character,
so zeppeline can split string correctly, replace /u0001 with empty string, before add record to rows
the second thing avoid that chinese character is escaped.
What type of PR is it?
Bug Fix
Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-5458
How should this be tested?
already added test case in test units
Screenshots (if appropriate)

Questions:

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

CI passed， LGTM， thanks @zhxiaoping


[Dev Spec] Restrict user actions on backend

Requirements

We need a way to restrict a user's action on the backend.
If it is a bad user, we will restrict the create/edit actions for the user.
He/she will be able to view all the data but not be able to edit anything.

Schema
In the users schema, we need to add a key/flag which where we can store whether the user is restricted.
There are two ways to go about this --
1. Use the roles

We are planning to add roles key in the users schema which will define the user's permissions for e.g --

{
    roles: {
        member: true,
        admin: true
    }
}

We make use of this roles map and add restricted as one of the roles. for e.g restricted: true.

2. Add a top-level field in the users schema --

Add a key in the user schema which tells us whether the user is restricted --

{
    ...
    restricted: true
}

[ ]  Decide where we should store the flag in the users schema.

Implementation

Since this is application-wide validation, it makes sense to implement it as a middleware.
We can only check for logged-in users, so this limitAccess middleware needs to come after the authenticate middleware.
The devs working on adding new routes should not have to explicitly add this middleware while declaring the route middlewares.
This middleware can be implicitly added after the authenticate middleware. So anytime authenticate is done, then this check is also performed.
Please check linked PR for what I mean by above.

RFC:

@ankurnarkhede
@ankushdharkar
@whyDontI

Yup, this makes sense. We can rely on this mechanism for authorization since we do not have to manage numerous entities and user groups.
The user's roles will be populated in the authenticated middleware and can be used further.
@Cartmanishere

@ankurnarkhede Ack. For this feature, I have decided that we can use the roles approach for where to store the restricted key. I will put a cleaned up PR for this.
Also for authorization, we can use the same roles key in User schema to add more authorization (for e.g for superuser, appOwners, etc). I can pick up that task after merging this.


[question] Camera stream binding

Hello,
great work! I like it a lot :-)
Now, imagine I would like to realtime camera streams into 3D model, is it easy to integrate such stuff. Can you point me to code and if possible explain in general how to achieve such functionality?
I can of course write streaming server, etc. the question is more about how to map camera view on 3D models. It will require some model texturing changes and angle conversions of video, etc.
Thank you very much.
Ladislav

Sorry for the late reply.
In this project we use IndoorGML data which including network information for camera(actually, path for person).
If your 3D model format does not store network like IndoorGML, you should limit the movement of the camera by calculating the boundary of the 3D model's geometry and the position of the camera.
But it has to be implemented differently from our project.
I am sorry for not helping you and thank you for your interest in our project.


Move all trampoline compilation to wasmtime-cranelift

This commit moves compilation of all the trampolines used in wasmtime
behind the Compiler trait object to live in wasmtime-cranelift. The
long-term goal of this is to enable depending on cranelift only from
the wasmtime-cranelift crate, so by moving these dependencies we
should make that a little more flexible.

Fat finger, I clicked approve in the wrong tab - real review pending


Problem with subdomain and cookie.domain option

Hello,
First, thank you very much for your Cookie Consent free service ;)
I would like cookieconsent to set the same dismiss cookie for both our main website (www.mydomain.com) and our forum (forum.mydomain.com). I have set the following but it doesn't work, I have to click on the dismiss bar two times, for each site.
"cookie.domain": ".mydomain.com"
Same behavior without the dot prefix = "cookie.domain": "mydomain.com"
Same behavior after adding the following :
"cookie.path": "/",
"cookie.expiryDays": "365"
Tested with IE, Firefox and Chrome Under Windows 7 x64.
To set my custom cookies with PHP, I use the dot prefix and I do not have any problem.
I have added these options just after the law:{.....}, structure, it is right ? I find that the documentation is not very clear on where we have to add the options in the JavaScript tag.
Thanks for your help.

I can confirm this is a problem.

👍

Is this project still maintained ?

Same issue here on Mac Chrome and Firefox.

Still no reply? :/

Ok, I figured it out.. Instead of setting "cookie.domain" you should set
"cookie": {
  "domain": ".yourdomain.com"
}

as part of the initialise.. So in the end you should have something like this for example:
    window.addEventListener("load", function(){
    window.cookieconsent.initialise({
      "palette": {
        "popup": {
          "background": "#282d32",
          "text": "#c9cccf"
        },
        "button": {
          "background": "#1e5ba2"
        }
      },
      "position": "bottom-left",
      "cookie": {
        "domain": ".yourdomain.com"
      }
    })});

Thanks pootzko, writing the cookie part as an independent section seems to work now with multiple subdomains (except for Internet Explorer which still displays the Cookie Consent bar at each page view even on the main domain...).
FYI, here is my code now :
	window.addEventListener("load",
	function()
	{
		window.cookieconsent.initialise(
		{
			"palette":
			{
				"popup":
				{
					"background": "#F0F0F0",
					"text": "#838391"
				},
				"button":
				{
					"background": "#004483",
					"text": "#FFFFFF"
				}
			},
			"theme": "edgeless",
			"content":
			{
				"message": "My message",
				"dismiss": "OK",
				"link": "More",
				"href": "https://www.domain.com"
			},
			"cookie":
			{
				"domain": ".domain.com",
				"path": "/",
				"expiryDays": "365"
			},
			"law":
			{
				"regionalLaw": "false"
			}
		}
		)
	}
	);

Not working for me... tested it with current Chrome and Safari.

I have to block Facebook, Instagram, Youtube these are subdomain for my website how will I do this . Please help me


pm.new_color_float

I got an error like this can u help?
self.espColor = pm.new_color_float(self.config["esp"]["color"]["r"], self.config["esp"]["color"]["g"],
^^^^^^^^^^^^^^^^^^
AttributeError: module 'pyMeow' has no attribute 'new_color_float'. Did you mean: 'new_color_hex'?

you need latest pymeow version to run source code (you have to build it yourself using nim)

thanks for response
i did build mymeow actually.As you see it is not saying module didn't found...
i don't know what is nim by the way(i just started learning python, hack is just for fun on the way)

thank you bro
i tried what said and just messed up everything
my purpose wasn't hack i was just learning programming but i will check again later


Feature request: Make the button a toggle between collapsing and expanding all folders

I wondered when this would come up. 😁 This is a bit more difficult since it requires keeping track of whether any folders are open or not. Assuming that event is easy to hook into, this should be pretty easy.

@isle99 Available in 1.1.0.


Type annotation check for parameter which is covariant-by-declaration fails

Consider the following program:
abstract class S1 { void foo(covariant p); }
abstract class S2 { void foo(Object p); }
abstract class S3 { void foo(int p); }
abstract class B implements S1, S2 {}

class C extends B implements S3 {
  void foo(num p) {}
}

void main() {
  C().foo(1);
}

In C.foo, parameter p is covariant-by-declaration because the corresponding parameter is covariant-by-declaration in the member signature for foo in B, because the same property holds for foo in S1. So the check on p in C.foo for correctly typed covariant-by-declaration parameters amounts to checking num against int, Object, and dynamic: There is a subtype relationship (in one or the other direction) in all three cases, so the type annotation on C.foo.p is OK (that is, there is no error).
However, dartanalyzer from commit 2ea8ff5ae7a3602f0e931aaafadb978cd92993bb (of today) reports the following errors:
ERROR|COMPILE_TIME_ERROR|INVALID_OVERRIDE|/usr/local/google/home/eernst/lang/dart/scratch/201912/n009.dart|7|8|3|'C.foo' ('void Function(num)') isn't a valid override of 'S1.foo' ('void Function(dynamic)').

(Weird: There are two lines reporting one error each, but the github rendering algorithm for 'preview' and the actual github issue page only shows one of them. The invisible one is about Object.)
This means that the status of p of being covariant-by-declaration is somehow not noted when these checks are performed.

It seems that the issue is related to the way we record isCovariant in analyzer, and the way we build interfaces.
When we build a class interface, for each member name we take the most specific signature. For B this is S2.foo(Object). Note, that covariant was in S1, but because we exactly take the most specific signature, we don't use S1.foo(covariant dynamic) in any way.
And the fact that p in C.foo is not covariant is just because it is not covariant in B.
If B declared foo itself, we would see that B.foo overrides S1.foo and S2.foo, and record that p in B.foo is covariant.
It seems that we have to track isCovariant separately from most specific signatures, so that even if there is no override (so no parameter to pin this data to), we still carry this data.

Yes. The language specification introduced (in commit 614ae7f362ac2df8500c050862e76c4fc66b8822) the notion of an interface as a set of member signatures (that is: a member signature is a new thing, not the same as a function type), specifically because I needed to define the concept of 'covariant-by-declaration' precisely.
A member signature explicitly carries the covariant flag on each parameter which is covariant-by-declaration, which means that the member signature is effectively "caching" the results of a search through the entire superinterface graph for a covariant modifier for the given parameter. If the analyzer maintains a representation of a class interface then this information could be cached there, in a similar fashion.

Analyzer no longer reports any issues with this example.

Analyzer no longer reports any issues with this example.


drivers: eth: Free packet after sending it

The error check was wrong, if we could send the packet then
we free it. If sending fails, then let the caller to decide
what to do with the packet.
Signed-off-by: Jukka Rissanen<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master   #11308   +/-   ##
=======================================
  Coverage   51.55%   51.55%
=======================================
  Files         216      216
  Lines       27665    27665
  Branches     6937     6937
=======================================
  Hits        14263    14263
  Misses      10653    10653
  Partials     2749     2749

Continue to review full report at Codecov.

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

Well, commit message should say "drivers: eth: e1000: " after all.

Well, commit message should say "drivers: eth: e1000: " after all.

I noticed it immediately after creating the PR and re-submitted the patch. Unfortunately github does not update the subject it shows in the listings etc. so you were seeing stale message.


Cannot assign to read only property 'exports' of object '#'

I was trying to use worker-loader along with Comlink in my nuxt project, But i started getting the error Cannot assign to read only property 'exports' of object '#<Object>' in browser console, so looked into this problem and found out its because the function is being exported using module.exports =  (in here) which cannot be mixed and used with import, the fix I tried and got results was simply changing it to export default but I don't know if It's the real fix or if it breaks other people's projects.
I hope you look into it

Actually I read the readme again and saw if you have the babel-loader configured under Integrating with ES2015 Modules which is not an option for me currently, so I close the issue I guess.


Vulnerability results.

Hi, I normally run Trivy when I clone repos locally. Just wanted to share the results with you so that you can update the package versions in your next PR.

` Library
Vulnerability
Severity
Installed Version
Fixed Version
Description
Link

axios
CVE-2024-39338
HIGH
1.6.0
1.7.4
Server-Side Request Forgery
Details

braces
CVE-2024-4068
MEDIUM
3.0.2
3.0.3
Fails to limit the number of characters it can handle
Details

follow-redirects
CVE-2023-26159
MEDIUM
1.15.3
1.15.4
Improper Input Validation due to improper URL handling
Details

follow-redirects
CVE-2024-28849
MEDIUM
1.15.3
1.15.6
Possible credential leak
Details

langchain
CVE-2024-7774
MEDIUM
0.0.182
0.2.19
Path Traversal vulnerability
Details

micromatch
CVE-2024-4067
MEDIUM
4.0.5
4.0.8
Regular Expression Denial of Service (ReDoS)
Details

next
CVE-2024-34350
HIGH
13.4.13
13.5.1
Vulnerable to HTTP Request Smuggling
Details

next
CVE-2024-34351
HIGH
13.4.13
14.1.1
Server-Side Request Forgery in Server Actions
Details

next
CVE-2024-39693
HIGH
13.4.13
13.5.0
Denial of Service (DoS) condition
Details

next
CVE-2024-47831
MEDIUM
13.4.13
14.2.7
Image optimization has a Denial of Service (DoS) condition
Details

next
CVE-2023-46298
LOW
13.4.13
13.4.20-canary.13
Missing cache-control header may lead to CDN caching empty replies
Details

postcss
CVE-2023-44270
MEDIUM
8.4.14 / 8.4.27
8.4.31
Improper input validation in PostCSS
Details

svelte
CVE-2024-45047
MEDIUM
4.2.2
4.2.19
Potential mXSS vulnerability due to improper HTML escaping
Details

Apologies if I posted in the wrong place.


Purpose of thrown error in Model/Block

Could you tell me what the reason is for the thrown error in https://github.com/madalinoprea/magneto-debug/blob/master/code/Debug/Model/Block.php#L56 ?
I ran into some issues getting that on certain pages, still debugging what caused in but it originates from the Innoext_Warehouse module. Still, not sure why it needs to be a fatal error instead of perhaps a warning in a log? #

I'm having the same issue with Mod_Baseprice & IWD_Onepage_Checkout Extensions

@steffen-wirth any one of those free? I want to work on a PR for this issue this weekend. Would be nice to have multiple modules to test

@sandermangel yes both are free. here's a copy of https://github.com/simkea/DerModPro_BasePrice and IWD Onepage Checkout you can download from https://www.iwdagency.com/

found a better one for DerModPro_BasePrice https://github.com/riker09/DMP_BasePrice/commits/master

@steffen-wirth thanks, will work on it this weekend. Shouldn't be too much trouble to make a nice PR


Fixed copy of event to be passed to formatting layout. Needed fields were not copied.

Not sure what was the reason to not copy some of the fields (excl. the stack trace related). I'm needing them for the pattern logging. Maybe you will consider good idea having them?

Looks cool to me. Thanks!


Add doc for @configu-integrations/azure-keyvault

Closes #583

Hi @Ritesh-Udgata ,
Here are the details for claiming your Hacktoberfest prizes! 🎉 Check out #465  (comment) for more information or simply fill out the form here: Claim Your Swag.
Remember, you only need to fill out the form once for all your PRs. 😊


Add timeout for sync API in queue and file

Queue has already been finished.
Will continue adding file changes.

Operations allowed by the client are creating, deleting and listing subdirectory and file, retrieving properties, , setting metadata

Unrelated to this PR but just noticed this. Would you mind fixing that?

Refers to: sdk/storage/azure-storage-file/src/main/java/com/azure/storage/file/DirectoryClient.java:29 in 42480f6. [](commit_id = 42480f608b768bb652d4c82f35b69cf732d1159d, deletion_comment = False)

Operations allowed by the client are creating, deleting and listing subdirectory and file, retrieving properties, , setting metadata

Unrelated to this PR but just noticed this. Would you mind fixing that?
Refers to: sdk/storage/azure-storage-file/src/main/java/com/azure/storage/file/DirectoryClient.java:29 in 42480f6. [](commit_id = 42480f6, deletion_comment = False)

Fixed. @gapra-msft


Filter out empty responses in student surveys, size font to fit space

Part of https://github.com/studentinsights/studentinsights/issues/1990.  Follow on to https://github.com/studentinsights/studentinsights/pull/2049 and https://github.com/studentinsights/studentinsights/pull/2048.
Who is this PR for?
students, educators, particularly HS educators
What problem does this PR fix?
If a student filled out all empty responses, or if they only filled out some survey responses, these will all show up as "" insights.
What does this PR do?
Filters out the whole survey on upload if they didn't answer any questions, and filter out individual responses if they are empty text at read time in ProfileInsights.

Pushed some more commits that adjust the font size so that the insight text to fits the space (using <FitText />:

selfie


added piping, filtering and multivariate functions

seamless monads via: Ok(val) @ fnc @ fnc2 ... --> Result[]

try-catch exceptions and turn them into errors
no need to decorate the functions, just start with a Result and pipe
no need to unwrap, match, or check much

filtering: Ok(val) % filter_fnc @ fnc ...

unwanted values get turned into Errors with FilterException
can be used in comphehensions with .is_ok()

added multivariate functions: Ok(x) | Ok(y) > fnc(a,b) ---> Result[]

output of the | operator is MultiResult class with tuple values
> need to be last in pipeline or escaped with parentheses due to operator precedence
errors are catched and traced (thou this shoould be done better..)
can be used for zipping or reduction

asynchronous piping via: await ( Ok(x) >= asfnc(x) ) @ fnc @ ...

need to be awaited or last in the pipeline (retudns courutine)
works for multivariate functions as well: await ( Ok(x)|Ok(y) >= fnc )

tests and mypy are happy

comprehension:
[ res for i in range(..) if (res:= Ok(i) @ .. % .. @ .. ).is_ok() ]
... the list can be turned to MultiResult instance for reduction in fncs.
Operators:

@ .. basic pipe: Ok(x) @ fnc1 @ fnc2 ...
% .. filter (turns Oks into Errs) : Ok(x) % filter @ ... % ...
| .. increases dimension : Ok(x) | Ok(y) | Ok(z) is 3-d MultiResult

.. reducee multivariate result via multivariate function: Ok(x)|Ok(y) > fnc

= .. async pipes, both uni- and multi- var (not filters)

Hi @dandaKrpelik, thanks for the PR.
Let me look over this, there's quite a few things you've included.
@wbolster you've had some good comments on similar things in the past, your input would be great here if you have time.

First off, this is really great. Thanks again for creating this PR. I agree this kind of stuff is very useful.
My primary concern is operator overloading is prone to making code harder to read, especially in Python where there's no real precedence for functional piping like in FP languages (Haskell, F#, Elm, even bash), cat foo.txt | grep "bar" | wc -l.
That being said, obviously some people are going to be inclined towards wanting syntactic sugar like piping operators, filtering, etc. Perhaps we can have a result-overloaded library? Where these operators are overloaded and whatever other cool/experimental things? That way those who want a simple(r) library can use result and those looking for these extra features can use result-overloaded? That new library can just extend (inherit from) this one, class Result(_Result) and re-export the same stuff + any extras?
That's just my first thought on this. @wbolster may have some input as well.

Regarding the design choices, I would've chosen | for filter, rather than for "increasing dimensionality".
doubled_str: str = x | double | str

And & seems more logical as a way to combine two things (a and b),
x_and_y = x & y

Finally for filtering, what about
successful_results = results | filtr(is_successful)

You may need to do some internal logic to make this work, but that seems nicer than having a separator operator? Read a bit more like FP style pipeline now. Of course Python has a built in filter, so you don't want to overwrite that, so have a chose a different name

It would make a different library. I originally wanted to make it independent of the original result library, but adding class methods (those operators) post-hoc made mypy sad. I don't know how it could be split, but I imagine some users might prefer just the plain result library or at least optional imports. Maybe via a separate module with inheritance from the Result types (i just added the operators)? Then they could choose, whether to import results with or without piping capabilities. But I'm not sure what would it take and many things may break.
You can always use the inbuilt filter() method to filter a sequence. One can unwrap Results in the filter function. Some simple decorator should work and the code would be more lucid. Sequence of Results is not the same as a Result of a Sequence. This operator would apply to a Result of a sequence. (Use MultiResult for sequences of Results - these could be used for piping filters as you suggested ... also for any other reduction operations btw...).
The main difference is that this filter operator works per variable. Note that the basic @ and % operators pipe univariate functions. Rest can be achieved using functools.partial or the MultiResult. For the filtering, any function which outputs a bool works and its name gets stored in the caught exception.
By the way, the logic can be immediately used to simulate yours Maybe package with:
def isSome(x): return x is not None
res = Ok(val) @ fnc % isSome
...
noneval = Ok(None) % isSome
assert isinstance(noneval, Err)
assert noneval.err().args[2] == "filterFnc='isSome'" ## this should be made nicer

The operators were chosen to work with the python operator precedence. The main intent (first version was only univariate) was to have piping and filtering operators from the same precedence group ( *, @, /, //, % ) so that the order (left-right) would be decisive. One can now pipe functions with filters seamlessly. Also, I wanted it to look somewhat different, yet similar, from commonly used python syntax. The @ suggest (in python coder's mind) a decorator, so it should feel natural that it somewhat modifies a function behaviour (althought it does not in this case .. it's "decorating" the input :D). And % to suggest modular groups. I might have gone with a ? for filtering if I could, but the groups signify that one can further filter errors into groups via error messages (see above). Or using custom FilterException extensions with some changes (but that would be probably an overhead for the results library - clarifying the FilterException messages should work better).
Other operators from the group are used too commonly, I think, - that could be confusing.
I've added the multivariate support later. The parallel | was chosen to suggest something like "parallel streams". I was thinking about & and ^ as well, and it would work the same as well, but I stopped thinking about it too much and went with the "streams". They also look the nicest in the code imo. The operator precedence matters again. I need the later "pipe to multivar-fnc" to have the lowest priority (thus from <, <=, >, >=, !=, ==).
Thinking about it now, this could lead to troubles when piping to univariate async functions... But one needs to await the async result anyway - that should prevent it. Otherwise, the univariate async pipe could maybe be changed to bitwise shift operator.

By the way, I've discovered more nice tweaks the code enables.
one can tee in pipes:
def tee(x):
    print(x)
    return x

Ok(val) @ fnc @ tee @ fnc2 ...
## prints fnc(val)
### or nothing if Err is piped there, since it would be skipped

and patter-matching works for MultiResult (which holds a list of Results)
mr = MultiResult( Ok(1), Ok(2) )
match mr:
    case MultiResult( [ Err(val), _ ] ): ... ## get skipped
    case MultiResult( [ Ok(a) , Ok(b) ] ): ... ## matches a, b
    case MultiResult( x ): ... ## matches the inner list of Results
    ....

Fixed the test. The error was only in the test file -> I was using the | operator instead of Unions for convenience.
It now passes on 3.8 (except for the type checking), 3.10 and 3.11 ... and I should probably learn with tox.
& might be better for result joining - unless there is a plan to use it for convenient tuple type definition... But I still kinda like | for this... due to the idea of parallel streams I suppose ...

Probably shouldn't have merged PRs, but this was way too convenient.
Added bool checks for results and multiresults,
BUT!! The check returns False if the value of Ok is None.
So one doesn't need to write Exceptions or explicitly initialize Err if None return is considered as a failure.
This doesn't influence any other parts of code- still using res.is_ok() for unwrapping, piping and others.
See the commit message for examples.

my bad; it's not pipes, it's chains

i had a quick look and left some small comments.
in general i'm not sure i like all these extra features. error handling is overly generic, syntax is quite hard to grasp/learn, etc.
operator overloading can look nice on the surface, but unless you're really doing expressions arithmetic and comparison operations (like sqlalchemy type system which translates to sql expressions) they're also really confusing, and not that common in python.
wondering how many of these operations can also be done as chainable methods like .map().filter().whatever()? 🤔

There are those two main operators, @:map and %:filter. I haven't encounter any issues so far in chaining those in arbitrary combinations.
Then >= so that async functions can be mapped in the same chaining manner. But these require a bit of caution because of operator precedence, and because the result need to be awaited.
And lastly, the |:join is quite useful for map-filter-reduction tasks and to, again seamlessly, chain multivariate functions with >, which would require several checks and unwraps otherwise. But > needs to be the last on the chain-line due to operator precedence.
Error handling is generic in order to always finish the chain. One can inspect the result later. Some improvements might be made in the Err values for better error handling, but yes ... it's supposed to be generic so that it would apply on any function chain seamlessly.

For some complex piping, map and filter, together with generator comprehension, should suffice.
result_generator = (Ok(x) @ ... for x in <generator>)

At the moment:

Res.map() -> Ok assumes no errors; or raises
Res.and_then() -> Res requires wrapping the chained function
Res.map_or/_else() -> U seem like sinks into U, unless the function is wrapped

The point is to avoid the need of decorating 3rd lib functions and still use them easily with the Result construct.
... and some rapid prototyping maybe?
But ... well ... yes, all of the functionality can already be achieved with the package one way or another... It's just convenience...

Also, I find it an interesting perspective ... it's not functions consuming arguments to produce outputs, but arguments consuming functions to get transformed ^.^

Some found issues. Consideration required.

constructing multiresult via piping mutates it. This is desirable wrt construction, but might lead to issues, when appending more values and reusing the multiresult. Possible solution: & operator, which would construct and return new object when desirable.
multiresults don't typecheck when piped into function. No known solution atm.