handle circular dependencies

add @lazyInject & @lazyInjectAll decorators
const IBar = Symbol("IBar");
  interface IBar {
    foo: Foo;
  }

  @injectable()
  class Foo {
    @lazyInject(IBar) bar!: IBar;
  }

  @injectable()
  class Bar implements IBar {
    constructor(@inject(Foo) public foo: Foo) {}
  }

  globalContainer.register(
    IBar,
    {
      useClass: Bar
    },
    {lifecycle: Lifecycle.Singleton}
  );

  const bar = globalContainer.resolve<IBar>(IBar);

  expect(bar.foo.bar).toBe(bar);

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: AEPKILL sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

I think we will move forward with the solution in #91 as it solves the problem without using property injection. Thanks for the contribution though!


Trivial typo fix in PR template

PR: Thank you!
Reason

[x] Fix: Typo error

Type

[x] Other

Thank you @justinclift


select() with lists gives error

In the RASP CLI, evaluating a select() with lists of string or integers gives the error "attempted to create sequence with vals of different types".
For example, the following expression from the Cheat Sheet:
select([1,2,2],[0,1,2],==);
Gives the error:
          !!ignoring input:
 attempted to create sequence with vals of different types: ([1, 2, 2], [1, 2, 2], [1, 2, 2], [1, 2, 2], [1, 2, 2])

Hi Roland!
Quick response - the colourful examples you are trying to copy are for intuition, and not actually exact rasp syntax (see the caption of figure 1), you should follow the other (not colourful) examples in the cheat sheet, and in the readme.
Still, the error here is incorrect - the REPL should be complaining that it doesn’t want to have lists as the individual values in its sequences, or something of the sort (not sure from here). I will look into this when I get home and try to make a better error message


ISPN-11055 Deprecate SerializatinConfiguration Version

https://issues.jboss.org/browse/ISPN-11055

@ryanemerson test failures don't seem related, could you check please ?

@karesti Not related :slightly_smiling_face:

integrated! thanks @ryanemerson !


Auto-assign maintainer to new issues

From @benbalter in https://github.com/probot/probot/issues/17:

Another behavior of @jekyllbot (that's relatively new), when an issue comes in and @mentions an affinity team, one of the team captains are randomly assigned the issue. They're obviously free to unassigned or change assignment, but it creates a sense of distributed ownership of issues, based on where they are in the codebase.

This is semi-related to https://github.com/probot/owners. it might make sense to add that functionality to that plugin, or it might make sense as a first-responder/captains plugin.

Moved to https://github.com/probot/ideas/issues/8


Fix typos.

Coverage remained the same at 86.356% when pulling 058f669395f0f8a8f00c138ebc1568fca8ce4103 on AsmCoder110:patch-1 into 08752a90e3d391c042a5a783b9746e4fb5257fca on nficano:master.

Coverage remained the same at 86.356% when pulling 058f669395f0f8a8f00c138ebc1568fca8ce4103 on AsmCoder110:patch-1 into 08752a90e3d391c042a5a783b9746e4fb5257fca on nficano:master.

Coverage remained the same at 86.356% when pulling 058f669395f0f8a8f00c138ebc1568fca8ce4103 on AsmCoder110:patch-1 into 08752a90e3d391c042a5a783b9746e4fb5257fca on nficano:master.

Coverage remained the same at 86.356% when pulling 058f669395f0f8a8f00c138ebc1568fca8ce4103 on AsmCoder110:patch-1 into 08752a90e3d391c042a5a783b9746e4fb5257fca on nficano:master.


feat: reject invalid timestamp ranges in copy statement

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
This PR adds timestamp validity check to reject invalid timestamps in copy statement.

mysql> copy monitor from '/tmp/export/monitor.parquet' with (format='parquet', START_TIME='2023-12-13 03:05:41', END_TIME='2023-12-13 02:05:51');

ERROR 1815 (HY000): Invalid timestamp range, start: `2023-12-13 03:05:41+0000`, end: `2023-12-13 02:05:51+0000`

Checklist

[ ]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.
[x]  This PR does not require documentation updates.

1. This patch should be "fix" or "feat" rather than "chore".

Fixed.

2. Perhaps we can lower the Option -> Result into GenericRange::new method? All other refs seems in the test scope.

GenericRange::new does not have other error variants and it does not know how to interpret T in it's error message.


defaultOptions specified as function not overriden in extending types

With a chain of extending formly types, each having a function in defaultOptions, it does not override same-key options of the parent in more "concrete" types.
http://jsbin.com/wimifiyepo/1/edit?html,js,output
I don't know if that's intentional if using a function as defaultOptions, but I thought it should work regardless.

This appears to be a bug. defaultOptions should work great as a function. But it appears to not work in this case. However, if we make the abstractType an object instead, it seems to work fine (like so).
I doubt that I'll have time to work on this I'm afraid. But feel free to makeapullrequest.com :-)


improving edit address and recent activity pages

Related Issue
None
Fixes:  #4651
Description
enhancing edit address and recent activity pages present in editing options of my profile.

Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
before vs after
https://github.com/user-attachments/assets/e1457e96-3e9a-442f-a5f3-f46cd5e888b5
Checklist:

[ ] I have made this change from my own.
[ ] I have taken help from some online resources.
[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] I have tested the changes thoroughly before submitting this pull request.
[ ] I have provided relevant issue numbers and screenshots after making the changes.

edit address page mein bhi back arrow and home button laga doo

@abhi03ruchi ill work on the other pages too - payment methods , wishlist  and such by tomorrow  so pls dont assign em to someone else


Allow disabling of synched transcription transmission

Currently VoiceAssistant synchronizes transcription with audio playout. However, some would like the full transcription to appear immediately. we should make this an option

@davidzhao maybe think like karaoke, it's nice to have the line right away, but it's also nice to highlight the words as they are spoken.


TypeError: 'type' object is not subscriptable

🐛 Bug
After installation, whether via pip, poetry, or direct usage (./comet/cli/score.py), I get the following error:
$ PYTHONPATH=. python3 ./comet/cli/score.py
Traceback (most recent call last):
  File "./comet/cli/score.py", line 56, in <module>
    from comet.download_utils import download_model
  File "/home/mattpost/src/COMET/comet/__init__.py", line 19, in <module>
    from .download_utils import download_model
  File "/home/mattpost/src/COMET/comet/download_utils.py", line 26, in <module>
    from comet.models import available_metrics
  File "/home/mattpost/src/COMET/comet/models/__init__.py", line 17, in <module>
    from .regression.regression_metric import RegressionMetric
  File "/home/mattpost/src/COMET/comet/models/regression/regression_metric.py", line 26, in <module>
    from comet.models.base import CometModel
  File "/home/mattpost/src/COMET/comet/models/base.py", line 41, in <module>
    class OrderedSampler(Sampler[int]):
TypeError: 'type' object is not subscriptable

This is with Python 3.8.10, so relatively recent.
Environment
OS: Linux (ubuntu 20.04.3)
Packaging: all
Version: 1.0.1 (latest source)

Looks like I need torch >= 1.4. Somehow poetry install didn't pick up on this, or I have a venv problem. Maybe it should be added to requirements.txt?

Hi @mjpost,
I install unbabel-comet in a Python venv 3.7.12. I am also experiencing the same issue:
Traceback (most recent call last):
  File "/home/ubuntu/unbabel-comet-1.0.1/venv/bin/comet-score", line 5, in <module>
    from comet.cli.score import score_command
  File "/home/ubuntu/unbabel-comet-1.0.1/venv/lib/python3.7/site-packages/comet/__init__.py", line 19, in <module>
    from .download_utils import download_model
  File "/home/ubuntu/unbabel-comet-1.0.1/venv/lib/python3.7/site-packages/comet/download_utils.py", line 26, in <module>
    from comet.models import available_metrics
  File "/home/ubuntu/unbabel-comet-1.0.1/venv/lib/python3.7/site-packages/comet/models/__init__.py", line 17, in <module>
    from .regression.regression_metric import RegressionMetric
  File "/home/ubuntu/unbabel-comet-1.0.1/venv/lib/python3.7/site-packages/comet/models/regression/regression_metric.py", line 26, in <module>
    from comet.models.base import CometModel
  File "/home/ubuntu/unbabel-comet-1.0.1/venv/lib/python3.7/site-packages/comet/models/base.py", line 41, in <module>
    class OrderedSampler(Sampler[int]):
TypeError: 'type' object is not subscriptable

when I call  comet-score. I installed torch version 1.4.0, however the problem still persists.
Would you know how to fix this?
Thank you for your help.

I ended up with torch version 1.10.0. I suggest you double-check that comet-score isn't linking to an old version, maybe installed elsewhere. I think I solved my problems after running pip uninstall both as the regular user and root, and then reinstalling.

I just ran into this again today. There were two problems: first, comet 1.0.1 was installed in ~/.local/bin, and comet 0.1.0 in the system bin directory. I had to do pip uninstall unbabel-comet as both my regular user and root. Then, I got the error with pytorch 1.6.0. After upgrading to 1.10.2, all is well.

Yes, with torch version 1.10.0, it works very well. Would this mean that the requirements for the package should be adjusted?

I would think so. You might try submitting a PR referencing this issue.


Fix Binder filepath typo

Fixes https://github.com/OceanParcels/parcels/pull/1368#issuecomment-1581932278
Path should be docs/examples not parcels/docs/examples

Do you know if there's a way to have the binder default open with the filelist? It now opens with the landing page where users can select a clean notebook; but that is probably not what most users want. If they're new to Jupyter, they may not realise they have top click the file tab to see all the tutorials and examples

I don't think theres an option to have the tree open automatically. Maybe if we have the notebook open on parcels_tutorial.ipynb then they can know that its working, and see the folder icon in the top-left to explore further?

I don't think theres an option to have the tree open automatically. Maybe if we have the notebook open on parcels_tutorial.ipynb then they can know that its working, and see the folder icon in the top-left to explore further?

Yes, that's the way it used to be. I'll implement that option on oceanparcels.org; can you change it here on the parcels repo?

Done


Proposal: Ban half of the subscribers and half of the non-subscribers

So that the subscribers count appear halved and the final result is the same.

The problem is even if a subscriber is banned they are still a subscriber. You can't unsubscribe someone when you ban them. A banned user could still have their same front page and same notifications just couldn't participate on the subreddit. There is no outcome, except for admin intervention, where the banning can also coincide with unsubscription.


Removing dave from dave_sim.repos

At this point this is just to link to the comment in the merged PR so that it doesn't fall through the cracks.  @M1chaelM is probably best positioned to describe what needs to be done post 4.3.0 release.
See: https://github.com/Field-Robotics-Lab/dave/pull/199

This looks good, and we're going to try it out. It sounds like removing the dave repos from dave_sim.repos would ultimately make sense also, though we will do that later just for logistical reasons relating to our upcoming release.

This is an optional optimization, so I was going to ask in our meeting whether we want to do it.
The situation is that when vcs was set up, the person who created the dave_sim.repos file inlcuded the dave repo in the file. This leads to a little bit of redundancy because you have to retrieve the dave repo to get the dave_sim.repos file in the first place. Then when you use vcs to get the rest of the repos for the first time, you have to ignore the fact that you downloaded the dave repo already. After the first time, it's very easy to use vcs to update all the repos at once, including the dave repo.
We've been living with this tiny bootstrapping requirement and using the --skip-existing flag to avoid getting an error the first time we run vcs to clone all the repositories. Since we are usually not wiping out our workspace and starting from scratch, this is not a big problem.
Now that we are moving to a more sophisticated CI script that is going to rely on our dave_sim.repos file, having the dave repository in it makes the CI take a bit longer. The reason is that the CI script process is to automatically build and test the main repo (dave) and then build and test everything in the dave_sim.repos file. Since that file currently includes the dave repo itself, we end up testing it twice.
All of this is just a restatement of what our kind contributor pointed out when submitting the PR to add industrial_ci. There are two ways to avoid this redundancy and make the CI faster:

Remove the dave repo from dave_sim.repos. Our contributor says this is "preferred." If that's the case then it means we have probably not been using vcs in the best way, and there is some better workflow. This seems plausible but I'm not yet sure what that workflow is, so we need to learn a little more about vcs. So this change would affect our current workflow and installation instructions.
Keep dave_sim.repos the same, but create a new file, say dave_ci.repos that we use just for CI. This gets us the efficiency in the CI without need to update our own brains or processes. However, I agree with the contributor that this is not preferred. Having two versions of anything always incurs a synchronization cost and is very error prone, so I think there's a strong likelihood that somewhere down the line we'll update dave_sim.repos and forget to update dave_ci.repos and then have a CI workflow that doesn't test what we want it to test. So I'm hoping we can figure out the right way to use vcs and go with option 1.

Fixed the title since this issue is not about moving the dave_sim.repos file.

After some further testing, it looks like there is no good reason to keep the dave repo listed in the dave_sim.repos file. We still have the same install process but we no longer need the --skip-existing option in the initial import. After the initial import, vcs does not rely on the .repos file for things like pulls and updates. Instead, it automatically finds all the repositories under the present working directory by default, so it will include dave anyway.
In light of this, I'm going to make a simple PR to update the repo file.

Great description @M1chaelM - thank you.

Closing this since the PR is merged


Update title

Title on pages is still ShuffleboardElo. Let's update this and add the page the user is on as well.

I did a rails tutorial way back when that had a cool way of handling this. I'll push up a PR.

Fixed in https://github.com/kevinreedy/shuffio/pull/42


Problem of incompatibility in this extension and Microsoft C# extension

As the title states, there is a problem with this extension: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp
It appears that some snippets given by this extension along with .NET installed on my computer.
For example in a non initialized environment by running dotnet new (....)
This is what appears

sometimes there are snippets sometimes there are none.
However, when disabling or uninstalling this C# Snippets extension and keeping C# Microsoft extension the issue goes away and all the snippets appear when running dotnet...
There also seems to be about a 2-5 minutes gap upon installation or after uninstallation when the snippets error occurs.

Thank you @Pomid0rchik
I am going to investigate to know if I can do something or fix it.
The problem here seems a conflict between both extensions.
In my opinion, the C# Microsoft extension is too big and try to cover a lot of things.
Is not the first time that broke or corrupt other extension by the complexity of it.
My scope here is the C# Snippets Extension, not the other.
Anyway, as I said, I am going to investigate the conflict and fix the problem.
Thanks for the information.
Is very helpful.


[BUG] No documentation in Microsoft.Azure.ServiceBus

Describe the bug
In Visual Studio I see no XML documentation in the Microsoft.Azure.ServiceBus package.
Expected behavior
Visual Studio is supposed to show documentation for the classes and methods and such.
Actual behavior (include Exception or Stack Trace)
No documentation is presented.
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)

Write new SubscriptionClient("", "", "");
Then press the F12 key on the SubscriptionClient.

Environment:

Microsoft.Azure.ServiceBus 4.1.3
Windows 10, .NET Core 3.1.3 (3.1.201)
IDE and version : Visual Studio 16.5.4

P.S. Online documentation is missing too. https://docs.microsoft.com/en-us/dotnet/api/overview/azure/servicebus/client
The Chinese site have docs though. https://docs.azure.cn/zh-cn/dotnet/api/overview/servicebus/client

Our documentation pipelines had an issue at the time and have been fixed. Can you check and let us know if you still see the issue?
Thanks

@axisc I can confirm the issue is still present on the online documentation. Take a look yourself and you see the documentation is still missing.
The issue is present in version Microsoft.Azure.ServiceBus 4.1.3 released 2 months ago. Since there have been no new NuGet release since then I am unable to confirm whether this issue has been resolved.

@vanillajonathan Thanks for bringing this to our attention, I'll follow up with the team.

@axisc Any follow up?

@vanillajonathan  published v4.1.4 now. Can you try again?
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus?view=azure-dotnet is currently showing the docs (unless I'm missing something).

@asics, No the documentation website still only includes the classes, methods and such but without the description for each member. Compare the English docs website to the Chinese docs website and you will see that the Chinese is much more comprehensive and includes documentation for each member.

@jsquire ping!

Hi @vanillajonathan.  Unfortunately, in this case I'm only the first-level triage and don't have insight.   I'll need to defer to @axisc and @shankarsama for the current state and better context.

//cc: @scbedd

This is an issue with the .csproj file. It is missing the <DocumentationFile> property. For example:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor/src/Microsoft.Azure.EventHubs.ServiceFabricProcessor.csproj#L7
For projects starting with Azure.___ (i.e. "client" libraries as classified by the build) the <DocumentationFile> is added for free. In the case of libraries starting with Microsoft.___ ("data" libraries as classified by the build) the <DocumentationFile> directive needs to be manually specified.
@JoshLove-msft @jsquire

The necessary work was done in https://github.com/Azure/azure-sdk-for-net/pull/23824
@shankarsama When you release the next update for Microsoft.Azure.ServiceBus, the docs should be appearing as expected.


Update Connect-AzureAD.md

Per discussion with AAD team.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Connect-AzureAD.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


python310Packages.pycyphal: 1.15.2 -> 1.15.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pycyphal is: A full-featured implementation of the Cyphal protocol stack in Python
meta.homepage for python310Packages.pycyphal is: https://opencyphal.org/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.15.4 with grep in /nix/store/8v0bsmd8gns9hwwpja1z6bq8k355dcjr-python3.10-pycyphal-1.15.4
found 1.15.4 in filename of file in /nix/store/8v0bsmd8gns9hwwpja1z6bq8k355dcjr-python3.10-pycyphal-1.15.4

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

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
python310Packages.pycyphal
python311Packages.pycyphal
yakut

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8v0bsmd8gns9hwwpja1z6bq8k355dcjr-python3.10-pycyphal-1.15.4 \
  --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 python310Packages.pycyphal https://github.com/r-ryantm/nixpkgs/archive/6f5526bdb8fc07905aa925fe0b365ce8218f7e54.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/6f5526bdb8fc07905aa925fe0b365ce8218f7e54#python310Packages.pycyphal

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8v0bsmd8gns9hwwpja1z6bq8k355dcjr-python3.10-pycyphal-1.15.4
ls -la /nix/store/8v0bsmd8gns9hwwpja1z6bq8k355dcjr-python3.10-pycyphal-1.15.4/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.
Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

python310Packages.pycyphal
python311Packages.pycyphal
yakut

Maintainer pings

Already on staging-next.


Add missing ID wrapper for cohort modules

accelerator.cohort_modules has an ID column, but we were missing a type-safe
wrapper for it.

Merge activity

Mar 12, 3:22 PM EDT: @sgrimm started a stack merge that includes this pull request via Graphite.


List adding accordion section headers

Summary

Enhance list to be able to add expanding & collapsing section-headers as a new subcomponent list type with its own props.
Will follow and extend work done for #1320 static section-headers
will be fully themeable using existing patterns
will be similar/related to #1270 stand-alone Section Header

Issue Type

[x] New Feature
[x] Enhancement
[ ] Bug
[ ] Other

Expected Behavior
Screenshot of new expanding/collapsing section headers in list (visual details provided separately):

Tech Design terra-list/lib/(add)
React Props:
(add table or list changes)
Themeable Styles:
(add)
Responsiveness:
(add)
Interaction States:
(add)
Accessibility:
(add)
i18N / Bi-directionality:
(add)
Example:
(add if needed)
Notes:
(add if needed)
Changes:
(add if needed)
Questions:
(add if needed)

Duplicate of #996?

Will this include infinite list support?

@noahbenham The revised design of the list sections will be supported within the infinite list, but large list sections have the ability to hurt reduce the efficiency of the infinite list. As such, I don't know if we have a recommended usage for this yet.

Additional design considerations:
No animations of the height value should be introduced as both framerate and react rendering problems would be introduced. Animations would also prevent section usage within the infinite list.
Collapsed sections should be virtualized. Large data sets should take advantage of the ability to increase page performance when collapsing sections.
The toggled collapsed state should be externally managed, thus sections are controlled components.
List should have no concept of collapsed state. The only way this should be introduced is if collapsed state needs to be linked to other sections as a consistent design pattern. Similar to selection logic. Though a helper function could likely help a consumer instead of state.

Update on the design, infinite list will be able to have headers and subheaders, but collapsible sections will not be supported within the infinite list.


what if our timetable differs from the requested section timetable (while part of a larger trip)

When requesting an offer using tripspecification, it can happen that the provider timetable have a slightly different solution than the one in the specification. What should we do in this case ? what is the expected behavior

For DB, a slight different delay should be accepted. Rationale is avoid failed booking for divergences that actually have not impact. Responsibility of validating the final combination of offers is to the consumer
For benerail, exact match is needed to avoid proposing impossible trips. Seen as a consequence of choosing the tripspecification approach. To get variations, the tripsearch should be used instead
Trenitalia considers they could end up with completely different proposal, but this is exactly why tripspecification exists: to get a specific trip

questions:

what are the acceptable deviation for still considering the tripspecification to be equivalent ? different train number,different traintype ? 1, 2 minutes more ? both deviations at the same time ? => is IR 554 departing at 10:14 and arriving at 11:04 the same as BUS R554 departing at 10:06 and arriving at 11:08 (which is a plausible swap in case of works on the rails)
since tripspecification then also requires reconciliation, what is the added value.difference with tripsearch ?

not receiving alternative routes

still allows requesting routes that would not be part of the standard response set of the provider => requestor has control on proposed routes

Our (PKP) first impression was that tripSpecification is for "manual mode": a short path skipping trip planning step (like form A-to-B points trip with obvious or on-boarded train regional validity) for employee-operated distribution channels (like handhelds for onboard staff) and does no need for any validation with timetable.

tripSpecification is used in case the consumer runs its own search engine for journeys. This is the main use case between railways and also in many cases with ticket vendors. It is essential to allow this use case to enable a neutral search for journeys not biased by carriers.

@Azurab It is also used for manual entry when the purchaser needs exact train numbers, e.g. when requesting standalone reservations.


merge from arlac77/template-arlac77-github,arlac77/template-esm-only

package.json

chore(package): add ^17.0.8 remove ^17.0.7 (devDependencies.semantic-release)

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


if url is "https://" websocket client does not use TLS on connection

I note that a url beginning with "wss://" causes an SSL connection to be made, but a url beginning with "https://" causes an http connection to be made from the WebSocket.Client

WebSocket URIs have "ws" or "wss" scheme and not "http" or "https". You MUST NOT use "http" or "https".

In that case, I think that WebSocket.Client should assert or throw an Error (with a useful message).....as opposed to sending an http request, which is what it does now

Yes, it may do it. But wrong API usage may produce undetermined behavior. There is absolutely zero reasons to use a HTTP schema in a API that expects a WebSocket schema.


Merge inference track

Before submitting (must do checklist)

[x] Did you read the contribution guide?
[x] Did you update the docs? We use Numpy format for all the methods and classes.
[x] Did you write any new necessary tests?
[x] Did you update the CHANGELOG?

Proposed Changes

Closing issues

Codecov Report

Merging #979 (4368c62) into master (0b19dff) will increase coverage by 0.49%.
The diff coverage is 95.86%.

@@            Coverage Diff             @@
##           master     #979      +/-   ##
==========================================
+ Coverage   85.43%   85.92%   +0.49%
==========================================
  Files         148      151       +3
  Lines        7962     8243     +281
==========================================
+ Hits         6802     7083     +281
  Misses       1160     1160

Impacted Files
Coverage Δ

etna/models/base.py
86.44% <87.50%> (-1.16%)
:arrow_down:

etna/models/nn/deepar.py
98.93% <87.50%> (-1.07%)
:arrow_down:

etna/models/nn/tft.py
99.10% <87.50%> (-0.90%)
:arrow_down:

etna/ensembles/direct_ensemble.py
94.54% <88.88%> (-1.11%)
:arrow_down:

etna/ensembles/voting_ensemble.py
94.25% <88.88%> (-0.62%)
:arrow_down:

etna/models/mixins.py
95.65% <95.65%> (ø)

etna/pipeline/base.py
94.64% <95.83%> (+0.11%)
:arrow_up:

etna/models/deadline_ma.py
94.44% <96.05%> (+7.14%)
:arrow_up:

etna/ensembles/stacking_ensemble.py
96.46% <96.15%> (-0.48%)
:arrow_down:

etna/pipeline/mixins.py
97.95% <97.95%> (ø)

... and 19 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


ci.yaml validation check never got scheduled

https://github.com/flutter/flutter/pull/104257

When I moved it from draft->ready for review the tests were scheduled

Seems a temporary github request error:
2022-05-20 06:45:42.440 PDT
Applying framework repo labels for: owner=flutter repo=flutter and pr=104257
2022-05-20 06:45:42.584 PDT
GitHub Error: Requested Resource was Not Found
#0      GitHub.handleStatusCode (package:github/src/common/github.dart:444:9)
#1      GitHub.request (package:github/src/common/github.dart:409:7)
<asynchronous suspension>
#2      PaginationHelper.fetchStreamed (package:github/src/common/util/pagination.dart:38:20)
<asynchronous suspension>
#3      PaginationHelper.jsonObjects (package:github/src/common/util/pagination.dart:95:5)
<asynchronous suspension>

Please reopen if this still happens.


login loop

I've installed cockpit on shared hosting site domain.com - I'm getting a loop whereby every time I login it returns to the login page.
It's located in a sub domain 'cms.mysite.com' - If I navigate to to this url I get "You don't have permission to access / on this server."
I've tried entering this code on my login.php and got no response:
<?php
echo "
";//avoid pre to get centered (body CSS)
print_r($_SERVER['DOCUMENT_ROOT']); // may differ from __DIR__
echo "\r\n";
print_r(get_defined_constants(true)['user']); // list all user constants
print_r($app->config['paths']); // list all config paths
echo "
";
?>

I've also tried the following defines.php:
<?php
define('COCKPIT_BASE_URL', '/cms');
define('COCKPIT_BASE_ROUTE', '/cms');
define('COCKPIT_DOCS_ROOT', dirname(__DIR__));
?>

Any help would be appreciated.

Did you try to uncomment RewriteBase / or e. g. change it to RewriteBase /cms?
https://github.com/agentejo/cockpit/blob/next/.htaccess#L38

Hi @raffaelj yes this sorted my issue.


Create assets folder with the avatar

New folder which will contain pictures from Bulka's instagram.

Used my regular avatar, seems to be working fine.


Retrieve URI with get-nevergreen return error. THe app is CiscoWebex

It appears that the help.webex.com url is not being that reliable - It worked initially for me, but then it didn't:
I've tried visiting in Firefox:

The site could be temporarily unavailable or too busy.

I guess we need to wait for them to fix their site.
Update - It is now working again
N.B. When I did get to the page, I opened the Downloads page and reviewed the 'Learn More' page I've noticed WebEx only supports 64-bit installs:

For Webex App for Windows, you must have Windows 10 or later. We only support Windows 64-bit, to check your system type:...

So I guess the Get-CiscoWebex.ps1 script needs updating to remove the 32-bit references (comment out or remove lines 3 & 6)

@DanGough Cisco WebEx no longer supports x86, so the above modification needs making to the Get-CiscoWebEx script to stop NeverGreen searching for an x86 installer.
I suspect the Cisco Release Notes page might be unavailable from time-to-time, so this was a transcient issue

Fixed in Dev!


Setup GH actions for packaging on PyPI

Generate the actions to build the package and sent the packages to PyPI.

Hi @fpatz, can you please add the secrets for the PyPI account to use with twine library for uploading the package?
or can you give the access to the secret sections to configure my credential for the test.pypi.org, then we can change to the real credentials.
Regards!

Hi @fpatz, can you please add the secrets for the PyPI account to use with twine library for uploading the package?
or can you give the access to the secret sections to configure my credential for the test.pypi.org, then we can change to the real credentials.
Regards!

Hi Mario, I gave you Admin access. Will be back at work on Monday.

Hi Mario, I gave you Admin access. Will be back at work on Monday.

The packaging is prepared to upload the project to the PyPI, it only requires to update the credentials on the secrets section.

The packaging is prepared to upload the project to the PyPI, it only requires to update the credentials on the secrets section.


VoipCallCoordinator.RequestNewIncomingCall: Lacking details on what kinds of URI schemes are supported

Relevant document page:

Windows.ApplicationModel.Calls.VoipCallCoordinator.RequestNewIncomingCall

For the contactImage, brandingImage, and ringtone parameters are there any restrictions on the kinds of URIs that are accepted? For example, do file, ms-appx, and https URIs all work?
I ask because I was struggling with ms-appx and http URIs. Finally, I got a URI with a file scheme to work. I suspect the other schemes are not supported. If I am correct about this restriction, it would be great to document it.
Adam Comella
Microsoft Corp.

Thanks @rigdern for the feedback. @GrantMeStrength, can you address?

Let me check..

Hey Adam - Thanks for taking the time to let us know about this. Due to the sheer volume of feedback in our repo, we're currently prioritizing new issues. I'm going to close this but if it's still impacting you or others, feel free to leave a comment and we can keep it open and dig in. Alternatively, you can submit a new issue or pull request with the latest details. Thanks so much and apologies for the delayed communication here.


Gradle Build issue

I am facing Gradle Build Issue in ionic cordova build android --prod, please help
I am using gradleVersion 4.1.0
Environment:
Ionic version : 4.2.1
getting error at  compile "com.android.support:support-v4:+"
ERROR Log:
FAILURE: Build failed with an exception.

What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find support-v4.aar (com.android.support:support-v4:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/27.1.1/support-v4-27.1.1.aar

I had the same issue today.
After removing and adding the platform script tried to fetch that package again - successfully.

I tried removing and adding the platform again, but still having the same issue.

I have the same Issue!
ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

Facing the same issue here for debug builds.
This started happening right after maven downloaded updates during a build for the com.android.support library.
Here is a snippet of the ionic cordova build android --verbose output:

What went wrong:

Could not resolve all files for configuration ':app:debugCompileClasspath'.

Could not find support-v4.aar (com.android.support:support-v4:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/27.1.1/support-v4-27.1.1.aar
Could not find support-vector-drawable.aar (com.android.support:support-vector-drawable:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-vector-drawable/27.1.1/support-vector-drawable-27.1.1.aar
Could not find livedata-core.aar (android.arch.lifecycle:livedata-core:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/livedata-core/1.1.0/livedata-core-1.1.0.aar
Could not find viewmodel.aar (android.arch.lifecycle:viewmodel:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/viewmodel/1.1.0/viewmodel-1.1.0.aar
Could not find runtime.aar (android.arch.core:runtime:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/runtime/1.1.0/runtime-1.1.0.aar

I have some problem too.
when i build android ,
==========================
1 actionable task: 1 executed
Subproject Path: CordovaLib
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_99qz9mnm558puxf3ll78adnly.run(/Users/wuxiran/Development/5.1/56nrs.ipp.mobile.ionic/platforms/android/build.gradle:143)
Configuration 'compile' in project ':' is deprecated. Use 'implementation' instead.
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
:preBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:processDebugManifest
===========================================
it will wait in this too long.  It took me 2h wait it print some issues .
some log
=========================

Could not resolve com.android.support:support-v4:27.+.
Required by:
project :
Could not resolve com.android.support:support-v4:27.+.
Failed to list versions for com.android.support:support-v4.
Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
Could not HEAD 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
Connect to <IP_ADDRESS>:1086 [/<IP_ADDRESS>] failed: Connection refused
Could not resolve com.android.support:support-v4:27.+.
Failed to list versions for com.android.support:support-v4.
Unable to load Maven meta-data from https://maven.google.com/com/android/support/support-v4/maven-metadata.xml.
Could not HEAD 'https://maven.google.com/com/android/support/support-v4/maven-metadata.xml'.
Connect to <IP_ADDRESS>:1086 [/<IP_ADDRESS>] failed: Connection refused
Could not resolve com.android.support:support-v4:27.+.
Failed to list versions for com.android.support:support-v4.
Unable to load Maven meta-data from https://maven.google.com/com/android/support/support-v4/maven-metadata.xml.
Could not HEAD 'https://maven.google.com/com/android/support/support-v4/maven-metadata.xml'.
Connect to <IP_ADDRESS>:1086 [/<IP_ADDRESS>] failed: Connection refused
Could not resolve com.android.support:support-v4:27.+.
Failed to list versions for com.android.support:support-v4.
Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
Could not HEAD 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
Connect to <IP_ADDRESS>:1086 [/<IP_ADDRESS>] failed: Connection refused

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Get more help at https://help.gradle.org

BUILD FAILED in 1h 55m 11s
at ChildProcess.whenDone (/Users/wuxiran/Development/5.1/56nrs.ipp.mobile.ionic/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Socket.stream.socket.on (internal/child_process.js:336:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:561:12)
(node:2803) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2803) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
==============================
ionic info

Ionic:
ionic (Ionic CLI) : 4.2.1
System:
NodeJS : v8.12.0
npm    : 6.4.1
OS     : macOS High Sierra

i have'n reinstall gradle4.1.0-all  but it doesn't work.

i faced the same issue today, it was basically that gradle was not able to find this dependency.
So in order to resolve it i changed the following things in build.gradle files. There are two build.gradle files in ionic project.
change the order of repositories in both of them, take jcenter() to the bottom and add google() to the top and issue gets resolved, build successfully.
buildscript {
repositories {
mavenCentral()
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'
}

}
// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
repositories {
mavenCentral();
google();
jcenter()
}
}

Actually I have tried repositories google() also, but it doesn't work work earlier, and now it is working properly without using google() repositories, @JacoRoos , can u try without using google() in gradle?

 How did you manage to determine this?

i figured that it dependencies are downloading from different centres based on these calls. As the dependency needed to be download was moved from jcenter so i decided to move maven above so that it uses maven for the downloading this dependency and if maven fails then use google. etc etc

@sachinsemlety
I didn't copy his code, I simply moved my jcenter reference below my maven reference as hy suggested. It seems these dependency references are specific to each project. This is what my files look like now (I didn't add or remove anything, just moved the refs around):
buildscript {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
}
allprojects {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
}

Moving the reference worked for me as well. Thanks guys.

i faced the same issue today, it was basically that gradle was not able to find this dependency.
So in order to resolve it i changed the following things in build.gradle files. There are two build.gradle files in ionic project.
change the order of repositories in both of them, take jcenter() to the bottom and add google() to the top and issue gets resolved, build successfully.
buildscript {
repositories {
mavenCentral()
maven {
url "https://maven.google.com"
}
jcenter()
}
}
allprojects {
repositories {
mavenCentral();
google();
jcenter()
}
}

THATS WORKED FOR ME!

@wuxiran We faced the same problem, using Jenkins to build the APK.
We temporarily solved this problem by injecting the "google()" at the top of the repositories in build.gradle by adding this to the Jenkins script
sh '''                     awk '/repositories/{print;print "google() ";next}1' build.gradle > build.gradle.tmp && mv build.gradle.tmp build.gradle '''

Thanks for your issue! This issue is related to Cordova and Cordova plugins and not Ionic. So I close this here


[tool_crash] FileSystemException: Cannot create link, OS Error: Incorrect function., errno = 1

Command
flutter pub add shared_preferences

Steps to Reproduce

just execute the command

Full output
Oops; flutter has exited unexpectedly: "FileSystemException: Cannot create link, path =
'[project_directory]\windows\flutter\ephemeral.plugin_symlinks\path_provider_windows' (OS Error: Incorrect function.
, errno = 1)".
A crash report has been written to [project_directory]\flutter_08.log.
Logs
FileSystemException: Cannot create link, OS Error: Incorrect function.
, errno = 1
#0      _Link.throwIfError (dart:io/link.dart:263:7)
#1      _Link.createSync (dart:io/link.dart:184:5)
#2      ForwardingLink.createSync (package:file/src/forwarding/forwarding_link.dart:20:16)
#3      ForwardingLink.createSync (package:file/src/forwarding/forwarding_link.dart:20:16)
#4      _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1012:12)
#5      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:947:5)
#6      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1038:5)
<asynchronous suspension>
#7      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:316:5)
<asynchronous suspension>
#8      PackagesInteractiveGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:352:5)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)

[✓] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19043.1288], locale en-US)
    • Flutter version 2.5.3 at d:\soft\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\ipolu\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31729.503
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19043.1288]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 95.0.4638.69
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 93.0.961.52

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 18116933e77adc82f80866c928266a5b4f1ed645
Plugins
path_provider_linux-2.1.0
path_provider_windows-2.0.3
shared_preferences-2.0.8
shared_preferences_linux-2.0.2
shared_preferences_macos-2.0.2
shared_preferences_web-2.0.2
shared_preferences_windows-2.0.2

The reason is a project located on a VeraCrypt drive.
It is my fail.


req serializer can generate way too much output

See https://github.com/pinojs/express-pino-logger/issues/14

I've used slightly different approach for dealing with this problem:

Firstly, I have two serializers:

reqFull — almost identical to default req, but with addition of req.id
req — simplified serializer which prints only request id

Upon receiving request, app is generating request ID and logging all default req stuff together with that id (using reqFull serializer)
After that, request is being processed. When controllers are trying to log something, that records are not containing anything excessive, just request id (which can be used later to collect all records about that request processing)
When request processing is finished, it logs final line with res, responseTime and request id

In the end, you're still have ability to join all log records which are referred to one transaction and logs are not overloaded with all that duplicated headers and stuff.

@resure that's really nice - thanks for the insight
First we need to fix the over-logging issue, but having a full request and id only serializers bundled
with pino-http (et. al.) could be a really nice addition, something we could recommend in the documentation as a useful pattern – PR welcome @resure (although I'm probably going to quibble over naming things when you do)

@resure  Sorry to resurrect the old thread, but how did you in code achieve two req (reqFull, req) serializers?
I'm trying to achieve the same result, as I find it overkill to include the same request for each child log. Request id is just enough for debugging.


Error get params DETR/ Deformable DETR

Despite my attempts to modify, also just testing with the basic config detr file.
Maybe this issue has already been raised?
mmdet==2.13.0
mmcv=1.3.3
python tools/analysis_tools/get_flops.py configs/detr/detr_r50_8x2_150e_coco.py

/home/bluav/mmdetection/mmdet/models/backbones/resnet.py:400: UserWarning: DeprecationWarning: pretrained is a deprecated, please use "init_cfg" instead
  warnings.warn('DeprecationWarning: pretrained is a deprecated, '
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Warning: variables __flops__ or __params__ are already defined for the moduleReLU ptflops can affect your code!
Traceback (most recent call last):
  File "tools/analysis_tools/get_flops.py", line 81, in <module>
    main()
  File "tools/analysis_tools/get_flops.py", line 71, in main
    flops, params = get_model_complexity_info(model, input_shape)
  File "/home/bluav/.conda/envs/open-mmlab/lib/python3.7/site-packages/mmcv/cnn/utils/flops_counter.py", line 104, in get_model_complexity_info
    _ = flops_model(batch)
  File "/home/bluav/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/bluav/mmdetection/mmdet/models/detectors/single_stage.py", line 48, in forward_dummy
    outs = self.bbox_head(x)
  File "/home/bluav/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
TypeError: forward() missing 1 required positional argument: 'img_metas'

Thanks for your report, we will fix this bug in #5654. But the multi-head attention in DETR and Deformable DETR does not support flops computing. So, even we fix this bug, the result you get is still incorrect. Do not use the result in your paper.

Thanks @RangiLyu, okay for flops, after testing the number of parameters seems correct.


I am using JTAppleCalender version 7.0

I want to make all date only on Friday and Saturday for all the months with a blue background while the rest with another color without selection.
Also I want to make entries in a specific date when I click on it. Can this be done using JTApple Calendar?

What is the problem?

closing issue until further user input

I have already made an input an hour ago

I am sorry. I missed it. reading it now, and re-opening

can you join me here? -> https://gitter.im/patchthecode/JTAppleCalendar
Its faster.

issue resolved.


Evaluate Comparison Expressions with Constant Operands during Compilation

This patch supports evaluation of comparison expressions with constants as operands during compile time.
Fixes #755

As a first time contributor to this project, I'd like to ask some questions:

How do I add tests for my patch?
Is there any formatting rules that I have to follow, or do we use any tools like clang-format?

I am new to rust, so if you find anything that goes against conventional programming style in rust, please let me know!

Is there any formatting rules that I have to follow, or do we use any tools like clang-format?

Have you checked our contributing guide https://solang.readthedocs.io/en/latest/contributing.html?

One way to write a test for this is to add test to tests/codegen_tests/.. which does something like the following:
contract C {
     function foo() public returns (bool) {
           int a = 100;

           return a < 200;
     }

     function bar() public returns (bool r) {
           int a = 100;
           int b = 200;

           r = a < b;
     }
}

Make sure the test ensures that the code generation constant folds the expressions and generates false for both functions.

I've added a similar test case as you've suggested, and when I try to execute it as:
<path-to-solang> compile --target polkadot --emit cfg

I find ty:bool %r = (signed less int256 100 < int256 200) which suggests to me that my optimization did not kick in. I'm not sure if cfg is the right place to investigate the results of optimizations. I also tried to emit llvm-ir to inspect (with --emit llvm-ir), however, nothing was printed to the console when I do so.


Backport Upgrade Typedoc Version

Update Typedoc version to v0.22
Fixed related errors
Fixed broken links

See #2670

@williamkbentley can you remove the typedoc exclusion from the audit.js file?

@williamkbentley can you remove the typedoc exclusion from the audit.js file?

Removed all unnecessary exclusions


tinyusb: add 'extern C' bit to tusb_console.h (IDFGH-4641)

Public headers need the "if __cplusplus, extern C" boilerplate. Otherwise, C++
sources which include the header will look for a name-mangled symbol and fail
at link time.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for your contribution.

Thanks for your contribution.


HardFault when setting the system clock settings

I am using a blue pill with the default settings from this repository. When testing I noticed that whenever I set the system clock to anything else than the default settings, the code panics.
Here's the simple example I came up with
#![no_main]
#![no_std]

#[macro_use(entry, exception)]
extern crate cortex_m_rt as rt;
extern crate cortex_m_semihosting as sh;
extern crate panic_semihosting;

extern crate stm32f1xx_hal as hal;

use hal::prelude::*;
use rt::ExceptionFrame;

#[entry]
fn main() -> ! {
    let dp = hal::stm32::Peripherals::take().unwrap();

    let mut flash = dp.FLASH.constrain();
    let rcc = dp.RCC.constrain();

    rcc
        .cfgr
        .sysclk(8.mhz()) // Removing this line will make it work!
        .freeze(&mut flash.acr);

    loop {}
}

#[allow(non_snake_case)]
#[exception]
fn HardFault(ef: &ExceptionFrame) -> ! {
    panic!("{:#?}", ef);
}

My Cargo.toml:
[package]
# ...

[package.metadata]
chip = "STM32F103C8"

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = "0.6.13"
cortex-m-semihosting = "0.3.7"
panic-semihosting = "0.5.6"
embedded-hal = "0.2.5"

[dependencies.stm32f1xx-hal]
version = "0.7.0"
features = ["rt", "stm32f103", "medium"]

[profile.release]
codegen-units = 1
debug = true
lto = true

When debugging I am presented the following error:
Info : halted: PC: 0x08006408
panicked at 'ExceptionFrame {
    r0: 0xfffffffe,
    r1: 0x00000002,
    r2: 0x003d0900,
    r3: 0x20004ee4,
    r12: 0x00000000,
    lr: 0x08001e05,
    pc: 0x080026ee,
    xpsr: 0x41000000,
}', src/main.rs:169:5

Is there anything more I can try? Might this be related to #311?
Another simple way to break things in a reproducible way is to use the following lines in the blinky example instead of the clock configuration there:
    rcc
        .cfgr
        .sysclk(8.mhz()) // Removing this line will make it work!
        .freeze(&mut flash.acr);

A blue pill is a great cheap board. As it is popular, quality depends a lot of the supplier.
another solution in this class is the WeAct Mini-F4. https://m.aliexpress.com/item/1005001456186625.html

Thank you both! I think this can be closed, it seems I was just using it wrong.

I'll go ahead and re-open this since this crate is designed to have safe abstractions to avoid hard faults and panics, at least until we can figure out what the underlying issue is and rule out non-hardware problems.
I've also not had any issues with the blue pills I've tried, but of course, your mileage may vary

Here's another possibly similar issue. Experimenting with stm32f107vct6 board that I took from an old 3D printer. It has a 25Mhz crystal but when I try to use that value freeze panics.
When STM32CubeMX sets up clock tree for 25Mhz it ends up switching prediv1 source (via prediv1 source mux) from using HSE directly to a pll2clk, perhaps that's the missing part.
(gdb) frame
#0  stm32f1xx_hal::rcc::CFGR::freeze (self=..., acr=<optimized out>)
    at /home/andrey/.cargo/registry/src/github.com-1ecc6299db9ec823/stm32f1xx-hal-0.7.0/src/rcc.rs:244
244	        assert!(sysclk <= 72_000_000);
(gdb) list
239	            let pllmul = cmp::min(cmp::max(pllmul, 4), 9);
240
241	            (Some(pllmul as u8 - 2), pllsrcclk * pllmul)
242	        };
243
244	        assert!(sysclk <= 72_000_000);
245
246	        let hpre_bits = self
247	            .hclk
248	            .map(|hclk| match sysclk / hclk {
(gdb) print sysclk
$1 = 100000000
(gdb) next
halted: PC: 0x080022b0
halted: PC: 0x080025ec
halted: PC: 0x080025f0
halted: PC: 0x080025f4
halted: PC: 0x080025f8
halted: PC: 0x080025fc
halted: PC: 0x080025fe
halted: PC: 0x080025ac
halted: PC: 0x08002856

Breakpoint 3, panic_halt::panic (_info=0x2000fec0)
    at /home/andrey/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-halt-0.2.0/src/lib.rs:32
32	    loop {
(gdb) bt
#0  panic_halt::panic (_info=0x2000fec0)
    at /home/andrey/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-halt-0.2.0/src/lib.rs:32
#1  0x080028ec in core::panicking::panic_fmt () at library/core/src/panicking.rs:92
#2  0x08002884 in core::panicking::panic () at library/core/src/panicking.rs:50
#3  0x080025b0 in stm32f1xx_hal::rcc::CFGR::freeze (self=..., acr=<optimized out>)
    at /home/andrey/.cargo/registry/src/github.com-1ecc6299db9ec823/stm32f1xx-hal-0.7.0/src/rcc.rs:329
#4  0x08000ab8 in blink::init (cx=...) at src/bin/blink.rs:43
#5  0x08001cda in blink::APP::main () at src/bin/blink.rs:26
(gdb)


Provide missing values in BS‘ source

Source with missing values:
https://data.bs.ch/explore/dataset/100073/table/?sort=timestamp
Current result:
https://github.com/openZH/covid_19/blob/master/fallzahlen_kanton_total_csv_v2/COVID19_Fallzahlen_Kanton_BS_total.csv

Update:

Missing values are provided by BS‘ source
Deleted two lines with incomplete data in BS file in our repo
Scraper will import data from BS‘ source according to schedule

Update:

Missing values are provided by BS‘ source
Deleted two lines with incomplete data in BS file in our repo
Scraper will import data from BS‘ source according to schedule

Successfully imported. Resolved.

Successfully imported. Resolved.


Fixes - Episode II

Some stuff I didn't see yesterday night (#1348)

Context param for messages.flash on UsersEdit https://github.com/TelescopeJS/Telescope/commit/1d047b92e00fcc9e07aa85eaa53299fbe96ebdf5
Commenting Messages & ModalTrigger not used anymore https://github.com/TelescopeJS/Telescope/commit/80544da87179e0f3d34c02c69beac97dea450398
contextTypes messages on PostsNewButton so the ModalTrigger and PostsNewForm benefit of it! => contextTypes actions, events, messages on ModalTrigger (enable post delete) https://github.com/TelescopeJS/Telescope/commit/cfb720cdcf2dad2495e7c89722a89018db3a8b9a
In the row, add a success message on post edit 😌  https://github.com/TelescopeJS/Telescope/commit/6dabd211936a465053f96e9457a28afa65f8318f

So this PR is about context in the most, however we had this discussion on Slack about a bug when autoSubscribe settings is true, here is a view of my fix:
https://gist.github.com/xavcz/7ab1c2a454534fee6889bdc4703852aa
I didn't commit it yet. If you think it's ok, I add it to this PR 👍

Great work as always ;)

Cheers!!! ☺


[BUG] Retriever Servo dissapearing

Description:
-I have an autosorter via Item Pipe MK1, retriever servos (fulled filters) and around 45-55 chests and 4 machines connected. Retrieval servos started visually dissapearing from pipes, but they still worked, they pull items and if I right click them, I can see the items in filter. Worked for few days, after few server restarts It stopped working. I can still click the item pipe and the retrieval servos filter inventory appear, but its filter inventory is empty.  If I tried to add an item to the filter of this "ghost servo" it doesn't pull items. The best I would describe it, I can still access the inventory on the pipe, but the servo isn't there anymore so it doesn't work.
Steps to Reproduce:

Having over 50 retrieval servos with item pipes and servos filter filled in 1 chunk and then restarting the game.

Technical Information:

Minecraft: 1.20.1
Fabric API: 0.16.5
Industrial Revolution: indrev-1.16.7-BETA
Modpack: Prominence II RPG Hasturian Era (3.0.11)

Logs:

None

Details:
 - all the pipes have invisible retrieval servo
 - right click on them opens the filter
 - after destroying the filters doesn't work

-after destroying the filters doesn't drop* should be the comment under last image


feat: Runtime output buffer optimization

Description
Latency hiding by creating the output tensor for next output buffer
Fixes #3275
Type of change
Please delete options that are not relevant and/or add your own.

New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines of this project (You can use the linters)
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas and hacks
[ ] I have made corresponding changes to the documentation
[ ] I have added tests to verify my fix or my feature
[x] New and existing unit tests pass locally with my changes
[ ] I have added the relevant labels to my PR in so that relevant reviewers are notified

@keehyuna I believe that @peri044 has some shape inference for TRT engines utility in one of his PRs can we make sure we use that or are compatible with it?

@keehyuna I believe that @peri044 has some shape inference for TRT engines utility in one of his PRs can we make sure we use that or are compatible with it?

I think this PR doesn't have to do with fake tensor as output shape was inferred from trt function(getTensorShape/get_tensor_shape) for both c++ and python runtime.


Add support for Yarn

Yarn support requires an autogenerated yarn.lock file. This commit also
lets Travis use Yarn.

This change simply adds the option to install and manage the dependencies for this repo using Yarn instead of npm. If you prefer using npm you will not notice anything different.
Installing all dependencies using npm (nothing cached): 57.50s :bike:
Installing all dependencies using Yarn (nothing cached): 18.09s :car:

This change simply adds the option to install and manage the dependencies for this repo using Yarn instead of npm. If you prefer using npm you will not notice anything different.
Installing all dependencies using npm (nothing cached): 57.50s :bike:
Installing all dependencies using Yarn (nothing cached): 18.09s :car:


switch coordination server from jx into node

This change is

PR is added to the queue for testing as 1. task. (e6abbfd)

Hi @larryonoff, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

PR is added to the queue for testing as 2. task. (89fd3c3)

PR is added to the queue for testing as 3. task. (dea403b)

PR is added to the queue for testing as 2. task. (f54d26d)

PR is added to the queue for testing as 1. task. (a35ac96)

PR is added to the queue for testing as 1. task. (6533460)

Test (Fail) 88106858 build is completed (6533460)
See https://github.com/ThaliTester/TestResults/tree/881068586533460_switch_coordination_server_from_jx_into_node_larryonoff/ for the logs

PR is added to the queue for testing as 1. task. (51ee2f9)

Test (Success) 88106858 build is completed (51ee2f9)
See https://github.com/ThaliTester/TestResults/tree/8810685851ee2f9_switch_coordination_server_from_jx_into_node_larryonoff/ for the logs

Test<PHONE_NUMBER>ee2f9(51ee2f9) has failed
See https://github.com/ThaliTester/TestResults/tree/8810685851ee2f9_switch_coordination_server_from_jx_into_node_larryonoff/ for the fail logs


Fix example code

Or I miss something ?

Coverage remained the same at 58.326% when pulling 3d305b1f082afd4bc8edf376c8e970256687f16a on tyx:patch-1 into efd477d9d3b6f10a8e9aab7653ec9cfc4e463971 on icicleio:master.

Your PR is against the master branch, which is the 2.0 series of Icicle that is PHP 7+. You are supposed to use return to return values (and yield from to await on things).

my bad


Build and publish Docker images

We should build and publish docker images for the services here in the same manner we do for the API.

Thanks for making an issue for this!


x86_64: Thread Local Storage pointer not setup before first thread started

When CONFIG_THREAD_LOCAL_STORAGE is enabled, x86_64 doesn't initialize the thread local storage pointer (via %fs) before starting the first thread. If tracing is enabled, then the first call to sys_trace_k_thread_switched_out will attempt to fetch the current (i.e. outgoing) thread and crash.
Please also mention any information which could help others to understand
the problem you're facing:

I'm debugging picolibc integration, which selects THREAD_LOCAL_STORAGE for architectures which support it. This is required to use picolibc from the toolchain as that will use TLS if available.
Zephyr switches to the initial thread using the same path as any other context switch, and that invokes the switched_out trace points. Those functions generally want to reference the old thread pointer, which is stored in a TLS variable used by k_current_get. If TLS is not initialized, references to that variable will crash.

To Reproduce
Steps to reproduce the behavior:

scripts/twister -p qemu_x86_64 --test samples/subsys/tracing/sample.tracing.transport.uart
cd twister-out/qemu_x86_64/samples/subsys/tracing/sample.tracing.transport.uart
sed -i 's/# CONFIG_THREAD_LOCAL_STORAGE is not set/CONFIG_THREAD_LOCAL_STORAGE=y/' zephyr/.config
mkfifo qemu-fifo; cat qemu-fifo & ninja run
See error

Expected behavior
The sample should run the same as it does with THREAD_LOCAL_STORAGE disabled
Impact
This is preventing picolibc support for x86_64 from being integrated
Environment (please complete the following information):

OS: Linux
Toolchain: Zephyr SDK 0.15.1
Commit SHA: ae9de202220ce51e1ed61157f73d3800f84c6b06 (main as of 2022-10-16)

Additional Information:
An example of what needs doing can be seen in arch/arm/core/aarch32/thread.c:arch_switch_to_main_thread, although that only sets the base pointer for the first CPU and not additional CPUs.

cc @jhedberg @dcpleung @andyross


question about light estimation

Hello, I saw that the results of lighting estimation in your paper are excellent, even performing well in diffuse scenes like the teapot. I am working on lighting recovery myself, and when dealing with scenes like the teapot, I always find it difficult to correctly recover the lighting when using high-resolution pixel-based representations. Could I ask for your opinion on what you think is the key to correctly recovering the lighting for diffuse objects? (:з」∠)

Hi, sorry for the delay. The teapot is not actually diffuse, which is why it is possible to recover the lighting. It has a glint, and is quite smooth. In fact, I believe this glint could be helpful in general for recovering lighting. It does not seem that purely diffuse objects actually exist much in practice.


Use AUTH MODE endpoint

Rationale
We can supply many useful messages and prevent mistakes if we're aware of the FIFTYONE_AUTH_MODE of the currently running CAS. Now we can prevent the script from running if the CAS is in legacy mode, which would end up making a lot of unnecessary calls to Auth0 and wouldn't migrate anything.
Changes
Uses the CAS API to check the current state of FIFTYONE_AUTH_MODE, then only run the migrations if in internal mode. Additionally, supplied many more messages to the user to help guide usage of the script.
Testing
Using a build of CAS that includes the exposed auth mode endpoint, run the script in three cases:

CAS isn't running

script should exit gracefully with a message and take no action

CAS is running in legacy mode

script should exit gracefully with an alert and take no action

CAS is running in internal mode

scirpt should run as expected

Available for review again, as the release of FoT v1.7.0 enables the auth mode checking


Features can't be used for authentication

In index.php the following code:
$env['admin'] = MorgueAuth::get_auth_data();

Is called before features are loaded, so the necessary auth function isn't available and morgue_user is always returned.

This was fixed as of https://github.com/etsy/morgue/commit/2adde0ebbba340a10f899b2ae45398eed639ad0b


Add explicit numpy requirement in both requirements.txt and setup.py

See title. Add version to this requirement.

Changes have been made in the dev branch of my fork.


Clean up repo and refactor model logic

This PR cleans up the JEM repo significantly to remove outdated and/or unnecessary files. This should make it easier for new users to get started.

Thanks @amanmajid - super helpful to drop the various unused scripts and update instructions.
Please rebase to drop the demo data commits from this branch before merging. Can you create a toy example instead?


Split email

We have found that android accounts sometimes return something like bernat.borras@example.com:Office as an account name.
Since it's a mail account on android system, i find useful that the library can work with those kind of "emails"
Please, tell me if i should add more tests, or any feedback.
Thanks for the library! GJ

Hi @alorma! I've seen that you're adding code to split the email with : in EmailSuggestor and also in EmailValidator. That violates the Not Repeat Yourself principle. What about creating a new class that removes that Android related issue from the e-mail? And I've noticed that now, EmailSuggester can launch an Exception. Is that behaviour related with the split issue? Or is something new?
Thanks for the hard work!

Done @rocboronat

EmailSuggester can launch an Exception

Rollback on that, so it returns the same text if cannot suggest anything better

Coveralls fails because it decreased in 1%, but it's not my fault, that's because Exceptions are not tested, and i've added a new Class

@alorma and why not testing the new Exceptions? Also, why EmailSuggester has a dependancy with EmailValidator? Is it using it?

About "EmailSplit"... what about "EmailSplitter"?

@alorma I thought about it again: it doesn't split nothing. It removes the strange thing that Android adds. What's the name of that strange thing? We could explain that class' behavour adding it to the name. It will be clearer for the newcomers to understand why that class exists. What do you think?

Well... it splits the provided string, given a specific separator, (string.split()).
The thing is that this class will split the text into array of strings, the email suggester checks if it's a mail before trying to fix the problems on it. Why it shouldn't check?

Also, there's no new exception, it's just that the class InvalidEmailExoeption is not tested, so adding new classes will reduce the cobertura :)

Develop is tested at 100%. Why adding a new tested class makes the coverage go down? That's strange... btw, why not just test that exception? Accepting a PR that crashes the build is not something that feels too confident :-(
About the splitter and it's name: looking at EmailSuggester implementation, you'll notice that you aren't using all the parts of the email. Just the only one that is an actual email. So, why not returning it from the EmailSplit class that you just created? Also, renaming it will be great, to explain why you created that class. If you can look for the name of that extrange syntax before and after the actual email, it will be great to clarificate what you're doing using a simple well-named method and class.
Btw: sorry for the delay in my answers! I'm on vacations :-D
Btw, @EsteveAguilera feel free to give feedback to @alorma and accept the PR when you feel confiident with it! :-)

Wep! One week without news.

Sorry i've been busy :)
I will update this in a few days, i'm in a holidays
On Fri, Mar 25, 2016, 02:08 Roc Boronat<EMAIL_ADDRESS>wrote:

Wep! One week without news.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/Fewlaps/quitnow-email-suggester/pull/46#issuecomment-201091567

EmailSplit doesn't check if one part or second (or third...) is a valid EMAIL, it just split a string with a given separator... so i think just a rename is needed, maybe a TextSplitter? StringSplitter? StringUtils?

Done

Coverage decreased (-1.0%) to 99.029% when pulling 70716d3315af98482c0ea42177e1112b2be3f1b6 on gitskarios:split_email into c3d82461a529493949e1bb71ecc1fa53f8d70a12 on Fewlaps:master.

Coverage decreased (-1.0%) to 99.029% when pulling 1af4383917d1b438ce0093f5fbd6e663c7c4dcb4 on gitskarios:split_email into c1dc4b76f8973de4dc475d4b7a7e9a2d9a920e66 on Fewlaps:master.

Coverage decreased (-1.0%) to 99.029% when pulling 1af4383917d1b438ce0093f5fbd6e663c7c4dcb4 on gitskarios:split_email into c1dc4b76f8973de4dc475d4b7a7e9a2d9a920e66 on Fewlaps:master.

Coverage remained the same at 100.0% when pulling 9e03f310baf0e8ca972a501e671a5220e79f1310 on gitskarios:split_email into c1dc4b76f8973de4dc475d4b7a7e9a2d9a920e66 on Fewlaps:master.

Any news @rocboronat?

Sorry @alorma , I feel that I didn't explained the idea of having comprehensive methods and I have to refactor your code. For example, StringUtils.getParts() is something that not everyone will get. Usually, Strings has not "parts". Probably you're talking about Email parts, so... well, I want to get the whole thing and try to get better names. Sorry about the delay.

I just added some comments in the code for the "me" of the future :·)

@alorma does a973da6473a0be6d35ceeba44812aae122f9e4c9 reproduce and fix the issue?

Well... it reproduces the issue, and fix... but maybe there are other cases where this functionality will be great... ex: comma separator, or slash.
But yes, this do the trick

Great! If you have another issue, please report it. The key point is that I'm trying to not solve issues that are not created by actual needs. Developers usually try to fix things that are not broken :·)
I'll create a release and deploy it to jcenter. Hope it will be useful for you!


Bot suddenly stops sending messages to IRC

the bot randomly stops sending messages to discord to IRC but still sends them from IRC to discord, restarting the bot fixes this temporarily but only for a day or 2, constantly restarting the bot is getting irritating, especially since my users have to tell me when this is happening as the bot's terminal output gives no indication of problems

Duplicate of #159.


getting info on connected databases

Hello,
I connected to the db.
then I try again:
info = client.db_open( db_name, "user", "pwd" )
the console hangs and have to keyboard interrupt.
`
^CTraceback (most recent call last):
File "", line 1, in
File "pyorient/orient.py", line 234, in db_open
.prepare(args).send().fetch_response()
File "pyorient/messages/database.py", line 101, in fetch_response
result = super( DbOpenMessage, self ).fetch_response()
File "pyorient/messages/base.py", line 216, in fetch_response
self._decode_all()
File "pyorient/messages/base.py", line 200, in _decode_all
self._decode_header()
File "pyorient/messages/base.py", line 141, in _decode_header
self._header = [ self._decode_field( FIELD_BYTE ),
File "pyorient/messages/base.py", line 308, in _decode_field
_value = self._orientSocket.read( _type['bytes'] )
File "pyorient/orient.py", line 96, in read
select.select( [self._socket, ], [], [self._socket, ], 30 )
KeyboardInterrupt

`
it  looks it works only a first time.
so how to get information not only on the classes but also on the commands?
Which property of the returned object should be accessed?

How did you instantiate pyorient.OrientDB? Are you able to connect to the database successfully using the OrientDB console?

yes, I am able to connect to the console.

When you connect through the console, are you accessing the database as a remote or plocal? I.e., are you connecting using connect remote:localhost/db_name user pwd?

I can do it as a remote.

The db storage type shouldn't matter from the perspective of pyorient because it is accessing everything over a network socket even if you are using it on system running the OrientDB server.
Perhaps there are some firewall rules set up on your system that interfere with accessing port 2424 locally? I can't reproduce this problem on my Linux system using the latest code from GitHub master.

mm no, no firewall here.
I destroyed and recreated in PLOCAL - (I am not saying that MEMORY was the cause, but now can connect and get info).

Not sure what went wrong; I was able to connect to a memory db served by OrientDB 2.1.0 using pyorient.

Hi @gg4u,
I couldn't replicate this problem, are you running something like this:
  import pyorient
  db_name = "GratefulDeadConcerts"
  client = pyorient.OrientDB("localhost", 2424)
  cluster_info = client.db_open( db_name, "admin", "admin" )
  print(cluster_info)

  cluster_info2 = client.db_open( db_name, "admin", "admin" )
  print(cluster_info2)

cause it doesn't hangs up at all, anyway your need make sense there should be a way to get cluster information from the Orient object, so you don't have to call db_open twice, it doesn't make sense


Building an custom install ISO with flakes

Issue description
I'd been trying to build a custom boot ISO based on the NixOS manual and finding that setting that up as a proper package is tricky. The best solution I'd come up with was to fork nixpkgs, since the instructions suggest passing explicit paths to nix build, and I found that trying to reference nixpkgs from my own project was fraught.
Asking in Matrix, it was suggested that this might be a good application of Flakes, and since I've wanted to play with that anyway, I started to take that on.
I think the crux of the problem is that the installer modules aren't exported from the nixpkgs flake - or not in any way that I can find, or that flakes can't reach into their parent flakes and access files, only values that have been exported.
In researching this issue, I've come across https://nixos.wiki/wiki/Creating_a_NixOS_live_CD, which may be what I base my next effort on, but I'm sad to have to abandon Flakes for this.
I think a solution would look like one of:

I learn how to access the installer modules via Flakes; possibly there's a documentation change I could contribute
Flakes make files available the way that legacy Nix can <nixpkgs/dig/into/files/and/access/them.nix>
The nixpkgs Flake (or a NixOS flake in the nixpkgs repo?) exports the installer modules for use.

I think the crux of the problem is that the installer modules aren't exported from the nixpkgs flake - or not in any way that I can find, or that flakes can't reach into their parent flakes and access files, only values that have been exported.

This is possible, but a bit tricky. Let's presume that you have a flake with a nixos configuration already. To build an iso images, you would call nix build .#nixosConfigurations.name-of-your-nix-config.config.system.build.isoImage.
Now, to get such a flake, you would probably at one point in time have something like:
nixpkgs.lib.nixosSystem rec {
  inherit system;
  modules = [
    { networking.hostName = name; }
    ./boot-config.nix
  ];
}

And you would likely desire to make boot-config.nix which includes something like <nixpkgs/nixos>/..., which doesn't work because it's impure. The solution here is simple: add modulesPath to the top level args of that configuration, and then use it as prefix to include the installation media specific, predefined nix files. See the following example:
{config, pkgs, lib, modulesPath, ...}:
{
  imports = [
    (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
    # Provide an initial copy of the NixOS channel so that the user
    # doesn't need to run "nix-channel --update" first.
    (modulesPath +  "/installer/cd-dvd/channel.nix")
  ];

Does this answer your questions, or do have open points left? If so I can prepare a complete example, but that will take some time which I do not want to spare tonight.

Sorry to fade out there - between this suggestion and https://hoverbear.org/blog/nix-flake-live-media/ I've been able to build out at least a boot image. (Today's project is installing using it...)
It does seem like a worthwhile thing to have documented. Where would be the best place to add that?

I think two options are preferable @nyarly :

The NixOS manual, if you can find how to contribute to it
The NixOS wiki


Types have to be included in runtime deps

These need to be runtime deps, as I am guessing they get exported from the package.
Then builds in consuming packages fail, unless these deps are installed.
@types/node-int64
@types/thrift

Thanks for reporting this and sorry for not responding until now.
I wasn't watching this repo for some reason.


[Notifications]  The "New Applicant" header is not centered on the form.

Environment:  iPhone 12 Pro Max, OS 14.2
Reproducible: always
Build found: build 1.0.77
Preconditions
The "Car" app is opened
Steps to reproduce

Go to the 'Notifications' page
Open the notifications
3.Pay attention to the header

Actual result
The "New Applicant" header is located on the left side of the form
Expected result
The "New Applicant" header is centered on the form.
User story and test case links
E.g.: "User story
Labels to be added
"Bug" ("bug"), Priority ("pri: ")


Clean up additional white-space in HTML attributes

Small clean up of some HTML white-space issues found when reviewing other PRs.
These issues will not break anything but thought it might be nice do clean them up.

When CI passes I will merge, this is a small clean up item.


add location data for nodes

This is useful for tools that want to show a connection between the code being typed in and math being rendered.  It could also be used as a way of selecting a node within an expression or equation.

The start/end location for each node can also be used to grab the original input if necessary.


Method to runAtEntityWithFallback with timer

Would be useful for doing work when entities become dead/retired. For example, when adding a trail of particles behind a projectile. On Spigot/Paper I can just check Projectile#isDead and do some cleanup before manually cancelling the task, but that doesn't seem to happen on Folia; the server just ends the task. Thus, a fallback is necessary.

Will be implemented


Ride the Lightning - Error 503 Unable to Connect to LND Server

my raspiblitz is image installed amd64 v1.8 dev branch. Private IP 192.168.1.xxx.
Zero manual configuration changes - been only using UI's. Tor not disablet. LND and bitcoin work - funds flow nicely.
Installed (and rebooted and re-installed) RTL but it can't connect LND.
Seems it is trying only with ipv6. My (SOHO) router offers ipv6 to internal network - but I know nothing about ipv6.
Logs requested as debub -l (** theres easter egg on this one ** ! U should not ask to post debug file links to public !)
debug -l.txt

Disabling ipv6 as decribed here
https://www.itzgeek.com/how-tos/linux/debian/how-to-disable-ipv6-on-debian-9-ubuntu-16-04.html
fixed issue
Now you just handle it correctly for all the users 😉

There are some users using IPv6 .. I dont think deactivating it for all by default will be the solution here - BUT its a good lead to work towards a fix.

On my machine I changed localhost to <IP_ADDRESS> and now its working. Change see here:
[    jq ".nodes[0].Settings.lnServerUrl = "https://<IP_ADDRESS>:${portprefix}6100"" | ](https://github.com/rootzoll/raspiblitz/blob/21eb83b3c2b05efd6ef7c653c81c3ff74c3d39c6/home.admin/config.scripts/bonus.rtl.sh#L469)
Set to final tesing.


emacs 24.x and 26.x  slow

when i use emacs in terminal, is very very very slow. opposite，i use windows cmd tool is very fast。

没人回复？
在terminal中使用emacs反应很慢，反而使用原始的cmd反应很顺畅。

wsl version

emacs version

terminal version

windows version

I'm pretty sure this just falls under the category of #1064. There's a lot of work we can still do here to improve performance. I'm tempted to leave this open as a "make sure to optimize conpty for emacs" issue, and at the same time I'm tempted to just close this as a dupe. I'll leave it to someone else on the team to make the final call.

Yeah we'll close this one out as a dupe. Thanks!
/dup #1064


 When not zoomed in its hard to see what letter it is. (not only this section, but this is an example).
See Image:

@LFGaming , is this still an issue? It looks OK for me on desktop and mobile (Firefox, Chrome). I can zoom this section OK.

Hi @jefft0, It indeed seems fixed now, ill close this issue


Small fix for max_extents

Fixed bug handling mixed NaNs and dates in max_extents utility.

Looks good! Merging.


Error: Non-whitespace before first tag

Sorry to raise an issue with this name again, but I believe that this is not related to the BOM issue that was closed previously. I am wondering if I am doing something silly with my webpack config that is causing this:
WARNING in ./shared/components/svg-icon/icons/twitter.svg
Module build failed: Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char: m
    at error (blah/node_modules/xml2js/node_modules/sax/lib/sax.js:651:10)
    at strictFail (blah/node_modules/xml2js/node_modules/sax/lib/sax.js:677:7)
    at beginWhiteSpace (blah/node_modules/xml2js/node_modules/sax/lib/sax.js:951:7)
    at Object.write (blah/node_modules/xml2js/node_modules/sax/lib/sax.js:1006:11)
    at Parser.exports.Parser.Parser.parseString (blah/node_modules/xml2js/lib/xml2js.js:508:31)
    at Parser.parseString (blah/node_modules/xml2js/lib/xml2js.js:7:59)
    at AnonymousObservable.__subscribe (blah/node_modules/svg-react-loader/lib/xml/parse.js:16:16)
    at AnonymousObservable.tryCatcher (blah/node_modules/svg-react-loader/node_modules/rx/dist/rx.js:63:31)
    at setDisposable (blah/node_modules/svg-react-loader/node_modules/rx/dist/rx.js:5845:44)
    at AnonymousObservable.Rx.AnonymousObservable.AnonymousObservable._subscribe (blah/node_modules/svg-react-loader/node_modules/rx/dist/rx.js:5862:9)

So you'll notice the char it comes across is an 'm', so I decided to see what it was seeing and logged out before this line svg-react-loader/lib/xml/parse.js:16:16 and got this:
module.exports = __webpack_public_path__ + "d9fb6acead094090c1450fa6f4b6c5b7.svg";

It seems that the loader has already done its magic by this point. So why am I getting this warning? Is it running twice? This is how my loader is configured:
{
  test: /\.svg$/,
  loader: 'svg-react-loader',
},

Any help would be appreciated. Thanks!

this is raised by sax parser , the module analysing your svg.
It seems it has encountered a char it doesn't appreciate
i encourage you to open your svg with a good text editor like notepad++, and activate option to see all invisible white chars. You'll be able to see incriminated char and shoot it.
try again after this

See, I don't think that's the case. The problem is that the parser is literally coming across this string:
module.exports = __webpack_public_path__ + "d9fb6acead094090c1450fa6f4b6c5b7.svg"; which is why it sees an m as the first character. I imagine that the parser would normally expect to see something like <svg xmlns="... at that time. The problem is not in invisible chars, it is that the transformation seems to have already happened before the parser runs?

ok so it pay comes from the order of your loaders for svg files. I  have had this issue before.
you can see if you have any loader out of svg-react-loader in your config, and eventually exclude svg from it.
moreover do no not forget loaders are called in the inverse order of lines in your webpack.config file

I am getting the same error. I've tried a few different SVG files and I've also validated my XML code.
I'm using create-react-app, but I haven't ejected. Do I need to eject and modify my Webpack config to use svg-react-loader? If that's the case, does anyone have a link to the steps involved. I've been searching, but can't find anything.
Thanks for any help.

@nebaff that was the solution for me, I needed to move my svg-react-loader test under my fallback svg loader. I was under the impression that my loaders applied in the opposite order. Thank you!

Any chance you could post your code @nicgordon :)?


Fix pip install command

Hi, thanks for sharing your code I was just looking for something like this to use with hledger, so you probably saved me some time! I didn't have the motivation to fork this yet, so can't add a PR. But in your readme.md the pip install -t... is not right t flag is used as described below
From: https://stackoverflow.com/questions/48503593/what-is-the-t-flag-for-pip

-t, --target
Install packages into .
By default this will not replace existing files/folders in .
Use --upgrade to replace existing packages in  with new versions.

You should instead use r flag, i.e., pip install -r requirements.txt
@venikx

Hei @Piirtola, thank you for this. I’m not too familiar yet with writing Python code, nor it’s ecosystem.
I’m updating the docs as requested.
The parser also has only been used on my own invoices atm (which is about 2-3 of them, so I’m most likely missing some edge-cases with the parsing). I’ve added a summary that you’ll need to verify if it’s the same as the invoice you are paying. If not, you can send an issue with the line where it goes wrong, or send a PR. I’m definitely open to improve this, as I personally use it for my finance, but I’m a Javascript dev and this was my first Python project😅


Cannot find libsodium on ubuntu although the library is present  Linux  5.8.0-44-generic #50~20.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux virtualbox machine

Cannot find libsodium on ubuntu although the library is present
Linux ubslts2001.it4us.top 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux virtualbox machine
---------------------------------------Log Below--------------------------------------------------------------------
HEAD is now at 9a7331cc Bump version to 1.25.1 and update change logs
vbox@ubslts2001:~/src/cardano-node$ cabal configure --with-compiler=ghc-8.10.4
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/cardano-b_-c8db9876882556ed'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 4099 (delta 5), reused 2 (delta 1), pack-reused 4084
Receiving objects: 100% (4099/4099), 1.84 MiB | 2.13 MiB/s, done.
Resolving deltas: 100% (2319/2319), done.
HEAD is now at b364d92 Merge pull request #201 from input-output-hk/upgrade-to-cabal-<IP_ADDRESS>-rc5-on-windows
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/cardano-c_-253fd88117badd8f'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 1455 (delta 8), reused 23 (delta 5), pack-reused 1418
Receiving objects: 100% (1455/1455), 470.42 KiB | 1.82 MiB/s, done.
Resolving deltas: 100% (607/607), done.
HEAD is now at f730793 Merge pull request #69 from newhoggy/add-ghc-8.6.5-and-8.10.2-to-ci
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/cardano-l_-48e3a74bf8b61f34'...
remote: Enumerating objects: 242, done.
remote: Counting objects: 100% (242/242), done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 61372 (delta 66), reused 178 (delta 49), pack-reused 61130
Receiving objects: 100% (61372/61372), 31.85 MiB | 2.20 MiB/s, done.
Resolving deltas: 100% (36043/36043), done.
HEAD is now at 09789049 Merge pull request #2107 from input-output-hk/better-min-utxo
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/cardano-p_-cae013aee062332a'...
remote: Enumerating objects: 1598, done.
remote: Total 1598 (delta 0), reused 0 (delta 0), pack-reused 1598
Receiving objects: 100% (1598/1598), 385.79 KiB | 1.30 MiB/s, done.
Resolving deltas: 100% (732/732), done.
HEAD is now at ee4e7b5 Merge #146
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/goblins-67efee8d68d79164'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 442 (delta 6), reused 16 (delta 6), pack-reused 423
Receiving objects: 100% (442/442), 129.36 KiB | 1.15 MiB/s, done.
Resolving deltas: 100% (176/176), done.
HEAD is now at cde90a2 Re-enable support for GHC 8.6.5
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/iohk-moni_-1defcf7452717dc5'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 9772 (delta 24), reused 71 (delta 8), pack-reused 9661
Receiving objects: 100% (9772/9772), 34.98 MiB | 2.21 MiB/s, done.
Resolving deltas: 100% (5533/5533), done.
HEAD is now at 563e79f Merge pull request #610 from input-output-hk/cad-2069-fix-readsysstats
Cloning into '/home/vbox/src/cardano-node/dist-newstyle/src/ouroboros_-e51b1e265e7bb521'...
remote: Enumerating objects: 1762, done.
remote: Counting objects: 100% (1762/1762), done.
remote: Compressing objects: 100% (1068/1068), done.
remote: Total 124007 (delta 643), reused 1087 (delta 393), pack-reused 122245
Receiving objects: 100% (124007/124007), 146.30 MiB | 2.19 MiB/s, done.
Resolving deltas: 100% (86635/86635), done.
HEAD is now at 6cb9052bd Merge #2889 #2891
Warning: Requested index-state 2021-01-10T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-01-09T22:55:53Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: cardano-crypto-class (user goal)
[__0] rejecting: cardano-crypto-class-2.0.0 (conflict: pkg-config package
libsodium-any, not found in the pkg-config database)
[__0] fail (backjumping, conflict set: cardano-crypto-class)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cardano-crypto-class
vbox@ubslts2001:~/src/cardano-node$ find /usr -name 'libsodium'
/usr/lib/x86_64-linux-gnu/libsodium.so.23
/usr/lib/x86_64-linux-gnu/libsodium.so.23.3.0
/usr/share/doc/libsodium23
vbox@ubslts2001:~/src/cardano-node$

compiled/installed on 8GB 64GB micro sd raspi 4


we could implement live preview with facebook watchman.

When I use simiki p to preview my wiki in broswer, found that watchman is great for auto generate wiki output.
I write my script down here, not sure how to add it to this project , hope it will be helpful.
Have tested with OSX , and linux will work , cause facebook watchman is cross-platform.
brew install watchman
cd mywiki
watchman-make -p 'content/**/*.md' --make=/usr/local/bin/simiki -t g

If we write little script combine generate and deploy , we do not need Travis CI any more XD.

simiki preview already support auto regenerate with -w option:
simiki p -w

Oh, I did not notice this point. Thank you.