Use the strict config option for conda

Conda will be adopting strict as the default option soon but until then it is recommend to enable it when using third party channel like conda-forge. For a longer explanation see https://youtu.be/9Ft20NizQA4?t=930.
The gist of it is:

env/install solutions will be faster;
the stack of packages are consistent "within the ecosystem" and errors are easier to debug;
avoid the mixing channel problem.

Ping @jhamman

I see that the broken label is used in some places :scream_cat:
I'll take a closer look tomorrow and try to fix the failures and adapt it to a more reliable set of packages.

On a related note, @yuvipanda, are there reasons for installing jupyterhub and nteract_on_jupyter via pip instead of conda-forge or conda defaults? https://github.com/jupyter/repo2docker/blob/9c52e5abea3127750e2748eba334df4787257354/repo2docker/buildpacks/conda/environment.yml#L7-L9
I think this is how we're ending up with pip packages on pangeo-stacks base-notebook even after removing pip packages (https://github.com/pangeo-data/pangeo-stacks/blob/master/base-notebook/binder/environment.yml)
binder link:
https://binder.pangeo.io/v2/gh/scottyhq/pangeo-binder-test/pangeo-base?urlpath=lab
output of conda list | grep pypi
alembic                   1.0.9                    pypi_0    pypi
chardet                   3.0.4                    pypi_0    pypi
idna                      2.8                      pypi_0    pypi
jupyterhub                0.9.4                    pypi_0    pypi
mako                      1.0.9                    pypi_0    pypi
nteract-on-jupyter        2.0.12                   pypi_0    pypi
python-editor             1.0.4                    pypi_0    pypi
python-oauth2             1.1.0                    pypi_0    pypi
requests                  2.21.0                   pypi_0    pypi
sqlalchemy                1.3.3                    pypi_0    pypi
urllib3                   1.24.2                   pypi_0    pypi

I don't think there is a reason to use JupyterHub from pip. Maybe at the time there wasn't a conda-forge package yet.
I don't think there is a conda package for nteract_on_jupyter.
The CI failures are related to not being able to install nbconvert which we pin as part of the base environment. I'd apply the same strict setting to the base env freezing and refreeze to see if that fixes it (https://repo2docker.readthedocs.io/en/latest/contributing/tasks.html#update-and-freeze-buildpack-dependencies).

Maybe the conda-forge JupyterHub brings chp with it?
My personal preference is to use conda only to get python and use pip for everything else in the base image :) 🔥

I don't think there is a conda package for nteract_on_jupyter.

Working on that now...

I'd apply the same strict setting to the base env freezing and refreeze to see if that fixes it

Sorry, I'm new here and a bit I'm confused. What do you mean by base env? If I understood install-miniconda.bash applying the strict config here should be the "first one" in the installation chain, no?

Maybe the conda-forge JupyterHub brings chp with it? I've no idea...

What is chp?

My personal preference is to use conda only to get python and use pip for everything else in the base image :)  conda is an extremely confusing and opaque world for me. I do recognize that this isn't true for most others in this community...

That is a fine strategy for the base image. Still, looks like user downstream would like conda support for non-python or hard to install python packages and the strict option in the canonical config helps a lot.
TL;DR as long as the base image wants to "ship" conda, even if it is not entirely build with it, I recommend the strict option to be enabled.
I'll work on the envs with the broken label later today. Conda is not opaque to me :smile:

Sorry, I'm new here and a bit I'm confused. What do you mean by base env?

I should have been clearer :) We create a conda environment with certain things installed, no matter what the repo that is being built does. For example we pre install Jupyter. The packages and versions that get used in this "base env" come from a environment.yml which has very specific pins for every package. We generate that file from a looser spec. The process of generating that file is the "freezing" I linked to.
My guess as to why nbconvert won't install is that in the frozen environment.yml we refer to a version (and build) that is incompatible with the other selected packages and versions if strict is enabled. Probably because strict wasn't enabled when we froze the environment in the first place.
-> Add strict to the options in the freeze.py, refreeze and see if things work now.

I should have been clearer :) We create a conda environment with certain things installed, no matter what the repo that is being built does. For example we pre install Jupyter. The packages and versions that get used in this "base env" come from a environment.yml which has very specific pins for every package. We generate that file from a looser spec. The process of generating that file is the "freezing" I linked to.

Thanks. I'll look into that.

I don't think there is anything to do regarding the broken channel.

As someone who packages these packages, maintain conda-forge, and move packages to broken I do think we should remove those use. It is a flaky solution for conda's solver, there are packages with bad metadata there, and, of course, broken packages too! I'm navigating the requirements now and, if there are any versions that only exists on broken we should rebuild them and put them on main.

Before creating a conda-forge package for nteract_on_jupyter I'd chat with the maintainers about who is going to keep it up to date. If there is no one who wants to keep it recent I don't think we should switch to using it.

Conda-forge is a community of packagers and the maintainer submits it (I'm assuimg by maintainer you meant the authors and software maintainers, not the conda package per se). If the package authors also want to help, that is great! But most of the time package authors are not involved with downstream packaging (be that conda, yum RPMs, apt-get deb, chocolatey, etc).

Is there an explanation of what it does, the problems it solves and what the downsides are of turning it on that isn't a video?

Sure:

https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html#strict-channel-priority
https://www.anaconda.com/understanding-and-improving-condas-performance
https://conda-forge.org/docs/user/introduction.html?#how-can-i-install-packages-from-conda-forge
https://conda-forge.org/docs/user/tipsandtricks.html#how-to-fix-it

adding a link to this related pull request on bumping to conda 4.7: https://github.com/jupyter/repo2docker/pull/719

@ocefpaf as far as I can tell, the broken channel must be included to support reproducible environments. See #731 for a discussion of why we need it and how we might be able to get away from it when it's not needed. The vast majority of packages in broken aren't really broken, but instead have insufficiently strict pinning of dependencies.
A critical use case for repo2docker is running conda env export to freeze the environment and then installing it later. Conda-forge frequently labelling packages as broken regularly makes working, frozen environments not installable. Ideally, we would only be allowing the broken channel when packages are strictly specified, but I'm not sure of a good way to do that. I agree that we don't want to pull numpy from broken, but if an env specifies numpy-1.16.0-py37_blas_openblashb06ca3d_0 which is marked as broken, that install should not fail.

It seems for now that we won't be able to enable strict out of the box. At least it will take a bit more thinking.
The second topic being discussed here is use of the broken channel. I think this is settled by Min's comment above and other discussions on this repo.
I'd move to close this PR for now and maybe create an issue to summarise the discussion about strict and what the next step towards enabling it would be. WDYT?

Closing for now, since strict priority cannot work for r2d until issues like https://github.com/conda/conda/pull/8961 are resolved in conda.

This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there:
https://discourse.jupyter.org/t/pass-channel-priority-strict-to-conda-with-repo2docker/10551/2


Alexnet

Can you give a website for download Alexnet pretrained model again?
It can't find in your readme.
Thank you!

I've uploaded it just now, you can check it in https://github.com/cfm-uestc/DPQ/releases/download/AlexNet/alexnet.npy

thank you


Added new operational_flows.rst page

Added new page for Office for iOS documentation to explain the implementation details behind the user scenarios. Updated the index.rst file to add this new page to the TOC.

For future changes, can you set the line width of your editor to 120 characters and add line breaks so each line is <120? I can clean that up for this PR in a future commit, but in the future if you can do that it would help.
I'll also add this info to the style guide.


list_actions negatively affects sort behavior

Live Codepen Example
It seems that whenever you enable list_actions, the sort behavior is affected oddly.  Clicking columns does a sort action, but not on the column that you select.  Also, you lose the asc and desc arrows.
In the Codepen above, click on the various column headers and you should see similar results.  This is the repeater initialization
/ Initialize the repeater. $('#myRepeater').repeater({     dataSource: staticDataSource,     list_noItemsHTML: "No items found.",     list_actions:  {                     width: 37,                     items: [{                         name: 'delete',                         html: ' Delete',                         clickAction: function(helpers, callback, e) {                             e.preventDefault();                             console.log('hey it worked');                             console.log(helpers);                             console.log(e);                             callback();                         }                         }]                 } });

nice find! we'll take a look at it. if you happened to find a solution PRs are greatly appreciated.

Started to dig into it but didn't get too far, I'm afraid.  I'll be diving back in after the weekend but if anyone has any insight on where the likely culprit is hiding, that'll be nice to narrow it down :)


sign up form animation & transition

Animation Name :  Sign In Form Animation
Description
A form page with moving background and form with glow effect animation.
Screenshot Section

Demo Video Section

Click to expand Form Animation Video

    Your browser does not support the video tag.

Task

[ ] Connect Us On social media -
[ ] GitHub
[ ] LinkedIn
[ ] YouTube

connect with me -
Github : https://github.com/Durgesh4993
LinkedIn : https://www.linkedin.com/in/durgesh4993/

Hello there, will this be merged and accepted in hacktoberfast2023?


Fix typos introduced during the last 24 hours

Would you mind merging this with your other active pull request about typos?

@rjmccall Done! :-)  Closing this PR.


Tokens, invites and Share URLs with edit rights - no sign up / in required

I absolutely love saas services that provide a one-click collaboration.
Example from HackMD:

I think we could have this same feature with Atomic Data. Standardizing how this works could help to make this something that all apps could get for free - without burdening devs with implementation details.
Approaches
Query param containing scoped agent private key
This means the front-end should check the URL for a guestKey, and the server should make sure it sets the correct grants for the selected resource(s).

Everybody with that specific URL will post things as the same agent, so it's not possible to discern multiple users.
Server knows private key, which means it can act as if it were the guest
No, bad idea.

Query param containing scopend token
Front-end  reads query param that contains token. Front-end generates keypair, sends public key to back-end token service, which adds the newly created agent (pubkey) to the allowed posters to some scope.
In-between Invite resource
Invites are a new Class that have some fields:

Target resource: Where the invite points to

Usage limit: If it is a multi-use or single-use invite token?

Target Agents: An optional set of agents that are allowed to use the Invite?

Allows for short, query param free easy to read URLs

Less clear what the identifier is of the actual resource being edited

When the client has fetches an Invite resource, it should know that it can post an Agent Subject (or public key?) to the Server, after which it gains the rights to edit the resource. Viewing if another question.
Multi-class resource with 'Invite' class
Atomic Data allows for multi-class resources. This means that we could have a resource with both a regular class (e.g. document) and an Invite class.

Sharing edit link flow

Admin has created some Resource that they want to share edit rights to some anonymous person.
From a UI, the Admin clicks 'create share link' on the Resource pageand selects 'edit' rights. A URL is shown and is copied to the clipboard. This URL represents an Invite Resource.
The server has created an Invite Resource. When the User opens the Invite Resource without any query params, the Invite is shown. The front-end should then check if there is a current Agent present. If there is, a new request will be sent to the Invite with the Agent as a Query Param. Upon opening, the Server modifies the Invite, sets it to 'used', and changes the rights in the target resource accordingly.
The User is redirected to the target resource page, and can now do anything they want.
If the Invite URL is used later on by that same Agent, the User is redirected again.

Thoughts on implementing this

The Browser (front-end) needs a special View for invites, which deals with setting the query param, generating the Agent key and finally the redirection to the target resource
The Server needs to have an Extended Resource for the Invites, to deal with parsing the query param, setting the new Read / Write rights. Not sure what it should return, as Extended resources generally add some dynamic properties - which is not the case here, right?

When an Agent is created, should we always give the newly created Agent the rights to modify itself? I think this makes sense, as the user might want to chage their username and stuff.

Invites kind of need to be public (they need to be opened), but they should not be indexable. How to deal with this?

See https://docs.atomicdata.dev/invitations.html


Minor Fix for the sed command in README to be working for macOS users.

amit:kubeip/ (master✗) $ sed -i -e "s/reserved/$GKE_CLUSTER_NAME/g" -e "s/default-pool/$KUBEIP_NODEPOOL/g" deploy/kubeip-configmap.yaml

sed: -e: No such file or directory

The error you're seeing is likely due to the differences in the sed command between macOS and Linux.
The -i option in macOS's version of sed expects an extension for backup files, whereas the Linux version does not.
To fix this on macOS, you can provide an empty string after the -i option to avoid creating a backup file:
sed -i '' -e "s/reserved/$GKE_CLUSTER_NAME/g" -e "s/default-pool/$KUBEIP_NODEPOOL/g" deploy/kubeip-configmap.yaml
If you're on Linux, the command you provided should work as-is.
This should be done for all the sed commands.

Not relevant for KubeIP v2 anymore


Suggestion for doing core for longer sequences?

Hi,
First, thank you for providing this valuable resource.
According to Table 4 of the Bert paper, for long sequences with length 1152+ the performance declined.
I wonder if I want to do the coref for my dataset in which average sequence length is 1500+, do you suggest using 'spanbert' on my data as it is. Or it is better to segment the data into pieces of length 512?
Of course both has it's drawbacks in negatively effecting the performance of pertained model but which approach do you suggest?

Thanks for your interest, Ehsan. I'm not sure I understand the choices you're thinking about. The pre-trained SpanBERT model can only encode documents up to 512 tokens in a single instance. We handle longer documents by splitting them into non-overlapping chunks (we could not get overlapping chunks to work better), and encoding each independently using BERT. So span pairs in different chunks are only connected via the MLPs. I'm not sure what alternative you're referring to.


Some help required

I'm having a tough time getting the correct code block for what I need, perhaps one of you experts could help?
I need to create a set of rules that satisfies the following recurring criteria:

Triggers every 15 minutes between 9a.m. and 7p.m.
Triggers daily except Sundays
Triggers for the next 6 months

I know this seems simple but I'm having a tough time layering the rules as needed. Any help would be greatly appreciated.

Here you go, something like this:
end_date = Date.today >> 6
hours = (9..19).to_a
wdays = (1..5).to_a

schedule = IceCube::Schedule.new
every15 = IceCube::Rule.minutely(15)

schedule.add_recurrence_rule(every15.hour_of_day(hours).day(wdays).until(end_date))

Thanks a ton, this was what I needed.


APPS-1082_dev_readme_dependencies

(fix) Developing.md - added few notes on dependencies set up

BTW: The format for the commit message would be APPS-1082 Update ....
Meaning it should've been like that?

APPS-1082 dev_readme_dependencies
(fix) Developing.md - added few notes on dependencies set up

Meaning every message would start with a title of a PR?

BTW: The format for the commit message would be APPS-1082 Update ....

Meaning it should've been like that?
APPS-1082 dev_readme_dependencies
(fix) Developing.md - added few notes on dependencies set up

Meaning every message would start with a title of a PR? Thanks!

Yes. You can check the commit history for an example.

BTW: The format for the commit message would be APPS-1082 Update ....

Meaning it should've been like that?
APPS-1082 dev_readme_dependencies
(fix) Developing.md - added few notes on dependencies set up

Meaning every message would start with a title of a PR? Thanks!

Yes. You can check the commit history for an example.

Sorry, not sure I understand. My PR is exactly of the same structure as this for example. My commit messages have the following structure
Branch name
(type of change) FileName.extension - description

Is this an appropriate structure?
Github formats the first line as the PR title, and the rest goes into commit messages which ideally are different for each commit. Also, last commit message went to the opening comment for the PR.

@Gvaihir Sorry if I was not clear, I mean this title:

It should be:

And then the commit message (title) should be something like:


Populate QuestionnaireResponse.item.text

Coverage remained the same at 94.65% when pulling 6c2db96aaa757ec7e9683808e6a1d8d0a315293c on cody-populate-questionnaire-response-text into b57276772e32df9c2dd1b7fc9d7740dbfefeb55b on main.


[QT-Wallet] Listener page Title is getting displayed as "Listening" instead of "Listeners" .

Description:
QT-Wallet, Listener page Title is getting displayed as "Listening" instead of "Listeners" .
Please refer the screenshot for more details.

Successfully verified in the latest build - https://ftp.mwc.mw/nightly_builds/05-26-2020/.
Hence closing this ticket.


Fix/urange check

Reference Issue

Fixes #1461
What does this implement/fix? Explain your changes.
This is a complicated one.  Basically URANGE_CHECK when
used on unsigned integers has a problem when the size of
the range it’s checking is 0.  The standard operations is
to check
    URANGE_CHECK(num, size-1, "...")

Which (for unsigned integers) obviously rolls over.  This fixes all usage cases to be
    URANGE_CHECK(num+1, size, "...")

And fixes the bugs found.  (addBond and the mmff tests).
This may not be the correct way we really want to fix this, I could have done a cast to:
ssize_t in the URANGE_CHECK MACRO for instance.  We would still have needed to fix the mmff tests and addBonds though.
Any other comments?

I don't like the num+1 part, because it makes the intent of the operator unclear.
How about including the num+1 in the #define itself:
  if ((x+1) > (hi)) {                                                         \

Will do.

@bp-kelley : I was going to try and do the 2017.03.4 release this week before I leave for vacation. Any chance you can finish this in the next day or so or should we move #1461 to the 2017.09.1 release?

Actually: I just checked what's been fixed for that release and it's hardly worth doing it as is. We can probably safely hold off and do everything with the 2017.09.1 release

There is only one known bug that it fixes (but it is a seg fault) in the
python api.  I'm happy holding off.
On Tue, Aug 15, 2017 at 8:59 AM, Greg Landrum<EMAIL_ADDRESS>wrote:

Actually: I just checked what's been fixed for that release and it's
hardly worth doing it as is. We can probably safely hold off and do
everything with the 2017.09.1 release
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rdkit/rdkit/pull/1506#issuecomment-322459300, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJbioAwPfCx_3epLfxa6hgRJeyWbP8wtks5sYZYngaJpZM4OgJw2
.

@bp-kelley : just a quick reminder that this is waiting on one "small" change (the if ((x+1) > (hi)) { thing mentioned above)

@greglandrum Should be good to go now.


Report issue button in developer release

Having a 'report issue' button in the development release that includes a set of default info could potentially provided more information for issues people run into.

This is what #241 will achieve. Closing this. :)


Use SharedKeyCredential instead of NewDefaultAzureCredential

Use Shared
Purpose

Fixes issue #7

Does this introduce a breaking change?
[ ] Yes
[X] No

Pull Request Type
What kind of change does this Pull Request introduce?
[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Follow the directions in the README.md

What to Check
Verify that the following are valid

Authentication must work

Other Information

Thanks for fixing this.. I've been beating my head against a wall with this all day.

Yeah, me to... Somewhat annoying not that Microsoft is not responding or acting on this.

ping


Fix typo

dbuild has checked the following projects against Scala 2.12, 2.10:

Project
Reference
Commit

sbt
1.0.x
sbt/sbt@9c0e959bf6cdc737f76047e62584441ce0aa35f5

zinc
1.0
sbt/zinc@866d9fdc89eaa3f412ea4f83052384e4f0f60a7d

io
1.0
sbt/io@ed914a36cfee055278052ef1a1be76c3bbcf89c4

librarymanagement
1.0
sbt/librarymanagement@0bb1aa712075b2b4c0626290b7ac480427af6000

util
1.0
sbt/util@54cf4a43bb560d2e6fdc48fb51a376ca4228da03

website
pull/1/head
sbt/website@535e520969782e4cfaf82e74c93999f6961ea102

:white_check_mark: The result is: SUCCESS
The binaries are at https://dl.bintray.com/sbt/maven-snapshots
Use sbt version: 1.0.0-20170627-161326

A dbuild validation involving this pull request is in progress...


Add Avro to the list of supported data formats

Hello there,
We've been working on a serde-compatible Apache Avro rust client library. It supports all the main Avro features, with a serde-friendly interface.
The crate is documented, tested and (slightly 🙂) benchmarked.
Crate link: https://crates.io/crates/avro-rs
Crate repository: https://github.com/flavray/avro-rs

Thanks!
Good idea, I agree the -rs suffix is indeed not great (it's actually been added only because avro was already taken) and it seems that there is no on-going work on the current avro crate.
I will try to contact the owner of the crate. However, wouldn't it break any (hypothetical) application depending on the current avro crate? I am also unsure about how crates.io deals with changes to inner repositories (things like library versions).
Do you know of any documentation we could follow in order to do this?


Is this project affected/infected?

Ultalytics has a crypto miner in its YOLO! Wondering if this project is affected.
https://www.bleepingcomputer.com/news/security/ultralytics-ai-model-hijacked-to-infect-thousands-with-cryptominer/

Thank you @maxpicklez for bringing this up! I didn't know about it and that's interesting (and quite scary!).
Hopefully it doesn't seem to a problem for us. The ultralytics library in requirements.txt is the 8.2.36, which doesn't seem to be affected https://github.com/poeticoding/yolo_elixir/blob/main/python/requirements.txt#L1
In general, my plan is not to just support Ultralytics models; I'm working to support other versions from other people like v7 (https://github.com/WongKinYiu/yolov7), which also has different licensing.


instead of hacking the class into globals, ensure that reduce/picling can restore the object

if the sentinel type was simply available on the sentinel, that would be good enough for a number of cases
MyMissing = sentinel("missing", module=__name__)
assert isinstance(MyMissing, MyMissing.type

pickle could aslo be set up to just return them as the value stored in the module

Thanks for the suggestions!
I played around with such options... too much. In the end I've simply foregone the dedicated classes entirely, using a single Sentinel class.


Fix hot demotion

Description
During hot demotion all hot protocols are supposed to be given deactivateTimeout (300s) time to exit. However as soon as blockfetch exits it will kill chainsync. This will cause the hot demotion to fail and the connection to be closed.
This patch changes the unregister logic for blockfetch so that it will attempt to give chainsync time to exit nicely before killing it.
Checklist

Branch

[x] Updated changelog files.
[x] Commit sequence broadly makes sense
[x] Commits have useful messages
[ ] The documentation has been properly updated
[x] New tests are added if needed and existing tests are updated
[ ] If serialization changes, user-facing consequences (e.g. replay from genesis) are confirmed to be intentional.

Pull Request

[x] Self-reviewed the diff
[x] Useful pull request description at least containing the following information:

What does this PR change?
Why these changes were needed?
How does this affect downstream repositories and/or end-users?
Which ticket does this PR close (if any)? If it does, is it linked?

[ ] Reviewer requested

It would also be nice to have a test for net-sim (or at least an issue to create one).

I am not going to implement that.

It would also be nice to have a test for net-sim (or at least an issue to create one).

I am not going to implement that.

Then create an issue for that, it is nice to keep track of these things 😄


support for rails 5

When trying to install this gem on rails 5, I get
jquery-modal-rails (~> 0.0.4) was resolved to 0.0.4, which depends on
      railties (< 5.0, >= 3.2.0)

Is there a plan to upgrade this gem to support rails 5? Are there common work-arounds in the meantime?

Im having the same issue


Appearance on two displays

Hi Maximus,
I have two displays and for some reason the card appear differently on these:

and

Because of the space limit on the 2nd display, I updated en.json the days unit name as  "days": "d" to decrease the width, but strangely this abbreviation appear only on the 1st display.
Could you please advise?
Thanks

Hi @bgeza , have you tried cleaning the browser cache and reloading the page (shift-F5)?

crap... I cleared previously the companion cache, but this had no effect... now I cleared the Fully Kiosk cache, and it works.
Thanks for your prompt answer!


If trusted issuer is supplied, offline function should load up the corresponding did document

This will more closely resemble online version
verifyPassOffline(validExamplePass, { trustedIssuer: TRUSTED_ISSUERS.MOH_EXAMPLE }) // <-- this fails now

currently if you want to specify TRUSTED_ISSUERS.MOH_EXAMPLE trustedIssuer, you ALSO need to define didDocument

I second this :)
I thought the function was already doing that, but it turns out DID_DOCUMENTS.MOH_LIVE is the fallback when didDocument isn't provided in the options param.
In case somebody else come across the same issue, this code should suffice:
const trustedIssuer = TRUSTED_ISSUERS.MOH_EXAMPLE;
const didDocument = Object.values(DID_DOCUMENTS).find(document => document.id === trustedIssuer);

verifyPassURIOffline(validExamplePass, { trustedIssuer, didDocument });

Thanks for providing a workaround!


Map and Set.Patches bug and error throws.

🐛 Bug Report
1.Set can not record patches.
2.Map can not record patches some times.
3.Map throw an exception when calling mutative inside a producer.
To Reproduce
const { produce, createDraft, finishDraft } = require('immer');

/**
 * Set can not record patches
 */
const setNoPatches = function(){
    const obj = {
        set:new Set()
    }

    const result = produce(obj,draft=>{
        draft.set.add('abc');
    },(patches,inversePatches)=>{
        //patches and inversePatches is empty array
        console.log('PATCHES:',patches,inversePatches);
    });
    console.log('RESULT:',result);
}

/**
 * Map can not record some patches
 */
const mapChangeBug = function(){
    const obj = {
        map:new Map([
            ['a',new Map([
                ['b',true],
                ['c',true],
                ['d',true],
            ])],
            ['b',new Map([
                ['a',true]
            ])],
            ['c',new Map([
                ['a',true]
            ])],
            ['d',new Map([
                ['a',true]
            ])],
        ])
    };
    const result = produce(obj,draft=>{
        const aMap = draft.map.get('a');
        aMap.forEach((_,other)=>{
            const otherMap = draft.map.get(other);
            otherMap.delete('a');
        })
    } ,(patches,inversePatches)=>{
       //no patches of map 'b' 'c' 'd'.
        console.log('PATCH:',patches,inversePatches);
    });
    console.log('RESULT',result);
}
/**
 * Error:This object has been frozen and should not be mutated
 */
const mapChangeBug2 = function(){
    const obj = {
        map:new Map([
            ['a',new Map([
                ['b',true],
                ['c',true],
                ['d',true],
            ])],
            ['b',new Map([
                ['a',true]
            ])],
            ['c',new Map([
                ['a',true]
            ])],
            ['d',new Map([
                ['a',true]
            ])],
        ])
    };
    const obj1 = produce(obj,draft => {});
    const result = produce(obj1,draft=>{
        const aMap = draft.map.get('a');
        aMap.forEach((_,other)=>{
            const otherMap = draft.map.get(other);
            otherMap.delete('a');
        })
    } ,(patches,inversePatches)=>{
        console.log('PATCH:',patches,inversePatches);
    });
    console.log('RESULT',result);
}

setNoPatches();
mapChangeBug1();
//mapChangeBug2();

Expected behavior
Map and Set can record patches.And no error throw when calling mutative inside a producer.
Link to repro (highly encouraged)
https://codesandbox.io/s/inspiring-meitner-td7oc
Environment

immer 5.0.0

Notice, at least from "throw error" perspective, that in ES5 mode, it doesn't throw

By the way, the "throw" seems to me like an issue with the "freezing" part

:tada: This issue has been resolved in version 5.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: Add billing information section

Details:

Set up billing information section to take company information
Set up checkbox to see whether the billing information is needed

Fixes: #1849
Screenshots for the change:

Working on device rotation?

Yes, I have tested

updated


Allow sourcemaps generated through SourceMapDevToolPlugin with optimize-minimize

What kind of change does this PR introduce?
Currently, the command line option 'optimize-minimize' will allow generated sourcemaps if the user has the devtool option set, but doesn't respect the same settings when configured through the plugin directly.
Did you add tests for your changes?
Any feedback on testing for this change would be lovely; wasn't exactly sure how to get a cli test up and running using the SourceMapDevTool plugin
Summary
The CLI option -p, or 'optimize-minimize' is designed for production bundles. It will generate sourcemaps if the user configures sourcemaps through 'devtool', but doesn't respect that same settings when configured through the plugin directly.
Does this PR introduce a breaking change?
No
Other information

This is not the correct solution to this problem. SourceMapDevToolPlugin's responsibility is not to dictate or supercede compiler options.
Not to mention - last i checked, uglifyjs-webpack-plugin (which is what is added when u use --optimize-minimize/-p option) is restricted to sourcemapping when your devtool value is source-map or hidden-source-map.
That caveat aside - ultimately this solution belongs in your webpack config; by setting the devtool option correctly.

I've the same opinion. This creates a weird dependency.


API changes

Leave API change ideas here (respond or edit)

[ ] REST-like URL:s

Use plural on courses, tasks, etc
submit -> submissions
/ping -> ?ping=true

Tests time could be null, if the test didn't finish.


Fixes issue #777 - setContentType should include the encoding in response

Sure. I was trying to compare the behavior of both Tomcat and Piranha to see why the browser wasn't showing the right encoding.
I could see in the response that it was definitely encoded as UTF-8, but as the mime type was only "text/html", the browser interpreted as ISO-88591.
This way all non ASCII characters were been shown incorrectly.


hyper parameter optimization - suggested parameter grid

Which parameter and which range of values would you consider most useful for hyper parameter optimization of light gbm during an bayesian optimization process for a highly imbalanced classification problem?
parameters  denotes the search grid and static_parametersparameters which are statically applied during the search but not optimized for.
parameters = [
            dict(name="max_bin", type="int", bounds=dict(min=20, max=20000)),
            dict(name="learning_rate", type="double", bounds=dict(min=0.001, max=0.3)),
            dict(name="num_leaves", type="int", bounds=dict(min=100, max=4095)),
            # dict(name="num_leaves", type="int", bounds=dict(min=100, max=45000)),
            dict(name="scale_pos_weight", type="double", bounds=dict(min=0.01, max=2000.0)),
            dict(name="n_estimators", type="int", bounds=dict(min=10, max=10000)),
            dict(name="min_child_weight", type="int", bounds=dict(min=1, max=2000)),
            dict(name="subsample", type="double", bounds=dict(min=0.4, max=1)),
            dict(name="bagging_fraction", type="double", bounds=dict(min=0.3, max=1)),
            dict(name="max_depth", type="int", bounds=dict(min=2, max=50)),
        ]
static_parameters = {'boosting_type': 'dart', 'reg_alpha': 0, 'reg_lambda': 2, 'is_unbalance': True,
                             'min_split_gain': 0, 'min_child_samples': 10, 'colsample_bytree': 0.8, 'subsample_freq': 3,
                             'subsample_for_bin': 50000,
                             'histogram_pool_size': detect_available_memory_for_histogram_cache()}

For heavily unbalanced datasets such as 1:10000:

max_bin: keep it only for memory pressure, not to tune (otherwise overfitting)
learning rate: keep it only for training speed, not to tune (otherwise overfitting)
n_estimators: must be infinite and use early stopping to auto-tune (otherwise overfitting)
num_leaves: [7, 4095]
max_depth: [2, 63] and infinite (I personally saw metric performance increases with such 63 depth with small number of leaves on sparse unbalanced datasets)
scale_pos_weight: [1, 10000] (if over 10000, something might be wrong because I never saw it that good after 5000)
min_child_weight: [0.01, (sample size / 1000)] if you are using logloss (think about the hessian possible value range before putting "sample size / 1000", it is dataset-dependent and loss-dependent)
subsample: [0.4, 1]
bagging_fraction: only 1, keep as is (otherwise overfitting)
colsample_bytree: [0.4, 1]
is_unbalance: false (make your own weighting with scale_pos_weight)
USE A CUSTOM METRIC (to reflect reality without weighting, otherwise you have weights inside your metric with premade metrics like xgboost)

Never tune these parameters unless you have an explicit requirement to tune them:

Learning rate (lower means longer to train but more accurate, higher means smaller to train but less accurate)
Number of boosting iterations (automatically tuned with early stopping and learning rate)
Maximum number of bins (RAM dependent)

@laurae2 thanks. When searching in the latest python documentation for the sklearn. API some of the parameters no longer seem to be present. This applies to is_unbalance and scale_pos_weight. Are these still accessible i.e. via kwargs?

Also, I did not find a thing in the documentation that both of these should be applied XOR i.e. in the past I had the best results with:
is_unbalance : True, scale_pos_weight: 0.1

@geoHeil never mind for the last part (about the metric), it seems it was fixed in LightGBM (the bug is still present in xgboost).
If I remember, scale_pos_weight and is_unbalance are mixing themselves. They should still be accessible.
See here: https://github.com/Microsoft/LightGBM/blob/master/src/objective/binary_objective.hpp#L73-L82

@wxchan question below:

@geoHeil: When searching in the latest python documentation for the sklearn. API some of the parameters no longer seem to be present. This applies to is_unbalance and scale_pos_weight. Are these still accessible i.e. via kwargs?

@Laurae2 indeed, in the c code they are accessible - but https://github.com/Microsoft/LightGBM/blob/master/python-package/lightgbm/sklearn.py does not contain any references to these parameters.

@geoHeil You can check here for the whole list of parameters: https://github.com/Microsoft/LightGBM/blob/master/docs/Parameters.md

@Laurae2 indeed - as written above the parameters are documented there and are used in the C code.  I just find it strange that the python code i.e. in particular the scikit-learn API is not using any of these parameters.
May I clarify one more parameter: the hyper parameter tuning guide suggests looking at min_data_in_leaf. What about the other similar paraders of: min_child_weight, min_sum_hessian_in_leaf

@geoHeil I would just use min_child_weight unless it is really needed to expand the optimization dimensions (or if it is required to get the extra better digits on the performance metric).

They are still accessible via kwargs. There is a test case here https://github.com/Microsoft/LightGBM/blob/master/tests/python_package_test/test_sklearn.py#L101. drop_rate is set via kwargs.

if neg/pos is about 45-65, in this case, should we set scale_pos_weight to 1 or neg/pos ?
when i use BayesianOptimization(bayes tuning) to tune xgboost, if i set scale_pos_weight to neg/pos the ks on valid dataset is about 18, but if i set scale_pos_weight to 1, the ks on valid dataset up to 38 ... i don't know why ? can somebody help to explain ..


Change receiving mailbox bug

Hi when you have made alias and want to change the mailbox receiving. Everything works but when you press done (seen in pic 2) the app makes the changes but you have to press cancel to exit that window.
iOS 15.4
iPhone se (2020)
App build (20008)
Pic 1

Pic 2

Pic 3

Hello, thank you for the feedback. I'll fix this.

Please update to the new build (20009) and let me know if the issue persists.

Solved 👍👍


Update data.js

Adding a new project ChatGPT Clone using Html, Css and Js with OpenAI API
I would like to propose the implementation of a ChatGPT clone using HTML, CSS, and JS, utilizing the OpenAI API for natural language processing capabilities. This project aims to create an interactive chatbot interface that simulates conversations with users in a similar manner to OpenAI's ChatGPT model.
The clone would be designed to handle user queries and respond with relevant and contextually appropriate answers. By leveraging the OpenAI API, the chatbot would be capable of generating human-like responses, making the conversations more engaging and natural.
The implementation would involve developing the front-end components using HTML, CSS, and JS to create an intuitive and user-friendly interface. The OpenAI API would be integrated to handle the backend processing of user input and generating appropriate responses.
Key features of the ChatGPT clone would include:

Input textbox: Users can enter their queries or messages into the chat interface.
Response display: The chatbot will provide real-time responses that are generated based on the user input and processed by the OpenAI API.
Contextual understanding: The chatbot will maintain context throughout the conversation to provide accurate and meaningful responses.
User-friendly design: The interface will be visually appealing, responsive, and easy to navigate, ensuring a smooth user experience.

By creating this ChatGPT clone, we aim to provide a practical example of how the OpenAI API can be integrated into web applications to enhance user interactions and provide intelligent responses. This project would serve as a valuable learning resource and showcase the capabilities of the OpenAI technology.

Added difficulty.


feat(testplan): add director based openebs install plans

Signed-off-by: AmitKumarDas<EMAIL_ADDRESS>
Exact application name that is under test.

Storage engine that is under test

OpenEBS version if required.
Assumptions of this PR

Notes to reviewer.

Anything else we need to know?

Versions:

$ Kubernetes version
$ Kubernetes platform
$ kubectl version

LGTM, Can you resolve the conflicts.

LGTM with content, Can you resolve the conflicts.

done


Picovoice Issue: Custom wakeup word not deducted

Hi team I am using the custom wakeup word "Hey Mic" for voice assist in the console is is able to detect the voice but in the android application wakeup word is not detected also I have an update "Hey mic" .ppn file asset and code as below

please follow the docs. If the issue is not resolved after you followed the docs step-by-step feel free to re-open.


http: fix callers for when nested inside other methods in apps

Essentially, we want to be able to wrap InternalError inside other
functions in our apps, but the file-level information is nice to have.
Previously, the file information would be http.go:XX of the app, not
the route func we'd expect.

This adds a source=http.go:103 to each log, but go-kit's log adds this (it's incorrect in this case).
Maybe I should patch this upstream?


Add Union Operator; Update AST

Background
#55 discusses a need for a modified AST that distinguishes between set-to-stream and stream-to-stream policies, and furthermore distinguishes between sets and streams. Within that, we discuss the need for a Union operator, which effectively 'merges several classes into one'. This is critical in the construction of Set-to-Stream transformers, to allow such polices to arbitrate independent of queue distinctions.
Overview
My work on the type system in #63 allowed us to realize that we could turn typechecking into essentially an abstraction, and have our set and stream types inferred at parsing-time itself – that is to say, with a tweak to the AST and extending it to the parser as well. That's the first part part of the PR, which entails adding in the Union constructor to the AST, and partitioning it into the set and stream types.
Caveat And Explanation
@polybeandip and I discussed how far we thought this change should extend. On one hand, modifying Ast.t contractually requires us to modify Policy.t. An alternative, though, is to simply establish a correspondence Ast.t -> Policy.t. For simplicity and to preserve the work done in control, we have kept Policy.t in its original form, and adapted that correspondence.
In turn, this required modifying almost all of our programs such that they would be syntactically correct w.rt. the new AST structure and parsing mechanisms. In addition, a few extra 'reversions' to allow for parsed programs to be correctly evaluated in control.

@polybeandip Can you approve?


Run CI debug build with ASAN

CI should run the unit-tests of the debug build with ASAN.

ASAN is broken when using co-routines.


Problem with MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS

Repro: run AirSim with latest v1.8.2 firmware on Pixhawk v2 in HIL_QUADROCOPTER_X mode.  Try and take off, nothing happens, rotors do not spin.
The PX4 status shows MAV_MODE_FLAG_HIL_ENABLED and AirSim is getting MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS , but the actuator control values in the message are all zeros all the time even when my RC radio throttle is set to full.
See my px4 log file.  You can see my manual Throttle input in "Manual Control Inputs" graph - but these throttle values are not making it out to the HIL_ACTUATOR_CONTROLS message.
If I move my Pixhawk back to version 1.7.0 of the PX4 Firmware then everything works fine.  Has something changed recently in the mavlink protocol with PX4 in this area?
Note that if I also connect to nuttx shell the commander seems happy enough, but still sending no actuator controls to AirSim:
nsh> commander status
commander status
WARN  [commander] type: symmetric motion
WARN  [commander] safety: USB enabled: [OK], power state valid:  [OK]
WARN  [commander] home: lat = 47.6728307, lon = -122.1229818, alt = NaN, yaw: 0.08
WARN  [commander] home: x = 0.0055329, y = 0.0004450, z = NaN
WARN  [commander] datalink: OK
WARN  [commander] main state: 11
WARN  [commander] nav state: 18
WARN  [commander] arming: STANDBY
nsh> commander arm
commander arm
nsh> STATUS: sev=6, 'ARMED by command line'
STATUS: sev=6, '[logger] file: /fs/microsd/log/2019-03-21/21_00_2'
commander takeoff
commander takeoff
nsh> STATUS: sev=6, 'Using minimum takeoff altitude: 2.50 m'
    PX4_CUSTOM_MAIN_MODE_AUTO
    PX4_CUSTOM_SUB_MODE_AUTO_TAKEOFF
commander land
commander land
nsh> STATUS: sev=6, 'Landing at current position'
com    PX4_CUSTOM_MAIN_MODE_AUTO
    PX4_CUSTOM_SUB_MODE_AUTO_LAND
commander disarm
nsh> STATUS: sev=6, 'DISARMED by command line'

px4 parameters: params.zip
Note: the same scenario works fine with v1.8.2 SITL build of PX4.  So something different with HITL...

Can you flash the v3 target? You might have to update the bootloader first (https://docs.px4.io/en/config/firmware.html#bootloader).

I found the problem.  Turns out pwm_out_sim module was removed from nuttx_px4fmu-v2_default.cmake, but this module is needed to generate fake PWM actuator_outputs when running in HITL mode.  Uncommenting this line and rebuilding v1.8.2 firmware works fine.
       #drivers/pwm_out_sim

@lovettchris there should now be sufficient flash space to re-enable pwm_out_sim by default.

Yes, there was enough space, I didn't have to remove anything else.

Hi,
I have 1.9.2. installed and I have the same problem, even though pwm_out_sim is running. Anyway to further debug this?

I see #12249 might be related (same symptom)

Also possibly related #12629

@lovettchris I'm trying to reproduce the issue but I don't see it with jMAVSim.
I've therefore started to build AirSim on my Linux (Fedora 30) but I ran into other troubles there:
+ mono Binaries/DotNET/UnrealBuildTool.exe -projectfiles
Generating data for project indexing... 0%ERROR: This version of the Unreal Engine can only be compiled with clang 5.0, 4.0, 3.9, 3.8, 3.7, 3.6 and 3.5. clang 8.0.0 may not build it - please use a different version.


Improve build coverage for Linux and Darwin

Two changes here:

Pass target_os="all" to the existing Linux builds, so it will build
the various "linux" versions of things like tv-app.

Stand up build coverage of the same sort on Darwin.

Problem
It turned out we had no CI building the "linux" versions of things like tv-app on Darwin, and possibly not on Linux either.
Change overview
Run the "build" task on Darwin as well, and change the "build" task to do target_is="all".
The latter required bumping up the build and test timeouts on the Linux tests.  Basically, the opt gcc builds now take 20-25 mins and the debug gcc tests take 7-10 minutes.  The sum of the build and test times for both seems to be in the ~23 minute range.
Testing

Verified that before the most recent fixes on tip (#7608, #7607) the Darwin CI being added here fails.
Verified that after those changes the build CI passes on both Darwin and Linux.

This is going to build with clang in the "gcc" build and gcc in the "clang" build, etc. Currently CI is building the configs separately while the "unified" configuration tries to build them together.
(Admittedly this does mean we get different coverage unless we work to keep them in sync)
Should we perhaps instead augment examples-linux-standalone.yaml instead ? (and also run that on Mac)

Should we perhaps instead augment examples-linux-standalone.yaml instead ?

Excellent, this is just the sort of info I needed.  ;)  Let me look into that.  I suspect on Mac I'll still want to do the thing I am doing now, because that matches what people run in practice to get an "up to date" Mac build, but I was hoping there was a less-expensive way to do the Linux bits.

@mspan please take a look?  I went through the things the "default" build builds and looks like tv-app was the only one missing from examples-linux-standalone.

@saurabhst @jelderton @Damian-Nordic @LuDuda ?


Improve log 'in place' mode and extend shell to support that mode

First change is fairly trivial: Added interrupt locking when doing in place log processing to ensure that one will not interrupt another. Description from commit message:

When CONFIG_LOG_IMMEDIATE is enabled then logs are processed in the caller context. In that case, it must be ensured that one log call will not be interrupted by another. As log can be called from any context, interrupt locking is the only option.
When CONFIG_LOG_IMMEDIATE  is used then logger backend also works in blocking way without interrupts so blocking them will not interfere with backend processing.

Second change is in shell and it adds in place support to shell. Description from commit message:

Extended shell to be able to process logs in place (in the context of a log call). In order to achieve that, shell was extended to  support for TX blocking operations. If CONFIG_LOG_IMMEDIATE  is enabled then shell instance attempts to be initialized in blocking TX mode. If fails to do so, shell log backend is disabled. If successfully enabled logs are processed and printed in the context of the call.
Due to that change, user may experience interleaved output as shell has no means to multiplex shell output with logger output. In extreme, huge amount of log messages may prevent shell thread execution and shell may become unresponsive.

Codecov Report

Merging #12327 into master will increase coverage by <.01%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master   #12327      +/-   ##
==========================================
+ Coverage   48.32%   48.32%   +<.01%
==========================================
  Files         294      294
  Lines       44189    44191       +2
  Branches    10600    10600
==========================================
+ Hits        21353    21356       +3
  Misses      18569    18569
+ Partials     4267     4266       -1

Impacted Files
Coverage Δ

subsys/shell/shell.c
19.47% <0%> (ø)
:arrow_up:

subsys/logging/log_core.c
82.68% <100%> (+0.15%)
:arrow_up:

boards/posix/native_posix/timer_model.c
51.82% <0%> (+0.72%)
:arrow_up:

Continue to review full report at Codecov.

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

fairly gentle ping to all reviewers.

If
CONFIG_LOG_INPLACE_PROCESS is enabled then shell instance
attempts to be initialized in blocking TX mode. If fails to
do so, shell log backend is disabled.

And what "shell log backend is disabled" leads to? If to complete disabling of logging of output, then it's not what we want ;-). And if it leads to something else, e.g. switching to raw UART backend, then it rather should be mentioned explicitly in the commit message to not alarm users ;-).

@pfalcon

And what "shell log backend is disabled" leads to? If to complete disabling of logging of output, then it's not what we want ;-).

This is the case if shell backend cannot work in blocking mode, like shell over bluetooth for example. In that case if user enables LOG_IMMEDIATE option that will lead to the situation where some log backends will no start. Only those which are capable of working synchronously, without interrupts will be enabled.

I also remember that @carlescufi raised a question of renaming the config option for "immediate" mode, don't remember what was the decision. (Apparently, it happened in another ticket.)

In place has been renamed to LOG_IMMEDIATE

Aha, I see, thanks!


add openssh

See https://github.com/axllent/gitlabci-composer-update-mr/issues/1#issuecomment-927152260
I think this will work. (I’m not all that familiar with Docker.)

Thanks - I think you may be right! The only issue with these is that you install the full openssh (which includes the server). Can you please update your MR and change openssh for openssh-client for all Dockerfiles?

🤦🏻 of course


Do you still support this directive?

Hi,
are there any plans to support the angular version? There is really need for..

Yes, we do.


quick hack for multiple grid height scope scaling

A simple fix for the knobs and connectors would be to place them at the bottom side instead at the bottom side, otherwise they would need to move, too, like the handles. Vertical size needs to be saved and restored from json as well.

thanks!  i will merge this into scope-resize-vertical and work on that branch


Cannot use hot reload/restart from console

flutter run command does not print the controls help message for me. It just compiles and launches the app on the phone and pressing r/R doesn't do anything:
$ flutter run -d 1825 --hot
Launching lib/main.dart on 1825 I01 in debug mode...
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        14.6s
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
r
R
h
^C%

I'm experiencing this issue on 2.2.3 stable and 2.5.0-5.1-pre-beta. How do I get hot reload/restart to work on console?

HI @fctorial
flutter run -d 1825 --hot
hot reload is available by default, you don't need to specify --hot for it to work
Can you please provide your flutter doctor -v and try a different device or emulator?

$ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.3 at /home/fctorial/software/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/fctorial/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /home/fctorial/software/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = google-chrome-stable

[✓] Linux toolchain - develop for Linux desktop
    • clang version 7.1.0 (tags/RELEASE_710/final)
    • cmake version 3.18.2
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/fctorial/software/android-studio
    • Flutter plugin version 59.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
    • IntelliJ at /home/fctorial/software/idea-IU-203.7717.56
    • Flutter plugin version 59.0.3
    • Dart plugin version 211.7727

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 90.0.4430.212

• No issues found!

I tried running the app on a pixel 5 oreo avd, with the same results.

Hi @fctorial
I just tried same Pixel 5 Oreo emulator on Linux  (21.04)
Both hot restart/reload works from console
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Android SDK built for x86... (completed in 351ms)
[        ] Synced 0.0MB.
[   +3 ms] <- accept
[  +58 ms] Connected to _flutterView/0xe6975810.
[   +6 ms] Flutter run key commands.
[   +4 ms] r Hot reload. 🔥🔥🔥
[  +10 ms] R Hot restart.
[   +2 ms] h Repeat this help message.
[   +1 ms] d Detach (terminate "flutter run" but leave application running).
[   +1 ms] c Clear the screen
[   +1 ms] q Quit (terminate the application on the device).
[   +3 ms] 💪 Running with sound null safety 💪
[   +3 ms] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://<IP_ADDRESS>:36131/eIgg6HdT2qA=/
[ +775 ms] The Flutter DevTools debugger and profiler on Android SDK built for x86 is available at:
                    http://<IP_ADDRESS>:9101?uri=http%3A%2F%2F<IP_ADDRESS>%3A36131%2FeIgg6HdT2qA%3D%2F
[+69569 ms] Skipping target: gen_localizations
[   +1 ms] complete
[   +7 ms] Performing hot reload...
[  +27 ms] Scanned through 516 files in 10ms
[        ] Syncing files to device Android SDK built for x86...
[        ] Compiling dart to kernel with 1 updated files
[   +1 ms] <- recompile package:triage/main.dart d257db0e-a97d-447f-8ec0-883e63c50230
[        ] package:triage/main.dart
[        ] <- d257db0e-a97d-447f-8ec0-883e63c50230
[  +66 ms] Updating files.
[  +91 ms] DevFS: Sync finished
[        ] Syncing files to device Android SDK built for x86... (completed in 160ms)
[        ] Synced 0.0MB.
[ +115 ms] <- accept
[   +1 ms] reloaded 1 of 553 libraries
[  +13 ms] Reassembling application
[ +152 ms] Hot reload performed in 452ms.
[        ] Performing hot reload... (completed in 471ms)
[        ] Reloaded 1 of 553 libraries in 485ms.
[+12267 ms] Skipping target: gen_localizations
[   +1 ms] complete
[   +9 ms] Performing hot restart...
[  +41 ms] Scanned through 516 files in 27ms
[   +1 ms] Syncing files to device Android SDK built for x86...
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 1 updated files
[   +2 ms] <- recompile package:triage/main.dart c304b7d0-7604-4324-bc12-64dff35884d4
[   +1 ms] package:triage/main.dart
[        ] <- c304b7d0-7604-4324-bc12-64dff35884d4
[ +197 ms] Updating files.
[ +774 ms] DevFS: Sync finished
[        ] Syncing files to device Android SDK built for x86... (completed in 978ms)
[        ] Synced 26.1MB.
[        ] <- accept
[ +336 ms] Hot restart performed in 1,346ms.
[        ] Performing hot restart... (completed in 1,360ms)
[        ] Restarted application in 1,375ms.

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.3 at /home/taha/Code/flutter_stable
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/taha/Code/android-sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = /home/taha/Code/android-sdk
    • Java binary at: /home/taha/Code/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/taha/Code/android-studio
    • Flutter plugin version 58.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.59.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 8.1.0 (API 27) (emulator)
    • Linux (desktop)                    • linux         • linux-x64      • Linux
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 92.0.4515.131

• No issues found!

Hi @TahaTesser , I tried it on a windows machine with the same results.

Did it work for you on a real device or on emulator only?

Hi @fctorial
No issue on physical or emulator even on Windows. Looks like your running a physical device on both Linux and windows. Please try a different device or try the emulator
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Improve seek time for transfer logs

We use hash + counter keys at the moment, so to filter anything by date (and that's the primary thing we do) we have to walk through all logs. It works, but it can be quite resource-intensive for busy accounts like exchanges. I think we can use hash + timestamp + counter keys to improve things. The timestamp is going to be for the first element in this batch (and counter is still needed if one block overflows single batch), so with #2187 implemented we could always start iterating somewhere nearby the target, reducing the number of fetched from the DB batches.

This might also help with #2096.


Migrate from tfenv to tenv

Hi! I saw that you're using tfenv in this repository. It's a really good tool, but it does not support OpenTofu and Terragrunt. My team designed a successor of tenv that support Terraform, Terragrunt and OpenTofu. It will be a good idea to migrate into it in due to the growing popularity of OpenTofu.
url: https://github.com/tofuutils/tenv

Hi @kvendingoldo ... Nice dude,
Will update in next release... Thanks a lot!

@zeroc0d3 ping me if you will need any help :)


Perform login with Slack user, create user if needed

Using the authenticated Slack user, get the Slack user
email address and check the Cloudant DB for that user.
If user exists, log them in and get their Customer info.
If user does not exist, create one.
Context will be set using this Customer info.
Code is removed to handle login and adding a user.

Absolutely correct about adding the pre-canned users, and exposing emails. I deleted all of that.


Implement reservation auto-cancellation feature for unpaid bookings.

Check if the bookings are already paid.

Done.


[WFLY-17350] Custom mail providers are not loaded

Jira issue: https://issues.redhat.com/browse/WFLY-17350
The getSession() method was changed to use the "org.jboss.as.mail" classloader to prevent any caller module be able to load the session. In our Jakarta EE development cycle, we found "org.jboss.as.naming" was under this category.
However, changing the TCCL in getSession left the application classloader outside without being able to provide other Mail providers.
Now we change the strategy and add the Mail API providers available on "org.jboss.as.naming" and roll back the TCCL changes.

Let me hold it a bit since I want to add a test case

@yersan I don't understand the PR description. I see how changing the previous change of the TCCL would have broken loading providers from the deployment. But...

AFAICT the TCCL was changed to the jakarta.mail.api module classloader, not to org.jboss.as.mail.
I don't understand what the org.jboss.as.naming module has to do with it.

If we end up with this fix, the dependency in org.jboss.as.naming needs to be optional. It also will need an explanatory comment.

Hi @bstansberry , yes, my explanation was poor and I wrote the wrong module name.

AFAICT the TCCL was changed to the jakarta.mail.api module classloader, not to org.jboss.as.mail.

Yes, I mistakenly wrote "org.jboss.as.mail" but was "jakarta.mail.api" which is the module that provides the Session.class

I don't understand what the org.jboss.as.naming module has to do with it

The naming subsystem is able to list the JNDI tree. The Mail Session object is stored at java:jboss/mail/Default and the naming subsystem, by using /subsystem=naming:jndi-view() has the ability to list the Mail naming contexts and show its values.
In order to get a Mail Session value when listing the JNDI tree from the naming subsystem, the Jakarta Mail API needs to load the [StreamProvider](https://github.com/eclipse-ee4j/angus-mail/blob/master/core/src/main/resources/META-INF/services/jakarta.mail.util.StreamProvider) implementation which is supplied by Angus Mail.
This implementation is loaded from the context class loader, which is org.jboss.as.naming JBoss Modules module in this case. This StreamProvider usage is new in Jakarta Mail, for this reason, this was not needed before.
To be able to get a Session instance, we need to make the Mail Angus service implementations visible to org.jboss.as.naming JBoss Modules module, hence the change for this module.

It also will need an explanatory comment.

You're right, I should add a comment on the module since this behavior is a bit obscure. Even more obscure because org.jboss.as.naming has indeed no dependencies to org.jboss.as.mail which is the module that makes access to methods that load the Session.
I don't have experience with naming, I see there are several points where modules are loaded on demand, so I suspect that this module is somehow loaded by the naming subsystem. In any case, that was the old behavior in WF26, so I assume we are fine here.
Another point with minor doubts on my side is why we have to create an Object Session when java:jboss/mail/Default is retrieved, but again this has been the behavior in the past so I have not dug into it and I assumed that is correct and expected, probably the Mail specification can tell us about this point.


Apply reprojection in multiview for our cluster lookup

When rendering in stereoscopic we're seeing decals being cutoff in our Forward+ renderer:

This is caused by the way we filter which decals are processed when processing fragments. This is the bit that makes a forward+ renderer a forward+ renderer. In a pre-process we divide the screen into "tiles" and for each tile we determine which lights and decals effect fragments within that tile. It's a very efficient way of doing this however for multiview the current solution does this only in "combined frustum" space. As we lookup our tiles when rendering one of our eyes, we're lookup the wrong tile causing us to only partially see our decals.
Note that this issue also effects lights but it is often harder to spot.
This PR fixes this issue by performing an extra projection of our vertex in combined frustum space and using that to look up the correct tile.

Note: this "reprojection" only works because we do not take the depth buffer into account while building our light cluster data. Using the depth buffer is an often used optimisation which would be possible if we move the cluster logic after our depth pre-pass.
IF we ever decide to implement this we need to make this optional as it will break the reprojection trick as lights/decals may be obscured in our combined frustum but not in one of the eyes.
Sample project:
TestStereoDecal.zip

Will this also fix #60680 ?

Will this also fix #60680 ?

No, but thanks for reminding me of that one, I'll have a look on why thats going wrong next.

@Crusher50  Actually I'm going to restate my answer, this may fix it, or at least some of it. Re-reading the discussion on that issue that does look like a clustering issue. I thought there as a problem with the quality of the spotlight itself but that may have been a different issue (where a low resolution shadowmap is being used).
This indeed looks like an issue where the tile being used isn't correct, at least for the OP problem. The screenshot later on where attenuation is set to a low value will probably still be broken, that is simply that the light volume used to populate the tiles isn't large enough to encompass the light.

Yup, fixes #60680

Thanks!


The input isn't being generated by M.Chips

I just upgraded to 1.0 and new M.Chips wasn't working as expected. The error was that, <input></input> was not generated by Materialize as was the case < 1.0
I use jQuery 3.2.1 if that's of any use. I overcame this error by including the <input></input> in the snippet itself.
So instead of

, I had to write,

<input/>
 and bam! It started to work just fine.

Fixed in 14ad8937.
The input is now generated correctly when not included.

I encountered this error as well. I tried to copy and paste the fix but something went wrong. Is it possible to have this change in the dist?


Add support for 5385 model

And some QoL improvements to readme
I verified with my own hardware that I get a picture (raw_finger.pgm)

Thanks


"Add Load Balancer" page should show "Default Target Port" for "Listening Ports" in the default view.

Server version - V0.29.0-rc1
Launch the ""Add Load Balancer" page". The Listening ports shows only "Source Port" . Should also include "Default Target Port" field.  This field shows up only when "Show advanced routing options" is selected.

This was intentional, but at 1am and maybe too simplified... Opinions @ibuildthecloud and @alena1108 ?

Verified Fixed in v0.31.0-rc4


Standalone mode for remote control?

Is there an easy way to say, for example, --standalone --socket=some/ssh/mount/lightning-rpc and use lightning-qt as a remote control for a c-lightning node running on another machine?
I'm aware there's a roundabout way to remote control nodes with lightning-cli but it'd be nice not to need lightning-cli on the local machine and I'm not sure if lightning-qt is able to run like that.

Yes it would work but you would lose the advantages of being a plugin since they have to be registered on startup. Plugin-only functionalities (hooks, notifications) should then have to be conditionally implemented. Does it worth it or should we prefer other "solutions" (such as X11 forwarding maybe) ? Looking forward to have users opinion.

Here's an idea:
Make the plugin part expose a two-way communication interface (maybe a unix socket so  can just use ssh forwarding, maybe something else) and connect to that with the client with the actual GUI from wherever.

I thought about it and decided to integrate a standalone mode as you first proposed.

Make the plugin part expose a two-way communication interface (maybe a unix socket so you can just use ssh forwarding manually, maybe something else) that provides the node notifications the client needs and connect to that with the client with the actual GUI from wherever the user is.

It would however need an user to forward the UNIX socket. I'm working on the following scenario :

You have lightningd with lightning-qt remotely
You forward a UNIX domain socket locally
You python3 gui.py --socket-path /path/to/socket

I'll handle notification in a separate manager anyway

I added it in https://github.com/darosior/lightning-qt/commit/0dde987ec732651d5234c9681216bc4a040d2512, thank you for your suggestions : I've been wanting to do this since the beginning and you made me do it :D
Feel free to re open this issue if you have other related requests/questions.


After opening dashboard, context menu is buggy

System information:

Windows 10
DBeaver version: Version <IP_ADDRESS>205011839

When I do right click on a server or database, then > tools > Open Dashboard, subsequent right clicks on the same server or database display an incomplete context menu.
This is particularly true for SQL Server where the context menu contains "create null" after this manipulation

thanks for the report

Still reproducible in DBeaver 23.2.0

Can't reproduce it anymore. Does it still actual for the latest DBeaver version?

Unfortunately, yes


Injecting in a subclass

Recent update (v0.16.x) broke our code.  Here is example of code we have:
import injector

class X:
    pass

class Y:
    pass

class A:
    @injector.inject
    def __init__(self, x: X):
        print(x)

class B(A):
    @injector.inject
    def __init__(self, y: Y):
        super().__init__()
        print(y)

injector = injector.Injector()
injector.binder.bind(X, X())
injector.binder.bind(Y, Y())
b = injector.create_object(B)
print(b)

For version 0.15.0 output is:
<__main__.X object at 0x7f129f08e630>
<__main__.Y object at 0x7f129f08e6a0>
<__main__.B object at 0x7f129f09f198>

For version 0.16.x output is:
Traceback (most recent call last):
  File "test-injector.py", line 28, in <module>
    b = injector.create_object(B)
  File "/home/broomrider/.pyenv/versions/3.6.5/lib/python3.6/site-packages/injector/__init__.py", line 735, in create_object
    self._stack,
  File "/home/broomrider/.pyenv/versions/3.6.5/lib/python3.6/site-packages/injector/__init__.py", line 72, in reraise
    raise exception.with_traceback(tb)
  File "/home/broomrider/.pyenv/versions/3.6.5/lib/python3.6/site-packages/injector/__init__.py", line 723, in create_object
    self.call_with_injection(init, self_=instance, kwargs=additional_kwargs)
  File "/home/broomrider/.pyenv/versions/3.6.5/lib/python3.6/site-packages/injector/__init__.py", line 786, in call_with_injection
    reraise(e, CallError(self_, callable, args, dependencies, e, self._stack))
  File "/home/broomrider/.pyenv/versions/3.6.5/lib/python3.6/site-packages/injector/__init__.py", line 72, in reraise
    raise exception.with_traceback(tb)
  File "/home/broomrider/.pyenv/versions/3.6.5/lib/python3.6/site-packages/injector/__init__.py", line 784, in call_with_injection
    return callable(*full_args, **dependencies)
  File "test-injector.py", line 21, in __init__
    super().__init__()
TypeError: __init__() missing 1 required positional argument: 'x'

injector.call_with_injection(super().__init__) solves the problem, but I want to know what is the official™ way to inject to parent constructor and if it is a proper way, then why it works before?

First of all – I'm sorry I broke your code.
This is an unfortunate (although predictable) consequence of https://github.com/alecthomas/injector/commit/dcbd8c42bfab262a83c5c3b73afcf968c0b865d5 (mentioned in the changelog). I don't think injecting into parent/super constructors was ever officially supported but it did work thanks to some implementation details removed by the commit I mention. I thought about it for a while and all inheritance-based use cases I could think about could be solved by composition instead, for example:
import injector

class X:
    pass

class Y:
    pass

class A:
    @injector.inject
    def __init__(self, x: X):
        print(x)

class B:
    @injector.inject
    def __init__(self, a: A, y: Y):
        print(y)

injector = injector.Injector()
injector.binder.bind(X, X())
injector.binder.bind(Y, Y())
b = injector.create_object(B)
print(b)

so I went ahead with it.
I see the following possible solutions to the problem:

Stick with Injector 0.15.x
Replace inheritance with composition
Inject Injector and use Injector.call_with_injection()
Bring back injecting into parent constructors without the method wrapper thingy removed in https://github.com/alecthomas/injector/commit/dcbd8c42bfab262a83c5c3b73afcf968c0b865d5 – this is a hypothetical internal solution, not sure how plausible)

Ugh, I'm sorry, I thought I mentioned this in the changelog but I didn't, I need to fix that.

Oh, I see. Thanks for fast response. I think we will refactor our code in some way instead of pin injector version.

Just coming across this. I think the normal expectation would be that parent injection just works. Hopefully you can bring back official support for this.

If someone came up with a good solution bringing this behavior back and satisfying (quoting https://github.com/alecthomas/injector/issues/112#issuecomment-487718494)

Bring back injecting into parent constructors without the method wrapper thingy removed in dcbd8c4 – this is a hypothetical internal solution, not sure how plausible)

I'd consider merging it, but I'm not particularly fond of calling super() in child class' constructor and having dependencies "magically" appear in the parent class' constructor so I'm torn here.

I've been testing the upgrade path from 0.15 to 0.17 recently myself, and found that it's also broken situations that involve multiple inheritance. For example:
import injector

class A(object):
    pass

class B(object):
    pass

class C(object):
    pass

class M(object):
    @injector.inject
    def __init__(self, a: A):
        self.a = a

class N(M):
    @injector.inject
    def __init__(self, b: B, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.b = b

class O(M):
    @injector.inject
    def __init__(self, c: C, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.c = c

class P(O, N):
    pass

injector = injector.Injector()
injector.binder.bind(A, A())
injector.binder.bind(B, B())
injector.binder.bind(C, C())
o = injector.create_object(O)

In 0.15, this worked fine. In 0.16+, this no longer works - the interpreter complains that b hasn't been supplied to the constructor of N.


create simple Student Information System to understand the work of pouchdb and electron

create crud operation:

Add student
view student
display student list
update student
delete student

I have to integrate PouchDB with electronJS student information system application.
Added Student need to show in in UI

I have added view option student for student information system.

Added DB for the student info & saved data in IndexdDB

Defunct.


Difference between ReactorKit and RxFeedback

Hi,
It's more an explanation than an issue. I am new to these architecture and have recently started Rx programming.
1- What's the difference between RxFeedback and ReactorKit ? They look similar but the implementation is a bit different.
2- I would like to implement the business logic in C++. Is there an example on how to do this?
3- When you implement a UI Feedback loop, will the State usually look like the ViewModel?
Thanks,
Elie

Hi @kzaher,
I am currently trying it in a sample project and I would like to know if there is any pattern you are following to share state between different view controllers. Let me explain the problem:

The app is currently showing VC1(ViewController1). When the user taps on a button the app alternates the current state and as a reaction to this event we will present/push a new VC2.
Can VC2 start with the state taken from VC1?
Lets assume that in VC2, some events alternated the state. What pattern do you usually use to send back the events/new state to VC1 once VC2 has been dismissed/popped? Do you usually do that?

Assume a viewController is showing two children viewControllers. How do you manage the communication between the two childrenViewControllers and the communication between the child and its parent. Do you perform the subscription on the parentViewController only or on every childViewController?

Do you have a plan to share a sample project that might contain some complex workflows (using different screens, database, animations)?

@eliekarouz Hello, did you find/made any examples about your questions?

@disquad I am actually using RxFeedback. Didn't have the chance to try ReactorKit though.

@eliekarouz Yeh, I'm talking about RxFeedback. Can you share any examples for navigation/triggers/etc, I would be very grateful 🙂

@eliekarouz I am currently applying RxFeedback at a screen level... So I encode a variable in the state called route. It's an enum Route and I have a react feedback that triggers the navigation (it could be in a bind too.
The way I see it (It's still an idea and don't have a proof it works)
I was thinking of actually inverting things but didn't have time to do it or even try it... The idea is to have the state machine control the flow (navigation) so a view controller never starts a system but a system places the view controllers on the screen. A state machine would start another inner state machine and so on. Each state machine can show/push multiple view controllers and can update the result to the parent state machine. The ui state will be stored in the state instead of a hidden state in the UINavigationController...
Again this is still an idea if you would like or have time to try it.


Variable String Thickness and Fret Width

Is your feature request related to a problem? Please describe.
All strings and frets on the guitar are displayed of equal size, making it difficult to internalize note locations on an actual guitar vs the application UI.
Describe the solution you'd like
The lowest bass string should be thickest and then gradually shrink until the highest string, which will be thinnest. Similarly, fret 1 should be the widest and gradually shrink to the last fret displayed.
Describe alternatives you've considered
n/a
Additional context
n/a

Picking up this work. Starting with string thickness

Re-opening until fret width is enhanced

This has now been completed


add begin-to-end tutorial about providing annotations to an existing code base

A swagger (2.0) spec can be generated using annotations (Godoc comments). These are well documented for the most part on https://github.com/go-swagger/go-swagger/tree/master/docs/generate/spec.
Yet, to a beginner this might not be sufficient to make it all comprehensible. Therefore it might help a lot to provide a begin-to-end tutorial about providing annotations to an existing (service) code base, and how you can go-swagger to then generate a spec and client from it. Keeping your spec, documentation and client always in sync with your existing service codebase.
Originally suggested by @nathany in issue #559

related to #213

An intermediary step to a full end-to-end tutorial might simply be a working example. I've seen the reference to https://github.com/go-swagger/go-swagger/tree/master/fixtures/goparsing/petstore in issue #213 but if I clone your repo, go to that directory and run
swagger generate spec -o ./swagger.json
I get a swagger spec with no paths, models or anything of use. It appears to only be reading the doc.go in that directory and ignoring the code under it.
Running it in any of the sub folders generates loads of errors like:
/Users/x4e5/go/src/github.com/go-swagger/go-swagger/fixtures/goparsing/petstore/models/pet.go:17:8: could not import time (cannot find package "time" in any of:
/Users/x4e5/go/src/github.com/go-swagger/go-swagger/vendor/time (vendor tree)
/usr/local/go/src/time (from $GOROOT)
/Users/x4e5/go/src/time (from $GOPATH))
The result being that I still have zero idea how to use this thing.

This issue contains a good example: https://github.com/go-swagger/go-swagger/issues/1038


Updated MBC1 & About Section

I fixed some grammar, and made the first paragraph more concise in MBC1. I also addressed issue #65 by adding a sentence about what the Pan Docs is for in the About section.

I also addressed issue #65 by adding a sentence about what the Pan Docs is for

Thanks @aaaaaa123456789 and @wawesomeNOGUI ! Did some corrections and merged.


New feature [zoom in all part of videos]

Adding a new feature to the app in this program when zooming in movies, we don't always need to zoom in the middle of the movie, sometimes we need to see the corners or other parts of a movie bigger, so it is necessary to zoom in such a way that any point can be zoomed.  You can zoom in on the movie. There are few apps that have this feature
For example, I've seen this feature in Samsung's app player and I'll give an example
https://github.com/moneytoo/Player/assets/133971463/d3fb91b4-a60f-4f45-a217-8a851e21f4ee

Duplicate of #101


duplicacy: 3.2.3 -> 3.2.4

https://github.com/gilbertchen/duplicacy/compare/v3.2.3...v3.2.4

move to by-name

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

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

x86_64-linux

:white_check_mark: 1 package built:

duplicacy


Scan error on column index 4: unsupported Scan

2016/04/11 17:40:21 http: panic serving <IP_ADDRESS>:56089: sql: Scan error on column index 4: unsupported Scan, storing driver.Value type []uint8 into type *time.Time
why? bug?

I guess you need to add proper parameter to your connection string. (?parseTime=true)
https://github.com/Go-SQL-Driver/MySQL/issues/9

Am closing this, if its still a bug then please re-open

I  solved the problem with add ?parseTime=true，  thank you ！

What about postgres?

This great article nicely explains the problem and offers solutions for MySQL and Postgres:  https://medium.com/aubergine-solutions/how-i-handled-null-possible-values-from-database-rows-in-golang-521fb0ee267

I have set parseTime = true，but it does not work.why?

i have the same problem,but it doesn't work by add  ?parseTime=true to the mysql connection


fix(ockam/node): Rename vault argument to VAULT_NAME and add doc string

Rename the vault argument to VAULT_NAME in the Ockam node creation module. Additionally, added a docstring to clarify that VAULT_NAME specifies the name of the Vault that the node will use.
This change improves code clarity and documentation for the node creation process.
Related issue: https://github.com/build-trust/ockam/issues/6384

Current behavior

The vault argument value name on ockam node create is VAULT.
Proposed changes

The vault argument value name on ockam node create changed to VAULT_NAME and a doc string added with the as Name of the Vault that the node will use.
Checks

[x] All commits in this Pull Request are signed and Verified by Github.
[x] All commits in this Pull Request follow the Ockam commit message convention.
[x] There are no Merge commits in this Pull Request. Ockam repo maintains a linear commit history. We merge Pull Requests by rebasing them onto the develop branch. Rebasing to the latest develop branch and force pushing to your Pull Request branch is okay.
[x] I have read and accept the Ockam Community Code of Conduct.
[ ] I have read and accepted the Ockam Contributor License Agreement by adding my Git/Github details in a row at the end of the CONTRIBUTORS.csv file in a separate pull request to the build-trust/ockam repository. The easiest way to do this is to edit the CONTRIBUTORS.csv file in the github web UI and create a separate Pull Request, this will mark the commit as verified.

Created this PR - https://github.com/build-trust/ockam/pull/6419 to get added to the contributors' list. Once added, I can check the last option in the above comment.


Responsive Web Design: Improve translate Give Links Meaning by Using …

…Descriptive Link Text

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@greggubarev Since you are doing several of these translations, would you mind adding the label Russian and if it relates to the curriculum add the scope: curriculum or scope: guide for Guide related translations.  That would really help us out.
Thank you for all your hard work!

Ok, got it

@greggubarev Since you are doing several of these translations, would you mind adding the label Russian and if it relates to the curriculum add the scope: curriculum or scope: guide for Guide related translations. That would really help us out.
Thank you for all your hard work!

Creating a label
How i can create a label, i dont have write access.. or am i wrong?

@greggubarev You can't only collaborator and above can, however in your PR's title, you could add the language at the beginning like [Russian] Rest of the title

@ezioda004 Ok, thank you, in my next commits i`ll use this!

@greggubarev I'm not sure if you are allowed to merge your own PR's. Please confirm this with @QuincyLarson and @raisedadead.


Deadlock in Fongo 1.6.3

@twillouer similar to #120 and #111, I'm seeing a different deadlock issue in 1.6.3
Below is the output from the thread dump
build   12-Aug-2015 13:53:37    JNI global references: 396
build   12-Aug-2015 13:53:37    Found one Java-level deadlock:
build   12-Aug-2015 13:53:37    =============================
build   12-Aug-2015 13:53:37    "qtp1956382313-28":
build   12-Aug-2015 13:53:37      waiting to lock monitor 0x00007f75fc006bf8 (object 0x0000000731ecc9e0, a com.mongodb.FongoDB),
build   12-Aug-2015 13:53:37      which is held by "main"
build   12-Aug-2015 13:53:37    "main":
build   12-Aug-2015 13:53:37      waiting to lock monitor 0x00007f7674003b98 (object 0x00000007375b8d10, a com.mongodb.FongoDBCollection),
build   12-Aug-2015 13:53:37      which is held by "qtp1956382313-28"
build   12-Aug-2015 13:53:37    Java stack information for the threads listed above:
build   12-Aug-2015 13:53:37    ===================================================
build   12-Aug-2015 13:53:37    "qtp1956382313-28":
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDB.addCollection(FongoDB.java)
build   12-Aug-2015 13:53:37        - waiting to lock <0x0000000731ecc9e0> (a com.mongodb.FongoDB)
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDBCollection.addToIndexes(FongoDBCollection.java:1199)
build   12-Aug-2015 13:53:37        - locked <0x00000007375b8d10> (a com.mongodb.FongoDBCollection)
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDBCollection.putSizeCheck(FongoDBCollection.java:154)
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDBCollection.insert(FongoDBCollection.java:121)
build   12-Aug-2015 13:53:37        - locked <0x00000007375b8d10> (a com.mongodb.FongoDBCollection)
build   12-Aug-2015 13:53:37        at com.mongodb.DBCollection.insert(DBCollection.java:161)
build   12-Aug-2015 13:53:37        at com.mongodb.DBCollection.insert(DBCollection.java:107)
build   12-Aug-2015 13:53:37        at com.mongodb.DBCollection.save(DBCollection.java:1049)
build   12-Aug-2015 13:53:37        at com.mongodb.DBCollection.save(DBCollection.java:1014)
build   12-Aug-2015 13:53:37        at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:1030)
build   12-Aug-2015 13:53:37        at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:458)
build   12-Aug-2015 13:53:37        at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:1025)
build   12-Aug-2015 13:53:37        at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:965)
build   12-Aug-2015 13:53:37        at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:911)
...snip...

build   12-Aug-2015 13:53:37    "main":
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDBCollection._dropIndexes(FongoDBCollection.java)
build   12-Aug-2015 13:53:37        - waiting to lock <0x00000007375b8d10> (a com.mongodb.FongoDBCollection)
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDBCollection.drop(FongoDBCollection.java:1112)
build   12-Aug-2015 13:53:37        at com.mongodb.FongoDB.dropDatabase(FongoDB.java:133)
build   12-Aug-2015 13:53:37        - locked <0x0000000731ecc9e0> (a com.mongodb.FongoDB)
build   12-Aug-2015 13:53:37        at com.github.fakemongo.Fongo.dropDatabase(Fongo.java:95)
build   12-Aug-2015 13:53:37        at com.mongodb.MockMongoClient.dropDatabase(MockMongoClient.java:58)
...snip...

Does FongoDB#dropDatabase() need to be synchronized?  It seems like that might fix the issue.

Here is a test harness that exposes the issue, at least on my machine
import com.github.fakemongo.Fongo;
import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;
import com.mongodb.MongoClient;

import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

public class Issue132 {

    public static void main(String [] args) throws Exception {
        Fongo fongo = new Fongo("deadlock");

        MongoClient client = fongo.getMongo();
        String databaseName = "test";

        CyclicBarrier barrier = new CyclicBarrier(2);
        ExecutorService service = Executors.newCachedThreadPool();

        service.submit(() -> {
            try {
                barrier.await();

                for (int i=0; i < 1000000; i++) {
                    DBCollection collection = client.getDB(databaseName).getCollection("test");

                    DBObject object = new BasicDBObject();
                    object.put("name", String.valueOf(System.currentTimeMillis()));

                    collection.insert(object);
                }

            } catch (Throwable ex) {
                System.err.println("Error while inserting to db");
                ex.printStackTrace();
            }
        });

        service.submit(() -> {
            try {
                barrier.await();

                for (int i=0; i < 1000000; i++) {
                    client.dropDatabase(databaseName);
                }

            } catch (Throwable ex) {
                System.err.println("Error while dropping db");
                ex.printStackTrace();
            }
        });

        service.shutdown();
        service.awaitTermination(1, TimeUnit.DAYS);
    }

}

I tested the above class with the fix provided in https://github.com/fakemongo/fongo/pull/133 and the test passes.

Thanks, I try to fix it but... it's too difficult for me :)
For my information, why do you use the same Fongo object for dropping a collection when you insert data ?

Its used in a spring boot integration test.  The fongo database is a shared resource and the database is dropped between each test
However, the server side of the test appears to be running while the test is cleaning up.  Theres probably a better way to implement this on my end.

Thanks, I try to fix it but... it's too difficult for me :)
For my information, why do you use the same Fongo object for dropping a collection when you insert data ?

@twilouer do you need anything else from me on this one?

This commit fixed this deadlock: https://github.com/Jimilian/fongo/commit/bf81309b93381d935afd13e7070194eac116e8bb

Thanks. Can you do a PR ?

Yes, https://github.com/fakemongo/fongo/pull/155

doesn't look like this fix ever made it into 2.x?