Protect against race conditions

@amshinde actually I have noticed the wip in the title, let me know when it is ready so that I can review !

@sboeuf PR is ready for review

lgtm

Looks like a couple of tests are timing out while killing a container. Will be able to take a look at this tomorrow.
@sboeuf  let me know what you think about the changes.

@sboeuf  I have pushed changes, have a look

Thanks @amshinde

@sboeuf Commit messages have been fixed

LGTM


Suggestions for MKL_README

1st suggestion:
4. Set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MKLML_ROOT/lib.
2nd suggestion:
If MKL2017 full package is already installed and MKL2017_ML will be used for MxNet compilation, do not execute compilervars.sh script before MxNet compilation. Otherwise, MKL2017 may conflict with MKL2017_ML and MxNet may not be compiled.

@glingyan

https://github.com/dmlc/mxnet/pull/4599 :)
thanks

You are welcome :)


Add support for back button accessibility trait.

Navigation controller back buttons contain a secret menu trait which calls them out with a distinct utterance of "back button" rather than simply "button". This change adds support for detecting this trait and provides the matching utterance string.

Logic looks good! Can we add a snapshot test or two (maybe of a nav controller with a second vc pushed, with and without a title on the previous item) to test this?

@NickEntin I added snapshot tests as you suggested. Do you mind a re-review?


install bug within offical python 3.11-slim docker

Describe the bug
root@2ddce338d671:/# python3.11 -m pip install aioTrends
Collecting aioTrends
Using cached aioTrends-0.0.3.tar.gz (327 kB)
ERROR: aioTrends from https://files.pythonhosted.org/packages/68/12/57a9cffe972a4587fe399907eb2f764c218f99b0795f349c14e9627aa42c/aioTrends-0.0.3.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
To Reproduce
Steps to reproduce the behavior:

docker run -d  python:3.11-slim sleep 999999999
docker exec -it 2ddce338d671 bash
pip install --upgrade pip
pip install aioTrends

Expected behavior
install

hi there, the setup file was put in the inappropriate folder, I fixed that. could you please try that again? appreciate your time.

4. pip install aioTrends

the problem still here:
ERROR: aioTrends from https://files.pythonhosted.org/packages/6d/38/d832a971cd304421352aedda5baaf1fffc29e3b9058c401ae90df0c99cf5/aioTrends-0.0.4.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

hi, it works well on my end (see pic).

Could you please try below?
(1) uninstall the package and reinstall it.
or
(2) try setup a new virtual environment and install it
I hope it is helpful to you.


Removal of data from objects not working as expected

See test 1.3.
https://github.com/muchdogesec/arango_cti_processor/tree/adding-tests/tests#test-13-perform-another-update-to-change-capec-attack-pattern---attck-attack-pattern-relationship-capec-attack
In this test we have
[
  {
    "_key": "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a+2024-07-25T05:42:04.725297Z",
    "_id": "mitre_capec_vertex_collection/attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a+2024-07-25T05:42:04.725297Z",
    "_rev": "_iMfnHdO--B",
    "created": "2014-06-23T00:00:00.000Z",
    "created_by_ref": "identity--e50ab59c-5c4f-4d40-bf6a-d58418d89bcd",
    "description": "In this attack pattern, the adversary monitors network traffic between nodes of a public or multicast network in an attempt to capture sensitive information at the protocol level. Network sniffing applications can reveal TCP/IP, DNS, Ethernet, and other low-level network communication information. The adversary takes a passive role in this attack pattern and simply observes and analyzes the traffic. The adversary may precipitate or indirectly influence the content of the observed transaction, but is never the intended recipient of the target information.",
    "external_references": [
      {
        "external_id": "CAPEC-158",
        "source_name": "capec",
        "url": "https://capec.mitre.org/data/definitions/158.html"
      },
      {
        "external_id": "CWE-311",
        "source_name": "cwe",
        "url": "http://cwe.mitre.org/data/definitions/311.html"
      },
      {
        "description": "Network Sniffing",
        "external_id": "T1040",
        "source_name": "ATTACK",
        "url": "https://attack.mitre.org/wiki/Technique/T1040"
      },
      {
        "description": "Multi-Factor Authentication Interception",
        "external_id": "T1111",
        "source_name": "ATTACK",
        "url": "https://attack.mitre.org/wiki/Technique/T1111"
      }
    ],
    "id": "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a",
    "modified": "2024-01-15T00:00:00.000Z",
    "name": "UPDATE OBJECT 3RD TIME",
    "object_marking_refs": [
      "marking-definition--17d82bb2-eeeb-4898-bda5-3ddbcd2b799d"
    ],
    "spec_version": "2.1",
    "type": "attack-pattern",
    "x_capec_abstraction": "Detailed",
    "x_capec_can_follow_refs": [
      "attack-pattern--c9b31907-c466-4325-af55-c418aea8b964"
    ],
    "x_capec_child_of_refs": [
      "attack-pattern--bdcdc784-d891-4ca8-847b-38ddca37a6ec"
    ],
    "x_capec_consequences": {
      "Confidentiality": [
        "Read Data"
      ]
    },
    "x_capec_domains": [
      "Communications",
      "Software"
    ],
    "x_capec_prerequisites": [
      "The target must be communicating on a network protocol visible by a network sniffing application.",
      "The adversary must obtain a logical position on the network from intercepting target network traffic is possible. Depending on the network topology, traffic sniffing may be simple or challenging. If both the target sender and target recipient are members of a single subnet, the adversary must also be on that subnet in order to see their traffic communication."
    ],
    "x_capec_resources_required": [
      "A tool with the capability of presenting network communication traffic (e.g., Wireshark, tcpdump, Cain and Abel, etc.)."
    ],
    "x_capec_skills_required": {
      "Low": "Adversaries can obtain and set up open-source network sniffing tools easily."
    },
    "x_capec_status": "Draft",
    "x_capec_typical_severity": "Medium",
    "x_capec_version": "3.9",
    "_bundle_id": "bundle--641bf5e8-d108-40be-9552-802e033aa4ea",
    "_file_name": "arango-cti-capec-attack-update-3.json",
    "_stix2arango_note": "v3.12",
    "_record_md5_hash": "02696fe777f5474565c54925a0accfd8",
    "_is_latest": true,
    "_record_created": "2024-07-25T05:42:04.725297Z",
    "_record_modified": "2024-07-25T05:42:04.725297Z"
  }
]

In the previous test it was
 {
    "_key": "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a+2024-07-25T05:41:48.366933Z",
    "_id": "mitre_capec_vertex_collection/attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a+2024-07-25T05:41:48.366933Z",
    "_rev": "_iMfnHdO--A",
    "created": "2014-06-23T00:00:00.000Z",
    "created_by_ref": "identity--e50ab59c-5c4f-4d40-bf6a-d58418d89bcd",
    "description": "In this attack pattern, the adversary monitors network traffic between nodes of a public or multicast network in an attempt to capture sensitive information at the protocol level. Network sniffing applications can reveal TCP/IP, DNS, Ethernet, and other low-level network communication information. The adversary takes a passive role in this attack pattern and simply observes and analyzes the traffic. The adversary may precipitate or indirectly influence the content of the observed transaction, but is never the intended recipient of the target information.",
    "external_references": [
      {
        "external_id": "CAPEC-158",
        "source_name": "capec",
        "url": "https://capec.mitre.org/data/definitions/158.html"
      },
      {
        "external_id": "CWE-311",
        "source_name": "cwe",
        "url": "http://cwe.mitre.org/data/definitions/311.html"
      },
      {
        "description": "Network Sniffing",
        "external_id": "T1040",
        "source_name": "ATTACK",
        "url": "https://attack.mitre.org/wiki/Technique/T1040"
      },
      {
        "description": "Multi-Factor Authentication Interception",
        "external_id": "T1111",
        "source_name": "ATTACK",
        "url": "https://attack.mitre.org/wiki/Technique/T1111"
      },
      {
        "description": "Acquire Access",
        "external_id": "T1650",
        "source_name": "ATTACK",
        "url": "https://attack.mitre.org/wiki/Technique/T1650"
      },
      {
        "description": "Hijack Execution Flow: ServicesFile Permissions Weakness",
        "external_id": "T1574.010",
        "source_name": "ATTACK",
        "url": "https://attack.mitre.org/wiki/Technique/T1574/010"
      }
    ],
    "id": "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a",
    "modified": "2024-01-01T00:00:00.000Z",
    "name": "UPDATE OBJECT 2ND TIME",
    "object_marking_refs": [
      "marking-definition--17d82bb2-eeeb-4898-bda5-3ddbcd2b799d"
    ],
    "spec_version": "2.1",
    "type": "attack-pattern",
    "x_capec_abstraction": "Detailed",
    "x_capec_can_follow_refs": [
      "attack-pattern--c9b31907-c466-4325-af55-c418aea8b964"
    ],
    "x_capec_child_of_refs": [
      "attack-pattern--bdcdc784-d891-4ca8-847b-38ddca37a6ec"
    ],
    "x_capec_consequences": {
      "Confidentiality": [
        "Read Data"
      ]
    },
    "x_capec_domains": [
      "Communications",
      "Software"
    ],
    "x_capec_prerequisites": [
      "The target must be communicating on a network protocol visible by a network sniffing application.",
      "The adversary must obtain a logical position on the network from intercepting target network traffic is possible. Depending on the network topology, traffic sniffing may be simple or challenging. If both the target sender and target recipient are members of a single subnet, the adversary must also be on that subnet in order to see their traffic communication."
    ],
    "x_capec_resources_required": [
      "A tool with the capability of presenting network communication traffic (e.g., Wireshark, tcpdump, Cain and Abel, etc.)."
    ],
    "x_capec_skills_required": {
      "Low": "Adversaries can obtain and set up open-source network sniffing tools easily."
    },
    "x_capec_status": "Draft",
    "x_capec_typical_severity": "Medium",
    "x_capec_version": "3.9",
    "_bundle_id": "bundle--7222bcf4-2bd1-454e-bc7e-82583f1f7e64",
    "_file_name": "arango-cti-capec-attack-update-2.json",
    "_stix2arango_note": "v3.11",
    "_record_md5_hash": "3c016e853de5e3c7e63547e61c955206",
    "_is_latest": false,
    "_record_created": "2024-07-25T05:41:48.366933Z",
    "_record_modified": "2024-07-25T05:41:48.366933Z"
  }
]

"external_id": "T1040", -> in both (creates 2 relationships)
"external_id": "T1111", -> in both (creates 2 relationships)
"external_id": "T1650", -> not in latest (creates 1 relationships)
"external_id": "T1574.010",, -> not in latest (creates 1 relationships)

Thus test 2 Should return 15 results. oldest version (1.0) of CAPEC158 had 4 ATT&CK references, old version 1.1 had 5 ATT&CK references, old version 1.2 had 6 (2 of these still remain, each with 4 lines)
    def test_02_updated_capec158_old_relationships(self):
        query = """
        RETURN COUNT(
          FOR doc IN mitre_capec_edge_collection
              FILTER doc.source_ref == "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a"
              AND doc._is_latest == false
              AND doc._arango_cti_processor_note == "capec-attack"
              RETURN doc
        )
        """
        result_count = self.run_query(query)
        self.assertEqual(result_count, [15], f"Expected 13 documents, but found {result_count}.")

Then the new object should have 4 refs
Test 3 Should return 4 results because the new object has both T1040 (1 coa, 1 attack pattern) and T1111 (1 coa, 1 attack pattern)
    def test_03_updated_capec158_new_relationships(self):
        query = """
        RETURN COUNT(
          FOR doc IN mitre_capec_edge_collection
              FILTER doc.source_ref == "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a"
              AND doc._is_latest == true
              AND doc._arango_cti_processor_note == "capec-attack"
              RETURN doc
        )
        """
        result_count = self.run_query(query)
        self.assertEqual(result_count, [4], f"Expected 4 documents, but found {result_count}.")

Update behaviour for SROs created by this script described here: https://github.com/muchdogesec/arango_cti_processor/blob/adding-tests/docs/README.md#updating-sros-on-subsequent-runs
Can be tested using: https://github.com/muchdogesec/arango_cti_processor/blob/main/tests/tests.md#test-14-perform-another-update-to-change-capec-attack-pattern---attck-attack-pattern-relationship-capec-attack

@fqrious on Slack you said
https://github.com/muchdogesec/arango_cti_processor/blob/adding-tests/docs/README.md#updating-sros-on-subsequent-runs

"Similarly, when a record is removed from a source object (e.g ATT&CK reference removed from a CAPEC object), the object removed between updates is marked at _is_latest=false, but no new object recreated for it (because it no longer exist in latest version of source object)"

This affects multiple projects, for example ATS is supposed to only return objects where _is_latest==true on manifest/objects, and if this is implemented, old SROs will just be missing from the manifest (unless version is set to all in query)

This is not quite right...
stix2arango logic is fairly simplistic. If md5 of object changes, add the new one (as _is_latest=true), and make is _is_latest=false for all old versions.
arango_taxii_server is slightly different...
Here it is only concerned with creating relationships (SROs) between objects being changed (by stix2arango imports)
Lets me use an example (test 1.3 https://github.com/muchdogesec/arango_cti_processor/blob/adding-tests/tests/README.md#test-13-perform-another-update-to-change-capec-attack-pattern---attck-attack-pattern-relationship-capec-attack)
1.2
"external_references": [
                {
                    "external_id": "CAPEC-158",
                    "source_name": "capec",
                    "url": "https://capec.mitre.org/data/definitions/158.html"
                },
                {
                    "external_id": "CWE-311",
                    "source_name": "cwe",
                    "url": "http://cwe.mitre.org/data/definitions/311.html"
                },
                {
                    "description": "Network Sniffing",
                    "external_id": "T1040",
                    "source_name": "ATTACK",
                    "url": "https://attack.mitre.org/wiki/Technique/T1040"
                },
                {
                    "description": "Multi-Factor Authentication Interception",
                    "external_id": "T1111",
                    "source_name": "ATTACK",
                    "url": "https://attack.mitre.org/wiki/Technique/T1111"
                },
                {
                    "description": "Acquire Access",
                    "external_id": "T1650",
                    "source_name": "ATTACK",
                    "url": "https://attack.mitre.org/wiki/Technique/T1650"
                },
                {
                    "description": "Hijack Execution Flow: ServicesFile Permissions Weakness",
                    "external_id": "T1574.010",
                    "source_name": "ATTACK",
                    "url": "https://attack.mitre.org/wiki/Technique/T1574/010"
                }
            ],
            "id": "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a",
            "modified": "2024-01-01T00:00:00.000Z",

1.3
          "external_references": [
                {
                    "external_id": "CAPEC-158",
                    "source_name": "capec",
                    "url": "https://capec.mitre.org/data/definitions/158.html"
                },
                {
                    "external_id": "CWE-311",
                    "source_name": "cwe",
                    "url": "http://cwe.mitre.org/data/definitions/311.html"
                },
                {
                    "description": "Network Sniffing",
                    "external_id": "T1040",
                    "source_name": "ATTACK",
                    "url": "https://attack.mitre.org/wiki/Technique/T1040"
                },
                {
                    "description": "Multi-Factor Authentication Interception",
                    "external_id": "T1111",
                    "source_name": "ATTACK",
                    "url": "https://attack.mitre.org/wiki/Technique/T1111"
                }
            ],
            "id": "attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a",
            "modified": "2024-01-15T00:00:00.000Z",
            "name": "UPDATE OBJECT 3RD TIME",

2 of the ATT&CK references inside the CAPEC object (attack-pattern--897a5506-45bb-4f6f-96e7-55f4c0b9021a) are removed between 1.2 and 1.3 with 2 remaining T1040 and T1111 (total 4 ATT&CK links). T1650 and T1574.010 are removed (total 2 ATT&CK links). This is now the same as the original stix-capec-v3.9.json object
stix2arango handles the logic of updating and ageing out these objects based on the md5 hashes changing for the id. This is the logic ATS uses and it works fine.
Now, in 1.2 arango_cti_processor created 6 SROs to link the capec objects to attack. In 1.2, you will also see arango_cti_processor created doc._is_latest == false for all relationship objects from previous tests
This logic works fine when objects are added.
e.g. in 1.0 4 objects created, in 1.1 5 objects created (4 marked as old from 1.0), in 1.2 6 objects created (5 marked as old from 1.1)
However, when objects are removed from the
To solve this, the behaviour of ACTIP could be to check for changes to an id of object (which would cause a s2a change) and then check if the relevant data for the mode (e.g. capec-attack a change in ATT&CK refs) has change, if change like this detected, mark all links ACTIP created relationships from this source objects (and correct mode) as is_latest=false and then recreate the new relationship objects


createAnswer: dont create more mediaSections than in the offer

do not attempt to create more mediaSections than contained in the
offer.
Fixes https://github.com/webrtc/adapter/issues/638

Codecov Report

Merging #10 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage   91.71%   91.74%   +0.03%
==========================================
  Files           1        1
  Lines         760      763       +3
==========================================
+ Hits          697      700       +3
  Misses         63       63

Impacted Files
Coverage Δ

rtcpeerconnection.js
91.74% <100%> (+0.03%)
:arrow_up:

Continue to review full report at Codecov.

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


[ACR] Add logtemplate and systemtask changes for ACR Tasks

Add log template changes to task, run, build

Add systemtask changes to task

Description

Testing Guide

History Notes

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

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

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

[ ] I adhere to the Command Guidelines.

cc: @northtyphoon

ACR

@yugangw-msft Can you please review this PR and approve it? It has log template changes for Tasks

@fengzhou-msft can you please merge this request?

/azp run

/azp run Azure.azure-cli

/azp run


[Desktop] Project button needs to dropdown menu on hover NOT on click

If you want to view the contents of the dropdown you need to click the projects button but when you do you're redirected to the projects page and can only see the dropdown menu for a split second and are unable to click any of the links.


Stop publishing unnecessary files in devtools packages

Description
Related to #15532 . We can make devtools lead the way in cleaning up its published packages (including a basically empty one for the browser extension, which in theory should not even be packaged/published, but having it be empty just in case seems good) and using an allow-list instead of a block-list.
Reviewer Guidance
Diffs of the changes in files that go into the published packages look correct (the browser extension ends up with nothing but LICENSE, README.md, and package.json, which npm will always include when packing):

@Josmithr you're ok with files approach here? I was planning to update the PR to do the same thing but keep using .npmignore, per the conversation in my other PR.

@Josmithr you're ok with files approach here? I was planning to update the PR to do the same thing but keep using .npmignore, per the conversation in my other PR.

Oh, sorry, I assumed these were fresh PRs after that discussion. I still have reservations, but I'm not strictly opposed to it. It is probably still worth a larger conversation though.


[!!FULL-wATCH™-]—Chief Baltasar Engonga Viral Video Trending Leaked Original videos on social x twitter TFLiteConverter

Issue type
10 sec ago Balthazar Baltasar Ebang Engonga ʟᴇᴀᴋᴇᴅ ᴠɪᴅᴇᴏ Viral On Social Media.
Balthazar Baltasar Ebang Engonga latest video has taken the internet by storm, sparking lively discussions across various social media platforms. The rising digital influencer, known for her captivating content—particularly her recent Spiderman-themed video—has experienced a tremendous surge in popularity, with fans eagerly awaiting the full version. Audiences are flocking to Instagram, X (formerly Twitter), and Discord to join the conversation and engage with her latest creation.
As the excitement continues to build, fans are actively sharing their thoughts online, underscoring the pivotal role social media plays in propelling creators like Balthazar Baltasar Ebang Engonga into the limelight. With her distinctive style and creative approach, Nila has made a significant impact on the digital scene, leaving her audience eager to see what she will do next.


220109 digit list comparator

Overview

These are comparators for digit and digit-list that pass some basic test cases.

I'd appreciate any feedback about code style (variable names, conventions, ...) and whether my approaches align with the general philosophy of the codebase.

Todo

Better tests + stress tests
Add comments

Thanks @MajorLift ! This implementation was really clever, and a great addition to the library. I'll publish this tonight as a minor version :)


[Build] upgrade numpy dependencies

Problem (Why?)
update numpy version to ^1.22.0 to resolve the github security issue.
Solution (What/How?)

[x] update numpy version to ^1.22.0
[x] remove python 3.7 CI

Other changes (bug fixes, small refactors)
nope
Notes
pytorch_optimizer to v1.1.3

Codecov Report

Merging #67 (e5224db) into main (a50e173) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #67   +/-   ##
=======================================
  Coverage   95.90%   95.90%
=======================================
  Files          28       28
  Lines        2051     2051
=======================================
  Hits         1967     1967
  Misses         84       84

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Date on submission has a 12-hour format

I.e: when the submission's hour should be 14:22, instead 02:22 is shown.

(Both submissions in the same day, on the 16th the hour displayed is 11:00 meanwhile on the next one it is 02:22 (14:22)).

Done.The 12-hours format has being kept, but an AM/PM indicator was added.


Analytics for /email-sign-up

Is your feature request related to a problem? Please describe.
It would be useful to know how people behave on the /email-sign-up page, since this is the first page they see after creating an account.
Describe the solution you'd like
We could record if a visitor clicks the "Yes please" or "No thanks" buttons. i.e. they've actively made a choice. If we compare this with the total page views, we can get an idea how many people make that choice vs simply navigating away.
Describe alternatives you've considered
Carrying on without it.
Additional context
For the statistics to be meaningful, we would need to add context to the page view. Specifically that the visitor was signed in and had not already clicked one of the buttons. If we know this then we can be (reasonably) confident the visitor has just arrived from the api.
If that's not good enough, we can do cleverer things, but I think that's probably enough to start with.

The initial discussion that inspired this can be found here: https://github.com/freeCodeCamp/freeCodeCamp/pull/50555#discussion_r1211628003

Related Analytics


DIY ideas extension

Is your feature request related to a problem? Please describe.
DIY ideas extension
Describe the solution you'd like.
I will make an extension in which the user will get various DIY ideas.
Describe alternatives you've considered.
.
Add any other context or screenshots about the feature request here.
I am contributor at GSSoC '22. Please assign this issue to me.
@praniti111 @ridsuteri @Akshima-Ghai

issue assigned @Sukriti-m


Decode extrinsics

Hi, how we can decode extrinsic for get all values? Like
{
  "sender": "some",
  "dest": "some",
  "amount": "some"
}

The extrinsics formati is like that:
        UncheckedExtrinsicV4<Call:  Decode + Encode> {
            signature: Some((signed, signature, extra)),
            function: Call,
        }

In the context of balances transfer, call is a tuple like this:
type BalanceTransferFn = (CallIndex, Address, Compact<Balance>);

Currently, you'd need to implement it manually to retrieve sender, des, amount.
sender: xt.signature.unwrap().0,
dest: xt.call.1
amount: xt.call.2

Note: signed is a typo in the should and should be signer.
However, I suggest you simply listen for the balances.transfer event and extract the values from there? Or what is your use-case?

The extrinsic format is like that:
        UncheckedExtrinsicV4<Call:  Decode + Encode> {
            signature: Some((signed, signature, extra)),
            function: Call,
        }

In the context of balances transfer, the call is a tuple like this:
type BalanceTransferFn = (CallIndex, Address, Compact<Balance>);

Currently, you'd need to implement it manually to retrieve sender, des, amount.
sender: xt.signature.unwrap().0,
dest: xt.call.1
amount: xt.call.2

Note: signed is a typo in the code and should be signer.
However, I suggest you simply listen for the balances.transfer event and extract the values from there? Or what is your use-case?

We need save all extrinsics in our database, because if we use events, we cant get all transactions, because if our app shutdown, we cant parse latest blocks

We need get transactions from blocks, transactions or inBlock, or finallized

We need get what this extrinsic return

This is actually not that straightforward. Do decode that successfully, you would first need to peek into the values of the CallIndex = [u8;2]. If you have access to the aggregated call enum from the runtime, this is much easier. Then you should be able to do decode the entire vector of extrinsics in the block like:
let xt: Vec<UncheckedExtrinsicV4<RuntimeCallEnum>> = Decode::decode(&mut extrinsics_vec_encoded.as_slice())


fixed: hardcoded signature algo

This patch removes the hardcoded value of the signature verification ago.
This fixes an error that starts to appear in go1.10

This patch is incomplete, the signature algorithm of the certificate is not always the same one that is used for the actual signature. We'll need to merge the hash algorithm with the encryption algorithm.
For example, I can sign a with an RSA key, my cert's signature is in SHA256, but the signer info may have a SHA1 digest. Always using the cert's algorithm will cause some usages to fail. I'm pretty sure this is why the tests are failing,

ok then I'm not sure how to do it :/

That's fine, I'm working on a fix now using some of the code from crypto/x509 to figure out which x509.SignatureAlgorithm to use for the given pkix.AlgorithmIdentifier.


Saved config in CP not saving

Description
Have a strange issue in Mailchimp:
We’ve been using the Mailchimp addon successfully over the last few years on a client’s site where they have lots of forms synced to different audiences/tags in Mailchimp.
They’ve tried adding connecting a new form through the CP. When they save the page, it seems all is ok and we receive the confirmation message, but when we refresh nothing is saved.
Other notes:

I can’t reproduce this locally, but something definitely isn’t right on the live site.
I’ve tried copying the local config file to the server, and that didn’t help.
Tried clearing caches etc, too...
Nothing apparently related in the logs

Steps to reproduce

Save new form/Mailchimp config in CP
Refresh the page

Environment
Environment
Application Name:
Laravel Version: 10.43.0
PHP Version: 8.2.21
Composer Version: 2.7.7
Environment: production
Debug Mode: OFF
Maintenance Mode: OFF
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Statamic
Addons: 6
Antlers: runtime
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.48.0 PRO
Statamic Addons
aryehraber/statamic-captcha: 1.10.0
edalzell/forma: 2.1
jaygeorge/statamic-vanilla-peak-seo: dev-main
spatie/statamic-responsive-images: 4.1.1
statamic-rad-pack/mailchimp: 4.1.1
withcandour/aardvark-seo: 3.0.0

Sorry for the delay - we're going to change the approach to not save form settings to the config in the next version (https://github.com/statamic-rad-pack/mailchimp/pull/124) which should hopefully get around this issue.
I suspect you're just putting a lot of data in the config and its struggling.

Delay? This is nothing 😄
If that would cause this, I can believe it – we have loads of forms...
Just so I can set expectations: do we have a rough ETA on that? And I guess that will be a v5 release (no problem if so)?

Yeah it will require v5.18+, hopefully thats not too much of a problem?
ETA - I'd expect it to be in the next 2 weeks.

All good, thank you!

@websmyth can you update and give it a try? It should migrate your config over to YAML files then everything should work. It was done in this PR: https://github.com/statamic-rad-pack/mailchimp/pull/124

Thanks – given this a go and had to upgrade the site from S4 > S5. I think the addon is generating this error (think because if I remove the addon and composer update the issue goes away).
When I run composer update or just about any other command (php artisan... or php please...) I get this:
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   TypeError

  array_key_exists(): Argument #2 ($array) must be of type array, null given

  at vendor/laravel/framework/src/Illuminate/Collections/Arr.php:178
    174▕         if (is_float($key)) {
    175▕             $key = (string) $key;
    176▕         }
    177▕
  ➜ 178▕         return array_key_exists($key, $array);
    179▕     }
    180▕
    181▕     /**
    182▕      * Return the first element in an array passing a given truth test.

      +12 vendor frames

  13  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1```

Ah, laravel.log reveals more:
[2024-08-23 08:27:52] local.ERROR: array_key_exists(): Argument #2 ($array) must be of type array, null given {"exception":"[object] (TypeError(code: 0): array_key_exists(): Argument #2 ($array) must be of type array, null given at [redacted]/vendor/laravel/framework/src/Illuminate/Collections/Arr.php:178)
[stacktrace]
#0 [redacted]/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(178): array_key_exists('id', NULL)
#1 [redacted]/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(298): Illuminate\\Support\\Arr::exists(NULL, 'id')
#2 [redacted]/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(152): Illuminate\\Support\\Arr::forget(NULL, Array)
#3 [redacted]/vendor/statamic/cms/src/Support/Arr.php(323): Illuminate\\Support\\Arr::except(NULL, Array)
#4 [redacted]/vendor/statamic-rad-pack/mailchimp/src/ServiceProvider.php(364): Statamic\\Support\\Arr::__callStatic('except', Array)
#5 [redacted]/vendor/statamic-rad-pack/mailchimp/src/ServiceProvider.php(84): StatamicRadPack\\Mailchimp\\ServiceProvider->migrateUserToYaml()
#6 [redacted]/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1162): StatamicRadPack\\Mailchimp\\ServiceProvider->StatamicRadPack\\Mailchimp\\{closure}(Object(Illuminate\\Foundation\\Application))
#7 [redacted]/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1105): Illuminate\\Foundation\\Application->fireAppCallbacks(Array)
#8 [redacted]/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#9 /[redacted]vendor/laravel/framework/src/Illuminate/Foundation/Application.php(316): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#10 [redacted]/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(473): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#11 [redacted]/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(195): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#12 [redacted]/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#13 {main}
"}

Would you mind applying this fix and see if it works for you? https://github.com/statamic-rad-pack/mailchimp/pull/125

Yep, you genius. Issue resolved...

Going to close this as its fixed by the new release.


MBSLAVE_CONFIG and command line argument "-c" don’t behave the same

Using -c path/to/mbslave.conf and having MBSLAVE_CONFIG set to path/to/mbslave.conf (same path) don’t seem to  behave identically (as I would have expected):
> echo 'UPDATE replication_control SET current_schema_sequence = 25;' | mbslave psql
psql: FATAL:  no pg_hba.conf entry for host "[local]", user "freso", database "musicbrainz", SSL off
> echo 'UPDATE replication_control SET current_schema_sequence = 25;' | mbslave -c $XDG_CONFIG_HOME/mbdata/mbslave.conf psql
UPDATE 1
> echo $MBSLAVE_CONFIG
/home/freso/.config/mbdata/mbslave.conf
> pacman -Qi python-mbdata-git|grep Version
Version                : 25.0.4.r0.g42461d8-1

Are you sure the environment variable is exported? It works for me.


Help

I'm trying to play metal gear solid and for some reason the game doesn't have deadzone for controllers so my character keeps moving up by it self, I tried the app but there's no effect.
I'm using a ds3 with scptoolkit to emulate a xbox 360 controller.
Help please.

Well, I don't know if Durazno works with that game. Check if the game is 32 or 64bit and put all the dlls in the location with the exe, then run the game and see if a Durazno.ini file is created. If the game loads XInput directly from system directory, Durazno won't work. Also, might just be using XInput to check if the pad is active then use HID to read the actual pad report, Durazno won't work with that either.
Other than that, XInput plus might be a better alternative.

Tried alot of things but didn't work so I had to disable my controller and
use antimicro to map the keyboard buttons, works fine.
Thanks anyways.
On Thu, Oct 29, 2020, 9:33 PM KrossX<EMAIL_ADDRESS>wrote:

Well, I don't know if Durazno works with that game. Check if the game is
32 or 64bit and put all the dlls in the location with the exe, then run the
game and see if a Durazno.ini file is created. If the game loads XInput
directly from system directory, Durazno won't work. Also, might just be
using XInput to check if the pad is active then use HID to read the actual
pad report, Durazno won't work with that either.
Other than that, XInput plus might be a better alternative.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/KrossX/Durazno/issues/50#issuecomment-718942621, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARR5PSD4HSJ7UEVNQEKTD6LSNGYPLANCNFSM4TDYZ4IA
.


how does the app deal with iOS 9's -application:handleURL:options: callback?

Greetings,
I added -application:handleURL:options: to my appDelegate and then sign-in broke. I realized I hadn't hooked up GIDSignIn's -handleURL:sourceApplication:annotation:. However, when I did that it still was broken.
I've taken it out for the time being, but it'd be nice to know how to work around this.

Where did you call handleURL on GIDSignIn? In the appdelegate application:handleURL:options: or handleURL:sourceApplication:annotation?

Did a quick bit of checking - as long as you unpack the options, you should be fine:
@available(iOS 9.0, *)
func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {
return GIDSignIn.sharedInstance().handleURL(url,
sourceApplication: options[UIApplicationOpenURLOptionsSourceApplicationKey] as! String?,
annotation: options[UIApplicationOpenURLOptionsAnnotationKey])
}
I'll add this to the sample! Thanks!


Usage with localStorage.clear

Hi,
I'm curretly working on a projet and I use your clear-cache.
Some users had issues with their cache, using chromium on a surface, so I added a functionality for them, a button that would clear the localStorage cache and update their cachestorage afterwards.
I used it like so
/buttonComponent.jsx
resetApp = emptyCacheStorage => event => {
  event.preventDefault();
  localStorage.clear();
  emptyCacheStorage();
}

[...]

render() {
  return (
    <ClearCache>
      {
         ({emptyCacheStorage) =>
           <Button onClick={this.resetApp(emptyCacheStorage)}>Foo</Button>
      }
    </ClearCache>
  }
}

But when I use it, the first time, il completely clears the storage, so versions are different.
If I click again, the version matches the latest version.
And it keeps toggling each time I call my function.
Thanks

this is fixed with the latest version @lapwil .


There is no way to set timeouts on Connection Attempts

At chaotic times when RMQ is not available, rabbitpy hangs attempting to connect to a machine that is  not there. In order to me to keep using this and write failed connection logic, we'd have to have a configuration timeout on attempting to opening a connection.

This is addressed in 0.27


Connect to server button

It would be neat if we could change the Connect to Server button after connecting. Currently it's:

Change to something like:

@sckott do you think this, or something like it (a text box that only is displayed upon connection) would be a low lift?  If a very low lift solution could be done, I'd like to prioritize it b/c I think this will be very helpful for newbies having a positive experience.

no longer needed since we now replace the enter url button with a exit button (that's red, for now at least)


Conform source to PEP8

Hi, thanks for putting together this nice library!
Would you be open to a pull request making the source conform better to PEP8?
Examples:

All import statements at the top, no empty lines between import statements.
Consistent line spacing between class/function definitions.
Remove semicolons at the end of lines.
Remove unnecessary parenthesis.
Removing spaces before/after brackets and making spacings consistent.
Removing unused imports.

Thanks again,

Hi, thanks for your interest. Semicolons can go as well as unused inputs. But I'd like to keep the rest if possible, as it doesn't really do any harm and visually I find it sometimes makes sense to adapt the spacing to the expression, depending on the nesting level etc. ... I'll run a quick review and clean up the source files a bit.

Hi @phfaist , thanks for reviewing my issues! Yes, absolutely, please format as you like (it is your package, after all). I just wanted to know how much of for formatting style was intentional and how much was just coincidence. I totally agree that adapting spacing etc can be useful, in fact I used to do that as well.  (Sorry for spreading that by the way!)
--Cheers!

Sure, thanks for your feedback! Semicolons are now gone :)


Validation for MPC

It seems MPC validation is a bit outdated. For example, if inputs are incomplete an error might not be raised anymore, raising casadi errors instead. The user should not be confronted with casadi as much as possible

An example:
If you pass a CasadiInput to the list of states, you get
  File "D:\05_Programme\anaconda\envs\BESRules\lib\site-packages\agentlib\core\model.py", line 186, in __getattr__
    raise AttributeError(
AttributeError: 'MPC' object has no attribute 'differentials'

Even though the property exists. Calling the property would raise "CasadiInput has no attribute ODE", not sure why this is not the message one gets.


feat: Add Template_Version to templates and instances

Closes: https://github.com/IBM/compliance-trestle/issues/761
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] All commits are signed-off.

Summary
Key links:

Sonar coverage

@jayhawk87 Looking at the PR in the current state i'm slightly confused. Let me know when you are happy and good to go.

I think this PR can be now closed as changes were included to the PR https://github.com/IBM/compliance-trestle/pull/837

Closing this out based on what @enikonovad did leveraging this PR.


CoAP support

It might be interesting adding CoAP support, have a look at my node-coap.

See this mailing list topic re a contributed CoAP node.
ref #529.


Unrecognized function or variable 'kernCreate'

Hello, I am a graduate student.
I download this Repo code and then I want to run this code like README.md.
But I have some problems....

My used MATLAB is R2021 version.
How can I solve this problem?

You need to make sure that you’ve got the toolbox installed and in the path.

Have you solved the problem? I also encountered the same error, and did not find out how to install the toolbox. In addition, there is a function called dist2 that cannot be found in the toolbox. How can I solve this problem? Thanks!


Unable to import module 'cidr_findr': No module named 'cidr_findr'

Followed all instructions and cannot get this code to cooperate. Everytime that I create a new stack, it sits there then eventually fails. After reviewing the CloudWatch logs I find:
Unable to import module 'cidr_findr': No module named 'cidr_findr'
Help!

@jknyght9 on the off hand chance you are still stuck...
I had a similar problem and not being very familiar with Python i don't have a great explanation, but I think the issue has to do with however you zip'd the package for your CF template. It looks like you need to keep the housing cidr_finder folder in order for the init.py to auto-run and wire things up correctly.


When pytorch version release☺

The idea is pretty cool~
And when the pytorch version will release?~

@AceCoooool
Thanks for your interest in our work!
The pytorch code is under testing, we will release it at the latest before the meeting(Oct.20).

@AceCoooool
PyTorch implementation of SPN is available now.


Air battle prediction works incorrectly

@Javran According to the result from the game, there should be 2 abyssal ship sunk in the battle combat.
http://pastebin.com/3nX6MRz3 (E7 - node K)

yea, air battle node only calculate the first wave

Is this for surface task force? I thought air battle only happens for carrier task force.

We also can use STF for air battle as well. Here I am using Surface task force.

Ah I see, an easy fix, will do it immediately after I complete my daily exercise :)
btw for exercise, the ship sunk during night battle is not marked, is there a related issue?

There is a different marker for "sunk" ships in exercise since it may not be nice to show sunk icon for other players' ship girls. In case there is no icon shown, it can be that that ship still had 1hp left (not really knock out). Our system can detect the difference between really having 1hp left and being knock out.

Does this look like what was happened?
> DA.analyzeRawSurfaceTaskForceBattleJS( svdata.api_data )
{ main:
   [ null,
     { currentHp: 45 },
     { currentHp: 73 },
     { currentHp: 48 },
     { currentHp: 84 },
     { currentHp: 79 },
     { currentHp: 49 } ],
  escort:
   [ null,
     { currentHp: 45 },
     { currentHp: 28 },
     { currentHp: 32 },
     { currentHp: 84 },
     { currentHp: 55 },
     { currentHp: 44 } ],
  enemy:
   [ null,
     { currentHp: 160 },
     { currentHp: 74 },
     { currentHp: 12 },
     { currentHp: -13 },
     { currentHp: -30 },
     { currentHp: 28 } ] }

@Javran Yeah, that's correct. Only number 4 and 5 of the enemy were sunk while other were just scratched and the flagship was untouched :+1:

hmm, but the ship sunk during day battles are still using the same sunk marker as abyssal ships. maybe I should open a different issue for this.


limitation: conditional formatting can only use measures defined in underlying model not ones created in report

limitation: conditional formatting can only use measures defined in underlying model not ones locally created in report (dataset connection).

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

ID: 28a270e6-b0c1-bb57-831c-ce75a4d42085
Version Independent ID: f831c935-823e-be44-02b8-c4145fe89d28
Content: Expression-based titles in Power BI Desktop - Power BI
Content Source: powerbi-docs/create-reports/desktop-conditional-format-visual-titles.md
Service: powerbi
Sub-service: pbi-reports-dashboards
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Thanks for the feedback, @fpk3! I'm assigning this to the writer to verify and make an update to the article.

Thanks for your information @fpk3. I've updated the article to reflect this.


[Proposal] 0.11.x Add additional checking 'stack' property in WLError

Waterline version: 0.11.x
Node version: 6.3.1
NPM version: 3.10.3
Operating system: Mac OS X 10.11.6

I've faced with application crash:

.../node_modules/sails/node_modules/waterline/lib/waterline/error/WLError.js:33
this.rawStack = (this._e.stack.replace(/^Error(\r|\n)(\r|\n)/, ''));
^
TypeError: Cannot read property 'replace' of undefined

After investigation I've found that in my case it is happen when use with Cassandra DB cluster and if DB service is down cassandra driver generate combined Error object which doesn't have 'stack' property ( but in other hand has 'innerErrors' property with dictionary of timeout errors to Cassandra cluster internal instances which has 'stack' property).
So we can check stack property to avoid application crashing:

this.rawStack = (this._e && this._e.stask && this._e.stack.replace(/^Error(\r|\n)(\r|\n)/, '') || '');

pull request https://github.com/balderdashy/waterline/pull/1452


Update postgis/postgis docker image in deegree cookbook

The used postgis/postgis docker image was changed to tag '14-3.4'.

This image is using PostgreSQL 14 with PostGIS 3.4.

thanx @julianzz98, sorry missed the pr


Save Image name of Chinese Character not correct and markdown image link point to wrong name

Env: Chrome extension, MarkDownload 3.0.0
Enable Download images alongside markdown files
Image Style: Pure Markdown

If web page has a image its name in Chinese Character, after download, then:

There's 2 bug:

1. Download Image name should in native Chinese, but its name be something like: "velo%E6%8F%90%E7%8E%B0.jpg"

2. markdown image link would be something like"![TNEXT | 美区Paypal账户提现至Velo账户](_resources/velo%25E6%258F%2590%25E7%258E%25B0.jpg)", '%' expand to '%25', so markdown view cannot display image.

Point 2 is not bug, '%' expand to '%25' is URL rule, thou Typora cannot work with this, at least I find atom markdown could display such image name.


HIP 68: Open Service Subdao

HIP 68: Open Service Subdao

Author(s): @sndnsos @haihongS
Start Date: 2022/07/23
Category: Economic, Technical
Original HIP PR: https://github.com/helium/HIP/pull/454
Tracking Issue: https://github.com/helium/HIP/issues/457
Status: In Discussion

Summary
HIP 51: Helium DAO proposed that each communications network built on top of the Helium Network has its own subDAO with its own token and governance. Till now, LoRaWAN subDAO, 5G subDAO, and WiFi subDAO are proposed. They are about communication networks. But another very significant subDAO that should be a next step,  is to help build the service market on Helium Network.
For the services on CDN and VPN for example, there would be lots of projects that want to use Helium's Network to help run various services. We think for many Heliums nodes, their bandwidth resources, storage spaces, device performance, and all other idle resources, should be more fully taken used now and in the future.
So here we suggest Helium start an open service list for the projects who have the requirement to use Helium Network. The services which could join the open list need to follow some standards made by the community; And for the nodes of the helium network, they could choose to run any services in the list as their wish, getting extra motivation rewards in return.
We suggest starting the Open-Service subDAO under Helium Network which plays some open and special roles, building a services-supporting market in Helium Network.
Rendered View
https://github.com/helium/HIP/blob/main/0068-open-service-subdao.md

Hi @sndnsos @haihongS - can you provide an update about your HIP here? Thank you!

I found someone posting a link to this
https://nijatoes.com/posts/can-open-service-subdaos-bring-back-heliums-glory-days/
discussion on the Meson Discord

Great find! This is a great amendment to their HIP.
Interested in this part:

It has the potential to reduce the number of offline hotspots in the Helium network.
At the moment, 35% of the Helium network’s total hotspots are offline, and this figure is increasing by the day. Low hotspot earnings are one of the main reasons for such a high offline hotspot rate. Some hotspots’ earnings no longer motivate people to operate them. One of the most significant benefits of Meson Network is that it will strengthen the revenue model for Helium hotspot owners. People who run Meson CDN on their hotspots will be able to earn extra HNT. Furthermore, Meson CDN will increase overall data credit utilization in the helium network. This will help in keeping more hotspots online. On the other hand, Meson CDN nodes consume very few resources on the host machine, which means they can run on any hotspot.

I still have questions about how it's even possible to run other services on the device. If a raspberry pi can support it, then I suppose the hotspot can, but am I taking processing power away from PoC? Interested to see them test this on some of the most popular hotspots (like a Bobcat 300) and see if the PoC performance is maintained.

Regarding the "is it taking away power from PoC": The full hotspots used to act as blockchain nodes - with the transition to light hotspots, the devices neither make full use of their computational power anymore. Nor is the full storage capacity still needed that used to store the blockchain. So there are unused resources on the full hotspots that could be utilized otherwise. No idea what/how much can be done with that though (I am not a dev).

The authors have instructed us to close at this time. They may review this HIP in the future.


Missing pages redirect to home on international versions of the website instead of redirecting to the English version

What happened:
If I find a link to https://falco.org/ja/docs/reference/rules/supported-fields/ in the Japanese section of the website I get a 404
What you expected to happen:
I should see the English version of the page since that has not been translated into Japanese
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:

/assign

/assign vjjmiras


GitHub cannot infer project license

Based on feedback from @st-pasha:
It seems like the GitHub has problem to figure out right license of the project. There is no license in project header:

You can compare it with https://github.com/h2oai/h2o-3 project header:

@mmalohlava any idea why GitHub is not recognizing it? I compared H2O-3's license file with H2O4GPU's file and it looked almost the same (sans copyright year). Might it be our LICENSES folder?


jsoniter.Number is not a type

I tried replacing json with jsoniter in the "elastic" lib by replacing
"encoding/json"
with
json "github.com/json-iterator/go"
it seems json.Number is not supported by jsoniter

should be fixed


[SUC-123] PR 3

Body 3

Current dependencies on/for this PR:

main

PR #1

PR #2

PR #3   👈

This comment was auto-generated by Graphite.


Minimum kernel version?

This project requires for/while loop support with BPF. Older kernels will not support this

What is the minimum kernel version that supports this?

It looks like BPF while/for loops support is added in kernel 5.3 according to the following article:
https://lwn.net/Articles/794934/
Therefore, the minimum version would be 5.3 for this program.
Thanks!

Hmm.. My SBC has
# uname -r
5.4.43-sunxi64

but I still get that error. Perhaps it's because XDP-Firewall doesn't support ARM64?

Interesting. I haven't tested ARM64 with this program yet, but I will look into testing this later today.
Can you provide the full error you're getting?

Sure, here's my process (all run as root):
uname -r

5.4.43-sunxi64

cat /etc/issue

Armbian 20.05.2 Buster

apt -t buster-backports install -yq llvm clang libelf-dev libconfig-dev git build-essential
git clone --recursive https://github.com/gamemann/XDP-Firewall.git
cd XDP-Firewall
make && make install
service xdpfw start

service xdpfw status

● xdpfw.service - XDP Firewall tool.
Loaded: loaded (/etc/systemd/system/xdpfw.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-07-24 18:45:18 BST; 20ms ago
Process: 794 ExecStart=/usr/bin/xdpfw (code=exited, status=1/FAILURE)
Main PID: 794 (code=exited, status=1/FAILURE)
Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Failed with result 'exit-code'.
Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Service RestartSec=100ms expired, scheduling restart.
Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Scheduled restart job, restart counter is at 5.
Jul 24 18:45:18 DietPi systemd[1]: Stopped XDP Firewall tool..
Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Start request repeated too quickly.
Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Failed with result 'exit-code'.
Jul 24 18:45:18 DietPi systemd[1]: Failed to start XDP Firewall tool..

Relevant entries in journalctl -xe
Jul 24 18:44:03 DietPi systemd[1]: Detected architecture arm64.
Jul 24 18:44:03 DietPi systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
Jul 24 18:44:03 DietPi systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)

...

Jul 24 18:45:17 DietPi systemd[1]: Started XDP Firewall tool..
-- Subject: A start job for unit xdpfw.service has finished successfully
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit xdpfw.service has finished successfully.
--
-- The job identifier is 152.
Jul 24 18:45:17 DietPi xdpfw[782]: libbpf: Error in bpf_object__probe_name():Function not implemented(38). Couldn't load basic 'r0 = 0' BPF
program.
Jul 24 18:45:17 DietPi xdpfw[782]: libbpf: Error in bpf_object__probe_global_data():Function not implemented(38). Couldn't create simple arr
ay map.
Jul 24 18:45:17 DietPi xdpfw[782]: libbpf: map 'filters_map': failed to create: Function not implemented(-38)
Jul 24 18:45:17 DietPi xdpfw[782]: libbpf: failed to load object '/etc/xdpfw/xdpfw_kern.o'
Jul 24 18:45:17 DietPi xdpfw[782]: Error loading XDP program. File => /etc/xdpfw/xdpfw_kern.o. Error => Function not implemented. Error Num
=> -38
Jul 24 18:45:17 DietPi xdpfw[782]: Error loading eBPF object file. File name => /etc/xdpfw/xdpfw_kern.o.
Jul 24 18:45:17 DietPi systemd[1]: xdpfw.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit xdpfw.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jul 24 18:45:17 DietPi systemd[1]: xdpfw.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit xdpfw.service has entered the 'failed' state with result 'exit-code'.

...

Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Start request repeated too quickly.
Jul 24 18:45:18 DietPi systemd[1]: xdpfw.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit xdpfw.service has entered the 'failed' state with result 'exit-code'.
Jul 24 18:45:18 DietPi systemd[1]: Failed to start XDP Firewall tool..
-- Subject: A start job for unit xdpfw.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit xdpfw.service has finished with a failure.
--
-- The job identifier is 417 and the job result is failed.

https://unix.stackexchange.com/questions/467362/how-to-fix-file-service-configures-an-ip-firewall-ipaddressdeny-any-but suggests I need a custom kernel config.  Here's my current settings:
# grep BPF /boot/config-5.4.43-sunxi64
CONFIG_BPF=y
# CONFIG_BPF_SYSCALL is not set
CONFIG_IPV6_SEG6_BPF=y
CONFIG_NETFILTER_XT_MATCH_BPF=m
CONFIG_BPFILTER=y
CONFIG_BPFILTER_UMH=m
CONFIG_NET_CLS_BPF=m
CONFIG_NET_ACT_BPF=m
CONFIG_BPF_JIT=y
CONFIG_LWTUNNEL_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_TEST_BPF=m

I'll try some testing with
CONFIG_BPF_SYSCALL=y
CONFIG_CGROUP_BPF=y
CONFIG_BPF_EVENTS=y

Looks like Armbian fixed in June: https://armbian.atlassian.net/browse/AR-309
But they only release quarterly at the end of February, May, August, November so I either need to compile myself or wait until September 1.

Woot!  After installing Armbian from trunk (which is a wicked cool experience thanks to their awesome compile script - props!), I was able to get XDP-Firewall running:
# uname -r

5.7.8-sunxi64

# cat /etc/issue

Armbian 20.08.0-trunk Buster

# grep BPF /boot/config-5.7.8-sunxi64
CONFIG_CGROUP_BPF=y
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_JIT_DEFAULT_ON=y
CONFIG_IPV6_SEG6_BPF=y
CONFIG_NETFILTER_XT_MATCH_BPF=m
# CONFIG_BPFILTER is not set
# CONFIG_NET_CLS_BPF is not set
CONFIG_BPF_JIT=y
# CONFIG_BPF_STREAM_PARSER is not set
# CONFIG_LWTUNNEL_BPF is not set
CONFIG_HAVE_EBPF_JIT=y
CONFIG_TEST_BPF=m

# service xdpfw status
● xdpfw.service - XDP Firewall tool.
   Loaded: loaded (/etc/systemd/system/xdpfw.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-07-24 17:53:24 MST; 3s ago
 Main PID: 3110 (xdpfw)
    Tasks: 1 (limit: 1018)
   Memory: 472.0K
   CGroup: /system.slice/xdpfw.service
           └─3110 /usr/bin/xdpfw

Jul 24 17:53:24 orangepioneplus systemd[1]: Started XDP Firewall tool..

I'm glad you got it working and thank you for all the information as well! I still plan to setup something similar just so I can gain experience, etc.


Chapter recurrent modern/index

I have translated the index.md on the latest index_origin.md

Job d2l-zh/PR-854/1 is complete.
Check the results at http://preview.d2l.ai/d2l-zh/PR-854/

Job d2l-zh/PR-854/2 is complete.
Check the results at http://preview.d2l.ai/d2l-zh/PR-854/


ocamlPackages.ocamlbuild: 0.12.0 -> 0.13.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ocamlbuild/versions.
meta.description for ocamlPackages.ocamlbuild is: '"A build system with builtin rules to easily build most OCaml projects"'.
Release on GitHub
Compare changes on GitHub

Checks done (click to expand)

built on NixOS
/nix/store/nv9s304zbynpcaa82mjczskhrzksxm1l-ocamlbuild-0.13.0/bin/ocamlbuild.byte passed the binary check.
/nix/store/nv9s304zbynpcaa82mjczskhrzksxm1l-ocamlbuild-0.13.0/bin/ocamlbuild passed the binary check.
/nix/store/nv9s304zbynpcaa82mjczskhrzksxm1l-ocamlbuild-0.13.0/bin/ocamlbuild.native passed the binary check.
3 of 3 passed binary check by having a zero exit code.
3 of 3 passed binary check by having the new version present in output.
found 0.13.0 with grep in /nix/store/nv9s304zbynpcaa82mjczskhrzksxm1l-ocamlbuild-0.13.0
directory tree listing: https://gist.github.com/182d760f228c5393edb0908296253663
du listing: https://gist.github.com/d234b2321ab826d86f09b68eec0a2551

Instructions to test this update (click to expand)

One-time optional setup to skip building using Cachix:

Install cachix from https://cachix.org/
Use r-ryantm's cache:cachix use r-ryantm

Test this update by entering a nix shell, seeing what is inside the
result, and if applicable, running some binaries:
nix-shell --pure -I nixpkgs=https://github.com/r-ryantm/nixpkgs/archive/d8178831b02e4157f24f578b4ea041d08cedead9.tar.gz -p ocamlPackages.ocamlbuild
ls -la /nix/store/nv9s304zbynpcaa82mjczskhrzksxm1l-ocamlbuild-0.13.0

cc @vbgl for testing.

Should we revert this then?

Seems a good idea. I don’t know whether this PR had any motivation in the first place.

I think being up to date is generally good enough a motivation. But if it breaks something important, I'll revert for now.


livekit_client: ^2.3.1  CocoaPods could not find compatible versions for pod "WebRTC-SDK"

  In Podfile:
    flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`) was resolved to 0.12.2, which depends on
      WebRTC-SDK (= 125.6422.06)

    livekit_client (from `.symlinks/plugins/livekit_client/ios`) was resolved to 2.3.1, which depends on
      WebRTC-SDK (= 125.6422.05)```

Done the below

```cmd
rm -rf Pods Podfile.lock build .symlinks
flutter clean
flutter pub get
pod deintegrate
pod update
pod install
flutter build ios

up

Add this in pubspec.yaml may help:
flutter_webrtc: 0.12.2

Looks like livekit didn't handle the versioning of deps correctly and flutter_webrtc released a new version and make the CocoaPods find a conflict on dependency version.

Hi @LittleSheep2Code ,
This but is not fixed. I am already using latest version of everything, also added flutter_webrtc:  to my pubspec.yaml file but still I am getting this error:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "WebRTC-SDK":
  In snapshot (Podfile.lock):
    WebRTC-SDK (= 125.6422.05)

  In Podfile:
    flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`) was resolved to 0.12.2, which depends on
      WebRTC-SDK (= 125.6422.06)

You have either:
 * changed the constraints of dependency `WebRTC-SDK` inside your development pod `flutter_webrtc`.
   You should run `pod update WebRTC-SDK` to apply changes you've made.

Try to cd to your ios directory and remove Podfile.lock then run pod install again. It should be work.

Getting this
pod install
Analyzing dependencies
Downloading dependencies
Installing DTTJailbreakDetection (0.4.0)
Installing Flutter (1.0.0)
Installing Toast (4.1.1)
Installing WebRTC-SDK (125.6422.06)
Installing connectivity_plus (0.0.1)
Installing device_info_plus (0.0.1)
Installing flutter_webrtc (0.12.2)
Installing fluttertoast (0.0.2)
Installing livekit_client (2.3.2)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.3.0)
Installing safe_device (1.0.0)
Installing wakelock_plus (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 11 dependencies from the Podfile and 14 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

[!] The `Runner [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `Runner [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `Runner [Profile]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

Getting this
pod install
Analyzing dependencies
Downloading dependencies
Installing DTTJailbreakDetection (0.4.0)
Installing Flutter (1.0.0)
Installing Toast (4.1.1)
Installing WebRTC-SDK (125.6422.06)
Installing connectivity_plus (0.0.1)
Installing device_info_plus (0.0.1)
Installing flutter_webrtc (0.12.2)
Installing fluttertoast (0.0.2)
Installing livekit_client (2.3.2)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.3.0)
Installing safe_device (1.0.0)
Installing wakelock_plus (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 11 dependencies from the Podfile and 14 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

[!] The `Runner [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `Runner [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `Runner [Profile]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

I didn't meet this error before, but I think this stackoverflow post may help: https://stackoverflow.com/questions/26287103/cocoapods-warning-cocoapods-did-not-set-the-base-configuration-of-your-project


Include Issue assignment process in README

GitMate.io thinks a possibly related issue is https://github.com/NITSkmOS/Algorithms/issues/209 (Remove Codacy Badge and Include Travis Badge in README).

What exactly needs to be done ? I am new to open source community . Can you help me out ?

Currently, in the README, it shows how to fork, create a branch and do the changes and then create Pull Request. It doesn't mention that the issue should be assigned first before opening a PR which is given in here. So we need a paragraph in the README strictly mentioning that it should be assigned, following all the contributing guidelines. Also, modify the 4th point in the contributing and mention the good commit briefly that is given in here.


Case sensitivity issue with OLS4 search API

With the new OLS the search term seems to now be case sensitive.
This result
https://www.ebi.ac.uk/ols4/api/search?q=Liver&rows=10000&fieldList=short_form
returns 995 results, whereas,
https://www.ebi.ac.uk/ols4/api/search?q=liver&rows=10000&fieldList=short_form
returns 10184 results,
the old OLS did not have this difference in results.

Would making the search term lower case return all the expected results, or could this fail to match for results with a capitalised search term?


invoke: Fix (and enforce) getContractData invocation

What
Now that the Go RPC Server supports getContractData ( https://github.com/stellar/go/pull/4652 ), we can enforce it when running invoke.
This means that --wasm won't be allowed when running soroban invoke --rpc-url foo
Also, it fixes the expected contract code type.
Why
Allowing soroban invoke --rpc-url foo --wasm bar was just a workaround
Known limitations
N/A

Let's get this merged and unblock get Contract Data. I will happily reintroduce the wasm flag if need be.

Let's get this merged and unblock get Contract Data so that it can be included in testing ASAP.

I don't this change is necessary. The code prior to this change already supports getting the wasm from contract data when the --wasm flag isn't passed. All this change did was remove the ability to provide the wasm if the developer wanted. I'll revert it.


Negotation of rsmp version - but not sxl version?

When connecting, the rsmp version is negotiated between the site and the supervisor. The site first sends a list of versions that it supports. The supervisor then returns a list of the version it supports. The version is implicitely agreed to be the latest version that boths sides support.
For the sxl version, no such negotation happens. The site simply states the single sxl version is supports, and the supervisor is expected to accept this, or refuse the connection.
What's the reason for this difference in how rsmp and sxl versions are handled?

It's because RSMP is influenced by the way industrial control systems (ICS) and SCADA system works. The SXL defines the object model, i.e. which physical components that are installed in the site. The SXL is also part of the documentation of the site. Any changes to the SXL needs to be reflected in both the site and supervision system. If one forgets to update the SXL at either side (e.g. version number mismatch), the assumption (from the protocol side of view) is that a mistake has been made and the negotiation will fail.
Although I can't think of any specific scenario involving traffic signals, there is a potential danger involved when changing (adding/removing) physical components in a site and forgetting to update the supervision system. A command may affect the wrong component or a status may show the status of another component of the site, and so on...

We also have problems with mismatching configurations with the current spec. E.g. a site is changed and components are added, but the supervisor is configuration is not updated. The SXL for traffic lights is common to all TLCs and is not changed just because a component is added to a site.
A more rebust way would be for the site to send the list of components when connecting - related to #62.


Fix failing build

Description
Closes https://github.com/quickwit-inc/quickwit/issues/761
Reason of the failure: https://github.com/alexcrichton/cmake-rs/issues/131
Added convenience make commands in the meantime.

make build-x86_64-unknown-linux-gnu
make build-aarch64-unknown-linux-gnu
make build-x86_64-unknown-linux-musl

How was this PR tested?
Run the build on CI

@fmassot when running a build with --features release-feature-set, you will need a CMake  >= 3.12.1 .

One last thing, for make fmt, we display a nice error message if the nightly toolchain is not installed. Can we do the same for cross?


Incorrect paths when using nested Danger

Report
I'm converting my comment from here: https://github.com/danger/danger/issues/1177
into an issue, as 1177 was closed and no one seem to care.
Assume
.
├── .git
├── nested
│     ├── nested-again
│       ├── Dangerfile

When executing danger from nested-again directory the paths returned by git.renamed_files, git.modified_files and git.added_files are incorrect. They will all start with /nested/nested-again/someFilename instead of just ./someFilename as this is the current working directory.
This leads to issues in all plugins as most of them is doing File.expand_path on the returned paths and the final path is:
/Users/<username>/<path_to_repo>/nested/nestedAgain/nested/nestedAgain/someFilename leading to:
(No such file or directory) errors.
I don't know where is the root cause but it seems like the change to make danger run in a subdirectory is not completed.
Would you please take a look at this?
Example of an issue in swiftlint plugin:
https://github.com/ashfurrow/danger-ruby-swiftlint/issues/175
I've checked this on Danger 9.2.0.

Would you please take a look at this?

Danger Ruby is a very mature, done OSS project, I'm afraid folks aren't going to be fixing bugs or adding features for other people, you're welcome to look at this if it is important to you though

#1426

655b8463e960d576e3846607440d362c2bf403eb

655b8463e960d576e3846607440d362c2bf403eb

Honestly I don't think this is a bug.
git.renamed_files, git.modified_files and git.added_files are internally calls git diff.
I think it is natural that they return files related to top-level of the Git work tree instead of the current directory.

That's the point.
The https://github.com/danger/danger/issues/1177 PR was supposed to make it possible to run Danger from a subdirectory.
As I explained in my first post, it seems like it missed the fact that git diff always returns paths relative to the git directory instead of the current directory, hence the common part of the path is added twice.
Seems like the paths should be relativized before expansion.


SerialTimeout with I2C and Sunfounder LCD 2004a

I'm attempting to use a raspberry pi to send information to an LCD screen connected to an arduino. Using Arduino IDE I can make text appear and use regular LiquidCrystal library functions, but when attempting to use Nanpy I get serial timeouts. Below is information regarding these errors. I can successfully run the i2c_scanner and blink examples from nanpy, but I cannot run firmware_check or lcd_hello examples. It might be from my pin setup, which I'm not sure what is or how to check (bought off Amazon, not ebay). Address checks out to be 0x27.

[ X] Try examples/blink.py
[ X] Try to test the function without Nanpy, using only Arduino code.
[ X] Check cfg.h. All needed functions are enabled?
[ Failed to check] Run examples/firmware_check.py to check cfg.h again. All needed functions are listed?

Using examples/lcd_hello.py with cols,rows = 20, 4
Output of lcd_hello.py:
Traceback (most recent call last):
  File "./lcd_hello.py", line 27, in <module>
    hello()
  File "./lcd_hello.py", line 17, in hello
    lcd = Lcd_I2C(pins, [cols, rows], connection=connection)
  File "build/bdist.linux-armv7l/egg/nanpy/lcd_i2c.py", line 14, in __init__
  File "build/bdist.linux-armv7l/egg/nanpy/arduinoboard.py", line 150, in call
  File "build/bdist.linux-armv7l/egg/nanpy/arduinoboard.py", line 47, in _call
  File "build/bdist.linux-armv7l/egg/nanpy/arduinoboard.py", line 16, in return_value
  File "build/bdist.linux-armv7l/egg/nanpy/serialmanager.py", line 101, in readline
nanpy.serialmanager.SerialManagerError: Serial timeout!

Output of firmware_check:
from: can't read /var/mail/nanpy.arduinotree
from: can't read /var/mail/nanpy.serialmanager
./firmware_check.py: line 5: syntax error near unexpected token `('
./firmware_check.py: line 5: `def fw_check():'

cfg.h has:
#define USE_Wire                                           1
#define USE_LiquidCrystal_I2C                       1

Arduino board: Mega 2560
Additional hardware:  Sunfounder L2C 2004a LCD screen

I found IDLE IDE was stopping firmware_check from working, which now works under a different IDE; however, it seems that LiquidCrystal_I2C will not initialize in cfg.h. I've attempted changing cfg_check and cfg_defaults to include the libraries as well but have had no luck with that. Anyone have experience with their cfg not updating and having suggestions? Could it be a path problem in one of the files?
Also ran dump.py which returns no digitalPinToPort, which is likely caused by a lack of LiquidCrystal_I2C.

Unfortunately it can be hard to pin point but I feel I experienced an issue like this when I was trying to get DHT library working. Although I was using the esp8266 and there was a check that was overriding the DHT in my case I believe.
However I have had a board or two in the past I uploaded the sketch too and the firmware_check didn't show me all the libraries I tried to enable. I can't say the exact solution but with changing values between the config files and uploading a few times eventually it seems to have had the libraries enabled.


make the decorators work with both @classmethod and @staticmethod

This should fix issue #21

@peroxid Don't you have to use inspect.isfunction(func) instead of inspect.ismethod(func)?

@peroxid Why not use something like
if args[0].__name__ == 'Request':
            request = args[0]
        else:
            request = args[1]

as proposed by @jjlorenzo in https://github.com/dbkaplan/dry-rest-permissions/issues/21


Can D455 camera detect object moving velocity?

librealsense
2.49.0 RELEASE

OS
Windows

Name
Intel RealSense D455

Firmware Version
<IP_ADDRESS>

Advanced Mode
YES

Camera Locked
YES

Usb Type Descriptor
3.2

Product Line
D400

Can D455 camera detect object moving velocity?
If it can, what should I do?

If the camera is in motion (for example, because it is mounted to a vehicle, robot or drone) then you could retrieve the acceleration ('accel') values of the camera from its internal IMU hardware component.
If you wish to calculate the velocity of an object that is being observed by the camera then you could likely work out the velocity of the object by continuously reading the real-world XYZ coordinates of the object and calculating the rate of change in the XYZ values to get its speed in a velocity measurement such as metres per second.

I would like to use Python.
Can you offer some sourse code.

I do not have a complete Python example for such a product but I worked out some coding steps for how such a mechanism might be set up.  I will assume that you already know how to retrieve an XYZ coordinate from the point cloud. If you do not, please let me know and I will assist you with that.

Add the instruction import time to the top of your Python script so that a timing function is supported.

Underneath a wait_for_frames instruction in your script, define an xyz_start variable and make it equal to the XYZ coordinate that you want to measure.  For example:

xyz_start = XYZ coordinate
(The above is not real Python code, I am just describing the general structure).

Use a sleep instruction to wait for 1 second (the below is real Python code).

time.sleep(1)

Define an xyz_end variable and make it equal to the XYZ coordinate that you want to measure.  For example:

xyz_end = XYZ coordinate
xyz_start and xyz_end will be storing the value of the XYZ coordinate directly before and after a period of 1 seconds has passed.

Subtract xyz_start from xyz_end to find the difference in the XYZ coordinate value after 1 second has passed and store the result in a variable called xyz_rate

xyz_rate = xyz_end - xyz_start

Print the current value of xyz_rate.  If real-world XYZ coordinates have their distance values in meters, then the difference between the start and end values (the xyz_rate) after 1 second should provide a meters per second value representing how the coordinate has changed over time.  The line below is real Python code.

print(xyz_rate)

Case closed due to no further comments received.


How to enable the cors handling using apollo server 4

Hi,
Facing an issue in cors, we are not able to allow the Access-Control-Allow-Origin. Please let us know how to add the headers or how to handle the Cors issue. Below added my code snippet.
const { ApolloServer } = require('@apollo/server');
const { startServerAndCreateHandler } = require('@as-integrations/azure-functions');
const server = new ApolloServer({
  typeDefs,
  resolvers,
  csrfPrevention: false,
});
exports.graphqlHandler = startServerAndCreateHandler(server);

Thanks in advance :)

This solution worked for me : https://github.com/apollo-server-integrations/apollo-server-integration-azure-functions/issues/45


Remove defined policy from DyanmoDB and S3 endpoints as matched default

DynamoDB and S3 endpoint creation had a static policy defined that matched the default. This meant that subsequent plans would want to set the policy explicitly, giving the below output:
    ~ module.vpc_endpoint.aws_vpc_endpoint.dynamo_endpoint
    policy:
        "{
          \"Statement\":[
            {\
              "Action\":\"dynamodb:*\",\
              "Effect\":\"Allow\",\
              "Principal\":\"*\",\
              "Resource\":\"*\"
            }
          ],\
          "Version\":\"2008-10-17\"
        }"
        =>
        "{\"
          Statement\":
            [
              {\"Action\":\"dynamodb:*\",\
              "Effect\":\"Allow\",\
              "Principal\":\"*\",\
              "Resource\":\"*\"
            }
          ]
        }"

    ~ module.vpc_endpoint.aws_vpc_endpoint.s3_endpoint
    policy:
        "{\
          "Statement\":[
            {\
              "Action\":\"s3:*\",\
              "Effect\":\"Allow\",\
              "Principal\":\"*\",\
              "Resource\":\"*\"
            }
          ],\
          "Version\":\"2008-10-17\"
        }"
        =>
        "{\
          "Statement\":
            [
              {\
                "Action\":\"s3:*\",\
                "Effect\":\"Allow\",\
                "Principal\":\"*\",\
                "Resource\":\"*\"
              }
            ]
          }"

This was unnecessary. Resolution was to remove the explicit policy and let the default do its work.

Tested on a personal practice build and a fresh plan against this branch does not cause it to want to modify the S3 and DynamoDB endpoint policies.


Website

This project needs a website so I made one with my l33t skillz.
This should go in a GitHub Pages branch.

no <marquee>? I am disappointed 😞

@onatm There is now!
@jongalloway I also added your awesome logo, OSS FTW!

LGTM :shipit:  🚀 🥇

:shipit:

This pull request should really be top priority. Not just on this repo, but for all of mankind.


500 - server error at https://rakudo.org/latest/star/source

went to Linux link under https://github.com/rakudo/star#get-rakudo-star
browser: Firefox 75.0 (64-bit)

/latest/star/source is defined in the apache.conf as a redirect

This link is bad, but not sure where it's used to update it.

This link is no longer listed at the source site in the original post. Closing ticket.


Follow preferences for timezone if not overridden on dashboard

Rather than checking this.dashboard.timezone, make use of the isTimezoneUtc() function so that preferences are checked too
Should resolve https://github.com/NatelEnergy/grafana-discrete-panel/issues/94
Browser time:

Picking up preference default of UTC:

Do you have a guide on how to incorporate this snippet?


[BUG] arm64 cross compile with Build Dependencies fails

Describe the bug
Build fails at libopenssl when trying to cross compile for arm64.
/bin/sh: 1: aarch64-linux-musl-/usr/xcc/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc: not found
To Reproduce
Steps to reproduce the behavior:

clone https://github.com/dockcross/dockcross.git
install linux-arm64-musl cross compile docker
build amazon-kinesis-video-streams-producer-sdk-cpp as suggested in the CI but with Build Dependencies
See error at libopenssl build step: /bin/sh: 1: aarch64-linux-musl-/usr/xcc/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc: not found

Expected behavior

libopenssl fails to build.

SDK version number

v3.3.0

Open source building
CMake Flags for building as used in CI for [arm64/aarch64]:

"-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_PREFIX_PATH}"
"-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}"
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
"-DBUILD_STATIC=ON"
"-DBUILD_OPENSSL_PLATFORM=linux-aarch64"
"-DBUILD_LOG4CPLUS_HOST=arm-linux"

Platform:

OS: Linux
Processor: arm64

Additional Info

Also tried compiling without musl same error
building other third party libs works
log4cplus build was succesfull
C / CXX Compiler GNU 11.2.0

Screenshots

Hi @BestITUserEUW, the errors in the screenshot and your description are different. The error in the screenshot says that the toolchain was not found. I would suggest you to first install the toolchain in the correct location and build openssl independently to figure out where does the issue lie. Also, I would recommend you to use the toolchains used the CI for this repository. It can be found here

Closing due to inactivity.


english language detection (possible fix inside)

I installed Hexo with NodeJS on a clean debian server.
After selecting the theme "next" and also selecting the language "en" (in the main _config.yml), most of the letters on the website were still chinese. It seems Hexo doesn't autodetect that "en" translates (in this case) to default.yml.
This behaviour can be fixed however by symlinking (or copying) default.yml to en.yml in the languages folder.

set blog/_config.yml -> language: default

That works, yes.
But shouldn't "language: en" also work?

You should ask theme's author, Hexo no language.

As I know, Hexo will use default language when the language you set does not exist. But Hexo has an issue on handling this fallback. So NexT contains an en.yml which is the same as default. To avoid incorrect default language detection by Hexo, you should specify the language to an extractly one, such as en, zh-Hans.


Background image become [object object]

Background image become [object object] after bundling

Operating System:Linux
Node Version:8.10.0
NPM Version:5.8.0
webpack Version:4.6.0
file-loader Version:1.1.11

webpack.config.js
module: {
        rules: [{
                test: /\.css$/,
                use: [{ loader: "style-loader" }, { loader: "css-loader" }]
            },
            {
                test: /\.(png|woff|woff2|eot|ttf|svg|gif)$/,
                use: [
                {
                    loader: "url-loader",
                    options: {
                        limit: 10000
                    }
                },
                {
                    loader:'file-loader'
                }]
            },
            {
                test: /\.html$/,
                use: [{
                        loader: "ngtemplate-loader?relativeTo=/UI/&module=app"
                    },
                    {
                        loader: "html-loader?attrs=img:data-src"
                    }
                ]
            },
            {
                test: require.resolve("./UI/bower_components/angular/angular.min.js"),
                use: [{
                    loader: "exports-loader?window.angular"
                }]
            }
        ]
    },

@developerjaison please create minimum reproducible test repo, look you have old version file-loader, double check this

This seems to occur if you dynamically import a file (instead of statically referencing the file in the head of the document). It only happens with webpack 4 and file-loader 1.1.11, webpack 3 works fine. I'll provide a reproducible repro soon.

@fmavdb wait reproducible test repo :+1:

Here is the repro project:
If you run the example, the console outputs: { default: file.txt }, which is the serialized version of [Object object] mentioned above.

Looks like the bug, try to fix asap, thanks!

@fmavdb second output is right is it behavour for modules, just try to create
test.mjs
import("./package.json").then((pj) => {
    console.log(pj.default);
});

node --experimental-modules test.mjs

@evilebottnawi Yes, correct, if you use the object provided by the promise and access the default property, you'd get the expected outcome. However, in webpack 3 you'll get the expected output without accessing the default property.
You can downgrade the webpack version in the project I provided and you'll notice the behavior I mentioned.

@fmavdb this behavior will be change in webpack@4, better create issue in webpack repo than here, we can't do here anything with this

Would my issue be related in any way? I'm not certain which project is "at fault" here.
I'm using webpack "4.25.1" html-loader "0.5.5" and file-loader "2.0.0".
Having <link type="text/css" rel="stylesheet" href="main.scss"/> inside html results in <link type="text/css" rel="stylesheet" href="[object Object]"/> where I would expect <link type="text/css" rel="stylesheet" href="main.7aa3033457bfa5d0257a.css"/> for example.
Here are the (relevant) webpack configs:
webpack.common.js
const path = require('path')
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const CopyWebpackPlugin = require('copy-webpack-plugin')

const srcDir = path.resolve(__dirname, '..', 'src')
const outputDir = path.resolve(__dirname, '..', 'dist', 'prod')
module.exports = {
    entry: [
        path.join(srcDir, 'index.html'),
        path.join(srcDir, 'main.scss')
    ],
    output: {
        path: outputDir
    },
    plugins: [
        new CopyWebpackPlugin([
            path.join(srcDir, 'robots.txt')
        ])
    ],
    module: {
        rules: [
            {
                test: /\.(ttf|otf|eot|woff|woff2)$/,
                use: {
                    loader: "file-loader",
                    options: {
                        name(file) {
                            return `${path.relative('src', file)}`
                        }
                    },
                },
            },
            {
                test: /\.(svg|png|jpe?g|)$/i,
                use: {
                    loader: "file-loader",
                    options: {
                        name(file) {
                            return `${path.relative('src', file)}`
                        }
                    },
                },
            },
            {
                test: /\.s?css$/,
                use: [
                    MiniCssExtractPlugin.loader,
                    'css-loader',
                    'sass-loader'
                ]
            },
            {
                test: /\.html$/,
                use: [
                    'file-loader?name=[name].[ext]',
                    'extract-loader',
                    {
                        loader: 'html-loader',
                        options: {
                            attrs: ['img:src', 'link:href'],
                        }
                    },
                ],

            },
        ],
    },
}

webpack.prod.js
const path = require('path')
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin")
const CompressionPlugin = require('compression-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')

const outputDir = path.resolve(__dirname, '..', 'dist', 'prod')

module.exports = merge(common, {

    plugins: [
        new CleanWebpackPlugin(
            [outputDir],
            {allowExternal: true}
        ),
        new MiniCssExtractPlugin({
            filename: "main.[contenthash].css"
        }),
        new OptimizeCSSAssetsPlugin({}),
        new CompressionPlugin({
            filename: '[path][query]',
            test: /.*\.js$|.*\.css$|.*\.ttf$|.*\.otf$/,
        }),
    ],
    mode: 'production',
})


Logger Plugin

Created logger plugin and created logger directory for storage. Creates database not flat file yet. Also updated work on log viewer

what is the status of this, it seems that it never got merged, why was that?


lineselect: 0.1.3 -> 0.1.6

Diff: https://github.com/chfritz/lineselect/compare/v0.1.3...v0.1.6
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg eval

@ofborg eval

@ofborg eval


Custom hcore for UHF

How do I create a custom Hamiltonian (hcore) for UHF calculations and different alpha and beta blocks? They are usually the same.
mf = scf.UHF(mol)
mf.get_hcore = lambda *args: F_new (I want my new F to be different for alpha and beta, but I don't know how to do it.)
mf.get_ovlp  = lambda *args: S_new
mf._eri      = ao2mo.restore(1, eri_new, mol.nao)
mf.kernel()

Does the following work?
mf.get_hcore =lambda *a, **ka: np.asarray([ha, hb])

Please refer to the example https://github.com/pyscf/pyscf/blob/3ca5a34288fca6217177a094000cfc1eb51dd67f/examples/scf/40-customizing_hamiltonian.py#L60
Feel free to reopen the issue if you have more questions regarding the UHF customization


Compare libcrackwrapper with similar projects

There is a port of passwordqc to PHP https://github.com/helver/PHP_passwdqc_check
Is libcrackwrapper better than it?

This is a native library, whereas I wrote a binding to another library (libcrack aka CrackLib)


Protect hosted from being deleted when cache-only is true

We have a UI to delete an artifact. This helps to prevent misoperation from users. For those read-only hosted, this is not necessary (already protected).

retest this please

A weird ERROR: Maven JVM terminated unexpectedly with exit code 134
The psi Jenkins slaves are all green. Not sure what is wrong.

retest this please

retest this please


Python 3 compatibility

When installing env through pip on Python 3, calls to prefix fail at a print statement using the Python 2 syntax. However, that statement isn't in the source in this repo.

That's because repo version is 0.1.1 and pypi version is 0.1. @kennethreitz any chance you'll deploy to get rid of this? thanks

Also pushing tags on the repository would be nice.


Add server daemonset yaml template files

Add tcp & unix with namespace vortex
Fake image name

[x] tcp can run
[x] unix can run

test files are under ~/go/src/github.com/linkernetworks/network-controller/example/server-yaml

I added the following config in these yaml files.
        securityContext:
          privileged: true

Could you please help me review this PR, again?
Many thanks.

I removed labels. Also, updated the socket name.
Mount path need to be setup folder, so I use /var/run as volumes.hostPath.path & volumeMounts.mountPath.
Please help me review this PR, again.
Thank you very much.


Fix signature creation for segwit/P2SH names

When segwit outputs are spent, BIP143 comes into play to determine how the signature is made.  In particular, the hashed data that is signed for each input also contains the input value.  For name inputs, that should be the locked amount.  Since Electrum sets the value to zero when parsing an output, we have to explicitly set it back to 0.01 NMC for the signature.
This also fixes another compatibility issue between signatures created in Electrum and those expected in Namecoin Core:  The scriptCode part of the hashed input data should not contain the name prefix for "indirected" input types (like P2SH or segwit), while the name prefix is contained for ordinary P2PK and P2PKH inputs.

Tested with pytest, and also verified name_update's on regtest with legacy (P2PKH), segwit, multisig-legacy (P2SH) and multisig-segwit wallets.

ACK d0e7a5d5dfb3d0a0bf561200a5e0af40d68e4335. I have not tested the code, but I have reviewed it and it looks OK, I agree it can be merged, subject to a Travis check.

Thanks for the review!  Out of curiosity, what exactly does Travis check?  More than running pytest locally?  It seems to me that lots of code is actually untested, and I wonder if there are some tests that I just haven't seen yet.

Triggering a Travis rebuild...

Out of curiosity, what exactly does Travis check?

@domob1812 Off the top of my head, it verifies that binaries can be built for all major platforms without errors, and it also runs a Namecoin-specific static analysis script that looks for likely rebranding errors.  There might be other things too (I seem to recall that upstream Electrum is considering adding some static analysis stuff to Travis, not sure if they merged that yet).

The only Travis fail here is for the Windows target, and the error looks unrelated to this PR.


Add April 2023 Release Banner

Description of change
Add April 2023 release banner
Checklist

[ ] npm test passes
[ ] documentation is changed or added (if applicable)
[ ] permission has been obtained to add new logo (if applicable)
[ ] contribution guidelines followed here

npm test