Add Compliance check: softwareDesignTraining

How the Check Works
see
Important Notes

[ ] Implement a method to include this information via the CLI. See #56

Pending Tasks
You can find more details in the contributing guide

[x] 1. Define a Good Implementation Example

[x] Read the documentation (guidelines, best practices...)
[x] Brainstorm how to implement this check (logic, alerts, tasks, validations, edge cases...).
[x] Achieve an agreement on the implementation details before starting to work on this.

[x] 2. Update Check Record Example

[x] Update the compliance_checks row with the following fields: how_to_url, implementation_status, implementation_type and implementation_details_reference
[x] Check the migration scripts using npm run db:migrate and npm run db:rollback
[x] Update the database schema by running npm run db:generate-schema

[x] 3. Implement the Business Logic Validator Example and Check Example

[x] Add the specific validator in src/checks/validators/index.js
[x] Add the check logic in src/checks/complianceChecks
[x] Ensure that the check is in scope for the organization (use isCheckApplicableToProjectCategory)
[x] Ensure that the severity value is well calculated (use getSeverityFromPriorityGroup)
[x] Add the alert row in the compliance_checks_alerts table when is needed.
[x] Add the task row in the compliance_checks_tasks table when is needed.
[x] Add the result row in the compliance_checks_results table.

[x] 4. Ensure It Works as Expected

[x] Add new unit tests for the validator check.
[x] Add new integration test cases for this check.
[x] Verify that all tests are passing.
[x] Run the command check run --name {check_code_name} and verify the changes in the database. Update the seed script if needed (npm run db:seed)

[x] 5. Update the website Example

[x] Review the current content it in https://openjs-security-program-standards.netlify.app/details/{check_code_name}
[x] Create a PR in https://github.com/secure-dashboards/openjs-security-program-standards to include how we calculate this check and include additional information on the mitigation if needed.

Information Gathering:
This appears to be a manual data entry check. To accommodate this, we will create the table software_design_training which will include the following fields: [id, description, status (values: completed, pending, unknown), date, project_id]. This check is performed at the organization level, not at the individual level.
Main Logic:

[ ] The global status is considered passed if there is a record for the organization in the software_design_training table and the date falls within the valid range (one natural year).
[ ] The global status is considered failed otherwise. However, the alert message may vary depending on the specific situation (e.g., requiring re-validation or necessitating the training to be performed).

Additional Tasks:

[ ] Implement a method to include this information via the CLI.

This is now considered completed as all the relevant PRs are merged :partying_face:


Code for "A Hierarchical Encoder-Decoder Model for Statistical Parametric Speech Synthesis"?

When will the code for the work presented at Interspeech in "A Hierarchical Encoder-Decoder Model for Statistical Parametric Speech Synthesis" by @ronanki be available in Merlin? I am very interested in trying it.

Thank you for your interest.
The code was written long back and a small patch is required in order to make it compatible with latest version of Merlin. We're currently delivering the extensions we presented at Interspeech tutorial -- like adaptation, hybrid synthesis and hence this got delayed.
We hope to release the hierarchical encoder stuff by next week.

Any update to this project?

Apologies for the delay -- but this is added now.

Thank you!
When I run run_benchmark.sh in merlin/egs/fls_blizzard2017/s1, the url to the data is not valid, so it doesn't download data files. It says:
data_url=http://datashare.is.ed.ac.uk/bitstream/handle/10283/2909/${data_dir}.zip

If the direct download is not working, then download it manually from the below URL:
https://datashare.is.ed.ac.uk/handle/10283/2909

Thanks, I was able to download via your direct link.
Now in the configuration file for conf/acoustic_fls_demo_S2SML.conf, there is a question file mentioned which is not in the repo. I couldn't find it anywhere else either. Namely:
question_file_name: %(Merlin)s/misc/questions/questions-combilex_dnn_481.hed

Combilex labels and question file are licensed and can't be distributed.
However, the recipe can use unilex labels and it's question file. I've now updated conf file accordingly. But, you need to copy hed_feats_unilex.txt to data directory in experiments and rename it to hed_feats.txt as expected here.

Can you open this issue again, as we are still debugging?
I assume in the hed_feats.txt file it says which features apply at which levels (according to the indexes after normalization). Is there an easy way to find these numbers based on a question file?
Do I need to run run_merlin_hed.py? I see the conf file says it uses TANHE which is declared in hed_rnn.py. I think there are still some errors in run_merlin_hed.py.
        label_normaliser.prepare_dur_data(in_label_align_file_list, file_paths.seq_dur_file_list, cfg.label_type, feature_type=cfg.dur_feature_type, unit_size=cfg.dur_unit_size, feat_size=cfg.dur_feat_size)

I had to remove seq_ from the file_paths.seq_dur_file_list because it was not known. Then the next error for the same command is:
AttributeError: 'configuration' object has no attribute 'dur_unit_size'

It seems the features dur_unit_size and dur_feat_size are not incorporated in configuration/configuration.py yet.

You can check how hed_feats_unilex.txt is created for unilex question set. One has to manually specify the question numbers for each of phone, syllable and word in QS and CQS category. There is no alternative for this and it's not that difficult to find these indices for any given question file, as they are clearly marked (C-syl or C-word).
There're still a few places where the code was hard-wired to combilex -- but with the latest commit, everything is fixed. Run the baseline recipe first and then go for hierarchical encoder-decoder recipe.

One thing I still don't quite understand is this. The question file has 600 lines. But because you start counting at 0, you only get to 599 levels. So why does the hed_feats.txt file go to 600 and not to 599?
I was able to train models now. Per your direction, I first used the baseline recipe, then the hierarchical encoder-decoder recipe for the demo. The results after the first recipe are not great, but maybe that is also related to the small number of sentences involved in training (200). For objective costs I get:
2017-10-19 08:57:54,585     INFO           main: Develop: DNN -- MCD: 6.371 dB; BAP: 0.333 dB; F0:- RMSE: 56.989 Hz; CORR: 0.399; VUV: 9.101%
2017-10-19 08:57:54,586     INFO           main: Test   : DNN -- MCD: 6.323 dB; BAP: 0.329 dB; F0:- RMSE: 54.231 Hz; CORR: 0.413; VUV: 9.702%
But after the hierarchical encoder-decoder it is even worse. The speech sounds unintelligible and the objective costs are even higher?
2017-10-19 09:05:34,311 INFO           main    : Develop: DNN -- MCD: 8.466 dB; BAP: 0.361 dB; F0:- RMSE: 66.500 Hz; CORR: 0.252; VUV: 14.860%
2017-10-19 09:05:34,311 INFO           main    : Test   : DNN -- MCD: 8.288 dB; BAP: 0.344 dB; F0:- RMSE: 62.800 Hz; CORR: 0.175; VUV: 13.668%

I have used python indices: the start index is inclusive but the end index is exclusive. I'll change this to real numbers in my next commit.
HED config file was set to run only for 5 epochs (as I was testing it) and the architectures of both the networks are completely different. I'll release the actual recipes (architecture and other settings) for full dataset very soon, where the improvements can be seen.

Thanks on clarifying the first point.
I look forward to seeing the recipes for the full dataset.

@ronanki, is there any update yet? Curious to see the actual recipes for this synthesis method.


Cast error on the "limit" option

Describe the bug
I'm not sure if it's wanted or not, but I will still report it. When submitting the mongoose request, if the limit option is a string (for example "10"), it's returning an error. In my case, I receive the option list from some query params and thus, they are in a String format event for integer.
It's happening only for the limit option (page is working fine with a string).
To Reproduce
Simply submit a mongoose paginate request follow the description above.
Expected behavior
Can the library do the integer cast for the limit option ?

@Tititrois  Thanks for pointing this out.

@Tititrois This has been fixed.

Thanks !


KeyMap sorting not correct for "function"

Assuming it is an alphabetic sort.

I can look at this if you let me know the intention when toggling the sort. Is the toggle between sorted key chords and sorted functions?

it is sorting based on numerical value of the KeyFun, which is NOT alpha.  it is quasi-functional order (up / down etc first the more complex stuff later -- maybe not ideal but at least not random!

I changed the title. It is a map so I expect it would be easy to fix but it can certainly wait or I can close if you prefer.

the only fixes would be to manually re-order the "enums" in alpha order in gi/keyfun.go or change the sorting logic for this map relative to any others (e.g., introduce a type property or something), or always use alpha sorting for all maps instead of "value" sort.. IMO not worth it...

Closing - and we have the issue history if we want to revisit.


Numpy 32

Pull Request
Description
make sure everything is in float 32s not 64s
Fixes #
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration

[ ] Yes

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

[ ] Yes

Checklist:

[ ] My code follows OCF's coding style guidelines
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked my code and corrected any misspellings

Codecov Report

Merging #61 (5f0e419) into main (0421bc5) will increase coverage by 0.13%.
The diff coverage is 100.00%.

:exclamation: Current head 5f0e419 differs from pull request most recent head dc4bd51. Consider uploading reports for the commit dc4bd51 to get more accurate results

@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   81.62%   81.75%   +0.13%
==========================================
  Files          74       75       +1
  Lines        2487     2505      +18
==========================================
+ Hits         2030     2048      +18
  Misses        457      457

Impacted Files
Coverage Δ

ocf_datapipes/production/power_perceiver.py
100.00% <ø> (ø)

ocf_datapipes/transform/numpy/__init__.py
100.00% <100.00%> (ø)

...tapipes/transform/numpy/batch/change_np_float32.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Create Jenkinsfile

Hello world for Jenkins DSL- pipeline as code

Create new file for Desired state configuration hello world


MalformedPolicyDocument: The policy failed legacy parsing

Ran into a strange issue with this group policy:
> aws iam put-group-policy --group-name AdministratorsWithMFA --policy-name AllowAssumingBastionRole --policy-document '{
  "Statement": {
    "Action": "sts:AssumeRole",
    "Effect": "Allow",
    "Resource": "arn:aws:iam::xxx:role/bastion"
  },
  "Version": "2012-10-17"
}'

An error occurred (MalformedPolicyDocument) when calling the PutGroupPolicy operation: The policy failed legacy parsing
exit status 255

Looks like the Version key needs to be the first thing. Seems horrible. This works:
{
  "Version": "2012-10-17",
  "Statement": {
    "Action": "sts:AssumeRole",
    "Effect": "Allow",
    "Resource": "arn:aws:iam::xxx:role/bastion"
  }
}

Mind blown. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html

To use all of the available policy features, include the following Version element before the Statement element in all of your policies.

So terrible.

Seems like this doesn't work any more.  This generates the same error:
"AssumeRolePolicyDocument": {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Action": "sts:AssumeRole",
              "Effect": "Allow",
              "Principal": {
                "Service": "ecs.amazonaws.com"
              }
            },
            {
              "Action": "sts:AssumeRole",
              "Effect": "Allow",
              "Principal": {
                "Service": "ecs-tasks.amazonaws.com"
              }
            }
          ]
        }

Additionally, you cannot have an space before the initial "{".

Additionally, you cannot have an space before the initial "{"
OMG!!! totemcaf Thank you!!!!!!! I had looked at this post a few hours ago, and then came back and saw your new comment!
I had one blank line at the beginning of the document that caused the problem.

Fails:
policyDoc="""
{
"Version":"2012-10-17",
...
Works:
policyDoc="""{
"Version":"2012-10-17",

Additionally, you cannot have an space before the initial "{".

This one saved my ton of time.

Additionally, you cannot have an space before the initial "{".

This one saved my ton of time.

Additionally, you cannot have an space before the initial "{".

I would've spent all day on this, thank you so much!

I tried with square bracket for statement, it worked.
Correct way:
statement = [{ }]
Wrong way:
statement = {}

Square brackets makes a list:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["aa","bb"],
"Resource": ...
},
{
"Effect": "Deny",
"Action": ...
"Resource": ["aa","bb"]
}
]
}
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html

Because of this bug 🐛 (feature?), it's impossible to use jsonencode to generate the IAM policy, because no matter where you specify the "Version", the resulting map gets sorted by key names ascending, resulting in "Version" being definitely not the very first element of the generated JSON. E.g., the resource definition:
resource aws_iam_policy my_iam_policy {
  name = "my-sns-name"

  policy = trimspace(jsonencode({
    "Version" : "2012-10-17"
    "Statement" : {
      "Sid" : "AllowGiftcodeRedeemSnsIntegration"
      "Effect" : "Allow"
      "Action" : [
        "sns:ConfirmSubscription",
        "sns:GetSubscriptionAttributes",
        "sns:GetTopicAttributes",
        "sns:Publish",
        "sns:Subscribe",
        "sns:Unsubscribe"
      ]
      "Resource" : ["some::aws:resource"]
    }
  }))
}

results in such plan:

How did you fix this issue of Version not being at the top? I'm seeing the same issue, any help is appreciated!

For anyone getting this, Statement is an array of objects.

Thank goodness, this appears to have been fixed by some competent person.  The docs now say:

To use all of the available policy features, include the following Version element outside the Statement element in all of your policies.

For anyone getting this, Statement is an array of objects.

Thank you. That finally fixed it for me. Be careful with terraformer generated code. It doesn't output statement as a list.


[meshcop] fix handling commissioner keep alive

The keep alive timer was not restarted on receiving COMM_KA.

A GitHub outage earlier this week caused inconsistencies that required a force-push to master.  Can you remove 0f2e87c from this PR?


[BUG] sporadic error (Schur decomposition) with VARMAX tests

VARMAX errors out with a Schur decomposition error in one of the tests, see here:
https://github.com/alan-turing-institute/sktime/runs/7673800745?check_suite_focus=true
In that particular instance, the test it occurs in is test__y_when_refitting, but that seems more like a coincidence.
FYI @lbventura, any idea what is going on and why it seems sporadic?

I have no idea just looking at the test, would have to investigate more closely.


chore(docs): GRPC and HTTP docs versions cleanup

What type of PR is this?

/kind cleanup
/kind documentation
What this PR does / why we need it:
Docs clean up:

bump GRPC to v1 in several doc mentions
bump HTTPRoute to v1 in several places
move some related manifests from experimental to standard

Which issue(s) this PR fixes:

Fixes #
Does this PR introduce a user-facing change?:

NONE

/approve
/hold for one more review though

Thanks @pmalek!
/lgtm
/hold cancel


Fix building of benchmarks.

When benchmarks feature is enabled in cargo, it be passed to rustc as feature="benchmarks" configuration option, not just benchmarks.

Thanks!


[Bug]: Unable to extract arguments from course page! Make sure you have a cookies.txt file!

What happened?
I always get the error "Unable to extract arguments from course page! Make sure you have a cookies.txt file!" when I try to load a course in my Personal Plans course. Whether I tried adding the argument "--browser chrome" or "--browser firefox". Or I even leave out the argument and add the cookies.txt file into the directory but still no success.
Here is my entire process:
First, i use this command:
main.py -c https://www.udemy.com/course/unitycourse/ --download-captions -l en --download-assets --browser chrome

Second, i use this command:
main.py -c https://www.udemy.com/course/unitycourse/ --download-captions -l en --download-assets --browser firefox

Third, i create a file cookies.txt in the folder install:

And create a json cookies by https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm
Copy it and paste in file cookies.txt
And run this command
main.py -c https://www.udemy.com/course/unitycourse/ --download-captions -l en --download-assets

I try by Netspace Cookies in that extension, but all three method return the same result:
[03:43:43] [udemy-downloader] [pre_run:325] INFO: Output directory set to C:\udemy-downloader-master\out_dir
[03:43:44] [udemy-downloader] [main:1938] INFO: > Fetching course information, this may take a minute...
[03:43:47] [udemy-downloader] [_extract_subscription_course_info:938] CRITICAL: Unable to extract arguments from course page! Make sure you have a cookies.txt file!

So, how can I get cookies for course downloads in my Personal Plans?
Expected Result
I can download the course (I already have the ID KEY and decryption KEY)
Branch
master/main
What operating systems are you seeing the problem on?
Windows
Relevant log output
[03:57:14] [udemy-downloader] [pre_run:325] INFO: Output directory set to C:\udemy-downloader-master\out_dir
[03:57:14] [udemy-downloader] [main:1938] INFO: > Fetching course information, this may take a minute...
[03:57:17] [udemy-downloader] [_extract_subscription_course_info:938] CRITICAL: Unable to extract arguments from course page! Make sure you have a cookies.txt file!

Other information
OS: Win 10 Pro build 19045.3448

You didn't use -sc

But it's not work.

The command i tried:
main.py -c https://www.udemy.com/course/unitycourse --browser firefox --subscription-course

main.py -c https://www.udemy.com/course/unitycourse -sc --browser chrome

main.py -c https://www.udemy.com/course/unitycourse -sc --browser firefox

main.py -sc -c https://www.udemy.com/course/unitycourse --browser firefox

But all return 1 result:
[10:04:24] [udemy-downloader] [pre_run:323] INFO: Output directory set to D:\Downloads\Compressed\udemy-downloader-master\out_dir
[10:04:24] [udemy-downloader] [main:1907] INFO: > Fetching course information, this may take a minute...
[10:04:26] [udemy-downloader] [_extract_subscription_course_info:919] CRITICAL: Unable to extract arguments from course page! Make sure you have a cookies.txt file!

Can you give me a solution again?

Try adding /learn/ to the irl

Try adding /learn/ to the url

It works. Thank you very much.


Improve TensorFlowTrainer compatibility for TF<2.9

I'm not sure if support for TensorFlow older versions is intended, but it would be nice to take care of backward compatability because not everyone uses the latest TensorFlow. The current TensorFlowTrainer uses tf.function with the parameter reduce_retracing (e.g., here), but the reduce_retracing has been introduced since TF 2.9. This PR is able to handle this issue with adaptive keyword arguments.

TF 2.8 docs: https://www.tensorflow.org/versions/r2.8/api_docs/python/tf/function
TF 2.9 docs: https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/function

@fchollet Thank you for the review. The PR has been updated.


Manhwa18: error 404

Source information
Manhwa18 1.4.11
Source language
English
Steps to reproduce
Access extension
Expected behavior
List of manhwa should appear
Actual behavior
http 404
Mihon/Tachiyomi version
0.17.0
Android version
Android 10
Other details
url of this website still the same, I can also open it in webview so seem like logic is changed
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

they change theme, apparently


Symbol Graphs Contain Invalid Default Implementation Relationships

Describe the bug
Members that are marked as throws and/or async are recorded as default implementation targets for protocol requirements without the respective keyword(s).
This is caused by the name-based comparison here:
  /// Claim a protocol `P`'s members as default implementation targets
  /// for `VD`.
  auto HandleProtocol = [=](const ProtocolDecl *P) {
    for (const auto *Member : P->getMembers()) {
      if (const auto *MemberVD = dyn_cast<ValueDecl>(Member)) {
        if (MemberVD->getName().compare(VD->getName()) == 0) { // <-- does not consider `throws` or `async` keywords
          recordEdge(Symbol(this, VD, nullptr),
                     Symbol(this, MemberVD, nullptr),
                     RelationshipKind::DefaultImplementationOf());

Steps To Reproduce

Build documentation for the following code:

public protocol E {
  func foo()
}

public extension E {
  func foo() throws { }
}

Inspect the symbol graph file, which should contain a relationship similar to this one:

{
    "kind": "defaultImplementationOf",
    "source": "s:9MyLibrary1EPAAE3fooyyKF",
    "target": "s:9MyLibrary1EP3fooyyF"
}

The default implementation is also reflected in the documentation archive:

Expected behavior
The detection of default implementation should follow the rules applied by the Swift compiler, i.e. a member can only implement a protocol requirement if it requires a subset of the call modifiers (try, await) required by the protocol requirement.
E.g. in the example above, the implementation cannot implement the requirement because the former throws, whereas the latter doesn't:
public protocol E {
  func foo()
}

public extension E {
  func foo() throws { }
}

struct D: E { } // Error: Type 'D' does not conform to protocol 'E'

Environment (please fill out the following information)

macOS 12.6 (21G115)
Xcode Version 13.3 (13E113), but also applies to swift/main

SymbolGraph::recordDefaultImplementationRelationships() seems to implement it's own thing here: https://github.com/apple/swift/blob/9ee5d6b34291ebfc89f57068ed89842285dc9688/lib/SymbolGraphGen/SymbolGraph.cpp#L410
TypeChecker::inferDefaultWitnesses() already computes this information, and records it in eg ProtocolDecl::getDefaultWitness().


Questionable Ninja Names

Description

There exist at least two combinations of ninja names and titles, that are very questionable, one is just straight up in violation of the no ERP rule, the other is very questionable.

Black as your name and Bro as your title.

Screenshots

the players name have been blocked due to privacy and are unrelated.

i do not have a screen shot of the second combination, but it is possible to get.

whoops, i think the discord auto mod thingy removed the issue in the #github channel 😬

Ss14 players when color
Deep Throat ain’t that bad either considering its historical significance as the name of the secret informant in the watergate scandal.  Spy-esque lol

Yeah I dont understand why people care?
Even if they werent references like get over it, black is there because black rain?
black snake?
Its not a big deal, why bother.

Ss14 players when color, no idea why people treat black like it’s a slur

i don't think anyone treats black like its a slur, something like black dragon is a standard generic ninja esque name,
but people found it uncomfortable being called Black Bro, or calling someone Black Bro, hence why mentioned it in the issue.

Deep Throat ain’t that bad either considering its historical significance as the name of the secret informant in the watergate scandal(or Gray Fox’s code name in Metal Gear Solid). Spy-esque lol

It might be a reference to some informant, but people should not be named after a sex act on a 16+ server with minors, especially when its forced, and there is no way around the fact that it is against the rules, rule 3 clearly states "This includes direct and indirect mentions of sexual behavior or actions."

Ss14 players when color, no idea why people treat black like it’s a slur

i don't think anyone treats black like its a slur, something like black dragon is a standard generic ninja esque name, but people found it uncomfortable being called Black Bro, or calling someone Black Bro, hence why mentioned it in the issue.

Deep Throat ain’t that bad either considering its historical significance as the name of the secret informant in the watergate scandal(or Gray Fox’s code name in Metal Gear Solid). Spy-esque lol

It might be a reference to some informant, but people should not be named after a sex act on a 16+ server with minors, especially when its forced, and there is no way around the fact that it is against the rules, rule 3 clearly states "This includes direct and indirect mentions of sexual behavior or actions."

While the last one is true, the others are simply a issue of being "uncomfortable"
Almost every single name in the name gen is a popculture or espionage reference, if you want simply remove throat as a name given it is the most localized and does not offer much for name combination.

"Deep Throat" is against the rules under one of the no ERP rules (we have minors) for obvious reasons

"Deep Throat" is against the rules under one of the no ERP rules (we have minors) for obvious reasons

Agreed, either recode the component to blacklist combinations or get rid of either Throat or both Deep and Throat.

as much as I find the fact richard nixon's horrible choices breaking ss14 rules extremely funny I think that removing the throat part entirely is probably better in the long run.

What about allowing the ninja to reroll a name before spawning? Auto generated names are a place where you're likely to get a few surprises, so being able to handle a bad roll could be useful.

Someone could write a check for these two instances, and have them force rerolled, to something else. Lil if statement maybe.

What about allowing the ninja to reroll a name before spawning? Auto generated names are a place where you're likely to get a few surprises, so being able to handle a bad roll could be useful.

Eh that just removes variety, you get what you get and if you wanted something different better luck next time.

just remove deep throat 99% of people will know it as :trollface: and not the informant

just remove deep throat 99% of people will know it as :trollface: and not the informant

I have said this atleast twice now :death:


Provisioned data type is 'assertion', instead of 'asset'

Issue description
When resolving a previously provisioned asset, the data type is being returned as assertion and not asset. No errors or warnings are seen in the logs, but it looks as though no proofs are being found for the assertion. I've not gotten as far as working out if the proofs are failing to be created, or that they are just not being fetched correctly on /resolve.
Expected behavior
When provisioning an asset using the /provision/ API, the data type should be asset.
Actual behavior
Provisioned assets are being returned as having the data type assertion.
Steps to reproduce the problem

Provision an asset
Resolve a provisioned asset by id
Returned data has "type": "assertion"

Specifications

Node version: v6.0.0-beta.1.23
Platform: WSL Ubuntu
Node wallet: 0x31c98399d3D162fC9bFBFe25C3fc1e41D19ed711
Node libp2p identity: QmQcY1XgxvSALM8bRupeoVnRHVFv1FBPGrntY97X9w49oC

Contact details

Email:

Error logs
Disclaimer
Please be aware that the issue reported on a public repository allows everyone to see your node logs, node details, and contact details. If you have any sensitive information, feel free to share it by sending an email to<EMAIL_ADDRESS>

Hi @Aescwine.
You can resolve both assertions and assets. Resolving an asset will return the latest public assertion linked to that asset.

This issue is being closed as inactive due to the date of the last activity on it. If you believe this is still a problem, please create a new issue and confirm that it is reproducible in the current ot-node release version. We are working towards closing open issues that meet specific criteria and ask you to create a new one for those that that are truly bugs in current release. We'll be monitoring those issues so that they are properly managed.
Thank you,
OriginTrail Team


bug: Prising seems to be off

Monthly pricing doesn't seem to match total hourly pricing * 365*24/12 :thinking:
Example:
$0.008/hour | $6.132/month

Where it should be: $5.84/month

Is this a t4g.micro?  It's actually 0.0084, but we only display the first three digits.
0.008436524/12 = 6.13200

Ah, that might be it and it's a rounding error. I've taken the number from the app not official pricing. Could be better to perhaps align with pricing precision (probably just throw in another digit) :thinking: . What do you think?

SGTM, I added another digit in https://github.com/awslabs/eks-node-viewer/pull/91

Should be resolved now in the v0.2.0 release.


[BUG] Issues due to long organization name

Issues:

UI is distorted
Down arrow stops working
There should be a limit on long organization name or there should be a way to handle it on the UI

Browser Details: Chrome Version 85.0.4183.102 (Official Build) (64-bit)
Device Details: macOS 10.15.6 (MacBook Pro)
Note: Tried on cloud.
Steps to replicate:

Login https://app.appsmith.com/user/login
Click on 'Create Organization'
Type a long name in Organization name and then submit.

Attachment:  https://drive.google.com/drive/folders/1tDL7LQ2kUxoBKeAylWyl8CNoHqvSc_zp?usp=sharing

@satbir121 can you verify this

@Nikhil-Nandagopal Could not reproduce the issue. UI breaks and the dropdown might not be in the viewport in few machines. A possible solution would be to fix the length of org name and add an ellipsis to the dropdown.

Duplicate #713 #735


Implement custom headers in remote-read

PR #8416 implements the ability to send custom headers in remote-write. This is very useful and helps implement a bunch of features on the remote-write storage side.
However, if we implement the headers support, it should be on the read side as well. This can have many use-cases and may help users to avoid using a proxy, which at times, complicates the arch.

Let's do it, moving this away from the send to a new roundtripper.

I will take up this.

to a new roundtripper.

Can you please clarify this? Do you mean to make changes in the prometheus/common repo and not here?


@updateAt is not updated when create and update in same transaction.

Bug description
When create and update in same transaction, a column with @updateAt is not updated in update timing.
This behavior is not appeared in prisma 4.3.0.
It's appeared in prisma 4.4.0 or later versions.
I execute prisma.user.create({}) and prisma.user.update({}) in same interactiveTransactions.
It has 4-seconds wait time between create and update.
However, the value of a column with @updateAt is the same as the value of a column with @default(now()).
id      caption     createdAt                           updatedAt
100     mod         2023-12-09 15:35:15.970 +0900       2023-12-09 15:35:15.970 +0900

I checked some issues.
I'm not sure but following issue and PR might to be related my issue.
https://github.com/prisma/prisma/issues/12572
https://github.com/prisma/prisma-engines/pull/3200
How to reproduce

Run migrations and generate a prisma client
run following source code
Check the createdAt column and updatedAt column

Expected behavior
Same result as prisma 4.3.0.
updatedAt is updated when the record is updated.
id      caption     createdAt                           updatedAt
100     mod         2023-12-09 16:00:38.516 +0900       2023-12-09 16:00:42.527 +0900

The value of updatedAt is delayed by about 4 seconds.
Prisma information
generator client {
  provider = "prisma-client-js"
  previewFeatures = ["interactiveTransactions"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model User {
  id        String      @id @default(uuid())
  caption   String?
  createdAt DateTime?   @default(now()) @map("created_at") @db.Timestamptz(3)
  updatedAt DateTime?   @updatedAt @map("updated_at") @db.Timestamptz(3)

  @@map("user")
}

import { PrismaClient } from "@prisma/client";

const prisma = new PrismaClient();

const execute = async () => {
  return await prisma.$transaction(async (prisma) => {
    const mili = new Date().getMilliseconds();

    await prisma.user.create({
      data: { id: `${mili}` },
    });
    await new Promise((resolve) => setTimeout(resolve, 4000));

    await prisma.user.update({
      data: { caption: `mod` },
      where: { id: `${mili}` },
    });
  });
};

execute()
  .catch((e) => {
    throw e;
  })
  .finally(async () => {
    await prisma.$disconnect();
  });

Environment & setup

OS: macOS 13.3.1
Database: PostgreSQL 14.6
Node.js version: 16.20.0

Prisma Version
prisma                  : 5.7.0
@prisma/client          : 5.7.0
Computed binaryTarget   : darwin-arm64
Operating System        : darwin
Architecture            : arm64
Node.js                 : v16.20.0
Query Engine (Node-API) : libquery-engine 79fb5193cf0a8fdbef536e4b4a159cad677ab1b9 (at<EMAIL_ADDRESS>Schema Engine           : schema-engine-cli 79fb5193cf0a8fdbef536e4b4a159cad677ab1b9 (at node_modules/@prisma/engines/schema-engine-darwin-arm64)
Schema Wasm             : @prisma/prisma-schema-wasm 5.7.0-41.79fb5193cf0a8fdbef536e4b4a159cad677ab1b9
Default Engines Hash    : 79fb5193cf0a8fdbef536e4b4a159cad677ab1b9
Studio                  : 0.495.0

Can confirm the issue.
Internal link for reproduction


Of/policyfile prototype

Schema support for policyfiles

Generally LGTM other than comment, but I am no SQL expert.

:+1:


[remote_config] macOS Support

Currently there is no support for Flutter macOS
Remote Config is a Key firebase feature that should be cross platform supported.

@cbenhagen Any chance you have time to work on this?

MacOS support for Remote Config has landed on master and a pre-release is available, so I'm going to go ahead and close this issue now, thanks everyone!
https://firebase.flutter.dev/docs/remote-config/overview


Cypress. New organization pipeline.

Motivation and context

Adding a test to test the basic capabilities of the new functionality.
The test system has been improved in the form of adding css classes.
Added Cypress commands. Solved eslint errors in some files.
How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have added a description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@dvkruchinin , could you please check that a user with<EMAIL_ADDRESS>can be invited by `Some@Email.Com). It doesn't work right now due to the issue (https://github.com/openvinotoolkit/cvat/issues/4096) but I'm going to fix the issue today.

@dvkruchinin , could you please check that a user with<EMAIL_ADDRESS>can be invited by `Some@Email.Com).

@nmanovic Sure. I`ll add this check.

Generally everything fine, just please fix the latest comment and let's wait for bugfixes, than I will merge this patch.

@dvkruchinin
Could you please merge develop and uncomment corresponding tests?

@dvkruchinin
Could you please merge develop and uncomment corresponding tests?

@bsekachev
Sure. Done.
But I also had to finalize some tests.
The user to whom the job is assigned can no longer open a job via a direct link without activating the organization.
The user excluded from the organization now does not see the task, even if it is assigned to him.

@dvkruchinin

The user to whom the job is assigned can no longer open a job via a direct link without activating the organization.
The user excluded from the organization now does not see the task, even if it is assigned to him.

This is expected.


version 2.2 not working on install

Reproduce not working:

in gvim

CocInstall coc-tsserver

output:
2024-04-22T10:01:32.850 ERROR (pid:49388) [extensions] - Error on active extension coc-tsserver: import_coc50.services.register is not a function TypeError: import_coc50.services.register is not a function
at Object.activate (~/.config/coc/extensions/node_modules/coc-tsserver/lib/index.js:17730:44)
at ~/.vim/plugged/coc.nvim/build/index.js:265:1443
at new Promise ()
at Object.activate (~/.vim/plugged/coc.nvim/build/index.js:265:1401)
at BF.activate (~/.vim/plugged/coc.nvim/build/index.js:262:7161)
at ~.vim/plugged/coc.nvim/build/index.js:264:199
at new Promise ()
at s (~/.vim/plugged/coc.nvim/build/index.js:264:68)
Reproduce that works:

in gvim

CocInstall<EMAIL_ADDRESS>

CocInfo
vim version: VIM - Vi IMproved 9.0 9000472
node version: v18.17.0
coc.nvim version: 0.0.82-347e33d7 2022-09-09 18:16:50 +0800
coc.nvim directory: XXX/.vim/plugged/coc.nvim
term: Apple_Terminal
platform: darwin

coc.nvim version: 0.0.82-347e33d7 2022-09-09 18:16:50 +0800

Your coc.nvim was outdated, upgrade to latest release please.


Words that look like hex are highlighted

This is a minor annoyance but it completely derailed my train of thought the first time it happened. I was typing the word "feedback" and noticed that right before I typed the "k" the editor was highlighting the word purple and underlining it.
After some experimentation I learned that any combination of 7 or more hex characters ([0-9a-fA-F]) are highlighted in this way.
A pathological case of this is if your copy happens to contain the words "defaced" or "acceded" those words will be highlighted and there is no way around it.
My suggestion would be to turn that feature of the code editor off, or make it only happen when the string is prefaced by a # or 0x

Fixed in http://rohitt.me/markdown-editor for now. Would create a PR for this repository later.


chore: disable gomnd rule

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

Project coverage is 75.00%. Comparing base (c16dd23) to head (ba04a33).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   75.15%   75.00%   -0.16%
==========================================
  Files           6        6
  Lines         161      160       -1
==========================================
- Hits          121      120       -1
  Misses         40       40

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


dataprep-redis: failed when uploading pdf with process_table=true

When I try to upload the pdf  to dataprep-redis docker container using the following curl command withprocess_table feature on:
$ curl -X POST  -H "Content-Type: multipart/form-data" -F<EMAIL_ADDRESS>http://localhost:6007/v1/dataprep -F "process_table=true" -F "table_strategy=hq"
Internal Server Error

Checking out the docker container logs to find the following error:
Parsing document ./uploaded_files/nke-10k-2023.pdf.                                                                                [60/1994]
INFO:     <IP_ADDRESS>:38236 - "POST /v1/dataprep HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/pdf2image/pdf2image.py", line 581, in pdfinfo_from_path
    proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.11/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pdfinfo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/home/user/.local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/home/user/.local/lib/python3.11/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 174, in __call__
    raise exc
  File "/home/user/.local/lib/python3.11/site-packages/prometheus_fastapi_instrumentator/middleware.py", line 172, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/home/user/.local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/home/user/.local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/home/user/.local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/langsmith/run_helpers.py", line 468, in async_wrapper
    raise e
  File "/home/user/.local/lib/python3.11/site-packages/langsmith/run_helpers.py", line 454, in async_wrapper
    function_result = await asyncio.create_task(  # type: ignore[call-arg]
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/comps/dataprep/redis/langchain/prepare_doc_redis.py", line 232, in ingest_documents
    ingest_data_to_redis(
  File "/home/user/comps/dataprep/redis/langchain/prepare_doc_redis.py", line 131, in ingest_data_to_redis
    table_chunks = get_tables_result(path, doc_path.table_strategy)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/comps/dataprep/utils.py", line 571, in get_tables_result
    raw_pdf_elements = partition_pdf(
                       ^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/documents/elements.py", line 514, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/file_utils/filetype.py", line 591, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/file_utils/filetype.py", line 546, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/chunking/__init__.py", line 52, in wrapper
    elements = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 183, in partition_pdf
    return partition_pdf_or_image(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 480, in partition_pdf_or_image
    elements = _partition_pdf_or_image_local(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/utils.py", line 214, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 278, in _partition_pdf_or_image_local
    inferred_document_layout = process_file_with_model(
                               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured_inference/inference/layout.py", line 404, in process_file_with_model
    else DocumentLayout.from_file(
         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured_inference/inference/layout.py", line 64, in from_file
    _image_paths = convert_pdf_to_image(
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/unstructured_inference/inference/layout.py", line 446, in convert_pdf_to_image
    images = pdf2image.convert_from_path(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/pdf2image/pdf2image.py", line 127, in convert_from_path
    page_count = pdfinfo_from_path(
                 ^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/pdf2image/pdf2image.py", line 607, in pdfinfo_from_path
    raise PDFInfoNotInstalledError(
pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?

Thanks for reporting, let me try reproduce and fix it.


PE-357: Fix externally filed issue against this repository

📝 Description
Here is the filed issue: https://github.com/brightsign/dev-cookbook/issues/22

Can you add more details what is the problem and how the issues are resolved by the changes here? It's not very obvious from the code changes.

Can you add more details what is the problem and how the issues are resolved by the changes here? It's not very obvious from the code changes.

I have added some context to the description of the PR, but basically the change that seems to have fixed the reported console errors in the chrome inspect is adding headers to the express backend server to allow for defined access.


Using Text Extractor to extract Japanese Hiragana/Katakana contains spaces

Microsoft PowerToys version
0.64.0
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
TextExtractor
Steps to reproduce
1.click win+shift+t
2.capture screens containing Japanese text
Example (red framed area):

In the commit https://github.com/microsoft/PowerToys/commit/d17ac2bf790c75b837888ce4212e39511d0037b9 , the CJK Kanji part was supported, but for Japanese, other character blocks need to be supported as well.

❌ Actual Behavior
テ キ ス ト 抽出子 は 、 OCR パ ッ ク が イ ン ス ト ー ル さ れ て い る 言語 の み を 認識 で き ま す 。
Other Software
No response

@Dub1shu
I see, I agree with your approach.
As a side note, Unicode 3000 to 303F contain symbols used in Japanese, which do not require spaces as Japanese. However, I am not sure if they are needed for Chinese and Korean. Therefore, I think it is sufficient to only add regular expressions for hiragana and katakana for this workaround.

I agree to add only hiragana and katakana.
Punctuation issues aren't that big of an issue, so it might be better to wait for the OCR engine improvement than PowerToys.
Let's suggest adding hiragana and katakana. Could you create a PR?

Sorry, I have no experience with Windows apps or GitHub. So I don't know what to do :(

I want to fix this problem, too. However,
@Dub1shu
I've read https://github.com/microsoft/PowerToys/tree/main/doc/devdocs and followed instructions but CS0246 error occurs at using interop;.
I wrote replacing code as following, this is several lines and could you add this?
using System.Text.RegularExpressions;

string str = "テ キ ス ト 抽出子 は 、 OCR パ ッ ク が イ ン ス ト ー ル さ れ て い る 言語 の み を 認識 で き ま す 。";

Regex regexHiragana = new Regex("\\s?([\u3040-\u309F])\\s?");
Regex regexKatakana = new Regex("\\s?([\u30A0-\u30FF])\\s?");
Regex regexHankakuKatakana = new Regex("\\s?([\uFF61-\uFF9F])\\s?");
Regex regexPunctuation = new Regex("\\s?([、。])\\s?");

string result = regexHiragana.Replace(regexKatakana.Replace(regexHankakuKatakana.Replace(regexPunctuation.Replace(str, "$1"), "$1"), "$1"), "$1");

Console.WriteLine(result);

@kayoyoyak
https://github.com/microsoft/PowerToys/tree/main/doc/devdocs and this Japanese page https://qiita.com/y-vectorfield/items/b955617712f3b66359f2 may help you.

@kayoyoyak
OK.  I will work on it.
@lamrongol
I pulled the latest version, compiled it, and it built fine in my environment.
I will try to create a PR to fix this.

@Dub1shu
My code only applies to Japanese-specific characters(Hiragana, Katakana, Hankaku-Katakana, "、". "。") , so this fix will not cause trouble to Chinese OCR, I think.

@AO2233

I think his meaning is that the code https://github.com/microsoft/PowerToys/pull/20926 caused the bug, so we need to fix the https://github.com/microsoft/PowerToys/pull/20926. Instead of making new redundant code over and over again.

No, I means this code doesn't affect Kanji(Chinese characters) and #20926, either. So we don't need to fix the #20926.

Oh, I didn't know Chinese uses "、" and "。".

@AO2233
Wow. Thanks for creating PR!
I was going to work on it tonight, but @AO2233 worked for this.
The mention of @AO2233 is exactly what I mean.
@lamrongol 's method might work correctly, but it seems like a little hacky way to do it.
One of the following methods seems to be better.

Japanese and Non-CJK word are separated by a space
Add hiragana and katakana to regular expression. This is @AO2233's fix.

Japanese and Non-CJK word are not separated by a space
Limit #20926 to Chinese. This is method that I mentioned last night.

@AO2233 feel free to check out Text Grab and see how the space logic is done.
https://github.com/TheJoeFin/Text-Grab/blob/main/Text-Grab/Utilities/LanguageUtilities.cs

@TheJoeFin WoW! The code looks neat and tidy now.
I've seen the core code (https://github.com/TheJoeFin/Text-Grab/blob/main/Text-Grab/Utilities/OcrExtensions.cs#L40-L71) from this submit(https://github.com/TheJoeFin/Text-Grab/commit/c28de507f25c4952bc408b3657e7cd3987e06eb4), and checked this issue(https://github.com/TheJoeFin/Text-Grab/issues/191) before. 👀
The different between Text-Grab(Powertoy version) and Text-Grab(TheJoeFin orignal) version is different Regex, [TheJoeFin](https://github.com/TheJoeFin's is more detailed and more radical:
# Text-Grab(TheJoeFin orignal)
    // (when OCR language is zh or ja)
    // matches words in a space-joining language, which contains:
    // - one letter that is not in "other letters" (CJK characters are "other letters")
    // - one number digit
    // - any words longer than one character
    // Chinese and Japanese characters are single-character words
    // when a word is one punctuation/symbol, join it without spaces
Regex regexSpaceJoiningWord = new(@"(^[\p{L}-[\p{Lo}]]|\p{Nd}$)|.{2,}");
// or
Regex regexSpaceJoiningWord = new(@"\p{IsCJKUnifiedIdeographs}|\p{IsGeneralPunctuation}|\p{IsCJKSymbolsandPunctuation}|\p{IsHiragana}|\p{IsKatakana}|\p{IsHalfwidthandFullwidthForms}");

# Text-Grab(Powertoy now)
// just add the most important Hiragana, Katakana, Hankaku-Katakana.
var cjkRegex = new Regex(@"\p{IsCJKUnifiedIdeographs}|\p{IsHiragana}|\p{IsKatakana}|[\uFF61-\uFF9F]");

It's hard to say which one's strategy is more better, maybe the orignal one. Both of these still have some small ignorable mistakes.
I think if we use Windows OCR api (1.missing information about spaces 2.compared to the SOTA ocr engine, have more error recognition) and need to add spaces by some fixed rules(like language grammar), we can not do the ocr job perfectly. If we want the ocr text is just totally same with the picture, we need a better engine(https://github.com/microsoft/PowerToys/issues/20899)?
Can you merge the latest Text Grab code to Powertoy🍟? It's much better than this old version.❤

Fixed in 0.71 release of PowerToys. aka.ms/installpowertoys


Allow individual components of aggregate types to be connected.

Description
Connecting only the r,g, or b channels into another color is common in a lot shader networks.
Also a possible start to allow native swizzling in the language.
Tests
Yes, testsuite/render-components
Checklist:

[ x] I have read the contribution guidelines.
[x ] I have previously submitted a Contributor License Agreement.
[ ] I have updated the documentation, if applicable.
[x ] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[ x] My code follows the prevailing code style of this project.

LGTM, merging.


HADOOP-19275. Initialize default auth_to_local rules before getting user shortname

Description of PR
The hadoop dtutil cancel command gives NullPointerException.
	at org.apache.hadoop.security.authentication.util.KerberosName.getShortName(KerberosName.java:422)
	at org.apache.hadoop.security.User.<init>(User.java:48)
	at org.apache.hadoop.security.User.<init>(User.java:43)
	at org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1418)
	at org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:1402)
	at org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier.getUser(AbstractDelegationTokenIdentifier.java:80)
	at org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.getUser(DelegationTokenIdentifier.java:81)
	at org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.toString(DelegationTokenIdentifier.java:91)
	at java.base/java.lang.String.valueOf(String.java:2951)
	at java.base/java.lang.StringBuilder.append(StringBuilder.java:168)
	at org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.stringifyToken(DelegationTokenIdentifier.java:123)
	at org.apache.hadoop.hdfs.DFSClient$Renewer.cancel(DFSClient.java:804)
	at org.apache.hadoop.security.token.Token.cancel(Token.java:527)
	at org.apache.hadoop.security.token.DtFileOperations.removeTokenFromFile(DtFileOperations.java:283)
	at org.apache.hadoop.security.token.DtUtilShell$Remove.execute(DtUtilShell.java:320)
	at org.apache.hadoop.tools.CommandShell.run(CommandShell.java:72)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)
	at org.apache.hadoop.security.token.DtUtilShell.main(DtUtilShell.java:361)

This is because it is trying to create a User and in User.java we are calling this line.
But due to this direct call it doesn't initialize the auth_to_local rules and causes NPE in here in KerberosName.java
This patch addresses this issue.
How was this patch tested?
This patch was tested manually by creating a cluster and running the commands to verify the Delegation Token is cancelled
For code changes:

[x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
18m 21s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
49m 37s

trunk passed

+1 :green_heart:
compile
19m 51s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
compile
18m 35s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
checkstyle
1m 19s

trunk passed

+1 :green_heart:
mvnsite
1m 46s

trunk passed

+1 :green_heart:
javadoc
1m 18s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
0m 54s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
spotbugs
2m 42s

trunk passed

+1 :green_heart:
shadedclient
41m 58s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 57s

the patch passed

+1 :green_heart:
compile
18m 42s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javac
18m 42s

the patch passed

+1 :green_heart:
compile
18m 18s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
javac
18m 18s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m 17s

the patch passed

+1 :green_heart:
mvnsite
1m 42s

the patch passed

+1 :green_heart:
javadoc
1m 13s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
0m 53s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
spotbugs
2m 43s

the patch passed

+1 :green_heart:
shadedclient
41m 22s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
19m 57s
/patch-unit-hadoop-common-project_hadoop-common.txt
hadoop-common in the patch passed.

+1 :green_heart:
asflicense
1m  4s

The patch does not generate ASF License warnings.

265m 15s

Reason
Tests

Failed junit tests
hadoop.security.TestUserGroupInformation

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7045/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7045

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux ab2cd73e8720 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 04bd069ac47f9350b7ce7058acaa23427fa86d5d

Default Java
Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7045/1/testReport/

Max. process+thread count
3134 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7045/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 49s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  1s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
14m 19s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
39m 24s

trunk passed

+1 :green_heart:
compile
21m 42s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
compile
19m 54s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
checkstyle
1m 27s

trunk passed

+1 :green_heart:
mvnsite
2m 29s

trunk passed

+1 :green_heart:
javadoc
2m  3s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
1m 34s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
spotbugs
3m 32s

trunk passed

+1 :green_heart:
shadedclient
41m 39s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 33s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
1m 19s

the patch passed

+1 :green_heart:
compile
20m  4s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javac
20m  4s

the patch passed

+1 :green_heart:
compile
19m 40s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
javac
19m 40s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-0 :warning:
checkstyle
1m 25s
/results-checkstyle-hadoop-common-project.txt
hadoop-common-project: The patch generated 1 new + 7 unchanged - 0 fixed = 8 total (was 7)

+1 :green_heart:
mvnsite
2m 27s

the patch passed

+1 :green_heart:
javadoc
1m 56s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
1m 32s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
spotbugs
3m 54s

the patch passed

+1 :green_heart:
shadedclient
42m 15s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
3m 30s

hadoop-auth in the patch passed.

+1 :green_heart:
unit
21m 19s

hadoop-common in the patch passed.

+1 :green_heart:
asflicense
1m  2s

The patch does not generate ASF License warnings.

271m  3s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7045/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7045

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 3e8aa13110fc 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 0090713e4f97c29aea880d66c482a56d78d5acaa

Default Java
Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7045/2/testReport/

Max. process+thread count
1978 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-auth hadoop-common-project/hadoop-common U: hadoop-common-project

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7045/2/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


autoscroll not working due to style array

rowStyle={[styles.pickerRowStyle, {backgroundColor: themeConfigutation.getColor('#f4f3ef')}]}
some thing like this breaks the height of row

A lot of changes were made in v4.0, take a look here
https://github.com/AdelRedaa97/react-native-select-dropdown?tab=readme-ov-file#-major-changes
Feel free to open the issue again if it still exists


APPARENTLY WE FAIL ON FIREFOX

(the tag system is broken on Firefox. Found this out the hard way today...)

Closed by #340.


ScpFileStat is currently unusable

I'm currently using the ssh2::session::Session::scp_recv api which returns a tuple of the Channel and the ScpFileStat, however the ScpFileStat is pretty much just an opaque blob as it doesn't appear to implement any conversion traits.
Would you approve an MR introducing methods to make the internal data accessible?

Would maybe make sense to make the FileStat struct more generalized (break it out of the sftp module) and have a conversion from ScpFileStat into FileStat?

Hello and thank you for submitting this issue.

Would you approve an MR introducing methods to make the internal data accessible?

Yes, we would.


similar projects

FYI, this project has been around for a little while, and you could perhaps merge efforts:
https://github.com/coderanger/kitchen-sync
:)
cc: @coderanger

Yeap, well aware of it and even tried to PR to it. It didn't work out as I would wish to.
Anyhow thanks for the heads up!


Xaml Designer doesn't show ChildWindow

When I open the CoolChildWindow in Visual Studio 2013 I don't see the various content Elements such as Textbox etc. in the designer. All I see is a blue rectangle.
Is there a workaround for this or is this a XAML limitation?

@YannickHutter1993 you can show the content by IsOpen="True", this is by default set to False


Least permissions for sniffing and healtcheck

What the least permissions  does user need to enable both sniffing and Healthcheck?
I don't want grant cluster: monitor every user I have. It is too broad.
Or is there a way to specify different user which will be used in client to do specifically these two operations?

I don't understand. Sniffing and health checks have nothing to do with permissions. Can you clarify?

I'm using x-pack to create users and grand them access only to specific set of indexes.
Sniffing and health checks works for me when I grant them cluster: monitor permission, which is too broad for that. I'm looking for specific permissions those users require to let it work.
As an option I could use separate "monitoring" user for sniff\healthcheck but rest request should be executed with specific user creds.

Ah, now I understand.
Hmm... I'm not an expert on X-Pack Security. But I can tell you which APIs are being used for sniffing and healthchecks.
For sniffing, it's the Cluster Nodes API at /_nodes/http.
For healthchecks, it's does a HEAD request on the publish_address reported by /_nodes/http for each node in the cluster.
Example output of curl 'localhost:9200/_nodes/http?pretty=true':
$ curl 'localhost:9200/_nodes/http?pretty=true'
{
  "_nodes" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "cluster_name" : "elasticsearch",
  "nodes" : {
    "_53ubIdDTvGQHiqy5rPYhA" : {
      "name" : "_53ubId",
      "transport_address" : "<IP_ADDRESS>:9300",
      "host" : "<IP_ADDRESS>",
      "ip" : "<IP_ADDRESS>",
      "version" : "6.8.0",
      "build_flavor" : "oss",
      "build_type" : "docker",
      "build_hash" : "65b6179",
      "roles" : [
        "master",
        "data",
        "ingest"
      ],
      "http" : {
        "bound_address" : [
          "<IP_ADDRESS>:9200"
        ],
        "publish_address" : "<IP_ADDRESS>:9200",
        "max_content_length_in_bytes" : 104857600
      }
    }
  }
}

I'd be nice to you can add a section in the wiki about your findings wrt permissions required for X-Pack Security. Maybe here's a good place to add a section.


Error strings are hardcoded into Exception, move them to the ErrorMessage.cs with appropriate prefix.

Here are some known locations, there may be others:

RsaSecurityKey(RSAParameters rsaParameters)
AsymmetricSignatureProvider.Sign
AsymmetricSignatureProvider.Verify
GenericDocumentRetriever.GetDocumentAsync

This I will be going to fix as part of another fix related to logging #221 in beta8. Closing this one.


Add support for Mysos

We should provide https://github.com/twitter/mysos as yet another pluggable framework. We could evaluate the viability for a drupal database backend use case.
Also we could provide Vault intergration. See  #134

Now called Apache Cotton https://projects.apache.org/project.html?cotton
We should add this multiverse so we can install via dcos


caret position moved to incorrect spot when formatting

unlike the black formatter bundled with the python plugin, this one doesn't seem to keep the caret in the correct spot
before

after
old behavior

new behavior

This is by design. For performance reasons we take the entire formatted file and return it as a single text edit. This is because in especially large file where there are too many edits this can severely degrade performance. So, VS Code tries to preserve the line and character without the transformation using individual edits for each change.
Please 👍the original comment so we know the impact of this, and we can provide a solution.
@luabud the python extension way was to generate text edits from black --diff and parsing the results. That is problematic in cases where python can add non-standard text due to print statements in pth files. In the new extension, we can do that in a different way the output of black can be diffed using difflib from python to generate edits. Both in python extension and with difflib the issue is that we take the final formatted text, perform a diff against the old text, generate text edits from the diff, send the edits to VS Code, and VS code has to reconstruct the final formatted text. To avoid that we send the final formatted text directly as a single edit across the entire file. If we do want to support this, then I recommend controlling this behavior with a setting.

upstream issue: https://github.com/psf/black/issues/516


[BUG] Crashes on launch on aarch64 due to jemalloc issues

Mage version
latest (<IP_ADDRESS>)
Describe the bug
Trying to launch current latest container on an aarch64 platform (an Orace Cloud Ampere Instance in this case).
Application crashes after these log lines (probably repeated):
magic-1     | <jemalloc>: Unsupported system page size
magic-1     | <jemalloc>: Unsupported system page size
magic-1     | memory allocation of 8 bytes failed

This is introduced by the dependency polars and has been fixed there as per https://github.com/pola-rs/polars/issues/15549 .
On a side note, pparently there are further issues with the version in use as stated in https://github.com/mage-ai/mage-ai/issues/5169
To reproduce

Launch documented docker-compose environment on an Oracle Linux Ampere instance.

Expected behavior
No response
Screenshots
No response
Operating system
Linux xxx 5.4.17-2136.329.3.1.el8uek.aarch64 #2 SMP Tue Mar 5 01:19:51 PST 2024 aarch64 aarch64 aarch64 GNU/Linux

Red Hat Enterprise Linux release 8.10 (Ootpa)

Additional context
Fixed by upgrading to polars==0.20.31.

Thanks for the ticket. Will upgrade polars version.


redo src/common.jl

Currently src/common.jl is almost identical to src/C/common.jl, containing a lot of typealiases to UInt and many constants declared.
This can probably be reworked into a cleaner interface, as brought up by @yeesian here:
https://github.com/visr/GDAL.jl/pull/12#discussion_r55925004

Closed by #42, largely due to switching to Enums, reducing the amount of typalia.


Prefer unprefixed EME for Safari

I would like that as this is very old, the support for the newest api can be investigated.
https://github.com/google/shaka-player/blob/master/lib/polyfill/patchedmediakeys_apple.js#L36-L44

It looks like the latest Safari does support the modern requestMediaKeySystemAccess and does support cenc; so we may be able to use that now.

@avelad, I found a commented out section at the top of lib/polyfill/patchedmediakeys_apple.js which is responsible.
I don't have immediate access to a Mac or an iOS device.  If you can, would you please try the following patch and let us know if FairPlay is working correctly for you on desktop Safari and iOS?  If so, we could easily enable this in our next release.
diff --git a/lib/polyfill/patchedmediakeys_apple.js b/lib/polyfill/patchedmediakeys_apple.js
index 98fd2e6d..5d3c63e7 100644
--- a/lib/polyfill/patchedmediakeys_apple.js
+++ b/lib/polyfill/patchedmediakeys_apple.js
@@ -33,15 +33,11 @@ shaka.polyfill.PatchedMediaKeysApple = class {
       return;
     }

-    // TODO: Prefer unprefixed EME once we know how to use it.
-    // See: https://bugs.webkit.org/show_bug.cgi?id=197433
-    /*
     if (navigator.requestMediaKeySystemAccess &&
         MediaKeySystemAccess.prototype.getConfiguration) {
-      // Prefixed EME is preferable.
+      // Unprefixed EME is preferable.
       return;
     }
-    */

     shaka.log.info('Using Apple-prefixed EME');

@joeyparrish I have tested and it works by making the following change:
diff --git a/lib/media/drm_engine.js b/lib/media/drm_engine.js
index 80219f08..c05d1b47 100644
--- a/lib/media/drm_engine.js
+++ b/lib/media/drm_engine.js
@@ -698,7 +698,7 @@ shaka.media.DrmEngine = class {
     // Create a config entry for each key system.
     for (const info of allDrmInfo) {
       const config = {
-        // Ignore initDataTypes.
+        initDataTypes: ['cenc'],
         audioCapabilities: [],
         videoCapabilities: [],
         distinctiveIdentifier: 'optional',
@@ -1544,6 +1544,7 @@ shaka.media.DrmEngine = class {
     ];

     const basicConfig = {
+      initDataTypes: ['cenc'],
       videoCapabilities: basicVideoCapabilities,
     };
     const offlineConfig = {
diff --git a/lib/polyfill/patchedmediakeys_apple.js b/lib/polyfill/patchedmediakeys_apple.js
index 98fd2e6d..885f1fc4 100644
--- a/lib/polyfill/patchedmediakeys_apple.js
+++ b/lib/polyfill/patchedmediakeys_apple.js
@@ -33,15 +33,12 @@ shaka.polyfill.PatchedMediaKeysApple = class {
       return;
     }

-    // TODO: Prefer unprefixed EME once we know how to use it.
-    // See: https://bugs.webkit.org/show_bug.cgi?id=197433
-    /*
     if (navigator.requestMediaKeySystemAccess &&
+        // eslint-disable-next-line no-restricted-syntax
         MediaKeySystemAccess.prototype.getConfiguration) {
-      // Prefixed EME is preferable.
+      // Unprefixed EME is preferable.
       return;
     }
-    */

     shaka.log.info('Using Apple-prefixed EME');

I have tested in Safari 14 on macOS 10.15.7 and on iOS 14.2
It is necessary to always pass the initDataTypes field in requestMediaKeySystemAccess or it does not work, but this raises questions for me because in HLS-TS we should use SNIF, but I have tried with CENC and it works ...

Note: in safari 12 is not working but it works in safari 14. I don’t have access to safari 13.

@joeyparrish  Resolved with https://github.com/google/shaka-player/commit/6d76a135e5128dfd47653acea025d0a264d121d5

Good catch.  Closing thanks to #2999.


fix(uninstall): missing resource in ClusterRole

https://github.com/longhorn/longhorn/issues/5132
https://github.com/longhorn/longhorn/issues/5133

@Mergifyio backport v1.4.x


Fix CodeGen8uilder typo

Changes CodeGen8uilder to CodeGenBuilder in tonic_build. Fixes #1165.
Motivation
While 8uilder looks super l33t, it's not consistent with the documentation.
Solution
sed -i 's/CodeGen8uilder/CodeGenBuilder/g'

Oh wow, not sure how I didn't see that....hahaha...maybe I need to bump my font size LOL

Ok I have a release PR going, and I will yank the tonic-build 0.8.3 and push a 0.8.4 thanks for catching this! :D


Validation metrics

As suggested by @iglobalhealth, it would be great for the validation panel to display other metrics than the accuracy.

https://js.tensorflow.org/api/latest/#confusionMatrix


Support configs for Swarm mode services

In Docker 17.06.0 the concept of configs are introduced:

Add support for services to carry arbitrary config objects moby/moby#32336, docker/cli#45, moby/moby#33169

https://github.com/docker/docker-ce/releases/tag/v17.06.0-ce

Config endpoints are available in the Docker remote API under /configs.
The implementation and interface is similar to secrets.

This would cover the ability to create, inspect and remove a config. Updating does not seem to be supported by the API.
and be able to assign a config to a service, and remove it. Just like the Service Secrets.

Documentation:

https://docs.docker.com/engine/reference/commandline/config/

I'm happy to do the work on the initial implementation.

I'd be happy to receive a PR from you :-)

@Glowbal @deviantony What is this issue exactly? As far as I can see, config has been implemented and released in stable
This issue confused me into thinking that docker configs, for now, only works in docker on single hosts (not in Swarm mode). But it seems to work very good in swarm mode.

@artheus as @Glowbal specified in the issue description, this is to add Docker config (https://docs.docker.com/engine/reference/commandline/config/) support inside Portainer.
I think that Docker configs can only be used within Swarm services (like the secrets). What config are you talking about ? What stable version are you talking about?

This issue is indeed about the config support in Swarm mode, which is available since Docker 17.06. Docker configs indeed only work in Swarm mode.

So what's the status of this issue? Will portainer support swarm config introduced by Docker 17.06?

@zhaoyao91 there is a work in progress on this, follow #996

@thojkooi if you need help, i want this feature :-)


[feature request] The release process automation is missing

I doesn't seem to exist a release process for this repo yet?
It would be great to add in addition to https://github.com/score-spec/score-go/blob/main/.github/workflows/ci.yml a release workflow?
And maybe taking inspiration from score-k8s and score-compose for consistency (release name, job to release based on tag, etc.)?

https://github.com/score-spec/score-k8s/blob/main/.github/workflows/release.yaml
https://github.com/score-spec/score-compose/blob/main/.github/workflows/release.yaml

If there is no automation to have in place and just have the tag/release, let's maybe just document this part somewhere?

It turned out that the release process is like this:

Create a tag/release in there https://github.com/score-spec/score-go/releases by one of the core maintainers
Then, a few hours after it's synced in there https://pkg.go.dev/github.com/score-spec/score-go to be used/consumed

Just tested the process with https://github.com/score-spec/score-go/releases/tag/v1.8.2.
So we don't need any automation in addition to what's in place already. Sorry for the confusion, closing this issue.


Use gradle or similar for build

That would make it easier to work on this project.

That would make it easier to work on this project.
The best would be to publish it to maven repository to favor reuse :+1:


Not working with Laravel 5.2.*

When I make a request from remote origin I get
XMLHttpRequest cannot load website. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access. The response had HTTP status code 403.
When I use an asterisk to allow all origins it works. When I try to put the specific URL in it doesn't.
I put it in providers array in app.php
Have this in Kernel.php
protected $middleware = [
    \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Barryvdh\Cors\HandleCors::class,
];

protected $middlewareGroups = [
    ...
    'api' => [
        'throttle:60,1',
    \Barryvdh\Cors\HandleCors::class,
    ],
];

... So yeah it doesn't work. Am I missing something?

I just updated my cors.php
'supportsCredentials' => false,
'allowedOrigins' => ['https://first.url.com', 'https://second.url.com'],
'allowedHeaders' => ['Origin', 'Content-Type', 'X-Auth-Token', 'Authorization'],
'allowedMethods' => ['GET', 'POST', 'PUT',  'DELETE'],
'exposedHeaders' => [],
'maxAge' => 0,
'hosts' => [],

Now second.url.com works, but not first.url.com

I added a wildcard in the first url and now it works. So now it is:
'supportsCredentials' => false,
'allowedOrigins' => ['https://*.url.com', 'https://second.url.com'],
'allowedHeaders' => ['Origin', 'Content-Type', 'X-Auth-Token', 'Authorization'],
'allowedMethods' => ['GET', 'POST', 'PUT',  'DELETE'],
'exposedHeaders' => [],
'maxAge' => 0,
'hosts' => [],
Hope this helps someone else...

I have the same issue as above. I did try the solution of digitalrep but no help

Can you try again with https://github.com/barryvdh/laravel-cors/releases/tag/v0.10.1 ?
Please re-open this issue when the problem still persists.


Update active-directory-saml-claims-customization.md

Removed Transient NameID format since we do not support it in the UI anymore.

@bernawy : Thanks for your contribution! The author(s) have been notified to review your proposed change.

What's the next step here?

@bernawy , apologize for the slow reply.  Thanks for making the change, looks good.  We'll get the change merged soon.  #sign-off


[KAFKA-8820] [WIP] Use Admin API of Replica Reassignment in CLI tools

Utilize the new Admin API for replica reassignment in the command-line tools, as described in KIP-455: https://cwiki.apache.org/confluence/display/KAFKA/KIP-455%3A+Create+an+Administrative+API+for+Replica+Reassignment
This particular PR is a first PR for Kafka and is only a change to the kafka-topics.sh code to print out  adding/removing replicas. It includes both a TopicCommandTest and a TopicCommandWithAdminClientTest. Since the new replica reassignment API isn't getting used, we  are expecting no replicas to actually be
More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Should we test cancellation?

The reassign-partitions.sh command was upgraded to use the --bootstrap-server flag in #8244


Update Some Links - BBC Documentary and Dhammaloka Community

Update the link to the BBC talk as that channel is closed
Update the link to the dhammaloka community to the information page instead as that forum seems to point to a broken link.

Thanks, @SudharakaP! It’s unfortunate that many of these links disappear. Thanks for finding replacements!


Add PROXY_USERNAME and PROXY_PASSWORD

Adds PROXY_USERNAME and PROXY_PASSWORD to the list of well-known environment variables which are used to authenticate the SDK to the proxy. This resolves a gap in functionality left in the list of environment variables to handle Proxy-Authentication requests returned by a proxy, this should enable environment support of Basic and Digest authentication schemes if supported.
Link to Proxy requirements: https://azure.github.io/azure-sdk/general_azurecore.html#proxy-policy

+1 to Adrian's question. Googling around, it seems these env vars are supported some places but not others, and not nearly as ubiquitous as HTTP_PROXY/HTTPS_PROXY/NO_PROXY.

Closing this PR as it appears that having separate properties for proxy username, password, and host appears to be idiomatic to Java (https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html). Linux, MacOS, and Windows use the pattern stated by @adrianhall and @bterlson with https://user:pass@host.


[Doc] Address document issues [skip ci]

this PR is to:

update getting started guide for AWS EMR 6.10.0 release
fix #7831
fix a VPR comments: update the qualification links in getting started on dataproc guide doc

Signed-off-by: liyuan<EMAIL_ADDRESS>

verified AWS EMR 6.10.0

build


0NaN-NaN-NaN NaN:NaN:NaN in Tables when Include Time is enabled

When checking the "Include Time" option in the GROUP BY section of a chart and using the Table visualization, the output doesn't print the actual datetimes.
Expected results
Datetimes based on time range & granularity selected
Actual results
"0NaN-NaN-NaN NaN:NaN:NaN"
Screenshots
Attaching screenshots from both datasource types (Druid Table, classic cube):

How to reproduce the bug

Create a new Table chart
Adjust time granularity, range, etc.
In the GROUP BY section, check "Include Time" option
Run query

Environment

superset version: 0.36.0

Checklist
Make sure these boxes are checked before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.

Don't have access to the host but hopefully @elukey can provide

[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Hi,
we encounter the same issue, but with the pattern "NaN/NaN/0NaN".

superset version: 0.36.0
clickhouse
native clickhouse alchemy driver

When looking in the query log, ordering per week applies a toMonday() function after a toDatetime(). Result will not be DateTime but Date (have a look in the. "__timestamp" field - no time infos available). I'm not sure where the issue resides, but the rending in HTML shows a zeroed out Datetime with format "yyyy-MM-dd 00:00:00" (first picture at the bottom shows the chrome dev inspect window with  data-sort="2020-02-24T00:00:00" ) .

So I believe it's just the rendering that's impacted. Many NaN Date rendering is related to wrong Date input, so maybe columns are mixed up, wrong format pattern applied, index wrong (month values 0-11 vs 1-12).
I can provide more infos if needed. Please advise which data might be helpful.

Additional infos: Chart's CSV export also uses the date from query. No issues exporting the data.
...,2020-04-27, ...

Seems related to
#10097
and is fixed in 0.37 (not yet testet - will try to verify)
#9493

0NaN-NaN-NaN NaN:NaN:NaN - hey hey hey - goodbye!

the same problem !  Did it work out in the end ？ Look forward to your reply ! thanks

0.37 has sloved it.

+1
Works from >= 0.37

We just upgraded to 0.37.2 and I can confirm this problem is gone. Thank you!

This still happens in 0.38.0 for column that are placed in the group by list. This issue describes the same

This still happens in 0.38.0 for column that are placed in the group by list. This issue describes the same

@stevensuting can you add the following information:

the database type
the datatype of the "Last Appointment Date" and "Last Feedback Date" columns?

Also, the cell values that are displaying NaN..., are those NULL values?

@stevensuting can you add the following information:

the database type
the datatype of the "Last Appointment Date" and "Last Feedback Date" columns?

Also, the cell values that are displaying NaN..., are those NULL values?

Database Type: Postgres
Data type of columns Last Appointment Date" and "Last Feedback Date: timestamptz
Cell value in DB for which Superset is displaying NaN: NULL
Data type set in Superset implicitly: TIMESTAMP WITH TIME ZONE

Database Type: Postgres
Data type of columns Last Appointment Date" and "Last Feedback Date: timestamptz
Cell value in DB for which Superset is displaying NaN: NULL
Data type set in Superset implicitly: TIMESTAMP WITH TIME ZONE

I still have this Issue in version 2.1.2.
I have tried to cast the value to varchar, still I get 0nan-nan... in the chart.

I also have this problem, how can I solve it?

@MilenaSilva10 which version are you on, and which database type? This should not be happening on recent versions of Superset.

@villebro it is showing version 0.0.0-dev. I saw it happened in August 2023 too, but I think the problem came back
https://github.com/apache/superset/pull/24696


ndmg assumes that ndmg is installed

Steps to reproduce:

Download ndmg (git clone https://github.com/neurodata/ndmg)
Try running a ndmg script (ndmg/ndmg/ndmg_pipeline.py)

Expected Behavior:
ndmg performs the pipeline as usual.
Actual Behavior:
ndmg tries to import ndmg.utils, but I never pip-installed ndmg, so it fails!! Instead, should import from a relative path so that this works whether or not ndmg was pip-installed, or perhaps if it was installed on a system where ndmg is not installed for all users, and is thus not in the pip cache directory.

As this is a Python package it is expected that it is installed. I clarified the install instructions in commit https://github.com/neurodata/ndmg/commit/bf5ee08db6a83dd508cdcb82ddf8649005d1cfd7 for those who choose to install via Github and don't know how.
Also, if you did cd ndmg prior to running that command (i.e. were in the base directory of the repo) this script would still work without installing. This, however, would require you to have all other dependencies (such as DiPy) already installed.

@gkiar - i hear what you are saying, but still might be a nice enhancement.  use cases like no sudo, or permission to install things, or desire to use a library without pip bloat?

And I'm saying it already exists, you just have to cd in 1 further
directory. For example, ndio doesn't work in a parallel example you just
described. It does if you move in 1 directory. There is no problem, just
laziness :)
--
Greg Kiar<EMAIL_ADDRESS>On Tue, May 31, 2016 at 5:16 PM, William Gray<EMAIL_ADDRESS>wrote:

@gkiar https://github.com/gkiar - i hear what you are saying, but still
might be a nice enhancement. use cases like no sudo, or permission to
install things, or desire to use a library without pip bloat?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/neurodata/ndmg/issues/72#issuecomment-222823517, or mute
the thread
https://github.com/notifications/unsubscribe/AEqDWL1c-Tyi9RiqD1YPJsgjnDf4USPIks5qHKU_gaJpZM4IpaH0
.

Parallel for ndio. This fails:
git clone https://github.com/neurodata/ndio.git
python -c "import ndio"

This does not:
git clone https://github.com/neurodata/ndio.git
cd ndio
python -c "import ndio"

Same applies here.

Sorry, I think my initial report was unclear —
I mean that the ndmg_pipeline.py script fails (due to being unable to
import ndmg.utils) unless ndmg has been installed — I totally agree that
the git/raw filestructure is set up correctly!
I'm not totally sure what the solution to this is, but I imagine using
relative imports between files means that even if you call
ndmg_pipeline.py from outside of the ndmg directory, it should still find
the right files.
Relative imports: https://docs.python.org/2.5/whatsnew/pep-328.html
On Tue, May 31, 2016 at 5:43 PM Greg Kiar<EMAIL_ADDRESS>wrote:

Parallel for ndio. This fails:
git clone https://github.com/neurodata/ndio.git
python -c "import ndio"
This does not:
git clone https://github.com/neurodata/ndio.git
cd ndio
python -c "import ndio"
Same applies here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/neurodata/ndmg/issues/72#issuecomment-222830555, or mute
the thread
https://github.com/notifications/unsubscribe/AAqVB8tJEKk8mugjyGPmlmHpuueaIGvJks5qHKt5gaJpZM4IpaH0
.

Ah, I see better now what you mean. This has a very low priority on my stack, but feel free to fix on a dev branch and PR. Once it passes Travis, I'll skim the code before merging to master. Otherwise, it'll be a while for me to get to it.

Super cool — I'll play around with it!
On Tue, May 31, 2016 at 5:54 PM Greg Kiar<EMAIL_ADDRESS>wrote:

Reopened #72 https://github.com/neurodata/ndmg/issues/72.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/neurodata/ndmg/issues/72#event-677666395, or mute
the thread
https://github.com/notifications/unsubscribe/AAqVB78SFERMHlHEG3ExNDi70Sf5YXyhks5qHK4egaJpZM4IpaH0
.


Crash at startup

Completely confused, as this mod worked with every mod I had installed beforehand. I am unsure what I have done wrong.
Here's the log from startup, even though the game crashes entirely before it can.
latest.log

Looks like it‘s connected to SecurityCraft?

Interesting. I wonder why. Again, REID worked just fine with everything I had installed beforehand. So strange that SC is now incompatible, even without changes.
Thanks. I'll test to see if removing SC helps, or maybe downloading a different version of it

I did some testing on my own (very basic, literally just adding a few mods at a time to see what works and what doesn't) and I did find the incompatibility. It was the mod LootingVI. I removed it and everything loaded perfectly again.


Allow llvm-6.0.1 in the Makefile

It seems the apt.llvm.org packages already ship 6.0.1 although the official release is only scheduled for june, see http://lists.llvm.org/pipermail/llvm-dev/2018-March/121757.html.
My llvm-config-6.0 --version installed from: deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main shows 6.0.1.
So i adapted the Makefile to support it.
The stdlib tests and the examples compile and run just fine on my machine.
There are no ci tests using the apt.llvm.org packages. Should we add them?

Hmmm... why did circleci run this PR? I marked it with [skip ci] on the commit message. puzzling.


replaced if-fi syntaxes with case-esac and || (to make more POSIX-compliant)

TBH what sed has -I option...?

No, should have I noticed earlier that what I was doing was nothing but to put my finger to your pie.


📃: EDA -heart disease

🟢 Title :EDA -heart disease
🟢 Tech stack :python library,jupiter notebook
🟢 Objective :to analyze the heart disease dominant in adults
🟢 Summary :the EDA analyze whether a person has malignant or benign conditions

✅ Details to Include When Taking the Issue:
Name :Shailja

Assigned

i have added my eda ,kindly acknowledge it.


Add option to give a custom name to the CSV

It would be nice to be able to give a custom name to the CSV file, instead of having it downloaded as jexcelTable.csv

yes, please - or at least point us to the easiest way to make the change ourselves

It has been done. You can declare csvFileName:'filename' in the innitialization to define the filename. Please, download the most recent version in the master repo.

Excellent - thank you!

Thank you @paulhodel

@paulhodel npm install<EMAIL_ADDRESS>returns me the 1.3.3 version of the package. Can you double check if you updated the package on npm?


fix: add option to change indexes names

Codecov Report

Merging #337 (2d6d6b9) into develop (1676c0d) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 2d6d6b9 differs from pull request most recent head 0d9c91d. Consider uploading reports for the commit 0d9c91d to get more accurate results

@@           Coverage Diff            @@
##           develop     #337   +/-   ##
========================================
  Coverage    80.67%   80.67%
========================================
  Files           20       20
  Lines         1283     1283
========================================
  Hits          1035     1035
  Misses         248      248

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 1676c0d...0d9c91d. Read the comment docs.

:tada: This PR is included in version 1.3.1-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: