Support multiple belongs_to

Edit: Original title: Specifing multiple belongs_to does not seem to work
The following:
ActiveAdmin.register Movie do
  belongs_to :provider, :optional => true
  belongs_to :actor, :optional => true
end

only generates routes for the actor, provider is completely ignored

Looking forward to using it!

I would like to see this feature worked into ActiveAdmin as well for consistency.

+1 for this feature... it will be really useful :-)

Well 'ive managed to work around it by just making my own polymorphic controller. And adding the routes myself. Makes total sense. Its a monkey patch but hey. at least it works.
app/controllers/admin/comments_controller.b
module Admin
  class CommentsController < ApplicationController
    def create
      commentable.comments.create!(comments_params[:comment])
      redirect_to :back
    end

    def comments_params
      params.permit!
    end

    def commentable
      return House.find_by_slug(params[:house_id]) if params[:house_id]
      return Person.find(params[:person_id]) if params[:person_id]
      raise "Can't find commentable"
    end
  end
end

routes
  ActiveAdmin.routes(self)
  namespace :admin do
    resources :people do
      resources :comments
    end
    resources :houses do
      resources :comments
    end
  end

:+1: and thank you @Zequez, good solution :)

Well, working around this i came to this solutions
ActiveAdmin.register Pickup do
controller do
belongs_to :client, :warehouse, optional: true
end
end
and then add the routes,
namespace :admin do
resources :clients do
resources :pickups
end
resources :warehouses do
resources :pickups
end
end
this gives me support for both nested routes and the resource itself
admin/pickups/....
admin/clients/pickups/...
admin/warehouses/pickups
if you don't want the route for "pickups" i don't know how could you do this, with menu false option at least you can remove it from the navigation bar, but for my case i need it, also the optional: true, allows you to have the belongs without one of the parents, you should work around the forms as well, i'll gonna work with the route to show the corresponding dropdowns depending where i'm to create new pickups in each case

+1

Github now allows you to add a reaction to comments. If someone wants to add a +1 to this ticket, please do it via a reaction to the first comment on the ticket instead of adding a new comment.
You can also subscribe to the ticket so you receive notifications if anything new happens.

@zerocool4u2 this solution works apparently but it failed to build proper breadcrumbs based on the parent resource.
For example, I have M-M relationships between Sponsors and Customers so both of has many Sponsorships. While accessing Sponsorships from Sponsor, for example admin/sponsors/5/sponsorships, activeadmin will find resource by Sponsorship instead of Sponsor so it returns wrong name for the breadcrumb.
Wondering if there's any workaround on this issue, thanks.

@yoonwaiyan i don't really remember that much about this, but looking at the project i have this on routes
	namespace :admin do
		resources :e_commerces, only: [] do
			resources :pickups
		end
		resources :warehouses, only: [] do
			resources :pickups
			resources :employees
		end
	end

maybe the , only[]?
the polymorphic is the other difference that i have, sorry for not been more helpful, but i don't remember that much of this project or activeadmin now :disappointed:

I just ran into a problem with the workaround that prevented all collection_actions from working. Instead, they were interpreted as a GET <model>/:id instead of GET <model>/collection_action_name.
The problem was that the ActiveAdmin.routes(self) was after the workaround.
# bad
namespace :admin do
  resources :customers do
    resources :sponsorships
  end
  resources :sponsors do
    resources :sponsorships
  end
end
ActiveAdmin.routes(self)

# good
ActiveAdmin.routes(self)
namespace :admin do
  resources :customers do
    resources :sponsorships
  end
  resources :sponsors do
    resources :sponsorships
  end
end

Just leaving this comment here in case it helps someone else.

Would like this feature for the polymorphic association

+1

+1 for nested and polymorphic

+1

🎉 Happy 8 year anniversary 🎉
I was really hoping i was doing something wrong. Sadly I discovered that it's a bug and/or missing functionality.

I have created #6115 for anyone looking forward to this feature enhancement.


Request to add solution for the GFG problem "Prefix To Infix"

I would like to request the addition of a solution for the GFG problem "Prefix to Infix Conversion". This feature would allow users to convert prefix expressions to infix notation, enhancing usability in mathematical computations.
Please assign me this task @aman247av

Yes sure go ahead!!

can u pls add the label hacktoberfest to it?

@twinkle485 any update on this issue... or shall i close this


dev-v2 - Update UI for linking  indicators to a project form under the Impact Tab

The current dev-v2  is difficult to use. The list of indicators is long, truncated by the window, and the user has to hold down the ctl button to select more than one indicator, which may cause a user to accidentally unlink an already linked indicator.

Updated partially to use the search function drop down, needs to be updated to filter by selected program as well.


chore: bdd-gh-1582713872 to 0.0.1

chore: Promote bdd-gh-1582713872 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


com.pilosa.client.exceptions.PilosaException: executing: column value must be a string when index 'keys' option enabled

I can't use the method 'public PqlBaseQuery set(String rowKey, long columnID) in Field class', How to do?
Index 'user' config:
{"name":"user","options":{"keys":true},"fields":[{"name":"city","options":{"type":"set","cacheType":"ranked","cacheSize":50000,"keys":false}},{"name":"os","options":{"type":"set","cacheType":"ranked","cacheSize":50000,"keys":true}}]}
// client code for java
IndexOptions indexOptions = IndexOptions.builder()
.keys(false)
.build();
FieldOptions fieldOptions = FieldOptions.builder()
.keys(false)
.build();
String fieldName = "os";
Index user = schema.index("user", indexOptions);
Field field = user.field(fieldName, fieldOptions);
String rowKey = "win7";
String columnKey = "12";
long column = 12;
client.query(field.set(rowKey, column));
client.close();
// end
Then, it throws:
com.pilosa.client.exceptions.PilosaException: executing: column value must be a string when index 'keys' option enabled
at com.pilosa.client.PilosaClient.queryPath(PilosaClient.java:587)
at com.pilosa.client.PilosaClient.query(PilosaClient.java:181)
at com.pilosa.client.PilosaClient.query(PilosaClient.java:164)
at com.wolaidai.demo.AppTest.writeColumnValue(AppTest.java:131)

Hi @MicDP, since you are using a row key, keys option of the field must be set to true:
FieldOptions fieldOptions = FieldOptions.builder()
.keys(true)
.build();

Also, both index and field options are sticky, once you create an index or field with some options, they are retained by Pilosa. In the schema you have posted on the top, the index has keys == true, so a column key must be used. When you specify keys(false) in the code, it doesn't change what's on the server unless that index/field doesn't already exist.
Can you try deleting the user index using something like (with the correct Pilosa address):
curl localhost:10101/index/user -XDELETE

And running the following Java code based on yours:
    public static void main(String...args) throws IOException {
        PilosaClient client = PilosaClient.defaultClient();
        Schema schema = Schema.defaultSchema();
        IndexOptions indexOptions = IndexOptions.builder()
                .keys(false)
                .build();
        FieldOptions fieldOptions = FieldOptions.builder()
                .keys(true)
                .build();
        String fieldName = "os";
        Index user = schema.index("user", indexOptions);
        Field field = user.field(fieldName, fieldOptions);
        client.syncSchema(schema);
        String rowKey = "win7";
        String columnKey = "12";
        long column = 12;
        client.query(field.set(rowKey, column));
        client.close();
}

Btw, the Java client has its own issue tracker at: https://github.com/pilosa/java-pilosa/issues

@yuce it's OK! Thanks!

Awesome!


First Sample Committed SPO-Recover-Deleted Meeting Recordings.

Hi , Please help me through this first pull request.

Hey @jasonwbaxter, thank you 👏 for your awesome contribution - it is highly appreciated. This should be live shortly 😊
If you haven't already registered, you can get a nice credly badge for your contribution - please register at: https://pnp.github.io/recognitionprogram/ if you have already, then when the next batch get processed you will get one 😁


AutoGluon example; Unified container with latest tag

Also commented out the packages in the Dockerfile which are pre-installed by the unified container

Note that we should probably update the /notebook_setup directory as that is still pointing to 0.15 instructions

Closes #84

@miroenev I'm going to merge this to get the AutoGluon example in, let's discuss the container in a separate PR


Adding 3rd example to repo

This pull request will add the 3rd set of example code to the repo for the blog on how to use terraform outputs across stacks.

@vtimd just tried the code locally, it unfortunately doesn't work (try run terramate generate to trigger the code generation)

Keep in mind that the example we defined in last weeks session was never tested and was meant as an example for you how the final implementation could look like

This PR was just a placeholder for the file links. I didn’t test the code. I’m going to get it fixed in parallel while I write the blog. I just needed the GitHub links for the blog. I knew the code was wrong when I saved it in Code. It was all red 😂

Closing. Starting Fresh.


Add TOC to the README

Hello, could we get a Table of Contents at the top of the README file? I think it would help tremendously with navigation. IDEA can generate TOC for Markdown documents automatically.

(Optional) The relevant location:

[x] README

Actually, GitHub does this for you automatically. Search for the button that looks like of like a hamburger button. It doesn't make sense to include my own TOC which is manual and error prone when they do it already.
The docs will eventually move to https://kobweb.varabyte.com/docs which will be even better, that's planned "soon".

See also: https://github.blog/changelog/2021-04-13-table-of-contents-support-in-markdown-files/

TIL. I had no idea GitHub had this feature. I would never have guessed that little icon was TOC. Thanks!

I didn't know either until I worked on Kobweb! But yeah once you notice it, it's super useful.
That said, Kobweb is definitely pushing it with respect to an approachable readme. So I hope it comes across that I agree with your general sentiment.


Warrior Deed Die

Not entirely sure how we want to handle the Deed Die in the Warrior character sheet.  If it were up to me, I would have there be a field that the user can populate within the "Warrior" tab that would apply itself ontop of any attack rolls done in the "Equipment" Tab.
To fit more in line with the current design philosophy, however, there could be a field in the "Warrior" tab that can be populated with what the Deed Die is and then have a button that rolls it specifically.  Then, when they want to attack, they press the Attack button and it adds the value of the previously rolled Deed Die to their To Hit and Damage rolls.  That way, they know if they successfully do the Deed immediately as it is a separate roll.

It's part way there currently, though not easily discoverable.
The Attack Bonus field can be filled with an expression containing a dice roll (ie. the deed die) and "@ab" in the To Hit and Damage fields of a weapon expands to the rolled value of the attack bonus (once per attack).
I think we can reach what you've suggested by having a button to roll the attack bonus which displays the result in chat and stores it in a hidden field.
Then we provide a similar mechanism to allow the To Hit and Damage rolls to access that stored value (instead of the current value that exists for the duration of the attack roll function).

Could you give me an example of how this works?


docs: :memo: created env example file and updated readme

@all-contributors please add @Arpitchugh for docs


Proposal: A dedicated kaiascan SDK in python

Description
This proposal outlines the need for a dedicated KaiaScan SDK in Python, detailing its benefits and functionalities. KaiaScan, a blockchain explorer specifically designed for the Kaia ecosystem, provides real-time data tracking and insights into token movements, transactions, and more.
Core functionalities:
Token information retrieval
Transaction tracking
Block information
Contract Interaction
Why proposal?
It simplifies the integration of kaiascan functionalities into application.
It encapsulate api calls making it a user-friendly approach to access kaia blockchain information.
Enhanced developer experience
Bounty track
Developer tool

You have spelling issue with "Go" instead of "python"

Oh, I will fix that.

GitHub: https://github.com/PaulElisha/kaiascan-sdk-py
dorahack: https://dorahacks.io/buidl/20150

approved for 1500 KAIA payout

closing


Cookbook apache to be solved

my_lamp.zip

Team,
If you are facing issue with executing the cookbook change
only_if  node['platform'] == 'ubuntu' to only_if { node['platform'] == 'ubuntu' }

Team,
If you are facing issue with executing the cookbook change
only_if  node['platform'] == 'ubuntu' to only_if { node['platform'] == 'ubuntu' }

it works fine for me


⚠ Bofrost.lu has degraded performance

In b155302, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2170 ms

Resolved: Bofrost.lu performance has improved in 44f8a5c.


Packer Build for AWS AMI fails at RexRay install reference within Provisioners block

Summary
My Packer build for custom AWS AMI, which is a duplicate of an already existing packer build with only the EC2 Instance Type and Volume size changed, fails upon the RexRay Install reference in the Provisioners block.
I have tried different RexRay version references but still get the same fail. I have tried the following 3 version references for the Packer Build's RexRay Install:

curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable 0.6.3
curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable 0.11.3
curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable

Bug Reports
The following is the final remnant of the Packer Build log which shows the error I'm receiving @ line<PHONE_NUMBER>:
...
1540940855,,ui,message,    amazon-ebs: Unpacking docker-ce (17.12.1~ce-0~ubuntu) ...
1540940859,,ui,message,    amazon-ebs: Processing triggers for libc-bin (2.23-0ubuntu10) ...
1540940859,,ui,message,    amazon-ebs: Processing triggers for man-db (2.7.5-1) ...
1540940859,,ui,message,    amazon-ebs: Processing triggers for ureadahead (0.100.0-19) ...
1540940859,,ui,message,    amazon-ebs: Processing triggers for systemd (229-4ubuntu21.4) ...
1540940859,,ui,message,    amazon-ebs: Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
1540940859,,ui,message,    amazon-ebs: Setting up cgroupfs-mount (1.2) ...
1540940860,,ui,message,    amazon-ebs: Setting up libltdl7:amd64 (2.4.6-0.1) ...
1540940860,,ui,message,    amazon-ebs: Setting up docker-ce (17.12.1~ce-0~ubuntu) ...
1540940861,,ui,message,    amazon-ebs: Processing triggers for libc-bin (2.23-0ubuntu10) ...
1540940861,,ui,message,    amazon-ebs: Processing triggers for systemd (229-4ubuntu21.4) ...
1540940861,,ui,message,    amazon-ebs: Processing triggers for ureadahead (0.100.0-19) ...
1540940862,,ui,message,    amazon-ebs: sh: 1: Forbidden!: not found
1540940862,,ui,say,==> amazon-ebs: Terminating the source AWS instance...
1540940879,,ui,say,==> amazon-ebs: Cleaning up any extra volumes...
1540940879,,ui,say,==> amazon-ebs: No volumes to clean up%!(PACKER_COMMA) skipping
1540940879,,ui,say,==> amazon-ebs: Deleting temporary security group...
1540940879,,ui,say,==> amazon-ebs: Deleting temporary keypair...
1540940879,,ui,error,Build 'amazon-ebs' errored: Script exited with non-zero exit status: 127
1540940879,,error-count,1
...

Expected Behavior
Packer Build would complete successfully with RexRay installed in AMI Snapshot, as it has in the past using the exact same Packer Build format.
Actual Behavior
Packer Build fails upon RexRay Install reference in Provisioners Block.
NOTE: If I remove the RexRay Install reference from the Provisioners Block then the Packer Build succeeds, but I need RexRay to be part of the snapshot generated from this AMI.
Steps To Reproduce
Set Environment Vars:
export AWS_REGION="[aws_region]"
export TEMPLATES_PATH="[packer_file_path]"
export PACKER_FILENAME="[packer_file_name]"

Save the following values into a file named "docker.service" (placed in a directory named "docker" located at the root of the packer file path)

e.g. [packer_file_path]/docker/docker.service

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target docker.socket
Requires=docker.socket

[Service]
Type=notify
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://<IP_ADDRESS>:2375 --storage-driver=overlay2 --log-driver json-file --log-opt max-size=50m --log-opt max-file=10 --experimental=true --metrics-addr <IP_ADDRESS>:9323 --registry-mirror http://localhost:5000
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process

[Install]
WantedBy=multi-user.target

Run the following Packer Script command on the following packer build script:
packer build -force -machine-readable [packer_file_path]/[packer_file_name].json | tee [packer_logs_file_path]/[packer_file_name].log
Packer Build Script
{
  "variables": {
    "region": "{{env `AWS_REGION`}}",
    "templates_path": "{{env `TEMPLATES_PATH`}}",
    "packer_filename": "{{env `PACKER_FILENAME`}}",
    "destination_regions": "us-west-2,us-east-1,us-east-2"
  },
  "builders": [{
    "type": "amazon-ebs",
    "region": "{{user `region`}}",
    "availability_zone": "{{user `region`}}a",
    "ebs_optimized": true,
    "ena_support": true,
    "encrypt_boot": true,
    "source_ami_filter": {
      "filters": {
        "virtualization-type": "hvm",
        "name": "*ubuntu-xenial-16.04-amd64-server-*",
        "root-device-type": "ebs"
      },
      "owners": ["099720109477"],
      "most_recent": true
    },
    "instance_type": "m5.2xlarge",
    "ami_regions": "{{user `destination_regions`}}",
    "ssh_username": "ubuntu",
    "ami_name": "eigps-swarm-node-m52xlarge {{timestamp | clean_ami_name}}",
    "tags": {
      "Node_Type": "swarm",
      "Instance_Type": "m52xlarge",
      "Volume_Size": "64GB",
      "OS_Type": "ubuntu-xenial",
      "OS_Version": "16.04",
      "Docker_Version": "17.12.1",
      "RexRay_Version": "0.6.3",
      "AMI_Version": "1"
    },
    "launch_block_device_mappings": [
      {
        "device_name": "/dev/sda1",
        "volume_size": 64,
        "volume_type": "gp2",
        "delete_on_termination": true
      }
    ],
    "ami_block_device_mappings": [
      {
        "device_name": "/dev/sdb",
        "encrypted": true,
        "virtual_name": "ephemeral0"
      },
      {
        "device_name": "/dev/sdc",
        "encrypted": true,
        "virtual_name": "ephemeral1"
      }
    ],
    "force_deregister": true,
    "force_delete_snapshot": true
  }],
  "provisioners": [{
    "type": "shell",
    "inline": [
      "sleep 15",
      "sudo apt-get clean",
      "sudo apt-get update",
      "sudo apt-get install -y apt-transport-https ca-certificates nfs-common",
      "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -",
      "sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\"",
      "sudo apt-get update",
      "sudo apt-get install -y docker-ce=17.12.1~ce-0~ubuntu",
      "sudo usermod -aG docker ubuntu",
      "curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable 0.6.3"
    ]
  },
  {
    "type": "file",
    "source": "{{user `templates_path`}}/docker/docker.service",
    "destination": "/tmp/docker.service"
  },
  {
    "type": "shell",
    "inline": [
      "sleep 15",
      "sudo ssh-keygen -b 4096 -f /home/ubuntu/.ssh/id_rsa -t rsa -N ''",
      "sudo chmod 400 /home/ubuntu/.ssh/id_rsa",
      "sudo chmod 700 /home/ubuntu/.ssh/id_rsa.pub",
      "sudo chown ubuntu:ubuntu /home/ubuntu/.ssh/id_rsa",
      "sudo chown ubuntu:ubuntu /home/ubuntu/.ssh/id_rsa.pub",
      "sudo mv /tmp/docker.service /lib/systemd/system/docker.service",
      "sudo chmod 644 /lib/systemd/system/docker.service",
      "sudo systemctl daemon-reload",
      "sudo systemctl restart docker",
      "sudo mkdir -p /workspace",
      "sudo chmod 777 /workspace",
      "sudo sysctl -w vm.max_map_count=262144"
    ]
  }],
  "post-processors": [{
    "type": "manifest",
    "output": "{{user `templates_path`}}/packer/manifests/{{user `packer_filename`}}.json",
    "strip_path": true
  }]
}

I believe that this issue is related to issue #1277

The fix for this was to use the install path that has been updated in rexray documentation:
curl -sSL https://rexray.io/install | sh -s -- stable 0.6.3


LUCENE-10047: Fix value de-duping check in LongValueFacetCounts and RangeFacetCounts

Description
These two facet counting implementations are incorrectly assuming that -1 is an invalid value (for the purpose of value de-duping), which isn't the case.
Solution
Fix the above assumption.
Tests
Existing randomized testing caught the bug. Tests now pass.
Checklist
Please review the following and check all that apply:

[x] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[x] I have created a Jira issue and added the issue ID to my pull request title.
[x] I have given Lucene maintainers access to contribute to my PR branch. (optional but recommended)
[x] I have developed this patch against the main branch.
[x] I have run ./gradlew check.
[ ] I have added tests for my changes.

Pushing without a review to unblock broken nightly build test runs. Happy to tweak this further if anyone has feedback though.


Fine-tuning with frozen layers/stages

Thanks a lot for the work and making the code available. It's very easy to get started with it for custom use.
I could easily train and test but I wanted to know the following:
How do I freeze a layer or a stage during training for fine-tuning?
During fine-tuning I don't want to change weights in all the stages/layers that are in the base model.
I was thinking about:

freezing everything but the final keypoint detection head
freezing everything but the last stage and keypoint detection head.

How do I accomplish this?
Any help or suggestion is greatly appreciated :)

I think I figured out how to freeze stages now.
But, how do I verify formally that it is successfully freezing the weights?
FYI
I've added a method to freeze weights in models.backbones.LiteHRNet
    def _freeze_stages(self):
        """Freeze parameters."""
        if self.frozen_stages >= 0:
            if self.stem:
                self.stem.eval()
                for param in self.stem.parameters():
                    param.requires_grad = False
            else:
                self.norm1.eval()
                for m in [self.conv1, self.norm1]:
                    for param in m.parameters():
                        param.requires_grad = False

        for i in range(1, self.frozen_stages + 1):
            m = getattr(self, f'stage{i}')
            m.eval()
            for param in m.parameters():
                param.requires_grad = False

See: https://github.com/kuldeepbrd1/Lite-HRNet/blob/979c0faefcf637c81f8815663f254c90f72acfda/models/backbones/litehrnet.py#L860


Use "suggest" for dependencies of submodules

When a module like panels is required a lot of dependencies are downloaded, although the core module does not necessarily need those.
Composer.json can hold suggestions for other packages. This way we could provide information about those optional dependencies without the need of downloading all eventual dependencies of submodules.
Example for Panels:
{
  "require": {
    "drupal/ctools": "7.*"
  },
  "suggest": {
    "drupal/i18n": "7.*",
    "drupal/i18n_string": "7.*",
    "drupal/i18n_translation": "7.*"
  }
}

Updated the panels module. http://drupal-packagist.webflo.io/packages/drupal/panels

Looks good. Also works for rules.


Disabling VPC flow log fails the plan when target_regions is set

When target_regions = ["us-east-1", "us-west-2"] is set together with vpc_enable_flow_logs = false TF apply fails for all other regions:
Error: Invalid index

  on .terraform/modules/secure-baseline/vpc_baselines.tf line 134, in module "vpc_baseline_ap-southeast-1":
 134:   flow_logs_iam_role_arn      = local.is_cw_logs ? aws_iam_role.flow_logs_publisher[0].arn : null
    |----------------
    | aws_iam_role.flow_logs_publisher is empty tuple

The given key does not identify an element in this collection value.

Is this a setting I am missing or it's a bug?

Thank you!!


fix: Idiomatic & matching Whisper Mel Spectrogram

This PR does the following:

A more idiomatic implementation of log_mel_spectrogram.
log_mel_spectrogram now matches the specification [here].(https://github.com/openai/whisper/blob/ba3f3cd54b0e5b8ce1ab3de13e32122d0d5f98ab/whisper/audio.py#L110)

Some points of contention:

Introduces a dependency on realfft
Requires a ground truth .npy file
Some of the operations require mapping back to a Vec, instead of being tensor ops.

I appreciate it's a bit scruffy, but it fixes #1414, would love some pointers to get it mergable.

I would rather keep the small self-contained implementation that initially was there rather than introducing a dependency. Wouldn't it be possible to find where the difference is coming from instead of making a full rewrite? (it has been on my stack for a long time to do this but sadly I have been a bit busy lately)
Another possibliity would be to make a proper external candle-whisper crate that would aim at matching the openai implementation closely and keep the current one as an example. Would that be something that you would be interested in?

I would rather keep the small self-contained implementation that initially was there rather than introducing a dependency. Wouldn't it be possible to find where the difference is coming from instead of making a full rewrite? (it has been on my stack for a long time to do this but sadly I have been a bit busy lately) Another possibliity would be to make a proper external candle-whisper crate that would aim at matching the openai implementation closely and keep the current one as an example. Would that be something that you would be interested in?

Yeah I thought the dependency might be an issue. Their FFT implementation is a bit dense, maybe I'll go with the external crate option.

If you do the external repo, please implement beam search too :)


use last commit from local git repository for updated date

Instead of using the current approach of fetching the repo data over GitHub's REST API, this simply parses the local git repo and finds the last commit and uses that date. This will solve the "last updated at NaN, NaN" problem.

🇳ℹ 🇨📧

fixed on doc site:


Add maven-publish plugin to allow distribution via jitpack.io

jitpack is a service (free to use for open-source projects) which simplifies the deployment of JVM-based Git projects. They will build your code and host JAR artifacts which then can be used like a usual Maven or Gradle dependency.
The only requirement is that you alter your build.gradle as seen in my PR by adding the maven-publish plug-in and telling it to create a JAR.

@all-contributors please add @cylonid for code

@cylonid Thank you!


Question about the 'simulated_matmul()'

I have a question about the simulated_matmul() function.
The function seems to be porting the matmul() function to STONNE in pythorch.
Do torch.matmul() and torch_stonne.simulated_matmul() work exactly the same?
According to the notes, it should work the same way.
However, it does not seem to perform exactly the same motion in the following situations.

import torch
import torch_stonne

a = torch.tensor([[3],[0],[1],[2]])  # 1x4 matrix
b = torch.tensor([[0,2,2,3]])  # 4x2 matrix

r=torch_stonne.simulated_matmul("", a,  b, "../../simulation_files/maeri_128mses_128_bw.cfg", "test_tile.txt", 0)
print(r)
print(torch.matmul(a,b))

I want you to check it out

I did a little test.
There seems to be a problem when a Tensor composed of integers is input.
import torch
import torch_stonne

print("TPU Test\n")
A = torch.randint(0, 10, (4, 1))
B = torch.randint(0, 10, (1, 4))
R = torch.matmul(A,B)

print("A :", A)
print("B :", B)
print("R : ")
print("PyTorch \n ",R)

print("STONNE\n")
r=torch_stonne.simulated_matmul("", A,  B, "../../simulation_files/maeri_128mses_128_bw.cfg", "test_tile.txt", 0)
print(r)

Hello,
Thanks for using STONNE. The purpose of the PyTorch Frontend is to be able to easily obtain the number of cycles required to compute each operation in the architecture. The number of cycles won't vary despite whether the result is correct or not. For that reason, the PyTorch Frontend actually only takes the main parameters from the tensors (dimensions, mainly) and uses them to initialize a random matrix and compute the operation using it. Thus, with the current implementation, it won't provide the correct output tensor for that operation. We are sorry about the inconvenience.
Hope this comment can help you.

So, is it impossible to compute an integer from STONNE?

If possible later, please.
I know this question is rude.
Do you happen to know a simulator that can also simulate the function of NPU (With cycle level simulate)?

Hello,
I am not aware of any other simulator. You could use the workaround of transforming the tensor from integer to float and process it on the simulator. Then you can convert again from float to integer. The simulation cycles will be the same as the size of the tensors will be identical. Does it make sense?

Thank you!


Stat ambiguity: ttup includes the new-gcs-urls roundtrip?

SQL DDL suggests we shouldn't include it.
Android code obviously does include it.
iOS code obviously does include it.
This leads to strange records having DIFF(urls_gen, single_dispatch_date) < upload_duration_ms

select
  AVG(TIMESTAMPDIFF(MICROSECOND, urls_gen, single_dispatch_date)/1000000),
  AVG(TIMESTAMPDIFF(MICROSECOND, urls_gen, r.dispatch_date)/1000000),
  AVG(r.upload_duration_ms),
  COUNT(*)
from trace t, resource r
where t.actionid=r.actionid
and t.actionid IS NOT NULL
and t.multiple_n=1
and t.multiple=0
and urls_gen IS NOT NULL
and upload_duration_ms IS NOT NULL
and single_dispatch_date IS NOT NULL
and r.dispatch_date IS NOT NULL


Fixed the workaround for philio slim multi sensor.

Moved the workaround into the binary_sensor platform.
Changed the key matching to utilize integer values.
It does not report always return the hex marker '0x' in the identifier strings.
This PR closes issue #1349

Don't merge this, it doesn't work. Investing!

Ok, fixed it. Now it works as expected.

Also, changed the default sensor_class from 'opening' to None which is a more correct alternative. Will open another PR with some mappings if i can find some reliable sources for the mappings.


[ru] Remove inactive users from sig-docs-ru

Following a recent Slack post, I'm raising this PR to remove four inactive members of sig-docs-ru-owners and sig-docs-ru-reviews. Namely, they are:

@msheldyakov
@aisonaku
@Potapy4
@dianaabv

They didn't have any activity for a long time (for years) in this repo. Thus, having them among current team members brings unnecessary delays in handling new PRs related to Russian localisation.
Based on a lazy consensus, we're waiting for any reaction from them until January 15th. If nothing happens, we'll proceed with this PR.

Based on a lazy consensus, we're waiting for any reaction from them until January 15th. If nothing happens, we'll proceed with this PR.

/hold
until that date

As it was discussed in Slack, we decided to close this PR in favour of more general #38719 (the latter includes now all the changes from this one). So this change will happen with other similar removals from the OWNERS list.
/close


Splash-Jupyter installed Incorrect

@kmike @pawelmhm
Sorry to bother everyone.
The main problem is can not using the feature "webkit browser" that create by Splash-Jupyter
Splash is excellent, it would be perfect if I can use Splash-Jupyter.
Thanks for everyone's hard work.
All problem has be sloved about issue(https://github.com/scrapinghub/splash/issues/361) except  the feature "webkit browser" not work.
I installed Splash and Splash-Jupyter with  this file 'install-manual.txt' that created by me.
I used fresh and clean Ubuntu: 14.04.03LTS 64bit, step by step, but failed.

I run command $ipython notebook --no-browser  in the Splash root directory.
An error will be occured if run the command in other directory. see there
There may be some mistake from me?
Anybody would provide a detailed splash-jupyter-manual-installation?
Any suggestions would be greatly appreciated.
Thank you very much.

Aha, all the problem is resolved.
Thank you everyone.


Would like a setting to enable attribute wrap & indent for html

I'd like the ability to set a max line length that would cause an html tag to wrap and indent it's attributes.  This would help with adding things like Angular markup.
list products

could become

         list products

The default beautifier for HTML is https://github.com/beautify-web/js-beautify/ and I thought they already provided this feature.  I recommend opening an issue with them or changing your beautifier to use Pretty Diff.

I'm also looking to for wrap all html element attributes, "wrap_attributes": "force" sounds like the option, but isn't working like @end-user's code-example.

This issue is stale and looks fixed in Pretty Diff.  I am not sure of the status in JS Beautifier.  If this issue is closed prematurely please reopen it.


Twitter get access_token from popup

Dear everyone,
I implemented client-side and server-side and it worked nearly perfect.
Here is my client-side code:
 $auth.authenticate(provider)             .then(function (response) {                 console.log(response)             })
When my server sent back access_token the access_token didn't go to then function. It appeared in the popup that open for authorization before, and I can't get access_token in angularjs code. May anyone show me how to get access_token from popup windows?
Here is picture of this problems.
Thanks very much
https://s32.postimg.org/i4gsk8xud/Screen_Shot_2016_06_19_at_7_51_23_PM.png

I get the same issue, anyone knows how to solve this? my backend is in java


Fixed the minimum and maximum values of the incident report

Description

Fixed the values shown at cpuMaximum and cpuMinimum:

At version 2.5 we changed the way we calculated the CPU utilization, we retrieved the average of utilization of each day and then we selected the maximum average as the maximum and the minimum average as the minimum, now we show the actual maximum and minimum of the CPU utilization thanks to a change in our GCP MQL query.
Issues Resolved

Fixed the values shown at cpuMaximum and cpuMinimum:

Link to Example Applied Policy
https://app.flexeratest.com/orgs/1105/automation/applied-policies/projects/107982?policyId=6448959f4a6748000178a563
Contribution Check List

[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[x] New functionality has been documented in CHANGELOG.MD

@midir99 Does this PR have a Jira ticket associated with the change?

@midir99 Does this PR have a Jira ticket associated with the change?

@nia-vf1 not yet since this one was created just yesterday, at least I don't remember if there was a ticket about this...


make on Windows has failed

Windows 7x64 Ultimate
Makefile:32: no file name for `include'
g++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fopenmp -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++ -c -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fopenmp -c src/c_api/c_api.cc -o build/c_api/c_api.o
In file included from src/c_api/c_api.cc:14:0:
src/c_api/../common/thread_local.h:80:3: error: 'mutex' in namespace 'std' does not name a type
src/c_api/../common/thread_local.h: In member function 'void xgboost::common::ThreadLocalStore::RegisterDelete(T_)':
src/c_api/../common/thread_local.h:70:5: error: 'unique_lock' is not a member of 'std'
src/c_api/../common/thread_local.h:70:22: error: 'mutex' is not a member of 'std'
src/c_api/../common/thread_local.h:70:39: error: 'mutex_' was not declared in this scope
src/c_api/../common/thread_local.h:70:45: error: there are no arguments to 'lock' that depend on a template parameter, so a declaration of 'lock' must be available [-fpermissive]
src/c_api/../common/thread_local.h:70:45: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/c_api/../common/thread_local.h:72:5: error: 'lock' was not declared in this scope
src/c_api/../common/thread_local.h: In member function 'void xgboost::common::ThreadLocalStore::RegisterDelete(T_) [with T = XGBAPIThreadLocalEntry]':
src/c_api/../common/thread_local.h:45:7:   instantiated from 'static T* xgboost::common::ThreadLocalStore::Get() [with T = XGBAPIThreadLocalEntry]'
src/c_api/c_api.cc:381:63:   instantiated from here
src/c_api/../common/thread_local.h:70:5: error: 'lock' was not declared in this scope
make: *** [build/c_api/c_api.o] Error 1

Please Check out the instruction on how to build in Windows on the
documentation page.
On Fri, Jan 22, 2016 at 10:42 AM lizsz<EMAIL_ADDRESS>wrote:

Windows 7x64 Ultimate
Makefile:32: no file name for `include'
g++ -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops
-Iinclude -Idmlc-core/include -Irabit/include -fopenmp -MM -MT
build/c_api/c_apio src/c_api/c_apicc >build/c_api/c_apid
g++ -c -std=c++0x -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops
-Iinclude -Idmlc-core/include -Irabit/include -fopenmp -c src/c_api/c_apicc
-o build/c_api/c_apio
In file included from src/c_api/c_apicc:14:0:
src/c_api//common/thread_localh:80:3: error: 'mutex' in namespace 'std'
does not name a type
src/c_api//common/thread_localh: In member function 'void
xgboost::common::ThreadLocalStore::RegisterDelete(T
)': src/c_api//common/thread_localh:70:5: error: 'unique_lock' is not a
member of 'std' src/c_api//common/thread_localh:70:22: error: 'mutex' is
not a member of 'std' src/c_api//common/thread_localh:70:39: error:
'mutex_' was not declared in this scope
src/c_api//common/thread_localh:70:45: error: there are no arguments to
'lock' that depend on a template parameter, so a declaration of 'lock' must
be available [-fpermissive] src/c_api//common/thread_localh:70:45: note:
(if you use '-fpermissive', G++ will accept your code, but allowing the use
of an undeclared name is deprecated) src/c_api//common/thread_localh:72:5:
error: 'lock' was not declared in this scope
src/c_api//common/thread_localh: In member function 'void
xgboost::common::ThreadLocalStore::RegisterDelete(T) [with T =
XGBAPIThreadLocalEntry]':
src/c_api//common/thread_localh:45:7: instantiated from 'static T*
xgboost::common::ThreadLocalStore::Get() [with T = XGBAPIThreadLocalEntry]'
src/c_api/c_apicc:381:63: instantiated from here
src/c_api//common/thread_localh:70:5: error: 'lock' was not declared in
this scope
make: *** [build/c_api/c_apio] Error 1
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/xgboost/issues/771.

I think you are using a MinGW with win32 threading model. Please try the one with posix threading.

how to solve this question?


Missing translation on button in french on the login flow

Preflight checklist

[X] I could not find a solution in the existing issues, docs, nor discussions.
[X] I agree to follow this project's Code of Conduct.
[X] I have read and am following this repository's Contribution Guidelines.
[ ] I have joined the Ory Community Slack.
[ ] I am signed up to the Ory Security Patch Newsletter.

Ory Network Project
24969d7e-2bc8-4043-a490-0cd6280fa415
Describe the bug
Login flow displays a "Sign in with password" button in french. All the UI is well translated expect this button.

Reproducing the bug
Try to login with browser sending Accept-Language: fr,fr-FR header.
Relevant log output
No response
Relevant configuration
No response
Version
Cloud
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response

And also on /ui/registration.
1 - Message "You tried signing in with<EMAIL_ADDRESS>which is already in use by another account. You can sign in using your password." is not translated.
2 - Create account is not translated.

I am happy to contribute if there is somewhere to submit a PR. It seems like it is related to https://github.com/ory/kratos/tree/master/text but I cannot find the french translation file.


Unable to get test notifications to the Slack when the  "Slack Notification Level" parameter was set to "OK" state

By default we receive test notifications only when  “WARN” or “ERROR” state is reached. So to get notifications I set the value to "OK" and still I was not able to get the notifications

What I understand from your comment, is you are receiving slack notifications but when you change it to "OK", you don't get the notifications? Is my understanding correct?
Also, note that there are 2 separate parameters for email/slack notifications. If you are referring to slack notifications, please make sure your adjust the appropriate parameter Slack Notification Level to "OK".


LocalStorage is not kept in sync between the Options/Popup and contentScripts

Description
LocalStorage is not kept in sync between the Options/Popup and contentScripts. Only initial value at initialisation is seen at all levels.
Reproduction

Clone repo and pnpm i
Run pnpm dev
Load the extension in the browser
Add this line to contentScripts/index.ts after console.info('[vitesse-webext] Hello world from content script')

console.info('[vitesse-webext] Storage loaded', JSON.stringify(storageDemo))
and importing the storage import { storageDemo } from '~/logic/storage'

From any website, while the web extension is loaded we will see in the browser console
[vitesse-webext] Storage loaded {"_shallow":false,"dep":{"w":0,"n":0},"__v_isRef":true,"_rawValue":"Storage Demo","_value":"Storage Demo"}

that is the storage initiated with value 'Storage Demo' used in `logic/storage.ts'

Then try to change this value in the Options page to 'New Storage Value'
This value will update the storage in the web extension and keep it reactive between the Options page and Popup. On the other hand the storage value seen from the contentScripts is all the time the initial value given at creation time = 'Storage Demo'

I would guess this local storage is different between the web extension and the page where the contentScripts are injected, but I am curious about why the initial value is properly seen in all the components including the contentScripts.
I can use messages to communicate between the Options/Popup pages and the contentScript but will be great to better understand this behaviour.
Environment
$ npx envinfo --system --binaries --browsers
System:

OS: macOS 11.1
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 29.61 MB / 32.00 GB
Shell: 5.8 - /bin/zsh

Binaries:

Node: 16.0.0 - ~/.nvm/versions/node/v16.0.0/bin/node
npm: 7.23.0 - ~/.nvm/versions/node/v16.0.0/bin/npm

Browsers:

Chrome: 96.0.4664.110
Safari: 14.0.2

I thought the way to keep data synced is using background.js?

(from https://developer.chrome.com/docs/extensions/mv2/architecture-overview/#contentScripts)

@shaal, indeed. Why I was surprised in seeing the storage being initiated with the right data while it is just initiated in vue components.

@shaal, indeed. Why I was surprised in seeing the storage being initiated with the right data while it is just initiated in vue components.

@PiiXiieeS storageDemo should not be accessed in content-scripts directly, because that Options/Popup is under chrome-extension://EXTENSION-ID domain but content-scripts is running at the website you opened.
You should use webext-bridge to get the latest storage value.

@PiiXiieeS storageDemo should not be accessed in content-scripts directly, because that Options/Popup is under chrome-extension://EXTENSION-ID domain but content-scripts is running at the website you opened.
You should use webext-bridge to get the latest storage value.


Suggestion: Add character blacklist to WarbandBank Auto Deposit

So I love the warband bank auto deposit feature. However, I was wondering if a character blacklist can be added to not run on certain characters OR an addon profile so I can change it for my main only. Thanks :)
Also, can the amount be increased?
Love the addon, thanks in advance.

I'll think about the "blacklist". Adding profiles for only one feature in the addon won't happen.
As for increasing the amount, what are you thinking as to what the new cap would be?

Maybe 10k gold? Thanks :)

Increased the slider count from 1,000 to 10,000 in e57d702. This will go live on Oct 22.


multi gpu train sdxl

I think there is a need for a neat multi GPU documentation now. We cannot access any information about how it should be used, what parameters, how step and epoch should be calculated, and what logic it works on. We are trying to understand through issues and conversations, but we cannot get a healthy result. Please explain this topic a little more specifically and give more support to multi GPU, which is now a great need.

We cannot access any information about how it should be used, what parameters, how step and epoch should be calculated, and what logic it works on.

You can check this in documentations for EveryDream.

Thank you for the suggestion, I just checked but couldn't find any relevant
information. I hope I explained correctly that my question is for Sd xl
multi gpu, as I stated in the title.
On Tue, Feb 13, 2024 at 17:09 dill-shower @.***> wrote:

We cannot access any information about how it should be used, what
parameters, how step and epoch should be calculated, and what logic it
works on.
You can check this in documentations for EveryDream.
—
Reply to this email directly, view it on GitHub
https://github.com/kohya-ss/sd-scripts/issues/1118#issuecomment-1941601939,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5JEU7OFJSZZ2IOTMGP4PY3YTNXZLAVCNFSM6AAAAABDE2QN6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGYYDCOJTHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

any relevant information

There is no particular difference between sdxl and sd2.1 training in terms of hyperparameters. Regarding the change in lr and the rest depending on the number of GPUs, it is logical to look at the section where it is written how to calculate lr depending on the batch size. Adding a GPU simply allows you to increase the batch size and is unlikely to require any special changes to the hyperparameters

sd-scripts uses accelerate which supports DDP, DeepSpeed, FSDP etc.. When you use multi-gpu environment, batch will be multiplied by number of your gpus. For example, if you use 4 gpus and 4 train batch size, then accelerate uses total 16 batch size = 4 gpus x 4 train batch size. In sd-scripts, train batch size means "train batch size per one device."
You maybe consider larger learning rate when you use multi-gpus because it will impact on batch size.
Other training details may not influenced on. sd1.5, sd2.1 sdxl, whatever.

sd-scripts uses accelerate which supports DDP, DeepSpeed, FSDP etc.. When you use multi-gpu environment, batch will be multiplied by number of your gpus. For example, if you use 4 gpus and 4 train batch size, then accelerate uses total 16 batch size = 4 gpus x 4 train batch size. In sd-scripts, train batch size means "train batch size per one device."
You maybe consider larger learning rate when you use multi-gpus because it will impact on batch size.
Other training details may not influenced on. sd1.5, sd2.1 sdxl, whatever.

Then, as far as I understand, I need to adjust the parameters by dividing the epochs and steps by the number of GPUs, is it true or are there other parameters I missed? But even if I set it as 1 epoch, it is okay to say that there will be as many epochs as the number of GPUs, but why then, for example, when there are 4 GPUs, I divide the 4k steps by 4 and set it as 1k steps. Then shouldn't it do the 1k step on all 4 GPUs at the same time and finish the process? Why does it start the second 1k step after finishing the 1k step? I'm sorry, it's a bit confusing :) I may have misunderstood ddp. But I can say that there is a serious performance decrease when compared to 1 GPU, which makes me wonder if it is an efficient enough solution. Do I need to split num_cpu_threads_per_process here as well? The parameters I use for ddp are --ddp_timeout=10000000 --ddp_gradient_as_bucket_view --ddp_static_graph, sorry again as I'm very new to this.

Accelerate and sd-scripts automatically divide total train steps by number of gpus.
If you want to set total train steps via epochs, just write how many epochs to train. Then, sd-scripts calculates total train steps using train epochs and divides them by number of gpus
And default setting of multi gpu training in accelerate is DDP. DDP (Distributed Data Parallel) is a method where GPUs copy parameter gradients from the optimizer state and receive divided datasets for training. So, DDP consumes slightly more time for synchronizing each states, but it is really small amount of time. I think there is something wrong in your environment


Retargeting of example allegro inconsistent with video in project website?

Hi, I was trying to run the exmple of retarget allegro in the example folder. However, it seems the retarget result is different for some hand pose, the following is from website and from local runs, do I need to modify any other parts?

https://github.com/NVlabs/sim-web-visualizer/assets/43113029/16774194-2a8b-44b7-981b-00246baaa819

After changing the retargeting type from vector to dexpilot, it is exactly the same.


Nested changesets

In cases where we'd want to create a User and require that it has an associated Address, it would be great to be able to call Repo.insert(changeset) and have Ecto create both a User and its associated Address. We could do this by having the changeset for Address stored in the changeset for User when we call cast/4 on User with the :address association as one of its required 'fields'.
For example, in the User model we'll set the required fields like:
defmodule MyApp.User do
  schema "users" do
    field :name, :string
    field :email, :string
    has_one :address, MyApp.Address
  end

 @required_fields ~w(name email address)

  def changeset(model, params \\ :empty) do
    model
    |> cast(params, @required_fields, [])
  end
end

When passing an association as one of the required or optional fields in cast/4, we call the assocation's changeset/2. So the cast/4 above will call MyApp.Address.changeset/2, expecting a key "address" in the params. We call MyApp.Address.changeset/2 so that it calls cast/4 and the validations for MyApp.Address (changeset/2 will be a required function in Ecto Model instead of just a convention).
In summary, I'm proposing the ff:

passing an association as a required or optional field to cast/4 will call that association's changeset/2 function
changeset/2 be a required function in all Ecto.Models
the association changeset will be stored in the primary model's changeset. Not sure what to name the field yet. Maybe :nested?
errors in a nested changeset will bubble up to the parent changeset and set valid? to false
Make Repo.update/1 and Repo.insert/1 recognize nested changesets and insert/update the nested changesets along with the primary one

What do you guys think?

I'm a little scared by the second point, making changeset/2 required in all models; I think it may limit the generality of an Ecto.Model. Couldn't we just raise an error on missing changeset/2 (maybe with an option somewhere to specify a different function to call? Provided it could be implemented in a simple way).

This is roughly what is intended for #357. There are many details I am not sure yet and we have more pressing concerns to handle before 1.0. So the plan is to tackle this after 1.0 is out. :)

Ok will follow that issue then :)


Add cached sources to sourcemap

Currently only the main, top-level source is added to the sourcemap, resulting in empty maps for any included files. This PR adds the missing sources from the cache. Fixes #56

+1 , this issue is pretty dire, it's rendering source map useless

This PR still having problem with sourcemap of styl module requested outside root. eg: require "kouto-swiss" inside node module still return null sourcemap content

Great! SourceMap works well now!

The sourcemap won't update when the source changed

@singggum3b Did you find a solution for sourcemap requested outside root? Experience an issue like #56.

just use stylus directly then load the css with its source file instead.


Add an option for grace-exit [sshiraiwa:graceexit]

Dear team,
Thank you for providing this powerful FEM library.
Based on a conversation last week, this pull request is to add an option to
raise a custom error class, so that we can catch it in a SWIG wrapper layer. An issue here is that when working with MFEM interactively from Python, I can blow up the whole Python interpreter by making
a small (;D) mistake.  In the example below, I tried to open a mesh file, which does
not exist. And since MFEM calls mfem_error, it killed an interpreter.

I would rather like to keep the python interpretor alive.
This pull adds one global variable (mfem_use_throw) in the mfem namespace, which
a user can access via set_use_throw/get_use_throw. When mfem_use_throw is True,
mfem_error throws an error instead of calling abort.  Below, it shows how it behaves in Python

Please let me know what you think. Also, please note that only serial environment is
considered.

Hi Syun'ichi,
We will prefer not to build any code with exceptions by default, so I made a small change in https://github.com/mfem/mfem/pull/433/commits/0ef9ff252f0cb353f0c5753662fd2047c43d88ab.
You will need to config with MFEM_USE_EXCEPTIONS=YES.
If that works for you, we may also consider removing set/get_use_throw.

Hi Tzanio,
Okay. It should work. Actually, this was what I thought first ;D.
--
S

@sshiraiwa, @tzanio, I made some changes - take a look to see if you are OK with them.

@tzanio Somewhat related: Doesn't fem/picojson.h throw exceptions and is included by default?

HI all,  Thank you. I made a corresponding adjustment in PyMFEM (grace-exit-support branch). I only made changes in the serial version (mfem.ser modules). Once this is merged to master, I will merge the branch too in PyMFEM and apply the same adjustment in mfem.par.

You are welcome, @sshiraiwa. Thank you for the PR.
I was wondering about the parallel case - I'm not sure how this will work in parallel in PyMFEM. For example: what will happen if only some of the ranks actually throw an exception? Probably a deadlock? Anyway, hopefully, this PR is a good start for better error handling in PyMFEM.

If one rank throws an exception and others started to MPI communication, it will make a deadlock. This pull is mainly motivated to improve the user interaction in a serial mode. I agree that a user still needs to be extremely careful to use it in parallel environment, and TBH, I don't know if there is general approach to such a case.


Exception handling

Hi, I'm having some difficulty understanding how exception handling would work. I'm having some trouble catching the below Exception for example. I'm thinking i'm perhaps in the wrong namespace and/or trying to catch the wrong Exception?
namespace DotMailer\Api\DataTypes;

$contact = new ApiContact();
$contact->email = $_POST['email'];
$contact->emailtype = $_POST['email_type'];

try {
	$contact = $resources->PostContacts('invalid input');
} catch (Exception $e) {
	echo $e->getMessage();
}

i'm perhaps in the wrong namespace

Probably
The exception should probably be \DotMailer\Api\Exception (note the backslash at the beginning).

Thanks! I still seem to be having an issue with successfully catching the exception. Could you supply an example?


created an empty commit to test cla bot

Testing the CLA bot

I have read the CLA Document and I hereby sign the CLA


Reject S3 URLs as ZAR_ROOT

When verifying #881, I mistakenly thought I was supposed to set my $ZAR_ROOT to an actual S3 URL, but this is incorrect. I was supposed to still use a $ZAR_ROOT on the local filesystem and specify the S3 URL via -data.
When I did it the wrong way, it actually accepted this and populated the bucket, but put the metadata in a local path starting with a directory s3:. It basically still works when I run it on my Mac, but this is not how it's intended, and pathnames with colons in them are invalid on Windows, so this feels like a bug. Repro is with zq commit 59b4bcc.
$ export ZAR_ROOT="s3://zq-881"

$ ls -l
[no output... current local directory starts out empty]

$  aws s3 ls s3://zq-881
[no output... S3 bucket starts out empty]

$ zq ~/work/zq-sample-data/zng/*.gz | zar import -s 25MB -

$ tree -s
.
└── [         96]  s3:
    └── [         96]  zq-881
        └── [        995]  zar.json

2 directories, 1 file

$ aws s3 ls --recursive s3://zq-881
2020-07-20 19:42:52   23094074 20180324/1521911841.543641.zng
2020-07-20 19:42:45   25476221 20180324/1521911975.777469.zng
2020-07-20 19:42:40   25483926 20180324/1521912152.518493.zng
2020-07-20 19:42:35   25453122 20180324/1521912335.72784.zng
2020-07-20 19:42:30   25499352 20180324/1521912549.366398.zng
2020-07-20 19:42:26   25478311 20180324/1521912792.328806.zng
2020-07-20 19:42:17   25483642 20180324/1521912990.158766.zng

$ zar zq "count()" _ | zq -f text "sum(count)" -
1462078

Per a team discussion today, it sounds like the fix would be to reject the S3 URL in $ZAR_ROOT with a helpful error message.

In a discussion with @alfred-landrum and @mattnibs it was decided that we're going to add support for S3 URL in $ZAR_ROOT, so closing this one as "invalid".


The import io.restassured.RestAssured cannot be resolved

Hi Johan,
I am getting the red squiggly lines when I use the below static imports:
import static io.restassured.RestAssured.*; import static io.restassured.matcher.RestAssuredMatchers.*;
My POM. xml has the below dependencies:

	<dependency>
		<groupId>io.rest-assured</groupId>
		<artifactId>rest-assured</artifactId>
		<version>3.0.3</version>
		<scope>test</scope>
	</dependency>

	<!-- https://mvnrepository.com/artifact/io.rest-assured/json-path -->
	<dependency>
		<groupId>io.rest-assured</groupId>
		<artifactId>json-path</artifactId>
		<version>3.0.3</version>
	</dependency>

	<!-- to validate that a JSON response conforms to a Json Schema -->
	<dependency>
		<groupId>io.rest-assured</groupId>
		<artifactId>json-schema-validator</artifactId>
		<version>3.0.2</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/io.rest-assured/xml-path -->
	<dependency>
		<groupId>io.rest-assured</groupId>
		<artifactId>xml-path</artifactId>
		<version>3.0.3</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpclient</artifactId>
		<version>4.5.3</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime -->
	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpmime</artifactId>
		<version>4.5.3</version>
	</dependency>

	<dependency>
		<groupId>org.hamcrest</groupId>
		<artifactId>java-hamcrest</artifactId>
		<version><IP_ADDRESS></version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core -->
	<dependency>
		<groupId>org.hamcrest</groupId>
		<artifactId>hamcrest-core</artifactId>
		<version>1.3</version>
		<scope>test</scope>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-library -->
	<dependency>
		<groupId>org.hamcrest</groupId>
		<artifactId>hamcrest-library</artifactId>
		<version>1.3</version>
		<scope>test</scope>
	</dependency>

	<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
	<dependency>
		<groupId>commons-io</groupId>
		<artifactId>commons-io</artifactId>
		<version>2.5</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.testng/testng -->
	<dependency>
		<groupId>org.testng</groupId>
		<artifactId>testng</artifactId>
		<version>6.11</version>
		<scope>test</scope>
	</dependency>

	<!-- https://mvnrepository.com/artifact/com.beust/jcommander -->
	<dependency>
		<groupId>com.beust</groupId>
		<artifactId>jcommander</artifactId>
		<version>1.72</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.yaml/snakeyaml -->
	<dependency>
		<groupId>org.yaml</groupId>
		<artifactId>snakeyaml</artifactId>
		<version>1.18</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/com.google.inject/guice -->
	<dependency>
		<groupId>com.google.inject</groupId>
		<artifactId>guice</artifactId>
		<version>4.1.0</version>
	</dependency>

	<!-- https://mvnrepository.com/artifact/org.assertj/assertj-core -->
	<dependency>
		<groupId>org.assertj</groupId>
		<artifactId>assertj-core</artifactId>
		<version>3.8.0</version>
		<scope>test</scope>
	</dependency>

And my imports for the time being are:
import static io.restassured.RestAssured.;
import static io.restassured.matcher.RestAssuredMatchers.;
import static org.hamcrest.Matchers.;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import static io.restassured.path.json.JsonPath.;
import org.testng.annotations.Test;
import io.restassured.path.json.JsonPath;
Don't know where am I missing something. Also the given() etc (without any parameter) is not showing in the IntelliSense.
Please help!!

Solved this error by using earlier versions of Rest Assured and Maven. Also added dependency for groovy-all.
So my current POM is:

io.rest-assured
rest-assured
3.0.0
test

org.testng
testng
6.9.10
test

org.codehaus.groovy
groovy-all
2.4.5

Please tell what are the other dependencies should be there when using rest-assured 3.0.3 or can you tell how to know all the compile time dependencies which are going to be needed for using version 3.0.3 of Rest Assured.
Thanks!

I'm having this same problem.

Even I am facing the same issue

I had the same problem, turned out that the rest-assured .jar was corrupted.

I wasn't aware of this? Corrupted in what way?

Also having same problem . I have a TestEnvironment.java class to define server properties.. i have imports:
package org.tshuma.javabrains.messenger.test; import static com.jayway.restassured.RestAssured.*; import static org.hamcrest.Matchers.*;

remove test from your pom dependency and it will work. as Suggested above by r-simlinger. It is working for me.

Thanks @jchaturvedi-cpi ! Will do it.

io.rest-assured
rest-assured
3.1.1
    __

I have face same issue and i tried all the soultion mentioned here ..however still am having problem with given(). is not recognized
I am using
3.0.0

io.rest-assured
rest-assured
${restAssuredVersion}

io.rest-assured
json-path
${restAssuredVersion}

io.rest-assured
xml-path
${restAssuredVersion}

io.rest-assured
json-schema-validator
${restAssuredVersion}

I have face same issue and i tried all the soultion mentioned here ..however still am having problem with given(). is not recognized
I am using
3.0.0
io.rest-assured
rest-assured
${restAssuredVersion}
io.rest-assured
json-path
${restAssuredVersion}
io.rest-assured
xml-path
${restAssuredVersion}
io.rest-assured
json-schema-validator
${restAssuredVersion}

suthakar79 make sure you have this line import static io.restassured.RestAssured.*; in ur step definition file

It got resolved after downgrade intellji to 3.0.0 version from 3.0.1

This comment by r-simlinger did the job for me!!

I had this problem for a couple of years, last time I just bailed on 3.x. This time I pushed thru
as indicated above this is maven jar file problem, goto the command line and try this:
mvn clean test-compile
see if you get something like this:
invalid LOC header (bad signature)
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error reading /opt/.m2/repository/io/rest-assured/rest-assured/3.3.0/rest-assured-3.3.0.jar; invalid LOC header (bad signature)
[ERROR] error reading /opt/.m2/repository/org/codehaus/groovy/groovy/2.4.15/groovy-2.4.15.jar; invalid LOC header (bad signature)

I had this issue for both rest-assured and groovy, I assume they are related.
I moved the entire rest-assured and groovy dirs to a new name to force a re-download and it works!!!
No need to change scope.
I saved the original non-working m2 sub dirs,
@johanhaleby let me know if you need any input

Try to ignore the version :

io.rest-assured
rest-assured
test

Remove the  tag.

@r-simlinger is correct

The reason is the test

If you remove it - this works. The question is why is this provided in the documentation then...

The reason is the
<scope>test</scope>

Same, after removing it works..

I don't thing removing scope test is a valid fix. It may work but its really not the way to solve this problem. This would result in the jar being packaged with your code, not your test code.
as I suggested above goto your .m2 repo and remove the jar(s) then re update them with the scope set to test. If this works that should tell you that it has nothing to do with the scope test

I have faced the same issue and I got it resolved by doing below steps,

Go to your .m2 directory and delete the rest-assured folder. (C:\Users\username.m2\repository\io).
Rerun the pom.xml file to download the rest assured dependencies in .ms folder. (You can rerun pom.xml file by simply updating some values in the file).
Now see the  'red squiggly lines ' will be gone from your java class.

Thanks @timrsfo for your suggestion. It helped 💯

I was using 4.1.1 version of rest-assured when faced this issue. I got it fixed by reverting back to 3.0.0. But what is the fix with 4.1.1 ?

The fix for version 4.1.1 is to add some transitive dependencies:
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured-common</artifactId>
            <version>4.1.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <version>4.1.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>json-path</artifactId>
            <version>4.1.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>xml-path</artifactId>
            <version>4.1.1</version>
            <scope>test</scope>
        </dependency>

They are now excluded in the maven-bundle-plugin rest-assured 4.1.1 configuration. See the negated packages in the <Export-Package> of https://repo.maven.apache.org/maven2/io/rest-assured/rest-assured/4.1.1/rest-assured-4.1.1.pom

I was implementing in maven. Removing the test The import issue is solved.

The solution by @oharsta works for RestAssured 4+
Removing the  is not the right way forward. It will pollute your build files with test libraries.

I am also getting the same error in eclipse. Can I still go add the dependencies in pom.xml? does it require for projects in eclipse?

I am also getting the same error in eclipse. Can I still go add the dependencies in pom.xml? does it require for projects in eclipse?

Try running maven->update if your are using eclipse. Select project - right click - maven - update

Hi all,
Removing the test right under ... for each dependency worked fro me to have the red lines disappear. The test runs but having:
java.lang.NoClassDefFoundError: Could not initialize class io.restassured.RestAssured
For this problem, I changed the rest assured version from 4.0.0 to 3.0.0 YEAYYYYYY works :)

I got this on runtime: java.lang.NoClassDefFoundError: Could not initialize class io.restassured.RestAssured
compile-time everything is okay, but when running the test the class can't be found.
I'ver tried java versions 10, 11 and 12 all the same issue.
Running with Spring Boot 2.2.5 and Spring Cloud Hoxton.SR1, but I can't see any issue coming from there.
Reverted to version 3.3.0 and it's working fine.
Apparently the modules aren't configured correctly?

HI,
I am using Rest assured 3.0.2 for my API testing and everything is working as expected in windows. But Having some issues in Linux machine.
Error is :-
Could not initialize class io.restassured.RestAssured failed - Only in Linux Machines using Rest-Assured 3.0.2
Can you help me on this ?

HI,
I am using Rest assured 3.0.2 for my API testing and everything is working as expected in windows. But Having some issues in Linux machine.
Error is :-
Could not initialize class io.restassured.RestAssured failed - Only in Linux Machines using Rest-Assured 3.0.2
Can you help me on this ?

decenyboy5
Look for above codes ...
you need to care on the version and test remove the scope/change the version

HI,
I am using Rest assured 3.0.2 for my API testing and everything is working as expected in windows. But Having some issues in Linux machine.
Error is :-
Could not initialize class io.restassured.RestAssured failed - Only in Linux Machines using Rest-Assured 3.0.2
Can you help me on this ?

decenyboy5, i am facing exactly the same issue on Linux machines. Did you happen to resolve the issue ?

I suspect the issue is that their API was changed and the documentation was not. None of the examples they give work.

The reason is the
<scope>test</scope>

I was also facing this issue...your suggestion worked for me

Removing the scope as test could solve it, but its not the right thing to do. Follow the solution suggested by @oharsta
In rest assured versions above 4.x, explicit packages are excluded.
<plugin>                 <groupId>org.apache.felix</groupId>                 <artifactId>maven-bundle-plugin</artifactId>                 <version>3.5.1</version>                 <extensions>true</extensions>                 <configuration>                     <instructions>                         <Export-Package>                             !io.restassured.path.xml.*,                             !io.restassured.path.json.*,                             !io.restassured.common.*,                             !io.restassured.internal.path.xml.*,                             !io.restassured.internal.path.json.*,                             !io.restassured.internal.common.*,                             io.restassured.*                         </Export-Package>                         <Import-Package>                             groovy.*;version="${groovy.range}",                             org.codehaus.groovy.*;version="${groovy.range}",                             *                         </Import-Package>                     </instructions>                 </configuration>             </plugin>
And so, you need to explicitly provide certain entries which are excluded.
<dependency>             <groupId>io.rest-assured</groupId>             <artifactId>spring-mock-mvc</artifactId>             <version>4.3.0</version>             <scope>test</scope>         </dependency>         <dependency>             <groupId>io.rest-assured</groupId>             <artifactId>rest-assured</artifactId>             <version>4.3.0</version>             <scope>test</scope>         </dependency>         <dependency>             <groupId>io.rest-assured</groupId>             <artifactId>json-path</artifactId>             <version>4.3.0</version>             <scope>test</scope>         </dependency>         <dependency>             <groupId>io.rest-assured</groupId>             <artifactId>xml-path</artifactId>             <version>4.3.0</version>             <scope>test</scope>         </dependency>

whe i used 4.3.0 version, and removed the "test", it sitll had an error like this.

then I changed the version back to 3.3.0, i worked without error.

Thank you @arafattechstyle, I was just setting up a new test project using rest-assured 4.2.0 and blindly trusted the official Getting Started guide that emphasized in several places that

REST Assured includes JsonPath and XmlPath as transitive dependencies

Adding the json-path explicitly allowed me to build.

It does not work with above mentioned solution, I tried with removing the scope, changing the api but still no help

import static io.restassured.RestAssured.given;
import static io.restassured.RestAssured.when;
import static io.restassured.RestAssured.then;
this solution worked for me to resolve above problem..

Removing test worked for me

Removed test from scope it worked for me in 4.3.0 @all

nice it works after remove scope

Do not remove the test scope. You do not want test classes in your production JARs.
I am using Kotlin with Java > 9 so my test dependencies look as follows
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>spring-mock-mvc</artifactId>
            <version>4.3.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured-all</artifactId>
            <version>4.3.0</version>
            <scope>test</scope>
        </dependency>

I got back my RestAssured.* classes

The reason is the
<scope>test</scope>

Tried but still it is not getting imported in VSCode

org.seleniumhq.selenium
selenium-java
3.141.59

junit
junit
4.11
test

org.testng
testng
6.14.3
test

io.rest-assured
spring-mock-mvc
4.3.0
test

io.rest-assured
rest-assured
4.3.0
test

io.rest-assured
json-path
4.3.0
test

io.rest-assured
xml-path
4.3.0
test

org.projectlombok
lombok
1.18.20
provided

	<dependency>
		<groupId>com.fasterxml.jackson.core</groupId>
		<artifactId>jackson-annotations</artifactId>
		<version>2.9.6</version>
	</dependency>
	<dependency>
		<groupId>com.fasterxml.jackson.core</groupId>
		<artifactId>jackson-databind</artifactId>
		<version>2.9.6</version>
	</dependency>
	<dependency>
		<groupId>io.github.json-snapshot</groupId>
		<artifactId>json-snapshot</artifactId>
		<version>1.0.17</version>
	</dependency>
	<dependency>
		<groupId>com.google.inject</groupId>
		<artifactId>guice</artifactId>
		<version>5.0.1</version>
	</dependency>
	<dependency>
		<groupId>org.apache.juneau</groupId>
		<artifactId>juneau-marshall</artifactId>
		<version>8.2.0</version>
	</dependency>
  </dependencies>
<build>
<plugins>

org.apache.felix
maven-bundle-plugin
3.5.1
true

                            !io.restassured.path.xml.*,
                            !io.restassured.path.json.*,
                            !io.restassured.common.*,
                            !io.restassured.internal.path.xml.*,
                            !io.restassured.internal.path.json.*,
                            !io.restassured.internal.common.*,
                            io.restassured.*

                            groovy.*;version="${groovy.range}",
                            org.codehaus.groovy.*;version="${groovy.range}",
                            *

``

remove test from your pom dependency and it will work. as Suggested above by r-simlinger. It is working for me.

Yeah great, this worked for me. Thanks

I had this issue and I got it resolved by doing below steps,

Go to your .m2 directory and delete the rest-assured folder. (C:\Users\username.m2\repository\io).
Re-run the pom.xml file to download the rest assured dependencies in .m2 folder. (You can rerun pom.xml file by simply updating some values in the file).
Now see the  'red squiggly lines ' will be gone from your java class.

Thanks @timrsfo for your suggestion. It helped 💯

I was also getting the same issue above steps worked for me
Thanks @PremKumarGR

@ramanojha Maven 4.0.0, Eclipse Neon, RestAssured 3.0.0 (scope test).
I don't think RestAssured.given() is necessary. If you import it like I do, such as import static io.restassured.RestAssured.given;, then you can use just given() and know exactly where it comes from.

yes it works....thank u.

for which junit it works junit4 or junit5?


Mention bluetooth in platinum elements

Fixes #166
R= @addyosmani

(gentle ping)

Currently waiting for the bluetooth element to be confirmed as getting pulled in before we land this change :) cc @tjsavage

Let's do it!


Make all toView: parameters an optional UIView (for consistency)

Description
I recently changed to non optionals for certain methods to be non-optional (see https://github.com/ustwo/autolayout-helper-swift/commit/5c09f94e6bb4ba53abacd4ef8b71e9db5dca33c2) but I'm rethinking and wondering if its better that Cocoa crashes inside UIKit if you send in a nil superview instead of it being a no-op (does nothing)
Solutions

We could / should change back to optionals also so its easier to integrate and consistent across all methods. Note if you use a method that needs a toView then it will crash when the constraint is created
Or we could go one step further and make some use default params to reduce method chaining
Other??

What do you think? @danieladias @chris59david @jamaine-ustwo
Note. should merge PR #1 first

e.g.     func addLeftConstraint(toView view: UIView, relation: NSLayoutRelation, constant: CGFloat) -> NSLayoutConstraint {
should go back to
func addLeftConstraint(toView view: UIView?, relation: NSLayoutRelation, constant: CGFloat) -> NSLayoutConstraint {

same for all public methods
We could also go one step further and use default params (since we now have a dedicated Obj-C version)

Still unsure crashing is the way to go but if you want this to be more easy to use and devs will get feedback anyway with the crash, it sounds good.

True thats not very Swift and I hate crashes
But it might be better to crash if we distribute this is a framework (#2) than mask the problem form the user.
But I think default params can resolve this from being an issue since you either a) want the view to be there or b) you don't want it and use a constant instead
Or maybe implicitly unwrapped optionals be used in a parameter?
I raised this issue as I'm not sure if the recent change I made is worth keeping i.e is it good to cover what UIKit would do if you created that constraint and what if Apple change behaviour under the hood?

:+1: for default params :) for me that feels like a nice way to go


v-model does no sync when keyboard Backspace clicked in input[type="password"] & IE 9

Version
2.2.4
Reproduction link
https://jsfiddle.net/array_huang/9czpu10o/2/
Steps to reproduce
I can't test my code in jsfiddle with IE 9. So maybe you need to test it in the local file.
<!DOCTYPE html>

  <meta charset="UTF-8">
  <title>Document</title>

    <form action="">
      <input type="text" v-model="username">

{{username}}

      <input type="password" v-model="pwd">

{{pwd}}

    </form>

What is expected?
when I input Backspace to delete any word in input[type="password"] with v-model & IE 9, it should sync like input[type="text"].
What is actually happening?
It doesn't sync when I input Backspace.

In most conditions these type of bugs are not caused by Vue. Still, can anyone confirm this?
/ping @vuejs/collaborators

I just confirm this problem with the provided code. IE 9 emulator of IE 11 on Windows 10.
FYI, IE 10/11 don't cause this.

Oh Ｉ forgot to tell I tested in IE 9 emulator of IE 11 on Windows 10. I don't really have an IE 9,so I can't promise that the bug can reproduce in an real IE 9.


support POST instead of GET for /features/:featureKey/access

Hi, nice project! I'm suggesting to change from GET to POST for /features/:featureKey/access. Some clients understand the "convention" to not use request bodies with GET e.g. Postman. See this discussion for background.

Current coverage is 82.07%

Merging #4 into master will not affect coverage as of 4c3c55a

@@            master      #4   diff @@
======================================
  Files            7       7
  Stmts          318     318
  Branches        17      17
  Methods          0       0
======================================
  Hit            261     261
  Partial         17      17
  Missed          40      40

Review entire Coverage Diff as of 4c3c55a

Powered by Codecov. Updated on successful CI builds.

@jimreesman Makes sense! Thanks for the PR and for updating the documentation and the tests. Merging it now.


Maxspeed fix

I split #2726 into two pieces.
This PR fixes the problem that was mentioned in testSetSpeed0_issue367: in case when the speed only has one value for both directions but the access values are directed it no longer leads to inconsistent behaviour. We now force two directions for the car speed, so I was also able to fix #2662 (no tests added, existing tests were only adapted).
Furthermore now the better value "maximum max_speed" is picked for bike parser decisions instead of the "minimum max_speed" which pointed me to another bug regarding picking the previous/next PriorityCode (which is now fixed).

Very nice! The last piece for the correct handling of the maximum speed in GH would then be #2266. But we need to handle upper/lower bounds for untagged roads to fix this as discussed in https://github.com/graphhopper/graphhopper/pull/2268#issuecomment-1141349955


Upgrade Laravel to 7.x

We can't have our version-checking tool be behind the times:

So this PR upgrades Laravel to the latest version 🎉 (from version 5.8.18 to 7.19.1)
Nothing much more to say besides that 😄

😄


Problem with appendHtml method (style 'missing')

Hi, there !
I'll write a client-side program for 'inject' html code for coloration parser, so I've used the appendHtml method for html injection, but there is no color...
For example:
import 'dart:html';
import 'dart:convert';
void main()
{
  var str = 'p';
  var sanit = const HtmlEscape(const HtmlEscapeMode(name:'injector', escapeLtGt:false, escapeQuot:false, escapeApos:false, escapeSlash:false)); //that's not the solution
  document.body.appendHtml(sanit.convert(str));
  querySelector("span#test").style.color='pink'; //Solution, but not pretty...
}

Where is my error ?
Thanks for your help !

Did you get any output in the console? Can you create a dartpad.dartlang.org to reproduce?

appendHtml already sanitizes its input, and inline styles are not allowed by default. Escaping it yourself ahead of time won't help, it will just get double escaped. You need to either explicitly allow the things you want
  document.body.appendHtml(str, validator: new NodeValidatorBuilder.common()..allowInlineStyles());

or, for the case where you have constant html that you wrote yourself, and you're very sure that you won't ever be including user content, you can skip the sanitization entirely
  document.body.appendHtml(str, treeSanitizer: NodeTreeSanitizer.trusted);

It's ok, thanks all ! :)


Add subviewStyle prop to NavigationHeader

Implements: #7204
Pinging @ericvicenti for review.

Seeing as we already use the word "component", maybe we should rename this prop to subComponentStyle?

But wouldn't it imply that the style would be applied on the component itself rather than its container ?

Ok, makes sense

@facebook-github-bot shipit

@ericvicenti, please check the status of CI build before accepting.
This broke trunk :(
https://travis-ci.org/facebook/react-native/builds/125600477
@tlvenn do you have a quick fix?
Otherwise let's revert it and do a new iteration.

Revert has been pushed, give it another try please with the tests passing :)

Hmm my bad, i was actually wondering myself if I shouldn't had guard against this.. Guess I should had listen to myself :)
Let me fix and resubmit.

Please test related UI in UIExplorer.
We are asking for everyone to add a thorough Test Plan to every contribution because some things that may look minor can still affect a lot of people.
It usually takes less time to test than recover.

Fixed in #7235 and will make sure to proper test things next time.

Given that you already shipped the revert, I guess I need to wait until it lands before I can actually resubmit the whole thing ?

Yeah, it landed just a few minutes ago.
So go ahead, create a new one
On Tue, Apr 26, 2016 at 2:15 PM, Christian Meunier<EMAIL_ADDRESS>
wrote:

Given that you already shipped the revert, I guess I need to wait until it
lands before I can actually resubmit the whole thing ?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/facebook/react-native/pull/7214#issuecomment-214736629

Sorry about the breakage. Thanks for being on top of this, @bestander!

New PR #7236 submitted @bestander


Genbank

CI seems to fail because of " Detected unstripped out notebooks\n!!!Remember to run nbdev_install_hooks'
Could you maybe run nbdev_clean or nbdev_prepare and make a new commit? I also saw the change you made for Python 3.11, but it's unclear to me whether this will break compatibility with previous Python versions? It would be good to make sure the package also work for people using older versions.

I'm pretty confident that the 3.11 change I made with Mapping won't affect compatibility with any version above at least 3.5, I think probably back to 3.3.
I'll look at the CI issue.

I made substantial changes to enable genbank as input as well as z stacking. @seanrjohnson Can you have a look and see if anything I changed in your code needs to be fixed?
We also still need to improve the docs to highlight the new features as well as test everything thoroughly before we can merge,

I now see that the way you changed how attributes are kept in the patches DataFrame and added to the hover tool mean that it is no longer feasible for the user to easily had data to be displayed when hovering as was shown in the Options notebook "Adding information to be displayed when hovering". The user would now have to modify the GFF file which is not very convenient. I'll try to thing about a possible fix.


fix(config): Ensure --config net.git-fetch-with-cli=true is respected

What does this PR try to resolve?
#13479 changed the global context initialization order so that command line stuff is processed after we read some config.
This had a side effect of breaking --config net.git-fetch-with-cli=true.
I reverted the change to restore support for --config.
Fixes #13991
How should we test and review this PR?
Additional information
This reverts commit https://github.com/rust-lang/cargo/commit/f525e1f383fc0d0a7adbdfb1bac6d6228ae79b33.
This removes color control from warnings for unstable features.
For some reason this removed color support from cargo -Zhelp in the
tests but I can't reproduce it locally.
The most important thing was getting the config fix in.
There are two follow ups

Can we have the config working and color?
Why did this fail for this field and not the others we already had
tests for?

I ran out my immediate time box for looking into these.

I suspect we should do a beta-backport for this (another reason to keep this PR simple).
Should we also do a 1.78.1?  I suspect that 1.79 is close enough that it won't be worth it.

@bors r+

:pushpin: Commit 4ce2b61f2a08c45eae91641eb66a6698ea462ed0 has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit 4ce2b61f2a08c45eae91641eb66a6698ea462ed0 with merge 7a6fad0984d28c8330974636972aa296b67c4513...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing 7a6fad0984d28c8330974636972aa296b67c4513 to master...


Docstrings for files

Docstring coverage for the various Julia files, starting with franklin.jil and expanding over time.

Right, this is now on my to-do stack, I will bring your changes into my branch and extend the docstring coverage. Expect another push soon.

And that should be docstring coverage for all of NoteMate, such as it is. 😁 Have a review and then we can merge and close this.


Ability to deploy Citadel into own namespace with Helm install

Describe the feature request
This is recommended by the documentation (see: https://istio.io/docs/concepts/security/#deployment-guidelines), but the helm chart only allows deployment into the release namespace.
Describe alternatives you've considered
N/A
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[X] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[X] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please see https://github.com/istio/installer if you have not already

Excellent! Thanks, John. Would you consider this method of installation stable enough for production use?

The istio/installer is the backer for the operator which is an alpha: https://istio.io/docs/setup/install/operator/
I would encourage you to try it out, but not depend on it for production

I think you can also setup citadel in its own namespace once https://github.com/istio/istio/pull/17316 lands in 1.2.7 (?) and already in 1.3

Grea. Will take a look. Thanks again, @howardjohn


Docker: Add missing libz to distroless build

Committed directly to master that fix:
https://github.com/tezedge/tezedge/commit/b6c83d02971ad9ca21d92518f534c35d9f798a81
Did you run that locally to see if it works? For me libz.so.1 didn't exist, only libzstd.so.1.


Fix pylint errors

Summary
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 5 (100.0%)  changed or added relevant lines in 4 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.009%) to 85.351%

Files with Coverage Reduction
New Missed Lines
%

qiskit_nature/drivers/psi4d/psi4driver.py
2
86.32%

Totals

Change from base Build<PHONE_NUMBER>:
0.009%

Covered Lines:
9672

Relevant Lines:
11332

💛  - Coveralls


Incorrect badge count if there's no gold badge

I wanted to use this widget in my profile, but the badge count was incorrectly displaying, it was because i don't have gold badge, but i have silver and bronze badges, so the code was setting bronze count into gold count.

@krishnaacharyaa I have fixed the issue and have submitted a pull-request #3
I hope you'll check and merge it.
Thanks.


Typescript type error

During the Angular 8 build,  there is multiple typescript error  in lazysizes.d.ts:
Version: 5.3.1

This seems to be the case still with lazysizes 5.3.2


Add prometheus collector

Docker 1.13 (experimental) provides an endpoint (/metrics), which provides Prometheus formated metrics.
To collect those, a Prometheus collector should be added.

First iteration finished with #7


Example for monotonic counters?

I'm trying to plot "Network Total Bytes" (which is a monotonic counter), and need a way to compute the deltas inside time bins and extrapolate total traffic per bin (or per second).
Any simple way to do that?

Hi,
not sure what exactly you mean, perhaps that will help:
WireData | summarize avg(TotalBytes) by bin(TimeGenerated, 1h)  | render timechart
You're welcome to raise more questions on our community space where similar Qs have been raised and answered.
Thanks

Nope, doesn't help. What I'm saying is that I want to chart things that increase continuously (like packet counters) on a per-interval basis (i.e., plot only differences between successive values over time, and not the absolute value).

@rcarmo isn't there always a counter based a certain timespan like total xy per second?!

@rs38 No, per-interval counters aren't always available. And when dealing with networking, it is often critical to be able to be able to bin the data for cross-referencing with other event types, and avoid averages (which is why I opened this ticket in the first place).
To this date, I have not yet been able to do this solely inside Log Analytics - I've had to export the data and post-process it.

@rcarmo this should work for you. I'm curious if there are some more elegant ways….?!
let t1 = Perf
| where CounterName == "Requests Failed Total"
| project Tg1 = TimeGenerated , C1 = CounterValue
| sort by Tg1 desc
| extend rn = row_number();
let t2 = Perf
| where CounterName == "Requests Failed Total"
| project Tg2 = TimeGenerated , C2 = CounterValue
| sort by Tg2 desc
| extend rn = row_number() + 1;
t1
| join (t2) on rn
| project  Tg1, C2-C1

@rcarmo if the time bins are regular, you can try a make-series to turn the data points into an array. Then, you can apply a finite impulse response filter with series-fir to compute the differences between immediate rows. For this, your finite impulse response filter should be something like dynamic([-1, 1]) or dynamic([1, -1]). Finally, if you would like to turn the resulting array into a table, you can use mvexpand. If you do end up using mvexpand, make sure that in the in the mvexpand statement you set the "limit" clause to a high number, since by default it truncates at 128 rows.
That was one option. Another option is to try an approach similar to what @rs38 recommended, or you can experiment with the prev or next functions.

@jruales Wow!  I guess only knowing about the exitance of the function prev() did the trick! it would be very helpful to have something that helps finding these by translating SQL command. in this case LAG....


Update README regarding risky tests

Ref: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2689#issuecomment-293840492
Also, the documentation does not mention the setRiskyAllowed method at all, it would be a nice addition.

The doc clearly states an instance of PhpCsFixer\ConfigInterface must be returned, which is a pointer to all its methods including setRiskyAllowed. I see no update needed on this topic.
However Please be aware that this feature is experimental. is something we can drop, as this is done and stable?

it's stable


Allow vela projects and builds to be viewed by authenticated users

Description
What is your idea?
Value
Why is this important? Who does it impact? Will this make something better, faster, etc?
Definition of Done
What is the end goal of this story?
Effort  (Optional)
Estimated effort to complete this story? (Best Guess e.g. 1-2 days)
Impacted Personas (Optional)
Which personas will benefit from completing this story? (Users, Administrators, etc)

This story is complete 👍 🎉


useAuthUser

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] This is bug in the application 🐛
[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed
[x] I'm reporting the issue to the correct repository

Describe the bug
I'm trying to get the UserState from the Context Provider with this function:
https://authkit.arkadip.dev/authdata/, but the variable stays undefinied.
Additional context
What works is implementing the auth-kit and the private Route. Also checking if the user is authenticated with  useIsAuthenticated() works fine.
The goal is to get the current email of the logged-in user and only allow the "admin" to do special operations.
License
Apache-2.0 © React Auth Kit

Please provide the codebase or git repo link for a local test

@darkmatter18 I have same problem.
Basic example:
request('GET', `/auth?${code}`)
        .then(response => {
          if(signIn({
            token: response.token,
            tokenType: 'Bearer',
            authState: {id: 4},
            expiresIn: 10000000
          })){
            console.log(auth())
          } else{
            console.log('Error')
          }
        })
        .catch((error) => setError(error.reason))

console.log(auth() returns null even if I set authState directly with id:4.
Using version 2.7.1

@Kretiss This is the expected behaviour, behind the scenes react auth kit uses useReducer and it won't update the auth user immediately after calling sign in, it'll be done in next render. Correct me if I'm wrong @darkmatter18


chore(main): release 0.14.0

:robot: I have created a release beep boop
0.14.0 (2024-04-25)
Features

add accessiblities field to outdoor detail page (bcd0e04)
handle offline outdoor (8765356)

Bug Fixes

change order of sections (a4efdda)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/GeotrekCE/Geotrek-rando-widget/releases/tag/0.14.0 :sunflower: