Feature/block s3 public access

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce to <repo_name>?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x ] I have read the CONTRIBUTING.md doc.
[x] I have added the necessary documentation (if appropriate).
[x ] Any dependent changes have been merged and published in downstream modules.

This change adds the ability to add a Customer Managed Key to encrypt the EBS and EFS volumes. The minimum Terraform version required to run this stack was bumped from 0.12 to 0.13.


DMP-1011 - Submit Approve/Reject transcript request

Jira link (if applicable)
DMP-1011
Change description
Makes a call to the API to change the status to either approved or rejected (with a workflow comment).
Displays error if no message provided when rejecting.
Checklist

[X] commit messages are meaningful and follow good commit message guidelines
[X] README and other documentation has been updated / added (if needed)
[X] tests have been updated / new tests has been added (if needed)
[ ] Does this PR introduce a breaking change

the template is missing govuk-form-group--error in the template

as opposed to the design

the template is missing govuk-form-group--error in the template  as opposed to the design

Good spot, now fixed:

I can hit the submit button without selection either yes or no. Is there an error case for this behaviour?

I don't think we should disable the button. If it is clicked before yes or no is selected then we should show a validation error. I know this is not covered by a design, I have commented asking for one. The error would be something simple like "You must choose whether you approve this request".

I can hit the submit button without selecting either yes or no. Is there an error case for this behaviour?

I have pushed a change to disable the Submit button before an option is selected. Additionally, I have added a specific condition for each option instead of an else in case user decides to remove "disabled" property themselves using the element inspector

I don't think we're supposed to disable buttons. The designs we are given are based from GDS and this is what GDS stipulates https://design-system.service.gov.uk/components/button/#disabled-buttons
@davet1985 has however reached out and asked for a design to cover this scenario, so we will have to wait for a response

Scrapped the disable button and reworked to display message when user clicks submit without selecting an option:

Wording is You must choose whether you approve or reject this request. but this can be changed if not suitable.


nvidia-x11: switch download urls to https

Motivation for this change
download.nvidia.com no longer supports FTP but now also supports HTTPS
Fixes #25326
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

This change by nvidia also breaks installs of 17.03, and maybe other stable versions, that require nvidia drivers.

Right, picked to 17.03.

17.03 still seems to be broken by this.

Just confirmed 17.03-small's fix works. All right.

It takes some time for channels to update.  You can find explanation on http://howoldis.herokuapp.com/


Mapper.map(MaterialList) method is required

at v0.4.7, com.kazurayam.materialstore.map.Mapper class has Material map(Material) method.
But it lacks MaterialList map(MaterialList) method.

v0.4.8


Issue created during Live Demo - More cool things to come

Thanks for reporting - this issue is under review.  This is a Microsoft Internal DevOps Bug ID AB#175823


Uncaught TypeError: Cannot set property '[Note ID: 0d1d3594d8c646a77569ef6f918926e4]' of null

[Enter steps to reproduce below:]

...
...

Atom Version: 1.2.2
System: Mac OS X 10.11.1
Thrown From: ever-notedown package, v0.2.16
Stack Trace
Uncaught TypeError: Cannot set property '[Note ID: 0d1d3594d8c646a77569ef6f918926e4]' of null
At /Users/vikbert/.atom/packages/ever-notedown/lib/note-helper.coffee:95

TypeError: Cannot set property '[Note ID: 0d1d3594d8c646a77569ef6f918926e4]' of null
    at NoteIndex.addnote (/Users/vikbert/.atom/packages/ever-notedown/lib/note-helper.coffee:95:5)
    at StorageManager.exports.StorageManager.StorageManager.addNote (/Users/vikbert/.atom/packages/ever-notedown/lib/storage-manager.coffee:197:27)
    at /Users/vikbert/.atom/packages/ever-notedown/lib/ever-notedown.coffee:1611:38
    at /Users/vikbert/.atom/packages/ever-notedown/lib/evernote-helper.coffee:1056:9
    at ChildProcess.exithandler (child_process.js:206:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Commands
     -2:09.1.0 ever-notedown:open-config (atom-text-editor.editor.is-focused)
  2x -2:01.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:19.9.0 ever-notedown:toggle (atom-text-editor.editor.is-focused)
  7x -0:10.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "one-dark-syntax"
    ],
    "disabledPackages": [
      "language-go",
      "language-java",
      "language-make",
      "language-mustache",
      "language-objective-c",
      "language-perl",
      "language-python",
      "language-ruby-on-rails",
      "package-generator",
      "metrics",
      "language-gfm",
      "language-csharp",
      "language-c"
    ]
  },
  "ever-notedown": {}
}

Installed Packages
# User
autoclose-html, v0.19.0
color-picker, v2.0.13
ever-notedown, v0.2.16
javascript-snippets, v1.0.0
jsformat, v0.9.0
linter, v1.11.1
linter-jshint, v1.2.1
minimap, v4.16.0
minimap-find-and-replace, v4.3.2
open-recent, v4.0.1
php-twig, v4.0.0
symfony-snippets, v0.3.0

# Dev
No dev packages

A solution was proposed in a similar issue. Please consider following the preparation steps as described in the doc in section Installation -> Preparation.
I'll close this issue for now, please let me know if you're still having trouble.


[441] Use AbsoluteUri instead of ToString

ToString unescape the characters and create a non-compliant Uri
https://github.com/microsoft/OpenAPI.NET/issues/441

Cannot use AbsoluteURI due to relative references, but I am re-opening issue #441 to resolve the reported issue by using originalString.


[Image Resizer] Export / import pre-defined settings

Provide a description of the new feature / enhancement
Goal : Easily save / import your preferred settings for ImageResizer.
Future-proof : that could be extended to all the other settings for the powertoys.
While this is fine if you do it once of twice, I still want to save (export) my Image Resizer settings. and re-import them when i reinstall my system or to share as predefinded settings with my team.
Adding and export/import settings would be great (havent found anything about it nor in the issues as well)
As a workaround, where are these settigns stored ? Can they be extracted / imported via powershell ?
Cheers,

@Trouffman
All these settings area saved in %localappdata%\microsoft\PowerToys. There should be a folder called ImageResizer.

Thank you that would fit the workaround. An import / export option would be a great addition.
Thanks!

/Duplicate of #586


Distractions

There was some discussion about a feature that would let users keep track of distractions and other thoughts during their work sessions.
IIRC, the user flow would be something like this:

User encounters a distraction while working
User logs the distraction in the app and clicks submit
The distraction text field is cleared
A counter displaying the number of distractions is incremented

We can discuss the feature further in this issue and I've added it to the After MVP milestone for now.

Is this still referencing from the mockups that we made a while back?

Yeah it is


EC2MetadataUtils used to determine if running on cloud environment does not work on ECS Fargate

Type: Bug
Describe the bug
Version of Spring Cloud:
org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR9
Which resolves to spring cloud aws version 2.2.5.RELEASE
When the application starts up the org.springframework.cloud.aws.context.support.env.AwsCloudEnvironmentCheckUtils attempts to determine if the code is running in a cloud environment by using com.amazonaws.util.EC2MetadataUtils. This does not appear to work if the code is deployed to ECS Fargate.
2020-11-28 00:34:36.424  WARN 1 --- [main] i.InstanceMetadataServiceResourceFetcher : Fail to retrieve token
--
com.amazonaws.SdkClientException: Failed to connect to service endpoint:
at com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:100)
at com.amazonaws.internal.InstanceMetadataServiceResourceFetcher.getToken(InstanceMetadataServiceResourceFetcher.java:91)
at com.amazonaws.internal.InstanceMetadataServiceResourceFetcher.readResource(InstanceMetadataServiceResourceFetcher.java:69)
at com.amazonaws.internal.EC2ResourceFetcher.readResource(EC2ResourceFetcher.java:66)
at com.amazonaws.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:402)
at com.amazonaws.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:371)
at org.springframework.cloud.aws.context.support.env.AwsCloudEnvironmentCheckUtils.isRunningOnCloudEnvironment(AwsCloudEnvironmentCheckUtils.java:38)
at org.springframework.cloud.aws.context.annotation.OnAwsCloudEnvironmentCondition.matches(OnAwsCloudEnvironmentCondition.java:38)
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader$TrackedConditionEvaluator.shouldSkip(ConfigurationClassBeanDefinitionReader.java:477)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:131)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:120)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)

I have already set the following in my application.yml:
cloud:
  aws:
    region:
      auto: true
      use-default-aws-region-chain: true
    credentials:
      use-default-aws-credentials-chain: true

As described in PR: https://github.com/spring-cloud/spring-cloud-aws/pull/559
But this seems to be yet another case where the class being used needs to be configurable based on the platform in AWS the code is deployed to EC2 vs ECS Fargate.
Sample
Deploy any spring app using the spring cloud aws version 2.2.5.RELEASE to ECS Fargate and you should see this issue

Thanks for the report. Indeed ConditionalOnAwsCloudEnvironment does not work on Fargate. In your setup, exclude ContextInstanceDataAutoConfiguration as this is the only one that uses this conditional annotation and the warning message will disappear, also, your application will startup faster.
Starting from 2.3.0 ContextInstanceDataAutoConfiguration will be disabled by default.

Is the plan for this to improve org.springframework.cloud.aws.context.support.env.AwsCloudEnvironmentCheckUtils so that it understands the metadata endpoints documented in: https://docs.aws.amazon.com/AmazonECS/latest/userguide/task-metadata-endpoint-fargate.html

I had a look in the AWS v1 SDK (current SDK for Spring Cloud AWS) with https://github.com/aws/aws-sdk-java/search?q=169.254.170&type=code but there doesn't appear (only from 10 minutes looking) to be a way to get the ECS metadata, the only thing I found was a way to load the container credentials:
https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-core/src/main/java/com/amazonaws/auth/ContainerCredentialsProvider.java

Under the hood the AwsCloudEnvironmentCheckUtils uses the SDK's EC2MetadataUtils. That util class calls an EC2-specific metadata endpoint that is present on EC2 instances. ECS has its own set of metadata endpoints (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint.html). One option would be to create a helper class to retrieve data from those endpoints and see if it comes back with any data. Another option would be to check for the presence of an ECS_CONTAINER_METADATA_URI environment variable and, if it's set, assume we're running in ECS and isRunningOnCloudEnvironment should return true.

Under the hood the AwsCloudEnvironmentCheckUtils uses the SDK's EC2MetadataUtils. That util class calls an EC2-specific metadata endpoint that is present on EC2 instances. ECS has its own set of metadata endpoints (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint.html). One option would be to create a helper class to retrieve data from those endpoints and see if it comes back with any data. Another option would be to check for the presence of an ECS_CONTAINER_METADATA_URI environment variable and, if it's set, assume we're running in ECS and isRunningOnCloudEnvironment should return true.


Cannot get multi-buffer hash produce valid output with HASH_FIRST/HASH_LAST

Thank you for the library. I wonder if you can point me in the right direction in what I'm doing incorrectly with this code, which yields correct hashes only when I use a single buffer (i.e. max_ctx is set to 1).
I did look at the tests, but they are using multiple buffers to compute different hashes and my understanding was that this library can collect and prepare multiple buffers via HASH_FIRST/HASH_UPDATE in order to compute a single hash and will generate the final hash using some parallelization magic behind the scenes when either HASH_LAST is used or the final flush loop runs.
Here's the trimmed down code I experimented with. I removed all error handling for brevity. It basically checks the context error every time it gets it back from the context manager.
size_t argc_ = 7;
const char *argv_[] = {
    "cmd-line",
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
    "C",
    "1",
    "2",
    "3"
};

SHA256_HASH_CTX_MGR ctx_mgr = {};
sha256_ctx_mgr_init(&ctx_mgr);

constexpr size_t max_ctx = 4;
SHA256_HASH_CTX mb_ctx[max_ctx], *mb_ctx_ptr = nullptr;
size_t ctx_in_use = 0;

for(size_t i = 0; i < max_ctx; i++) {
    // set status in each to HASH_CTX_STS_COMPLETE
    hash_ctx_init(&mb_ctx[i]);
}

for(size_t i = 1; i < argc_; i++) {
    if(mb_ctx_ptr)
        // runs through this with 1 2 3, mb_ctx[2] state is IDLE
        mb_ctx_ptr = sha256_ctx_mgr_submit(&ctx_mgr, mb_ctx_ptr, argv_[i], static_cast<uint32_t>(strlen(argv_[i])), HASH_UPDATE);
    else if(ctx_in_use < max_ctx)
        // runs through this 3 times for As, Bs and the C, mb_ctx[0]/mb_ctx[1] state is PROCESSING, mb_ctx[2] starts as IDLE
        mb_ctx_ptr = sha256_ctx_mgr_submit(&ctx_mgr, &mb_ctx[ctx_in_use++], argv_[i], static_cast<uint32_t>(strlen(argv_[i])), HASH_FIRST);
    else {
        // never runs this block for 4 contexts and this input, but produces valid hash for 1 context, same input
        if((mb_ctx_ptr = sha256_ctx_mgr_flush(&ctx_mgr)) == nullptr)
            throw std::runtime_error("sha256_ctx_mgr_flush failed");

        if(mb_ctx_ptr->error != HASH_CTX_ERROR_NONE)
            throw std::runtime_error(std::to_string(mb_ctx_ptr->error) + ": flush returned a bad context");

        mb_ctx_ptr = sha256_ctx_mgr_submit(&ctx_mgr, mb_ctx_ptr, argv_[i], static_cast<uint32_t>(strlen(argv_[i])), HASH_UPDATE);
    }
}

// gets the continuation context mb_ctx[2] after HASH_UPDATE and ends the input with HASH_LAST
if(mb_ctx_ptr) {
    if((mb_ctx_ptr = sha256_ctx_mgr_submit(&ctx_mgr, mb_ctx_ptr, nullptr, 0, HASH_LAST)) != nullptr) {
        // docs say that if the context is returned here, it contains a valid hash (doesn't run in this case)
        print_hash("Multi-buffer", mb_ctx_ptr->job.result_digest);
    }
}

if(!mb_ctx_ptr) {
    // mb_ctx[0] and mb_ctx[1] become IDLE
    while((mb_ctx_ptr = sha256_ctx_mgr_flush(&ctx_mgr)) != nullptr) {
        if(mb_ctx_ptr->status == HASH_CTX_STS_COMPLETE)
            // prints valid hash for C123, mb_ctx[0] and mb_ctx[1] are not factored in
            print_hash("Multi-buffer", mb_ctx_ptr->job.result_digest);
        //else
        //    mb_ctx_ptr = sha256_ctx_mgr_submit(&ctx_mgr, mb_ctx_ptr, nullptr, 0, HASH_LAST)
    }
}

I experimented with ending input for each context where I called HASH_FIRST and a bunch of other configurations, but I cannot get it work for anything, but a single context, which kind of defies the whole purpose of a multi-buffer hash in my mind. It also produces multiple completed contexts, like the commented out lines at the end, which will print hashes for their contexts.
Any pointers on what's missing from this code would be greatly appreciated.
Also, unrelated to the above (considered it as an alternative initially). Am I correct in understanding that hashes produced by Multi-Hash functions (mh_sha256.h) will not be valid hashes for their nomenclature, like SHA256, because in the end they compute hashes of hashes to facilitate parallelism? If that's incorrect, I will post another question to keep it separate.

Ok, after wading through the code, it appears that I've been misinterpreting where parallelism is applied and that multiple hashes may be processed in an optimized way, not so much processing of a single hash that can be parallelized.
I still would appreciate your insights about multi-hashes - is it possible to produce an actual SHA-256 with a multi-hash, or it's just that it provides same cryptographic strength, but the value would be different from a SHA-256 value generated via a conventional hash function?
Thank you.


Issues with output from quantification step

Hi we build the graph using the gtf and the genome fasta for GRCh38. However when we run the quantification the count matrix looks like we are only getting results to the odd chromosomes at the end of the reference:
Transcript      Count
KI270412        1
KI270382        1
KI270539        1
KI270311        4
KI270334        1
KI270522        10
KI270381        32
KI270580        2
KI270340        1
KI270429        4
KI270418        1
KI270389        3
KI270364        25
KI270515        2
KI270375        1
KI270420        3
The documentation is slightly confusing. For graph building we want genome fasta (1 sequence per chromosome) and gtf. Then for quantification in the config file its the transcripts fasta the same genome fasta file or do you need to give the transcripts as separate fasta sequences?

Hello,
I think I understand your confusion. In the Readme where the necessary input files for the quantification step were described, we accidentally used the word reference sequence, when we were talking about the transcripts.fa file (parameter called transcripts mentioned in the parameter table).
Please run the the quantification step with supplying the transcripts.fa file in the config.yaml file. Then it should work.
I have fixed that in the Readme and hope that this confusion can now be avoided.
Hope that helps,
Marcel

Hi Thank you
Yes worked it out and that step now works.  however when we try the fusion
step the Binaries/PickAdjacentAlnPairs step is being killed everytime. It
seems to be trying to use all the momory. we have 250Gb so it seems odd. Is
there a way to limit the memory usage?
Thanks
Jane
On Thu, 14 May 2020 at 16:07, SchulzLab<EMAIL_ADDRESS>wrote:

Hello,
I think I understand your confusion. In the Readme where the necessary
input files for the quantification step were described, we accidentally
used the word reference sequence, when we were talking about the
transcripts.fa file (parameter called transcripts mentioned in the
parameter table).
Please run the the quantification step with supplying the transcripts.fa
file in the config.yaml file. Then it should work.
I have fixed that in the Readme and hope that this confusion can now be
avoided.
Hope that helps,
Marcel
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SchulzLab/Aeron/issues/12#issuecomment-628622587, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ANDCURDDZXA6VPRMPQNBMGDRRPUK7ANCNFSM4M2N44JQ
.

--
Jane Pulman
Technology Specialist and Project Manager, PhD
Genevia Technologies
email<EMAIL_ADDRESS>phone:  +358 45 7873 9870
Skype id: geneviatechnologies

Dear Jane,
how many threads are you using? Try to use fewer threads for the fusion step, that should reduce the memory consumption.
Hope that helps,
Marcel

Thanks Marcel, we tried with just 1 thread to test and it didn't limit the
memory usage.
On Mon, 22 Jun 2020 at 16:06, SchulzLab<EMAIL_ADDRESS>wrote:

Dear Jane,
how many threads are you using? Try to use fewer threads for the fusion
step, that should reduce the memory consumption.
Hope that helps,
Marcel
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SchulzLab/Aeron/issues/12#issuecomment-647507149, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ANDCURFW4V5UUSOISB76D73RX5JOFANCNFSM4M2N44JQ
.

--
Jane Pulman
Bioinformatics Operations Officer, PhD
Genevia Technologies
email<EMAIL_ADDRESS>phone:  +358 45 7873 9870
Skype id: geneviatechnologies

Dear Jane,
we have fixed the problem with thePickAdjacentAlnPairs binary, which was indeed using more memory than it should have. Please update your local version and try again.
Hope it solves the problem,
Marcel


update language configuration + indentation rules + add script to generate language config json

Description
Update the language configuration to improve syntax colorization, auto-closing brackets & auto-indentation.
Fixes #22
Type of change

[x] Bug fix
[ ] New feature
[ ] Breaking change

Checklist

[ ] README updated (if needed)
[x] Version updated (if needed)
[x] Changelog updated (if needed)
[ ] Documentation updated (if needed)

@Woetfin looks good, I have two comments

There are no auto-closing tags for liquid and html, only for {{, {%, etc . Should we look into it now?
Should we link to auto-indent when saving the file? reference

@Woetfin looks good, I have two comments

There are no auto-closing tags for liquid and html, only for {{, {%, etc . Should we look into it now?
Should we also look into auto-indent when saving the file ? reference

hmm those tags should be auto-closing when you type it though? It does do that for me
Yes, we should, but as a separate feature 😄

@Woetfin


Address Dependabot Security Vulnerabilities

How to Address Security Vulnerabilities

Summary
The objective is to address the security vulnerabilities reported by Dependabot, ensuring the safety and integrity of the Vocode open-source library.

Blockers

[x] None

Outcome
Elevate community trust and project credibility, thus enhancing community growth, by proactively managing security vulnerabilities in dependencies.

Technical Details
The most severe vulnerabilities reported are:

CVE-2024-26130 (High Severity): A NULL pointer dereference vulnerability in the [cryptography](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C74905-1%2C74905) package, which could lead to crashes and potential remote code execution.

CVE-2024-1455 (Medium Severity): An XML Entity Expansion vulnerability in the [langchain-core](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C82-1%2C82) package, which could allow malicious input to compromise the service's availability.

CVE-2024-3571 (Medium Severity): A path traversal vulnerability in the [langchain](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C82-1%2C82) package, which could lead to unauthorized file access or remote code execution.

CVE-2024-27306 (Medium Severity): A Cross-site Scripting vulnerability in the [aiohttp](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C5381-1%2C5381) package, which could allow attackers to inject malicious scripts into index pages for static file handling.

Subtasks

[ ] Review the vulnerabilities and their potential impact on the project.
[ ] Prioritize the vulnerabilities based on severity and potential impact.
[ ] Update the affected dependencies to the patched versions.
[ ] Conduct thorough testing to ensure the updates do not introduce any regressions.
[ ] Document the changes and communicate them to the community.
[ ] Monitor for any new vulnerabilities and address them promptly.

Technical Details
The most severe vulnerabilities reported are:

CVE-2024-26130 (High Severity): A NULL pointer dereference vulnerability in the [cryptography](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C74905-1%2C74905) package, which could lead to crashes and potential remote code execution.

CVE-2024-1455 (Medium Severity): An XML Entity Expansion vulnerability in the [langchain-core](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C82-1%2C82) package, which could allow malicious input to compromise the service's availability.

CVE-2024-3571 (Medium Severity): A path traversal vulnerability in the [langchain](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C82-1%2C82) package, which could lead to unauthorized file access or remote code execution.

CVE-2024-27306 (Medium Severity): A Cross-site Scripting vulnerability in the [aiohttp](file:///home/arpagon/tmp/vulnerabilities-vocode.json#1%2C5381-1%2C5381) package, which could allow attackers to inject malicious scripts into index pages for static file handling.

To activate the GitHub Security Report in the main repository (https://github.com/vocodedev/vocode-python), you can follow these steps:

Go to the repository settings.
Navigate to the "Code security and analysis" section.
Enable the "Dependabot alerts" option.

This will allow GitHub to scan the repository's dependencies and generate security alerts for any known vulnerabilities. The alerts will be visible in the "Security" tab of the repository, similar to the example provided https://github.com/ArtisanLabs/vocode-python/security/dependabot. Enabling this feature will help you stay informed about potential security risks and take appropriate actions to address them.


Webhook Admission controller is enabled

Can't be done today: https://github.com/kubernetes/features/issues/492#issuecomment-369385531

https://github.com/kubernetes/kubernetes/issues/60700

Use a DaemonSet to check apiserver flags.


Download and Trigger Motion Camera Photos

Add the ability to download and trigger photos for motion cameras.

Timeline
https://my.goabode.com/api/v1/timeline?device_id=&dir=next&event_label=&from=&last_seen=&last_utc=&size=100&to=
Might be able to catch image capture events through the event service's timeline notification

Timeline events through event service: 'com.goabode.gateway.timeline'


body-parser deprecated undefined extended: provide extended option prevent st2chatops start

I installed StackStorm 3.2.0 via ansible playbook
ansible-playbook stackstorm.yml --verbose

Git HEAD of ansible playbook is
commit 97108985f3351d696d3413f2db3cf3d43eb43a89
Merge: 86a1cec 35abf1d
Author: JP Bourget<EMAIL_ADDRESS>Date:   Tue Apr 14 13:40:42 2020 -0400

    Merge pull request #258 from StackStorm/custom_nginx

    Custom nginx

When I try to start st2chatops, it failed to start with error messages like
systemctl status st2chatops
● st2chatops.service - StackStorm service st2chatops
   Loaded: loaded (/usr/lib/systemd/system/st2chatops.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Sun 2020-06-21 21:36:00 PDT; 6min ago
  Process: 15385 ExecStart=/opt/stackstorm/chatops/bin/hubot $DAEMON_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 15385 (code=exited, status=0/SUCCESS)

Jun 21 21:35:59 agentavtone-masterone.fyre.ibm.com systemd[1]: Started StackStorm service st2chatops.
Jun 21 21:36:00 agentavtone-masterone.fyre.ibm.com hubot[15385]: Mon, 22 Jun 2020 04:36:00 GMT body-parser deprecated undefined extended: provide extended option at node_modules/hubot/src/...t.js:445:21
Jun 21 21:36:00 agentavtone-masterone.fyre.ibm.com hubot[15385]: [Sun Jun 21 2020 21:36:00 GMT-0700 (Pacific Daylight Time)] DEBUG Loading adapter shell
Jun 21 21:36:00 agentavtone-masterone.fyre.ibm.com hubot[15385]: No history available
Jun 21 21:36:00 agentavtone-masterone.fyre.ibm.com hubot[15385]: [137B blob data]
Jun 21 21:36:00 agentavtone-masterone.fyre.ibm.com hubot[15385]: [Sun Jun 21 2020 21:36:00 GMT-0700 (Pacific Daylight Time)] DEBUG Loading scripts from /opt/stackstorm/chatops/src/scripts
Hint: Some lines were ellipsized, use -l to show in full.

I can run ./bin/hubot --adapter slack from command line and I can get hubot connect to my Slack workspace.
HUBOT_SLACK_TOKEN=xoxb-my-token HUBOT_ADAPTER=slack HUBOT_LOG_LEVEL=debug HUBOT_SLACK_RTM_CLIENT_OPTS='{ "logLevel": "de
bug" }' HUBOT_SLACK_RTM_CLIENT_OPTS='{ "retryConfig": { "retries": 20 } }' HUBOT_SLACK_RTM_START_OPTS='{ "mpim_aware": true }'  ./bin/hubot --adapter slack

body-parser deprecated undefined extended: provide extended option node_modules/hubot/src/robot.js:445:21
[Sun Jun 21 2020 21:38:06 GMT-0700 (Pacific Daylight Time)] DEBUG Loading adapter slack
[Sun Jun 21 2020 21:38:07 GMT-0700 (Pacific Daylight Time)] INFO hubot-slack adapter v4.5.5
warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
[Sun Jun 21 2020 21:38:07 GMT-0700 (Pacific Daylight Time)] DEBUG RtmClient initialized with options: {"retryConfig":{"retries":20},"maxRequestConcurrency":1}
[Sun Jun 21 2020 21:38:07 GMT-0700 (Pacific Daylight Time)] DEBUG RtmClient#start() with options: {"mpim_aware":true}
[Sun Jun 21 2020 21:38:08 GMT-0700 (Pacific Daylight Time)] DEBUG SlackBot#authenticated() Found self in RTM start data
[Sun Jun 21 2020 21:38:08 GMT-0700 (Pacific Daylight Time)] INFO Logged in as @hubot in workspace hubot-test-20
[Sun Jun 21 2020 21:38:09 GMT-0700 (Pacific Daylight Time)] INFO Connected to Slack RTM

The log message from command line also claims body-parser deprecated undefined extended.  Seem like this error prevented st2chatops service start via systemctl.
body-parser deprecated undefined extended: provide extended option node_modules/hubot/src/robot.js:445:21

I checked my running st2chatops and I can see in my journalctl logs "Jun 22 09:32:33 centos-8-stackstorm hubot[9156]: Mon, 22 Jun 2020 09:32:33 GMT body-parser deprecated undefined extended: provide extended option at node_modules/hubot/src/robot.js:445:21"
But my st2chatops is running fine.  So the problems isn't with that message.
In your /opt/stackstorm/chatops/st2chatops.env - can you check you just have a single HUBOT_ADAPTER uncommented (I have seen issues when more than one is uncommented).
I presume you require it to be set to slack. Is the HUBOT_ADAPTER set to slack, and HUBOT_SLACK_TOKEN set?
There are some troubleshooting instructions at https://docs.stackstorm.com/troubleshooting/basic_chatops_troubleshooting.html which may help.

What's the platform/environment you're running in?


Bug on sample: "Expandable+draggable with section" - it allows to drag section item between its children

This shouldn't be possible:

Hi.
It is working as expcted, I think that behavior is not a bug. If you want to disallow dragging for group items, make the onCheckGroupCanStartDrag() method return false .

You don't understand. A is the one that has "a,b,c" children. It should be allowed to drag between B and C, but not in its own children.
Also, even when you stop the dragging, you will see that it won't allow you to really put A in between "a" and "b" .

The behavior is by design of this library. Maybe, using the ExpandableLayout or some sort of custom views with RecyclerView will fits your expectation.

I only wanted to try out the sample. I consider this a bug because it lets you drag the parent into its children, but it won't let you put it there.

I'm agree with @AndroidDeveloperLB . I think the children should move with the parent when drag the parent. The parent & children should be a whole when start drag on the parent.
I don't know how to implement this effect, so I collapse all items when I start drag, and re-expand them when the drag ends.

@AndroidDeveloperLB @wliu6v I also agree with your opinion that current behavior is weird and looks like something broken.
However, I'm not going to change the behavior. Because it is too difficult (and I think that is impossible...) to make treating a group and its children items as a single draggable object.

I don't know how to implement this effect, so I collapse all items when I start drag, and re-expand them when the drag ends.

That is a good workaround for this issue. Maybe I can add a sample code.


Repaint at SGGS on button click

I suspect scrollIntoView to be the culprit.

irrelevant after 4e34ace
NOTE: Master is not maintained anymore and the changes are being done to gh-pages
https://bogas04.github/SikhJS


delete unnecessary import

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [JAV-XXX] Fixes bug in ApproximateQuantiles, where you replace JAV-XXX with the appropriate JIRA issue.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

fix #403

Changes Unknown when pulling 3b9b19e6a7a63bacfee386140a4ea8219c18076e on ChinX:chinx into ** on ServiceComb:master**.

Coverage decreased (-0.006%) to 86.849% when pulling 3cb325f50f70a9fc8f7f45bd10beb21afcdd52ea on ChinX:chinx into 3f13c71a8fbd3fc8885adedc665f60d6db9f3afa on ServiceComb:master.


Add Docker

Problem:
Adding a docker is a good move as we can run this in containerized mode and will be mature as an official app
Solution:
A docker file will solve the problem

This project is already on Docker
https://hub.docker.com/r/remnux/ciphey/dockerfile

As Hex has said, we are on Docker. We would like our own Dockerfile with docker organisation though, but that depends entirely on if anyone is willing to help us with that :)


Fix event attribute names in CW pointer contracts

Describe your changes and provide context

Fix event attribute names for cw721 functions related to transfer and approval
Add a new query endpoint for current pointer version and/or CW code IDs
Add a new migration to store the new cw721 pointer code and update metadata
Use reverse pointer registry instead of hardcoded code hash to validate CW->EVM delegatecalls

Testing performed to validate your change
new version tested in unit test
new query CLI tested on local sei

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

Project coverage is 61.24%. Comparing base (e8e4b3b) to head (5b78eb6).
Report is 32 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1659      +/-   ##
==========================================
- Coverage   61.64%   61.24%   -0.40%
==========================================
  Files         365      366       +1
  Lines       26178    26613     +435
==========================================
+ Hits        16138    16300     +162
- Misses       8967     9220     +253
- Partials     1073     1093      +20

Files
Coverage Δ

x/evm/keeper/msg_server.go
75.96% <100.00%> (-2.86%)
:arrow_down:

x/evm/keeper/params.go
80.00% <ø> (-1.82%)
:arrow_down:

x/evm/types/params.go
69.11% <100.00%> (-0.89%)
:arrow_down:

x/evm/module.go
55.72% <20.00%> (-1.19%)
:arrow_down:

x/evm/keeper/pointer.go
96.62% <70.58%> (+18.41%)
:arrow_up:

x/evm/keeper/evm.go
56.34% <0.00%> (+3.86%)
:arrow_up:

x/evm/migrations/store_cw_pointer_code.go
0.00% <0.00%> (ø)

x/evm/keeper/grpc_query.go
37.03% <0.00%> (-12.35%)
:arrow_down:

... and 8 files with indirect coverage changes


Documentation: Ubuntu and Debian HTML pages have double line breaks so apt-get install x \ ... (next line) is treated as a new command, which fails

Copied from https://www.ngscopeclient.org/manual/GettingStarted.html
johnsimons@john-ubuntu2404-scopehal:~$ sudo apt install build-essential git cmake pkgconf libgtkmm-3.0-dev \
libcairomm-1.0-dev libsigc++-2.0-dev libyaml-cpp-dev catch2 libglfw3-dev curl xzip
[sudo] password for johnsimons:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package
libcairomm-1.0-dev: command not found

If you look closely in a text program you will see that tex sneakily prefixed the \ with a \LF and postfixed it with another \LF thus putting the libcairomm-1.0-dev on a new line and breaking the multiline apt-get. This issue is also present for Debian, and possibly other (all?) OS'

It worked fine for Fedora 40 using Firefox (which I used on all platforms)


Evaluation of polynomial using linked list in C

🚀 Feature
Create , Display and evaluate polynomial using linked list in C
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
yes
(Write your answer here.)
Motivation
As a GSSOC participant I want to contribute in the project using my knowledge and help others to learn and grow as well.
(Please outline the motivation for the proposal.)
Pitch
We use polynomials to model the curves also polynomials  are used to design roads, buildings and other structures.  I want to contribute and help others to solve the problem.
(Please explain why this feature should be implemented and how it would be used.)

I would like to work on this issue as a GSSOC participant

I would love to contribute to it as a participant of GSSoC'21

@HarshCasper @iamrajiv can you please assign me the issue

@ankitaggarwal23 can you please assign me this issue


Problems with analyzer error messages for INVALID_OVERRIDE

I'm pretty sure this used to give a better error message a few months ago:
class A	{
  int add(int a, int b) => a + b;
}

class B	extends A {
  @override
  int add();
}

void main() { }

Now it says:
  error • 'A.add' ('add') isn't a valid override of 'B.add' ('add') • test.dart:5:7 • invalid_override
  error • 'B.add' ('int Function()') isn't a valid override of 'A.add' ('add') • test.dart:6:3 • invalid_override

The first error message is entirely bogus.
The second error message is fine up to the second parenthetical, which just repeats the name of the method instead of giving its signature.

@stereotype441 - I can repro in the latest Dart pad - this does look like a regression.

https://dart-review.googlesource.com/c/sdk/+/117284 fixes the messages. The duplication and the incorrect location are still outstanding issues.

@Hixie wrote:

The first error message is entirely bogus.

The situation here is similar to the one described in #36191, and in both cases it is indeed confusing when we get an error message of the form "Superclass.m isn't a valid override of Subclass.m". We'd normally expect the subclass declaration to override the superclass declaration, not the other way round.
However, this kind of check is justified.
Regular override relationships are checked for each case where a member declaration D2 overrides another one D1 (for instance, when D2 is declared in a class B implements A, and D1 is declared in A). However, there is also another kind of override check, which takes place when it is verified that each concrete class has an implementation of each of the members in its interface, i.e., that it fully implements its interface. And this second kind of override check can be "the other way round".
In the given example the concrete implementation A.add is inherited by the concrete class B, and this means that the member signature int add(int, int) must be a correct override of the member signature int add() that was added by an abstract declaration in B, and it's not a correct override.
I think the problem here is that the "is fully implemented" override check has no extra wording, so we don't get any hints at all why there would need to be an override relationship from a subclass declaration to a superclass declaration (that is, "upside down"). We just treat the "fully implemented" check the same as any other override check.
Maybe the error messages associated with the "fully implemented" check could use a different wording, maybe saying that it isn't correct to inherit A.add into B because it doesn't correctly override B.add?

@Hixie wrote:

The first error message is entirely bogus.

The situation here is similar to the one described in #36191, and in both cases it is indeed confusing when we get an error message of the form "Superclass.m isn't a valid override of Subclass.m". We'd normally expect the subclass declaration to override the superclass declaration, not the other way round.
However, this kind of check is justified.
Regular override relationships are checked for each case where a member declaration D2 overrides another one D1 (for instance, when D2 is declared in a class B implements A, and D1 is declared in A). However, there is also another kind of override check, which takes place when it is verified that each concrete class has an implementation of each of the members in its interface, i.e., that it fully implements its interface. And this second kind of override check can be "the other way round".
In the given example the concrete implementation A.add is inherited by the concrete class B, and this means that the member signature int add(int, int) must be a correct override of the member signature int add() that was added by an abstract declaration in B, and it's not a correct override.
I think the problem here is that the "is fully implemented" override check has no extra wording, so we don't get any hints at all why there would need to be an override relationship from a subclass declaration to a superclass declaration (that is, "upside down"). We just treat the "fully implemented" check the same as any other override check.
Maybe the error messages associated with the "fully implemented" check could use a different wording, maybe saying that it isn't correct to inherit A.add into B because it doesn't correctly override B.add?

Thanks for the explanation, @eernstg !!

Thanks for the explanation, @eernstg !!


contributing problem

i encountered errors when i ran your code in all the lines

In order to reduce distractions from the exercise, please open your issue in the partner repo:
https://github.com/danthareja/contribute-to-open-source-server/issues/new
I'll be happy to chat with you there, @sourabh1031!


Feature/plot process

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

Project coverage is 94.27%. Comparing base (ae673ff) to head (810f2c2).
Report is 3 commits behind head on main.

Files
Patch %
Lines

src/pytred/helpers/visualize.py
91.37%
2 Missing and 3 partials :warning:

src/pytred/data_hub.py
84.61%
1 Missing and 1 partial :warning:

src/pytred/decorators/__init__.py
0.00%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
- Coverage   94.77%   94.27%   -0.50%
==========================================
  Files           7        7
  Lines         268      332      +64
  Branches       59       77      +18
==========================================
+ Hits          254      313      +59
- Misses         11       13       +2
- Partials        3        6       +3

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


Disable mTLS during initial setup

Disables mutual tls by default. Otherwise, the majority of the tutorial will not work as mTLS does not work with OpenShift's router which relies on pod IP address endpoints

@rafabene Reviewed and looks fine to me

+1 from me too.


测试提交

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[ ] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[ ] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
[ ] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Do tests on your own repositories, thank you

在您自己的存储库中进行测试，谢谢

I'm sorry. I thought it was tested in my repositories. Just getting started as a programmer。


Add support for pause and play

AiiDA has a built-in action to manipulate processes. In the case of ‘pause’, ‘play’ and ‘kill’, one is sending what is called a Remote Procedure Call (RPC) over RabbitMQ. The RPC will include the process identifier for which the action is intended and RabbitMQ will send it to whoever registered itself to be listening for that specific process, in this case the runner that is running the process.
The drawback is that one can only pause an existing node (with process identifier). In the WorkTree, we want to pause a node that hasn't started yet.
Because we don't want to block the WorkTree engine, since other nodes could still running. I don't have a clear idea how to do this. Maybe, we also need to use the RPC

One solution is to pause a node (process) while launching it. This may be added soon in the aiida-core.


v0.5.2

 This commit d384ceb627349d801d12d419b331e497b44e695a is built and deployed to Vercel.
 Preview: https://action-vercel-deployment-bpd1icumt.now.sh
 This pull request has been automatically deployed with vercel-deployment


[🐛 Bug]: Write EOF error in Windows 11 system, Woking fine in MacOS (M1)

next-on-pages environment related information
node:events:497
throw er; // Unhandled 'error' event
^
Error: spawn bash ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn bash',
path: 'bash',
spawnargs: [ '--noprofile', '--norc' ]
}
Node.js v21.7.2
Description
I created this project in Macbook (M1). Then I cloned the repo to PC (Windows 11). When I try to start dev server it throws this error
`C:\Users\kisan\Projects\small-link\node_modules\wrangler\wrangler-dist\cli.js:29573
throw a;
^
Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16) {
errno: -4095,
code: 'EOF',
syscall: 'write'
}
Node.js v21.7.2`
Reproduction
Clone this repo: https://github.com/kisankumavat85/small-link

Install the dependencies
Start the dev server

Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
No response
Additional Information
No response
Would you like to help?

[ ] Would you like to help fixing this bug?

Used WSL (Windows Subsystem for Linux) to run and it worked.


Error on the fifth shard

On the first request of the fifth shard I believe there is an index error as it causes an error. All other pieces run properly aside from the fifth shard. Is there a way to fix this?

I found that the number of data in purchase2_train.npy generated by running init.sh was 249215, which was different from the number in the datasetfile.
So I fix this by modifying this code in prepare_data.py :
X_train, X_test, y_train, y_test = train_test_split(data, label, **test_size=0.1**)
Hope that helps

According to the proposal, the change from 0.2 to 0.1 still has the above problems.

Same here.
Even I change from 0.2 to 0.1, there is still the index error IndexError: index 280367 is out of bounds for axis 0 with size 280367.
any suggestion till now?

Any solution found regarding this issue?

The problem is there in the datasets/purchase/datasetfile. They have hard coded train and test sample size. The prepare_data.py splits according to test_size = 0.2, but "datasetfile" has sample sizes according to test_size = 0.1. Hence, change train & test sample size in "datasetfile". (Replace with nb_train = 249215 and nb_test = 62304)

Thanks for your solution. It solved my problem perfectly.

The problem is there in the datasets/purchase/datasetfile. They have hard coded train and test sample size. The prepare_data.py splits according to test_size = 0.2, but "datasetfile" has sample sizes according to test_size = 0.1. Hence, change train & test sample size in "datasetfile". (Replace with nb_train = 249215 and nb_test = 62304)

The problem is there in the datasets/purchase/datasetfile. They have hard coded train and test sample size. The prepare_data.py splits according to test_size = 0.2, but "datasetfile" has sample sizes according to test_size = 0.1. Hence, change train & test sample size in "datasetfile". (Replace with nb_train = 249215 and nb_test = 62304)

This. And remember to run python prepare_data.py after making this change.


Add django-google-sso

Hi, can I suggest add this? This library aims to simplify the process of authenticating Google users in Django projects.

Medium: https://medium.com/@megalus/adding-google-authentication-to-your-django-projects-53e806351073
Full Docs:  https://megalus.github.io/django-google-sso/

Thank you very much.

@chrismaille thank you for the contribution and project suggestion.
The project looks useful, but my two concerns are that it feels slightly niche (not a bad thing) and that while star count is a kind of pointless metric, it's not a non-zero factor either. We are going to pass for now, but are happy to revisit it as the project grows.
I noticed the project wasn't on Django Packages yet so I added it here: https://djangopackages.org/packages/p/django-google-sso/  (Maybe that can help it get more visibility too)


Add a config file like .ngcli or ngcli-conf.js to the generated app

Customization is an important factor for any tools to succeed. It would be better if we could add one config file like .ngcli or ngcli-conf.js so that developer can customize their own work flow.
e.g:

Directory structure (e.g: src/components/mycomp)
SASS setup enable/disable
etc.

Hi Tapas,
I'm not sure whether this is interesting to you, but here is a study I did of different ways people put configurations/settings into files. Maybe this will help you decide which way you like best. The spreadsheet shows the organization of all sorts of code, but the configuration stuff (I called "settings") are on rows 124-140.

That's true. You are supposed to use the ember-cli-build.js to achieve the same goal, but right know the angular-cli isn't so extensible.

We're already building an angular-cli.json file for route configurations (https://github.com/angular/angular-cli/issues/287). Code generated using that file will live next to your code (for IDE support).
Alternatively, support for SASS/SCSS and other tools are added using the ng install command.
I consider this solved indirectly.


IndentationError: unexpected indent

It shows this error.

Updated the code to remove that error.
NOTE: Duolingo removed their Flirting and Idioms lessons, so this script will not work.


Auto-fill not working for some users

Bug Report
Paul was trying to get kevin's username on the sphinx devs tribe to autocomplete to kevin’s username to create a mention.
It worked for other names but when he tried kevin’s it didnt.
Paul has noticed this on and off with other tribes
Steps to recreate
Note: Tom S tried recreating on the same tribe and same name but worked for me

Start typing
Tap @
Start tying @ kev
Press tab to auto-fill
Doesn't work

This is not a bug, but a limitation of the feature. As members info is not visible to other members in a tribe other than from previous messages they sent, the mentions feature is based on that. So if you have a partial restore of your account and you try to mention someone on a tribe where there's no messages from him on it, then the mention won't show up in the suggestions list.


Broken on Iceweasel

The following error occurs when visiting the site on iceweasel
TypeError: Rusha._core is not a constructor

What version of Iceweasel are you using?
Does the error happen in Firefox?

I'm using version 31.8.0, and no the error only seems to be specific to Iceweasel

Looks like the Rusha package (used for sha1 hashing) is broken on Iceweasel (i.e. Firefox 31). I did a bit of digging and filed a bug on the Rusha repo: https://github.com/srijs/rusha/issues/30
If the Web Crypto Subtle API is available (Iceweasel/Firefox 34 and later) then that will be used instead of Rusha. If you use a newer version of Iceweasel, this problem should not exist. If Rusha fixes the bug, then it will start working in Firefox 31 as well.


I want clone the node kinldy can you please help me

hello I want to clone the node for example
I select the node then click on clone button so it will clone the another node for me
thanks in advance

If I understand you properly a solution is quite easy.
You have your component which is wrapper for flowchart and it passes configuration of nodes and connections.
So you can listen to the event named 'select'. Then you create new object of node with the same data what selected node has currently. Then you add this object to the list of nodes. Flowchart render new view with added cloned node.

@mrzygood is it possible to send Example?

@mrzygood is it possible to share Example?

Maybe I will find time tomorrow.

will be waiting

If I understand you properly a solution is quite easy. You have your component which is wrapper for flowchart and it passes configuration of nodes and connections. So you can listen to the event named 'select'. Then you create new object of node with the same data what selected node has currently. Then you add this object to the list of nodes. Flowchart render new view with cloned node.

@mrzygood I want to do below things
1st step : select Node
2nd Step : click on clone button where call clone(node) method
3rd step : clone(node) method will clone the node and append to nodes

If I understand you properly a solution is quite easy. You have your component which is wrapper for flowchart and it passes configuration of nodes and connections. So you can listen to the event named 'select'. Then you create new object of node with the same data what selected node has currently. Then you add this object to the list of nodes. Flowchart render new view with cloned node.

@mrzygood I want to do below things
1st step : select Node 2nd Step : click on clone button where call clone(node) method 3rd step : clone(node) method will clone the node and append to nodes properties

Here you can find really basic example:
https://github.com/mrzygood/flowchart-vue/blob/mm/example-1/src/views/App.vue

@mrzygood  thank you
I closed the issue


I got an error: Cannot use 'in' operator to search for 'issued' in undefined

This is error:
TypeError: Cannot use 'in' operator to search for 'issued' in undefined
at Manager.garbageCollection (/usr/local/src/livechat/node_modules/socket.io/lib/manager.js:1023:21)
at wrapper [as _onTimeout] (timers.js:261:14)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
It dont know when it raise. while using app, the app die, I check log and saw it.
my socket.io version: 0.9.16, mongodb 1.4.7, Iam using cluster and domain in nodejs

this looks like an error with socket.io

I dont think so, you can refer some links below:
https://github.com/Automattic/socket.io/pull/408
https://groups.google.com/forum/#!topic/socket_io/1i9awrdZ0CI
https://github.com/Automattic/socket.io/issues/2038
https://github.com/Automattic/socket.io/issues/1362
http://www.farennikov.com/2013/06/scaling-socket-io-with-node-js-cluster/#.VPkcSPmUddM

that still doesn't show that the error is caused by this module. and you might not get much help from socket.io devs either since you're using an older version.


display "busy" cursor while RUDY is calculating the map

Describe the bug
For ispd24 cluster.def (9.8M std cell) it takes RUDY ~30 seconds to compute the map.
Expected Behavior
Please change the cursor from "pointer" to "busy" while computing RUDY to give the user feedback that OR is doing something.
Environment
Feb 6 OR M1 macOS Sonoma

To Reproduce
openroad -gui
read_lef lef/Nangate.lef
read_def def/cluster.def.gz
show RUDY map
Relevant log output
No response
Screenshots
No response
Additional Context
No response

@gudeh

References:
https://liangrj2014.github.io/ISPD24_contest/
#4618

I noticed that other heatmap calculations also do not indicate when they are busy, and these heatmaps take some time with larger designs as well. Therefore, I have made modifications to show a busy indicator for any heatmap calculation, not just for RUDY.

Covered by #4638.


Page cache invalidated excessively?

We've recently upgraded to Django 1.8. We were using django.contrib.admin.apps.SimpleAdminConfig (with admin.autodiscover() in urls.py). However that doesn't let django check detect problems with admin models so we switched to the modern way of doing it.
Unfortunately this means every management command now initialises django cms. This invalidates the page cache.
For us that just outright explodes - if you build AMI's or docker containers in a dedicated build environment (i.e. with no prod access - no postgres, no redis, etc - literally just an isolated box that builds containers or vm images) that means you get an exception like this:
   File "/app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
     utility.execute()
   File "/app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 325, in execute
     django.setup()
   File "/app/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
     apps.populate(settings.INSTALLED_APPS)
   File "/app/local/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate
     app_config.ready()
   File "/app/local/lib/python2.7/site-packages/django/contrib/admin/apps.py", line 22, in ready
     self.module.autodiscover()
   File "/app/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 24, in autodiscover
     autodiscover_modules('admin', register_to=site)
   File "/app/local/lib/python2.7/site-packages/django/utils/module_loading.py", line 74, in autodiscover_modules
     import_module('%s.%s' % (app_config.name, module_to_search))
   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
     __import__(name)
   File "/app/local/lib/python2.7/site-packages/cms/admin/__init__.py", line 11, in <module>
     plugin_pool.plugin_pool.discover_plugins()
   File "/app/local/lib/python2.7/site-packages/cms/plugin_pool.py", line 32, in discover_plugins
     invalidate_cms_page_cache()
   File "/app/local/lib/python2.7/site-packages/cms/cache/__init__.py", line 69, in invalidate_cms_page_cache
     version = _get_cache_version()
   File "/app/local/lib/python2.7/site-packages/cms/cache/__init__.py", line 15, in _get_cache_version
     version = cache.get(CMS_PAGE_CACHE_VERSION_KEY)
   File "/app/local/lib/python2.7/site-packages/redis_cache/backends/base.py", line 32, in wrapped
     return method(self, client, key, *args, **kwargs)
   File "/app/local/lib/python2.7/site-packages/redis_cache/backends/base.py", line 245, in get
     value = client.get(key)
   File "/app/local/lib/python2.7/site-packages/redis/client.py", line 863, in get
     return self.execute_command('GET', name)
   File "/app/local/lib/python2.7/site-packages/redis/client.py", line 570, in execute_command
     connection.send_command(*args)
   File "/app/local/lib/python2.7/site-packages/redis/connection.py", line 556, in send_command
     self.send_packed_command(self.pack_command(*args))
   File "/app/local/lib/python2.7/site-packages/redis/connection.py", line 532, in send_packed_command
     self.connect()
   File "/app/local/lib/python2.7/site-packages/redis/connection.py", line 436, in connect
     raise ConnectionError(self._error_message(e))
 redis.exceptions.ConnectionError: Error 111 connecting to <IP_ADDRESS>:6379. Connection refused.

I supposed our build environment could disable the cache or using a dummy in memory one. For now we will revert our change (and lose manage.py check functionality) to work around this but I thought it was worth reporting - obviously in our case it flat out doesn't work, but I don't imagine people expect their page cache to be invalidated if they run manage.py --help?
Even with the old way of doing this, some gunicorn setups would invalidate their page cache for every worker thread/process/greenlet that is started. I believe some WSGI containers cycle their worker processes every X requests, again causing the page cache to be invalidated. And if you deploy on a platform with autoscaling then starting a new worker to handle extra load is going to invalidate caches?

Well, plugins must be discovered whenever the django environment is set up, or you could not reliably run commands, and for good reason you'd ant to invalidate page cache whenever you discover plugins. I think we can only document this behavior
@mkoistinen @FinalAngel ?

i haven't dug into how plugin discovery interacts with the page cache. Is there an overview somewhere of how it works?
There must be some way of improving this even if we can't fix my use case - I can't believe that running 'manage.py --version' should need to invalidate the cache!
If I was making a page cache I'd make a hash of all my plugins and their versions and use it as a cache key prefix/postfix. This way I'd only seem to clear the page cache when I upgraded or installed a new plugin. and I wouldn't even touch the cache at all to do 'manage.py --help'. Would something like that even remotely work with cms?

Plugins do not have a version (not necessarily) and I don't know a way to reliably hash their code.
A possibility here, is to move the plugin loading phase from the admin.py

Delaying plugin loading would certainly fix this for my use case, so :+1: for that!
It will still purge the cache though, just later. So when my web cluster autoscales due to load it will purge the cache. Not the best time to purge caches! So hypothetically, if i could set a key prefix manually at the right time (when ive deployed?), could i remove the call to purge the cache during plugin discovery?
What i'm thinking is, wrap that particular purge with a settings check - settings.CACHE_PESSIMISTIC. It would default to True and maintain the current behaviour. Or alternatively settings,CACHE_AGRESSIVE default to False. Then i would set my own cache prefix using one of these:
a) I only use tags and my project is tagged as well. So I can use setuptools foo to freeze my environment an hash it. As i know the name of my projects egg/wheel/etc I can:
{p.project_name: p.version for p in pkg_resources.require('myproject')}

I just need to sort and hash.
b) For an autoscaling AWS environment i would prebake AMI's with packer. So there i would probably use the id of the packer image as the cache key. New AMI = new software = new cache.
c) For heroku i would look into getting the release number or the sha that is deployed.
So after a new deployment the page cache would effectively be purged, and the plugin pool purge doesn't need to happen. If another node is brought online with the same exact code, no purge is required. For existing users it would continue to purge every time a process is started unless they looked at the cache docs.
Does that sound like something that might work?

@Jc2k it sounds way too depending on the deployment environment and it's not something that django CMS can handle
Probably we can discuss whether to add a setting to invalidate cache on project restart or not (enabled by default)
Then it's up to the project owner to provide a way to properly invalidate the cache upon deployment
@mkoistinen @FinalAngel what's your opinion here?

@yakky totally agree that it's project specific, and what you say sounds like exactly what i'm thinking. What i'm imagining is a new section in the cache documentation that gives some examples of how you can tie your cache invalidation to your deployment environment - which i'm happy to do a PR for. That would be accompanied by the setting that you described.
But i don't know enough about the page cache to know if thats enough - hopefully @FinalAngel and @mkoistinen can help!

@Jc2k, I'm happy to help if I can. I recently did a ton of work on the placeholder cache, so, while its fresh in my mind, let me know how I can help. Interesting use-case and sounds like it may become more and more relevant so, let's figure this out.

@mkoistinen thanks for replying.
I guess the first thing is I want to test my assumptions about the problem:

If the page plugins change or are upgraded we must purge the cache
There is no reliable way to turn the discovered page plugins into a stable cache key - no way to hash the code, and no reliable versions we can use
Currently loading page plugins always 'purges' the page cache - which is reliable but potentially frequent
If using django.contrib.admin then even running manage.py --help will purge the page cache
In docker/Amazon AMI style build environments builds fail because they don't have access to a page cache to purge.
In an autoscaling environment adding more instances will also purge the page cache, right when its needed the most!

Does that cover everything?
I don't know if there is some way to improve the page plugin infrastructure so that it does not need to purge the cache at load time - it seems like it would be very hard!
So my suggestion was that the cache key should be something the user can set as a setting:

Setting this setting would turn off the mechanism that purges the cache at startup
The setting would act as a cache prefix. The user would be responsible for setting this when they deploy:
Use anisble/etc to update settings.py with a git sha or other reliable deployment version indicator as teh cache prefix.
For AWS, maybe the deployment can reference the AMI ID?
For heroku maybe the deployment number can be accessed somehow?
In both of these cases you could use the git sha of the project that is being deployed (or the first 8 characters) as a cache prefix
The current behaviour is retained as the default.

And the result should be:

A new version getting deployed will result in a new cache prefix being used. As far as cms is concerned it will be like it was started with an empty cache.
Spinning up more instances will result in the same cache key being used. So they will benefit from the existing page cache instead of purging it.
Users can use django.contrib.admin without mange.py purging the cache even for things like --help

Does this sound sane and like something that could be merged?

OK, so, in scaled environments, are you attempting to deploy new instances with their cache pre-populated? So, for example, if you're using a shared cache server (db cache backend, memcache server or Redis server, etc.), new instances should just start accessing existing content in this cache and certainly should not clear it on startup.

I think this is not only very reasonable, but if its not possible to do this now, I think it needs attention. It isn't immediately why the cache "must be cleared on startup". I would say that if this is the current behavior, we should seek to remove fix it.

Regarding the cache prefixes, etc. We do currently use a cache prefix in all of the caches I am aware of in the cms. This is set by CMS_CACHE_PREFIX and could easily be set by your provisioning scripts and would be a great way to slot in new instances that point to the existing caches, or even to slot in upgraded deployments that all start accessing a fresh cache. This is here already. Provided we fix point 1 above, this is done (to the best of my knowledge).

There is caching all over the CMS. In general, this is a good thing =). However, they're not all implemented the same way and I would argue that this is also a good thing. Here's a couple of different implementations that I am aware of:

There are many ad-hoc cache systems througout the cms that use pretty "normal" Django object-level caching. By normal, I mean, compute some key, prefix the key with the value of CMS_CACHE_PREFIX, then store/retrieve/invalidate using cache.get()/cache.set()/cache.delete().

The menu system uses a fairly "normal" cache system, except that it uses the DB to store its keys. While at first glance this seems nonsensical, its not really, because the keys are rather compound and need to be fetched using various sorts of lookups and SQL is pretty ideal for this. I think some performance gains could be made here, however, by shifting the keystore into some intelligent manager that permitted the sort of access that we need. But, this doesn't seem that relevant here =)

The page and now the placeholder caches both use a Cache Versioning Strategy. This uses the cache itself to store cache versions. The key to fetch this version is computed in the more classic way using the CMS_CACHE_PREFIX et al. Cache invalidation is done by simply changing the version key, this effectively renders all the cached content inaccessible, and it will be left to expire naturally. This strategy is, IMO, the best for this, because we do often get numerous cache invalidation requests in rapid fire succession and with this strategy, we're about as close to a noop as we can get. However, even if you deploy a new instance, it should just pick up the correct version if provided the same CMS_CACHE_PREFIX string, and march right along with the other instances.

The plugins are currently cached against their parent placeholder object, not using the cache backend at all, but rather attribute injection onto the placeholder on a per-request basis. (I think this needs some attention.)

Getting back to your issue at hand, I think that all we have to do is figure out why the cache is cleared on startup and fix it, or at least make it switchable behavior.

From the traceback I see when build AMI images i'm hitting this invalidate_cms_page_cache:
https://github.com/divio/django-cms/blob/develop/cms/plugin_pool.py#L31
Which i'm hitting via this module level invocation of discover_plugins():
https://github.com/divio/django-cms/blob/develop/cms/admin/__init__.py
Which is imported by django admin autodiscovery. Which means it happens it happens AppConfig loads django.contrib.admin. (If you use the old backwards compatible version of admin, it will happen when you call admin.autodiscover() in urls.py.
This means that invalidate_cms_page_cache() is called every time the AppConf registry is fired up or urls.py is loaded (in compat mode). This will increment the version number you describe. In the AppConf case, calling manage.py check will do it. And i'm pretty sure ive seen manage.py --help do it.

As @yakky says above, we do need to discover the plugins for a number of reasons. But, it isn't immediately clear to me why we must invalidate the page cache when discovering plugins. I wonder if this could be fixed simply by removing lines 30 and 31 from the plugin_pool, a lot has changed in caching since they were added. Obviously, testing needs to be done to ensure this is OK, but I would start there.

So my understanding was that you invalidated the page cache so that any new code that had been deployed that might affect how things are rendered would be applied. If that is the desired behaviour then I can see that you might defer the invalidation to later in the rendering process (and that would stop things like mange.py --help invalidating the page cache). But surely it would still need to happen - and without a way to tell "has a deployment happened" it would happen too frequently.
So in my mind, if we remove that invalidate_cms_page_cache() call from the plugin_pool code then either:

All users of django cms must now bump CMS_CACHE_PREFIX when they deploy cms changes.
We would need some heuristic to conditionally invalidate the cache.
Add a CMS_CACHE_PURGE_ON_START setting that defaults to True to retain the current behaviour. If set to False then proceed as (1).

What do you think?

I have probably been making assumptions about what is actually stored in the page cache - could you clarify that?
And point (iv) are you talking about the plugin itself? (Python object instances) Or are you talking about html fragments rendered by said plugins?


ComposeStreamBundle.compose_stream_datum: AttributeError: 'dict' object has no attribute 'compose_stream_datum'

Calling ComposeStreamBundle.compose_stream_datum with indices returns AttributeError: 'dict' object has no attribute 'compose_stream_datum'
Expected Behavior
I expect to be able to call each of the bundles and yield StreamDatum
Current Behavior
Method crashes with AttributeError: 'dict' object has no attribute 'compose_stream_datum'.
One thing I might be doing differently is that as per the deprecation notice of compose_stream_resource I am using the class variant.
Possible Solution
Not sure
Steps to Reproduce (for bugs)
this pull request and test_streaming_plan.py
or:
`from pathlib import Path
from typing import Iterator
from event_model import (
ComposeStreamResource,
ComposeStreamResourceBundle,
StreamDatum,
StreamRange,
)
def main():
bundler_composer = ComposeStreamResource()
path: Path = Path("root")
bundle: ComposeStreamResourceBundle = bundler_composer(
    spec="test",
    root="root",
    resource_path=str(path),
    data_key="name",
    resource_kwargs={
        "path": str(path.as_posix()),
        "multiplier": 1,
        "timestamps": "/entry/instrument/NDAttributes/NDArrayTimeStamp",
    },
)
indices_range = StreamRange(start=0, stop=1)

def compose(b: ComposeStreamResourceBundle):
    yield b.compose_stream_datum(indices_range)

iterator: Iterator[StreamDatum] = [compose(b) for b in [bundle]]
print(iterator)

if name == "main":
main()
`
Context
Trying to set up a simulated h5py writer for ophyd-async issue https://github.com/bluesky/ophyd-async/issues/131
Your Environment
python 3.9

resolved: compose... for d in datasets creates an array of 2 composed, while the theoretically equivalent for d in datasets: bundle = compose ... \n bundles += bundle creates an array 4 items, decomposing the bundle


Proposed Efficiencies

Hey Nick!
I'm not sure if you were planning on going over some of the changes I've proposed "on the fly" during the talk, but here are some changes that might help to make things more "Salty".
Take care!

Genius! This looks awesome. Lots of features I've never used, but I will now. 😉
I'll merge this during the presentation! Thanks!


MINOR: Fix task and cache level metrics caller

This is a cherry-pick of the metrics fixes included in #5398
Committer Checklist (excluded from commit message)

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

Yeah, I'm going to create a JIRA for adding unit test for it.

@mjsax This only affects the sensor names, not the metric names. We only test the metric names.


[Auto] Bitcoin PR batch Wed Feb 18 23:36:20 2015

Contains:

Avoid copying undo data
test: Fix DoS tests after c74332c
Add warning about the merkle-tree algorithm duplicate txid flaw
Fixing improper input syntax and failing bounds check

Abandoning 1.9 development branch in favour of 1.10.


Still cannot see Status when I drill down too far...

Description
When I go to  certain level of folders I stop seeing the status column.
C:\Users\bruce\OneDrive\Documents\Lakshmi\Chair Yoga does no show
C:\Users\bruce\OneDrive\Documents\Lakshmi\ shows
Steps To Reproduce
I  go to C:\Users\bruce\OneDrive\Documents\Lakshmi\Chair Yoga and stop seeing status column
Expected behavior
Expect to see the status column
Files Version
<IP_ADDRESS>
Windows Version
21h2 22000.376
Relevant Assets/Logs
No logs

Do you see it if you scroll horizontally?

Still merging with #6227


Changed screen capture input to capture entire desktop instead of only primary monitor

Changed img = ImageGrab.grab(None) to use pywin32 instead via a BitBlit of win32con.SRCCOPY. This new method captures the entire virtual screen, across all displays. (The old ImageGrab.grab call will only capture the primary display's image, which could be problematic for users with multiple monitors.)
This adds new Windows dependency of pywin32-220.win32-py3.4.exe ( https://sourceforge.net/projects/pywin32/files/pywin32/Build 220/ )
Note: Users who previously never calibrated and have multiple monitor setups will now need to calibrate. (They can no longer rely on IkaLog defaulting to capture the entire screen of their primary monitor.)

Sounds good to me. I'll merge the change and confirm the function later. Thanks!


chore: bump typescripts to 4.4.4 to fix compile issue with @types/koa

Which problem is this PR solving?

tsc in instrumentation-cucumber and instrumentation-aws-sdk is older than other package. When run tsc -p .for instrumentation-aws-sdk @types/koa is type check but the  new version of @types/koa required at least<EMAIL_ADDRESS>to work

Short description of the changes

bump typescript for instrumentation-cucumber and instrumentation-aws-sdk to 4.4.4

EDIT: enable explainFiles in tsconfig show this message:
Entry point for implicit type library 'koa' with packageId '<EMAIL_ADDRESS>
So clearly tsc is loading all @types/* package in node_modules

One thing I don't yet understand is why tsc complains about koa when the dependency for the koa instrumentation is aligned correctly. Is it related to dependency hoisting?

Yes, we hoist on @types/* to root directory and tsc will check all @types/* in both your current node_modules folder and root node_modules folder.


Returning raw result as property of data array

As proposed as comment on #87

BTW: Is it intended that SmartyStreets.prototype.geocodedoes not retzrn an array?

No it's an error all geocoder must return an array

OK, marked this as issue #89, but I don't know this geocoder, so I can't fix it easily myself...


MVC 6 @Html.RadioButtonFor "checked" not working

@Html.RadioButtonFor(model => model.Gender, "Male", new { @checked = "checked" })
@Html.RadioButtonFor(model => model.Gender, "Female", new { Checked = "checked" })
@Html.RadioButtonFor(model => model.Ad, "Male", new { Checked = "" })
I've tried them all. But not working.
version: 6.0.0-beta7

ASP.NET 5 / MVC 6 Ajax post Model to Controller
http://stackoverflow.com/questions/28782928/asp-net-5-mvc-6-ajax-post-model-to-controller

@opalrigby834 the StackOverflow thread you mentioned has been answered a number of times. What exactly is the issue you're seeing?
Assuming your concern is the checked property in the htmlAttributes argument: You've provided an expression and a value to compare it against. That comparison always overrides a checked value from htmlAttributes. Other htmlAttributes values are visible in the generated HTML.
Please let us know if something is not working as designed.


Add a Page for Domain for the DDD section

Make sure the concept of "domain model" is mentioned and hot linkable.

Currently in progress in sadukie/ddd-updates-202312 branch


Make Numba an optional dependency

Signed-off-by: Beat Buesser<EMAIL_ADDRESS>Description
This pull request make Numba an optional dependency.
Fixes #1875
Type of change
Please check all relevant options.

[x] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Codecov Report

Merging #1884 (51fd257) into dev_1.12.2 (3e3a438) will decrease coverage by 34.75%.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           dev_1.12.2    #1884       +/-   ##
===============================================
- Coverage       85.90%   51.15%   -34.76%
===============================================
  Files             248      248
  Lines           23312    23312
  Branches         4212     4212
===============================================
- Hits            20027    11926     -8101
- Misses           2224    10784     +8560
+ Partials         1061      602      -459

Impacted Files
Coverage Δ

art/attacks/evasion/carlini.py
7.55% <0.00%> (-86.74%)
:arrow_down:

art/attacks/evasion/pe_malware_attack.py
14.28% <0.00%> (-84.80%)
:arrow_down:

art/attacks/evasion/square_attack.py
10.32% <0.00%> (-84.04%)
:arrow_down:

...ks/inference/membership_inference/shadow_models.py
12.93% <0.00%> (-81.04%)
:arrow_down:

art/attacks/poisoning/gradient_matching_attack.py
8.61% <0.00%> (-80.53%)
:arrow_down:

...ture_adversaries/feature_adversaries_tensorflow.py
14.42% <0.00%> (-79.81%)
:arrow_down:

art/attacks/evasion/boundary.py
14.45% <0.00%> (-79.52%)
:arrow_down:

art/attacks/evasion/graphite/utils.py
10.37% <0.00%> (-79.25%)
:arrow_down:

...attacks/evasion/auto_projected_gradient_descent.py
7.45% <0.00%> (-78.83%)
:arrow_down:

...feature_adversaries/feature_adversaries_pytorch.py
14.01% <0.00%> (-78.51%)
:arrow_down:

... and 117 more


Mod patches

RPG Style Level Up
and MiscRobots++

I think we are almost ready for a release. The only remaining addition I think is the neolithic tools.

https://gist.github.com/20910e429a635004c776f49cf6e7c498
getting some errors that weren't there before I merged this PR.

Yeah it's my fault for reorganizing the name. Can you check that you have omly one StatPatch.xml or similar file? It should be deleted, except for the one in 1.1/Source/Defs/Misc.
I also see there's a translation error I don't recognise. Don't know how to check that.

Deleting the Temp_Patch/StatPatch.xml fixed it lol.


Shell stuck on same error even for valid code proceeding invalid code

Description:

=$ var t = int.typeIds();                                                                                took 103 ms

=$ t                                                                                took 509 ms
| error: unknown type 'TypeId'
|       var 't = <TypeId[]? & readonly> __recall_any("'t");
|                 ^----^
| Compilation aborted due to errors.

=$ type R record {};                                                                                took 89 ms
| error: unknown type 'TypeId'
|       <TypeId[]? & readonly> __recall_any("");
|        ^----^
| Compilation aborted due to errors.

Steps to reproduce:
Affected Versions:
Swan Lake Beta-2
OS, DB, other environment details and versions:
Related Issues (optional):

Found this error just after https://github.com/ballerina-platform/ballerina-lang/issues/32085
Suggested Labels (optional):

Suggested Assignees (optional):

Related to https://github.com/ballerina-platform/ballerina-lang/issues/32085

In Ballerina shell implementation, user input is discarded only if that particular user input contains an error. In this case var t = int.typeIds(); user input is a valid user input. And shell accepts the user input and shell updates the template bal file. But due to a bug in the shell/ compiler (compiler in this case) it raises an error and error is propagating with the bal template file.
Need to identify and fix the related to bug avoid this type of cases.

If you mean #32085 then I don't think that can be fixed from compiler side.

https://github.com/ballerina-platform/ballerina-lang/issues/32085 will be fixed by PR https://github.com/ballerina-platform/ballerina-lang/pull/32746
issue was in the ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/BIRPackageSymbolEnter.java file
Had to change

If you mean #32085 then I don't think that can be fixed from compiler side.

If I'm not mistaken, Issue https://github.com/ballerina-platform/ballerina-lang/issues/32085 will be fixed by the PR https://github.com/ballerina-platform/ballerina-lang/pull/32746
Issue was in the line https://github.com/ballerina-platform/ballerina-lang/blob/master/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/BIRPackageSymbolEnter.java#L1275
Had to change pkgSymbol.owner to pkgSymbol.
Tested above changes in the ballerina shell and I didn't get the expected error.

Ah awesome, same thing happens in VSCode when we convert a var to a concrete type, hopefull that will also be solved with this fix.

Ah awesome, same thing happens in VSCode when we convert a var to a concrete type, hopefull that will also be solved with this fix.

Coupld of such issues were reported recently. The underlying issue with these was as Damitha mentioned the owner being incorrectly set in the type symbols. There were a couple of places in BIRPackageSymbolEnter where the owner seems to have been blindly set as pkgSymbol.owner. This causes the owner to be recognized as the lang.annotations module. Symbols in the lang.annotation module are assumed to be builtin symbols. Hence we drop the module prefix from them when referring to them. I think we have to go through the BIRPackageSymbolEnter and see if there are any other places where this happens. For now, can close this issue. Will open a separate one for checking the BIRPackageSymbolEnter.


Can't unquote fully qualified inductive types inside nested sections

The following raises an error under MetaCoq 1.0alpha and Coq 8.9.1:
Require Import Coq.Strings.String.
From MetaCoq Require Import Template.All.
Import MonadNotation.

Section S.
Section T.
  Inductive t := C.
  Run TemplateProgram (print_nf =<< tmUnquote =<< tmQuote C).
  (* Error: Invalid character '#' in identifier "Top#S". *)
End T.
End S.

The error goes away if Section T and End T are deleted or tmUnquote is given an unqualified name for t, i.e.
Run TemplateProgram (tmPrint =<<
  tmUnquote (tConstruct {| inductive_mind := "t"; inductive_ind := 0 |} 0 nil)).

This issue also seems exclusive to inductives: for example,
Section S.
Section T.
  Definition b := true.
  Run TemplateProgram (print_nf =<< tmUnquote =<< tmQuote b).
End T.
End S.

works fine.

I think the culprit of this and #385 is the same. Both quoting and unquoting of fully qualified inductives (whether the qualification leads to another module or a section) is broken, but my first attempt to find out why didn't lead anywhere. I'll try again!

@yforster Any news on this? Do you want that I have a look?

I played around with the problem under 8.11 for a bit in a file test.v (that's important for the fully qualified names under 8.11). Under 8.11 it doesn't matter whether sections are nested or not (so no need to open a second section to produce the error) and it doesn't matter whether we're talking about thinks involving inductives or not. In a sense, the error is more uniform now.
Quoting an identifier in a section yields "filename.nameofthething" as name, whereas unquoting only works if "nameofthething" is used. Under 8.9 quoting an identifier used to yield "Top#sectionname#nameofthething", whereas unquoting expected just "nameofthething".
So we seem to have inherited the problem under 8.11 in a more uniform way, which is worse, because it now also affects non-inductive constants in sections (without opening a second section).
It's not completely clear to me whether the quoting or the unquoting should be fixed, but probably it's the unquoting that's wrong and we're happy with the behaviour of quoting?
I'd be happy if you could have a look! I looked into the code a bit but noticed that I need a longer span of time to dive into it deep enough to understand what's going on.
Require Import List String.
Require Import MetaCoq.Template.All.
Import ListNotations MonadNotation.

Section S.

  Definition b := forall X, X.
  Fail MetaCoq Run (print_nf =<< tmUnquote =<< tmQuote b).
  Fail MetaCoq Run (tmUnquote (tConst "test.b" []) >>= tmPrint).
  MetaCoq Run (tmUnquote (tConst "b" []) >>= tmPrint).
End S.

Section S.

  Inductive t := C.

  (* Error: Invalid character '#' in identifier "Top#S". *)

  Fail MetaCoq Run (print_nf =<< tmUnquote =<< tmQuote t).
  Fail MetaCoq Run (tmUnquote (tInd {| inductive_mind := "test.t"; inductive_ind := 0 |} []%list) >>= tmPrint).
  MetaCoq Run (tmUnquote (tInd {| inductive_mind := "t"; inductive_ind := 0 |} []%list) >>= tmPrint).

End S.

I'm on it!
https://github.com/MetaCoq/metacoq/pull/418

Should be solved now. Reopen if not


[VS Code]

Error:
[Description of error message]
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS

extensionVersion
1.0.766

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.38.0

platformName
Windows

platformVersion
10.0.10586

@Raysul, can you tell me what issue you ran into?

Most likely a "command 'liveshare.anycommand' not found" issue. @Moniarchy

@Moniarchy this is likely to be a duplicate, I've reported more thoroughly here https://github.com/MicrosoftDocs/live-share/issues/2805#issuecomment-532076863


Regular Express How to allow all except match

How i can write reg to all web can redirect but not google.com,adexchangeprediction.com ?
\b(?!(google.com)|(adexchangeprediction.com))\b\S+

It should be enough to add google.com|adexchangeprediction.com to the exceptions. (If you don't need a regexp, which you don't seem to, this will be the easiest)

if i config "google.com|adexchangeprediction.com" it mean block all except google.com,adexchangeprediction.com
I need allow all but block in list

No? If you configure google.com|adexchangeprediction.com as exception, no redirecting will take place for URLs containing google.com or adexchangeprediction.com, but for all others apart from some exceptions that are known to cause problems.

It's mean skip redirect all but not in exceptions list
user_pref("extensions.skipredirect.exceptions", "histock.info|onclickads.net|onclkds.com|sabavision.com|shiek1ph.com|urldelivery.com|poptm.com");
I want to known how to opposite exceptions list ?

If I understand properly, you want redirects to happen only for URLs that you configure. This is not currently possible, but I might implement it at some point in the future.


Default System Prompt Cannot Be Changed

Using GeneralAgent, the framework insert default system prompt.
<|im_start|>system\n\nCurrent Time: 2024-08-21 16:35:27\nYou are an agent on the Linux version: Linux-5.15.0-91-generic-x86_64-with-glibc2.35 computer, tasked with assisting users in resolving their issues. \nYou have the capability to control the computer and access the internet. \nAll code in python  will be automatically executed by the system. So if you don't need to run the code, please don't write it in the code block.\nAll responses should be formatted using markdown. For file references, use the format title, with all files stored in the './' directory.\nWhen result file is ready, provide it to the user with donwload link. \n\n你是一个PDF文档解析器，使用markdown和latex语法输出图片的内容\n\n\n<|im_end|>
This may not work across other VLM, and an option to change the default prompt is required.

see
https://github.com/CosmosShadow/GeneralAgent/blob/fab45fec6594bc6e52438ae15f0e7598b0f05052/GeneralAgent/interpreter/role_interpreter.py#L22

Very good question, I will update later.


[Karpenter] upgrade to v.1.0

Hi,
I have a humble request. Could you please update the code so that we can use Karpenter v.1.0?
Thank you so much!

This issue has been resolved in version 20.24.0 :tada:


Inconsistent timing promises

"Verifying your identity takes about 15 minutes to complete, but you only have to do it once. You can then access other government services in less than 1 minute wherever you see the GOV.UK Verify logo."
https://www.signin.service.gov.uk/about-identity-accounts
"It takes about 10 minutes to verify your identity the first time you use GOV.UK Verify, and a couple of minutes any time after that."
https://www.gov.uk/government/publications/introducing-govuk-verify/introducing-govuk-verify

Submitted that as an issue to publishing, via the feedback form.

Closing this issue as the feedback to make the change elsewhere has been sent, thanks for the report


Implement explog functions using Eigen.

PR status: Ready to merge

[x] exp3
[x] log3
[x] exp6
[x] log6
[x] explog python bindings

2 spaces, but there are some incoherent indentations along the code.

A just a small remark, I think your code could become more efficient by directly computing the exp3 manually, mainly in expo function. Indeed, there is a lot of redundant computations done either in exp3 through Eigen AngleAxis and in the computation of what you call V

This PR does not include any unittests. It would be a good idea to add some, for both C++ and python.
How do you suggest we do that?

There is unittest directory in the project where you can easily add some new tests.


package name typo

It looks like package name "mutlcomp" is a typo in Week4Lecture.Rmd.
pacman::p_load(tidyverse, knitr, mutlcomp, dplyr, modelr, Hmisc)

Thanks, Brian - fixed this while making other updates! apologies I didn't see it sooner.