Sign and verify

Fixes: #
Description of the changes being introduced by the pull request:
This pull request is related to DSSE implementation and adds methods to create and verify DSSE signatures.
Please verify and check that the pull request fulfils the following requirements:

[x] The code follows the Code Style Guidelines
[x] Tests have been added for the bug fix or new feature
[x] Docs have been added for the bug fix or new feature

Left some comments, @PradyumnaKrishna, I think this PR is in great shape!

There were lots of comments on this pr, @PradyumnaKrishna please go through them and see which ones are not addressed before pushing your next change.

Need help fixing conflicts and git history?

Need help fixing conflicts and git history?

Looking to get #5 and #6 merged before continue with this branch. Changes are underway, will push as soon as these two gets merged.
And I might need some help:
I was running a test case where I found that GPG public key uses default keyid but the signature created has signing keyid for GPG RSA. Which means GPGKey.keyid != signature.keyid and fails the DSSE verification. Are there any way to find right keyid?

And I might need some help:
I was running a test case where I found that GPG public key uses default keyid but the signature created has signing keyid for GPG RSA. Which means GPGKey.keyid != signature.keyid and fails the DSSE verification. Are there any way to find right keyid?

Can you point me to the test? The gpg keyid is actually parsed from the raw public key data if the signature only contains the short keyid.

Can you point me to the test?

I was writing that test case and testing on local, let's finish with the current PRs and I will show you after that.

@lukpueh, If I tries to create a test case for GPG RSA and DSSE envelope similar to:
https://github.com/in-toto/securesystemslib/blob/6a918dcb4c21d0122dd473fb4e09a7b8cb8707b6/tests/test_signer.py#L132-L149
It fails because GPGKey keyid is different than keyid present in the signature created and due to the fact that protocol filters keys and signatures according to keyid.
Thats not a case for GPG DSA and GPG EdDSA according to my testing.

It fails because GPGKey keyid is different than keyid present in the signature created and due to the fact that protocol filters keys and signatures according to keyid.

How do the keyids differ? They should both be self.default_keyid in lower case, on the signature and on the key.  Can you point me to the failing test? Or show me a dump of the two objects (in dict representation)?

How do the keyids differ?

GPGRSA has multiple keyids, signature stores signing subkey keyid and public key has default keyid for some reason.
https://github.com/in-toto/securesystemslib/blob/6a918dcb4c21d0122dd473fb4e09a7b8cb8707b6/tests/test_gpg.py#L487-L494
GPGSignature dict
{
    "keyid": "c5a0abe6ec19d0d65f85e2c39be9df5131d924e9",
    "signature": "2476dc5e357812ea382f7681d634f5510a51b5acd4f01e38b5f18c0d21960d32854eb27a6e824c89761731f24dd39361de757e3bdf15e4f4bace98c6f5b3f75842b9afaf098c5913e6d088c0a6f147d739d1977b12363e33cfaa462ddbebb504103d42732d0acd39a1a27933b395c8fc5de19aab3a1bfbcd88b58b0da0c33f2fc7e72f3da6ac99bbf80c3739df8d842b66bf52ce618b11b3c73c17b34d6f6aa9b723cdd4653fac525aa1d06e07fb362ba8b70e031366a143692f7a5ef30334e03ffd4123148250d6b97e9b1c93d8f27dad34e45792b2af99df8715335902c22a13143ca48a447cd206fbec96b3d481da6a7485ca4dcfdb30cb5f19df0ab6ccff",
    "other_headers": "04000108001d162104c5a0abe6ec19d0d65f85e2c39be9df5131d924e9050262d7e935"
}

GPGKey dict
{
    "method": "pgp+rsa-pkcsv1.5",
    "type": "rsa",
    "hashes": [
        "pgp+SHA2"
    ],
    "keyid": "8465a1e2e0fb2b40adb2478e18fb3f537e0c8a17",
    "keyval": {
        "private": "",
        "public": {
            "e": "010001",
            "n": "da59409e6ede307a52f6851954a7bd4b9e309bd40a390f8c0de9722b6310110ef0b095bf1c473e33db97150edae05c63dda70c03902701b15f3c5c308947e1b06675b4f1112030f1145be84ae1562e9120c2d429b20d5056337cbc97fc8b5db5704a21db635d00b2157ed68a403c793e9958b77e00163f99b01809e08ee9099b99b117c086501e79eb947f760a0715bead0024c48d81f9000671c4306a93725965f3ff2dc9806eaf081357f0268cab8ba7582d2e95e51225a9dc7ed31a9568c45568d7917b05e7c954d561cd084291e77a7bdd69e3ac2f9091de55fe3f4e730147e880e2fc044c5f7c04c75ce33a3c0b52380f4d60309708c56185f3bce6703b"
        }
    },
    "creation_time":<PHONE_NUMBER>,
    "subkeys": {
        "6a112fd3390b2e53afc2e57f8fc8e12099aeceea": {
            "method": "pgp+rsa-pkcsv1.5",
            "type": "rsa",
            "hashes": [
                "pgp+SHA2"
            ],
            "keyid": "6a112fd3390b2e53afc2e57f8fc8e12099aeceea",
            "keyval": {
                "private": "",
                "public": {
                    "e": "010001",
                    "n": "a40806286bfeb2bee9f36d9953ef2f83265f2b802024981775ce8498f6f08a6d7ea14dcecc1b82013b71e7d93d6ecb294f8880ee703e01a73cb45d8740221671a04f4b6cdf79f44438c7b8b8b4963d4308e0f40dbe18aee79e48fdf9fecb02661b76da7ba17a5dffa88afc8984743d3a033879a26384cce12350e25068ec38d4e3d7075176b6020882ca81a12d174df864dc59f11e19f98eec5e5e22d0ab6cc32bf1dd70cf4c2ca7c6aa1be48da0f94dcebc2f3c425d0d1e536e01f01ce5dfdc655f2994ccadd120469d55e2ad2f1e9c3483abcfefcf959d600a2ebb7990b46841b15d25537d8f1fbeda9347ffa466ccfcceca4567f9a7d84dd767fdf037fe97"
                }
            },
            "creation_time":<PHONE_NUMBER>
        },
        "c5a0abe6ec19d0d65f85e2c39be9df5131d924e9": {
            "method": "pgp+rsa-pkcsv1.5",
            "type": "rsa",
            "hashes": [
                "pgp+SHA2"
            ],
            "keyid": "c5a0abe6ec19d0d65f85e2c39be9df5131d924e9",
            "keyval": {
                "private": "",
                "public": {
                    "e": "010001",
                    "n": "c152fc1f1535a6d3c1e8c0dece7f0a1d09324466e10e4ea51d5d7223ab125c1743393eebca73ccb1022d44c379fae30ef63b263d0a793882a7332ef06f28a4b9ae777f5d2d8d289167e86c162df1b9a9e127acb26803688556ecb08492d071f06caf88cea95571354349d8ef131eff03b0d259fae30ebf8dac9ab5acd6f26f4770fe2f30fcd0a3c54f03463a3094aa6524e39027a625108f04e12475da248fb3b536df61b0f6e2954739b8828c61171f66f8e176823e1c887e65fa0aec081013b2a50ed60515f7e3b3291ca443e1222b9b625005dba045a7208188fb88d436d473f6340348953e891354c7a5734bf64e6274e196db3074a7ce3607960baacb1b"
                }
            },
            "creation_time":<PHONE_NUMBER>
        }
    }
}

GPGRSA has multiple keyids, signature stores signing subkey keyid and public key has default keyid for some reason.

What do you think how we should deal with subkeys here?

What do you think how we should deal with subkeys here?

Create a functions to return a list of all keyids of a Key and check if keyid is present in the list on verify.
Thats how gpg verify function selects keyid
https://github.com/in-toto/securesystemslib/blob/6a918dcb4c21d0122dd473fb4e09a7b8cb8707b6/securesystemslib/gpg/functions.py#L221-L226

Create a function to return a list of all keyids of a Key and check if keyid is present in the list on verify.

In GPGKey.verify or in Envelope.verify?

In GPGKey.verify or in Envelope.verify?

https://github.com/in-toto/securesystemslib/pull/2/files#diff-2864d1ba8b39b6e64cba34ae3125c3b2ae03d57aa7c4efae44e8381cf11632bfR138-R143
Here, we can use
keyids = key.get_keyids()
if signature.keyid not in keyids:
    continue

In GPGKey.verify or in Envelope.verify?

https://github.com/in-toto/securesystemslib/pull/2/files#diff-2864d1ba8b39b6e64cba34ae3125c3b2ae03d57aa7c4efae44e8381cf11632bfR138-R143
Here, we can use
keyids = key.get_keyids()
if signature.keyid not in keyids:
    continue

Good idea. Although get_keyids wouldn't make much sense on Key implementations that don't have subkeys. Maybe it could be a method that takes the signature and returns True if the  keyids match, which can be implemented in different ways in the different Key implementations.

💯


Show compile time

Hey,
Apologies if it's been asked before but the issue uses very generic terms and I can't find any code for it, or any issues.
But is it possible to show how long each compile takes, for example. "Compiled successfully in 1234ms" I guess https://github.com/facebookincubator/create-react-app/blob/2069e8ac43c4765f1698091d3985ecb70ba88089/packages/react-scripts/scripts/build.js#L75
I can potentially have a look at this and see how other plugins do it, but wondered if it was possible already and if its a desired feature.
Cheers!

You can time the command from your terminal eg time npm run build. Other people might be using yarn though, which prints out the time the command took at the end.

@tbillington  Yeh that would work for build but not dev with watch commands, for example gulp will show how long each task took to calculate, webpack on its own does as well if i remember correctly, would just be good to see the time taken for each dev compile :)

Ahh, I see :) I'd also find that interesting.

Can you explain more why this is useful? It's useful for people with custom builds since it's actionable, but doesn't seem very useful if you can't tweak the config.

@gaearon you're right about it not being actionable under most circumstances. the way i see it is as follows:

for users deciding on whether to use react-scripts or not it shows how fast it really is, how fast initial build is and how fast watched compiles are and shows why it may be more (or less, but in my opinion more) or a viable option to use than others
users going from gulp or other frameworks are used to it and see it as a valuable metric.
hopefully (definitely did where i work) encourages users to take a look at their own code to see if there's anything that can be improved to speed things up, maybe too many deps
for users who eject it's a good base to start with as they can now action on the slower build times
also a nice metric internally to see whether updates to react-scripts is improving compile time

More than anything it's just a good stat to know, i know for a fact i and many others like to see how long compiling is taking (also if it's slower than usual it's usually a good time to close some browser tabs 👀)
it's something i thought was missing 😀

After I adjusted the project directory structure, the compilation speed has slowed down. really need to see the compile time to improve speed.

I had a PR open for this but it got a bit stale so has since been closed, I will try pick it up again this weekend if I get some spare time


Kinetics mean and std.

Hi, I am trying to calculate mean and std of a video dataset of the size similar to kinetics. I couldn't find ways to calculate them fast. Can you share the process of how you calculate mean and std?

I calculated the mean and std using a randomly selected small subset of Kinetics.
In addition, I calculated the means for each frame and averaged them for the over all subset.
I think it is sufficient to use them for mean subtraction.

I calculated the mean and std using a randomly selected small subset of Kinetics.
In addition, I calculated the means for each frame and averaged them for the over all subset.
I think it is sufficient to use them for mean subtraction.
Hello, I want to ask whether you have calculate the mean and std of ucf101 as well as hmdb51.


Breaks conditional extends by removing parenthesis

Expected Behavior
This should work after obfuscation:
export default Target => class Events extends (Target || Base) {
}
Current Behavior
Obfuscation removes () around Target || Base, which breaks it.
(the code above is used for mixins, Base is an existing class)
Your Environment
ES6

Hi, i'll look into this issue but currently i take a 1-2months timeout with this project to doing renovations on my flat. So, until october i'll have no time to look into this.

We currently work around it by regexing the parentheses back in place after obfuscation, so we are ok anyway. But would be nice to have it fixed when you have the time. Good luck with the renovation and thanks for a great utility!

Hi. This is escodegen problem. Will try to create a PR to the escodegen

I created the PR with fix for escodegen
It is better to ping this PR, because maintainers is not so active:
https://github.com/estools/escodegen/pull/404


COHORT_COURSES_RECALCULATE_FAIL

I have created a public Cohort for testing on dev:
https://achievements-dev.firebaseapp.com/#/cohorts/-LN8gtzMjUzkLyuo1yOp

There are two issues here:

When a new user join the Course by clicking the course link, and the cohort instructor click "Recalculate", the console report the following error:

For the user who is seeing the public cohort page,

The user's console is getting another recalculate_fail message:

@Brainenjii you can see the screenshots in this issue missing the Path Data name in the Table Head as well.

@FeynmanDNA
I checked this issue, but it's worked on my end.


Proposal: Action elements supported directly within body

Solves requests

Be able to use actions (buttons) anywhere within card body #2027

Summary
Instead of adding an ActionSet element which contains actions, just allow authors to use an Action element directly as a card body element.
Schema
Simply allow Action elements within body/Columns/Containers.
Example

{
  "type": "ColumnSet",
  "width": "stretch",
  "columns": [
    {
      "type": "Column",
      "items": [
        {
          "type": "TextBlock",
          "text": "Trip to UAE",
          "size": "ExtraLarge"
        }
      ]
    },
    {
      "type": "Column",
      "items": [
        {
          "type": "Action.OpenUrl",
          "title": "EXPORT AS PDF",
          "url": "https://export.com"
        }
      ]
    }
  ]
}

Comparison with ActionSet proposal
The ActionSet proposal accomplishes the same thing, but sometimes is more complicated. Specifically, in cases where there's just one button, simply using an Action element is the easiest way.

Example
Effort with this proposal
Effort with ActionSet proposal

Easy (just use an action)
Medium (have to use an ActionSet even though just have one action

Hard (have to create ColumnSet and Column for each action)
Easy (just use ActionSet with two actions)

Easy (just use an action)
Medium (have to use an ActionSet even though just have one action

Hard (have to create ColumnSet and Column for each action, plus they won't adapt to the host's style (on Action Center they won't stretch)
Easy (just use ActionSet with two actions)

Easy (just use an action)
Medium (have to use an ActionSet even though just have one action

Hard (have to create ColumnSet and Column for each action, plus they won't adapt to the host's style (on Action Center they won't stretch)
Easy (just use ActionSet with two actions)

Easy (just use an action)
Medium (have to use an ActionSet even though just have one action

Host Config
No changes.
Down-level impact
Medium. Card could be unactionable if button is critical.
Host burden
No new burden, existing custom styles will work.

Going with ActionSet proposal for now... in future can always add this if desired


webots_ros2: 1.2.0-2 in 'galactic/distribution.yaml' [bloom]

Increasing version of package(s) in repository webots_ros2 to 1.2.0-2:

upstream repository: https://github.com/cyberbotics/webots_ros2.git
release repository: https://github.com/ros2-gbp/webots_ros2-release.git
distro file: galactic/distribution.yaml
bloom version: 0.10.7
previous version for package: 1.1.2-2

webots_ros2_control
* Fix the controller_manager update rate.

webots_ros2_driver
* Adapt the worlds to the new R2022a FLU convention.
* Remove a double webots_ros2_driver header installation.
* Add the publication of the 'gps/speed_vector' topic to the GPS ROS 2 device.

webots_ros2_epuck
* Adapt the worlds to the new R2022a FLU convention.

webots_ros2_mavic
* Adapt the worlds to the new R2022a FLU convention.

webots_ros2_tesla
* Adapt the worlds to the new R2022a FLU convention.

webots_ros2_tests
* Adapt the worlds to the new R2022a FLU convention.
* Add a system test for the TurtleBot3 Navigation scenario.

webots_ros2_tiago
* Adapt the worlds to the new R2022a FLU convention.

webots_ros2_turtlebot
* Adapt the worlds to the new R2022a FLU convention.

webots_ros2_universal_robot
* Adapt the worlds to the new R2022a FLU convention.
* Fix synchornosiation issue when the trajectory controller was receiving goals but was not ready to execute them.

Holding for Galactic Sync


StateMismatch at /slack/login/ State mismatch upon authorization completion. Try new request.

Slack asked me to update my app's scopes, which I did. I added the new scopes in the SLACK_SCOPE variables in my Settings file. I tested it in my development environment successfully and was able to OAuth to Slack.
When I pushed my code to production, I get this error message:

Internal Server Error: /slack/login/
StateMismatch at /slack/login/ State mismatch upon authorization completion. Try new request.

How can I resolve this? Anyone else having the issue?

Here is the full Traceback:
Traceback:
File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/core/handlers/base.py” in get_response

                response = self.process_exception_by_middleware(e, request)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/core/handlers/base.py” in get_response

                response = wrapped_callback(request, *callback_args, **callback_kwargs)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/views/generic/base.py” in view

        return self.dispatch(request, *args, **kwargs)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/utils/decorators.py” in _wrapper

        return bound_func(*args, **kwargs)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py” in _wrapped_view

            return view_func(request, *args, **kwargs)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/utils/decorators.py” in bound_func

            return func.__get__(self, type(self))(*args2, **kwargs2)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django_slack_oauth/views.py” in dispatch

    return super(SlackAuthView, self).dispatch(request, *args, **kwargs)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django/views/generic/base.py” in dispatch

    return handler(request, *args, **kwargs)

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django_slack_oauth/views.py” in get

    self.validate_state(request.GET.get('state'))

File “/opt/Envs/hardhill-env/local/lib/python2.7/site-packages/django_slack_oauth/views.py” in validate_state

        raise StateMismatch('State mismatch upon authorization completion.'

Exception Type: StateMismatch at /slack/login/ Exception Value: State mismatch upon authorization completion. Try new request.

Hi,
Did you set up cache at your settings file ?

No I did not. Is that why it's not working? Why would it work in my dev
environment?
On Fri, Mar 18, 2016 at 12:37 PM, Sergey Keller<EMAIL_ADDRESS>wrote:

Hi,
Did you set up cache at your settings file ?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/izdi/django-slack-oauth/issues/10#issuecomment-198444271

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

Looks like you have cache set up in your dev env and not in your prod, check at README.md p. 4.2 please.
:octocat:

I use a different Settings file for dev and can't find any cache settings
in it so I'm not sure how I would have cache set up in my dev environment.
I'll set it up anyway and see what happens.
On Fri, Mar 18, 2016 at 12:46 PM, Sergey Keller<EMAIL_ADDRESS>wrote:

Looks like you have cache set up in your dev env and not in your prod,
check at README.md p. 4.2 please.
[image: :octocat:]
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/izdi/django-slack-oauth/issues/10#issuecomment-198447218

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

I have no idea why it's not working ... I added Memcached to my local
environment and now I get the same error as on Prod.
Can you send me all the settings I should have in my settings.py file?  For
MIDDLEWARE_CLASSES, CACHES, INSTALLED_APPS, etc.?
I must be missing something extremely simple.
On Fri, Mar 18, 2016 at 1:59 PM, David Miller<EMAIL_ADDRESS>wrote:

I use a different Settings file for dev and can't find any cache settings
in it so I'm not sure how I would have cache set up in my dev environment.
I'll set it up anyway and see what happens.
On Fri, Mar 18, 2016 at 12:46 PM, Sergey Keller<EMAIL_ADDRESS>wrote:

Looks like you have cache set up in your dev env and not in your prod,
check at README.md p. 4.2 please.
[image: :octocat:]
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/izdi/django-slack-oauth/issues/10#issuecomment-198447218

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

I got it to work with Redis.
On Fri, Mar 18, 2016 at 2:54 PM, David Miller<EMAIL_ADDRESS>wrote:

I have no idea why it's not working ... I added Memcached to my local
environment and now I get the same error as on Prod.
Can you send me all the settings I should have in my settings.py file?
For MIDDLEWARE_CLASSES, CACHES, INSTALLED_APPS, etc.?
I must be missing something extremely simple.
On Fri, Mar 18, 2016 at 1:59 PM, David Miller<EMAIL_ADDRESS>wrote:

I use a different Settings file for dev and can't find any cache settings
in it so I'm not sure how I would have cache set up in my dev environment.
I'll set it up anyway and see what happens.
On Fri, Mar 18, 2016 at 12:46 PM, Sergey Keller<EMAIL_ADDRESS>
wrote:

Looks like you have cache set up in your dev env and not in your prod,
check at README.md p. 4.2 please.
[image: :octocat:]
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/izdi/django-slack-oauth/issues/10#issuecomment-198447218

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

--
David Miller
<EMAIL_ADDRESS>(704) 560-6733  mobile

Did you check memcached daemon on prod?


Hive metastore export / import script

The scripts to export/import Hive schema definition written in this doc didn’t work with HDI 4.0 cluster.
Should the scripts be changed to the beeline version as follows?
Export:
for d in `beeline -u "jdbc:hive2://headnodehost:10001/;transportMode=http" --showHeader=false --silent=true --outputformat=tsv2 -e "show databases;"`; do echo "create database $d; use $d;" >> alltables.sql; for t in `beeline -u "jdbc:hive2://headnodehost:10001/$d;transportMode=http" --showHeader=false --silent=true --outputformat=tsv2 -e "show tables;"` ; do ddl=`beeline -u "jdbc:hive2://headnodehost:10001/$d;transportMode=http" --showHeader=false --silent=true --outputformat=tsv2 -e "show create table $t;"`; echo "$ddl ;" >> alltables.sql ; echo "$ddl" | grep -q "PARTITIONED\s*BY" && echo "MSCK REPAIR TABLE $t ;" >> alltables.sql ; done; done

Import:
beeline -u "jdbc:hive2://headnodehost:10001/;transportMode=http" -i alltables.sql

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

ID: 1c706dd0-9a17-2257-5c1b-ff04d43f2c19
Version Independent ID: 54c60666-5ba6-1549-d222-05816602f4b4
Content: Troubleshoot Hive by using Azure HDInsight
Content Source: articles/hdinsight/hdinsight-troubleshoot-hive.md
Service: hdinsight
GitHub Login: @hrasheed-msft
Microsoft Alias: hrasheed

@hrasheed-msft Could you please look into this issue?

@hidwatanabe The HDInsight product team is looking into this issues and I'll update you as soon as I know more.

@hidwatanabe The engineering team has confirmed that this is an open bug with Hortonworks (HIVE-1199). You can open a ticket with support who may be able to provide more information on the bug and possible workarounds.

#please-close


esp32-h2 support

Are there any plans to support the now widely available h2 as well?

Yes! Support for BLE on the ESP33-H2 is planned and and a few initial preparations are already done


Missing go modules support

which go module is missing?

ok, my mistake. You mean go module. @mobilecheng

@johng Thank you for your PR, we're reviewing, testing it and then merge into branch. So, we'll get go module support, thanks. :-)


Keep EXIF

Could u please keep the EXIF when encode AVIF from a photo?

It seems doable. Flutter does not provide a way to read exif data but we can use a plugin like exif for that.

So could u please make it automatically when encoding?
Add a param that enables it to the encodeAvif() method.
Thanks.

I was able to work on exif support yesterday. I have added the keepExif paramter to the encodeAvif function which will be false by default. It is a little bit slow for now because the library I am using does not provide a way to read exif data without decoding the image. So, I need to find a better solution to read exif data before publishing an update. Check out exif_support branch if you want to try.


Development Mode documentation incorrect, still references Solo ordering service implementation.

Issue 3514 states that solo support is being depreciated. The Fabric documentation states that Solo support is depreciated as of 2.x
However, the documentation for starting the network in development mode still references the Solo ordering implementation, and even says that no edits need to be made to the default configuration:
It uses all the default settings for the peer and orderer and overrides the configurations using environment variables from the command line as needed. No edits are required to the default peer core.yaml or orderer orderer.yaml files.
Attempting to start the orderer when configuring development mode as per the documentation results in the following error:
❯ ORDERER_GENERAL_GENESISPROFILE=SampleDevModeSolo orderer

2023-01-02 21:02:45.507 GMT 0001 INFO [orderer.common.server] prettyPrintStruct -> Orderer config values:
	General.ListenAddress = "<IP_ADDRESS>"
	General.ListenPort = 7050
	General.TLS.Enabled = false
	General.TLS.PrivateKey = "/home/test/go/src/github.com/hm3736485/fabric/sampleconfig/tls/server.key"
	General.TLS.Certificate = "/home/test/go/src/github.com/hm3736485/fabric/sampleconfig/tls/server.crt"
	General.TLS.RootCAs = [/home/test/go/src/github.com/hm3736485/fabric/sampleconfig/tls/ca.crt]
	General.TLS.ClientAuthRequired = false
	General.TLS.ClientRootCAs = []
	General.TLS.TLSHandshakeTimeShift = 0s
	General.Cluster.ListenAddress = ""
	General.Cluster.ListenPort = 0
	General.Cluster.ServerCertificate = ""
	General.Cluster.ServerPrivateKey = ""
	General.Cluster.ClientCertificate = ""
	General.Cluster.ClientPrivateKey = ""
	General.Cluster.RootCAs = []
	General.Cluster.DialTimeout = 5s
	General.Cluster.RPCTimeout = 7s
	General.Cluster.ReplicationBufferSize = 20971520
	General.Cluster.ReplicationPullTimeout = 5s
	General.Cluster.ReplicationRetryTimeout = 5s
	General.Cluster.ReplicationBackgroundRefreshInterval = 5m0s
	General.Cluster.ReplicationMaxRetries = 12
	General.Cluster.SendBufferSize = 100
	General.Cluster.CertExpirationWarningThreshold = 168h0m0s
	General.Cluster.TLSHandshakeTimeShift = 0s
	General.Keepalive.ServerMinInterval = 1m0s
	General.Keepalive.ServerInterval = 2h0m0s
	General.Keepalive.ServerTimeout = 20s
	General.ConnectionTimeout = 0s
	General.GenesisMethod = ""
	General.GenesisFile = ""
	General.BootstrapMethod = "file"
	General.BootstrapFile = "/home/test/go/src/github.com/hm3736485/fabric/sampleconfig/genesisblock"
	General.Profile.Enabled = false
	General.Profile.Address = "<IP_ADDRESS>:6060"
	General.LocalMSPDir = "/home/test/go/src/github.com/hm3736485/fabric/sampleconfig/msp"
	General.LocalMSPID = "SampleOrg"
	General.BCCSP.Default = "SW"
	General.BCCSP.SW.Security = 256
	General.BCCSP.SW.Hash = "SHA2"
	General.BCCSP.SW.FileKeystore.KeyStorePath = ""
	General.Authentication.TimeWindow = 15m0s
	General.Authentication.NoExpirationChecks = false
	General.MaxRecvMsgSize = 104857600
	General.MaxSendMsgSize = 104857600
	FileLedger.Location = "/var/hyperledger/production/orderer"
	FileLedger.Prefix = ""
	Debug.BroadcastTraceDir = ""
	Debug.DeliverTraceDir = ""
	Consensus = map[SnapDir:/var/hyperledger/production/orderer/etcdraft/snapshot WALDir:/var/hyperledger/production/orderer/etcdraft/wal]
	Operations.ListenAddress = "<IP_ADDRESS>:8443"
	Operations.TLS.Enabled = false
	Operations.TLS.PrivateKey = ""
	Operations.TLS.Certificate = ""
	Operations.TLS.RootCAs = []
	Operations.TLS.ClientAuthRequired = false
	Operations.TLS.ClientRootCAs = []
	Operations.TLS.TLSHandshakeTimeShift = 0s
	Metrics.Provider = "disabled"
	Metrics.Statsd.Network = "udp"
	Metrics.Statsd.Address = "<IP_ADDRESS>:8125"
	Metrics.Statsd.WriteInterval = 30s
	Metrics.Statsd.Prefix = ""
	ChannelParticipation.Enabled = false
	ChannelParticipation.MaxRequestBodySize = 1048576
	Admin.ListenAddress = "<IP_ADDRESS>:9443"
	Admin.TLS.Enabled = false
	Admin.TLS.PrivateKey = ""
	Admin.TLS.Certificate = ""
	Admin.TLS.RootCAs = []
	Admin.TLS.ClientAuthRequired = true
	Admin.TLS.ClientRootCAs = []
	Admin.TLS.TLSHandshakeTimeShift = 0s
2023-01-02 21:02:45.542 GMT 0002 INFO [blkstorage] NewProvider -> Creating new file ledger directory at /var/hyperledger/production/orderer/chains
2023-01-02 21:02:45.549 GMT 0003 INFO [orderer.common.server] Main -> Bootstrapping the system channel
2023-01-02 21:02:45.556 GMT 0004 INFO [blkstorage] newBlockfileMgr -> Getting block information from block storage
2023-01-02 21:02:45.564 GMT 0005 INFO [orderer.common.server] initializeBootstrapChannel -> Initialized the system channel 'syschannel' from bootstrap block
2023-01-02 21:02:45.566 GMT 0006 INFO [orderer.common.server] extractSystemChannel -> Found system channel config block, number: 0
2023-01-02 21:02:45.566 GMT 0007 INFO [orderer.common.server] selectClusterBootBlock -> Cluster boot block is bootstrap (genesis) block; Blocks Header.Number system-channel=0, bootstrap=0
2023-01-02 21:02:45.571 GMT 0008 INFO [orderer.common.server] Main -> Starting with system channel: syschannel, consensus type: solo
2023-01-02 21:02:45.574 GMT 0009 INFO [certmonitor] trackCertExpiration -> The enrollment certificate will expire on 2027-11-10 13:41:11 +0000 UTC
2023-01-02 21:02:45.577 GMT 000a PANI [orderer.commmon.multichannel] initSystemChannel -> Error creating chain support: error retrieving consenter of type: solo
panic: Error creating chain support: error retrieving consenter of type: solo

goroutine 1 [running]:
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00014d380, {0x0, 0x0, 0x0})
	/home/test/go/src/github.com/hm3736485/fabric/vendor/go.uber.org/zap/zapcore/entry.go:234 +0x49b
go.uber.org/zap.(*SugaredLogger).log(0xc00011c010, 0x4, {0xf2902b?, 0x109fd60?}, {0xc00012c628?, 0x757948?, 0xc000897260?}, {0x0, 0x0, 0x0})
	/home/test/go/src/github.com/hm3736485/fabric/vendor/go.uber.org/zap/sugar.go:227 +0xee
go.uber.org/zap.(*SugaredLogger).Panicf(...)
	/home/test/go/src/github.com/hm3736485/fabric/vendor/go.uber.org/zap/sugar.go:159
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...)
	/home/test/go/src/github.com/hm3736485/fabric/common/flogging/zap.go:74
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).initSystemChannel(0xc0000f4480, {0xc0004838f0?, 0x1, 0xc000158b90?})
	/home/test/go/src/github.com/hm3736485/fabric/orderer/common/multichannel/registrar.go:248 +0x492
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).init(0xc0000f4480, 0xc0003ef5e0?)
	/home/test/go/src/github.com/hm3736485/fabric/orderer/common/multichannel/registrar.go:164 +0x79
github.com/hyperledger/fabric/orderer/common/multichannel.(*Registrar).Initialize(0xc0000f4480, 0xc000154c30?)
	/home/test/go/src/github.com/hm3736485/fabric/orderer/common/multichannel/registrar.go:144 +0x33
github.com/hyperledger/fabric/orderer/common/server.initializeMultichannelRegistrar(_, _, _, {0x0, {0x0, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...}, ...)
	/home/test/go/src/github.com/hm3736485/fabric/orderer/common/server/main.go:817 +0x3c5
github.com/hyperledger/fabric/orderer/common/server.Main()
	/home/test/go/src/github.com/hm3736485/fabric/orderer/common/server/main.go:243 +0x15a7
main.main()
	/home/test/go/src/github.com/hm3736485/fabric/cmd/orderer/main.go:15 +0x17

Is there documentation for configuring development mode with a supported Orderer implementation?
Alternatively, are there any changes that can be made to configtx.yaml or other config files to support Raft so development mode can be used?
This is a significant blocker as development of chaincode is much more time consuming without being able to reload chaincode in between edits.
This is reproducible on multiple systems. The above was generated on Xubuntu 22.04.
Thank you,

@mbwhite For chaincode iterative development, is the plan to phase out DevMode in favor of one of:
-local peer with chaincode-as-a-service
-Microfab container

Hello - yes that's correct.

Thank you, is there an alternative for iterative chaincode development at the moment?

@hm3736485 with MicroFab (and chaincode as a service) you can do that today.

Start microfab
Do a simple chaincode deployment
Start/stop/rework/restart the chaincode as many times as you wish - without redeployment

The 'full-stack-asset-transfer` example (now in Fabric Samples) walks you through this...
https://github.com/hyperledger/fabric-samples/blob/main/full-stack-asset-transfer-guide/docs/SmartContractDev/01-Exercise-Getting-Started.md

I see, thank you.


Doctoc generating newline in header entries

I'm getting markdown that looks like this:
](#changelog)
- [How to Contribute!
](#how-to-contribute)
- [License
](#license)

From a header that looks like this:
`blocks.js`
============

This seems to be happening to all my top level headers

I'm using the version of doctoc that's currently on npm

No idea what's going on here. Possibly it's due to the backtick in your title.
This would need to be fixed in anchor-markdown-header.

Ok, I'll open an issue there.


A field of type "Date" cannot be used for change tracking

Hi colleagues,
If we are declaring a field in a CDS entity to be saved in the Changelog and this field has Data type:
@changelog
dueDate                  : Date;
then it causes an error during saving the changes. What happens:
**const _formatCompositionContext = async function (changes, reqData) {
const childNodeChanges = []
for (const change of changes) {
if (typeof change.valueChangedTo === "object") {**
In<EMAIL_ADDRESS>type of this field is considered to be an object (valueChangedTo is shown as “Thu Jan 01 1970 01:00:00 GMT+0100 (Central European Standard Time)”; valueDataType is "cds.Date") and is coverted to an Array:
if (!Array.isArray(change.valueChangedTo)) {
change.valueChangedTo = [change.valueChangedTo]
}
Then an attempt is done:
for (const childNodeChange of change.valueChangedTo) {
const curChange = Object.assign({}, change)
const path = childNodeChange._path.split('/')
However childNodeChange is a string, not a real object, and does not have any path. So it dumps.
Could you please check why cds,Date is considered to be an object? May be it is concerning also other types?
Kind regards,
Elena Gurevitch

Hello @032660
this should have been fixed with release 1.0.5
Are you running the latest release?
Best,
Nick

Hi Nick,
Thank you for reply. I increased the version. But const path = childNodeChange._path.split('/') is still dumping.
childNodeChange is a string.
Kind regards,
Elena

Hi @032660 ,
Could you share your git repo or more detail information.
I have try Date type in my local project. All changes can be saved and logged successfully.
cds entity:
entity Books : managed, cuid {
title    : String(111);
price    : Decimal;
dueDate  : Date;
}
Change History UI Table:

Best Regards
Jocelyn

Hi Jocelyn,
Sorry, I think now it is not because of the framework. We are setting new Date() and it is represented in another format than date. I tested for another entity and it worked.
Nevertheless it was good to know that we should increase the release!
Thank you very much,
Elena

Hi @032660 Elena,
Thanks for your information. And I will close this issue.
Best Regards
Jocelyn


CI: publish VSCode extension automatically

This run requires a personal access token to be added as secret

Codecov Report
Patch and project coverage have no change.

Comparison is base (be8a95c) 93.08% compared to head (6d360b0) 93.08%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1823   +/-   ##
=======================================
  Coverage   93.08%   93.08%
=======================================
  Files         353      353
  Lines       25656    25656
=======================================
  Hits        23881    23881
  Misses       1775     1775

see 3 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

I've dropped building and publishing vsix in GH releases (as we switch to vscsode marketplace)

If you remove the GH release vsix, you also need to adapt the https://github.com/chipsalliance/verible/blob/master/verilog/tools/ls/README.md#use-released-extension section of that readme to refer to the marketplace not the GH release page.

If you remove the GH release vsix, you also need to adapt the https://github.com/chipsalliance/verible/blob/master/verilog/tools/ls/README.md#use-released-extension section of that readme to refer to the marketplace not the GH release page.

done

I suspect before we are ready to merge, we need a chipsalliance secret added to the github repo ?

I suspect before we are ready to merge, we need a chipsalliance secret added to the github repo ?
it's already there :)

Perfect. Merged!
Thanks for figuring out the details how to do the whole release process on the marketplace, Karol.


rules: update aws_cloudtrail_rules required plugin versions

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If contributing rules or changes to rules, please make sure to also uncomment one of the following line:

/kind rule-update

/kind rule-create

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area rules

/area tests

/area proposals

What this PR does / why we need it:
Refs https://github.com/falcosecurity/falco/issues/1857#issuecomment-1021344794
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

@FedeDP: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: FedeDP
To complete the pull request process, please assign mstemm after the PR has been reviewed.
You can assign the PR to them by writing /assign @mstemm in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

rules/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 7eccd53f0071d4b90310733a00521e0a0fa885e5

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/milestone 0.31.0


auto proxyauth whit selenium

I cant use proxy whit this format on selenium ip:port:user:pass
the browser keep asking for user:pass for the proxy
I have some sources I hope you can fix it
SeleniumHQ/selenium#10042
https://coderedirect.com/questions/158523/how-to-set-proxy-with-authentication-in-selenium-chromedriver-python
https://www.py4u.net/discuss/141444
https://botproxy.net/docs/how-to/setting-chromedriver-proxy-auth-with-selenium-using-python/

maybe this google extension can help
https://chrome.google.com/webstore/detail/proxy-auto-auth/ggmdpepbjljkkkdaklfihhngmmgmpggp?hl=en

Already i suggesed the solution  (you can see the full topic by this id : #602), there is an chromium option called --proxy-server or --proxy-pac-url,this options work fine, but the box of command option in OB2/OB1 don't accept variables to switch between proxys ,
you can see this topics for more understanding:
https://www.browserstack.com/guide/set-proxy-in-selenium
https://www.linuxbabe.com/desktop-linux/configure-proxy-chromium-google-chrome-command-line

This will continue here https://github.com/openbullet/OpenBullet2/issues/807

Already i suggesed the solution (you can see the full topic by this id : #602), there is an chromium option called --proxy-server or --proxy-pac-url,this options work fine, but the box of command option in OB2/OB1 don't accept variables to switch between proxys ,
you can see this topics for more understanding: https://www.browserstack.com/guide/set-proxy-in-selenium https://www.linuxbabe.com/desktop-linux/configure-proxy-chromium-google-chrome-command-line

Hello @RifHut ,
I do not understand clearly your solution for OB2 related to proxy authentification with selenium through Chrome browser.
Thanks in advance for clarification
Greetings


panic: interface conversion: interface {} is map[string]interface {}, not map[interface {}]interface {}

I've got this error while trying to configure an influxdb provider using the mapping method.
I'm pretty sure I miss something obvious but facette won't starts anymore.
I know I'm new to this but could you show me an example of what would be the configuration
for a typical database like the ones in:
https://docs.influxdata.com/influxdb/v1.3/introduction/getting_started/
Thanks.

Hi @avoine,
Could you please give me the version of Facette you are using and full stack trace of the panic output?
If the configuration is invalid, Facette shouldn't crash 😄

Should be fixed by a8e1c7f53cf1f46e9a7e6c918db4b9c6d49f1deb.


fix missing match arm false positive for enum with no variants

fixes #3974

I think the solution in this PR should work, but cx.infer.variant_resolution_for_expr(cx.match_expr) returns None in the following case:
enum Never {}

fn test_fn(never: Never) {
	match never {}
}

I think this is an inference issue related to the match expression coming from a function argument. Any thoughts on this @flodiebold? Places I should start looking?
Note that in the IDE I do see Never as the type when I hover over the match expression, so perhaps this is some issue which only affects variant_resolution_for_expr?

Sorry for the noise here. Converting back to draft because I have not yet covered the reference case (i.e. &Never).

This seems a bit tricky, since TypeCtor::Ref seems to not contain any information about the type of the underlying thing being referenced.

The referenced type is a type parameter (&'x T is basically no different from Ref<'x, T>). There's actually ty.as_reference() for this purpose already.

I've added a deref method on Ty, which recursively derences types until it gets a non-reference. This makes the test pass which was matching on a reference to the Never enum.
Let me know if there is a more appropriate name for this method. Or if it should go somewhere else. I thought about putting it in an impl block on ApplicationTy, but in that case I wasn't sure what the return type should be, since parameters.as_single() would still return a Ty and I wasn't sure if it was safe to assume that Ty would be an ApplicationTy in all cases.
Also, I think this method could be useful when comparing the type of the match expression to the pattern arms? But I'd like to do this in a follow up MR, because that change should come with some additional tests as well.

bors r+


Bare Metal Package order examples not working

Reference: https://github.com/softlayer/softlayer-ruby/blob/master/examples/order_bare_metal_package.rb
The provided package ID of 32 is no longer a valid package, but even after updating the ID to one of the valid ones and choosing a new corresponding, underlying server component for it. I'm still unable to get any package order to verify.  They'll ultimately fail with The location provided for this order is invalid.  Haven't determined yet if I'm just unlucky with the vast number of combinations I have tried, or if there's some issue with package order verification at the moment.
For what it's worth, I'm able to verify some cpu/mem combinations for regular non-package orders, but I haven't yet been able to verify a single one via the package system.  One single working combination or example would be nice to see.

@cbreden, that examples seems to be outdated for various other reasons...
Can you share the code you are trying? It should be similar to ordering a virtual_guest. Here are some examples:

https://softlayer.github.io/ruby/createVSI/
https://softlayer.github.io/ruby/orderLB/
https://softlayer.github.io/ruby/create_server_from_template/


Doc. updation with "pending triage" label

pending triage is one of the common labels that every issue get, but most of the contributors not getting what exactly the meaning of this so it's good to update the contribution label guidelines with this.
pending triage labeled issues are not verified by maintainers

@Malavi1 can i work on this? My approach will be;

updating "pending triage" in - CONTRIBUTING.md file

You can work on this !


fix: images to plain text at the root

🧰 Changes
Fixes images to plain text when they are the only node passed to astToPlainText
🧬 QA & Testing

Broken on production.
Working in this PR app.

This PR was released!
🚀 Changes included in v6.48.2


Downstream docs variant

Downstream docs preview can be built with:
BUILD=downstream make docs-user

(and analogously for the docs-user-open and docs-user-watch make targets).

Here are the docs upstream/downstream builds for preview in a section where they differ (the image URLs):
https://logserver.rdoproject.org/86/286/f963006c259fc7179d0a8c134c55e52cb61d8ea3/github-check/adoption-docs-preview/2303821/docs_build/docs_build/adoption-user/index-upstream.html#_procedure_telemetry_adoption
https://logserver.rdoproject.org/86/286/f963006c259fc7179d0a8c134c55e52cb61d8ea3/github-check/adoption-docs-preview/2303821/docs_build/docs_build/adoption-user/index-downstream.html#_procedure_telemetry_adoption

I noticed that the rdoproject.org/github-check check failed, but otherwise, I approve.

recheck

recheck

recheck

recheck


introduce savepoint

@siddontang @zhangjinpeng1987 @hhkbp2 PTAL

How we are going to use this feature ?

When doing batch apply, there may be errors in the middle, so it has to rollback to maintain atomicity.

rest LGTM

LGTM


Missing Transformers initializer for Falcon models

Repro code:
model5 = keras_hub.models.CausalLM.from_preset("hf://tiiuae/falcon-7b-instruct", dtype="bfloat16")
Result:
ValueError: KerasHub has no converter for huggingface/transformers models with model type 'falcon'
Now that the Falcon model family exists in Keras-hub, this should work.

Hi @martin-gorner -
Thanks for reporting the issue. You can intialize falcon-7b-instruct  model using transformers AutoTokenizer, AutoModelForCausalLM class.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_name = "tiiuae/falcon-7b-instruct"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")

And for loading falcon model family(falcon_refinedweb_1b_en) in keras-hub, you can use like this.
model5 = keras_hub.models.CausalLM.from_preset("hf://keras/falcon_refinedweb_1b_en", dtype="bfloat16")
Attached gist here for the reference.

Thanks @mehtamansi29 but this issue is filed in keras-hub. The problem is to initialize a Keras-hub model from the safetensor checkpoint, as is possible for Llama, Gemma etc. I'm logging this because cross-compatibility between Keras-hub and Transformers checkpoints is not guaranteed even if the model architecture exists on both sides. A checkpoint translation module is necessary. It is important to keep track of model architectures  where this translation module was implemented and where it was not.


An easy-to-use client mode

Hi there,
First of all, thanks for the lib.
I'm able to connect to different peers, then send messages from one to another.
One thing I couldn't achieve so far is, to use a the underlying stream (or substream) in order to forward the data via (io::copy()), would is this possible?
Thank you.

From the current architecture, io::copy cannot be used.
In order to allow users to implement different protocols in the same way, from the user's perspective, the first object is no longer a stream, but a user-defined protocol trait.
Therefore, at the framework level, the underlying stream needs to be hidden, and the session id is provided as an index for the protocol trait operation.
Therefore, the operation object of io::copy has been hidden inside the framework. However, where the protocol sends and receives messages, we use the data structure Bytes, which can actually be regarded as an Arc < u8> , the cost of direct forwarding after receiving the message is not much different from io::copy, because in fact, the data has already been copied from the kernel to the user mode.

That's what I thought, thanks.
What would be neat for my use case is to have some kind of callback, eg.:

    let callback: Bytes = service_control
        .send_message_to(1.into(), 0.into(), Bytes::from("query"))
        .await?;

    assert_eq!(Bytes::from("query_result: blablabla"), callback);

I wonder how difficult would it be to implement this?

I think I probably know what you want.
At present, you need to encapsulate it yourself. The easiest way is probably like this, you can change the channel to asynchronous, and then combine it with service_control to form a new structure, impl Future for it, so that you can await callback like your code
In fact, the essence of this problem is that at present, the framework only provides the writing of the server mode, and when you want to write a client directly based on the server, you will find that it is more cumbersome.
A simple and easy-to-use client requires some work to implement, temporarily not available, maybe after the upgrade and refactor, will consider this

Thanks @driftluo, I'll explore these possibilities.

Thanks for the reporting. We'll consider how to refactor the code to ease reusing in such scenarios. Please subscribe https://github.com/nervosnetwork/ckb/issues/1912 if you want to know the latest progress.

@doitian This question has nothing to do with ckb

@doitian This issue has nothing to do with ckb, it is a missing implementation of p2p itself

Got it. Could you help to revise the title to make it more clear?

That's what I thought, thanks.
What would be neat for my use case is to have some kind of callback, eg.:
    let callback: Bytes = service_control
        .send_message_to(1.into(), 0.into(), Bytes::from("query"))
        .await?;

    assert_eq!(Bytes::from("query_result: blablabla"), callback);

I wonder how difficult would it be to implement this? Or do you have better idea?

This is a good candidate to be implemented as a middleware. The tentacle has no concept of request and response. It just knows incoming and outgoing messages streams. But the application layer can add logic to associate an incoming message with a pending outgoing message as the response. For example, the middleware stores all the pending outgoing messages as requests as well as the corresponding replying oneshot channel.  Once a message is received, the middleware matches it against the requests. If a matching request is found, the response is sent via the replying oneshot channel and the request is removed from the waiting queue.
The application is responsible to implement the request-response matching method. There are different strategies:

In the protocol design, all the request has a nonce field which must be unique in a long range of time. The response also has the nonce field and it is copied from the request.
The application has some other keys can be used as the identifier, such as the block hash in get_block message.
The application scan all the requests against the received the response.
The application uses a simple first in first out strategy to match requests and responses.

Since it is an extension of tentacle, we have no plan to implement such middleware yet. However, we'll keep this issue open to see who is interested to implement it.


fix: reset sapi response code

It turns out that the zend engine does NOT reset the sapi response code between requests. This PR resets the response code when configuring a new request -- as it appears to affect workers AND non-worker requests.
fixes: #960

Thanks for fixing this issue. Was facing that issues just yesterday.


Yii2 support

Describe you feature request
Is there a plan to support Yii2 framework or is there any example for docker.

It just works, you only need to link web folder to public or change the default Caddyfile.

Would you mind opening a docs PR to explain how to serve Yii?

Yes, sure, I'm currently building a PR for yiisoft/yii2-docker.
The official Yii2 images also inherit from official PHP docker, but I just miss a way to extrapolate from something like
PHP_BASE_IMAGE_VERSION=8.2-zts into the tag for frankenphp docker image. Ideally it should be the exact same PHP version, down to path version, but it can be that they MINOR version might be out of sync and symbols might not be found.
Any suggestion on how to relink the frankenphp binary to the actual php installed? Or the compilation from source is the only way?
Current approach:
COPY --from=dunglas/frankenphp /usr/local/bin/frankenphp /usr/local/bin/frankenphp


[BUG][v3.3.1] New NPC Sheet: Prepared spell filter doesn't work

Applying the prepared spell filter on the new NPC sheet doesn't do anything for me. All the spells remain visible, both unprepared and prepared spells. The rest of the spell filters on the new NPC sheet work just fine. Disabling all modules shows the same behaviour.
dnd5e v3.3.1
foundry v.12.327 - 12.329 (felddy docker container)

This bug is still present in dnd5e 4.0.2

I have found the culprit.
dnd5e.mjs:40409
if ( filters.has("prepared") ) {
          console.log("listing filters", filters)
        if ( alwaysPrepared.includes(item.system.preparation?.mode) ) return true;
>>>>    if ( this.actor.type === "npc" ) return true;
        return item.system.preparation?.
}

Commenting that line out made spell the prepared spell filter on npc sheet work as normal.
Finding that line makes it seem more like a feature than a bug. But either way, I'm glad to have preparation filters back.


Fix generate_term_versions.py script

Replaces code that uses the deprecated .append method.
Update the term_versions.csv file to have corrected version replacements.

@tucotuco Here is the pull request to make the Chrono workflow match eco and DwC

Great, thanks.


google-chrome: add new dep on at_spi2_atk

Fixes #32978
Motivation for this change
Current google-chrome beta and fail to run because of a failure to open libatk-bridge-2.0.so.0.
Things done

Build on NixOS
Tested execution of google-chrome{stable,beta,unstable}
Fits CONTRIBUTING.md

cc @msteen

Seems good to me.
BTW, I was just the one who packaged Google Chrome first. I would not consider myself an actual maintainer of it. I do not test new releases or have any rights to merge, so maybe someone else should become the maintainer?

@msteen as long as you care somewhat about the package & can answer questions about it, I think it makes sense for you to be a maintainer. For something like this we should have an "active" maintainer as well, though ...


which python3

I'm running this command on anaconda on Windows and getting an error, what I suppose to do?
which python3
'which' is not recognized as an internal or external command,
operable program or batch file.

If you are using Anaconda, then you should use its built-in environment manager: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html


instance worker health check

Implement implement periodic health checks from instance to worker to ensure there aren't any orphaned instance processes running

@srkukarni @sijie please review


Fix the append option

Depends on https://github.com/theofidry/AliceDataFixtures/pull/42

Meh, other errors that I can't make sense of :/

@WillGibson could you try out that PR to see if that works for you?

@theofidry I'm trying to test this PR in one of our projects, but I don't seem to be able to update the library...
        "hautelook/alice-bundle": "dev-theofidry:bugfix/fix-loader#latest",
        "nelmio/alice": "^3.0@rc",
        "theofidry/alice-data-fixtures": "^1.0.0@beta",

...leads to...
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package hautelook/alice-bundle dev-theofidry:bugfix/fix-loader#latest exists as hautelook/alice-bundle[0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2, 1.x-dev, dev-master, 2.x-dev, v1.0.0, v1.0.0-beta, v1.0.0-beta.2, v1.0.0-beta.3, v1.0.0-beta.4, v1.0.0-beta.5, v1.1.0, v1.1.1, v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v2.0.0-beta.0, v2.0.0-beta.1, v2.0.0-beta.2, v2.0.0-beta.3, dev-bugfix/fix-loader, dev-refactor/command-tests, dev-theofidry-patch-1] but these are rejected by your constraint.

Are you able to see what I'm doing wrong?

 "hautelook/alice-bundle": "dev-bugfix/fix-loader",

should do it with adding my repo as a VCS

Ah yes, silly me. Schoolboy error! Going to build one of our projects with it in our CI server now.

Oh, well, it made me update Symfony and twig too, which made other reasons for failing builds. I'll have another look in a bit.

you can do a composer update <package-name to avoid that :)

I did, but I ended up with this in order to satisfy all the requirements...
composer update theofidry/alice-data-fixtures hautelook/alice-bundle nelmio/alice symfony/symfony twig/twig


refactor: Use optimized NSID (#1114)

Checklist

[ ] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[ ] I have read the Contributor Guide and followed the process outlined for submitting PRs.
[ ] I have updated/added tests for new/updated/fixed functionality.
[ ] I have updated/added dartdoc comments with ///.

Breaking Change

[ ] Yes, this is a breaking change.
[ ] No, this is not a breaking change.

Related Issues

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

Comparison is base (df1913c) 82.82% compared to head (695db28) 79.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1117      +/-   ##
==========================================
- Coverage   82.82%   79.68%   -3.15%
==========================================
  Files         359       30     -329
  Lines        4263      571    -3692
==========================================
- Hits         3531      455    -3076
+ Misses        732      116     -616

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


Npm/update to 811

Point release updating NPM and dependency versions to address security concerns.

Dependency bumping, removing some alerts for indirect deps and fixing some pipeline issues.


Is it possible to run this using Intel Iris Xe Graphics?

I have an intel iris xe graphics card and I am completely new to github. Can anyone tell me how, if at all possible, to utilize the GPU for image generation? Many thanks.

This is the beauty of using OpenVINO - it comes with all sorts of plugins for CPU and GPU.
There are different options depending on your environment, your operating system, versions.
With a "native" installation of OpenVINO the GPU dependencies could be installed as summarized here: https://docs.openvino.ai/2022.1/openvino_docs_install_guides_configurations_for_intel_gpu.html#linux (e.g. for OpenVINO in version v2022.1).
Check this documentation from @raymondlo84 : https://medium.com/openvino-toolkit/how-to-run-stable-diffusion-on-intel-gpus-with-openvino-840714f122b4

Do you have Stable-Diffusion of this repo working in your environment (without modifying the code)?
Have you simply tried different devices like CPU or GPU via the command-line parameter --device? It might already work out of the box ;-)

Do you have Stable-Diffusion of this repo working in your environment (without modifying the code)?
Have you simply tried different devices like CPU or GPU via the command-line parameter --device? It might already work out of the box ;-)

I will try to put the param. Haven't tested it yet. What do I need to put after the param?

Look at "https://github.com/bes-dev/stable_diffusion.openvino#generate-image-from-text-description".
You could just add/change --device GPU.

This is the beauty of using OpenVINO - it comes with all sorts of plugins for CPU and GPU.
There are different options depending on your environment, your operating system, versions.
With a "native" installation of OpenVINO the GPU dependencies could be installed as summarized here: https://docs.openvino.ai/2022.1/openvino_docs_install_guides_configurations_for_intel_gpu.html#linux (e.g. for OpenVINO in version v2022.1).
Check this documentation from @raymondlo84 : https://medium.com/openvino-toolkit/how-to-run-stable-diffusion-on-intel-gpus-with-openvino-840714f122b4

I am stuck on the step where it tells me to run the sh script. I tried using command prompt and shell but chmod doesn't seem to be a command.

Look at "https://github.com/bes-dev/stable_diffusion.openvino#generate-image-from-text-description".
You could just add/change --device GPU.

It worked well. Thank you very much!

Feel free to document your HW- and SW-environment (like CPU-generation, which Iris Xe GPU, which versions, amount of memory, etc.) - and your results could be added to the "wall of fame" under "https://github.com/bes-dev/stable_diffusion.openvino#performance".
Feel free to close the issue if no more questions.

Feel free to document your HW- and SW-environment (like CPU-generation, which Iris Xe GPU, which versions, amount of memory, etc.) - and your results could be added to the "wall of fame" under "https://github.com/bes-dev/stable_diffusion.openvino#performance".
Feel free to close the issue if no more questions.

CPU: 12th Gen Intel(R) Core(TM) i5-1235U
GPU: Intel(R) Iris(R) Xe Graphics
7gb memory

Feel free to document your HW- and SW-environment (like CPU-generation, which Iris Xe GPU, which versions, amount of memory, etc.) - and your results could be added to the "wall of fame" under "https://github.com/bes-dev/stable_diffusion.openvino#performance".
Feel free to close the issue if no more questions.

CPU: 12th Gen Intel(R) Core(TM) i5-1235U GPU: Intel(R) Iris(R) Xe Graphics 7gb memory
Btw how do I close the issue

Like under "https://github.com/bes-dev/stable_diffusion.openvino#performance" could you add your results/througput ("Time per iter" - "Total time"), please?
(there were lots of dicussiions what could inpact the througput, like which CPU, which GPU, what type of memory DDR4/DDR5, memory-speed; but also which SW-parameters like batch-size, number of concurrent requests, etc.; so, providing as much info as possible would be helpful)
You as the creator of this issue should see a (green?) button to close the issue.
Have a look here: "https://docs.github.com/en/issues/tracking-your-work-with-issues/closing-an-issue"


Update missing API for RuleContext

Codecov Report
Attention: Patch coverage is 0% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 18.81%. Comparing base (dbb45e3) to head (356f2c6).

Files
Patch %
Lines

...rces/OpenGraph/Attribute/Rule/AnyRuleContext.swift
0.00%
12 Missing :warning:

Sources/OpenGraph/Attribute/Rule/RuleContext.swift
0.00%
12 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   19.20%   18.81%   -0.39%
==========================================
  Files          49       49
  Lines        1161     1185      +24
==========================================
  Hits          223      223
- Misses        938      962      +24

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


Shortcuts: external console and find/replace widget

From<EMAIL_ADDRESS>on 2009-10-02T12:05:13Z
many shortcuts are missing / stuff that is intuitive, such as:
most important: in the external console being able to scroll up/down with
PGDN/PGUP
the search: continue search (F3). avoid being focused on the search term.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=59

From pierre.raybaut on 2009-10-03T02:26:16Z
Status: Fixed

From pierre.raybaut on 2009-10-02T13:11:49Z
Summary: Shortcuts: external console and find/replace widget

From pierre.raybaut on 2009-10-02T12:27:30Z
Status: Accepted
Labels: -Type-Defect Type-Enhancement Milestone-Release1.0

From<EMAIL_ADDRESS>on 2009-10-03T06:13:42Z
wow thats great! thanks for the quick turn around.
Great program btw

From pierre.raybaut on 2009-10-03T02:27:04Z
fixed in mercurial repository, will be part of next release (rc2)


49 psth implementation

Fixes #49
PST module, documentation and tests are implemented.

Codecov Report

Merging #57 (06ee97a) into update-0.1.1 (0bbacad) will increase coverage by 0.24%.
The diff coverage is 100.00%.

@@               Coverage Diff                @@
##           update-0.1.1      #57      +/-   ##
================================================
+ Coverage         41.74%   41.98%   +0.24%
================================================
  Files                24       24
  Lines               721      724       +3
  Branches             84       84
================================================
+ Hits                301      304       +3
  Misses              418      418
  Partials              2        2

Flag
Coverage Δ

unittests
41.98% <100.00%> (+0.24%)
:arrow_up:

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

Impacted Files
Coverage Δ

miv/statistics/spiketrain_statistics.py
84.00% <100.00%> (+2.18%)
:arrow_up:

miv/datasets/optogenetic.py
0.00% <0.00%> (ø)

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 0bbacad...06ee97a. Read the comment docs.


Dont spawn node for local operations like npm ls

Things like npm ls and npm -v shouldn't trigger a spawn n dial.
$ npm ls cids
👿 Spawning an in-process IPFS node using repo at /Users/oli/.jsipfs
Swarm listening on /ip4/<IP_ADDRESS>/tcp/54572/ipfs/QmPKLo7oNb6SiXUTd4fKxvnZFQXWxKzBggD9WsoFg9M4Na
🗂  Loading registry index from https://registry.js.ipfs.io
☎  Dialling registry mirror /ip4/<IP_ADDRESS>/tcp/10000/ipfs/Qmf8FJm6bQaLEuMyMU2wVq6BwfiUwtCNd3vz3hLMXHQA9z,/dns4/registry.js.ipfs.io/tcp/10000/ipfs/Qmf8FJm6bQaLEuMyMU2wVq6BwfiUwtCNd3vz3hLMXHQA9z
📱 Connected to registry
👩🚀 Starting local proxy
🚀 Server running on port 54595
🎁 Installing dependencies with /usr/local/bin/npm
<EMAIL_ADDRESS>/Users/oli/Code/ipfs-shipyard/ipld-explorer-components
├──<EMAIL_ADDRESS># trimmed
🎁 /usr/local/bin/npm exited with code 0
🔏 Updating package-lock.json

Fair point, we should probably spin a node up on-demand when the first registry request is received instead of at start-up.

Would it be better to whitelist some commands or to open an IPFS connection when the server gets the first request? Commands like login will make a request to the server hence trigger connecting to the daemon although they don't need it. Or is there any other way to detect real registry connections?

Sure, I meant spin up a node when a request is received that would involve IPFS-related operations like transferring a file or resolving a packument, etc - there are a bunch of endpoints we create that are just forwarded on to npm (e.g. login, detecting vulnerabilities, etc) - they would stay as they are.

@achingbrain do you have a preffered solution here, or should we freestyle it? Can you drop any specific thoughts you have here so @fsdiogo can take a look.

of note this issue is very related https://github.com/ipfs-shipyard/npm-on-ipfs/issues/96


[v3] _static directory is not available when deploying to GitHub Pages

I haven't figured out the root cause of this yet but all the files under _static directory are not found when deploying the pages. https://github.com/slackapi/python-slackclient/tree/v3/docs-v3/_static
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

As long as we use /docs directory, this issue donesn't happen. I'm still unsure about the cause.
When we publish static files in an arbitrary path, we can replace all the path by the following way. Until we find a better way to deal with this, I will continue going with this (not cool) workaround.
mv _static assets
find . -name '*.html' | xargs sed -i '' 's/_static/assets/'g
git add . -v
git commit -m'Replace all under _static directory to use assets instead'

I've dealt with this issue by updating the scripts to rename _static directory to assets.

I found this issue of yours while googling for the same problem with my repo. I thought you might like to know that the "correct" way to fix this problem is to create an empty file called .nojekyll in the docs folder.
https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/


replacing localhost with IP address

this has been a fantastic resource, thanks.
I had some trouble with the part  which says: "I need to replace localhost section with my IP address.
What would have been clearer to me:  "I need to replace localhost section with the public IP address of my paperspace machine"

@d3borah thanks for the suggestion.  I've updated the text so it is clearer.


To All Major Contributors!!! Android Studio vs. Eclipse

@tgwizard has made the suggestion that we switch development of SLS from Eclipse to Android Studio
This will make it easier for @tgwizard and presumably, all of us too.
@Argoday @inverse @luisbandalap @metanota
We may have to drop the "sls_test" portion of the project, unless someone knows how to migrate it.
I already migrated and tested SLS in Android Studio.
I simple yes or no would be great.
I vote yes in hopes that it will make it easier for @tgwizard to contribute.

Works for me.is it worth getting all the current pull requests merged before though?

Yes, I am working on merging three major pull requests.
#149  #149
#101
@inverse Do you like #50 request? I am not sure what to do about it.

I agree on switching to Android Studio, it works well enough.
@HumbleBeeBumbleBee you could take a look at my fork, i already merged that commits without making so much changes.

Well, that's 3 against 2, so I guess we will be migrating. :)
@luisbandalap Are you 100% sure #149 and #110 are good and working?
I have read your comments and you seem certain.

Yes, indeed #110 is a must merge. I use my own fork saily and I don't have any problem with them.
Well maybe some conflicts when and music app (like poweramp) exposes both their API and Android Music Player API to SLS (some tracks are scrobbled earlier, some others doesn't), but i'm not sure it is because of  #149.

@bryansills Thanks for the quick change, but we're going to merge some pull requests first.

#101 shouldn't be merged. That icon is outdated.
Also, mention me again when you are done with the merges. Android Studio is working for me (at least building the app), so I could probably send a pull request then. But I did kinda force the changes through git. Someone could probably make the changes more correctly than me. :0

First, I must apologize to everyone that I haven't been here to maintain SLS properly. I'm truly sorry.
I really appreciate all the work you have put into SLS, with bug fixes, issues, pull requests and more. I know many people are using SLS (more than 500K downloads so far) and that you would like it to continue to become better. For me, I'd really like it if SLS could live on without me taking a too active role in its development.
I've given @HumbleBeeBumbleBee full access to the repository. I'm very much open to adding more of you as contributors. I'm happy to sign and upload new versions of SLS to Google Play, and, if wanted, answer questions and take part in discussions, perhaps even review code.
@HumbleBeeBumbleBee @inverse @metanota @bryansills @luisbandalap and others, great work so far, and a huge thank you for picking up the torch.
Humbly,
Adam

Feel free to migrate on whatever you want. I'm using Intellij Idea and I'll stay with it since it works perfectly with android applications and doesn't affects any of developers nor development processes.
Many thanks to @HumbleBeeBumbleBee who had literally awaken me (and probably not only me) from sleep with the recent activity :)
I would also like to see #149 to be extremely well tested before merging and hope that some of you has already tried to use it in the field.

Thanks everyone! Please download and test the latest pull #149. And post working applications in the dialogue for #149.

There is also https://github.com/tgwizard/sls/blob/master/IssueSummary.md
which I hope some contributors might consider adding support.
I'll be working on Spotify and VLC support for now.

@tgwizard First off, thanks for allowing other people to contribute with this awesome project you've created. I can imagine it must have been time consuming trying to keep on top of this considering how actively used it is. :+1:
@HumbleBeeBumbleBee You've been going super crazy with trying to bring order to the this project with PR's, Issues, and collating data from the app store! well done :dancer:
I'd like to get involved more too although I feel these coming weeks might be a bit busy as I'll be starting a new job on Monday although perhaps in the evenings I'll have some time!

@HumbleBeeBumbleBee what problems are you having importing the sls_test project into Android Studio? When I did an import from an eclipse project it looks like everything went as expected. Aside some files it said were not copied and will need to be manually done.

+1 for Android Studio - they've made a lot of good progress over the eclipse version
Thx to @HumbleBeeBumbleBee for the activity!


Integrate with rcarriga/nvim-dap-ui repl window?

I'm really loving jester, so a huge thanks for all the work you've put into it. :-)
Basically, what I'd like to do is put jester's terminal output into the nvim-dap-ui repl window. All the other debug windows from the dap-ui work perfectly (stacks, breakpoints, scopes) with Jester, but the repl window stays blank. I've tried to figure out how to pipe the terminal output from jester into that window (running lua require"jester".debug({ terminal_cmd =}) with lots of different options, but none seem to work.
Any direction on how this might be possible? I can definitely rearrange the jester terminal window to fit the layout, but that cuts into the flow of coding, so I'd like to find an automated solution. Thanks again!

Hi @zach-wahrer ,
Thanks a lot for this positive feedback, highly appreciated!
That's an interesting idea.
The moment you debug something, I only start nvim-dap and don't have any control what's being done exactly, maybe there are some settings in nvim-dap?
Best regards,
David

And I also just saw this: https://github.com/rcarriga/nvim-dap-ui/issues/88 , so perhaps this is actually something that is going to be added to nvim-dap-ui. :-)

Perfect, thanks for the info! Let's see if they implement that feature.

If I'm not mistaken this is controlled via the console option.  If it's not set to integratedTerminal I think it would default to write the output to the repl
https://github.com/David-Kunz/jester/blob/e57340c0cb80d874a89bcb905bff4c44e49b5400/lua/jester/init.lua#L210

Thanks for jumping in, @mfussenegger !

Thanks, @mfussenegger for pointing this out! Such an easy fix, now. :-) This worked perfectly for me:
vim.api.nvim_set_keymap(
	"n",
	"<leader>dj",
	"<cmd>lua require('jester').debug({dap = { console = ''}})<CR>",
	{ noremap = true }
)


YouTube watched status

Is it an issue that youtube videos are not marked as watched?

@HardStyl3rTV how do you mean?  I'm not familiar with this facet of YouTube.  Can you clarify?

What I do is modify the hosts file, adding a # before "<IP_ADDRESS> s.youtube.com"
Sadly, google uses that domain to update things like history(watched videos) and other things apart from the ads (so, you'll see the video ads, but not the ones in the rest of the page)

Another option is to use the [whitelist](https://github.com/StevenBlack/hosts/blob/master/whitelist) file and build your own hosts file using the updateHostsFile.py script.
It's easy :-)

so how can I fix it?

@HardStyl3rTV see How do I prevent domains from being included? in the readme.

@SteveBlack, yeah, but I don't know which youtube domain I have to exclude. ;)

Try whitelisting
1e100.net

@Atavic still doesn't work.

netstat command via CLI or TCPView by Sysinternals or TcpLogView by Nirsoft may help.
Once you are viewing a video, look at the remote addresses your browser connects to and try whitelisting those addresses.

I wasn't going to reply because I already told you the domain, it's s.youtube.com, in the hosts list there's s.youtube.com and s2.youtube.com, you should only exclude the former

well, for me, removing s2.youtube.com  from hosts list fixed the issue for me. including s.youtube.com has no effect, and removing s2.youtube.com also has no effect for the ads, youtube ads still remain blocked.
Screenshot of what I'm talking about:

"Loading Playlists" forever.
commenting\removing only s2.youtube.com from the hosts\list, fixed it.

please comment the line <IP_ADDRESS> s.youtube.com, as after installing the hosts file, YouTube watched history stopped updating for new watched videos. And commenting it, made watched history work again.
But whenever i update hosts, it get uncommented again. I'm currently using Android work Magisk module Unified hosts Manager, and moreover the whitelist functionality is broken, as i put s.youtube.com in whitelist file on my sdcard but that didn't work and only commenting that address in the hosts file itself worked!
Thanks

@iSumitYadav the domain s2.youtube.com comes to us via someonewhocares.org.  This is an actively curated list, and they are normally very responsive and understanding.
Please make your case by addressing an explanatory email to<EMAIL_ADDRESS>

@StevenBlack Thanks, I'll write a mail to somewhocares.org


Added external medium urls

Added urls:
towardsdatascience.com
betterprogramming.pub
plainenglish.io
Feel free to edit, I don't know what I'm doing.

thanks for the PR, I think the code is ok but before to merge this change I'm thinking about adding a notification in case a new release is available because I will need to release a new .apk every time we add new urls like you did here. It may take some time because I have not touched Android code in the last year
sorry for the delay

I see. I would however apreceare some build instructions for the project so I can compile an apk myself. I tried compiling it with both the grade script and android studio but got neither working. What workflow do you use to build the app?


Generator - MDS

Need a strategy for this

This is going to be a template generator.  I'm going to finish writing the GCE one first.

GCE is done.  Azure is in progress.  Looks like we might do AWS last...

Getting close.  simple works now.  mobile probably does too.  The mds example doesn't yet.

Packaging the rally logic into a function.  Getting closer...

Everything is in functions now.  I think I just need to pass the autoscaling group in python and we're good.

Seems to work!


CC: document what DB privileges a SQL user has

SQL users created in the console are always granted the same permission set on the DB, even if the user is a Developer in CC's permission structure. We should document this so that our users can easily determine if they want to edit those users' permissions afterwards or create them via SQL to limit access to their DBs/schemas.
See Jira issue

Closing in favor of CC-3688


validaton_data syntax error

Hi, I'm running the code below, from the validation data
from segmentation_models import Unet, Linknet, FPN, PSPNet
from segmentation_models.backbones import get_preprocessing
from segmentation_models.losses import bce_jaccard_loss
from segmentation_models.metrics import iou_score
import os
import numpy as np
from skimage.color import gray2rgb
from skimage.io import imread, imsave
from skimage.transform import resize
from keras.preprocessing import image
model = Unet(
'resnet34',
input_shape=(256, 256, 1),
encoder_weights=None,
activation='sigmoid',
classes=1
)
model.compile(
optimizer = 'adam',
loss = 'binary_crossentropy',
metrics = ['accuracy']
)
model.summary()
fit model
model.fit(
x,
y,
batch_size = 10,
epochs = 5
validation_data=(x1, y1)
)
File "", line 35
validation_data=(x1, y1)
^
SyntaxError: invalid syntax

Hi @sfarahaninia73
This is not a problem to create an issue. Syntax error means that you make a syntax mistake in the code.
Try to improve your Python skills.
P.S. You forgot a comma
model.fit(
    x,
    y,
    batch_size = 10,
    epochs = 5,  # <- here
    validation_data=(x1, y1)
)


Should the SHELL variable be set to bash?

@IgorTodorovskiIBM
[@02858@SYSA]$ . /hewitt/zopentools/zopen_repo-current/etc/zopen-config --override-zos-tools && exec bash
Processing zopen community configuration...DONE
Sourcing ~/.bashrc
16:05:55 RC=(0) [SYSA] bash-5.2$ echo $SHELL
/bin/sh
16:06:01 RC=(0) [SYSA] bash-5.2$ echo $BASH_VERSION
5.2.32(1)-release

From my understanding, it is typically set at login - https://unix.stackexchange.com/a/277949
On my mac, it also does not get changed
~/Projects/EBCDICProject $ echo $SHELL
/bin/zsh
~/Projects/EBCDICProject $ bash
%~ $ echo $SHELL
/bin/zsh
%~ $


SDK review meeting titles are unclear in reminder emails

Per the screenshot below, I'm not sure what the "None" refers to in the reminder emails. Could you break down the fields into a "key: value" list?

This has been fixed thanks to issue https://github.com/Azure/azure-sdk-tools/issues/3964


Invalid connection! (PG::Error)

I get the error Invalid connection! (PG::Error) from the Postgres source database with a large table that is about 33GB.  After about 40 minutes, it gives the following error:
$ postgres_to_redshift
INFO:  Relation "submissions" already exists and will be skipped
Downloading submissions
Uploading submissions.1
Uploading submissions.2
Uploading submissions.3
Uploading submissions.4
Uploading submissions.5
Uploading submissions.6
Uploading submissions.7
Uploading submissions.8
Uploading submissions.9
/usr/local/share/ruby/gems/2.2/gems/pg-0.17.1/lib/pg/connection.rb:140:in `cancel': Invalid connection! (PG::Error)
        from /usr/local/share/ruby/gems/2.2/gems/pg-0.17.1/lib/pg/connection.rb:140:in `rescue in copy_data'
        from /usr/local/share/ruby/gems/2.2/gems/pg-0.17.1/lib/pg/connection.rb:137:in `copy_data'
        from ~/.gem/ruby/2.2/gems/postgres_to_redshift-0.1.1/lib/postgres_to_redshift.rb:97:in `copy_table'
        from ~/.gem/ruby/2.2/gems/postgres_to_redshift-0.1.1/lib/postgres_to_redshift.rb:27:in `block in update_tables'
        from ~/.gem/ruby/2.2/gems/postgres_to_redshift-0.1.1/lib/postgres_to_redshift.rb:24:in `each'
        from ~/.gem/ruby/2.2/gems/postgres_to_redshift-0.1.1/lib/postgres_to_redshift.rb:24:in `update_tables'
        from ~/.gem/ruby/2.2/gems/postgres_to_redshift-0.1.1/bin/postgres_to_redshift:5:in `<top (required)>'
        from ~/bin/postgres_to_redshift:23:in `load'
        from ~/bin/postgres_to_redshift:23:in `<main>'

This happens for a 16GB table, as well.
NOTE: That I am using the code from #15 to split files up and the code from #14 to avoid out-of memory.
Is the database connection getting lost?  I've modified the following settings on the Postgres 9.3 RDS instance at AWS:
tcp_keepalives_count      10
tcp_keepalives_idle     1200
tcp_keepalives_interval 1200

Seems like it should allow 20 minutes of idle and check up to 10 times, but error keeps happening.

Hey @ashawley,
It looks like those parameters are ignored on Unix sockets, so I'm not sure if they help: https://www.postgresql.org/docs/9.5/static/runtime-config-connection.html
I was going to add some connection pooling and retry logic. PG connections are cheap to open, so we could just open a fresh one for every query, tbh.

I actually tried reopening fresh connections in 3103286.  Unfortunately the same error kept happening.  Although, the script did seem to get further along...


AC-7 Unsuccessful Logon attempts

Security Story
Story context
Risk flagged from Security Assessment Report: Lock account used to logon to application after x # of failed attempts where x is defined by CDS
Acceptance criteria

[ ] Identify which accounts to be locked
[ ] Define number of failed attempts
[ ] Connect with Notify to discuss how they solve this problem
[ ] Write a development tasking card
[ ] Identify how clients can reactivate their account
[ ] risk register, SA&A, and SRTM are updated to reflect new risks and their treatments. Treatments are implemented or a new card is created.

@Abi-Nada @srtalbot @sarahhobson I know you wanted to have a discussion about this ticket once the implementation is done. Should we wait for the PR (https://github.com/cds-snc/platform-forms-client/pull/915) to be approved and merged first?

@srtalbot The document has been updated https://docs.google.com/document/d/1_TVx2mPb1tmsj0D-0HDSMtavzLX21cltJJzk43_duTA/edit#heading=h.mw7lcweqenu8
I will let you close the ticket if there is no need to add more information.


Latest build of sky130 pdk doesn't include sram macros

Open PDKs commit 78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc doesn't include sky130_sram_macros
> ls volare/sky130/versions/78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc/*/libs.ref
volare/sky130/versions/78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc/sky130A/libs.ref:
sky130_fd_io  sky130_fd_pr  sky130_fd_sc_hd  sky130_fd_sc_hvl  sky130_ml_xx_hd

volare/sky130/versions/78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc/sky130B/libs.ref:
sky130_fd_io  sky130_fd_pr  sky130_fd_sc_hd  sky130_fd_sc_hvl  sky130_ml_xx_hd

the previous commit 3df14f84ab167baf757134739bb1d2c5c044849c includes it
> ls volare/sky130/versions/3df14f84ab167baf757134739bb1d2c5c044849c/*/libs.ref
volare/sky130/versions/3df14f84ab167baf757134739bb1d2c5c044849c/sky130A/libs.ref:
sky130_fd_io  sky130_fd_pr  sky130_fd_sc_hd  sky130_fd_sc_hvl  sky130_ml_xx_hd  sky130_sram_macros

volare/sky130/versions/3df14f84ab167baf757134739bb1d2c5c044849c/sky130B/libs.ref:
sky130_fd_io  sky130_fd_pr  sky130_fd_sc_hd  sky130_fd_sc_hvl  sky130_ml_xx_hd  sky130_sram_macros

@passant5 :  This strikes me as a volare issue;  sky130_sram_macros is a configuration option that is disabled by default (because it takes so long to build and install, although I think that's no longer such an issue).  Is the volare configuration enabling it?

It was a volare issue where it omitted sky130_sram_macros even though the configuration enabled it. Fixed in volare


Invite Citiparks list to Beacon

We're still getting occasional signups on the citiparks site. We should probably kill or update the site directing visitors to Beacon as well as invite the mailchimp list to sign up for Beacon.

Thanks for opening this! i am going to make some copy changes

Are you making copy changes to the cleaning site @shellicious? I'd like to get that PR merged today.

(It's here)


Should JavaScript snippets automatically be made available to other JavaScript based languages (TypeScript, JavaScript React)

VSCode Version: 0.10.11
OS Version: Windows 10

Steps to Reproduce:

Create a new JavaScript snippet, for example:

{
    "console.log": {
        "prefix": "cl",
        "body": [
            "console.log('${1:arg}', ${1:arg});"
        ]
    }
}

If you create a new file with the language set to JavaScript, enter cl and press tab, the snippet will expand.

If you create a new file with the language set to TypeScript, thecl snippet is not available.

The current solution is to re-implement the snippet in all of the JavaScript based languages but that means duplicating the snippet for JavaScript, JavaScript React, TypeScript and TypeScript React. This makes it difficult to build up a large body of JavaScript snippets.
Should JavaScript snippets automatically be made available to other JavaScript based languages?

While it is some work for the user to copy/paste the snippets to the other languages, it gives the user full control over what snippets show up.
One issue I see is that you don't always want JavaScript snippets show up in TypeScript, where you rather want snippets that include types.


ListObjectsCommand not working with mockClient

Checklist

[x] I have read Caveats documentation and didn't find a solution for this problem there.

Bug description

Reproduction

Given the following mock, the response is always undefined
mockS3ListClient(response: any) {
        return mockClient(S3Client)
            .on(ListObjectsCommand)
            .resolves({ Contents: [response] });
    }

Environment

Node version: 16.4.2
Testing lib and version: latest
Typescript version:  4.8.4
AWS SDK v3 Client mock version: 2.0.1 latest
AWS JS SDK libs and versions: v3 (latest)

Can you attach the full code to reproduce your issue please, also with the SDK call that actually gives you the response?

When("I request my document with allowable extension", async function (this: World) {
    const content = {
        Key: `${this.userId}-${Date.now().toString()}.jpeg`,
        LastModified: Date.now().toString(),
        ETag: "etag-value",
        Size: 123456,
        StorageClass: "STANDARD",
        Owner: {
            ID: this.userId,
        },
    };
    this.awsMockClient.mockS3ListClient([content]);

    const stream = new Readable();
    stream.push("hello world");
    stream.push(null);
    this.awsMockClient.mockS3GetClient(stream);

    const currentToken = generateUserToken(this.userId as string, ["profile:all"]);
    const headers = {
        Authorization: `Bearer ${currentToken}`,
    };
    try {
        const baseUrl = `http://localhost:${process.env.APP_PORT}/api/v1`;
        this.lastResponse = await axios.get(`${baseUrl}/proof-of-insurance`, {
            headers,
        });
    } catch (error: any) {
        this.lastResponse = error.response;
    }
});

Hey,
your example is not something I can test - it references other bits of your code.
Mocking ListObjectsCommand works just well if you try it:
import {ListObjectsCommand, S3Client} from '@aws-sdk/client-s3';
import {mockClient} from 'aws-sdk-client-mock';

mockClient(S3Client)
    .on(ListObjectsCommand)
    .resolves({Contents: [{Key: 'foo'}]});

it('issue 143', async () => {
    const s3 = new S3Client({});
    const response = await s3.send(new ListObjectsCommand({Bucket: 'foo'}));
    expect(response.Contents).toHaveLength(1);
});

I'm going to close this issue. Feel free to reopen it with code example that I can run. Please see StackOverflow suggestions for making a minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example


Investigate removing our fork of manifestival

This PR:  manifestival/manifestival#11
Should allow us to stop using our fork of manifestival.  The only reason we have the fork is to let us create objects from our VFS (or some other object), as opposed to from a physical file.  It sounds like that's been addressed.  We should investigate whether we can stop using our fork now.

We've discontinued use of our fork.  We need to leave our fork there for now so we can continue to support older releases of Kabanero.


Javascript Sudoku Generator

A simple javascript program to generate Sudoku puzzles in HTML and Javascript.
also participating in Hacktoberfest2023, so would appreciate being added with the label hacktoberfest-accepted

Thanks for PR. It has been merged.


debug: coredump: expose COREDUMP_STR strings as public

This allows a customized coredump_backend_other API to re-use the COREDUMP_*_STR without re-defining the same strings.

This is not going to work to override these strings everywhere they are used, especially in the arch code. Those code do not include whatever headers you are using to override these so they would be using the default ones.

Thanks for your review. I am working on coredump_backend_other in a different directory out of subsys and would like to use these strings, but those are defined in the internal header file. I can define the same strings, but I'd like to reuse the definitions if possible. Any suggestions?

You can always change those into kconfigs so they will be the same throughout the tree.

This is not going to work to override these strings everywhere they are used, especially in the arch code. Those code do not include whatever headers you are using to override these so they would be using the default ones.

Not sure I understand the concern here @dcpleung . The strings are only used in the coredump backends and currently aren't exposed to out-of-tree "other" backends which may want to use them, especially so they can be parsed by the existing scripts.

How the changes are structured is that it allows them to be overridden. Which means that unless everything including coredump.h also includes the overridden macros, there will be mismatched in the output.

How the changes are structured is that it allows them to be overridden. Which means that unless everything including coredump.h also includes the overridden macros, there will be mismatched in the output.

Right. If someone already defined the same definitions, there will be a duplicated definition error at compile time. IMHO, it would be to use the same strings mostly and that could be resolved simply at rebasing time. Rather than having the same definitions in the multiple locations for each boards or SOCs, a common definition would be more reasonable for the long term.

You can also move the macros into public headers without the #ifndef, and add a note in the migration guide about this so that others can remove their macros. This avoids the issue of things getting out of sync.

You can also move the macros into public headers without the #ifndef, and add a note in the migration guide about this so that others can remove their macros. This avoids the issue of things getting out of sync.

Thanks @dcpleung. I have updated the definitions without #ifndef. Isn't it okay to leave these in include/zephyr/debug/coredump.h without additional public header?

You can also move the macros into public headers without the #ifndef, and add a note in the migration guide about this so that others can remove their macros. This avoids the issue of things getting out of sync.

Thanks @dcpleung. I have updated the definitions without #ifndef. Isn't it okay to leave these in include/zephyr/debug/coredump.h without additional public header?

What do you mean by without additional public header? I think the placement of the latest revision is fine.

You can also move the macros into public headers without the #ifndef, and add a note in the migration guide about this so that others can remove their macros. This avoids the issue of things getting out of sync.

Thanks @dcpleung. I have updated the definitions without #ifndef. Isn't it okay to leave these in include/zephyr/debug/coredump.h without additional public header?

What do you mean by without additional public header? I think the placement of the latest revision is fine.

Thanks @dcpleung. I misunderstood your comment about into public headers.


Editing Message in Outbox opens a new email

Checklist

[x] I have used the search function to see if someone else has already submitted the same bug report.
[x] I will describe the problem with as much detail as possible.

App
K-9 Mail
App version
9.0b2
Where did you get the app from?
Google Play
Android version
12
Device model
Motorola Edge (2022)
Steps to reproduce
Compose a new email
Add too many attachments
Try to edit it from the Outbox
Expected behavior
Original email should open.
Actual behavior
New email message appears.
Logs
Will upload the logs later. Why do the logs contain all of the email addresses that I'm using on K-9 Mail?
Thank you, Shalom.

Well I tried to send an email with too many attachments, but then it got stuck in the Outbox, because the email system won't send it with that much attached. When I opened the Outbox the email is still there, then I can tap on it to open it. Then it has a Pencil icon at the top right, which suggests that I can edit the message and try to send it again. But that doesn't open the email, it opens the compose new email view.
k9mail-logs (1).txt
Thank you, Shalom.