JavaCheckStyleRule: Package Naming

Add a CheckStyle Rule for PackageName.
Issue: CheckStyle: Pacakage Naming (Start and Patterns) #3268

Can one of the admins verify this patch?

Did this test turn up any new failures in our codebase?

no failures.

Did you test against other illegal package names? e.g. no characters other than lower-case 'a' through 'z', no spaces, no underscores, etc.

"no characters other than lower case a - z" is different than the notes required. Current regular expression is only check not A-Z, underscore, hyphen,  I will edited the regular expression.
Note:
The regular expression:"^(?=.{9,80}$)((com.microsoft.azure|com.azure)(.[^A-Z_-]{1,20})*)+$"
(?=.{9,80}) means the total length packages name is between 9 to 80 characters.
^(com.microsoft.azure|com.azure) means the package name have to start with either com.microsoft.azure or com.azure.

modify the current partial of regular expression from (.[^A-Z_-]{1,20})* to  (.[a-z]{1,20})*) will meet the requirement that "no character other than lower case 'a' through 'z' "

Looks good. Please improve the comment to clarify all the rules being enforced, and then this can be merged.

the new comment is updated. Does it looks good?


⚠ GitLab Server has degraded performance

In 256b627, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11492 ms

Resolved: GitLab Server performance has improved in b77ce0c.


Number of people in the team

https://github.com/BucurEva87/cinema
NOTE: Two members team.

STATUS: APPROVED 🟢
Hi @BucurEva87, and @Khanetmoi👋,
Your project is complete!  There is nothing else to say other than... it's time to close it :shipit:
Congratulations! 🎉
To Highlight 🎉

No linter errors. :heavy_check_mark:
Gitflow is followed. :heavy_check_mark:
Professional README file. :heavy_check_mark:
PR has a good title and summary. ✔

Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


change env ISTIO_VERSION , match the latest.

Signed-off-by: yanggang<EMAIL_ADDRESS>/kind cleanup
Fix export ISTIO_VERSION , for the latest version.

Hi @yanggangtony. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

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

@yanggangtony: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
4fa9fa5a975e61f7d65824c643ba70df0015f550
link
true
/test release-notes

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

We aren't going to update this every release so I am not sure the benefit of this? If anything it may be better to set it to 1.0.0 or something to make it clear it is a placeholder?
Or 0.0.0 so its not a real version...

yes.. thanks for the advice.
its hard to define the version number..
So just close the pr , is that ok?

Closing per @yanggangtony request


[Fixes #125] Adds Docker compose to project

Fixes #125

Adds the ability to boot up a dev environment orchestrated with docker-compose.
Provides multiple Dockerfiles for:

mocktarget
back-end
front-end

Uses environment variables to determine the hostnames of the different services.

This uses defaults so that it can still be run using regular mechanisms.
TODO

[x] Update README to provide docker-compose information
[x] Double check that current docker configuration works (probably needs some ENV in the file)

ping @esttorhe, can we fix/merge this? i think it would be great see this merged

paired with @marctc on this.
what we found:
it seems to web seems to work, but no errors were scrapped:

It might be related to mishap of addresses (<IP_ADDRESS>, <IP_ADDRESS>, localhost). logs from api:
2021/03/05 15:50:29 Serving on address <IP_ADDRESS>:8080
2021/03/05 15:50:34 Received new dns resolution result for mock-target. Address resolved: [<IP_ADDRESS>:7778]
2021/03/05 15:50:34 Received new dns resolution result for periskop. Address resolved: [localhost:7777]

I hope it is helpful.

@dependabot rebase

Definitively this is a great addition, it will the quick startup and teasing of the solution


@tinacms/cli init - On a windows machine, we do not add stylesheets back giving a poor UX.

Description
When working with @tinacms/cli on windows we do not add the stylesheets back to _app.js files.
Steps to reproduce

run npx @tinacms/cli init on a windows machine.
Check the app.js file to see stylesheets have not been added.

Expected result
Styleesheets should be added.
Actual result
Stylesheets have not been added back
Environment
Tinacms Package Versions
  @tinacms/cli V0.53.3

Tools
Windows 10
git bash / powershell / command prompt

is this fixed now @perkinsjr  ?

Yup! We fixed it with that latest release that is in the @dev branch.


nib run command fails with node container

Command:
nib run frontend npm install --save react-split-pane
Error:
ERROR: Cannot create container for service frontend: invalid volume spec "rw": invalid volume specification: 'rw': invalid mount config for type "volume": invalid mount path: 'rw' mount path must be absolute
The same command works replacing nib with docker-compose.
Possibly an issue with nib expecting a : in mounted volumes.
    build: ./frontend
    volumes:
      - ./frontend:/usr/src/app
      - /usr/src/app/node_modules

@johnallen3d

Thanks for the bug report @ben-dalton! I did a little research and this would appear to be a bug upstream with docker-compse. It looks like issue has been resolved and was targeted at the v1.12.0 release (which dropped 18 days ago). It seems that Docker for Mac is currently shipping with v1.11.2. For the sake of testing I went ahead and installed v1.12.0 and the problem you describe is resolved. I think the best course of action is to wait and drop down to docker-compose for this scenario in the meantime.

Thanks, @johnallen3d !


[BUG] froms do not save when I provide custom resources

Versions Used
Kaffy: 0.9.0
Phoenix: 1.5.4
Elixir: 1.10.4
What's actually happening?
I added some configuration
config :kaffy,
  otp_app: :tellebee_admin,
  ecto_repo: TellebeeAdmin.Repo,
  router: TellebeeAdminWeb.Router,
  resources: &TellebeeAdminWeb.Kaffy.Config.create_resources/1

and heres' the file
defmodule TellebeeAdminWeb.Kaffy.Config do

  alias TellebeeAdmin.DB.{Child, User, UserAdmin}

  def create_resources(_conn) do
    [
      main: [
        name: "Main", # a custom name for this context/section.
        schema: ["users", "children"],
        resources: [ # this line used to be "schemas" in pre v0.9
          users: [schema: User, admin: UserAdmin],
          children: [schema: Child, title: "children"],
        ]
      ]
    ]
  end
end

Now when I go into the admin panel, I am unable to create a new user. it errors. if I remove the configurations and rely on the default, it works but when I hook this back in, it returns that the save is successful but the record is not saved. I can see in the console that the app does not even attempt an insert.
I added an io and cutom insert changesets
defmodule TellebeeAdmin.DB.UserAdmin do

  alias TellebeeAdmin.DB.User

  def form_fields(_) do
    [
      email: %{type: :text},
      active: %{type: :boolean},
      password: %{type: :password}
    ]
  end

  def create_changeset(schema, attrs) do
    # do whatever you want, must return a changeset
    IO.inspect("inserting!!")
    User.changeset(schema, attrs)
  end

  def update_changeset(entry, attrs) do
    # do whatever you want, must return a changeset
    IO.inspect(("updateing"))
    User.changeset(entry, attrs)
  end

end

the updating log does show up in the console so whatever is happening is after this callback is run.
What should happen instead?
The save form should work

Hey @cultofmetatron
The keys in the keyword list returned by your create_resources/1 function must resemble your contexts and schemas.
The following means you have a main context which has User and Children schema modules. See the inline comments in the following snippet:
def create_resources(_conn) do
    [
      main: [ # <- the context "name" as an atom
        name: "Main",
        schema: ["users", "children"],
        resources: [
          users: [schema: User, admin: UserAdmin], # <- users should be user
          children: [schema: Child, title: "children"], # <- children should be child
        ]
      ]
    ]
end

Let me know if this doesn't work.

thankyou! that fixed it!


Unexpected end of JSON input while parsing near '...2.0-alpha.0":{"name":'

Today i have tried creating new app using below command.
npx create-react-app myapp
And getting below error:

Hi @manavpandya, can you please try running npm clear cache --force and then try again? If the issue is still occurring, can you please add the information requested in our issue template?
If that fixes it, let me know! Thanks.

@mrmckeb  It works, Thanks much, but may I know the reason ??

I'm glad it worked, but it would be hard to pinpoint the exact reason. It's likely that something failed as npm was building the cache.
Have fun with CRA!


[Feature request] Graysale tray icon

I would like a grayscale tray icon. Maybe toggleable since some people might not like it. OpenRGB has this option. The 2 tray icons I have (Cohesion being one of them) look so out of place. (Im on KDE, but this issue is likely applicable to gnome too)

That makes sense and I'll look into it. Thanks for the report.


CBAPI-3400 Remove unused dependancies

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Tests have been added that prove the fix is effective or that the feature works.
[x] New and existing tests pass locally with the changes.
[x] Code follows the style guidelines of this project (PEP8, clean code, linter).
[x] A self-review of the code has been done.

What is the ticket or issue number?
#255
CBAPI-3400
Pull Request Description
A question has been raised about our dependencies, I have investigated the issue and located the unused packages and removed it. Thanks to @sevdog about helping for those.
Does this introduce a breaking change?

[ ] Yes
[x] No

How Has This Been Tested?
Ran the unit tests, and docs.

https://coveralls.io/jobs/97989302 the coveralls has passed I don't know why it waits for a status here.


Is Dory supports residual connections networks which has multi-output now?

@ABurrello I asked this question #15  before . And you said that Dory will support the multi-output model based on the residual network in the future. Do you have any progress now?

Unfortunately, we have still not tested the support for this kind of network. Now it is implemented, but not tested. Unfortunately, I do not forsee tests in the near future.

Unfortunately, we have still not tested the support for this kind of network. Now it is implemented, but not tested. Unfortunately, I do not forsee tests in the near future.

Thanks to your replay,! Please let me know if there are any progress!


Foundation Text Input Issue

In foundation this code exists:
    #{text-inputs(all, 'input')} {
      -webkit-appearance: none;
      -moz-appearance: none;
      border-radius: 0;
      @include form-element;
      @if $input-include-glowing-effect == false {
        -webkit-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
        -moz-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
        -ms-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
        -o-transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
        transition: border-color $input-transition-fade-time $input-transition-fade-timing-function, background $input-transition-fade-time $input-transition-fade-timing-function;
      }
      &.radius {
        @include radius($input-border-radius);
      }
    }

The problem is that .radius only gets applied to the last thing text-input() returns, thus the "@include radius(" styles get applied to everything except whatever happens to be last.
It also applies the .disabled coloring to everything, which comes from the form-element line.

Closing this in favor of #244.


Package request: Zen browser

Project description
Zen browser is a Firefox based browser somewhat like Vivaldi or Floorp
Metadata

homepage URL: https://www.zen-browser.app/
source URL: https://github.com/zen-browser/desktop
license: Mozilla Public License 2.0
platforms: Linux, MacOS, Windows

Add a :+1: reaction to issues you find important.

Looks like a duplicate? https://github.com/NixOS/nixpkgs/issues/327982

Sorry Github issue search is useless how did that not even come up?


kernel density estimator, ported from pareto

This PR introduces a simple kernel density estimator which is ported from pareto's sample module. It is a direct port- there was no refactoring done during the migration, only changes from gsl invocations to owl.
The implementation has been (tentatively) placed in owl/stats/owl_stats_kde.ml[i], but I would appreciate input as to where it best belongs in owl.
In pareto, the estimate pdf function accepts an optional variant to denote the type of kernel- personally I would prefer something like a functor or first class module to indicate / depict kernels, but am curious to know other opinions on the matter.

I think kde should be part of stats module (in the base lib if it does not have any dependency on C code).  The implementation code looks good to me, let's see if @superbobry has further suggestions or comments?
Another thought, would polymorphic variants help in making the type definition lighter? But I am totally fine with the current type definition.

@ryanrhymes factored the kde implementation as a KDE submodule of owl_base_stats, changed the variants to polymorphic versions, and renamed iqr to interquartile.
Let me know if you need any more tweaks before it's merge ready.


Load user profile view

Pull request,
1- UIView multiple UIVView are being managed programatically
2- "UIBotton" sliding up is working well.
3- "UIbotton" home is working, when you click on that it returns back to the NNDBar call back function.
4- sliding framework works well
5- NNDbar works well.
6- delegate method works well.

is not it a pleasure to approve your own code lol lol ... I did my best to apply the standards that I learnt through out my experience.


Corrections to NEON NMDC term mappings file

@bmeluch @brynnz22 thank you for all the work on the NEON NMDC term mapping file: neon_nmdc_term_mappings.tsv
I was reviewing the TSV file and noticed a few things that need to be corrected before the NEON pipeline that we're writing in the nmdc-runtime repo can fully consume it without any ambiguities:

Ideally the program can consume only exact_mappings, i.e., table columns that map exactly to either scalar slots or nested slots. It's useful to record the kind of mappings that exist between columns and slots in the TSV file and wherever possible we should try and record the way in which the columns can be used / parsed to get to the format which is acceptable to the target slot in the "notes" column of the TSV file.
How should testMethod be parsed so that we get individual values for tot_nitro_cont_meth, tot_org_c_meth, protocol_link.url / protocol_link.name
Only one of ammoniumNRepNum, nitrateNitriteNRepNum, analyticalRepNumber can map to replicate_number. I'm thinking analyticalRepNumber is the best fit, but we need to look at the definitions more closely
How should samplingProtocolVersion be parsed so that we get individual values for protocol_link.url / protocol_link.name, samp_collec_method, micro_biomass_meth, water_cont_soil_meth
startDate and collectDate both cannot map to collection_date. I'm thinking it should just be collectDate. Important to note that it's not a range either
MIXS ENVO triad (env_broad_scale, env_local_scale, env_medium) need to be represented in a special way in the mapping file

We need to note another TSV file that we have for the triad term mappings: https://github.com/microbiomedata/nmdc-schema/blob/main/assets/neon_mixs_env_triad_mappings/neon-nlcd-local-broad-mappings.tsv

illuminaAdapterKit, illuminaIndex1, illuminaIndex2 all map to pcr_primers, but pcr_primers only accepts one has_raw_value, and judging by the definition I think it should be illuminaAdapterKit. But if we're unsure we can always record it as a mapping (other than exact_mapping) and fill in something in the notes for clarification
ncbi_project_name is a great close_mapping ncbiProjectID, amd we shouldn't be dropping ncbiProjectID simply because it isn't an exact_mapping. You can always make an issue to get an ncbi_project_id slot added, which can be a NamedThing. That way it can capture both the id as uriorcurie, and the name as a string. If we decide to do this, we can get rid of the ncbi_project_name slot

CC: @turbomam

@sujaypatil96  is this still needed?

Closing based on lack of comments. Please reopen if this is still needed.


Synthesis failed for automl

Hello! Autosynth couldn't regenerate automl. :broken_heart:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Switched to a new branch 'autosynth-automl'
Cloning into '/tmp/tmpabtj6ofa/googleapis'...
Note: switching to '35c6057ac2f4db2a69c932e3b7301a0600e3e150'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 35c6057a chore: sample context aware commits for a broader base of services (#2932)
Note: switching to '3f5f8a2258c6a41f9fbf7b80acbca631dda0a952'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 3f5f8a22 feat: added support for project id in scope feat: added support for order_by in SearchAllResources rpc feat: added support for search on location, labels and networkTags fields docs: updated according to above features
Switched to a new branch 'autosynth-automl-3'
2020-04-28 17:52:20 [INFO] Running synthtool
2020-04-28 17:52:20 [INFO] ['/usr/local/google/home/rennie/env3.6/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
/usr/local/google/home/rennie/env3.6/bin/python: No module named synthtool
2020-04-28 17:52:20 [ERROR] Synthesis failed
HEAD is now at 35c6057a chore: sample context aware commits for a broader base of services (#2932)
Switched to branch 'autosynth-automl'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 578, in <module>
    main()
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 459, in main
    return _inner_main(temp_dir)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 568, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 352, in synthesize_loop
    synthesize_inner_loop(toolbox, synthesizer)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 362, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(self.environ)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synthesizer.py", line 115, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/usr/local/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/usr/local/google/home/rennie/env3.6/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Remove Projection

What problem does this solve or what need does it fill?
The Projection enum only allows 2 types of projections, PerspectiveProjection and OrthographicProjection. This makes making custom projections very inconvenient.
What solution would you like?
Remove the Projection enum and use generics.
Generic default problems
If I make the Camera3dBundle use a generic projection:
#[derive(Bundle)]
pub struct Camera3dBundle<P: CameraProjection + Component + Send + Sync + 'static = PerspectiveProjection>  {
    pub camera: Camera,
    pub camera_render_graph: CameraRenderGraph,
    pub projection: P,
    pub visible_entities: VisibleEntities,
    pub frustum: Frustum,
    pub transform: Transform,
    pub global_transform: GlobalTransform,
    pub camera_3d: Camera3d,
    pub tonemapping: Tonemapping,
    pub dither: DebandDither,
    pub color_grading: ColorGrading,
    pub main_texture_usages: CameraMainTextureUsages,
}

Also make the Default implementation generic:
impl<P: CameraProjection + Component + Send + Sync + 'static + Default> Default for Camera3dBundle<P> {
    fn default() -> Self {
        Self {
            camera_render_graph: CameraRenderGraph::new(SubGraph3d),
            camera: Default::default(),
            projection: Default::default(),
            visible_entities: Default::default(),
            frustum: Default::default(),
            transform: Default::default(),
            global_transform: Default::default(),
            camera_3d: Default::default(),
            tonemapping: Default::default(),
            dither: DebandDither::Enabled,
            color_grading: ColorGrading::default(),
            main_texture_usages: Default::default(),
        }
    }
}

Then let's use it:
commands.spawn(Camera3dBundle::default()); // Error! No type annotations

Despite me setting a default generic, it doesn't work. However If I do:
commands.spawn(Camera3dBundle::default() as Camera3dBundle); // ok

It works... for some reason...
I'm afraid this weird quirk of Rust might confuse beginners.
Alternative solutions
We could keep Projection for Camera3dBundle and use a different bundle for custom projections.

This is not a rust bug. You implement Default for all generic types, so the compiler doesn't know which. When you then cast it to Camera3dBundle it uses the default generics you provided. When only implementing Default for the specific generic, e.g. impl Default for Camera3dBundle<PerspectiveProjection>, I think it works, but not sure

The thing im more concerned about is how we fetch any projection. dyn query is not a bevy standard

The thing im more concerned about is how we fetch any projection. dyn query is not a bevy standard

You don't. You can just fetch the camera's Frustum component and it'll be enough for most usecases. And if you specifically need the CameraProjection for some reason then you can use generics.

No I mean the render system needs to fetch them

Why?

The projections needs to be used somewhere, doesn't it?


node-work2 status is NotReady,why?

vagrant up worker2 creating and starting both are normal, BUT, Kubectl get nodes shows Node-workd2 is NotReady! why? thanks in advance.
Best regards,
owen
----issue-info-
$ kubectl get nodes
NAME                 STATUS     ROLES     AGE       VERSION
master.vagrant.vm    Ready      master    40m       v1.9.1+2.1.5.el7
worker1.vagrant.vm   Ready          23m       v1.9.1+2.1.5.el7
worker2.vagrant.vm   NotReady       9m        v1.9.1+2.1.5.el7
----vagrant up work2----
vagrant up worker2
Bringing machine 'worker2' up with 'virtualbox' provider...
==> worker2: Importing base box 'ol7-latest'...
==> worker2: Matching MAC address for NAT networking...
==> worker2: Setting the name of the VM: Kubernetes_worker2_1530192939894_22077
==> worker2: Fixed port collision for 22 => 2222. Now on port 2201.
==> worker2: Clearing any previously set network interfaces...
==> worker2: Preparing network interfaces based on configuration...
worker2: Adapter 1: nat
worker2: Adapter 2: hostonly
==> worker2: Forwarding ports...
worker2: 22 (guest) => 2201 (host) (adapter 1)
==> worker2: Running 'pre-boot' VM customizations...
==> worker2: Booting VM...
==> worker2: Waiting for machine to boot. This may take a few minutes...
worker2: SSH address: <IP_ADDRESS>:2201
worker2: SSH username: vagrant
worker2: SSH auth method: private key
worker2:
worker2: Vagrant insecure key detected. Vagrant will automatically replace
worker2: this with a newly generated keypair for better security.
worker2:
worker2: Inserting generated public key within guest...
worker2: Removing insecure key from the guest if it's present...
worker2: Key inserted! Disconnecting and reconnecting using new SSH key...
==> worker2: Machine booted and ready!
==> worker2: Checking for guest additions in VM...
==> worker2: Setting hostname...
==> worker2: Configuring and enabling network interfaces...
worker2: SSH address: <IP_ADDRESS>:2201
worker2: SSH username: vagrant
worker2: SSH auth method: private key
==> worker2: Automatic installation for Landrush IP not enabled
==> worker2: Mounting shared folders...
worker2: /vagrant => /Users/biyang/k8s/labs/vagrant-boxes/Kubernetes
==> worker2: Running provisioner: shell...
worker2: Running: /var/folders/2m/bjrpx9zj1mn0q120w4cgg_b80000gn/T/vagrant-shell20180628-47236-qod999.sh
worker2: Installing and configuring Docker Engine
worker2: Package btrfs-progs-4.9.1-1.0.2.el7.x86_64 already installed and latest version
worker2: Resolving Dependencies
worker2: --> Running transaction check
worker2: ---> Package docker-engine.x86_64 0:17.12.1.ol-1.0.3.el7 will be installed
worker2: --> Processing Dependency: container-selinux >= 2.9 for package: docker-engine-17.12.1.ol-1.0.3.el7.x86_64
worker2: --> Processing Dependency: libcgroup for package: docker-engine-17.12.1.ol-1.0.3.el7.x86_64
worker2: --> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-17.12.1.ol-1.0.3.el7.x86_64
worker2: --> Running transaction check
worker2: ---> Package container-selinux.noarch 2:2.21-1.el7 will be installed
worker2: --> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.21-1.el7.noarch
worker2: ---> Package libcgroup.x86_64 0:0.41-15.el7 will be installed
worker2: ---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
worker2: --> Running transaction check
worker2: ---> Package policycoreutils-python.x86_64 0:2.5-22.0.1.el7 will be installed
worker2: --> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: setools-libs >= 3.3.8-2 for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: libsemanage-python >= 2.5-9 for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-22.0.1.el7.x86_64
worker2: --> Running transaction check
worker2: ---> Package audit-libs-python.x86_64 0:2.8.1-3.el7 will be installed
worker2: ---> Package checkpolicy.x86_64 0:2.5-6.el7 will be installed
worker2: ---> Package libsemanage-python.x86_64 0:2.5-11.el7 will be installed
worker2: ---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
worker2: ---> Package setools-libs.x86_64 0:3.3.8-2.el7 will be installed
worker2: --> Finished Dependency Resolution
worker2:
worker2: Dependencies Resolved
worker2:
worker2: ================================================================================
worker2:  Package                  Arch     Version                  Repository     Size
worker2: ================================================================================
worker2: Installing:
worker2:  docker-engine            x86_64   17.12.1.ol-1.0.3.el7     ol7_preview    31 M
worker2: Installing for dependencies:
worker2:  audit-libs-python        x86_64   2.8.1-3.el7              ol7_latest     75 k
worker2:  checkpolicy              x86_64   2.5-6.el7                ol7_latest    294 k
worker2:  container-selinux        noarch   2:2.21-1.el7             ol7_addons     28 k
worker2:  libcgroup                x86_64   0.41-15.el7              ol7_latest     65 k
worker2:  libsemanage-python       x86_64   2.5-11.el7               ol7_latest    112 k
worker2:  libtool-ltdl             x86_64   2.4.2-22.el7_3           ol7_latest     48 k
worker2:  policycoreutils-python   x86_64   2.5-22.0.1.el7           ol7_latest    454 k
worker2:  python-IPy               noarch   0.75-6.el7               ol7_latest     32 k
worker2:  setools-libs             x86_64   3.3.8-2.el7              ol7_latest    619 k
worker2:
worker2: Transaction Summary
worker2: ================================================================================
worker2: Install  1 Package (+9 Dependent packages)
worker2: Total download size: 32 M
worker2: Installed size: 128 M
worker2: Downloading packages:
worker2: --------------------------------------------------------------------------------
worker2: Total                                              4.1 MB/s |  32 MB  00:07
worker2: Running transaction check
worker2: Running transaction test
worker2: Transaction test succeeded
worker2: Running transaction
worker2:   Installing : libcgroup-0.41-15.el7.x86_64                                1/10
worker2:
worker2:   Installing : audit-libs-python-2.8.1-3.el7.x86_64                        2/10
worker2:
worker2:   Installing : checkpolicy-2.5-6.el7.x86_64                                3/10
worker2:
worker2:   Installing : libtool-ltdl-2.4.2-22.el7_3.x86_64                          4/10
worker2:
worker2:   Installing : python-IPy-0.75-6.el7.noarch                                5/10
worker2:
worker2:   Installing : libsemanage-python-2.5-11.el7.x86_64                        6/10
worker2:
worker2:   Installing : setools-libs-3.3.8-2.el7.x86_64                             7/10
worker2:
worker2:   Installing : policycoreutils-python-2.5-22.0.1.el7.x86_64                8/10
worker2:
worker2:   Installing : 2:container-selinux-2.21-1.el7.noarch                       9/10
worker2:
worker2:   Installing : docker-engine-17.12.1.ol-1.0.3.el7.x86_64                  10/10
worker2:
worker2:   Verifying  : libcgroup-0.41-15.el7.x86_64                                1/10
worker2:
worker2:   Verifying  : setools-libs-3.3.8-2.el7.x86_64                             2/10
worker2:
worker2:   Verifying  : libsemanage-python-2.5-11.el7.x86_64                        3/10
worker2:
worker2:   Verifying  : 2:container-selinux-2.21-1.el7.noarch                       4/10
worker2:
worker2:   Verifying  : python-IPy-0.75-6.el7.noarch                                5/10
worker2:
worker2:   Verifying  : libtool-ltdl-2.4.2-22.el7_3.x86_64                          6/10
worker2:
worker2:   Verifying  : docker-engine-17.12.1.ol-1.0.3.el7.x86_64                   7/10
worker2:
worker2:   Verifying  : policycoreutils-python-2.5-22.0.1.el7.x86_64                8/10
worker2:
worker2:   Verifying  : checkpolicy-2.5-6.el7.x86_64                                9/10
worker2:
worker2:   Verifying  : audit-libs-python-2.8.1-3.el7.x86_64                       10/10
worker2:
worker2:
worker2: Installed:
worker2:   docker-engine.x86_64 0:17.12.1.ol-1.0.3.el7
worker2:
worker2: Dependency Installed:
worker2:   audit-libs-python.x86_64 0:2.8.1-3.el7
worker2:   checkpolicy.x86_64 0:2.5-6.el7
worker2:   container-selinux.noarch 2:2.21-1.el7
worker2:   libcgroup.x86_64 0:0.41-15.el7
worker2:   libsemanage-python.x86_64 0:2.5-11.el7
worker2:   libtool-ltdl.x86_64 0:2.4.2-22.el7_3
worker2:   policycoreutils-python.x86_64 0:2.5-22.0.1.el7
worker2:   python-IPy.noarch 0:0.75-6.el7
worker2:   setools-libs.x86_64 0:3.3.8-2.el7
worker2: Complete!
worker2: Creating 'btrfs' file system on: /dev/sdb
worker2: Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
worker2: Installing and configuring Kubernetes packages
worker2: Resolving Dependencies
worker2: --> Running transaction check
worker2: ---> Package kubeadm.x86_64 0:1.9.1-2.1.5.el7 will be installed
worker2: --> Processing Dependency: kubectl >= 1.9.1-2.1.5.el7 for package: kubeadm-1.9.1-2.1.5.el7.x86_64
worker2: --> Processing Dependency: kubernetes-cni >= 0.6.0 for package: kubeadm-1.9.1-2.1.5.el7.x86_64
worker2: --> Processing Dependency: kubelet >= 1.9.1-2.1.5.el7 for package: kubeadm-1.9.1-2.1.5.el7.x86_64
worker2: --> Running transaction check
worker2: ---> Package kubectl.x86_64 0:1.9.1-2.1.5.el7 will be installed
worker2: ---> Package kubelet.x86_64 0:1.9.1-2.1.5.el7 will be installed
worker2: --> Processing Dependency: socat for package: kubelet-1.9.1-2.1.5.el7.x86_64
worker2: ---> Package kubernetes-cni.x86_64 0:0.6.0-2.0.1.el7 will be installed
worker2: --> Processing Dependency: kubernetes-cni-plugins = 0.6.0 for package: kubernetes-cni-0.6.0-2.0.1.el7.x86_64
worker2: --> Running transaction check
worker2: ---> Package kubernetes-cni-plugins.x86_64 0:0.6.0-2.0.1.el7 will be installed
worker2: ---> Package socat.x86_64 0:<IP_ADDRESS>-2.el7 will be installed
worker2: --> Finished Dependency Resolution
worker2:
worker2: Dependencies Resolved
worker2:
worker2: ================================================================================
worker2:  Package                    Arch       Version             Repository      Size
worker2: ================================================================================
worker2: Installing:
worker2:  kubeadm                    x86_64     1.9.1-2.1.5.el7     ol7_addons      17 M
worker2: Installing for dependencies:
worker2:  kubectl                    x86_64     1.9.1-2.1.5.el7     ol7_addons     8.9 M
worker2:  kubelet                    x86_64     1.9.1-2.1.5.el7     ol7_addons      17 M
worker2:  kubernetes-cni             x86_64     0.6.0-2.0.1.el7     ol7_addons     797 k
worker2:  kubernetes-cni-plugins     x86_64     0.6.0-2.0.1.el7     ol7_addons     8.5 M
worker2:  socat                      x86_64     <IP_ADDRESS>-2.el7       ol7_latest     289 k
worker2:
worker2: Transaction Summary
worker2: ================================================================================
worker2: Install  1 Package (+5 Dependent packages)
worker2: Total download size: 52 M
worker2: Installed size: 279 M
worker2: Downloading packages:
worker2: --------------------------------------------------------------------------------
worker2: Total                                              5.8 MB/s |  52 MB  00:08
worker2: Running transaction check
worker2: Running transaction test
worker2: Transaction test succeeded
worker2: Running transaction
worker2:   Installing : socat-<IP_ADDRESS>-2.el7.x86_64                                   1/6
worker2:
worker2:   Installing : kubelet-1.9.1-2.1.5.el7.x86_64                               2/6
worker2:
worker2:   Installing : kubectl-1.9.1-2.1.5.el7.x86_64                               3/6
worker2:
worker2:   Installing : kubernetes-cni-plugins-0.6.0-2.0.1.el7.x86_64                4/6
worker2:
worker2:   Installing : kubernetes-cni-0.6.0-2.0.1.el7.x86_64                        5/6
worker2:
worker2:   Installing : kubeadm-1.9.1-2.1.5.el7.x86_64                               6/6
worker2:
worker2:   Verifying  : kubernetes-cni-plugins-0.6.0-2.0.1.el7.x86_64                1/6
worker2:
worker2:   Verifying  : kubeadm-1.9.1-2.1.5.el7.x86_64                               2/6
worker2:
worker2:   Verifying  : kubernetes-cni-0.6.0-2.0.1.el7.x86_64                        3/6
worker2:
worker2:   Verifying  : kubectl-1.9.1-2.1.5.el7.x86_64                               4/6
worker2:
worker2:   Verifying  : socat-<IP_ADDRESS>-2.el7.x86_64                                   5/6
worker2:
worker2:   Verifying  : kubelet-1.9.1-2.1.5.el7.x86_64                               6/6
worker2:
worker2:
worker2: Installed:
worker2:   kubeadm.x86_64 0:1.9.1-2.1.5.el7
worker2:
worker2: Dependency Installed:
worker2:   kubectl.x86_64 0:1.9.1-2.1.5.el7
worker2:   kubelet.x86_64 0:1.9.1-2.1.5.el7
worker2:   kubernetes-cni.x86_64 0:0.6.0-2.0.1.el7
worker2:   kubernetes-cni-plugins.x86_64 0:0.6.0-2.0.1.el7
worker2:   socat.x86_64 0:<IP_ADDRESS>-2.el7
worker2: Complete!
worker2: net.bridge.bridge-nf-call-ip6tables = 1
worker2: net.bridge.bridge-nf-call-iptables = 1
worker2: Your Kubernetes VM is ready to use!

$ vagrant status
Current machine states:
master                    running (virtualbox)
worker1                   running (virtualbox)
worker2                   running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run vagrant status NAME.
Yangs-MacBook-Pro:Kubernetes biyang$ vagrant ssh master
Last login: Thu Jun 28 13:02:06 2018 from <IP_ADDRESS>
Welcome to Oracle Linux Server release 7.5 (GNU/Linux 4.1.12-124.14.1.el7uek.x86_64)
The Oracle Linux End-User License Agreement can be viewed here:
* /usr/share/eula/eula.en_US

For additional packages, updates, documentation and community help, see:
* http://yum.oracle.com/

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
get nodes
NAME                 STATUS     ROLES     AGE       VERSION
master.vagrant.vm    Ready      master    40m       v1.9.1+2.1.5.el7
worker1.vagrant.vm   Ready          23m       v1.9.1+2.1.5.el7
worker2.vagrant.vm   NotReady       9m        v1.9.1+2.1.5.el7
get pods --namespace=kube-system
NAME                                        READY     STATUS     RESTARTS   AGE
etcd-master.vagrant.vm                      1/1       Running    0          42m
kube-apiserver-master.vagrant.vm            1/1       Running    0          41m
kube-controller-manager-master.vagrant.vm   1/1       Running    0          41m
kube-dns-855949bbf-b2ldn                    3/3       Running    0          42m
kube-flannel-ds-hvl54                       0/1       Init:0/1   0          12m
kube-flannel-ds-j9bq2                       1/1       Running    0          26m
kube-flannel-ds-thpr7                       1/1       Running    0          42m
kube-proxy-4hmmw                            1/1       Running    0          26m
kube-proxy-q2vmp                            1/1       Running    0          12m
kube-proxy-sj6lj                            1/1       Running    0          42m
kube-scheduler-master.vagrant.vm            1/1       Running    0          42m
kubernetes-dashboard-7c966ddf6d-l2r7n       1/1       Running    0          42m

That's funny. The problem's gone! The root cause: I'm sure, is that the initialization of worker2 is not over.
Anyway, the problem is solved.
kubectl get nodes
NAME                 STATUS    ROLES     AGE       VERSION
master.vagrant.vm    Ready     master    52m       v1.9.1+2.1.5.el7
worker1.vagrant.vm   Ready         35m       v1.9.1+2.1.5.el7
worker2.vagrant.vm   Ready         21m       v1.9.1+2.1.5.el7

Yes, this is normal, it takes a couple of minutes between the end of the install script and the node to be fully ready.


Cannot get cookies from Safari.

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2023.06.22 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
When downloading YouTube videos, I need to give cookies for it to be able to download age-gated content. This has worked in the past when using "cookies.txt" files, but I recently tried using the "--cookies-from-browser safari" tag. This doesn't work, however. It gives an error about PermissionError: [Errno 1] Operation not permitted: '/Users/thecoderpro/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies'.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-f', 'bestvideo[ext=mp4][vcodec^=avc1]+bestaudio[ext=m4a][acodec^=mp4a]', 'https://www.youtube.com/playlist?list=PLDx09dtcE4z5qSZ1oDkKQ3qyBULjlME3O', '--cookies-from-browser', 'safari', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[812cdfa06] (pip)
[debug] Python 3.11.4 (CPython x86_64 64bit) - macOS-13.4-x86_64-i386-64bit (OpenSSL 1.1.1u  30 May 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Trying secondary cookie location
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/__init__.py", line 1008, in main
    _exit(*variadic(_real_main(argv)))
                    ^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/__init__.py", line 962, in _real_main
    with YoutubeDL(ydl_opts) as ydl:
         ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 674, in __init__
    self.print_debug_header()
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3876, in print_debug_header
    self._setup_opener()
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3920, in _setup_opener
    self.cookiejar = load_cookies(opts_cookiefile, opts_cookiesfrombrowser, self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/cookies.py", line 106, in load_cookies
    extract_cookies_from_browser(browser_name, profile, YDLLogger(ydl), keyring=keyring, container=container))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/cookies.py", line 125, in extract_cookies_from_browser
    return _extract_safari_cookies(profile, logger)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/yt-dlp/2023.6.22/libexec/lib/python3.11/site-packages/yt_dlp/cookies.py", line 529, in _extract_safari_cookies
    with open(cookies_path, 'rb') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted: '/Users/thecoderpro/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies'

Does it work if close Safari completely and run yt-dlp with --cookies-from-browser safari?

I cant check right now but I will check in an hour or soSent from my iPhoneOn 23 Jun 2023, at 12:57, bashonly @.***> wrote:
Does it work if you close Safari completely and run yt-dlp with --cookies-from-browser safari?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

no, it didn't fix the problem, the exact same error appeared. @bashonly

What happens if you try to manually open this file?

/Users/thecoderpro/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies

Also, you may want to try running yt-dlp with sudo

@pukkandan  I can find the file in Finder, and access it using Hex Fiend without problems. Running yt-dlp as Sudo doesn't fix the problem, it gives the same error again. Is there a way to point yt-dlp to a custom .binarycookies file and just copy the cookies over to another folder?

Is there a way to point yt-dlp to a custom .binarycookies file and just copy the cookies over to another folder?

--cookies-from-browser safari:path
By the way, you don't need cookies for most age-gated videos (although they may download slightly higher quality)

Also, you may want to try running yt-dlp with sudo

I suspect that OP is using brew. Is it possible that brew sandboxes yt-dlp?

@gamer191 yes, I am using brew install yt-dlp

@TheCoderProYT do you have another browser installed (firefox, chrome) that you could test to see if it is also impacted?

Have received 2 other reports of this from the discord server now. yt-dlp_macos binary is affected too, not just brew installations

You can get around this by going into System Preferences > Security & Privacy and giving Full Disk Access to Terminal.

In that case, all we can do is improve the error message


addition_rnn example

in the addition_rnn example shouldn't one use TimeDistributedDense instead of Dense for the last layer, since you have return_sequences=True?
Otherwise it doesn't really add up somehow

Hi @lemuriandezapada :)
By "doesn't really add up somehow", do you mean it doesn't get the right answer for addition? I believe it's been independently checked to work by a number of people at this point. It can take a large number of iterations to hit 99% accuracy however, especially when only given a small number of training samples.
Using TimeDistributedDense would equate to a different task. The papers that the addition_rnn are based upon use the sequence to sequence architecture, which enables an arbitrary length sequence as output. By having a Dense layer at the end, the RNN needs to produce the correct digit at the right timestep, and can be called upon as many times a required.
If one used TimeDistributedDense, you'd be restricted to a given output size. The papers in fact feed in the output from the previous timestep as input to the current timestep, something that wouldn't be possible with TimeDistributedDense.

Hi @lemuriandezapada :)
By "doesn't really add up somehow", do you mean it doesn't get the right answer for addition? I believe it's been independently checked to work by a number of people at this point. It can take a large number of iterations to hit 99% accuracy however, especially when only given a small number of training samples.
I'll preface this with - whilst I wrote the code initially, I assumed my understanding of TimeDistributedDense was correct. I assumed that it's a dense layer over the entirety of the previous sequence - vaguely like a Convolution1D where the filter size would cover the entirety of the sequence for each element. I might well be wrong as the naming of TimeDistributedDense seems (complicated)[https://github.com/fchollet/keras/issues/46]. I've just run an experiment with both and TimeDistributedDense takes longer to perform as well as Dense and is also slower to train (I presume as the TimeDistributedDense layer would be larger).
Assuming the above is correct, using TimeDistributedDense would equate to a different task. The papers that the addition_rnn are based upon use the sequence to sequence architecture, which enables an arbitrary length sequence as output. By having a Dense layer at the end, the RNN needs to produce the correct digit at the right timestep, and can be called upon as many times a required.
If one used TimeDistributedDense, you'd be restricted to a given output size. The papers in fact feed in the output from the previous timestep as input to the current timestep, something that wouldn't be possible with TimeDistributedDense.

The results might just as well work, I haven't actually checked it. I just read the code and didn't make sense in my head :P
TimeDistributedDense applies the Dense for every time step... so the same weight matrix applied at every timestep.
Dense would just make one big weight matrix (?) over the entire state space or something similar. How do you feed the outputs back in your case? I see nothing of the like. Just one long direct predict and output collection.

Dense and TimeDistributedDense are almost equivalent apart from a dimshuffle (see get_output). The only functional difference I've found is that TimeDistributedDense can be used as the first layer after input whilst Dense cannot.
Running test code I wrote results in the same training + testing loss and weights for both layer types.
I'd be interested in potentially reopening https://github.com/fchollet/keras/issues/278 as it seems it's still an active issue.

Hm, fascinating. Maybe I was just using the things wrong then. Wouldn't that dimension shuffle actually have an effect on the computation?

Sadly I don't have time to investigate the internals properly. I'd have certainly thought that to be the case but tested in the script above to ensure it worked for input / output weight matrices that aren't square. Increasing the input / output difference from 1 to 100 results in the exact same bias and almost equivalent weights. The difference in the weights is small enough to be floating point discrepancies, especially as the minor discrepancies increase with the number of epochs.
Hopefully someone with better understanding and insights will be able to come in as I won't have the time to properly investigate for a while.

Ah ok, cool, thanks.
I'll dig through it further :)


6.9 beta 1 is out

Update / check beta 2. Submodule tar ball is not available, for some unknown reason.

https://wiki.qt.io/Qt_6.9_Release

Filed as https://bugreports.qt.io/browse/QTBUG-132437


Handle OpenShift resources

OpenShift resources like the Routes are managed as generic resources from which the original Namespace setting is removed:
we should handle it appropriately instead and remove the Namespace field in a more appropriate way

@dmartinol Can you be more specific with an example?
If i understood correctly,  your intention is that namespace fielld can't be removed from openshift' resources , then we can handle it using the following approach:
We can use kustomize, to definine dummy open api openshift resources definition, and then delete the namespace from resources using kustomize, i have an example for how to do it.
We need to do it because k8 support patching resources using json patching(using operation and json path)only for resources that it knows and , even there, the paths that are supported are limited, and that's why probably it doesn't happen automatically on the normal path.
In this case, kustomize can comes to the rescue with introducing dummy openapi definitions for openshift resources(for route, deploymentconfig,buildconfig, etc).

The point was specific to the implementation at:
https://github.com/RHEcosystemAppEng/SaaSi/blob/77ee6cfa1e4417a6bd3704ba4613d2ff0325c10c/replica-builder/install-builder/pkg/installer/parametrizer.go#L52
Here we use a generic decoder for the extracted YAML files, but this has no registered schemas for OpenShift resources and also for others like:
apiVersion: authorization.openshift.io/v1
kind: RoleBinding
Because of that we added a specific code to clear the namespace field in the YAML file itself, instead of updating the related K8s/OpenShift resource. It would be better to have a unique approach instead: what you show with the kustomize patch is also fine but needs to be applied on all the relevant resources, not just the OpenShift ones.


doc(Tactic/Linarith): update docs

This PR updates the documentation following the integration of the oracle based on the Simplex Algorithm, as merged in PRs #12014, #13535, #12819, and #13800. Additionally, it moves the SimplexAlgorithm folder into the Oracle directory.

Thanks! I took the liberty of committing a couple typo fixes. This is great.

bors merge

bors r-
Oops, my typo fixes broke a lint...

bors merge


enable proguard in release mode

Motivation
This is default behavior  in android project. With progurad the code runs fast, the apk is smaller.
Test Plan
pass all current ci.
Release Notes
[Android] [Feature] - enable proguard in release mode

@gengjiawen i like the idea about enabling it but is it safe for most of community modules ?

I see. So every module needs to set it by own in build.gradle.
Maybe there could be wider propagation that is new default option and most as possible community modules should support it.

Yes, I agree we need add it to release note. But not every module need to config proguard rules.

I think that it might not be necessary and leave it to developer. Also I assume that proguard will be deprecated in favor of R8.

R8 still need time come close to production. And even with R8 the dsl may not be change.

Can we instead recommend people enable this themselves as part of the docs?

I still think this should be default since minify in production is serious issue.


ModuleNotFoundError                       Traceback (most recent call last)  in () ----> 1 from language_modelling import ScriptData  ModuleNotFoundError: No module named 'language_modelling'

What did I do wrong

I'm retarded forget about it


refactor:ilo-alignment-modal component review document

Description
As the first step of Migration: Component task-ilo-alignment-modal.coffee, comepleted the component review and created the markdown document.
Fixes # (issue)
No issues
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as
expected)
[x] Documentation (update or new)

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[x] I have requested a review from ... on the Pull Request

@WilliamALowe will be reviewing this.

Reviewed 14/12/2023
##Purpose

Not used to maintain alignment, but is used to set a unit task's
alignment rating to a given learning outcome from an admin/convenor account,
and apply justification as to why it relates to that learning outcoming.

##Outcomes

Again, does not maintain alignment.
Acts a popup window for Admin/Convenor accounts.
Does not include the ability to to enter learning outcome of assignments,
only includes the adding a  rating + justification. (adding the actual learning
outcomes occurs on a different component).
Consider what data points are in use and need to be maintained
(refer to factory and controller methods).

##Proposal

Consider changes that can affect how the data can be input, while
still maintaining their typing and formats, rather than purely visual changes.
Consider 2 other (3 Total) different implementations, each with prototype
and/or test data.
Consider advantages + disadvantages for each.
Ensure that passed data, and output data are maintained.

##Checklist

Consider more functional tests, e.g: test that data can be validated/checked
within other components where the output data is used - student task
submission.
Consider a test to ensure that data is maintained in correct format and type.

##Other notes

If you want to keep images with you document, consider putting all into the
one folder to keep the repository clean and organised.
Minor grammatical errors.

Thank you for reviewing. I'll do necessary updates and remake the PR.


Translation of the software interface

Description of the feature, modification, idea or suggestion
Translation of the software interface in other languages
Proposed implementation details (optional)
I want to translate the software
I just need help knowing how to translate
Thank you

Duplicate of: https://github.com/winsiderss/systeminformer/issues/302


fix: update inputs for linking and unlinking bidirectional relationships

Problem
When submitting update forms with bidirectional relationships, the form throws with an error message: The variables input contains a field that is not defined for input object type ______.
Solution
Change inputs for update GraphQL calls for linking and unlinking records.
Additional Notes

Links
Ticket

GitHub issue:
Other links
Verification
Manual tests

Automated tests

[x] Unit tests added/updated
[ ] E2E tests added/updated
[ ] N/A - (provide a reason)
[ ] deferred - (provide GitHub issue for tracking)

Housekeeping

[x] No non-essential console logs
[x] All new files contain license notice

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #1085 (c52c565) into main (99ea1ae) will increase coverage by 0.00%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main    #1085   +/-   ##
=======================================
  Coverage   93.91%   93.91%
=======================================
  Files         124      124
  Lines        5864     5867    +3
  Branches     1786     1786
=======================================
+ Hits         5507     5510    +3
  Misses        339      339
  Partials       18       18

Files Changed
Coverage Δ

...-react/lib/forms/form-renderer-helper/cta-props.ts
100.00% <ø> (ø)

...form-renderer-helper/bidirectional-relationship.ts
96.38% <100.00%> (+0.13%)
:arrow_up:

Continue to review full report in Codecov by Sentry.

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


Add post sso url for IdP metadata

Test will be fixed when if  this pull request  #109 merged into master.


Chapter 6 - Models, Templates and Views - {% load staticfiles %} deleted from index.html

There is no more {% load staticfiles %} line in updated index.html (page 59). I do not understand why - shouldn't this line remain in the file, since we still want to show static files (rango.jpg). I see it works with or without that line - could you put that line back or offer an explanation, why it is not needed?
Also, the screenshot on page 60 shows a category named Python User Groups, which was not added by the population script (edit: I see this category is added manually later...).
Regards, Matevž

Thanks.. I've added the line back in, but I am wondering why it would work without the line... I was just reading the docs and it says it is required.. I will try it out.. but in any case, thanks, i've added it back :-)


SSHWorker

Allow create worker through ssh that allow launch worker over the network.
Reference

dask implementation
https://github.com/paramiko/paramiko

Problems:

Can't print remote stdout in realtime.
Can't release remote port when worker terminated.
Can't auto find port.


Implement rbd map functionality

@noahdesu is it possible to implement the above functionality to do it?

Can you point at the function you want wrapped?

Is this what you mean ;-) https://github.com/torvalds/linux/blob/master/include/linux/ceph/libceph.h

On Mon, Dec 30, 2019 at 09:55:57AM -0800, Camilo Schöningh wrote:

Is this what you mean ;-) https://github.com/torvalds/linux/blob/master/include/linux/ceph/libceph.h

These are Linux kernel functions that can not simply be called from a
userspace go-ceph application. Instead, the part that calls these
functions is implemented in ceph executables and libraries.
Possibly krbd_map() and the like could be used from go-ceph:
https://github.com/ceph/ceph/blob/master/src/include/krbd.h
However, I do not think these functions (and structs) are exported for
external consumers of Ceph libraries. My guess is that librbd needs to
get extended to provide rbd_map() and rbd_unmap() functions.


AGP 8.1.0

Follow up #220.

> Task :app:minifyProdReleaseWithR8 FAILED
ERROR:Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/runner/work/DemoApp/DemoApp/app/build/outputs/mapping/prodRelease/missing_rules.txt.
ERROR:R8: Missing class org.bouncycastle.jsse.BCSSLParameters (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)
Missing class org.bouncycastle.jsse.BCSSLSocket (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 5 other contexts)
Missing class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.<init>())
Missing class org.conscrypt.Conscrypt$Version (referenced from: boolean okhttp3.internal.platform.ConscryptPlatform$Companion.atLeastVersion(int, int, int))
Missing class org.conscrypt.Conscrypt (referenced from: boolean okhttp3.internal.platform.ConscryptPlatform$Companion.atLeastVersion(int, int, int) and 4 other contexts)
Missing class org.openjsse.javax.net.ssl.SSLParameters (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List))
Missing class org.openjsse.javax.net.ssl.SSLSocket (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)
Missing class org.openjsse.net.ssl.OpenJSSE (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.<init>())

R8 version: 8.1.18-dev (build 5928b278961831ac8dbab13ab27cf8b69431f5c5 from go/r8bot (luci-r8-custom-ci-bionic-45-508w))


systemd: Work around runc console's lack of EPOLLHUP handling

In the future this patch will go away.  Today it will allow
us to debug the console startup with systemd.
Signed-off-by: Jason Wessel<EMAIL_ADDRESS>

merged


RateGate Fails Randomly

Expected Behavior

RateGate should work and not throw exceptions
Actual Behavior

RateGate sometimes throws ArgumentOutOfRangeException when the call to timer.Change(int, int) has a negative value for the first parameter.
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: dueTime
  at System.Threading.Timer.Change (System.Int64 dueTime, System.Int64 period, System.Boolean first) [0x00031] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading.Timer.Change (System.Int32 dueTime, System.Int32 period) [0x00000] in <3833a6edf2074b959d3dab898627f0ac>:0
  at (wrapper remoting-invoke-with-check) System.Threading.Timer.Change(int,int)
  at QuantConnect.Util.RateGate.ExitTimerCallback (System.Object state) [0x00055] in <e6b5c9b6c60d4526ba62a20488f6e203>:0
  at System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <3833a6edf2074b959d3dab898627f0ac>:0

Potential Solution

Implement the fix to this problem as provided by the user "Jim" from http://www.jackleitch.net/2010/10/better-rate-limiting-with-dot-net/#comment-3620
In addition, add unit tests for RateGate
Reproducing the Problem

Run RateGate for an extended period of time, and it could potentially fail. We were unable to replicate a scenario where RateGate would fail
System Information

Linux, Cloud
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[ ] I have provided detailed steps to reproduce the issue

Closed by https://github.com/QuantConnect/Lean/pull/3503


CircleCI orb stuck at "Searching for coverage files..."

Describe the bug
A recent PR has made this get stuck for some reason.
My only guess is that the added symlink is causing that, but it shouldn't be affecting the generated coverage file.
See failure: https://circleci.com/gh/RevenueCat/purchases-ios/100212

@NachoSoto I think you may be correct about the symlink being the cause.
https://github.com/codecov/uploader/blob/d761d3015f4bd57b85c6cf20c53fc5ff839d29cb/src/helpers/files.ts#L197-L220 is the function is if getting stuck in, and far as I can tell from line https://app.circleci.com/pipelines/github/RevenueCat/purchases-ios/13586/workflows/df589d01-0206-406d-b0cb-d025895372a4/jobs/100212?invite=true#step-112-30075_67

Note that I'm able to reproduce this locally, and can confirm the uploader works as expected when ci_scripts/Tests is removed.
I don't know why

How did you create it, @NachoSoto ?

It's a soft link: ln -s

Any updates here?

@drazisil-codecov could you at least suggest some workaround? The symlink is not part of the sources so I'd be happy to tell Codecov to ignore it, I just don't know how.

@drazisil-codecov it's been over a month. Can you at least let me know if there are any plans to address this or should be remove Codecov from our repo?

@NachoSoto sorry about this, I'll take a look at adding it into the uploader this week

Any updates?

@NachoSoto sorry about the delay. I made a PR linked above. Once that goes in, I can cut a release

@NachoSoto I'll cut a release tomorrow with the fix

@NachoSoto let me know if you are running into this issue now. I pushed a new version of the uploader which should fix the issue.

@thomasrockhu-codecov I'm really confused: #1223 hasn't been merged yet...?

@NachoSoto this is embarrassing. I'll push out a new version in the next few hours.
This won't need a release of the CircleCI orb, as it's just a wrapper for this uploader

@NachoSoto this should be resolved in 0.7.1 now!

This finally worked https://github.com/RevenueCat/purchases-ios/pull/2857/commits/7190c954d05a8a39ff166a32530f6bd72b2d561a
Thank you so much! 🙏🏻

@NachoSoto sorry it took so long again! Glad that it's working for you


get_started using C runtime API

Hi,
I'm trying to run the get_started.py TVM function using the C runtime API but the program (listed below) segfaults when it makes the call to __tvm_main__/myadd. I'm guessing my invocation of TVMFuncCall is incorrect?
For reference, everything is statically linked and gdb says that myadd is where it should be. This is the code that causes the error (extracted from c_runtime_api.cc):
PackedFunc the_func = (*static_cast<const PackedFunc*>(func));
It doesn't even make it past the constructor. (Maybe constructing the FType goes wrong?).
Thanks for any pointers [on fixing my pointers]!
#include <stdlib.h>
#include "runtime/c_runtime_api.h"

int64_t shape[] = {3};
int64_t strides[] = {1};

extern void* __tvm_main__;

TVMArray* mk_tensor(int8_t* data) {
  TVMArray *t = (TVMArray*)malloc(sizeof(TVMArray));

  t->data = data;
  t->ndim = 1;
  t->shape = shape;
  t->strides = strides;
  t->byte_offset = 0;

  t->ctx.device_type = kDLCPU;
  t->ctx.device_id = 1;

  // int8
  t->dtype.code = 0;
  t->dtype.bits = 8;
  t->dtype.lanes = 1;

  return t;
}

int main() {
  int8_t a_data[] = {1, 2, 3};
  int8_t b_data[] = {2, 3, 4};
  int8_t c_data[] = {0, 0, 0};

  TVMValue arg_vals[3];
  arg_vals[0].v_handle = mk_tensor(a_data);
  arg_vals[1].v_handle = mk_tensor(b_data);
  arg_vals[2].v_handle = mk_tensor(c_data);

  TVMValue ret_val;
  int ret_type_code;

  int arg_type_codes[] = {kArrayHandle, kArrayHandle, kArrayHandle};

  TVMFuncCall(&__tvm_main__, arg_vals, arg_type_codes, 3, &ret_val, &ret_type_code);
}

see https://github.com/dmlc/tvm/tree/master/apps/howto_deploy

Right, except for the part where I'm forced to use C instead of CPP and can only use a stripped down version of the runtime which doesn't include dylib loading.
I appreciate the link, but I'd also appreciate if you left the issue open so that it remains visible to someone who is more willing to answer my [albeit very specific and constrained] question.

I see, feel free to reopen the issue, we tend to close issue aggressively and only reopen when necessary

If you use can cxx, likely the deploy example serves what you need(stripped down, no dependency)
If you want to remove dynamic library loader, follow the system loader module.
If you cannot use cxx, read the cxx example and you should be able to find a C counterpart  in the API

Thanks! I'll try all of those things. There's no getting around the static linking constraint, though.
I respect that you want to keep your issue tracker clear, so I'll continue debugging today and close this issue if I can (or fail to) make progress.

In your specific code, we will need to get a correct function handle first from a TVM module,(the tvm main) handle is not by default available as a symbol. You need to retrieve it from a Module
You can do this by either create a DSOModule, which you can do dynamic load, or get the system module(add system lib option when you build the library)

The system library module, which registers the function table to a global table works with static linking if you want to link everything together.
That cpp example shows how to retrieve the system module , although it is mixed together with the dll loading.
Feel free to keep the issue open, I just thought that answer might be suffice for fixing the issue, but we definitely want to resolve your problem :)

In short, statistically link the generated .o with your main application, use a stripped version of runtime that includes the system module support. And follow the example after GetSystemLib line in deployment example

Cool, that seemed to work. Thanks for your advice and patience!


View market creation transaction placeholder

Story
As a
I want
So that
Acceptance Criteria

[ ] I can
[ ] I can
[ ] I can

Tasks

[ ] Explore and sketch
[ ] Team and stakeholder review
[ ] Visual Design
[ ] Team review
[ ] Etc.

Sketch
Additional details / background info

Dupe of #2111


Check for pytosquatting packages

safety is the perfect tool to check against these malicious packages.
Ref:

http://www.nbu.gov.sk/skcsirt-sa-20170909-pypi/
https://www.pytosquatting.org/

Will do!

FYI, the full experiment context: https://pytosquatting.org

Thanks, added them a couple days ago: https://github.com/pyupio/safety-db/commit/b8a9d943c7ccc6624be87d0cc9b9e5970fbd83a9


<EMAIL_ADDRESS>download via aria2 failed

scoop install extras/w10privacy
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
WARN  To disable this warning, run 'scoop config aria2-warning-enabled false'.
Installing 'w10privacy' (<IP_ADDRESS>) [64bit] from 'extras' bucket
Starting download with aria2 ...
Download: Exception: [AbstractCommand.cc:403] errorCode=16 URI=https://sf91b3285d9193eec.jimcontent.com/download/version/12302828636/module/12302828636Download:   -> [AbstractDiskWriter.cc:204] errNum=123 errorCode=16 Failed to open the file C:/Users/x/scoop/cache/w10privacy#<IP_ADDRESS>#4a8cbac.zip?t=Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 0d1a21|ERR |       0B/s|C:/Users/x/scoop/cache/w10privacy#<IP_ADDRESS>#4a8cbac.zip?t=12302828636t
Download: Status Legend:
Download: (ERR):error occurred.
Download: aria2 will resume download if the transfer is restarted.
Download: If there are any errors, then see the log file. See '-l' option in help/man page for details.

ERROR Download failed! (Error 16) Aria2 could not create new file or truncate existing file
ERROR https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip?t=12302828636t
    referer=https://www.w10privacy.de/app/download/12302828636/
    dir=C:\Users\x\scoop\cache
    out=w10privacy#<IP_ADDRESS>#4a8cbac.zip?t=12302828636t

ERROR & 'C:\Users\x\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\x\scoop\cache\w10privacy.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/7.4 (Windows NT 10.0; Win64; x64; Core)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=16032 --continue --summary-interval=0 --auto-save-interval=1

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=w10privacy%4<IP_ADDRESS>%3a+download+via+aria2+failed

Please reopen. I tired manual downloading and installing. The reason it failed is that Windows Defender blocked it. Best would be for scoop to detect and handle such exceptions at least by giving the proper error message.

Please reopen and inspect the last virustotal results for security reasons!


Local i18n files

There are a couple of changes in this PR that I'm not super happy with, so I'd love some feedback before this is merged.
Overall this PR allows modules to expose language property files, which are then gathered by gulp and injected into the i18n modules as 'i18nMessages' -- the other commits in this file help prove that this patch works.
Places I'd like feedback
(A) Gulp Task i18n-messages.js
I don't think we really need to build or inject languages directly into the UI. The reason for doing this would be to prevent 'flashes of un-rendered content' when the application is loading.
Since there isn't a fully fleshed out loading page, nor do we directly show un-rendered content, any translation content should be loaded by the time the application starts to render. If we found that there is a load time problem, we could add a hook to the main application loop that would wait until all translation content has loaded.
I will admit though, I think its kinda rad to just render all the i18n messages into the motech.js file.
(B) motech-list translating column-headers
I initially said that all motech-common level components shouldn't have tranlateable content in them, and that a little impossible. An example is the input-map component that should have language for its own labels and buttons (passing a dictionary of strings would be a little weird)
For the column titles in motech-list, instead of using a translate filter outside of the component to render these strings, I'm passing them as raw attributes that don't get rendered. To compensate, I changed the titles to simply be rendered inside motech-list, and changed the argument that is passed in to a i18n message token.
I feel that it would be more clean to evaluate i18n message tokens as soon as possible, and passing rendered strings to where they will be used — rather than being lazy and rendering the strings at the last possible second.
A contrasting example would be how the auth login modal window is created, where the login form component is rendered using $compile before being passed to the ModalWindow.

In response in part (B) I've decided that since our modal functions currently accept language tokens and will try to render them, this will be how they behave.
In response to (A) I don't like how the gulp task to build motech.js looks for a languages file... so I will refactor so all i18n concerns are dealt with in one file. It might then be more obvious to load local JSON files for i18n items instead of injecting them directly into motech.js (even though that is cool) -- and while in some sense the app might load slightly faster with motech.js containing all the language string, I think it is splitting hairs... (and separating concerns is better usually)

@jredlarski This PR should be ready for a merge...
Take a look at the tests in i18n.service.spec.js and don't merge this if you think there are problems there...

@nickdotreid I checked your tests. All looks good to me.


Use -mod=vendor when available, update dependencies

Use -mod=vendor when the compiler supports it, and update github.com/containers/storage to get around security problems we would have had in the very old version that we were previously using.  This pulls in newer versions of just about everything else.

I expect us to block on https://github.com/openshift/release/pull/20742.

Tests are not so hip

Tests are not so hip

I expected us to block on https://github.com/openshift/release/pull/20742.

/test unit


fix: examples

Fix examples
Signed-off-by: Subin Shekhar<EMAIL_ADDRESS>PR summary
Fix examples
Fixes: <! -- link to issue -->
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

:tada: This PR is included in version 0.5.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


cloudpathlib 0.16.0

cloudpathlib 0.16.0
Destination channel: defaults
Links

PKG-3485
https://github.com/drivendataorg/cloudpathlib/blob/v0.16.0/pyproject.toml

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_61payme4hu/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:0: no_global_test: Global tests are ignored in multi-output recipes.
clone/recipe/meta.yaml:22: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:121: missing_description: The recipe is missing a description

===== ERRORS =====

clone/recipe/meta.yaml:0: missing_section: output "cloudpathlib": The requirements section is missing.
clone/recipe/meta.yaml:38: outputs_not_unique: output "cloudpathlib": Output name is not unique
clone/recipe/meta.yaml:1: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:1: missing_tests: output "cloudpathlib": No tests were found.
clone/recipe/meta.yaml:43: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:1: missing_pip_check: For pypi packages, pip check should be present in the test commands
clone/recipe/meta.yaml:61: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:1: missing_python_build_tool: output "cloudpathlib": Python packages require a python build tool such as setuptools.
clone/recipe/meta.yaml:121: missing_license_family: The recipe is missing the about/license_family key.
clone/recipe/meta.yaml:97: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:79: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:1: missing_imports_or_run_test_py: output "cloudpathlib": Python packages require imports or a python test file in tests.
===== Final Report: =====
12 Errors and 3 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_af4otkgeur/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:22: host_section_needs_exact_pinnings: Linked libraries host should have exact version pinnings.
clone/recipe/meta.yaml:0: no_global_test: Global tests are ignored in multi-output recipes.

===== ERRORS =====

clone/recipe/meta.yaml:43: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:1: missing_tests: output "cloudpathlib": No tests were found.
clone/recipe/meta.yaml:97: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:0: missing_section: output "cloudpathlib": The requirements section is missing.
clone/recipe/meta.yaml:38: outputs_not_unique: output "cloudpathlib": Output name is not unique
clone/recipe/meta.yaml:1: missing_imports_or_run_test_py: output "cloudpathlib": Python packages require imports or a python test file in tests.
clone/recipe/meta.yaml:1: missing_python_build_tool: output "cloudpathlib": Python packages require a python build tool such as setuptools.
clone/recipe/meta.yaml:79: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:61: missing_wheel: For pypi packages, wheel should be present in the host section
clone/recipe/meta.yaml:1: missing_pip_check: For pypi packages, pip check should be present in the test commands
clone/recipe/meta.yaml:1: missing_wheel: For pypi packages, wheel should be present in the host section
===== Final Report: =====
11 Errors and 2 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_2a1q167x1z/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:0: no_global_test: Global tests are ignored in multi-output recipes.

===== ERRORS =====

clone/recipe/meta.yaml:1: missing_pip_check: For pypi packages, pip check should be present in the test commands
clone/recipe/meta.yaml:0: missing_section: output "cloudpathlib": The requirements section is missing.
clone/recipe/meta.yaml:1: missing_python_build_tool: output "cloudpathlib": Python packages require a python build tool such as setuptools.
clone/recipe/meta.yaml:1: missing_imports_or_run_test_py: output "cloudpathlib": Python packages require imports or a python test file in tests.
clone/recipe/meta.yaml:1: missing_tests: output "cloudpathlib": No tests were found.
clone/recipe/meta.yaml:38: outputs_not_unique: output "cloudpathlib": Output name is not unique
===== Final Report: =====
6 Errors and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_e5z56ka6kl/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:0: no_global_test: Global tests are ignored in multi-output recipes.

===== ERRORS =====

clone/recipe/meta.yaml:0: missing_section: output "cloudpathlib": The requirements section is missing.
clone/recipe/meta.yaml:1: missing_tests: output "cloudpathlib": No tests were found.
clone/recipe/meta.yaml:1: missing_python_build_tool: output "cloudpathlib": Python packages require a python build tool such as setuptools.
clone/recipe/meta.yaml:38: outputs_not_unique: output "cloudpathlib": Output name is not unique
clone/recipe/meta.yaml:1: missing_pip_check: For pypi packages, pip check should be present in the test commands
clone/recipe/meta.yaml:1: missing_imports_or_run_test_py: output "cloudpathlib": Python packages require imports or a python test file in tests.
===== Final Report: =====
6 Errors and 1 Warning were found


Use the PrivateCA's Signature Algorithm as the Signature Algorithm in…

… IssueCertificate()

Additionally, fix integration tests to run the latest version of the issuer plugin
Update README to point to new helm chart repo
#22 is fixed in this commit

Can you please add testcases for this usecase? Thanks!

I have added integration tests.


Why is #[xml(tag = "")] necessary for enums when FromStr and Display are used for the serialization?

I have the code below, with Preprocess as an attribute of File.  It should result in something like the following (and does).
<file alias="image.png" compressed="true" preprocess="to-pixdata">assets/icons/image.png</file>

The question here is: what are #[xml(tag = "xml-stripblanks")] and #[xml(tag = "to-pixdata")] doing, and why are they necessary? I feel like there is a lot of duplication here, as well as other issues, but I'm not sure exactly how this should look.
#[derive(Debug, Default, PartialEq, XmlRead, XmlWrite)]
#[xml(tag = "file")]
pub struct File {
    #[xml(text)]
    pub path: String,
    #[xml(default, attr = "alias")]
    pub alias: Option<String>,
    #[xml(default, attr = "compressed")]
    pub compressed: bool,
    #[xml(default, attr = "preprocess")]
    pub preprocess: Option<Preprocess>,
}

#[derive(Debug, PartialEq, XmlRead, XmlWrite)]
pub enum Preprocess {
    #[xml(tag = "xml-stripblanks")]
    XmlStripBlanks,
    #[xml(tag = "to-pixdata")]
    ToPixData,
}

impl FromStr for Preprocess {
    type Err = &'static str;

    fn from_str(string: &str) -> Result<Self, Self::Err> {
        match string {
            "xml-stripblanks" => Ok(Self::XmlStripBlanks),
            "to-pixdata" => Ok(Self::ToPixData),
            _ => Err("invalid value"),
        }
    }
}

impl Display for Preprocess {
    fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            formatter,
            "{}",
            match self {
                Self::XmlStripBlanks => "xml-stripblanks",
                Self::ToPixData => "to-pixdata",
            }
        )
    }
}

It isn't, I just made a stupid mistake. See #33 for a link to working code.


ARROW-10381: [Rust] Generalized Ordering for inter-array comparisons

Currently, the code on array/ord.rs is centered around intra-array comparison. However, this does not allow to compare values from two different arrays, which is required on e.g. merge-sort operations.
This PR:

simplifies the code around sort by splitting it in smaller functions for ease of understanding (first 2 commits)
adds a benchmark to the sort kernel which I used to verify that there was no performance regression  (3rd commit)
simplifies and generalizes the code around ord to support comparisons between two arrays (that may be the same), 4th commit
adds some more tests to edge cases around float comparison (nan and zeros)

There was no performance change on my computer.

FYI @andygrove @alamb : I planning to approach the MergeSort in DataFusion: my current idea is to merge-sort record-batches within a part and then merge-sort then again across partitions. This is preparatory work for that, as we can't merge sort two arrays together before this PR.

@jorgecarleitao this sounds good. I am going to make time tomorrow to catch up on the current PRs.


Domain activation is Failed - [BRIEF DESCRIPTION]

App Id: d3b02k89dp2vqy
Region: eu-west-1
Step: Domain activation
Status: Failed

Note: Do not include information that is sensitive in nature such as your domain name, company etc.

Issue/question
A clear and concise description of what the issue/question is.
Error message
If there is an error message, please include it here.
Note: Be sure to check the message for sensitive information.
Additional information
Please add any other relevant information. Please feel free to include screenshots.

Hi @juserr,
As the error indicates, the domain name was already attached as a CNAME in another cloudfront distribution, when the domain activation took place. Did you have this domain attached to another amplify app or directly to CloudFront? If so, you would have to remove it from the CloudFront distribution via the CloudFront Console. Then you can delete and re-add the domain to your app.

That was it, cool! Thanks


collectd disk metrics are showing distorted rates

Example:

The actual rate is around 400 and doesn't vary as much in reality as it is shown on the graph.
The rates are calculated by taking difference between consecutive samples of monotonic counters. Collectd emits samples with 10 second period, while prometheus samples them by default with 15 second period. So half of the time the period between prometheus samples will cover 1 collectd sample and half of the time it will cover 2 samples. The former will underestimate the rate and the latter will over estimate it.
To avoid this, the sampling period used by prometheus must be a multiply of collectd period. We can set the scraping interval to 10s, or modify the collectd plugin to export stats with 1s period. The latter approach is better because it gives better accuracy and works with any scrape period.

Current value of 15s scrape period is probably chosen so that there is no distortion in Scylla metrics, which are exported by default with 3s period. So 10s period wouldn't work with that.

Related collectd_exporter issue https://github.com/prometheus/collectd_exporter/issues/24

Scylla 1.4 will not use collectd_exporter, so this issue might not be relevant looking forward

Can we close that?


OpenAIEmbeddings configuration of baseURL is not possible

Reviewing the source code and investigating the API docs:
https://js.langchain.com/docs/api/embeddings_openai/classes/OpenAIEmbeddings
and the source:
https://github.com/langchain-ai/langchainjs/blob/0.0.175/langchain/src/embeddings/openai.ts
for OpenAIEmbeddings JS I was trying to understand how to provide my own baseURL and not use the default openai.com endpoint.  This seems not to be possible unless using Azure services.  But there are enough ambiguities in the docs that I wasn't willing to give up.
I asked the docs as I was confused as to why I can't set my own baseURL / apiUrldirectly (in case I am not using openAI.com).  I asked the chatbot directly:
Response was:

const { OpenAIEmbeddings } = require('langchain');

• Create an instance of the OpenAIEmbeddings class, passing the necessary configuration options:

const embeddings = new OpenAIEmbeddings({
  apiKey: 'your-api-key',
  apiUrl: 'https://your-api-url',
  apiVersion: 'your-api-version',
  organizationId: 'your-organization-id',
  proxy: 'http://your-proxy-server',
  timeout: 5000,
});

If I run the above code, this doesn't do anything.  It still calls api.openai.com.  If I provide { configuration :  { come config } } I can provide an api key, but anything I put in there related to baseURL doesn't work.  To sort out the confusion, I looked through the source and say that it might be possibly if one can specify the OpenAI client.  But I cannot figure out how to pass in a client object (from the OpenAI module) without modifying the langchain source.
Seeking clarification on how to set the baseURL or ApiURL or OpenAI client for OpenAIEmbeddings js.

Bot response is correct, closing for now although we should document better.

Hmm, so apiUrl is correct to use and so is baseURL?  I will retest, and verify if this is indeed working.


Predictions NER_Ontonotes_BERT_Mult for entities with interpunction

DeepPavlov version: 1.0.2
Python version: 3.8
Operating system: Ubuntu
Issue:
I am using the ner_ontonotes_bert_mult model to predict entities for text. For sentences with interpunction in the entities, this gives unexpected results. Before the 1.0.0 release, I used the Deeppavlov docker image with the ner_ontonotes_bert_mult config as well. I didn't encounter these issues with the older version of Deeppavlov.
Content or a name of a configuration file:
[ner_ontonotes_bert_mult](https://github.com/deeppavlov/DeepPavlov/blob/1.0.2/deeppavlov/configs/ner/ner_ontonotes_bert_mult.json)

Command that led to the unexpected results:
from deeppavlov import build_model

deeppavlov_model = build_model(
        "ner_ontonotes_bert_mult",
        install=True,
        download=True)

sentence = 'Today at 13:10 we had a meeting'
output = deeppavlov_model([sentence])
print(output[0])
[['Today', 'at', '13', ':', '10', 'we', 'had', 'a', 'meeting']]
print(output[1])
[['O', 'O', 'B-TIME', 'O', 'B-TIME', 'O', 'O', 'O', 'O']]

As you can see 13:10 is not recognized as a time entity as a whole, but 13 as B-TIME, : as O, and 10 as B-time. The same happens for names with interpunctions such as E.A. Jones. I was wondering what I could do to solve this issue, is it possible to fine-tune this model on such examples?

The model ner_ontonotes_bert.json
https://github.com/deeppavlov/DeepPavlov/blob/master/deeppavlov/configs/ner/ner_ontonotes_bert.json
gives correct prediction for you example sentence. I suggest using English config for English sentences.