Implement network toggle switch

Implementation of the network toggle switch for testnet / mainnet viewing.

@rafappelt Is this complete? I recall you may have started on this but can't remember. Perhaps were just waiting for mainnet endpoints to finalize and publish?

@rmilrad It is not started.
@dvnahuel do we have any design / figma for it?

https://www.figma.com/design/4fVd9wneclsvYDYD95ApZ9/Hemi-Portal?node-id=4532-4741&t=qUsQPkbTUOGnzA6a-1 @rafappelt


Cubed-sphere tiling

PR created at ecmwf.

PR for part 1 has been done ( creating a tile class factory)  Almost completed the grid part,

Grid part was completed and added to the ecmwf atlas PR #67.

In review at ecmwf

This is merged upstream and can be closed.


alternating optimization and joint optimization are not equal

In the ICCV paper, the author only proposed alternating optimisation trained with resilient SGD. Joint optimization is definitely not the right solution. If they author proposed joint optimization in the ICCV paper, the contribution is minor and will not be ICCV best paper.

Thank you for your word of wisdom. Duly noted.

Impeccable reasoning!
Joint optimization is wrong because, otherwise, they wouldn't have won the award!

In the iccv paper supplement, they prove alternating optimization for pi is convex and guarantee converge to a unique optimal by several iterations. The info Gan is very similiar with random forest and decision tree. However, when you use joint optimization nothing exist.   Please go to author’s homepage and read the provement.

Iteration for pi is convex not the whole system.

Another reason I found this paper is interesting is dynamic routing in capsule net and follow-up paper EM optimization. It seems that this two papers have some link.

Another to prove joint optimization is wrong is when you visulize the distribution in the leaf. There is no patterns because it’s only a feature representation which do not contain any semantic meaning. However, when you train by EM. Same class will follow similiar routing path. The leaf distribution is more interpretable just because past experience show decision tree leaf is very easy to understand.

Anyway, thank you so much for your work. It’s very beneficial for me to understand the whole idea.

http://www.dsi.unive.it/~srotabul/files/publications/CVPR2014a_supp.pdf

Some typo
Info Gan => information gain

Seems like you just read the analysis but yet used the disadvantage of EM and why it requires convexity.
First, EM algorithm, or alternating optimization in general, suffer from slow convergence. This is because the other variables that are not optimized slow down the convergence of the other variable.
Second, alternating optimization is not guaranteed to converge to the optimum due to this. This is why they prove the convexity.
However, joint optimization and SGD give you always the correct gradient (given the batch). And there is a simple reparametrization that we can use for this particular problem. This does not require convergence as the gradient is unbiased.
I explained the same thing in the readme. So please READ before you make random comments that I already explained.

Thank you so much for your answer. Have you ever compared joint optimisation with alternating optimisation ? If joint optimisation is the right answer, why the author chose the much more complex and difficult to implement alternating optimisation?

Dear Gao,
thank you for your interest in the work. You can in principle also optimize jointly the leaf statistics.
As far as I remember, we tried that too, but the solution reported in the paper was more effective.
But could also be a matter of hyperparameter tuning (e.g., different learning rates for leaf statistics, etc).
Best,
Samuel

The author respond me just now saying that joint optimization is OK. But they only report EM method because its more effective.

Great, please don't make an accusation before you understand.

Sure, I will test it on ROI region with joint optimisation. Again, big thanks for the implementation. Looking forward to see your interesting work. 2D-R2N2 is very good 😊

Do you know any paper proposing boost differentiable decision forests? Basically, the newly added tree will focus on misclassified sample ?


updating datumaro

Motivation and context

How has this been tested?

Checklist

[ ] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit

New Features

Updated various dependencies to their latest versions, ensuring improved performance and compatibility.

Bug Fixes

General maintenance updates may include bug fixes from the updated packages.

Documentation

Updated requirements files to reflect the new dependency versions across different environments (base, development, production, and dataset manifest).

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

Project coverage is 73.90%. Comparing base (289ad43) to head (a16fb71).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8838      +/-   ##
===========================================
- Coverage    73.93%   73.90%   -0.03%
===========================================
  Files          409      409
  Lines        43930    43930
  Branches      3986     3986
===========================================
- Hits         32478    32467      -11
- Misses       11452    11463      +11

Components
Coverage Δ

cvat-ui
78.37% <ø> (+0.03%)
:arrow_up:

cvat-server
70.07% <80.00%> (-0.08%)
:arrow_down:


Feature request: EU time and date format?

I just noticed that it's only US date format (even if you select another language):

The correct would be reversing the month and day:
Sun 14/2, Mon 15/2, etc.
Also 24h clock, instead of AM/PM

Not really a big issue, but always nice to have, and would make an already great tool a little bit better. :)

Yes please! #193

I actually looked into this some time ago, but eventually didn't submit a PR.
Under the hood, the format() function from date-fns is used to format these things. This works quite well, but in the way it's used right now, causes problems with different format like in this instance.
The format() function takes a string representing the format as a parameter. This is hardcoded to ha, with h being hours on a 12-hour clock and a being am/pm.
To fix this, what I did back then was adding another object in /lib/lang.js, with the format strings for different locales, and creating a slightly altered copy of dateFormat() in the same file:
export const timeFormats = {
  'en-US': 'ha',
  'nl-NL': 'H',
  ...
}

export function timeFormat(date, locale) {
  return format(date, timeFormats[locale] || 'ha', { locale: dateLocales[locale] || enUS });
}

This function could then be called instead of dateFormat() in compoonents/metrics/BarChart.js.
I didn't think of it as such an elegant solution, so I decided against submitting a PR. One of the main problems I saw was that the X-axis would now just be a row of numbers. I think most people would recognize it as being hours on a clock, but without the AM/PM it sort of looked 'off' to me.

To solve the weirdness you could just add :00 i.e 12:00 … 17:00 … 23:00, etc. (or "12h … 17h … 23h" – my favorite is the first).

To solve the weirdness you could just add :00 i.e 12:00 … 17:00 … 23:00, etc. (or "12h … 17h … 23h" – my favorite is the first).

Well, the thing is that that will prove much more work than 'just' adding :00, as that's not an option in the date-fns format() function, which will mean you'd have to add extra logic for every locale that might have a different preferred way of showing this.

I'm not a "proper" developer, so I'm out of my comfort zone, but would adding "HH':00'" work? (ref. the examples at the bottom of https://date-fns.org/v2.17.0/docs/format)
Alternatively "HH':'mm", but that would maybe cause that you get the exact minute (i.e 13:17, instead of 13:00)

@NoLooseEnds you're right!
I tried some things, and turns out the following is indeed possible (just to give some examples):
export const timeFormats = {
  'en-US': 'ha',
  'nl-NL': "H:00",
  'de-DE': "H 'Uhr'",
  ...
}
`

@mikecao what's your opinion on this? Do you have better ideas perhaps?
I just noticed there's also a p format option, 'Long localized time'. This is 12:00 for most languages, but 12:00 PM in English for example. This is slightly less clean than the 12PM it shows atm. I also noticed this longer format will cause uneven times to be hidden on the x-axis on certain screens, because of lack of space.
This p could be a nice default value, and then use the method described above for exceptions, such as using ha for en-US.

What I've generally tried to do is choose a format that "looks nice" for en-US. But I think having custom formats for other locales with default fallback to en-US could work.


Add bash completion feature

What this PR does / why we need it:
Add bash completion feature
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
#265
Special notes for your reviewer:
Release note:

Coverage remained the same at 60.2% when pulling 9d765ff9c24cbb6377edcc2ece700008c56ca9af on xxwjj:bash_completion into 038d1171945b884239fb1817cd975e45a73e1226 on opensds:development.

Coverage remained the same at 60.2% when pulling 9d765ff9c24cbb6377edcc2ece700008c56ca9af on xxwjj:bash_completion into 038d1171945b884239fb1817cd975e45a73e1226 on opensds:development.

Coverage remained the same at 60.2% when pulling 9d765ff9c24cbb6377edcc2ece700008c56ca9af on xxwjj:bash_completion into 038d1171945b884239fb1817cd975e45a73e1226 on opensds:development.

Coverage remained the same at 60.2% when pulling 9d765ff9c24cbb6377edcc2ece700008c56ca9af on xxwjj:bash_completion into 038d1171945b884239fb1817cd975e45a73e1226 on opensds:development.

Coverage remained the same at 60.2% when pulling 9d765ff9c24cbb6377edcc2ece700008c56ca9af on xxwjj:bash_completion into 038d1171945b884239fb1817cd975e45a73e1226 on opensds:development.

LGTM


ibus: build without dbus-launch

Patch the build script so that it does not attempt to start D-Bus.
ibus attempted to start D-Bus using dbus-launch in order to process GSettings schemas. This will fail in the sandbox, but it turns out that we don't need it anyway!
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

I tested against master and the affected output file is unchanged by removing dbus-launch, so I'm confident this is a safe change.

ty for the fix :3


unable to install sass dev dependencies

npm ERR! code EJSONPARSE
npm ERR! file C:\Users\neela\OneDrive\Desktop\coursera\Bootstrap4\conFusion\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 305 while parsing near '...ss -o css/ css/",
npm ERR! JSON.parse   },
npm ERR! JSON.parse   "author": "",
npm ERR! JSON.parse  ...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR!      C:\Users\neela\AppData\Roaming\npm-cache_logs\2020-05-07T14_38_36_615Z-debug.log

please could you look at your package.json. Try using a json parser.
This is not an express issue, or at least no evidence suggesting it is has been found. I will re-open this issue if you provide a proper example of this failure that I can pull from github to examine.


SAK-30738 - More sites does not calculate height properly

@marktriggs Could you take a look to this? Thanks :)

:+1: That makes sense to me, thanks @SedueRey :)


New apple silicon runners don't work

Description
The new apple silicon runners don't work. See this for a reproduction: https://github.com/epicfaace/dockertest/pull/7 and https://github.com/epicfaace/dockertest/actions/runs/6647145143/job/18062024643?pr=7

Platforms affected

[ ] Azure DevOps
[ ] GitHub Actions - Standard Runners
[X] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[X] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
macos-latest-xlarge
Is it regression?
Yes
Expected behavior
It should work
Actual behavior
It doesn't work
Repro steps
Run this action in this PR https://github.com/epicfaace/dockertest/pull/7

Hey!
Well, your workflow has number of mistakes which makes it incompatible with arm64 runner, though the job with your yaml is picked up

It is outside of the scope of the  hosted images (at least it looks like for now), please report your issue to the actions/runner as I think it is a better place to start in this specific case, they can always reach us if they think they need our assistance or we can help them with additional investigation.


Shortcuts not working

Microsoft PowerToys version
0.74.1
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
Always on Top, ColorPicker, Screen ruler, TextExtractor
Steps to reproduce
I try to use any of the funcions that I marked and the shortcut doesn't do anything, Changing the shortcut doesn't fix it.
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

Sorry to hear it isn't working. A /bugreport will help debug what could be going on.

After an hour or so of trying different things to fix it, I discovered that the sniptool (win + shift + s) native to windows wasn't working as well, so I just restarted my pc and now everything works just fine. Apparently windows it's self or something else was messing all this shortcuts. So the classic restart fix the bug.


Zombies not giving damage

What problem did you noticed?
Zombies not giving damage + https://prnt.sc/k0vgyg
What is the expected result?
Getting damage
What is the current result?
Not getting damage
How to reproduce the issue?
Don't run away when zombies are chasing you
Operating System and Version: Windows Server 2012 R2
Unturned Version: <IP_ADDRESS>
Rocketmod Version: <IP_ADDRESS>5
Rocket.Unturned Version: <IP_ADDRESS>

Regression of #1089

Issue was fixed.
Apparently zombies have SteamIDs in Unturned and so Rocket tried to resolve them as players...


ci: update release token reference

Update the name of the authentication token used by the CD GitHub Actions Workflow to reflect the new permissive permissions set on the default repository token, resolving the CD workflow failure.

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

Comparison is base (bf30458) 85.00% compared to head (dc80841) 85.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #76   +/-   ##
=======================================
  Coverage   85.00%   85.00%
=======================================
  Files           6        6
  Lines         260      260
=======================================
  Hits          221      221
  Misses         39       39

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


setNSAllowsArbitraryLoads to false by default in template

Summary

Since we already have localhost asException Domains in NSAppTransportSecurity to allow connect to dev server, the template should set NSAllowsArbitraryLoads to false by default, as exaplained in Apple's document as a good practice.
Changelog

[iOS] [enhancement] - set NSAllowsArbitraryLoads to false by default in template

Even if it can complicate the setup of new apps, I think it's the right change to make. We should not ease platform-wise standard security restrictions by default.


Update the docker image and variables

Just as the title says, could you please update docker container image and variables in the unraid ca apps so that it works with latest of your changes in dockerhub with image: wger/server:latest tried installing several times with different variables changes but no veil.
and this repo is FANTASTIC BTW so huge thanks.
Br,
a Simple Dude

Hi! Glad that you like it 🤗
What exactly is failing?

here are the logs for the wger-unraid container...pulling wger/server:latest
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 402, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 443, in execute
    self.check()
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 475, in check
    all_issues = checks.run_checks(
  File "/usr/local/lib/python3.10/dist-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/usr/local/lib/python3.10/dist-packages/django/core/checks/model_checks.py", line 36, in check_all_models
    errors.extend(model.check(**kwargs))
  File "/home/wger/src/wger/exercises/models/base.py", line 146, in check
    no_translations = cls.no_translations.all().count()
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
    return self.query.get_count(using=self.db)
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
    return obj.get_aggregation(using, ["__count"])["__count"]
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
    result = compiler.execute_sql(SINGLE)
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
    with self.db.wrap_database_errors:
  File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "exercises_exercisebase" does not exist
LINE 1: ... COUNT("exercises_exercise"."id") AS "count" FROM "exercises...
                                                             ^

INFO 2023-09-22 14:00:45,171 apps AXES: BEGIN version 6.1.0, blocking by ip_address
INFO 2023-09-22 14:00:45,679 apps AXES: BEGIN version 6.1.0, blocking by ip_address
INFO 2023-09-22 14:00:45,690 autoreload Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "exercises_exercisebase" does not exist
LINE 1: ... COUNT("exercises_exercise"."id") AS "count" FROM "exercises...
                                                             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.10/dist-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/commands/runserver.py", line 134, in inner_run
    self.check(display_num_errors=True)
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 475, in check
    all_issues = checks.run_checks(
  File "/usr/local/lib/python3.10/dist-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/usr/local/lib/python3.10/dist-packages/django/core/checks/model_checks.py", line 36, in check_all_models
    errors.extend(model.check(**kwargs))
  File "/home/wger/src/wger/exercises/models/base.py", line 146, in check
    no_translations = cls.no_translations.all().count()
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 621, in count
    return self.query.get_count(using=self.db)
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 559, in get_count
    return obj.get_aggregation(using, ["__count"])["__count"]
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/query.py", line 544, in get_aggregation
    result = compiler.execute_sql(SINGLE)
  File "/usr/local/lib/python3.10/dist-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 84, in _execute
    with self.db.wrap_database_errors:
  File "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.10/dist-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "exercises_exercisebase" does not exist
LINE 1: ... COUNT("exercises_exercise"."id") AS "count" FROM "exercises...
                                                             ^

Using django's development server...
Performing system checks...

Mhhhh, that sounds like the database wasn't initialized correctly

database (postgresql) just fine when taking the docker-compose way instead CA app on unraid but then I hit a wall when trying to log in or registrering a new user (403 forbidden error)


KAFKA-17253: Deprecate Leaking Getter Methods in Joined Helper Class

JIRA: KAFKA-17253

The helper class Joined has four getter methods gracePeriod(), keySerde(), valueSerde() and otherValueSerde() which don't belong to this class.
We should deprecate them for future removal – all four are already available via JoinedInternal where they belong to.

Committer Checklist (excluded from commit message)

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

Thanks for the KIP and PR. Merged to trunk.


Forms to have disabled save button unless really changed

Resolves #329

Bumps @konveyor/lib-ui
Removes "setTouched" from form pre-filling for providers
Use useFormState isTouched for the providers: This actually works until the use touch a field (position the pointer and leaves (unblur) that field because it marks the field as touched.

So to make it work, I believe we need to have preffiling happen during the useFormState object creation by passing the initialValues returned from backend.
Edited by @mturley:
Solved by adding a setInitialValue function to each field in useFormState in lib-ui. This allows us to prefill values without marking the form isDirty, and use the isDirty value to manage the disabled state of the submit button. Implemented it for all other prefilled forms (plans, mappings, hosts)

Removing the WIP tag here and approving. @gildub if you're ok with the patches I made, feel free to merge.

Removing the WIP tag here and approving. @gildub if you're ok with the patches I made, feel free to merge.

Also rebased.

Also rebased.


Next Steps Aren't Useful

The Next Steps on this page make sense from how Microsoft groups it's products but it doesn't make sense from the perspective of a developer who might be following this guide. A developer is presumably trying to build a web app using Azure Functions so useful Next Steps would be stuff like properly configuring authentication, when to combine functions or leave them separate, how to use them to connect to a db, or how to managing routing with your api.

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

ID: fa1710c0-7d63-6375-c25a-b204898fe283
Version Independent ID: c0e8cd44-abbb-e47a-3085-141c9f7af8ea
Content: Clean up resource after deploying the Azure Functions application to azure
Content Source: javascript/tutorial-vscode-serverless-node-05.md
Product: azure-nodejs
GitHub Login: @kraigb
Microsoft Alias: kraigb

@m-sterspace I've added a more robust set of links for next steps. I'm closing this issue however if you feel more can be done, let me know which specific content links you wanted included. #please-close


pijul: 0.11.0 -> 0.12.0

Motivation for this change
https://pijul.org/posts/2019-04-23-pijul-0.12/

add new dep on nettle, all the crypto libraries :)
(see release post for details re:GPG support)
libclang needed now, add
clang input is not quite right AFAIK, but fixes the build.
idea from other package,
seems to resolve problems finding headers via libclang?

Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

cc @P-E-Meunier

I've been really slow at updating Carnix to make this possible. Thanks!


add warning about counterintuitive readiness probe

As evidenced by https://github.com/kubernetes/kubernetes/issues/27114 the naming leads one to think that a liveness probe executes after a readiness probe. This is not the case.

/sig node

👋 @caleb15 . Thanks for contributing!
Page preview:
https://deploy-preview-26387--kubernetes-io-master-staging.netlify.app/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes

Thanks for the merge! I can't see the slack discussion (when I try creating an account it says the below), mind reposting it?
The email address must match one of the domains listed below. Please try another email.


Warn user of revoking access for a group

close #5576
Using same approach as for users (i.e. display text about usage as secondary info + highlight with the red color for destructive action):

@xavijam can you review?
cc @juanignaciosl

Super nice! :+1:


requireResolversForArgs doesn't throw an error if resolver is missing

The documentation specifies "requireResolversForArgs will cause makeExecutableSchema to throw an error if no resolve function is defined for a field that has arguments", but if the resolver function is missing, the code just emits a console warning and doesn't throw an error.
Expected: makeExecutableSchema throws an error if requireResolversForArgs is enabled and resolver is not specified.

Rolling into #1316

duplicate of #1196, will track there.


Migrate to (the pending) Vega-lite 0.8

Please merge ~~https://github.com/vega/vega-lite/pull/595~~, #128 first!

@domoritz I'm merging this, but please take a look and comment so we can make follow-up fixes if something need to be change.  (Or say 'LGTM' if you approve the change.)


HMR with setStatefulModules fails to do dynamic view updates.

Hi,
I'm having trouble with getting HMR working properly on an Angular (4) project.  I've enabled the stateful modules test so that components and their templates do not trigger page refreshes, like so:
setStatefulModules(name => {
    return !/.component/.test(name); // anything not a component or it's template / scss is stateful.
});

If I edit some text in app.component.html, I will see in the browser console: update "app/app.component.html"
No errors, but the view doesn't reflect the changes.  Am I missing something?
Here is my fuse.js
const {Ng2TemplatePlugin} = require('ng2-fused');
const {
    FuseBox,
    SassPlugin,
    CSSPlugin,
    WebIndexPlugin,
    JSONPlugin,
    HTMLPlugin,
    Sparky,
    RawPlugin,
    QuantumPlugin,
} = require('fuse-box');

let fuse, app, vendor, isProduction;

Sparky.task("config", () => {
    fuse = FuseBox.init({
        homeDir: `src`,
        output: `dist/$name.js`,
        hash: isProduction,
        target: "browser",
        plugins: [
            ['*.component.html', RawPlugin()],
            ['*.component.scss', SassPlugin(), RawPlugin()],
            WebIndexPlugin({
                title: 'Sphirra',
                template: 'src/index.html',
            }), [
                SassPlugin({
                    outputStyle: 'compressed',
                }),
                CSSPlugin(),
            ],
            JSONPlugin(),
            HTMLPlugin({
                useDefault: false,
            }),
            // http://fuse-box.org/page/quantum
            isProduction && QuantumPlugin({
                uglify: true,
                hoisting: {names: ["tslib_1"]},
                treeshake: true
            }),
            Ng2TemplatePlugin(),
        ],
    });

    vendor = fuse.bundle('vendor').instructions(' ~ main.ts');
    app = fuse.bundle('app')
        .sourceMaps(!isProduction)
        .instructions(' !> [main.ts]');
});

Sparky.task("default", ["clean", "config"], () => {
    fuse.dev({
        proxy: {
            '/api': {
                target: 'http://localhost:8080/fq',
            }
        }
    });
    app.watch().hmr();
    return fuse.run();
});

Sparky.task("clean", () => Sparky.src("dist/").clean("dist/"));
Sparky.task("prod-env", ["clean"], () => {
    isProduction = true
});
Sparky.task("dist", ["prod-env", "config"], () => {
    // comment out to prevent dev server from running (left for the demo)
    fuse.dev();
    return fuse.run();
});

Many thanks in advance,
Darren

@dazzoh the page won't refresh, it will just re-trigger your entry point.

Ok it appears I don't understand something fundamental here.  I will do a bit more reading up on the HMR logic first.  Thanks for your help & good job on FuseBox.. I hated webpack with a vengeance.


Add Koyeb to users.md

Please ensure your pull request adheres to the following guidelines:

[ ] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[ ] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] If your commit description contains a Fixes: <commit-id> tag, then
please add the commit author[s] as reviewer[s] to this issue.
[ ] All commits are signed off. See the section Developer’s Certificate of Origin
[ ] Provide a title or release-note blurb suitable for the release notes.
[X] Are you a user of Cilium? Please add yourself to the Users doc
[ ] Thanks for contributing!

Add Koyeb to list of Cilium users

Sorry hit approve without refreshing. You didn't need to do the merge commit because now that one isn't signed off. It was all correct until then.

Ok, should be good now! :)

Perfect, thanks!

/test


Exponentiation of negative Ints

Hello,
I recently noticed that exponentiation of negative Ints can result in non-integral numbers with the type Int. For example:
> i = 10%4
2 : Int
> i
2 : Int
> -i
-2 : Int
> 10^(-i)
0.01 : Int

So, for instance, I could produce the following error on my elm-repl session:
> j = 2^(-i)
0.25 : Int
> k = 1/4
0.25 : Float
> j == k
(Type mismatch error)

I think 0.25 being an Int makes little sense, but I am not sure what would be the appropriate fix for this. The options I can think of are returning a number, returning a Float, and making such expressions illegal. The current implementation of (^) simply calls a native JS function and has type number -> number -> number.

Consolidated all the math related stuff into the #721 meta issue. Follow along there!


Fix process_projectfile job on freshly uploaded project file

Task linked: QF-1497 Fix process_projectfile failure on freshly uploaded project file


Document available options for command-line interface

We allow providing zero or more --option arguments when using the CLI, however the available options are not displayed in the help text. We should either find a way to list the options here, or update the description to point users to a list of these options.

Good point! 👍 I wonder if clap has a way to do something like that
(But in general, I would assume users to use the TUI - I mostly thought of the --option argument for CI purposes .... but that's no reason to not make it user friendly)

Good point! 👍 I wonder if clap has a way to do something like that

You are able to list available options, however it's a matter of how we accomplish this. Obviously manually maintaining a list is just asking for things to fall out of sync.

(But in general, I would assume users to use the TUI - I mostly thought of the --option argument for CI purposes .... but that's no reason to not make it user friendly)

That's totally reasonable, perhaps this should just be documented somewhere instead, and we can just link to said documentation in the help text. Also we don't necessarily need to move forward with this, I just think there will always be some subset of users which prefer CLI and we should make things a bit easier for them if possible.


forward: /url does not route to serviceIds

Hi all,
I have some legacy routes that I wish to reroute to new microservices, and have a zuul config as follows:
zuul:
  routes:
    email-reroute:
      path: /email/form/**
      stripPrefix: true
      url: forward:/notifications/email/

    notifications:
      path: /notifications/**
      serviceId: notifications

Initially, it pattern matches the /email/form fine,
2018-05-15 12:08:01.902 DEBUG [gateway,internal] route matched=ZuulRoute{id='email-reroute', path='/email/form/**', serviceId='null', url='forward:/notifications/email/', stripPrefix=true, retryable=null, sensitiveHeaders=[], customSensitiveHeaders=false, }

It then rewrites this URL as expected:
 DispatcherServlet with name 'dispatcherServlet' processing POST request for [/notifications/email/]
However, it fails to find my subsequent notification service mapping:
Matching patterns for request [/notifications/email/] are [/**]
If I hit the /notifications/email endpoint directly, it makes a request to the notifications microservice as expected.

Forwarding to other zuul routes is not an explicit feature, it may or may not work. In your case it doesn't.


TD4a won't render

Just spun up your docker container but hitting render does nothing. Then after that, if I hit refresh, it no longer loads the demo content as it did on the first visit. I have to delete the cookies that were set by the app. It does work on your demo site though. I would love to use this, but I am not much help on debugging a webapp.
docker pull cidrblock/td4a

docker run -p 5000:5000 cidrblock/td4a

Using Chrome Version 68.0.3440.106 (Official Build) (64-bit).
Also tried Firefox 61.0.2 (64-bit) with the same behavior.

Turns out the dockerfile is pip installing 1.7.

pip installed 1.8 and the bug is still there. Can you publish 1.9 with HEAD on master branch so the bug will be resolved?

Rendering issue with the version on pypi is because controllers/render.py has an unknown keyword arg "type"
def jinja_unresolved(template, typ):
...
if jinja_unresolved(template=after_jinja, type="p1"):

Should be...
def jinja_unresolved(template, typ):
...
if jinja_unresolved(template=after_jinja, typ="p1"):

Had the same issue with virtualenv, fixed the above line mentioned by danielolson13, now template renders.

New version released, everything up to 2.0.3 now.


Adds project to support LUIS v3

In order to keep things stable in the near term, we will maintain two versions of the LUIS NLU service provider, one for LUIS v2 and the other for LUIS v3. For the most part, the LUIS v3 library is a copy paste of LUIS v2, and some minor modifications to work with the latest API changes.
The LUIS v3 library supports the new runtime API, including the ability to use "query" instead of "text" for the test utterance, and the ability to add extra JSON properties to your request, such as "externalEntities", "options" and "dynamicLists"
There is a remaining TODO to figure out what to do with entity value resolution, as the entity values in LUIS v3 follow a less consistent pattern than in v2. Follow issue #27 for progress on this issue.
Fixes #39

We should add unit tests for LUIS query options, external entities, and dynamic lists.

We also need to make "speechKey" optional and likely change to "luisSpeechKey"


[BUG] Did matter protocol support Android5.0 and 6.0?

Reproduction steps
I change the minSDKVersion of the Android chip-tool app to 21 ，but it will crash on Android 5.0 device ：
`
2023-06-29 14:27:02.291 24427-24427 SetupPayloadParser      com.google.chip.chiptool             E  Cannot load library.
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__register_atfork" referenced by "libSetupPayloadParser.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:371)
at java.lang.System.loadLibrary(System.java:989)
at chip.setuppayload.SetupPayloadParser.(SetupPayloadParser.java:78)
at com.google.chip.chiptool.setuppayloadscanner.BarcodeFragment.handleScannedQrCode$lambda-10(BarcodeFragment.kt:199)
at com.google.chip.chiptool.setuppayloadscanner.BarcodeFragment.lambda$KQ_xOxz0LBqlN0rG11wbU9zHO7E(BarcodeFragment.kt)
at com.google.chip.chiptool.setuppayloadscanner.-$$Lambda$BarcodeFragment$KQ_xOxz0LBqlN0rG11wbU9zHO7E.run(lambda)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
`
It seems that __register_atfork can not be used on Android 5.0&6.0 .
Does matter protocol support android 5.0 & 6.0 ?
Bug prevalence
always
GitHub hash of the SDK that was being used
TAG <IP_ADDRESS>
Platform
android
Platform Version(s)
No response
Anything else?
.

@luobosu per https://android-review.googlesource.com/c/platform/bionic/+/948880/1/android-changes-for-ndk-developers.md, "__register_atfork" need android 23, so it means at least android 6.
Recently we have added pure kotlin SetupPayloadParser, @yufengwangca , @luobosu maybe this issue has disappeared, please retry? thanks

The requirement as far as I am aware is API level 26 at a minimu, so you actually need android 8 and above. Reason is IPv6 support requirements.

Just changing "minSDKVersion" is not sufficient for making chip work on old android versions. They will generally not work because of ipv6 support needs and the SDK does not support such a setup. Use android 8 or above at least.


Automated Package Upgrade

:tada: This PR is included in version 2.2.128 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Does SwagGen support references to properties of a schema?

Hey @yonaskolb, our backend team recently added on our openapi spec the following entry on schemas:
A new UpdateCardRequest
    UpdateCardRequest:
      type: object
      required:
        - nickname
      properties:
        nickname:
          $ref: '#/components/schemas/Card/properties/nickname'

A new property called nickname under the existing Card schema.
    Card:
      type: object
      properties:
        ...
        nickname:
          type: string
          nullable: true

When swaggen generates the code, Card correctly receives the new nickname property of type String. However, the new UpdateCardRequest object fails to compile due to unknown Nickname type. Apparently having a $ref to a property (Card/properties/nickname) does not make Swaggen generate a typealias or a new object. Is my assumption correct?
As a temporary workaround I could make Nickname a new object under schema and have the nickname property under Card reference it. Thoughts?

Referencing a property in a Schema like that is not supported in SwagGen. I didn’t even know it was part of the open api spec.
If nickname is just a string, I would just define it as such in the UpdateCardRequest, thereby duplicating the definition. I don’t think it’s necessary to make it it’s own type


lib is not working on my project

I tried add this lib in my study project, but i failed. Just like my teamlead.
if file have extension .axaml - i can use names of UI items, but they equal null
if file have extension .xaml -  i can't use it at all.
https://github.com/UnluckyD/NameGeneratorTest - my test project
https://github.com/SkillChat/SkillChat - big study project

It seems the lib is generating it's own InitializeComponent() method where the Controls are assigned. Since you also provided one, it gets used instead. The short term solution would be to delete your custom InitializeComponent method. But I think it is something that should be improved by the code gen side (if that's even possible)?

If you'd like to disable InitializeComponent method generation, just put the following code into your csproj file:
<PropertyGroup>

   <AvaloniaNameGeneratorBehavior>OnlyProperties</AvaloniaNameGeneratorBehavior>
</PropertyGroup>

Documentation is available here https://github.com/AvaloniaUI/Avalonia.NameGenerator#advanced-usage

@UnluckyD most likely you are hitting name conflicts, just remove this method and the generator should work https://github.com/UnluckyD/NameGeneratorTest/blob/master/testNameGen/MainWindow.axaml.cs#L22
If that still doesn't solve your problem please consider inspecting the code in projects that are using this library https://github.com/AvaloniaUI/Avalonia.NameGenerator/network/dependents

It doesn’t work for me either, a simple empty window. When edit and saving the form Avalonia Diagnostics window outputs:
18:55:45.964 [Error]  No executable found
Visual Studio 2022 v17.3.0
SDK: 6.0.400
Project target: .Net 6.0
I tried recommendations from readme (including https://github.com/AvaloniaUI/Avalonia.NameGenerator#advanced-usage).
Is it possible to config diagnostic output? I tried to add the generator as project reference Avalonia.NameGenerator.csproj from sources, but I couldn't find a breakpoint that breaking executing.

@IldarKhayrutdinov could you upload a repro for us to look around and figure out what's going wrong there? Also in the dependents section on GitHub your can view sources of applications that are already using XamlNameReferenceGenerator in order to get started quickly, e.g. XAML file, code-behind file

@worldbeater thanks for advice, I'll analyze dependens, maybe it will help me. If it doesn't help later I'll create a minimal project for reproduction.

Also referencing the project sources is a bit tricky, you have to do git submodule update --init --recursive after cloning the repository and then you have to add the <AdditionalFiles /> directive into your csproj file https://github.com/AvaloniaUI/Avalonia.NameGenerator#getting-started

yes, I have performed these requirements, my NameGenerator project builds successfully, AdditionalFiles also added for main project.

@worldbeater how do to run debugging of NameGenerator?

@worldbeater
My program doesn't use ReactiveUI yet, the window class doeasn't inherits from ReactiveWindow<T> (MainWindow : Window).
Program.cs:

public static AppBuilder BuildAvaloniaApp()
    => AppBuilder.Configure<App>()
        .UsePlatformDetect()
        .UseReactiveUI()  // when add this line NameGenerator doesn't work
        .LogToTrace();

@worldbeater finally, I found the reason: if the project contains a form with xaml errors, the generator will not work for all forms in the project (incl valid ones).
Test project: AvaloniaApplication1.zip

@IldarKhayrutdinov thanks for the report and repro, sounds like something we definitely want to fix.
Just filed an issue so we can track this.


user docs: Remove icon-vector for font-awesome.

Removes icon-vector from the help docs. @rishig
Testing Plan:
I just verified visually.
GIFs or Screenshots:
no visual change

@synicalsyntax Do you think that we can remove static/third/fontawesome-legacy.css ?

Awesome, thanks @Lyla-Fischer! Will merge as soon as tests pass.

@adnrs96 FYI, can you help with figuring out whether we can remove fontawesome-legacy.css?

@timabbott There is just one occurrence left for icon vector which happens to be in timerender.js. There maybe 2-3 others which aren't really critical to remove before we remove fontawesome-legacy.css but I guess its just a few minutes work to do that.
After doing the above we can remove fontawesome-legacy.css along with occurrences where we include it into the web pack. We already use yarn to get fontawesome 4.7.0 so that should continue to work.
How about I submit a PR doing this and then we can get over with this migration :)

Sounds great!
-Tim Abbott (mobile)
On Wed, Oct 10, 2018, 1:29 PM Aditya Bansal<EMAIL_ADDRESS>wrote:

@timabbott https://github.com/timabbott There is just one occurrence
left for icon vector which happens to be in timerender.js. There maybe 2-3
others which aren't really critical to remove before we remove
fontawesome-legacy.css but I guess its just a few minutes work to do that.
After doing the above we can remove fontawesome-legacy.css along with
occurrences where we include it into the web pack. We already use yarn to
get fontawesome 4.7.0 so that should continue to work.
How about I submit a PR doing this and then we can get over with this
migration :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/pull/10634#issuecomment-428719526, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACnm2iDWqy7rywkZZSX-2Eld-CrJ_EZAks5ujliNgaJpZM4XT_UB
.


Fix entrypoint of the example app and make the installation command consistent with the documentation

Why
The script (entry point of the command) is declared here:
https://github.com/nodecross/nodex/blob/05f2abd5142e4bfec91d0885293750c6ed8ee4e5/examples/nodejs/package.json#L14
The example documentation is wrong 😢

Thank you very much :pra


ENH: Speed-up peak distance filtering with Cython

This replaces the function _select_by_peak_distance introduced with #8264 with a faster Cython version.
I've provided a short and naive performance comparison between the old and proposed function here.

The CLI failures don't seem to be related to this PR.

Tests look good to me and the performance numbers are convincing. +1 for merge from me. Any other reviewers? If nobody else looks, I'll try to remember to merge next week (but @lagru feel free to ping me when I likely forget).

@perimosocordiae @tylerjereddy feel free to look again if you have time, if not @lagru feel free to ping me early next week for a merge (assuming the CIs stay happy).

@larsoner, the CIs stayed happy so it looks like its ready to merge.

LGTM, merging, thanks @lagru!
FYI @lagru we are looking at branching 1.1.0 around April 11th, if that affects your PR plans.

Your're welcome and thank you for reviewing. :slightly_smiling_face:

we are looking at branching 1.1.0 around April 11th, if that affects your PR plans. -- @larsoner

Not to much.

#8541 should be ready to go as well assuming the rebase onto master doesn't break anything.
#8594 may stay in the review stage until next week but I don't have any drastic changes planed either.

Including these two in 1.1.0 may be useful, as these improve performance, documentation, unit tests and include a better handling of for edge cases and faulty input.

Sounds good. I'll optimistically mark those for 1.1.0, feel free to ping me as needed to keep them moving :)

@larsoner, should this be marked for 1.1.0 as well or is that milestone only to keep track of blocking issues?

Just blocking issues IIRC


Downloading channel, skip specific playlist

Hi,
Is it possible to download all playlists on a channel but exclude a specific playlist, in my case, i want to skip "Liked Videos" and perhaps a couple of playlists containing videos from other channels. Alternatively, and exclude of all videos that are not from the same user.

it's better to whitelist the playlists you want and just leave out the one you don't.

Unless there's too many playlist to add.


Update to use webreflection/document-register-element

This allows us to use a versioned polyfill that even supports back to IE8. The in-built functionality that fills some Mutation Observer behaviour for unsupported browsers requires fixing, so including the Mutation Observer polyfill from webcomponents.js fixes it. When these issues are fixed in the v0 / v1 polyfill, we can remove the Mutation Observer fill.

lgtm

lgtm


The variable scope of SubPixelConv2d is uncorrect

While the code is
def subconv(net,i):
    blockname='SubConv%d'%i
    with tf.variable_scope(blockname):
        net=tl.layers.Conv2d(net,n_filter=256,filter_size=(3,3),W_init=xavier(),name='Conv')
        net=tl.layers.SubpixelConv2d(net,scale=2,name='SubConv')
        net=tl.layers.PReluLayer(net,name='PRelu')
    return net

check this commit https://github.com/zsdonghao/tensorlayer/commit/dda88a2d1e7357a19c38a7e182a528da20595e8a

Looks god to me.
wow


how do we clear nz-date-picker from ngModelChange method?

Version
1.6.0
Environment
Chrome
Steps to reproduce
Having 2 date picker "Start" and "End", if end is smaller than start than it should not allow to fill date picker.
What is expected?
end date picker should not be filled until and unless end date is not grater than start date.
What is actually happening?
Used ngModelChange and nzOnOk default events but not sure how can i clear date picker input by code.

just try to set ngModel to null


ADS Livesite server list do not show if there are no connections in ADS

Azure Data Studio Version: 1.22.1

Steps to Reproduce:

Have no connections in ADS
Open the TSGWorkspace from ADS Livesite
Notice the Add Connection still shows and the ADS Livesite connections are not showing (seen screenshot below)

No longer reproducible. Closing issue.


PNC NBack

PNC fMRI n-back volume data (paper: Murtha, Kristin et al., 2022):
linear model:     contrast ~ ageAtScan1 + sex + nbackRelMeanRMSMotion + parental_ed + envSES
of subjects = 1150
of voxels = 151,227
of CPU requested = 4
ran on laptop vmware:  took 1h (meanwhile a lot of other applications were running)
ModelArray version: PennLINC/ModelArray@9e735b9
Scripts see: https://github.com/PennLINC/ModelArray_tests


Parallax effect not working at all

Hi,
I am using the plugin with gatsbyjs and react. The image displays fine but the parallax effect is not working, the image is just static.
My code is below:
import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import { Parallax } from 'react-parallax';

const insideStyles = {
  padding: 20,
  position: "absolute",
  top: "50%",
  left: "50%",
  transform: "translate(-50%,-50%)",
  color: "#ffffff"
};

const Teaser = () =>(
    <StaticQuery

    query={graphql`
      query {
        images: allFile(filter:{relativePath:{eq: "chef.jpg"}}) {
          edges {
              node {
                extension
                relativePath
                childImageSharp {
                  fluid {
                    ...GatsbyImageSharpFluid
                  }
                }
        }
      }
      }
      }
    `}

    render = {({images}) =>(

                {/* -----basic config-----*/}

                <Parallax
                    blur={0}

                    bgImage={images.edges[0].node.childImageSharp.fluid.src}
                    bgImageAlt="Chef"
                    strength={500}

                >

Taze balık ve et ürünleri ile hazırlanmış tam 20 farklı lezzet

                </Parallax>

   )
    }

    />

    )

export default Teaser

Appreciate if you could point me in the right direction. Thanks in advance everybody!

I had an issue with it as well. It doesn't work on my app but it works in the sandbox environment. Does it have to do with different React versions? I am on 16.4

@romangorelik Hm, it should work with other react versions. I just pasted your snippet into the code sandbox and gave it the latest react and react-dom versions and it looked okay. Do you have a running example where I can have a look at?

Hi, I have a running example you can look at: http://chefs-test.s3-website.eu-central-1.amazonaws.com/

Hi, I'm late but: please provide a running example where I can see implementation details. It does not help a lot when I see a page that loads bundled js files. Maybe you already fixed this (or use a different library) but next time it would help a lot.
I will close this issue but feel free to re-open it if the issue still exists.
Thanks

I have realized that if you hide the overflow in the "html" or "body" tag and set it  to auto on the parent div of the parallax , the parallax wont work. It is sometimes necessary to do such css so it might be a good idea to "liberate" the parallax from the "body" "html" tags and give us an alternative to use a ref?

here is the sandbox: https://codesandbox.io/s/sharp-matsumoto-zdsgd?file=/app.css


Open Source Changes

Github badges added
CHANGELOG.md added
LICENSE.txt added
.travis.yml added
.gitignore added
Typo in  README corrected

Pull Request Test Coverage Report for Build 4

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 54.408%

Totals

Change from base Build 1:
0.0%

Covered Lines:
216

Relevant Lines:
397

💛  - Coveralls

Can you add an inceptionYear in the POM, set it to 2018 and then see what this does to all generated headers?


Refactor context.Background in tests

This PR is in preparation of adding code coverage improvement PRs which will be much easier to write when the tests consistently create a single background context.
The only changes made in this PR are to pull out context.Background() into a separate assignment in the test files.

That was a lot of files. LGTM.

Yes, sorry for the churn, but this will make future coverage tests easier to maintain.
Thank you for all the reviews, @nightlark !  They are greatly appreciated!
Merging.


GPU EfficientNet is weirdly slow

did inference in 0.28 s
                 Mul : 163       29.18 ms
                 Add : 140       25.53 ms
                 Pow :  98       18.43 ms
               Pad2D :  17       16.97 ms
              Conv2D :  81       14.49 ms
             Sigmoid :  65       10.23 ms
             Reshape : 230        9.94 ms
                 Sub :  49        9.75 ms
           AvgPool2D :  17        5.93 ms
                 Dot :   1        1.06 ms

Run with DEBUG=1 for profiling. Conv2D isn't even close to the top in time users.

working on my local branch to optimized pyopencl code.

@geohot  we can look in opencl hands on tutorial ,where the author has stated some techniques to optimize mat mul operations.
https://handsonopencl.github.io/

I am new to opencl but a quick google suggests that the bottleneck are the 3N memory operations on Mul and Add. Also couldn't find a hardware-independent acceleration suggestion.

From my experience optimizing GPU code, most performance comes from coalescing GPU memory read/write. Broadcasting is in direct opposition to coalesced access since it fragments memory addresses and breaks coalescence. In speed critical scenarios, it makes sense to write separate kernels to address the most common forms of broadcasting that can occur, or reorder the broadcasted memory on CPU before sending to the GPU, then reorder the result to undo any temporary broadcasting effects. This means more code though, which strains the tiny feature of tinygrad.

quickly from the ranks: If you are going to speed things up, maybe consider opening a new file optgpufast.py. Current implementation for readability and proof of concept, fast implementation for super fast computations. I think this would make testing, debugging and comparison of results way easier. One major benefit would be that a cpu and a slow gpu implementation remain if the fast gpu implementation is temporarily broken for some users.

Can you speed up Conv2d by simplifying the multiply formulas using the distributive property?
Line 470 in opsgpu.py:
B * groups * cin * iy * ix + g * cin * iy * ix + ci * iy * ix + y * ix + x
Condense this operation to:
W * (H * (cin * (g * rcout + c) + ci) + y - iy) + x - ix
Line 471:
g * rcout * cin * H * W + c * cin * H * W + ci * H * W + (y - IY) * W + (x - IX)
Condense to:
IX * (IY * (cin * (B * groups + g) + ci) + y) + x
Line 475:
B * groups * rcout * oy * ox + g * rcout * oy * ox + c * oy * ox + Y * ox + X
Condense to:
ox * (oy * (rcout * (B * groups + g) + c) + Y) + X

I found those mults don't make much of a difference for speed, compiler gets them. Up to you which is more readable.
Our goal isn't optgpufast, I think there's some obvious reasons why it's slow that we can fix with very few lines.

We don't have OpenCL 2? Because then I could run eg. x,y,c loops in separate kernels. If I start the separate kernels from Python it is slower. We also need a SGEMM contraction of tensor indices.
Anyways if you scale up Conv2D is actually not that slow on a Mac for being the most naive algorithm:
testing [(8, 3, 110, 280), (6, 1, 5, 3)]   torch/tinygrad fp: 12.14 / 0.39 ms  bp: 26.35 / 6.21 ms

Note you can reorder the loops so it is essential a small loop over matrixmatrix or a matrixvector multiplication (with funny strides because its convolution). I did this in Python for dx but if you call H*W kernels from python that is actually way slower in all cases I tested.

The cones are actually fast. It's the O(n) stuff that's surprisingly slow.

As far as I know GEMM and FFT convolutions are generally faster than nested looping. FFT has some restrictions on boundary conditions (assumes wrapping boundaries IIRC). GEMM solvers on GPU have been heavily optimized in recent years, such as the one in cuBLAS. But the implementation we have is flexible and likely the smallest.
I think the binary_ops suffer from fragmented global GPU memory accesses. The most obvious sign is that the indices are not purely based on global thread ids (they contain variable divisors). That is likely issuing 32 memreads per transaction instead of just one of it were coalesced. Global mem access has a huge latency (500-1000 cycles, at least on nvidia hardware), and non-coalesced access has a huge cost.

As far as I know GEMM and FFT convolutions are generally faster than nested looping. FFT has some restrictions on boundary conditions (assumes wrapping boundaries IIRC). GEMM solvers on GPU have been heavily optimized in recent years, such as the one in cuBLAS. But the implementation we have is flexible and likely the smallest.
I think the binary_ops suffer from fragmented global GPU memory accesses. The most obvious sign is that the indices are not purely based on global thread ids (they contain variable divisors). That is likely issuing 32 memreads per transaction instead of just one if it is coalesced. Global mem access has a huge latency (500-1000 cycles, at least on nvidia hardware), and non-coalesced access has a huge cost.
A naive solution to both broadcasting and memory access speed would be to fill out a full sized tensor on the cpu (before executing the kernel) with duplicated data along axes where broadcasting occurs. This obviously incurs a storage cost, but it would remove the need for variable divisors in the global memory indices, and would enable coalesced memreads. That would optimize all binary ops and give us a short road to broadcasting. There are more elegant options, but we have 11 lines to spare at the moment...

"Direct approach can be faster on some kernel sizes than FFT"

One way to speed up O(n) is to put several O(n) in a single kernel. I am looking at the non first class ops like swish which seems to be used a lot!? Would it make sense to hardcode this in a single kernel?

Made it a bit faster by not recreating the kernels, but it's still slow. The dispatch is so expensive!

just thinking out loud, can slots in Tensor class make a difference?
as it decreases memory footprint and has faster attribute access and normal dict :)
@geohot thoughts??

Hmm, this slots is a cool thing to learn about!
But I don't think that's the slowness, I suspect it's the GPU driver. Want to profile it?

yeah GPU driver accounts the highest percentage of slowness no doubt....
I was talking about icing on cake :P but I guess lets get the cake first (fix the gpu slowness :))
:), and yeah slots are cool do check them out.

check my opencl ML lib https://github.com/iperov/litenn it is only x4 slower than tensorflow

#144 is better about this. Let's see if the litenn ops are better?

I agree with @ryanneph and @kartik4949 regarding the potential issue with fragmented global GPU memory access. Coalescing memory read/write can indeed result in significant performance improvements. Also, the concept of creating a full-sized tensor on the CPU, as @ryanneph suggested, could be a promising approach, despite the storage overhead.
Furthermore, I'd like to suggest looking into an optimization technique called kernel fusion. It can be highly effective in eliminating overheads caused by multiple kernel invocations. This is particularly beneficial for element-wise operations like Mul, Add, and broadcasting, which seem to be the primary culprits for the current performance issues.
Here's a simple pseudo-code example of how it could be implemented:
def fused_kernel(a, b, c):
    i = get_global_id(0)
    c[i] = a[i] * b[i] + c[i]

By combining multiplication and addition in a single kernel, we can reduce global memory accesses and thus potentially boost the performance.
Incorporating these changes could make GPU performance in tinygrad more efficient, bringing it closer to the goal of having a lean and fast deep learning library. While this does add a few more lines to the code, the trade-off in terms of speed might be worth considering.
Additionally, as @kartik4949 mentioned, Python's __slots__ can also provide some minor speed improvements. Though it's not a game-changer, it could contribute to the overall efficiency.


Bump doorkeeper from 5.0.2 to 5.3.1

This PR bumps Doorkeeper from version 5.0.2 to 5.3.1, through the following versions.
5.1.0 rc1
5.1.0 rc2
5.1.0
5.2.0 rc1
5.2.0 rc2
5.2.0 rc3
5.2.0
5.2.1
5.2.2
5.2.3
5.2.4
5.3.0
5.3.01
5.2.0rc3 introduced some breaking changes for Signon, particularly around the SigninRequiredAuthorizationsController (which is a customisation of Doorkeeper's AuthorizationController),  as this PR made the server setting a default scope mandatory. See individual commit messages for more details.
trello

Looks generally good to me :+1: I've asked a few rather uninformed questions unfortunately, mostly just so I can try and understand the changes better.

I think it would be good to soon look again at Doorkeeper, and try and bring our use of it more in line with the OAuth standard, as well as trying to reduce the monkey patching of the internals, but I don't think addressing these two issues is enough to not merge these changes.

Agreed, I will write up a card for us to pick this up soon.


Document need for adaptive=True option for VTKFile

This isn't obvious and has tripped up at least one user.

Good idea. I was tripped up by this in the past as well. But maybe it would be better to open a PR to Firedrake and make the error more instructive? I could take that on :)


Find the most specific address

When looking up for an address, instead of finding the one that begins first, find the one with the smallest size, which is usually the most specific.
For instance, when looking up for $7FAB10, what we currently get is
Empty RAM which is entirely untouched.
This area is used by many SMW hacking tools and patches, so hacked ROMs are likely to use some of the addresses found here.

but what we usually want is
Custom sprite table used by Pixi.
It holds the extra bits of a sprite.

I opted for sorting the address ranges directly by size, instead of performing the sorting on lookup, for performance reasons (otherwise we would have to sort ramMap and such on every lookup, which is quite expensive given their sizes).
I added the additional function sortBySizeAsc instead of putting the sorting inside getMap, because maybe the hijacks map should not be sorted (I sorted it anyway).

Published as 0.1.3


fix tutorial

all credits to https://github.com/pgonzaleznetwork/HappySoup.io/issues/252

Thanks!


Serialization of object variant (case object) to/from SSZ Union

WIP

So, as mentioned in the call, this could be merged and the isUnion macro can be added later.


Request Assistance

Hi...not sure if you are still active with this project, but here goes....
I am using the Sketch in a pot only application and have successfully removed all but the necessary script.
I have included a second sound file for Steam, all this works well as long as i make the selection at the beginning of the sketch.
that all works, the challenge i have is i wish to add a Hiss.h file that is called for when the loco is stationary, ie: currentThrottle<20;
when the throttle is below this mark all i get is static, when i get the throttle above 20 the normal sound returns, there must be a variable i have missed resetting, i have tried all i can see,
would you please have a look at the files attached and point me in the right direction.
thanks
Doug
Files.zip

Skimming trough your code I see you are using 1024 values, the pwm only accepts 255
Maybe it is that you can use the MAP command to map the 16bit value to a 8bit one
https://www.arduino.cc/en/Reference/Map


Dependencies for CONIFG_LEDS_GPIO are not enforced

If the base defconfig does not include the required deps for LEDS_GPIO, the config will fail to get activated.
http://cateee.net/lkddb/web-lkddb/LEDS_GPIO.html

@agherzan I am not able to reproduce this, could you give me a bit more detail about it?

Try to deactivate one of its dependencies and then you will see the warning.

The dependencies are correctly defined now : https://github.com/resin-os/meta-resin/blob/master/meta-resin-common/classes/kernel-resin.bbclass#L236 . Closing this issue.


Env var test coverage

Fix for:
https://codeclimate.com/github/ministryofjustice/fr-staffapp/coverage/5630b3ab7e0ef617240801d9

Looks good, but I'd rather improve the GPA than the the test coverage! :)

@novotnyjakub chatted with @colinbruce about this, I'll merge it now. Thanks


Writing custom data to the default collection

Hi, is there a way to write custom data to the default collection like for example the details of the user?

As far as I know, there is not. You have to create the one that stores other data manually.

Hi @vkarpov15,
Did any of you guys managed to solve max number of concurrent login sessions using session store collection?
@gjvpaet  request is convenient, for instance we can tell session collection that specific session is active (loggedIn) -in order to prevent any other login attempt from other clients, doesn't this make sense much more than adding that field somewhere outside session collection?

@ksuhiyp what max number of concurrent login sessions? I'm not aware of such a limit


[explore] make edit datasource a basic link

So that it can be ctrl-click and popped in another window

Coverage remained the same at 69.311% when pulling 2d1944cb2627ab8b8a44a7063999f2a9bb5d3cd3 on mistercrunch:ctrl_click into dcf83031d1d2cadabead7f66dff60fe927b96a36 on apache:master.

Coverage remained the same at 69.311% when pulling 2d1944cb2627ab8b8a44a7063999f2a9bb5d3cd3 on mistercrunch:ctrl_click into dcf83031d1d2cadabead7f66dff60fe927b96a36 on apache:master.

Coverage remained the same at 69.311% when pulling 2d1944cb2627ab8b8a44a7063999f2a9bb5d3cd3 on mistercrunch:ctrl_click into dcf83031d1d2cadabead7f66dff60fe927b96a36 on apache:master.


feat(pd): integrate pd-service into hugegraph

subtask of #2265
For detailed module analysis documentation, please refer to this link.

@imbajin Should we remove all content under license and upgrade packages?

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

Project coverage is 41.68%. Comparing base (43cae1d) to head (aaec1e2).

Files
Patch %
Lines

...graph/pd/upgrade/scripts/PartitionMetaUpgrade.java
0.00%
52 Missing :warning:

...hugegraph/pd/upgrade/scripts/TaskCleanUpgrade.java
0.00%
16 Missing :warning:

...che/hugegraph/pd/upgrade/VersionScriptFactory.java
0.00%
13 Missing :warning:

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2528       +/-   ##
=============================================
- Coverage     57.25%   41.68%   -15.57%
+ Complexity      829      272      -557
=============================================
  Files           605      608        +3
  Lines         49334    49415       +81
  Branches       6639     6645        +6
=============================================
- Hits          28246    20600     -7646
- Misses        18280    26487     +8207
+ Partials       2808     2328      -480

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

@imbajin Should we remove all content under license and upgrade packages? Or mark them when merging with the Useless annotation from pd-store branch later?

@imbajin marked with Useless now


Make Node optional in NewSession

Relates to: https://github.com/nryanov/consul4s/issues/131

Make Node optional in NewSession
Add test for creating sessions without specifying a Node
Fix scaladoc ordering in NewSession

Thank you!
Released new version 0.5.0


Built a Helper program to automate some tasks for the maintainers.

Has an automation task for style checking due to the fact that he gradle checkstyle plugin requires us to store the google_style.xml which would require license additions.

Can't we create our own checkstyle.xml instead of using google_style.xml?
Also, it seems like we already have jacoco plugin.

We could but I was under the impression that we were already using the google java style standard.
I could also write a gradle task to do a very similar process of downloading the file then running it manually with selecting the inbuilt google_style.xml but it would be a lot more messier. Specifically when in the long run the tool can incorporate publishing the website ( whats coming next ), signing the distributions, running rat and other repetitive tasks. I think this method is cleaner than building up the gradle file to be some complex beast.
If we want to roll our own style then ild be fine to just use the gradle plugin but I was preparing this for more. I dont see the relevance of the jacoco plugin, its just running our test reports isnt it?

Are you sure we can't use the checkstyle with google_style? I think as long as this is not part of shipped binaries - we can use it.

Anyway, I am fine with your commit. We can add gradle plugin later and use both.

I did manage to get the checkstyle working without needing to insert the style.xml into our repo ( which is lgpl ). Ill update pull request with the small edit and then merge it.

I guess we will need to relax a bit the rules, as there's too many style issues.

Alot are in the generated files which i believe my little program doesnt check and Im fine to go fix whats currently wrong. But once its up to date I reckon we should make it so the check needs to pass for a green light of the pull requests.


Update Grafana Dashboard to SLP8 metrics

Description:
While updating the Observability implementation for Ballerina SLP8, we have made several changes to the generated metrics. However, Grafana dashboard had not yet been updated to reflect these changes. This needs to be updated.
Dashboard: https://github.com/ballerina-platform/module-ballerinax-prometheus/blob/main/grafana-dashboard.json
Affected Product Version:
Ballerina SLP8

Migrated the dashboard to SwanLake alpha1.
Sql error graphs are not demonstrated with screenshots, since it is not possible to capture sql errors with ballerina observability at the moment.
The mysql client returns a stream and the errors can be thrown when we iterate it, and those are not captured.


Feature/nix - Add NixOS support

I love this project but needed it to run on my NixOS systems. So, I made it NixOS-compatible!
I also added setup instructions to the readme and contributing guides.

thanks @use-the-fork ! my only concern here is this is a lot of new code to maintain that i won't know how to maintain
just so i undertand - why is a dedicated nix package needed (aka why can you not use nodejs with NixOS)?
right now we only publish to npm which keeps things releatively simple and consistent, so need to make sure if we're going to add more targets and maintain those that it makes sense to do so

@steve8708 So there is nothing "new" for you to maintain. NixOS is 100% declarative, meaning everything is compartmentalized, and there isn't a "global" Node.js package. Nix will build everything individually and in its own container. What I added will read the package-lock.json file and convert that into NixOS inputs (i.e., the NixOS equivalent). It will then use the exact inputs required to build the package and install it in its own space on my system.
That way, there are never any conflicts between packages, and if I ever want to remove something, it's 100% cleaned up with no remnants.
So this PR doesn't actually change anything for you. You can keep publishing to npm. All my addition does is allow someone using NixOS to add the package to their system.

totally hear you on that, but every line of code added to this repo is new code that maintainers of this repo need to be able to maintain (answer issues about, debug, fix, etc)
for instance, that lock.json, does it need to stay in sync with our package-lock.json? or the other files, is there 0 chance they will ever need to change or ever have a bug? if I or any other maintainer aren't familiar with nix, I can't confidently say we can support this code in the repo
is there any way to make a nix package that does not require source changes to this repo?

totally hear you on that, but every line of code added to this repo is new code that maintainers of this repo need to be able to maintain (answer issues about, debug, fix, etc)
for instance, that lock.json, does it need to stay in sync with our package-lock.json? or the other files, is there 0 chance they will ever need to change or ever have a bug? if I or any other maintainer aren't familiar with nix, I can't confidently say we can support this code in the repo
is there any way to make a nix package that does not require source changes to this repo?

So there is a GitHub action that would do that. But you have a good point. I'll just keep my branch up-to-date.
Would you be okay with me removing that part but keeping just the parts that set up the dev environment? That wouldn't change at all unless you upgrade Node.js, and then it's just a number change.
I like this package and would like to contribute.

Would you be okay with me removing that part but keeping just the parts that set up the dev environment?

what parts would that be?


chore: forward-port #19026

Fiddly, not done yet ... help welcome.
Cross-reference: https://github.com/leanprover-community/mathlib/pull/19026.

Working off a8b2226cfb0a79f5986492053fc49b1a0c6aeffb.

bors p=10
bors merge

bors merge

I'm not sure why we had to cancel the current bors batch in progress...


We need OnEndDrag gesture closure (lambda) parameters

Maybe you can explain the use case a bit ?

For example, I need to save smth in database after reording data.
Чт, 15 июля 2021 г. в 17:41, Andre Claßen @.***>:

Maybe you can explain the use case a bit ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aclassen/JetpackComposeLazyReorderList/issues/1#issuecomment-880751724,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPI42H5FQWUGWBFZIHBIBLTX3XTLANCNFSM5ALCWIBQ
.

Added drag end callback
https://github.com/aclassen/JetpackComposeLazyReorderList/commit/dccc7a23b488e0de6b3bc22b655fdae7c96f2aa3

Brilliant! Thank you 👍
Пт, 16 июля 2021 г. в 04:31, Andre Claßen @.***>:

Added drag end callback
dccc7a2
https://github.com/aclassen/JetpackComposeLazyReorderList/commit/dccc7a23b488e0de6b3bc22b655fdae7c96f2aa3
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aclassen/JetpackComposeLazyReorderList/issues/1#issuecomment-881111783,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPI42BIPWHPFPFTKO7JC33TX6DVTANCNFSM5ALCWIBQ
.


tenant dashboard should include graphs for tenants and buckets over time

Is your feature request related to a problem? Please describe.
I want to see growth of a tenant/a bucket over time.
Describe the solution you'd like
have a dashboard panel where you can see lines of growth of a tenant or bucket.
Describe alternatives you've considered
none
tenant.json
Additional context
As I am not an expert yet, please review carefully what I did here...
Also, I added a filter for TopResources here...

Thanks for the contribution @ofu48167! I've merged your changes with the latest Tenant dashboard. How does this look?

yeah, exactly what I intended.... TopResources seems also to be working fine :)


python311Packages.hahomematic: 2024.2.3 -> 2024.2.4

Changelog: https://github.com/danielperna84/hahomematic/releases/tag/2024.2.4
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 289699 run on x86_64-linux 1

2 packages marked as broken and skipped:

python312Packages.hahomematic
python312Packages.hahomematic.dist

2 packages built:

python311Packages.hahomematic
python311Packages.hahomematic.dist


Lightning issue with Prey(2017).

I am having problems with Prey(2017). Lighting inside buildings does not work(just all black).
When I launch it with apitrace the game hangs in the main menu.

Software information
Game: Prey(2017)
Settings: tried all
System information

GPU: nvidia gtx 1050ti
Driver: 390.48
Wine version: wine-3.6 (Staging)
DXVK version: aur/dxvk-git 20180413.8dfe708-1 (11, 5,46) [installed: 20180418.8eb7859-1]

Log files

d3d11.log:
Prey_d3d11.log
dxgi.log:
Prey_dxgi.log

@eugenydn  Try the newest Nvidia beta driver. I heard that it fixed this issue.

I don't see any "failed to compile pipeline" issues in the log, but it might still be worth checking out.
I can try the demo at some point but in general, without an apitrace, issues like this are basically impossible to debug.

Новый драйвер не помог, но мне удалось загрузить локацию с apitrace. Надеюсь это поможет.
https://drive.google.com/file/d/1CY5AF-gS8wn45DQ3skUfhl7zoQEK9wuM/view?usp=sharing

I think this is related to GTAV "shadow issue" https://github.com/doitsujin/dxvk/issues/286

The shadow issue is fixed with the new driver

Its not related then.

The latest beta that fixes shadows should be 396.18.02 @eugenydn
https://developer.nvidia.com/vulkan-driver

Not helped(

Can anyone explain me in basic words, why d3d->vulkan is faster then d3d->opengl?

Please no off-topic discussions in bug reports.

@eugenydn I wonder if there is anything to be found if i run some "cryengine" demo or something? See something called "The Office", but im unsure if this is a runnable demo, or some demo of a program to write graphics stuff with?

The lighting goes back to normal when you reach the lobby after the prologue.

It should be related to Bloom, at least partially. Same issue exists in GTA V, and also only indoors.

Just because the issue looks similar on the surface doesn't mean at all that they are related. Theorizing about that really only makes sense if you have actual data backing that up.

My apologies.

I tried some small games and demos from cryengine forum and unable to reproduce this issue.
Also i recorded some interesting video with this issue: https://youtu.be/pDaye_uh2rc
I can make an apitrace of the moment when someone switch off the lights in that room. Do you need it?

Is this likely to be the same issue as Wreckfest has? Looks fine except for areas in shadow which are almost jet-black.

Different games, different engines, different issues. I'm aware of the Wreckfest problem though and I do have an apitrace to reproduce it.

Seems to be working fine now.

Should indeed be working, this seems to have been the same issue that prevented Far Cry 5 from working.


Edge fails to play 2nd period of presentation

Have you read the FAQ and checked for duplicate issues: yes
What version of Shaka Player are you using: 2.2.5-debug
Can you reproduce the issue with our latest release version: unknown, used demo app
Can you reproduce the issue with the latest code from master: unknown, used demo app
Are you using the demo app or your own custom app: demo app
If custom app, can you reproduce the issue using our demo app: N/A
What browser and OS are you using:
Windows 10 1709
Edge 40
What are the manifest and license server URIs: sent privately
What did you do?
Start playback and play over the period change at the 3 minute mark.
What did you expect to happen?
Playback continues into 2nd period.
What actually happened?
Playback stops with:
(video:6) failed fetch and append: code=3015
streaming_engine.js (1377,7)

Player error shaka.util.Error {
  "severity": 2,
  "category": 3,
  "code": 3015,
  "data": [
    {}
  ],
  "handled": false,
  "message": "Shaka Error MEDIA.MEDIA_SOURCE_OPERATION_THREW (InvalidAccessError)",
  "stack": "Error: Shaka Error MEDIA.MEDIA_SOURCE_OPERATION_THREW (InvalidAccessError)\n   at shaka.util.Error (https://shaka-player-demo.appspot.com/lib/util/error.js:72:7)\n   at shaka.media.MediaSourceEngine.prototype.enqueueOperation_ (https://shaka-player-demo.appspot.com/lib/media/media_source_engine.js:772:9)\n   at shaka.media.MediaSourceEngine.prototype.remove (https://shaka-player-demo.appspot.com/lib/media/media_source_engine.js:450:3)\n   at shaka.media.StreamingEngine.prototype.evict_ (https://shaka-player-demo.appspot.com/lib/media/streaming_engine.js:1671:3)\n   at shaka.media.StreamingEngine.prototype.append_ (https://shaka-player-demo.appspot.com/lib/media/streaming_engine.js:1561:3)\n   at Anonymous function (https://shaka-player-demo.appspot.com/lib/media/streaming_engine.js:1332:5)"
}
main.js (550,3)
   "Player error"
   {
      [functions]: ,
      __proto__: { },
      category: 3,
      code: 3015,
      data: [ ],
      handled: false,
      message: "Shaka Error MEDIA.MEDIA_SOURCE_OPERATION_THREW (InvalidAccessError)",
      severity: 2,
      stack: "Error: Shaka Error MEDIA.MEDIA_SOURCE_OPERATION_THREW (InvalidAccessError)
   at shaka.util.Error (https://shaka-player-demo.appspot.com/lib/util/error.js:72:7)
   at shaka.media.MediaSourceEngine.prototype.enqueueOperation_ (https://shaka-player-demo.appspot.com/lib/media/media_source_engine.js:772:9)
   at shaka.media.MediaSourceEngine.prototype.remove (https://shaka-player-demo.appspot.com/lib/media/media_source_engine.js:450:3)
   at shaka.media.StreamingEngine.prototype.evict_ (https://shaka-player-demo.appspot.com/lib/media/streaming_engine.js:1671:3)
   at shaka.media.StreamingEngine.prototype.append_ (https://shaka-player-demo.appspot.com/lib/media/streaming_engine.js:1561:3)
   at Anonymous function (https://shaka-player-demo.appspot.com/lib/media/streaming_engine.js:1332:5)"
   }

Chrome 62/64 is unable to start playback of this video due to https://github.com/google/shaka-player/issues/1108
Firefox successfully starts 2nd period, though with some glitching as described in https://github.com/google/shaka-player/issues/1109

Using the content you sent in #1108, with the same Chrome version and flags that allowed it to play back, I see that the content fails to play into the second period. This is due to the presentationTimeOffset field in your second Period, which, based on my analysis, should be zero.
The media timestamps in the mp4 segmenst in period 2 start at DTS 0, so there is no need for a presentationTimeOffset in the second period. The effect of presentationTimeOffset (PTO) is this:
presentation time in MediaSource buffer = media timestamp + period start time - PTO
Since the media timestamps start at 0, PTO should also be 0 to align the content to the start of the period.

Thank you for investigating!
I confirm your finding that there is something fishy with presentationTimeOffset happening in this content. After adjusting the timing on the production side to reflect reality - there should be a small offset here but not the huge value actually present in the content - this issue no longer occurs. There are still some oddities but I will file separate issues for the issues I see with the fixed (presumably) content.


[ODB] How to download reference attachment at email

Hi all,
I created a mail and enclosed a reference attachment.
by using graph API, I could get source url like:
https://synologydst-my.sharepoint.com/:u:/g/personal/joyceb_synologydst_onmicrosoft_com/EQBS3ojp0l5JmvY1PQdY2LsBY4M0DJ41LeDIMUPSgQreYA

and then redirect to a previewer

click download, the url is:
https://synologydst-my.sharepoint.com/personal/joyceb_synologydst_onmicrosoft_com/_layouts/15/download.aspx?SourceUrl=%2Fpersonal%2Fjoyceb_synologydst_onmicrosoft_com%2FDocuments%2FRef%20attachment%2Fnormal%2FEffectiveCpp%20Ch1_item1_4%2Epdf

I want to know it is possible to download files like this by onedrive api?
Thanks,
Joe

Hi @joewutaiwan you should be able to use the URL from the mail to generate a shares request to our API.
First step is to generate the URL based shared id using the steps outlined here. You should end up with something like u!aHR0cHM6Ly9zeW5vbG9neWRzdC1teS5zaGFyZXBvaW50LmNvbS86dTovZy9wZXJzb25hbC9qb3ljZWJfc3lub2xvZ3lkc3Rfb25taWNyb3NvZnRfY29tL0VRQlMzb2pwMGw1Sm12WTFQUWRZMkxzQlk0TTBESjQxTGVESU1VUFNnUXJlWUE.
Then you can craft a request to shares like the following to get the metadata for the shared file:
https://synologydst.sharepoint.com/_api/v2.0/shares/u!id/root

And by extension, something like the following will get you the content:
https://synologydst.sharepoint.com/_api/v2.0/shares/u!id/root/content

hi @ificator ,
Yes, it works, but when I get shared file which located another domain
like

https://synologyqc-my.sharepoint.com/:w:/g/personal/synoqc_synologyqc_onmicrosoft_com/EckIfs3Ks1lOoMnoiGXFNq4BLrpeu0WUcjp-N3ePOlB2eQ

would not work and returns
400
{
    "error": {
        "code": "invalidRequest",
        "message": "The site in the encoded share URI is invalid."
    }
}

Is it possible to get crossed domain shared file?
Thanks!

Throwing this one of the fence now - @kevklam can you answer @joewutaiwan's question?

hi @kevklam
Is any update here?
Thanks!

Any progress on this? This still appears to be an issue.
Thank you!

In the case where you're not going through Graph I'd probably just pull the domain from the sharing link and use that for the base, so assuming we want to access:
https://synologyqc-my.sharepoint.com/:w:/g/personal/synoqc_synologyqc_onmicrosoft_com/EckIfs3Ks1lOoMnoiGXFNq4BLrpeu0WUcjp-N3ePOlB2eQ

Get the hostname from the url, create the encoded id (i'll just call it u!id again), and merge them like:
https://synologyqc-my.sharepoint.com/_api/v2.0/shares/u!id/root/content

I generated the encoded id (u!id) as defined in the Graph API documentation. Using the URL you provided as an example I did it as follows
string base64Value = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("https://synologyqc-my.sharepoint.com/:w:/g/personal/synoqc_synologyqc_onmicrosoft_com/EckIfs3Ks1lOoMnoiGXFNq4BLrpeu0WUcjp-N3ePOlB2eQ"));
string encodedUrl = "u!" + base64Value.TrimEnd('=').Replace('/', '_').Replace('+', '-');

I then passed that with a GET request to the endpoint as suggested. I receive in response the following:
{"error":{"innerError":{"code":"invalidSignature"},"code":"unauthenticated","message":"Token contains invalid signature."}}
I've tried invaliding the auth token and I receive a different error message in response. This appears to be related to the share token. Am I doing something wrong?

Your id looks fine.
What kind of URL did you encode? Was it one that looked like our example, or was it one that had a tempauth query string parameter?
If you grab the SPRequestGuid and Date headers from the failure response I can take a peek and see if there are more details as to what's going on.

I used the c# HttpUtility URLEncode. I tried replacing +'s with %20 but fortunately there were none in the token.
The URL I encoded took the form

https://ourportal.sharepoint.com/:f:/g/Product_Dev/GUID?e=Characters\

The SPRequestGuid is a87ef19e-10b4-9000-3599-f0b255a19fb9
The Date is Thu, 18 Jul 2019 15:40:13 GMT
Thank you for your help

Any luck with this issue? I've tried to persue this though the Azure support system and the support with my MSDN account... this is the last act of a desperate man!

Hi @gmarland - are you calling Graph or hitting SharePoint directly? From the logs it looks like you're hitting SharePoint directly, but providing an auth token that was obtained for Graph. If you want to hit us directly you'll need to get a token specifically for SharePoint.

I was attempting to read the share using the Microsoft Graph API OAuth Token, but I guess it makes sense that it doesnt work with the Sharepoint API. Are there any plans to make external shares available through the Micrsoft Graph API? It feels like something most people would want to do.

same question,need more information

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.


ClusterMesh HA

This adds support for running clustermesh-apiserver deployments with multiple replicas for high availability.
Each clustermesh-apiserver pod runs its own etcd cluster. Depending on configuration, either the Cilium Agent or KVStoreMesh instance watches etcd in a remote cluster. All responses from the remote etcd cluster are intercepted and the header is inspected to retrieve the etcd cluster ID. If a failover event occurs and the cluster ID has changed, the remote connection is restarted to ensure that no events are missed and that no invalid data is retained. See individual commit messages for additional details.
Add support for deploying clustermesh-apiserver with multiple replicas for high availability.

/test

/test

/test

/test

/test

/test

/ci-clustermesh

/test

TIL that comments in a multi-line string in bash are tricky

TIL that comments in a multi-line command in bash are tricky

Yep, I typically just add them above the entire command, to avoid these kinds of problems.


Add MIT License

We should add a license to this repo so it's clear it's open source---just let me know if you'd prefer a different license!

Thanks!


"Program header too large" on FreeBSD

Julia can't dlopen the FreeBSD binaries built here, which causes Pkg.build("EzXML") to fail on FreeBSD. Running ldd on the shared library claims that the program header is too large, which is something I've encountered in the past when using patchelf on FreeBSD.
 I'll take a look when I have time but the priority is not so high to me (I've never used FreeBSD).

Yeah no worries. I'm not certain there's really anything that can be done within XML2Builder; it might be something that has to be addressed in patchelf itself. To quote @staticfloat,

FreeBSD has decided that the program header has to fit within a single page, so when patchelf does its patching, it doesn't honor that and FreeBSD refuses to load the image
I'm not sure how to get around this without fixing patchelf to not do that; but that could be hard/impossible in some cases without straight-up relinking the whole thing
It might help if FreeBSD had something similar to OSX's headerpad_max_install_names
E.g. if any binary created had a program header prepadded to the maximum size; then patchelf might not need to move the program header around as much

See https://github.com/NixOS/patchelf/issues/153

I am trying to get EzXML.jl or LightXML.jl to work on FreeBSD which uses the binaries built from this package.  When installing EzXML.jl I get the following error message:
❯ julia --project=.
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0-rc2.0 (2019-07-08)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(try2) pkg> add EzXML
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/scratch/try2/Project.toml`
  [8f5d6c58] + EzXML v0.9.3
  Updating `~/scratch/try2/Manifest.toml`
  [b99e7846] + BinaryProvider v0.5.6
  [8f5d6c58] + EzXML v0.9.3
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [de0858da] + Printf
  [ea8e919c] + SHA
  [4ec0a83e] + Unicode

(try2) pkg> build
  Building EzXML → `~/.julia/packages/EzXML/QlX60/deps/build.log`
┌ Error: Error building `EzXML`:
│ ERROR: LoadError: LibraryProduct(nothing, ["libxml2"], :libxml2, "Prefix(/home/lucas/.julia/packages/EzXML/QlX60/deps/usr)") is not satisfied, cannot generate deps.jl!
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] #write_deps_file#152(::Bool, ::typeof(write_deps_file), ::String, ::Array{LibraryProduct,1}) at /home/lucas/.julia/packages/BinaryProvider/TcAwt/src/Products.jl:414
│  [3] (::getfield(BinaryProvider, Symbol("#kw##write_deps_file")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(write_deps_file), ::String, ::Array{LibraryProduct,1}) at ./none:0
│  [4] top-level scope at /home/lucas/.julia/packages/EzXML/QlX60/deps/build.jl:48
│  [5] include at ./boot.jl:328 [inlined]
│  [6] include_relative(::Module, ::String) at ./loading.jl:1094
│  [7] include(::Module, ::String) at ./Base.jl:31
│  [8] include(::String) at ./client.jl:431
│  [9] top-level scope at none:5
│ in expression starting at /home/lucas/.julia/packages/EzXML/QlX60/deps/build.jl:48
└ @ Pkg.Operations /usr/home/julia/buildbot/worker/package_freebsd64/build/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647

So I manually downloaded the binaries to see if I am having the above problem.  I am getting something a little different.  The command ldd reports different library linking depending what the current directory is.  From the shell I see
$ fetch https://github.com/bicycle1885/XML2Builder/releases/download/v1.0.2/XML2Builder.v2.9.9.x86_64-unknown-freebsd11.1.tar.gz
$ tar xzvf XML2Builder.v2.9.9.x86_64-unknown-freebsd11.1.tar.gz
$ ldd ./lib/libxml2.so
./lib/libxml2.so:
        libthr.so.3 => /lib/libthr.so.3 (0x80140b000)
        libz.so.1 => not found (0)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x801633000)
        libm.so.5 => /lib/libm.so.5 (0x80185c000)
        libc.so.7 => /lib/libc.so.7 (0x800823000)

however
$ cd lib
$ ldd libxml2.so
libxml2.so:
        libz.so.6 => /lib/libz.so.6 (0x801396000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x8015ae000)
        libm.so.5 => /lib/libm.so.5 (0x8017d7000)
        libc.so.7 => /lib/libc.so.7 (0x800823000)
        libthr.so.3 => /lib/libthr.so.3 (0x801a04000)

I am not sure what is going on.  But could this be causing the failure of EzXML.jl to build?

That seems to be a different issue: the XML2 builder does not bundle its zlib dependency properly.

Yeah, I think this is a known problem. I think this will be fixed in BinaryBuilder.jl/BinaryProvider.jl side.