fix MyData invalid extension issue

When an invalid file was in the image folder there was a mismatch between images and labels. This is
painful when training has already started.
Then an index out of bounds occured. This change compares image and label count. Additionally valid extensions are checked for the image data.

Accepted! Thanks. It helps avoid unexpected files in im folders.


Fixing launch files ⛏: Fix typo and changes when launching newest MoveIt on rolling.

Update wrong description for “dashboard” parameter.
MoveIt now uses proper node parameters, so parameter substitution is possible/needed instead of manual YAML parsing. Without this change, I get the following error because parameter type is interpreted wrongly.

Thanks for the commit!
I am using Galactic and with #268 the Robotmodel loads, but after that i get the [Info]
'No Kinematics. Please load kinematics.yaml'
Had someone experienced the same on Galactic or is there no relation to this commit?

Thanks for the commit! I am using Galactic and with #268 the Robotmodel loads, but after that i get the [Info] 'No Kinematics. Please load kinematics.yaml'
Had someone experienced the same on Galactic or is there no relation to this commit?

Does main works for you?

Does main work for you?

Unfortunately, no. The same error occurred as you mentioned above.
I will open a new issue tomorrow with some more informations, as this could likewise related to something else.
Thanks for you Support!

PR is replaced by #278. The issue has to be investigated more. This is rather a MoveIt2 issue with loading parameters.


SSL Mismatch

I have a corporate proxy server which performs a MITM on SSL connections, including the one used by pipreqs.  When using pip, I have to use --trusted-host on the command-line.  There does not appear to be a way to do this in pipreqs.  Thanks for reading.

I am also facing the same issue
requests.exceptions.SSLError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi/Flask/json (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

I'm currently developing a solution for this

I'm currently developing a solution for this
Any estimation for a solution?

I can confirm that the solution of exporting the REQUESTS_CA_BUNDLE pointing to the local certification authority works, but it would be nice to have the possibility to either pass this option directly to pipreqs, or - even better - to have pipreqs using the same network configuration (proxy, ssl options, url index) directly from pip configuration.

Same issue here. However, setting the environment variable does not solve the problem in my case.


Add Animate-on-Scroll feature

Describe the feature
"Animate-on-Scroll" feature to the first page of our website to enhance user engagement and provide a more dynamic user experience.
Type of Animation:  Implement animations that trigger as users scroll up or down on the first page.
Desired Effects:  fade-ins, slide-ups, scale effects.
Purpose and Benefits
The purpose of this feature is to make the first page more engaging and visually appealing. Animated elements that appear as users scroll can capture attention and create a more memorable experience.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a SWOC24 contributor
[X] I want to work on this issue

Assigned this issue to @Devanshe15 , kindly drop a star on this repo
HAPPY CODING !


istioctl: 1.23.2 -> 1.24.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/istio/istio/releases.
meta.description for istioctl is: Istio configuration command line utility for service operators to debug and diagnose their Istio mesh
meta.homepage for istioctl is: https://istio.io/latest/docs/reference/commands/istioctl
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.24.1 with grep in /nix/store/gyfwgilsd29jf2m96pz92i720n9wfjd0-istioctl-1.24.1
found 1.24.1 in filename of file in /nix/store/gyfwgilsd29jf2m96pz92i720n9wfjd0-istioctl-1.24.1

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

istioctl

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/gyfwgilsd29jf2m96pz92i720n9wfjd0-istioctl-1.24.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A istioctl https://github.com/r-ryantm/nixpkgs/archive/3b23ec6d6004e96e5b06b1496f8fa9c17490b239.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/3b23ec6d6004e96e5b06b1496f8fa9c17490b239#istioctl

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/gyfwgilsd29jf2m96pz92i720n9wfjd0-istioctl-1.24.1
ls -la /nix/store/gyfwgilsd29jf2m96pz92i720n9wfjd0-istioctl-1.24.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

istioctl

Maintainer pings
cc @bryanasdev000 @veehaitch for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 360566

aarch64-darwin

:white_check_mark: 1 package built:

istioctl


Alpha release 1

Thanks for sending! W

On Jul 30, 2018 at 9:48 AM,  <codecov[bot] (mailto:notifications@github.com)>  wrote:
Codecov (https://codecov.io/gh/styled-components/polished/pull/340?src=pr&el=h1)  Report

Merging  #340 (https://codecov.io/gh/styled-components/polished/pull/340?src=pr&el=desc)  into  version-2 (https://codecov.io/gh/styled-components/polished/commit/008ad4889ac383de2adae3c6aef9d547aec67e7d?src=pr&el=desc)  will  not change  coverage.
The diff coverage is  n/a.

@@ Coverage Diff @@   ## version-2 #340 +/- ##  ========================================== Coverage 99.78% 99.78% ========================================== Files 76 76 Lines 455 455 Branches 116 116 ========================================== Hits 454 454 Misses 1 1
Continue to review full report at Codecov (https://codecov.io/gh/styled-components/polished/pull/340?src=pr&el=continue).

Legend  -  Click here to learn more (https://docs.codecov.io/docs/codecov-delta)
Δ = absolute    (impact),  ø = not affected,  ? = missing data
Powered by  Codecov (https://codecov.io/gh/styled-components/polished/pull/340?src=pr&el=footer). Last update  008ad48...3248ce2 (https://codecov.io/gh/styled-components/polished/pull/340?src=pr&el=lastupdated). Read the  comment docs (https://docs.codecov.io/docs/pull-request-comments).

—
You are receiving this because you authored the thread.
Reply to this email directly,   view it on GitHub (https://github.com/styled-components/polished/pull/340#issuecomment-408792383), or   mute the thread (https://github.com/notifications/unsubscribe-auth/AAu9O_pBzsbqZjLgnlrB-Wa_z7GdIkO1ks5uLshegaJpZM4Vll8O).


[Question] What is glibc requirement for lightgbm in SynapseML ?

For solving error:
/lib64/libm.so.6: version `GLIBC_2.27' not found

As in lightgbm docs tell requirement for glibc version
For Linux users, glibc >= 2.14 is required for LightGBM <=3.3.3 and glibc >= 2.28 is required for newer versions.

However, I am having difficult finding version of lightgbm for each SynapseML version or glibc requirement.
Please show me where I can see lightgbm version for each SynapseML version, and its glibc requirement.

Has this problem been solved?

Has this problem been solved?

For the requirement of GLIBC_2.27, it have been solved by install GLIBC_2.27 into OS.
However, the question to ask for list of version -> corresponding requirement of glibc library is not found yet. The question of this issue is not answer yet.

I think the answer is 0.10.2. The clue is as follows:
Lightgbm 3.3.4 was released at Jan 5, 2023. Synapseml 0.10.2 was released at Nov 22, 2022, and the next version 0.11.0 was released at Mar 5, 2023.


fix: flip equals on handleOnNewIntent to fix crashes

After releasing an app version with this plugin I get some crashes of users:

I actually can't say what the users are doing that the Intent is null there, but with flipping the equals comparison the problem shouldn't appear anymore

Sounds like 'intent.getAction()' is null? Well, it doesnt hurt to flip it, so lets do it.

Oh yeah sure that is what I ment 😄
When the intent is null the flipping wouldn't help anyway.
Thanks for the fast merge!


board-n-pieces:0.3.0

I am submitting

[ ] a new package
[x] an update for a package

Changelog:

Detect moves that put the king in check as illegal, improving SAN support.

Add stroke argument to the board function.

Rename {highlighted-,}{white,black}-square-color arguments to the board function to {highlighted-,}{white,black}-square-fill.

Thank you!


Test generation flow improvements

Compile tests on demand (or accept precompiled binaries)
Generate checkpoints and run tests in 1 command
Implement all regressions and regress lists
Revamp CI to use these regress lists
Support explicit overriding of base results directory (useful for running ASIC corners)
...?

In sw_dev


[BUG] "Stuck" button is slim for some translations

Example:

EN
CZ

Probably solution: Text [Button], like
Stuck initialization here? [Skip]

v2.0.0-beta2
Still...

Ah, they are the same. I didn't check and thought #991 was in the beta issue list.


404 Not Found - vm.feed.getPicture()

When jangouts load, it displays the following error in the javascript console
"NetworkError: 404 Not Found - https://jangouts.suse.de/%7B%7Bvm.feed.getPicture()%7D%7D"

And sometimes the browser icon keeps spinning because it's actually trying to reach that location with no success.
Obviously, the URL does not exists and such http request should not happen.

This issue should be fixed by #175.


[FR] Allow plugins to pull in configuration from pyproject.toml

Originally this issue was discussed in #2671.
Plugin writers would like a way of pulling in configuration/metadata from pyproject.toml.
Currently the finalize_distribution_options hook runs before parse_config_files, which makes integration difficult.
@RonnyPfannschmidt, please correct me if I understood something wrong.
It would be nice if we can clarify what would be the requirements of this feature.

@RonnyPfannschmidt, I am thinking along the lines of:
class BuildHooks:
   """
   Build hooks can be added via the `setuptools.build_hooks` entry-point, and they should implement
   this interface.

   All public methods are reserved for future setuptools use (despite just a few hooks
   being currently defined). All public methods specified in the interface are optional,
   but when defined, they **MUST** comply with the given signature.
   """

   def __init__(self, dist: Distribution):
       """Plugins are initialized  inside ``finalize_options``
       (just like the ``finalize_distribution_option`` entry-point runs nowadays).

       Plugin writers are encouraged to save the ``dist`` argument in a private property to
       use it in successive hooks.
       """

   def before_config_hook(self, project_metadata: dict, plugin_config: Any):
       """
       Setuptools will pass ``plugin_config`` with the value of the first of the following
       configurations defined in ``pyproject.toml``:
       ``tool.setuptools.plugin.{{entry_point_name}}`` or ``tool.{{entry_point_name}}``.
       If the configuration is not present, the value of ``config`` will be ``None``.
       If desired, the hook implementation is responsible for validating the ``plugin_config``
       value.

       ``project_metadata`` corresponds to the raw metadata in the ``[project]`` table
       **if** provided in ``pyproject.toml``.

       Plugin writers can take advantage of ``dist`` (passed on the initialization method)
       to decide if they want to manipulate ``dist.cmdclass`` and/or add sub commands to
       ``setuptools.command.build.build.sub_commands`` based on the value of ``plugin_config``.
       It is recommended that plugins refrain from altering the build behaviour if
       ``plugin_config`` is ``None`` (i.e. users did not opt-in).

       Plugin writers can also modify ``dist`` properties, but they must be aware that
       setuptools might modify these properties again after processing the ``pyproject.toml``.
       """

   def after_config_hook(self):
       """
       Plugin writers can use this method when they need to access attributes
       in ``dist`` after it being fully configured, but they **SHOULD** not
       modify any attribute related to project metadata
       (otherwise it could cause a direct violation of the ``dynamic``
       aspect of PEP 621 and PEP 643).
       """

   def before_commands_hook(self):
       """Setuptools will run this hook immediatelly before running the first command."""

Standards for Metadata providing hooks would help better

Do you have a suggestion @RonnyPfannschmidt (e.g. a signature)?

Not yet, but if both setuptools and hatch where able to use the same api fit that it would be great
I already have the hacks in place and I'm not keen on supporting many versions of setuptools with different api sets

I cannot speak for everyone in the setuptools project, but I am more than open to discuss any API/interoperability (as long as it does not involve an overhaul on the setuptools internal design -- ideally we are looking for something that can be integrated easily into the existing flow).

@abravalheri -- would part of fixing this ticket involve moving finalize_distribution_options to after parse_config_files()?
Or would plugin authors need to hook into new entry points to run after parse_config_files()?
Would it make sense to split this ticket into two: moving finalize_distribution_options to after parse_config_files and as a separate effort, have an API for plugins to read configuration from the toml?

Thanks @abravalheri .
As someone who has written a plugin, I can tell you that my preference would be for "finalize..." to be called after the parsing of the toml file, because I assume that anything I modify in "finalize..." does not change any more. However, if there is a new hook, I can modify my plugin to use that. Either way, the lack of any hook that is after the parsing of the toml file is limiting the abilities of a plugin. What are the next steps? I can help circulating an informal poll, but we will need to decide how long we wait for responses, and how the decision is made, before starting to write the poll: in my experience, these decisions influence the design of the poll.
Let me know if I can help in any way, or if there is any further feedback you need.

I think that there should be a way to specify mode of invocation of a plugin. There should be at least 2 modes:
a. a plugin is always invoked
b. a plugin is invoked only if pyproject.toml has a section for it. If pyproject.toml doesn't have a section, plugin's package must not be imported at all.
It is proposed to provide the possibility to specify this it via "entry_points metadata" - JSON (or maybe any other serialization format like JSON) appended to the end of entry point name after a delimiter (currently in my packages I use @).

In #2031 it was also proposed to determine which data to provide via the entry point function signature using the annotations and arguments names.

Hi @KOLANICH thank you very much for the comment and references to the previous PRs/issues. I tried to go over them and get a gist of the proposal, but I confess that I might not have understood them 100%. So, please be patient with me while I try to understand 😅.
Approaches (a) and (b) sound reasonable (although we can also argue that as long as we have a way of providing the configuration from pyproject.toml to the plugin, the plugin can also do an early return if the configuration is empty).

It is proposed to provide the possibility to specify this it via "entry_points metadata" - JSON (or maybe any other serialization format like JSON) appended to the end of entry point name after a delimiter (currently in my packages I use @).

What are the pros/cons of providing metadata via entry-point specification vs embedding it into the design of the Python API? For example, we could require the entry-point to be a reference to a callable object that also provides a set of attributes that contain the metadata:
class FinalizeDistributionHook(Protocol):
     # Metadata as attr
     # We can use `getattr(entry_point, attr, None)` for backward compatibility
     opt_in: Optional[bool] = True
     delayed_execution: Optional[bool] = True

     # Config ingestion
     # We can use `getattr(entry_point, 'configure', lambda _: None)` for backward compatibility
     def configure(self, options: dict | None) -> None: ...

     # Actual implementation
     def __call__(self, dist: Distribution) -> None: ...

I believe that it would be important to discuss changes in the entry-point specification in the PyPA level, since PyPA now holds a spec on entry-point: https://packaging.python.org/en/latest/specifications/entry-points/[^1]
[^1]: Implementing everything via designing the Python API has the advantage of not requiring a PyPA discussion, which may need some time to reach consensus.

Hi @moshez, I am terribly sorry that this slipped under my radar.

What are the next steps? I can help circulating an informal poll, but we will need to decide how long we wait for responses, and how the decision is made, before starting to write the poll: in my experience, these decisions influence the design of the poll.
Let me know if I can help in any way, or if there is any further feedback you need.

I think that we need someone to champion a design (or a small set of designs that can be voted/commented by the community in a pool as you suggested). One important part of this work is to explain which problem(s) the plugin writers are trying to solve and get the "buy-in" of the other (more experienced) maintainers of setuptools.
Once we have consensus on the design and the buy-in of the other maintainers, I will be happy to support the development of the feature as much as I can.

Hi @abravalheri , so re step 1, explaining the problem that plugin writers can face, I tried to do a PoC in https://github.com/moshez/onedotoh/ -- this is a "parody" of a setuptools plugin: it just overrides the version to always be "1.0.0".
I have two kinds of projects in the repo: one a "classic", setuptools_example, and the other, a modern version, pyproject_example.
I checked in a script ineffective-plugin.sh, that builds both projects. The setuptools example correctly gets the version from the plugin, "1.0.0". However, the pyproject example, even though it opts into the onedotoh version, gets "0.1.2". This happens because pyproject.toml settings are read after the plugin has been called.
There are a number of possible designs to fix this, of course -- but I first want to make sure that the problem makes sense, and that you agree that it does need a solution. If there is a better way that I can implement "onedotoh" plugin to override the version of pyproject_example that I am not seeing, I'm happy to be educated -- and I'll be happy to write a patch for the setuptools plugins documentation. However, after reading carefully through the setuptools code, I don't see a better hook.

My understanding of PEP 621 was that the metadata in the pyproject.toml always took precedent and that your build wrapper tool should crash if it sees a .whl that doesn't match the metadata
Eg pip or python -m build should reject the whl if it saw your version set to 0.1 in the pyproject.toml and 1 in the .whl
But it looks like that's not happening here because setuptools is fixing the .whl metadata after "your plugin broke it"

But it looks like that's not happening here because setuptools is silently fixing the .whl metadata after "your plugin broke it"

I actually think in this scenario it would be better if setuptools crashed rather than silently disobey a plugin or violate PEP 621. Out of interest what does build/pip do if a build backend does violate PEP621 and are there any sdists on pypi that do this?

I actually think in this scenario it would be better if setuptools crashed rather than silently disobey a plugin or violate PEP 621.

Given the existing circumstances (1. plugins might run even if the users don't opt in for using them; 2. the user is, after all, explicitly telling setuptools to use the given version), the behaviour may make sense as it is... I am happy to review a PR if someone is interested in adding this extra check, but one of the things that I would be careful is to avoid growing even more the complexity of the implementation (already too complex).

Out of interest what does build/pip do if a build backend does violate PEP621 and are there any sdists on pypi that do this?

Not entirely sure... Based on the previous discussion in https://github.com/pypa/setuptools/issues/3195, I think pip does not implement any strong validation of this part of the PEP (at least not for pip wheel).

although we can also argue that as long as we have a way of providing the configuration from pyproject.toml to the plugin, the plugin can also do an early return if the configuration is empty

The pros of entry_points metadata is that they don't involve code being executed. Soketikes it is highly undesireable even to import a package if it is not actually needed:

an importee can import large dependencies
an importee can do costly initialization
an importee can have a viral license, like GPL, so importing it into non-GPL modules can be illegal
importees can be alternatives to each other, via metadata we can specify priorities and load only the most prioritized entry point instead of loading each one

For example my setuptools plugin on import discovers own backends via entry point mechanism and one bavkend discovers some CLI tools and another one (GPL-licensed, for most of packages it is not loaded, in its entry point metadata it is written it is GPLed, so for the most of packages it is not even imported) loads whole JVM (using awesome JPype lib) and some jars into it. All of this is slow and gives a delay of a second. And if anything gies wrong during plugin initialization, it breaks the build process completely.
The most of packages don't depend on the setuptools plugin and the lib used by it, so they shouldn't suffer from the slowdown and get the risk of their build process disrupted.

Thank you very much @KOLANICH .
I agree that having static metadata in entry-point might offer a series of advantages.
However, pursuing this approach would require to build consensus in the community and quite possibly a change in the entry-points spec. That is why the API- oriented approach might be the path of least resistence.


refactor(routing): split route construction

What
Split route construction from matching. As discussed in #626 , it would be nice if the routing construction is concentrated in the route discovery and clearly separated from the route matching. This means that all logic is moved away from the RouteConfig and it is used just as a storage container.
Benchmarks

Dynamic route matching remained roughtly the same.
Route adding has remained the same.
Serialization of the route config has become significantly faster (432.739μs to 364.133μs, small in absolute value, but relative to each other is an improvement of 15% ).
Added a benchmark for the RouteConfig construction which includes the whole regex creation

Main
+--------------------------+--------------------+--------------------+------+-----+----------+-----------+--------+
| benchmark                | subject            | set                | revs | its | mem_peak | mode      | rstdev |
+--------------------------+--------------------+--------------------+------+-----+----------+-----------+--------+
| RouteConfigBench         | benchRoutingSetup  |                    | 1000 | 5   | 2.113mb  | 1.100ms   | ±0.70% |
| RouteConfigBench         | benchSerialization |                    | 1000 | 5   | 2.947mb  | 432.739μs | ±0.57% |
| GenericRouteMatcherBench | benchMatch         | Dynamic            | 1000 | 5   | 2.552mb  | 4.921μs   | ±1.36% |
| GenericRouteMatcherBench | benchMatch         | Non existing long  | 1000 | 5   | 2.552mb  | 5.308μs   | ±1.01% |
| GenericRouteMatcherBench | benchMatch         | Non existing short | 1000 | 5   | 2.552mb  | 3.070μs   | ±1.50% |
| GenericRouteMatcherBench | benchMatch         | Static route       | 1000 | 5   | 2.552mb  | 2.881μs   | ±1.44% |
+--------------------------+--------------------+--------------------+------+-----+----------+-----------+--------+

This branch
+-----------------------------+-----------------------------------------+--------------------+------+-----+----------+-----------+--------+
| RouteConfigBench            | benchSerialization                      |                    | 1000 | 5   | 2.721mb  | 364.133μs | ±0.80% |
| GenericRouteMatcherBench    | benchMatch                              | Dynamic            | 1000 | 5   | 2.434mb  | 4.982μs   | ±2.19% |
| GenericRouteMatcherBench    | benchMatch                              | Non existing long  | 1000 | 5   | 2.434mb  | 5.324μs   | ±2.52% |
| GenericRouteMatcherBench    | benchMatch                              | Non existing short | 1000 | 5   | 2.434mb  | 3.085μs   | ±1.07% |
| GenericRouteMatcherBench    | benchMatch                              | Static route       | 1000 | 5   | 2.434mb  | 3.049μs   | ±1.46% |
| RouteConfigConstructorBench | benchRouteConfigConstructionToConfig    |                    | 1000 | 5   | 2.131mb  | 65.156μs  | ±0.30% |
| RouteConfigConstructorBench | benchRouteConfigConstructionRouteAdding |                    | 1000 | 5   | 2.101mb  | 1.097ms   | ±1.12% |
+-----------------------------+-----------------------------------------+--------------------+------+-----+----------+-----------+--------+

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

42 of 42 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 82.618%

Totals

Change from base Build<PHONE_NUMBER>9:
0.02%

Covered Lines:
7139

Relevant Lines:
8641

💛  - Coveralls

Let's go 🎉


Add a specific picture from iNaturalist

First of all, great tool!
I am looking for ways to upload a single picture from iNaturalist given its observation ID.
I'll try and play around with the code to do something like that, but my js is way too rusty.
An example of what I'd like to do is to upload exactly this pic: https://www.inaturalist.org/observations/98077464 in an easy way,
If someone else has the skill/time to do it, it would be super useful!

@lubianat - While there's no UI for it currently, you can cheat and use:
https://commons.wikimedia.org/wiki/Category:Mechanitis?inatid=98077464&inatquality=needs_id,research

thanks @kaldari ! I've been playing with the API in python to do something like that, by the way: https://github.com/lubianat/pynaturalist2commons


Error Handling in JavaScript

Title
Error Handling in JavaScript
Brief
Write an article about how you can handle errors in a JavaScript/TypeScript application.
Guidelines
Content Preparation:

Document Format: Please use Google Docs for your blog post. Please make sure we have view permission to your document.
Include relevant images, gifs, or screenshots to enhance your blog's visual appeal.
Share personal experiences or insights where applicable to give your blog a unique touch.
Consider adding code samples, examples, or practical demonstrations to illustrate concepts.
We encourage you to use AI for research and reference purposes. However, please submit original, human-written content.

Plagiarism Check:
Ensure your content is original by checking it for plagiarism. You can use a plagiarism checker like QUILBOT and share a screenshot showing the plagiarism percentage (ideally 25% max).
Collaboration & Avoiding Duplicates:
Claiming an Issue: If you'd like to write about a specific blog post topic, comment on the issue with a brief outline of your planned table of contents. This helps prevent two contributors from working on similar content.
Confirmation Checklist:
[ ]  You accept our Code of Conduct.
[ ]  My blog post is written in Google Docs and you have view permission.
[ ]  I've included relevant visuals and examples to enhance understanding.
[ ]  My content is original and AI-free. I've run a plagiarism check and can share the results.
[ ]  I've commented on the issue with a table of contents outline (if applicable).
Once you've completed these steps, check the boxes and feel free to submit your blog post! We appreciate your contribution to the Treblle community.

I would like to contribute to this article.

@ypatoriya do you have any updates on it?

Sorry for the delay in response.
Here's my blog.

[x] You accept our Code of Conduct.
[x] My blog post is written in Google Docs and you have view permission.
[x] I've included relevant visuals and examples to enhance understanding.
[ ] My content is original and AI-free. I've run a plagiarism check and can share the results. (No matter how hard I try I am not getting 100% original content from plagiarism checker even though it is written by me.)
[x] I've commented on the issue with a table of contents outline (if applicable).

Table of Contents

Understanding Errors in JavaScript/TypeScript
The Try-Catch Mechanism
Leveraging Error Objects
Graceful Degradation and Default Values
Asynchronous Error Handling with Async/Await
Best Practices and Advanced Strategies

Conclusion

Google docs link: https://docs.google.com/document/d/1X4NKtdKrJw1rhPRs576TzhtacF6PhsM4H3uL1h4mLog/edit?usp=sharing


Correcting an incorrect review

We currently don't allow a mechanism to change the review made by another user:
eg This change of a new city node should have been marked bad https://osmcha.mapbox.com/changesets/48828299/ but was marked as good
How should we handle such cases?

@planemad The backend implementation says only the user who created it in first place can clear it or a staff account is needed.
cc @willemarcel

@batpad @manoharuss

Upgrading data team users to staff accounts is on my to-do list for tomorrow.
Then we can override reviews. @kepta will the front-end just work or will it require changes?

@batpad @planemad I just want to be clear with the intent of this issue.
which one is it.
@planemad from Mapbox can't change the mark review and wants the entire team to be staff.
or
@planemad as an OSM user is disgruntled with a changeset and wants to override verify status.

We would want any experienced user to have the power to amend a review if it is incorrect, except their own.
Since we have no real mechanism to evaluate an experienced user (Maybe the HDYC verified badge?), lets start with the Mapbox team who are the largest power users of the tool.

@planemad @batpad @willemarcel Maybe the backend have a credibility score attached to every osm user, which could  be a product of her osmcha changeset marked good/bad + edit count + age + other sources like HDYC.

Any credibility system will be highly debated and might get trapped by bikeshedding if not well researched and optimized, HDYC already faces this problem. Lets have a simple solution that we can roll out within a day and discuss scoring separately.

The backend implementation says only the user who created it in first place can clear it or a staff account is needed.

Right now, the API doesn't allow a staff user to override the changeset review. The staff users have the power to change the tags that another user added to a changeset.
If you want to allow the staff users to uncheck a changeset, I can change it in short time.

I believe it is solved with the change in the API that allows staff users to uncheck any changeset https://github.com/willemarcel/osmcha-django/commit/fb751cc85986919c03caab074606028cc81861a9

Fixed in https://github.com/willemarcel/osmcha-django/commit/fb751cc85986919c03caab074606028cc81861a9

@kepta did you mean to close this issue? It looks to me like the original discussion is still unresolved: how should the workflow be to uncheck a validation?
As part of the HOT project in Florida regarding Hurricane Irma we spotted vandalism done by CoastalGenius. Some of their changesets have been validated in osmcha but reverted in osm.
Maybe add a "request uncheck of validation" button or something like that, to get in contact with the person who validated or with the staff?


Build failure: pkgsCross.gnu64.stdenv.cc

Steps To Reproduce
Steps to reproduce the behavior:

build pkgsCross.gnu64.stdenv.cc on x86_64-linux

Build log
for file in $parts; do					\
  rm -f /nix/store/1136y5fjsg2bx45kzq09y17l8csw4y8l-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/$file;		\
  /nix/store/dm0wz420s9n1nbp3731y9iqya0zswyy8-coreutils-9.5/bin/install -c -m 644 $file /nix/store/1136y5fjsg2bx45kzq09y17l8csw4y8l-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/;	\
  case $file in 					\
    *.a)						\
      x86_64-unknown-linux-gnu-ranlib ../.././gcc/$file ;;	\
  esac;							\
done
/nix/store/3c54hwp1zji0h8yl66860cp8zp2vsrzv-bash-5.2p26/bin/bash ../../../gcc-13.2.0/libgcc/../mkinstalldirs /nix/store/1136y5fjsg2bx45kzq09y17l8csw4y8l-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include
/nix/store/dm0wz420s9n1nbp3731y9iqya0zswyy8-coreutils-9.5/bin/install -c -m 644 unwind.h /nix/store/1136y5fjsg2bx45kzq09y17l8csw4y8l-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include
/nix/store/3c54hwp1zji0h8yl66860cp8zp2vsrzv-bash-5.2p26/bin/bash ../../../gcc-13.2.0/libgcc/../mkinstalldirs /nix/store/1136y5fjsg2bx45kzq09y17l8csw4y8l-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include
/nix/store/dm0wz420s9n1nbp3731y9iqya0zswyy8-coreutils-9.5/bin/install -c -m 644 ../../../gcc-13.2.0/libgcc/gcov.h /nix/store/1136y5fjsg2bx45kzq09y17l8csw4y8l-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include
make[1]: Leaving directory '/build/build/x86_64-unknown-linux-gnu/libgcc'
/nix/store/00j6q7yfcwf5ic46rz9amrfgv5sjrnhh-stdenv-linux/setup: line 150: type: install_name_tool: not found
@nix { "action": "setPhase", "phase": "preFixupLibGccPhase" }
Running phase: preFixupLibGccPhase
mv: cannot stat '/nix/store/pkynkfrc2ndwy920ngbggjhdhmngq5zi-x86_64-unknown-linux-gnu-nolibc-gcc-13.2.0-lib/x86_64-unknown-linux-gnu/lib/libgcc_s.so': No such file or directory

Additional context
This failure occurs a few attributes down in stdenv though not exactly sure where.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"aarch64-linux"`
 - host os: `Linux 5.15.156, NixOS, 24.05 (Uakari), 24.05.20240418.bc279bb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/run/current-system/nixpkgs`

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

I don't remember.


Reproducing the results with LLaMa and TriviaQA (Figure 8)

Hi,
Thank you for the excellent paper and for providing the code! I have been trying to reproduce the results from Figure 8 of the paper using LLaMa-7B and LLaMa-13B and the TriviaQA dataset I downloaded using the command in ReadMe.
However, I get the following values:
7B:
0 docs: 50.8, 1 doc: 54.1, 2 docs: 55.9, 3 docs: 56.4
13B:
0 docs: 57.8, 1 doc: 58.8, 2 docs: 59.8, 3 docs: 60.4
Can you please provide some insights/information that explains this discrepancy?
(The numbers for 1-3 documents are similar but there is a ~3% gap for 0 documents.)

Hey Yasaman,
Thanks for reaching out!
I'm not sure what causes this discrepancy - two directions to look at:

Are results for NQ the same as reported?
Did you use LLaMA 2? THe results in the paper are for LLaMA 1.

On Tue, Jul 23, 2024 at 10:55 PM Yasaman Jafari @.***>
wrote:

Hi,
Thank you for the excellent paper and for providing the code! I have been
trying to reproduce the results from Figure 8 of the paper using LLaMa-7B
and LLaMa-13B and the TriviaQA dataset I downloaded using the command in
ReadMe.
However, I get the following values:
7B:
0 docs: 50.8, 1 doc: 54.1, 2 docs: 55.9, 3 docs: 56.4
13B:
0 docs: 57.8, 1 doc: 58.8, 2 docs: 59.8, 3 docs: 60.4
Can you please provide some insights/information that explains this
discrepancy?
(The numbers for 1-3 documents are similar but there is a ~3% gap for 0
documents.)
Screenshot.2024-07-23.at.12.29.37.PM.png (view on web)
https://github.com/user-attachments/assets/f6750b23-43ef-41cc-bf75-d5927fae8dc2
—
Reply to this email directly, view it on GitHub
https://github.com/AI21Labs/in-context-ralm/issues/12, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGNXVETSQE6NG2RF2EAD5PDZN2YK7AVCNFSM6AAAAABLLDAUPKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDMMBRGIYTAOI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thank you for your response!

The same thing happens when experimenting with the NQ dataset. The results for 1-3 documents are very similar, but there is a noticeable difference between the results for 0 documents. The results I get are as follows:

LLaMa1-7B:
0 docs: 14.6%, 1 doc: 28.4%, 2 docs: 28.6%, 3 docs: 28.1%
LLaMa1-13B:
0 docs: 18.3%, 1 doc: 30.4%, 2 docs: 30.3%, 3 docs: 30.5%

I am using LLaMa 1. Is there a specific checkpoint you are using that may explain the discrepancy?

Hi again, I just wanted to follow up on this and check if there have been any updates about this discrepancy!


dial tcp "no such host" error on a specific case

Hello,
I'm currently facing a weird issue with one specific case when using the lib to send "malformed" HTTP request. My idea is to send a request to a specific HTTP(S) server, but with a different "Host" header in the HTTP request, to test for Host header attacks. Most of the time, this works well, but I sometimes receive this issue when running the code.
go run test.go

Target server: https://foo.com
Hostname: bar.com
Error while requesting https://foo.com with bar.com
2021/10/15 11:03:52 Error: dial tcp: lookup bar.com on <IP_ADDRESS>:53: no such host
exit status 1

In this case, the hostname I want to use is not known by the DNS, but this should not be a problem. And it woks perfectly in other cases. I attached the code I use as txt (it's crappy, but it's the first time I write something in Go :)).
test.go.txt

@aroly Thanks for opening this issue. The scenario that you are describing can be done also with the standard library as you can see at the following link.
From the error code it seems like that your host, for some reason, wasn't able to resolve the ip address for the target host (foo.com). You can check the request being sent with any web server, for example https://github.com/projectdiscovery/simplehttpserver. In my case for the following snippet:
package main

import (
	"fmt"
	"log"
	"net/http"

	"github.com/projectdiscovery/rawhttp"
)

func main() {
	webserver := "http://localhost:8000"
	hostname := "bar.com"
	fmt.Println("Target server: " + webserver)
	fmt.Println("Hostname: " + hostname)
	clientOptions := rawhttp.DefaultOptions
	clientOptions.AutomaticHostHeader = false
	clientOptions.FollowRedirects = false
	client := rawhttp.NewClient(clientOptions)
	req, err := http.NewRequest("GET", webserver, nil)
	req.Method = "GET"
	req.Header.Set("Host", " "+hostname)
	req.Host = hostname
	req.Header.Set("User-Agent", " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36")
	req.Header.Set("Connection", " close")
	req.Header.Set("Accept", " */*")
	req.Proto = "HTTP/1.1"

	//fmt.Printf("%+v\n\n", req)
	resp, err := client.Do(req)

	if err != nil {
		fmt.Printf("Error while requesting %s with %s\n", webserver, hostname)
		log.Fatalf("Error: %s", err)
	}

	fmt.Printf("Status: %s, Content-Length: %d\n", resp.Status, int64(resp.ContentLength))
	fmt.Printf("\n%s / HTTP/1.1\n", req.Method)
	for name, values := range req.Header {
		// Loop over all values for the name.
		for _, value := range values {
			fmt.Printf("%s:%s\n", name, value)
		}
	}
}

I get this output (where you can see the host header being set correctly):
$ simplehttpserver -verbose
Remote Address: [::1]:50504
GET / HTTP/1.1
Host: bar.com
Connection: close
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Last-Modified: Sat, 28 Aug 2021 22:49:10 GMT


[AKS] raise InvalidArgumentValueError for azure cni + pod_cidr without overlay

Related command

az aks create -n mycluster -g myrg --network-plugin azure --pod-cidr <IP_ADDRESS>/16 - will now raise a client error and specify an error message to either use Kubenet or Azure CNI Overlay
az aks create -n mycluster -g myrg --network-plugin azure --network-plugin-mode overlay --pod-cidr <IP_ADDRESS>/16 - will not have a warning about the pod_cidr being wiped.
Description

Remove unneeded warning message when using Azure CNI Overlay and block user from specifying pod_cidr using azure cni without overlay.
Testing Guide

Built az cli locally and tested the InvalidArgumentValueError was raised when trying to use azure cni without overlay and specifying pod_cidr. Also that the warning message did not exist when creating an azure cni overlay cluster.
History Notes

[AKS] az aks create -n mycluster -g myrg --network-plugin azure --pod-cidr <IP_ADDRESS>/16: will now raise a client error and specify an error message to either use Kubenet or Azure CNI Overlay
[AKS] az aks create -n mycluster -g myrg --network-plugin azure --network-plugin-mode overlay --pod-cidr <IP_ADDRESS>/16: will not have a warning about the pod_cidr being wiped.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

/ok-to-test

AKS

@tyler-lloyd Could you please resolve these CI issues?

Please note that since we will launch the release of this sprint the day after tomorrow. If you cannot address all the comments tomorrow, we will have to postpone the release of this PR to the next sprint (03-07)

The change should and has been applied to aks-preview. Feel free to close this PR, @zhoxing-ms, thanks!


Proposal: Resolve jsx files

https://github.com/skpm/skpm/blob/55e448e96811a596fc04369d257cd2e4b6f8dd9c/packages/builder/src/utils/webpackConfig.js#L132
could be changed to:
extensions: ['.sketch.js', '.js', '.sketch.jsx', '.jsx'],

Should I go ahead and submit a PR?
Ref

https://github.com/airbnb/react-sketchapp/pull/483#discussion_r390444961

yes please :)


bugfix: set Docker-Content-Digest response header and allow pull-by-digest

Also, try to ensure canonical/reproducible json for both Container Config and Image Manifests (see separate commit on the branch)
fixes #8
^ please confirm by testing with a docker 20.10.X client or later.

Try this from within the project nix shell:
cargo run -- --repo https://github.com/wharfix/examples.git --port 8888
and then e.g.:
docker pull localhost:8888/nyancat:master

Works like a charm :)


Collection of tasks

These are a bunch of smaller issues and possible improvements. If you want to work on one of these, please leave a comment and open an issue or PR, which I will link to the task below.

Deployment

[ ] Packaging: Create a distribution package for vosk-cli
[ ] Use Bandit to find possible security issues
[ ] Deployment to PyPI: Create entry for vosk-cli in PyPI and configure automatic deployment
[ ] Include language model(s) in some form

Usability/Documentation

[ ] Revise README with updated instructions on how to run vosk-cli
[ ] Extend README with specific installation instructions for different operating systems
[ ] Display detailed help when vosk-cli call is missing parameters
[ ] Create technical documentation (potentially larger task)

Features

[ ] Display average confidence coefficient for transcriptions
[ ] Enable the use of punctuation models: Collaborate on/contribute to #9
[ ] Language recognition: Use multiple models and automatically detect spoken language based on confidence coefficient (this might be a larger task)

I am working on the distribution package


Update Composer dependencies (2022-11-22-00-07)

Visual regression test passed!
View the visual regression test report


Code Action, "create Local variable" doesn't work for action invocation.

Description:
Code action to create a local variable for an action invocation that has a return value doesn't work.

Affected Versions:
1.0.0-beta-candidate

This doesn't work for the following scenario either

Common factor seems to be all the invoking methods returning a Union type.

Closing the issue since the fix has been merged


Update README.md to clarify plugin/opensearch version sync

See NOTE: under Compatibility Matrix
As requested by @lukas-vlcek in  #197

@jeroenhabets Looking good. Maybe we can make it even more precise and point to plugins documentation here that also further explains the relation wrt to "sub"-patch plugin version, ie. all plugins 2.9.0.x will work only with OpenSearch 2.9.0.
Oh, and please provide DCO (--signoff), see https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/issues/78

Each commit must include a DCO which looks like this
Signed-off-by: Jane Smith<EMAIL_ADDRESS>You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use -s or --signoff to add the Signed-off-by line to the end of the commit message.

@lukas-vlcek I just commited an update including a Signed-off-by line.

@jeroenhabets The first commit is still missing the DCO. Maybe you can merge both commits into a single commit and have only this one commit signed?

Sorry @lukas-vlcek, then it's easier just to redo from start: https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/pull/204


The validation error

Hello.
I have run the training of the model, but on the validation step I always get an error.  I have preprocessed the data as it is stated here. Both train and validation files are in the same format with [SEP]. I have tested on the files with a few lines of text: up to 5-10. The validation passed, but with larger file it always fails with different errors.
I did not have any problems with validation when I just trained the model with parallel corpus. Could you please help as I need post editing for my project?

@Leo-donny This issue is driving me nuts, have you found a solution for this?

@cnc4ever Hello. Did you get the same problem? I have tried this solution several times, and then I decided to wait for any update. I see that the authors did not update anything. I try to find another similar repository.

I'm encountering the same issue. @cnc4ever @VladislavKaryukin , did either of you find a solution?


fix add 'scheme://authority' to fs cache key

Proposed changes
This file system cache key should contains scheme://authority, eg: hdfs//nameservices1.
Or it will encounter error:
Wrong FS: hdfs//abc/xxxx, expected: hdfs://def

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.87 seconds
stream load tsv:          504 seconds loaded<PHONE_NUMBER>9 Bytes, about 141 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size:<PHONE_NUMBER>1 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 44.94 seconds
stream load tsv:          542 seconds loaded<PHONE_NUMBER>9 Bytes, about 131 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select:          29.4 seconds inserted 10000000 Rows, about 340K ops/s
storage size:<PHONE_NUMBER>8 Bytes


figure out status of Alliance phenotype working group - any progress on a unified cross-species phenotype ontology?

Openned by mistake


Support Google Storage for artifact logging

What's inside the box:

new gs adapter has been added to support Google Storage for artifact logging.

@dsuhinin could you please also add google-cloud-storage to the Pipfile?
pipenv install --dev google-cloud-storage

@dsuhinin could you please also add google-cloud-storage to the Pipfile?
pipenv install --dev google-cloud-storage

yep. done!

it looks like the Pipfile.lock did not get updated!

it looks like the Pipfile.lock did not get updated!

yep, yep. didn't commit it by some reason. now should be good.


Fix docs of "bs-dependencies" BuckleScript config option

Problem: documentation of how to configure in BuckleScript shows the non-working "bastet" instead of the working "bs-bastet" value to be used in the bs-dependencies configuration option.
Solution: replace it by the actually working version on the documentation file.

See also its use site in reazen/relude: https://github.com/reazen/relude/blob/v0.63.1/bsconfig.json#L26


man page installation script

man page installation scripts for macOS and Linux.
This ticket may be rolled into the installers for Homebrew and Debian.

Depends on #46


Fast Refresh doesn't work with useQuery

urql version & exchanges:
<EMAIL_ADDRESS>Steps to reproduce

Call useQuery in a component
Save the file
The result of the query will go empty and it will refetch

My hunch is that it may be related to calling setState in render(?)
I haven't seen this kind of React code before so it's hard for me to know how to potentially adjust the useQuery internals.
Expected behavior
Fast refresh shouldn't affect the results of useQuery. If it's already fetched, then it should maintain the same data without going stale / empty.
Actual behavior
Saving a file when data != undefined results in either a) the query losing its data and refetching, or b) the query losing its data and not refetching.
Reproduction
https://codesandbox.io/s/urql-fast-refresh-9te6gq?file=/src/index.js
Save the file here, and you'll see that the query goes away and refetches.

Hmm, this could be me misunderstanding fast-refresh in React but I mirrored part of their spec for the fast-refresh in Preact and you rerun effects when a fast-refresh occurs which in our case will initiate a new fetch, I do wonder why the state is being reset. Setting state in render is allowed as long as you have a stable way of skipping it, when you setState in render the render will be dirtied and repeated.
The hooks get completely reset when hook-signatures differ which are made by the Babel plugin, will check later what is being reset here but if it's something to do with the effects/memo call being reset this would make sense as then the functional integrity of source would be different.

The effect re-running would make more sense. Do you think there is a way to fix it?

Yes it always seems to invalidate the initial useMemo resulting in a new request.

I’m using React 17 in my app. Your repo upgraded to 17.0.2 also breaks fast refresh for me.
https://codesandbox.io/s/urql-fast-refresh-forked-xc296u?file=/src/index.js

Ah I see, upgrading React DOM on sandbox fixes it. Hmm I wonder why my app isn’t working then.

Maybe an unstable context value/... something in the outer closure acting up? 😅 tried a bunch of permutations but all looks good on the urql side


test with symfony 3.4 and 4

#SymfonyConHackday2017

i suggest we drop php 5.5 support, its EOL and starts to randomly fail here.

@lunetics is dropping 5.5 ok for you?

its not a BC break - it simply won't update anymore on old systems. i usually bump the minor version, in case that a security fix or trivial bugfix is needed that we want to make available to people on old versions too.

i tagged 2.5.4 to have the latest master tagged, and bumped the branch alias in composer to 2.6 in this PR. once merged i can tag 2.6.0


exit_boot_services doesn't handle scenario where memory map size increases

The current package API does not allow SystemTable::exit_boot_services to be called more than once. However, the UEFI specification requires applications to call this routine again if the first call returns EFI_INVALID_PARAMETER.
From https://uefi.org/specs/UEFI/2.10/07_Services_Boot_Services.html#efi-boot-services-exitbootservices:

A UEFI OS loader must ensure that it has the system’s current memory map at the time it calls ExitBootServices(). This is done by passing in the current memory map’s MapKey value as returned by EFI_BOOT_SERVICES.GetMemoryMap() . Care must be taken to ensure that the memory map does not change between these two calls. It is suggested that GetMemoryMap() be called immediately before calling ExitBootServices(). If MapKey value is incorrect, ExitBootServices() returns EFI_INVALID_PARAMETER and GetMemoryMap() with ExitBootServices() must be called again. Firmware implementation may choose to do a partial shutdown of the boot services during the first call to ExitBootServices(). A UEFI OS loader should not make calls to any boot service function other than Memory Allocation Services after the first call to ExitBootServices().

The uefi-rs documentation seems to suggest that the UEFI memory allocator cannot be used after the first call to the routine, but the above section goes contrary to this. However, as it stands, exit_boot_services consumes the SystemTable<Boot> regardless of success/failure.
Is there any chance the API could be updated to allow for the reuse of the system table, perhaps returning a new implementation of SystemTable through the error data that exposes a limited subset comprising just the memory allocation services and exit_boot_services?

Our exit_boot_services wrapper internally handles retrying if EFI_INVALID_PARAMETER is returned: https://docs.rs/uefi/latest/src/uefi/table/system.rs.html#174
So you should be able to call it once and trust that it will either return success, or some unexpected error that isn't covered by the spec (so not EFI_INVALID_PARAMETER).
I think that fully addresses your question, but please feel free to reopen if I've missed anything :)

Ahh perfect, this does address my question, thanks!

It occurs to me that we should update the documentation on that method to make it clearer that it handles this for you; reopening this ticket as a reminder to do that.

Ah my apologies, I've taken a closer look at the referenced code and I'm not certain that this fully resolves my concerns.
From what I can tell, internally exit_boot_services loops until it no longer receives an EFI_INVALID_PARAMETER result. However, this doesn't seem to allow for the opportunity to increase the allocation size if the memory map has gotten bigger since memory_map_size was previously called, and so if this situation does occur, it seems that the retrieval of the memory map could overflow the buffer passed to exit_boot_services.
The documentation on exit_boot_services does make note that a larger size should be allocated than needed in order to account for this case, but this doesn't seem to be a guarantee, and from what I can tell from the UEFI spec (making reference again to the snippet in the original ticket above), it does seem that memory allocation services are still required to be available and could be used in conjunction with re-fetching the memory map size within the internal loop, in order to eliminate this possibility of an buffer overflow.

What would be the best solution in this case?
I see two possibilities for now:

Stop taking a memory buffer parameter in the exit_boot_services function, and just allocate memory directly using the UEFI API (possibly re-allocating if the memory map gets bigger after the first exit call).
This is completely safe, since the spec guarantees that the memory allocation methods will still be available after the first call to ExitBootServices:

A UEFI OS loader should not make calls to any boot service function other than Memory Allocation Services after the first call to ExitBootServices().

Somehow return from the function without taking ownership of the SystemTable, and allow the users to handle this situation by themselves. In this case, the exit_boot_services call should become unsafe, since we can't prevent the user from making calls to boot services which the spec doesn't guarantee to be valid anymore.

We could also go for some sort of hybrid solution, where we provide an exit_boot_services_unsafe method (which does no error handling, but allows the caller to manage the memory buffer as they wish) and update the exit_boot_services function to allocate its own memory.

I put up a PR to implement the first solution, having the function do its own allocation (with direct calls to allocate_pool/free_pool so it doesn't rely on having a Rust allocator available). Hopefully that should be sufficient for all use cases.


DbUpMigration - Add Oracle support

Oracle support is probably the next largest need from an implementation perspective (of the big, commercial DBMS's).  This would be a great next step for this plug-in which we have made a critical part of our current process.  Unfortunately, we have Oracle DBs, too.

I would be happy to support Oracle, although I have very limited experience working with them myself... I would need some help to make it happen!

Hm... I see now that there is no support for Oracle in DbUp yet. Some folks have tried to implement support for it but their PRs seems to have failed. Read more here: https://github.com/DbUp/DbUp/search?p=1&q=oracle&type=Issues&utf8=✓
I'm closing this issue, but am willing to open it up when DbUp supports Oracle DB.

@johanclasson Agreed.  Hadn't noticed that!  Thanks for looking into it.

Great news!


cargo.toml tweaks for rpm build

Minimal tweaks to the toml files to enable easy build on RPM distros with cargo-rpm
Tested on Fedora 35.

There is also a rename for cert in this commit that is necessary as well: https://github.com/htrefil/rkvm/pull/9/commits/7a4eabafac73f610c93ace029e284f509f24c06d

I'm hoping the author can merge these, as most of the PRs are really good. I plan to merge them all in a fork and do an RPM ... do you have a spec that you can share @NeoTheFox ?

I'm hoping the author can merge these, as most of the PRs are really good. I plan to merge them all in a fork and do an RPM ... do you have a spec that you can share @NeoTheFox ?

The RPMs are generated by cargo-rpm using the Cargo.toml files. You should go to the client or the server folders and run cargo rpm init in there. The spec files are going to be in .rpm/client.spec
Here is the one generated for client on my machine:
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}

Name: client
Summary: A tool for sharing keyboard and mouse across multiple Linux and Windows machines, the client
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
%{summary}

%prep
%setup -q

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/*


Copy-DbaDbTableData - allows copy using query with same dest/source server

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[X] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[X] Documentation
[ ] Build system

Purpose
Currently if you choose the same server and database for the source and destination you can't use a query into a table. It checks and notices you are using same server/database and then stops the function.
Approach

Check if a query was used before stopping the function for matching server names
Change the label on the should process so it gets the correct source name

Commands to test
Added to CBH also.
$params = @{
    SqlInstance = 'server1'
    Destination = 'server1'
    Database = 'AdventureWorks2017'
    DestinationDatabase = 'AdventureWorks2017'
    Table = '[Person].[EmailPromotion]'
    BatchSize = 10000
    Query = "SELECT * FROM [Person].[Person] where EmailPromotion = 1"
}

Copy-DbaDbTableData @params

yall are the best <3 thank you!


Updating to electron 1.8.1

Electron is configured in squiffy-editor for version 0.36.2. That also involves isue #11, in which characters are rendered as boxes in the file dialogs.
This pull request upgrades electron up to 1.8.1, which is the last stable version at the time of writing (dec 2017). A few minor changes had to be done, since instead of require app, you have to require electron and then obtain app.

Realizado merge y actualizada la descarga de la versión Linux incorporando los cambios.


Problem in using with Chakra-UI

When I use react-gridsheet on a component wrapped in ChakraProvider, which is required when using Chakra-UI, it seems to gradually shrink in size by 2px.
It is not known if this is a bug or if something is affecting it.
https://user-images.githubusercontent.com/29481336/129444569-038afdf9-782b-4100-b992-6dca31a29ae2.mov
// package.json
  "dependencies": {
    "@chakra-ui/react": "^1.6.6",
    "@emotion/react": "^11",
    "@emotion/styled": "^11",
    "@types/react": "^17.0.17",
    "@types/react-dom": "^17.0.9",
    "framer-motion": "^4",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-gridsheet": "^0.5.6",
    "typescript": "4.3.5"
  },

It seems the cause of this problem is that ChakraUI sets border-box on the wrapper element of gridsheet.
I forced it content-box and it has fixed in the latest version(v0.5.8).
https://codesandbox.io/s/ecstatic-leaf-bm0s7?file=/src/index.tsx
Close this issue if your problem has resolved.


Prevent generation of unconnected database connections and set default timeout

This PR updates the ORM to prevent a case where when using a single connection to the database requests can be made without having explicitly connected.
It also sets a default timeout on the single connection pool to prevent appearing to hang indefinitely.

Codecov Report

Merging #51 into master will increase coverage by 0.1%.
The diff coverage is 71.42%.

@@            Coverage Diff            @@
##           master      #51     +/-   ##
=========================================
+ Coverage   30.05%   30.16%   +0.1%
=========================================
  Files           6        6
  Lines        1364     1369      +5
=========================================
+ Hits          410      413      +3
- Misses        954      956      +2

Flag
Coverage Δ

#SwiftKueryORM
30.16% <71.42%> (+0.1%)
:arrow_up:

Impacted Files
Coverage Δ

Sources/SwiftKueryORM/Database.swift
73.68% <71.42%> (-4.89%)
:arrow_down:

Continue to review full report at Codecov.

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

I'm closing this as it will be included in a later request.


http://jslinterrors.com/  is down

Hi i would like to bring to your attention that http://jslinterrors.com/  is down whenever it ask to click the link given in the error to know more it redirects to an empty site.

thank you!  someone else already logged it.  https://github.com/MiguelCastillo/Brackets-InteractiveLinter/issues/194
I asked if there was any interest in finding out what has replaced that website and I will happily take a PR.
I am going to close this issue and keep track of it under the other one.


[Theme] Support .shopifyignore file, --only and --ignore flags in dev server

Closes https://github.com/Shopify/develop-advanced-edits/issues/283

Refactor ignore assets logic to live in themeFS
Support ignore patterns in dev server
Refactor file stats to keep the mtime in memory with the file content.
Small perf improvement for server start up

--
⚠   It's easier to review this PR commit by commit 🙏
To 🎩 , pass --ignore="assets/*.css" flag and try to update some CSS file, it should be ignored.

I assume that's going to be fixed when we merge this line. If my assumption is correct, feel free to proceed with the merge, and I will merge mine later :)

Yeah, that function is creating a whole new themeFS instance so we need to call .ready(). Alternatively, I think @jamesmengo  is removing that new instance and reusing the main one in another PR. Should still call .ready() though, just in case 👍

I assume that's going to be fixed when we merge this line. If my assumption is correct, feel free to proceed with the merge, and I will merge mine later :)

Yeah, that function is creating a whole new themeFS instance so we need to call .ready(). Alternatively, I think @jamesmengo is removing that new instance and reusing the main one in another PR. Should still call .ready() though, just in case 👍

+1 to keeping the ready call.
We will continue to call mountThemeFileSystem in the pull command, as we have no existing themeFileSystem mounted when that command is executed.
The instance I removed came from here - we were mounting the file system twice during a single command (dev) when the theme-editor-sync flag is passed.


Can't read appointments written using php-ews

Hi There, I've been working on making a PHP interface to an exchange public calendar, in this case it will be an interface to handle bookings, like pool cars, meeting rooms etc.
I have been using the following code to read in my calendars and then output to a JSON object.
function getShared($folder_id) {

$server = "xxx";
$username = "xxx";
$password = "xxx";
$curryear = date("Y");
$currmonth = date("m");
if($currmonth = "01") { $month = "12"; $year = $curryear - 1; }
else { $month = $currmonth - 1; $year = $curryear;}
$startDateEvent = $year . '-' . $month . '-' . date("d") . "T00:00:01";
$futureyear = $curryear + 1;
$endDateEvent = $futureyear . '-' . date("m-d") . "T00:00:01";

$ews = new ExchangeWebServices($server, $username, $password, ExchangeWebServices::VERSION_2007_SP1);
$request = new EWSType_FindItemType();
$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;
$request->ItemShape = new EWSType_ItemResponseShapeType();
$request->ItemShape->BaseShape = EWSType_DefaultShapeNamesType::ALL_PROPERTIES;
$request->CalendarView = new EWSType_CalendarViewType();
$request->CalendarView->StartDate = $startDateEvent;  // an ISO8601 date e.g. 2012-06-12T15:18:34+03:00
$request->CalendarView->EndDate =$endDateEvent;  // an ISO8601 date later than the above
$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();
$request->ParentFolderIds->FolderId = new EWSType_FolderIdType();
$request->ParentFolderIds->FolderId->Id = $folder_id;
$response = $ews->FindItem($request);
$TotalItemCount = $response->ResponseMessages->FindItemResponseMessage->RootFolder->TotalItemsInView;

$thisevent = array();
for ( $ItemID = 0; $ItemID < $TotalItemCount; $ItemID++) {

$thisMID = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->ItemId->Id;
//$body = getMessageBody($thisMID);
$subject = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->Subject;
$start = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->Start;
$end = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->End;
if(isset($response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->Location)) {
$location = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->Location; } else { $location = ""; }
$allDay = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->IsAllDayEvent;
$organizer = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->Organizer;
$peopleincluded = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->DisplayTo;

$name = $organizer->Mailbox->Name;
$de = convDateToReadable($start);
$d = convDateToExchange($de);

$thisevent['title'] = $subject;
if($allDay == 1) { $thisevent['allDay'] = true; } else { $thisevent['allDay'] = false; }
$thisevent['start'] = $start;
$thisevent['end'] = $end;
$thisevent['topeople'] = $peopleincluded;

$events[] = $thisevent;
}
$events = json_encode($events);
print_r($events);
}

this works perfectly fine when reading one of our current calendars, however when I use the following code to create an event in the calendar via php we get errors.
function createEvent($poolcarID) {

$server = "xxx";
$username = "xxx";
$password = "xxx";

$ews = new ExchangeWebServices($server, $username, $password, ExchangeWebServices::VERSION_2007_SP1);
$subject = 'Pool Car Booking';
$request = new EWSType_CreateItemType();
$request->SendMeetingInvitations = EWSType_CalendarItemCreateOrDeleteOperationType::SEND_ONLY_TO_ALL;
$request->SavedItemFolderId->DistinguishedFolderId = new EWSType_DistinguishedFolderIdType();
$request->SavedItemFolderId->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CALENDAR;
$request->Items = new EWSType_NonEmptyArrayOfAllItemsType();
$request->Items->CalendarItem = new EWSType_CalendarItemType();
$request->Items->CalendarItem->Subject = $subject;
$request->Items->CalendarItem->Body = new EWSType_BodyType();
$request->Items->CalendarItem->Body->BodyType = 'Text';
$request->Items->CalendarItem->Location = 'xxx';
	$date1 = new DateTime('2015-06-11T15:00:00+03:00');
        $DateStart = $date1->format('Y-m-d H:i:00');
        $date = new DateTime($DateStart);
        $request->Items->CalendarItem->Start = $date->format('c');
        $date1 = new DateTime('2015-06-11T17:00:00+03:00');
        $DateEnd = $date1->format('Y-m-d H:i:00');
        $date = new DateTime($DateEnd);
        $request->Items->CalendarItem->End = $date->format('c');
$request->Items->CalendarItem->IsAllDayEvent = false;
//$request->Items->CalendarItem->IsMeeting = true;
//$request->Items->CalendarItem->MyResponseType = 'Organizer';
$request->Items->CalendarItem->LegacyFreeBusyStatus = 'Free';
$request->Items->CalendarItem->Categories->String = 'Test Category';
$request->Items->CalendarItem->Body->_ = <<<EOD

Staff Attending:bob

EOD;

$request->Items->CalendarItem->RequiredAttendees->Attendee[0]->Mailbox->EmailAddress =<EMAIL_ADDRESS>$request->Items->CalendarItem->RequiredAttendees->Attendee[1]->Mailbox->EmailAddress =<EMAIL_ADDRESS>
$response = $ews->CreateItem($request);

	var_dump($response);
}

When we read a calendar with events created by the above script it successfully reads the events created in outlook but when we get to the phpews events it fails at the following line
$thisMID = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem[$ItemID]->ItemId->Id;

The first error is Notice: Undefined property: stdClass::$CalendarItem.
It mainly seems to be not recognising that specific array key
any ideas?

Have you tried this?
$thisMID = $response->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem;
foreach($data as $thisMID)
{
$id = $event->ItemId->Id;
$subject = $event->Subject;
$start = $event->Start;
$end = $event->End;
.
.
.
.
.
and so on....

Over a year with no response. If you are still having this issue with the latest code from master, please open a new issue.


Add Normalized features and base transforms

Body: Added Normalized feature transform and base transforms.

Added unit tests for Normalize features
Ran pre-commit steps

This can be a potential fix for #149
Proposed changes
To have pre_transform/transform as a feature step for preprocessing data before loading
Implemented Normalized features which normalizes node_features of graph data
Checklist
Put an x in the boxes that apply.

[x] I have added tests that prove my fix is effective or that my feature works
[x] I have updated the necessary documentation

Great work @vinayhpandya!

@vinayhpandya I added the transforms to the docs

I think this type of transform should be passed as pre_transform. We're using the transform arg for transformations applied on data access (see #149)

I guess the user will always index the dataset to get the graphs so the transform should be always called, no?

Yes, if the transforms are present they are always called when getitem() is called.

Yes, what I'm saying is that we can also pass it as a pre_transform and update the default process for the dataset so that all data are transformed before being saved.

Makes sense, I will add that to process


feat: Battery saver feature is working.

Description
When the battery saver is enabled, the brightness is reduced by 30% from its current level. And when the battery saver is disabled, the brightness is restored to its previous setting.
Fixes #811
Type of change
Please delete options that are not relevant.

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

Hey @yashash-pugalia, Can you review my PR please. Thanks.

LGTM!


Use the system linker if given custom linker flags

This seems to be the weak consensus from https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/C.20FFI.20usage, but I'm open to further discussion.

What do you mean by the "system linker"? Do you mean ld, cc, or c++ (or something else)?

getBuiltinLinkerFlags returns -Wl, prefixes, so I suppose it would have to be cc. If someone wants to link in C++ code, I think it should be their responsibility to specify c++ instead.

@Kha So is the suggestion to just switch from leanc to cc when moreLinkArgs is not-empty? Or is there more configuration that needs to be done to get the build to then work?

It should be equivalent if you add the getBuiltinLinkerFlags into the mix, though it wouldn't work if someone wanted to specify linker flags without having a system toolchain installed of course. I don't know how realistic that is; most such use cases should probably be covered by new Lake flags, such as useLTO := true (which affects both compilation and linking anyway). But maybe an explicit flag useSystemLibraries := true would be better?

We can also move the discussion back to Zulip

@Kha so I am trying to replace invoking leanc with just invoking the bundled clang directly. Just passing getBuiltinLinkerFlags is insufficient to get this to work. From what I can tell I also need to change the sysroot with --sysroot=<lean-sysroot>/include/clang -- is there anything else I need as well?

Also, I have had a number of problems when attempting to link using an external linker (e.g., both cc and clang) on Window MSYS2 s with getBuiltinLinkerFlags.

MSYS2 build essentials do not come with libc++ or libc++abi, they must be installed separately
MSYS2 requires libc++abi to come before libc++ (it currently comes after it in the flags)
The -pthread option is unused when building with clang

I am currently get a segfault when running the built executable after a successful link (and I am now working on debugging that).

Having toyed around some more, I think my question is: @Kha, why does leanc need to change the --sysroot? Could it instead just add the bundled libraries to the library path (via -L) or pass the library file directly (if one is worried about the library search preferring the native libraries instead of the bundled ones). With an unchange --sysroot, system libraries could still  be found by the bundled clang/leanc when specified by the user.

There should be no need for additional flags, which must mean that getBuiltinLinkerFlags is incomplete. One issue is that in https://github.com/leanprover/lean4/blob/ba8372110968e6a695d6cb6558e717d19e6bfc7f/script/prepare-llvm-mingw.sh#L41, only the last flag should be internal probably. Changing the sysroot should not be necessary; in fact, I'd prefer to use the bundled linker with the "system sysroot" as mentioned in https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/C.20FFI.20usage/near/262868754. I can take a look tomorrow.

why does leanc need to change the --sysroot

crtbegin.o etc are found via the sysroot.

There should be no need for additional flags, which must mean that getBuiltinLinkerFlags is incomplete. One issue is that in https://github.com/leanprover/lean4/blob/ba8372110968e6a695d6cb6558e717d19e6bfc7f/script/prepare-llvm-mingw.sh#L41, only the last flag should be internal probably.

Sounds good! Also, -lgmp should probably not be in that list (especially statically) as it is part of the getBuiltinLinkerFlags. The flags I used to get a direct invocation of the bundled linker to work in the CI on all platforms are here in the PR. I probably missed some ones needed for special configurations, though.

Closing in favor of leanprover/lean4#890.


Pickup delivery with vehicle capacity

Hello. I want to solve task of VRP when I have multiple cars with capacity and I want to transfer items inside system. So pick up items from some points and drop them somewhere. I tried to do this as pickup delivery problem with "demand"  = amount_of_items on point where I should drop and -amount_of_items  on pick-up point. But it seems that it is not converging.
Also I want to be able to visit one pick-up point twice with same car. Is it possible?

Could you please clarify the problem, coz the solution seems to be this
You  can create a dummy node (ex: node A and A') and
a) #1202
b) by Muzux
c) https://www.bountysource.com/issues/73870858-specific-nodes-visited-by-specific-vehicles
d) not sure regarding this one:

https://github.com/google/or-tools/blob/39f44709bba203f5ff3bc18fab8098739f189a6d/ortools/constraint_solver/routing.h#L618

Could you please clarify the problem, coz the solution seems to be this

So the problem is that let's say I have two cars (capacity = 6), depo and 5 points. Then I have list: pickup point - delivery point - amount like this :
0 - 4 - 10
1 - 3 - 5
1 - 4 - 3
1 - 5 - 3
2 - 3 - 1
4 - 5 - 3
So basically I need to pick up from same station few times (maybe more than two, maybe all fit in one car but different destinations) and also drop to stations few times. Everything considering capacity of a car.

You  can create a dummy node (ex: node A and A') and
a) #1202
b) by Mizux
c) https://www.bountysource.com/issues/73870858-specific-nodes-visited-by-specific-vehicles
d) not sure regarding this one:

https://github.com/google/or-tools/blob/39f44709bba203f5ff3bc18fab8098739f189a6d/ortools/constraint_solver/routing.h#L618
Thank you, will look into that!

The problem is that let's say I have two cars (capacity = 6), depo and 5 points. Then I have list: pickup point - delivery point - amount :
0 - 4 - 10
1 - 3 - 5
1 - 4 - 3
1 - 5 - 3
2 - 3 - 1
4 - 5 - 3
So basically I need to pick up from same station few times (maybe more than two, maybe all fit in one car but different destinations) and also drop to stations few times. Everything considering capacity of a car.

So this is pdp problem, after you add a dummy nodes, you can surely use those as pick and delivery nodes. Regarding the capacity, try to divide the capacity into smaller values, which could satisfy the capacity of a vehicle (ex: 10 could be divided into 5:5 two nodes, here two dummy nodes, so that the car returns and picks rest). Basically dummy node and pdp do the job

Good, I will try it. Thank you. I was trying pickup delivery before (without dummy nodes) and it was not converging.. But I will try with this trick now.

Ok, sorry, I missed important part in my example.  Car should be able to visit few pickup places before drop. Or pick at one place and drop at few nodes. So let's say I have depo and then 4 points close to each other. And I have to pick from one of those 4 points and drop to others. If depo is far - it is better to visit with one car and move twice to the pickup point than use second car.
In other terms:
distance matrix: (not correct numbers, just to show idea)

0
1
2
3
4

0
100
110
110
120

100
0
1
1
1

110
1
0
1
1

110
1
1
0
1

120
1
1
1
0

demands = [0, -9, 3, 3, 3]
pickups_deliveries = [[1,2],[1,3],[1,4]]
num_vehicles = 2
capacities = [6,6]
depot = 0
Best route shoul be something like 0 -> 1 (pick 6) -> 2 ->3 -> 1 (pick 3) -> 4 -> 0
I am not sure, how to setup such problem..

@kzorina I am not sure regarding which strategy to reduce the number of cars.

And I have to pick from one of those 4 points and drop to others.

#968 is what you need, as these 4 points become alternative pickup points.
For the rest, pdp and dummy nodes should be the solution, btw try to play with strategies for the solver

Ok, thanks for help


insert() does not work for multiple line text

This code works.
Chromy = require("chromy")
chromy = new Chromy({visible:true})
chromy.chain().goto("https://html.com/tags/textarea/").insert("textarea", "abcdef").end()

I added "\n" between "abc" and "def" to the above.
Chromy = require("chromy")
chromy = new Chromy({visible:true})
chromy.chain().goto("https://html.com/tags/textarea/").insert("textarea", "abc\ndef").end()

This does not work.

Hi @gen6033!
Thank you for reporting! This bug will be resolved in next version. Please wait a while.

I've published v0.5.5 just now. Please check it!

It works!
Thank you @dotneet．


Fail-over?

Does stellar support fail-over? I'm able to deploy containers to specific nodes, but it's unclear how or if these get replicated or scaled.
Btw - Your video was very informative. Where can I find part II?
https://www.youtube.com/watch?v=diRmI45Yhg4

Currently the scheduler does not monitor it simply schedules.  I'm planning a monitoring concept that will operate not just on state but also metrics to assist in re-scheduling in the event of a failure or other trigger (resource utilization, maintenance, etc).
As for the next parts, I haven't recorded it yet :)  I'll try to get some time soon to continue in the series :)


Header option should be used without any modification

Describe the problem you'd like to have solved
I'm trying sign a JWT token with the header:
const token = jwt.sign(payload, secret, {
  header: {
    typ: "JWT",
    alg: "HS256",
  }
});

But inside the jsonwebtoken, the header option is assigned with the default header values:
var header = Object.assign({
  alg: options.algorithm || 'HS256',
  typ: isObjectPayload ? 'JWT' : undefined,
  kid: options.keyid
}, options.header);

This behavior invert the typ and alg position and add a kid property to header:
{ alg: "HS256", typ: "JWT", kid: undefined }

Describe the ideal solution
I think when options.header is provided, it should be used without any modifications

Hello, I'm curious why the order of typ and alg matters here? The meaning is the same regardless if of which "order" the properties appear.
Also, in my testing, I don't see a kid property added to the header. Can you elaborate on how you produced that result? E.g. which node version, etc?
Regarding the PR, I will comment there. But generally, I don't think this is a change we want to make to the library.

Closing. If you want to discuss more, feel free to reopen.


[Crash] crash on startup after update mod(1.5.64->1.5.65)

Describe the bug
Game client crash after few seconds I pushed "PLAY" in Minecraft Launcher
Crash report (via. Hastebin)
https://hastebin.com/share/kojoresole.css
To Reproduce
Steps to reproduce the behavior:

Start Minecraft
See error

Versions:(check log if you don't know)

Forge/Fabric Loader Version: Fabric - 0.14.17
MC Version: 1.19.3
Mod Version: 1.5.65
JEI Version (if present) : <IP_ADDRESS>(test without JEI also same result)
Fabric API Version (if present) : 0.75.1

Additional context
I using CurseForge app for manage mods.

test case 01 : VanillaTweaks 1.5.64 + play with many mods.
--result : work normally.
test case 02 : update VanillaTweaks to 1.5.65 + play with many mods.
--result : crash on startup
test case 03 : downgrade VanillaTweaks to 1.5.64 + play with many mods.
--result : work normally.
test case 04 : Create new setting with Fabric Loader / Fabric API / MineCraft version same. newly install VanillaTweaks 1.5.65 and requirements(Cloth Config API 9.0.94) + play with just VT and requirement only.
--result : crash on startup(pasted link above is Crash report of this case).
test case 05 : downgrade VanillaTweaks to 1.5.64 + play with just VT and requirement only.
--result : work normally

Fixed thanks for the creating the issue.


Start pruning out the <5.0 code.

Remove everything in the library code that isn't related to hashing.

@Lukasa fyi


Written_content

Hi, this merge includes the first English version of the roadmap text.

The end-to-end test failed because this is based on an old main branch version (about a month ago). This is an old bug that is already fixed. So you can ignore the failure.


Expose include head message for durable consumers

Motivation
Currently the option to include the very first message while consuming is just
exposed for Reader interface only, but implemented in ConsumerImpl and using it
only for non-durable subscription.
This PR just expose this feature for normal consumers.
Modifications

Expose startMessageIdInclusive method on ConsumerBuilder interface.
Fix message filter to consider all kind of subscriptions.
Add test to assert expected positions after reset on consumer.

retest this please


Measure actual coverage, not "cell coverage"

Current cell coverage (num cells tested)/(num cells) is a proxy for actual coverage.
nbval includes a coverage measure - should investigate that.
Current coverage is relatively easy to fake, e.g.
if False:
    %cell

Something related to "what actually ran?" (e.g. detection that cell source was submitted to kernel) might be better than a static check.

@vidartf is this something you can help with? I see you've done it for nbval https://github.com/computationalmodelling/nbval/pull/134
since we have the %cell injection, I would think all we need to do is maintain a map of nb line # to test line #, inject coverage.py into the test itself, then match back the covered line using the mapping.

@timkpaine The nbval coverage is all about getting coverage data in python modules, from the execution of the notebook. It doesn't currently attempt to measure coverage in the notebook. The problem is that coverage will not be available in the same scope as the coverage gathering was started, i.e. the notebook global scope. There might be a clever work-around somehow, but I haven't dived deep enough into it to find anything.


235 move weather files to separate directory

@JIMENOFONSECA: can we merge this?

@daren-thomas Should not the toolbox be modified to point out to the new folder of the weather files?

working fine

I'm pretty sure the InputLocator is the only place needed to change. One of the main benefits of using the InputLocator :)


How to choose a certain NetworkAttachmentDefinition based on the assigned node?

Thank you for the great project but I am still new to this and I really need some help. I am having multiple node cluster, and I have to choose the subnet (which corresponds to a unique NetworkAttachmentDefinition object) for the pod depending on where it is scheduled to. All NetworkAttachmentDefinition are having bridge plugins that are assigned to the different subnets. The problem is, since pods are scheduled automatically by Kubernetes. How do I set the pod annotation while I don't know where it is going to be assigned to whichever node?
I tried to set the annotation after the pod is created and running, but I found that setting the annotations after the pod is create has no effect.
Am I thinking the problem wrong or Multus may have some config to do this?

Don't mind me. This is actually what I was looking for.
https://github.com/intel/multus-cni/blob/master/doc/how-to-use.md#networkattachmentdefinition-with-cni-config-file


Converting embedding back to audio

Hi, i'm trying to use speaker diarization. I got embedding matrix but how do i convert it back to words according to speakers.
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb", savedir="./pretrained_ecapa") signal, fs = torchaudio.load('/content/shorter_audio.wav') embedding = verification.encode_batch(signal)
Here's the code.
shape of embedding is torch.Size([2, 1, 192])

Hi @therc01 ,
Thanks for trying out SpeechBrain. Do you mean to convert embeddings to audio or words (text)?
If it's the later case then you can easily use the diarized output (see generated RTTM files) and process the audio chunks using any ASR recipes. And then maybe you can concatenate ASR outputs to have transcription (with speaker annotations) for the whole recording. Currently, AFAIK we do not have support for converting speaker embeddings directly to audio.

Kindly let me know if this query is answered. I can then close this issue.

can you share a demo code how to get transcriptions with speaker annotations. Thanks

I assume this is solved. I will close this issue for now.


Expired SSL Cert on api.polyroll.org

Game stats and history are not loading on polyroll.org.  It appears to be related to an expired cert from api.polyroll.org
Example:
https://api.polyroll.org/game_history_v2?ticker=USDC&modulo=100

Closing.  I see that the cert is renewed.


Linear scale .copy().nice() modifies original scale domain

It seems that running .nice() on a copy of a linear scale created with .copy() modifies not only the copy's domain, but the original's domain as well:
var x = d3.scale.linear().domain([1.3, 8.7])
console.log(x.domain); // logs [1.3, 8.7] as expected
var xCopy = x.copy();
xCopy.nice();
console.log(xCopy.domain()); // logs [1, 9] as expected
console.log(x.domain()); // ** unexpectedly logs [1, 9] **

This has been fixed in 4.0; see d3-scale. I probably won’t back-port the fix to 3.x, sorry!

Yep I noticed it was fixed there also - will probably upgrade my app to use the new d3-scale soon, just figured I'd call this out. Thanks for taking a look!


Snack bar queuing improvements and fixes.

Separated the concepts of promote and ignore duplicate. To allows these to be controlled independently.
Fixes #761
Fixes #614

:+1:


HTML5 has been removed in 4.24

See https://github.com/EpicGames/UnrealEngine/commit/1e59611dbb7bb8d4d0092492410b516fb2c9db8e#diff-9e89386e56028900f1fe427f8ac167f6

Thanks @CraigMason I've added support for 4.24 and updated HTML5 with this commit.


KeyError: 'key'

on line 158, 'key' should be capitalized.
The S3 boto3 client returns the file path in the dictionary key named 'Key'.  This is properly referenced on the following line.

Thanks for reporting the issue. Fixed and closing the issue.


merge from konsum-frontend-svelte

package.json

chore(deps): add ^8.0.4 remove ^8.0.2 (devDependencies.npm-pkgbuild)

.github/workflows/codeql_analysis.yml

chore: add 16.14.2 (jobs.analyze.steps.with.node-version)

.github/workflows/browser_ci.yml

chore(deps): add 16.14.2 remove 16.14.0 (jobs.test.strategy.matrix.node)
chore: add 16.14.2 (jobs.release.steps.with.node-version)

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

v1.31.13
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


conditional rendering page translation

Translating the conditional rendering page.
Related to #168
Review Progress

[ ] Conditionally including JSX
[ ]  Conditional (ternary) operator (? :)
[ ] Logical AND operator (&&)
[ ] Conditionally assigning JSX to a variable
[ ] Show an icon for incomplete items with ? :
[ ]  Show the item importance with &&
[ ] Refactor a series of ? : to if and variables

I have done till Conditionally assigning JSX to a variable.

@sanchit36 I have verified the fixes. All looks good. You can continue further with translating the rest of the file

@arshadkazmi42  I have completed the page, need your review.