[18.03] firefox-{esr,} 60

Motivation for this change
Backport of #40006
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Failure on aarch64-linux (full log)
Attempted: nspr, nss
Partial log (click to expand)
patching file nss/lib/ckfw/pem/psession.c
patching file nss/lib/ckfw/pem/pslot.c
patching file nss/lib/ckfw/pem/ptoken.c
patching file nss/lib/ckfw/pem/rsawrapr.c
patching file nss/lib/ckfw/pem/util.c
patching file lib/freebl/Makefile
Hunk #1 FAILED at 522.
1 out of 1 hunk FAILED -- saving rejects to file lib/freebl/Makefile.rej
builder for '/nix/store/mzvc9r1dwgh07r1r61288q1q40bwvcb1-nss-3.36.1.drv' failed with exit code 1
error: build of '/nix/store/mzvc9r1dwgh07r1r61288q1q40bwvcb1-nss-3.36.1.drv' failed

Success on x86_64-linux (full log)
Attempted: nspr, nss
Partial log (click to expand)
    bb e1 3f eb d5 99 66 ab fa db
    4b d5 e9 70
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
Generate a DSA key pair ...
Moving /nix/store/3mbff5r06yj5kbgysr7j7fh17bwgyjxq-nss-3.36.1/bin to /nix/store/m6in1g7hvyqnzqy01c17326xmgbqciq5-nss-3.36.1-tools/bin
rmdir: failed to remove '/nix/store/3mbff5r06yj5kbgysr7j7fh17bwgyjxq-nss-3.36.1': Directory not empty
Moving /nix/store/m6in1g7hvyqnzqy01c17326xmgbqciq5-nss-3.36.1-tools/bin/nss-config to /nix/store/j3yjlkq894fby4wwf0zpjnicqx87isny-nss-3.36.1-dev/bin/nss-config
rmdir: failed to remove '/nix/store/m6in1g7hvyqnzqy01c17326xmgbqciq5-nss-3.36.1-tools/bin': Directory not empty
Moving /nix/store/3mbff5r06yj5kbgysr7j7fh17bwgyjxq-nss-3.36.1/lib/libcrmf.a to /nix/store/j3yjlkq894fby4wwf0zpjnicqx87isny-nss-3.36.1-dev/lib/libcrmf.a
rmdir: failed to remove '/nix/store/3mbff5r06yj5kbgysr7j7fh17bwgyjxq-nss-3.36.1/lib': Directory not empty

Success on x86_64-darwin (full log)
Attempted: nspr, nss
Partial log (click to expand)
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
Generate a DSA key pair ...
Moving /nix/store/4hw5zb26hwqva0f2rghbkmsan4fi9212-nss-3.36.1/bin to /nix/store/q8qrj23zkkfnhzw0apiracsshk1w7850-nss-3.36.1-tools/bin
rmdir: failed to remove '/nix/store/4hw5zb26hwqva0f2rghbkmsan4fi9212-nss-3.36.1': Directory not empty
Moving /nix/store/q8qrj23zkkfnhzw0apiracsshk1w7850-nss-3.36.1-tools/bin/nss-config to /nix/store/bng930ck241l44fabkdp7xkzyna66pjn-nss-3.36.1-dev/bin/nss-config
rmdir: failed to remove '/nix/store/q8qrj23zkkfnhzw0apiracsshk1w7850-nss-3.36.1-tools/bin': Directory not empty
Moving /nix/store/4hw5zb26hwqva0f2rghbkmsan4fi9212-nss-3.36.1/lib/libcrmf.a to /nix/store/bng930ck241l44fabkdp7xkzyna66pjn-nss-3.36.1-dev/lib/libcrmf.a
rmdir: failed to remove '/nix/store/4hw5zb26hwqva0f2rghbkmsan4fi9212-nss-3.36.1/lib': Directory not empty
/nix/store/833hms4620zqlhw5ggxza69kp98q8sal-nspr-4.19
/nix/store/4hw5zb26hwqva0f2rghbkmsan4fi9212-nss-3.36.1

Success on x86_64-linux (full log)
Attempted: nspr, nss
Partial log (click to expand)
/nix/store/ryhr1ljccqcnj7qrrwdb6xdqcmg0391s-nspr-4.19
/nix/store/3mbff5r06yj5kbgysr7j7fh17bwgyjxq-nss-3.36.1

Failure on aarch64-linux (full log)
Attempted: nspr, nss
Partial log (click to expand)
patching file nss/lib/ckfw/pem/psession.c
patching file nss/lib/ckfw/pem/pslot.c
patching file nss/lib/ckfw/pem/ptoken.c
patching file nss/lib/ckfw/pem/rsawrapr.c
patching file nss/lib/ckfw/pem/util.c
patching file lib/freebl/Makefile
Hunk #1 FAILED at 522.
1 out of 1 hunk FAILED -- saving rejects to file lib/freebl/Makefile.rej
builder for '/nix/store/mzvc9r1dwgh07r1r61288q1q40bwvcb1-nss-3.36.1.drv' failed with exit code 1
error: build of '/nix/store/mzvc9r1dwgh07r1r61288q1q40bwvcb1-nss-3.36.1.drv' failed

Success on x86_64-darwin (full log)
Attempted: nspr, nss
Partial log (click to expand)
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
Generate a DSA key pair ...
Moving /nix/store/0v2wsbdjcrxvj9iqvahzsfyj9xszbkcv-nss-3.36.1/bin to /nix/store/w6rdpi2znci6z0wjb4wq61gmp686zg3h-nss-3.36.1-tools/bin
rmdir: failed to remove '/nix/store/0v2wsbdjcrxvj9iqvahzsfyj9xszbkcv-nss-3.36.1': Directory not empty
Moving /nix/store/w6rdpi2znci6z0wjb4wq61gmp686zg3h-nss-3.36.1-tools/bin/nss-config to /nix/store/k1imnpsw08wspyvh2i0mjnxn4xxnihjy-nss-3.36.1-dev/bin/nss-config
rmdir: failed to remove '/nix/store/w6rdpi2znci6z0wjb4wq61gmp686zg3h-nss-3.36.1-tools/bin': Directory not empty
Moving /nix/store/0v2wsbdjcrxvj9iqvahzsfyj9xszbkcv-nss-3.36.1/lib/libcrmf.a to /nix/store/k1imnpsw08wspyvh2i0mjnxn4xxnihjy-nss-3.36.1-dev/lib/libcrmf.a
rmdir: failed to remove '/nix/store/0v2wsbdjcrxvj9iqvahzsfyj9xszbkcv-nss-3.36.1/lib': Directory not empty
/nix/store/zmqj9x444chy98avj5sf7i4vn3mgy51b-nspr-4.19
/nix/store/0v2wsbdjcrxvj9iqvahzsfyj9xszbkcv-nss-3.36.1

Failure on x86_64-darwin (full log)
Attempted: nspr, nss, sqlite
Partial log (click to expand)
cannot build derivation '/nix/store/8nn6whdfxk5jslnv1z6ydvwri8hqh6zd-apple-framework-NetFS.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/nw53nah3jvbihg844zwk774bjiriqngb-apple-framework-OpenDirectory.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/ika32aq4vwjkrdnybcdjfllh6pdg9l34-apple-framework-CoreAudio.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/6khy3mjc1b3dai8ind11yw1w92zxhh5l-apple-framework-DiskArbitration.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/snq9331qq3p2xx99xs0ayjbs2h27dcpq-apple-framework-Security.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/64n1qs06xck6x98jcq7zim9mb35995dh-apple-framework-ServiceManagement.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/0bf6x63kxx7c8pr4jrx7acnc9aq166mb-apple-framework-CoreServices.drv': 12 dependencies couldn't be built
cannot build derivation '/nix/store/b39zyn18gcdbcqgmhnyqfmcnclv4a2m8-nspr-4.19.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/inm6zp52382b0h32xpqq4lancx6lmkk2-nss-3.36.1.drv': 7 dependencies couldn't be built
error: build of '/nix/store/7yv64rs195gn93kwk39drw2l0fsqcaf8-sqlite-3.22.0.drv', '/nix/store/b39zyn18gcdbcqgmhnyqfmcnclv4a2m8-nspr-4.19.drv', '/nix/store/inm6zp52382b0h32xpqq4lancx6lmkk2-nss-3.36.1.drv' failed

Success on x86_64-linux (full log)
Attempted: nspr, nss, sqlite
Partial log (click to expand)
/nix/store/ryhr1ljccqcnj7qrrwdb6xdqcmg0391s-nspr-4.19
/nix/store/vgplmqd3wymass20b019lvkgavis5xya-nss-3.36.1
/nix/store/0dzaiissi1ch89g74c29fr53m4kiryim-sqlite-3.22.0-bin

Success on aarch64-linux (full log)
Attempted: nspr, nss, sqlite
Partial log (click to expand)
Generate a DSA key pair ...
Moving /nix/store/nx0s7s7pddny8x10j628a18p8jw9ccsa-nss-3.36.1/bin to /nix/store/swrax095kcf3f9kpj40x6v76yc2c6kll-nss-3.36.1-tools/bin
rmdir: failed to remove '/nix/store/nx0s7s7pddny8x10j628a18p8jw9ccsa-nss-3.36.1': Directory not empty
Moving /nix/store/swrax095kcf3f9kpj40x6v76yc2c6kll-nss-3.36.1-tools/bin/nss-config to /nix/store/j3xdj5kpw1v9fhds12imlypb8nw86cjz-nss-3.36.1-dev/bin/nss-config
rmdir: failed to remove '/nix/store/swrax095kcf3f9kpj40x6v76yc2c6kll-nss-3.36.1-tools/bin': Directory not empty
Moving /nix/store/nx0s7s7pddny8x10j628a18p8jw9ccsa-nss-3.36.1/lib/libcrmf.a to /nix/store/j3xdj5kpw1v9fhds12imlypb8nw86cjz-nss-3.36.1-dev/lib/libcrmf.a
rmdir: failed to remove '/nix/store/nx0s7s7pddny8x10j628a18p8jw9ccsa-nss-3.36.1/lib': Directory not empty
/nix/store/lxv3zk13mvpsnq6kxq1qdckyj6p3airr-nspr-4.19
/nix/store/nx0s7s7pddny8x10j628a18p8jw9ccsa-nss-3.36.1
/nix/store/7wribi9yrwl5ngj3k9qc75a7phmbcns4-sqlite-3.22.0-bin

Failure on x86_64-darwin (full log)
Attempted: nspr, nss, sqlite
Partial log (click to expand)
cannot build derivation '/nix/store/8nn6whdfxk5jslnv1z6ydvwri8hqh6zd-apple-framework-NetFS.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/nw53nah3jvbihg844zwk774bjiriqngb-apple-framework-OpenDirectory.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/ika32aq4vwjkrdnybcdjfllh6pdg9l34-apple-framework-CoreAudio.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/6khy3mjc1b3dai8ind11yw1w92zxhh5l-apple-framework-DiskArbitration.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/snq9331qq3p2xx99xs0ayjbs2h27dcpq-apple-framework-Security.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/64n1qs06xck6x98jcq7zim9mb35995dh-apple-framework-ServiceManagement.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/0bf6x63kxx7c8pr4jrx7acnc9aq166mb-apple-framework-CoreServices.drv': 12 dependencies couldn't be built
cannot build derivation '/nix/store/b39zyn18gcdbcqgmhnyqfmcnclv4a2m8-nspr-4.19.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/inm6zp52382b0h32xpqq4lancx6lmkk2-nss-3.36.1.drv': 7 dependencies couldn't be built
error: build of '/nix/store/7yv64rs195gn93kwk39drw2l0fsqcaf8-sqlite-3.22.0.drv', '/nix/store/b39zyn18gcdbcqgmhnyqfmcnclv4a2m8-nspr-4.19.drv', '/nix/store/inm6zp52382b0h32xpqq4lancx6lmkk2-nss-3.36.1.drv' failed


fix: correctly handle nulls in btree and bitmap indices

There were a few issues with our null handling in scalar indices.
First, it appears I assumed earlier that X < NULL and X > NULL would always be false.  However, in arrow-rs the ordering considers NULL to be "the smallest value" and so X < NULL always evaluated to true.  This required some changes to the logic in the btree and bitmap indices.
Second, the btree index was still using the v1 file format because it relied on the page size to keep track of the index's batch size.  I've instead made the batch size a configurable property (configurable in code, not configurable by users) and made it so that btree can use the v2 file format.
Finally, related to the above, I changed it so we now write v2 files for all scalar indices, even if the dataset is a v1 dataset.  I think that's a reasonable decision at this point.
The logic to fallback and read the old v1 files was already in place (I believe @BubbleCal added it back when working on inverted index) but I added a migration test just to be sure we weren't breaking our btree / bitmap support.
Users with existing bitmap indices will get the new correct behavior without any changes.
Users with existing btree indices will get some of the new correct behavior but will need to retrain their indices to get all of the correct behavior.

Although I think we might consider this a breaking change, since IIUC older versions won't be able to read the new scalar indices, right? Or will they?

They will not be able to.  They would get a runtime error about "legacy method called on v2 file".  However, that's more of a forward compatibility concern right?  This is technically not a breaking change according to semver but I'm fine considering it as one.  Otherwise A/B style upgades will break  I will update the title.


Update specs with new GPU nodes

closes https://github.com/bsurc/docs/issues/16
closes https://github.com/bsurc/docs/issues/33

closes #16 closes #33

P100s?

Yeah, I'll add the P100 specs too


Submit flatpak build task

Fix some issues when submitting a real flatpak build.

Arches should be inherited from image when creating composes.
Emptyp list for rpm_nvrs will cause LightBlueSystemError, input
None instead.
Add build arg original_parent as None as discussed in RHELWF-3779.
It is a required arg when build image.

JIRA: RHELWF-3861

@hluk @gnaponie @qixiang Please help to review, thanks!


(PUP-777) Remove 'versionRequirement' for dependencies

Prior to this commit, we had undocumented support for
'versionRequirement' instead of 'version_requirement' for a dependency
in the metadata.json. This support was created because an old version
of Gepetto inadvertently gave this as the field key. With this commit,
we remove the support for that undocumented field.

CLA signed by all contributors.

:+1:


[metallb] microk8s status shows addon as enabled even if addon fails during enable

Summary
The following command microk8s enable metallb <IP_ADDRESS>/29 failed with error timedout waiting for ....
But microk8s status shows metallb as enabled.
Eventually the metallb pods are active but the issue is IPaddresspool is not set [1].
[1] https://github.com/canonical/microk8s-core-addons/blob/main/addons/metallb/enable#L63
What Should Happen Instead?
It is expected
a. either microk8s status shows metallb as disabled OR
b. ipaddresspools can be set before waiting for deployment to be active
Reproduction Steps
The problem may be observed on machines where it might take time to pull the images

microk8s enable metallb <IP_ADDRESS>/29
microk8s status

Introspection Report
Not required.
Can you suggest a fix?
See what should happen instead
Are you interested in contributing with a fix?
I am if the way forward is decided

Hi @hemanthnakkina, thank you for raising this issue.
Indeed, it looks like we do not have to wait for the MetalLB deployment to come up before we configure the addresspool. Looks like this might have been required in the past, where a configmap was used for configuration.
Happy to accept a PR with the fix, just move the command the creates the addresspool prior to waiting for MetalLB. Thank you!

Fixed here - https://github.com/canonical/microk8s-core-addons/commit/43c68ae59c32e9646f60bc2eefeba4e99ce983e4


⚠ ClamAV has degraded performance

In e496620, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: ClamAV performance has improved in fd354db.


[ISSUE #3849]GrpcMessageProtocolResolver has many unused variables and repetitive method def.

Fixes #3849.
Fixes #3839
Motivation
org.apache.eventmesh.protocol.cloudevents.resolver.grpc.GrpcMessageProtocolResolver:
Many unused variable in buildBatchEvents().
getMessageItemValue() and getHeaderValue() have the same body.
Some logic ignore the existing api.
And so on.
Modifications
Remove unused variables and repetitive method. Use existing api. And other modifications.
Documentation

Does this pull request introduce a new feature? no

My desktop won't connect to my modem/hotspot s🤨

My desktop won't connect to my modem/hotspot s🤨

The community welcomes discussions, questions, contributions, and other technical related content, but please do not post such comments that have no meaning.


Update Quill v0.21 to Quill v1.0

Since v1.0 of Quill is now in beta, it would be a good idea to start looking into upgrading the dependency from v0.21 to v1.0.
Let me know your thoughts.

When upgrading to 1.0 the mixins should also be removed, see: https://facebook.github.io/react/blog/2016/07/13/mixins-considered-harmful.html

See PR #106. It should be noted that the wrapper may not be possible to upgrade in place from 0.21 to 1.0.
Moving away from the mixin architecture is a separate issue.

#106 could use review now that 1.0.0 is the stable version

ReactQuill is now updated to Quill 1.0. Dupe of #113.


feat(v2): allow per-doc hiding of edit url

Motivation
Allow per-doc hiding of edit url by setting it to null.
Fixes #2159
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Unit tests. Also tried setting to null manually in a doc and see that the edit link doesn't appear.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

What about per blog?

afaik it's not available, frontmatter are plugin specific
if you need it for blog, can you open an issue with your usecase?


Support acorn run --update --name ... functionality to achieve behavior like kubectl apply

To install an app and than update it, one must do a acorn run --name foo and than on any follow up changes must run acorn update foo. It would be really cool to have something like acorn apply --name foo or similar to helm an acorn update --install foo. This would allow easy docs in new projects. We just have to document the single command to run and update the app if already present.
Moreover, this will ease the setup of CD steps in pipelines, since we must not distinguish in the pipeline between first install and later updates.

We plan to add a feature like this.  If you are not aware you can do acorn run -o yaml ... which will give you the YAML output of the run command.  So what your are asking for is basically the opposite where we take in that yaml.  (dumb hack right now is to actually do acorn run -o yaml .... and then edit the yaml and apply with kubectl apply.  We want a acorn native way to do that, but it is technically possible because acorn API is just a custom k8s api).

I basically want to have a "acorn make it so" mode. In that mode I give acorn a acorn image or Acornfile and an application name. And than acorn will figure out if the current application have to be updated or created. Because I actually don't care if it's the first time the application is created (acorn run), or the application have to be updated ( acorn update).
This is something I really hate with docker-compose for example. There is no quick way for "make it so".

Ah cool, I totally misunderstood your issue.  I too would like this feature.  There are three approaches I can think of to address this.

If your run command has a --name parameter then we will create or update always.
Add a --update to run to enable the --update behavior.  This will implicitly require --name to be set
Add a --create to update to create if not found.

I personally like option 2.  Option 1 is nice but does remove a guardrail of when a user accidentally uses the same name twice and they really wanted two different apps.

I think, acorn run --update --name foo will be a good solution.
One can easily write this into the CI scripts, or a developer can easily define a shell alias alias acornapply=acorn run --update --name and than run acornapply foo.

coming in 0.4. updated title to reflect the current plan

Almost there, one more tweak that won't make it in time for v0.4.0. We will release v0.4.1 when this is in

back in! 😎

working as expected. 👍


Pasting anything in the URL box results in these weird Chinese characters

[ x] I think my problem is NOT with youtube-dl
[ x] I've verified and i assure that I'm running youtube-dl-gui 0.4
[ x] I assure that i am using the latest version of youtube-dl
[ x] Searched bugtracker
[ x] I've read the FAQs file

What is the purpose of your issue?

[x ] Bug report
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Please remove any sections between (---) if they are not related to your issue

Bug report
What operating system do you use ?
macOS
List of actions to perform to reproduce the problem:
Pasting anything in the URL box results in these weird Chinese characters:

That's completely normal!


Override widgetSpacing and add max lines

Hi!
I'm using your package and its amazing.
but can you please add two things ASAP?

I want to change the widgetSpacing but I can't find it in your constructor params can you add it?
Can you also add a params that allow me to add maximum lines if I'm using wrapping?
I fount a package that may help you in this
https://pub.dev/packages/extended_wrap

Thanks :)
Couple of questions:

You mean the spacing between the chips?
And maximum lines as in, you want an overflow indicator after a certain number of lines instead of rendering the entire list?

Hi again

Yes a space between chips (I review the current code and found a property called widgetSpacing and default value for it is 4 but it's not included in constructor so I cant override it)
Maybe overflow is good or to make it better let developer choose overflow or maybe a callback function called onOverflow
(It's a suggestion and it will help me a lot😅)

Hi again
First of all I appreciate your interest of helping, Thank you
My use case that I want to use overflow with is that I want to show just a specific lines of chips then I add a "show more" button  to show the others.
I prefer using callback function because I want to show the others options in a bottom sheet as a list of radio or checkboxes not a chips.
Thank you.

I thought about this a little bit. Instead of using fancy overflow detection (sounds like a headache), how about I enable support for lazy loading?
I can simply allow the develop to shrink or increase a buffer which is actually shown to the user. The advantage of this is, well, the lazy loading bit.
In your case, you specify definite bounds for the ChipList, by maybe putting it in a SizedBox and enable shouldWrap. With some changes to the API (I will try to keep it backwards compatible), you'll have full control of what you're displaying, and so you can display the rest of your options wherever you want.
TLDR, I'll add buffer support. Sounds ok?

After think more I think yeah overflow detection will be a headache for you
So if you add maxLines property with overflow type to enable hide overflow or show it will be enough, or maybe adding overflowWidget to add custom widget as overflow will be prefect
Check the package I added on the question it have like this.
I tried to add SizedBox but it didn't work as I want

Any update?

Made widgetSpacing visible!


Maximum context length?

Hello.  I noticed that you were able to classify documents up to 6,000+ tokens in length.  Do you know the absolute maximum context length the HAT can work with?  Great idea by the way!

As a follow-up question, have you thought about having a third layer of abstraction (attention across groups of segments), or even a fourth?

Hi @Tylersuard,

Hello. I noticed that you were able to classify documents up to 6,000+ tokens in length. Do you know the absolute maximum context length the HAT can work with? Great idea by the way!

There is no hard limit, as long as you train a HAT with increased max_sentence_length, max_sentences, and model_max_length (=  max_sentences * max_sentence_length), and max_position_embeddings (= max_sentence_length + 2), all parameters in the configuration file config.json. It depends on the hardware you have to support the increased document length.

As a follow-up question, have you thought about having a third layer of abstraction (attention across groups of segments), or even a fourth?

Sure, you can rely on the current implementation (https://github.com/coastalcph/hierarchical-transformers/blob/main/models/hat/modelling_hat.py), modify it and add new levels of abstractions with minimal changes.

@iliaschalkidis Thank you.  I will work on this.  It seems to me that a balance between number of abstraction layers may be key to a longer context length consuming few resources.  For example maybe 10 abstraction layers would be too many, 2 may be too few, but maybe somewhere in between would be a sweet spot, that would allow a context length of 100k+ tokens without too much resource usage.  I will do my own experiments and see how things go.  Thank you!


Couple of fixes to finding db folder:

Use process.cwd() so db folder is looked for in root of user's application (rather than where the massive-js module is under node_modules)
Catch error when reading list of dirs under db if db doesn't exist

Hope these are okay.

Thanks! First: have you seen this fail? As I understand it (and have tested) __dirname is set based on the executing file. From the docs:

The name of the directory that the currently executing script resides in.

So, if you reference massive in /projects/myapp/app.js:
var massive = require("massive");
massive.connect({db : "mydb"}, function(err,db){//...});

The executing directory will be /projects/myapp/ because app.js is the executing file. If it were any other way, our tests wouldn't work :).
I tested this by referencing massive in an external directory:
npm install ~/projects/massive

In that directory I have a /db subdirectory which was read fine. I then removed that directory to be sure that readdirSync would return an empty array instead of throwing (readFile throws) - and it does.
Thus my question - all of these things could be strange curiosities, but if you saw it fail - I'd love to know!

Yeah I was testing on Windows (if that makes a difference) and this was failing for me. I install massive via npm. Then I save this to index.js
var massive = require('massive');
massive.connect({connectionString:'url'},
function(err, db) {
});

My url is in heroku so I have to set an environment variable PGSSLMODE=require to connect. Once it is able to connect, I get:
fs.js:665
  return binding.readdir(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory 'C:\2015\massivejstest\node_modules\mas
sive\db'
    at Object.fs.readdirSync (fs.js:665:18)
    at walkSqlFiles (C:\2015\massivejstest\node_modules\massive\index.js:93:17)
    at Massive.loadQueries (C:\2015\massivejstest\node_modules\massive\index.js:
30:3)
    at C:\2015\massivejstest\node_modules\massive\index.js:169:8
    at Object.next (C:\2015\massivejstest\node_modules\massive\index.js:51:7)
    at null.callback (C:\2015\massivejstest\node_modules\massive\lib\runner.js:5
2:16)
    at Query.handleReadyForQuery (C:\2015\massivejstest\node_modules\massive\nod
e_modules\pg\lib\query.js:80:10)
    at null.<anonymous> (C:\2015\massivejstest\node_modules\massive\node_modules
\pg\lib\client.js:158:19)
    at emit (events.js:117:20)
    at CleartextStream.<anonymous> (C:\2015\massivejstest\node_modules\massive\n
ode_modules\pg\lib\connection.js:109:12)

Here it's looking for db in node_modules\massive\db, not in massivejstest\db where my script resides. My understanding is at this point the current executing file is massive-js's https://github.com/robconery/massive-js/blob/master/index.js, not my index.js. The dirname documentation isn't very clear that this would be the case but the __filename documentation says:
"For a main program this is not necessarily the same filename
used in the command line. The value inside a module is the path to that module file."

Both have in their documentation a line similar to:
__dirname isn't actually a global but rather local to each module.

Massive-js actually uses __dirname with the assumption it will be relative to it's own files here:
var tableSql = __dirname + "/lib/scripts/tables.sql"; (https://github.com/robconery/massive-js/blob/master/index.js#L34)
I think the reason the tests succeed is they all use the helper that sets the scripts folder variable so the __dirname in index.js is never used.
Maybe it's only on windows that the call fails when the directory does not exist.

Weird. I'll have a play here - but as I said I tested with node_modules on my Mac and it worked as expected. I'll kick this up in my VM and see what happens.
Also - which version of Node? And thanks for the detail :)

Confirmed... wow this is really strange behavior. I see what you mean about the helpers - I'll just assume you're right as having __dirname be two separate things on Windows/*nix would be ridiculous.
Wondering how/why my tests were working before... I'l have to sleuth this...

Seems to work well - thanks again!

Thanks! The tests would work fine I think. The scripts path for the tests is set here:
var scriptsDir = path.join(__dirname, "..", "db");

(https://github.com/robconery/massive-js/blob/master/test/helpers/index.js#L5)
__dirname here I would expect to give [locationOfMassiveSource]\test\helpers\ (because the currently executing file is in helpers folder), the .. takes you down to test\ and then the db folder is at that level so it finds the db folder correctly there.
For what it's worth, my node version is 0.10.33. Great project by the way: really like the jsonb functionality in particular.

Yeah I’m trippin out on how I missed this. I did have a db directory in the root when I was goofing around… that must have been what tripped me up when I did an install for node_modules … I hadn’t done up the npmignore file yet.
Damn.
On March 7, 2015 at 6:11:39 PM, dpen2000<EMAIL_ADDRESS>wrote:
Thanks! The tests would work fine I think. The scripts path for the tests is set here:
var scriptsDir = path.join(__dirname, "..", "db");
(https://github.com/robconery/massive-js/blob/master/test/helpers/index.js#L5)
__dirname here I would expect to give [locationOfMassiveSource]\test\helpers\ (because the currently executing file is in helpers folder), the .. takes you down to test\ and then the db folder is at that level so it finds the db folder correctly there.
For what it's worth, my node version is 0.10.33. Great project by the way: really like the jsonb functionality in particular.
—
Reply to this email directly or view it on GitHub.


Set timeout promise support

Purpose (TL;DR) - mandatory
Fixes https://github.com/sinonjs/lolex/issues/223 by supporting util.promisify on fake setTimeout
Background (Problem in detail)  - optional
By the way, I started a new job at @testimio (actually doing test related stuff) - can I change the email in AUTHORS?

cc @orlangure this unblocks the "how-to guide" PR

@benjamingr No idea why it stalled, but regarding the point on AUTHORS, the answer is no.
That is not a "No, you are not allowed to", but "No, it's pointless, as it will be overwritten by a script".

I'm not sure why this stalled either, seems important.

Commenting to remove the stale label.

This has been inactive for 7 months, so thought I'd try to understand what's blocking progress. Maybe  we are seeing a social deadlock? 🤓
@benjamingr Are you waiting for someone to do something? Because I think this has been reviewed, everyone thinks its good, but it just needs to address a couple of very minor issues - and the failing CI build, of course.
I can't see anything else blocking this, but I've been blind to the most obvious stuff before, so ...

@benjamingr Are you waiting for someone to do something? Because I think this has been reviewed, everyone thinks its good, but it just needs to address a couple of very minor issues

Yeah this is on me, I'm setting up an appointment to fix this in my next slot in my calendar so this doesn't get missed again. Sorry, it keeps slipping my mind since I never run into this issue with lolex myself.

@benjamingr ping 😀


Error: TypeError: Cannot read properties of null (reading 'run')

This is on the new unlimited upscaler. Was working great until a couple days ago. Now whenever I do an upscales, i get this error: (-_-) Error: TypeError: Cannot read properties of null (reading 'run')
This is the link to the new one: https://unlimited.waifu2x.net/
Sorry if there is a better place to submit this, but I could not find it.

I think that is an error when the model file cannot be downloaded.
Did you have an Internet connection?
Try SHIFT + F5 or CTRL + F5 to reload.
It works in the browser, but the model file needs to be downloaded. Downloaded model files are cached for a few days but will expire.

Sorry, I should have elaborated more: I am using the browser unlimited browser version +4x), when I select the file and then choose the output settings, I then hit 'start' and then this error prompts and no tile generation in the grey box happens. I have an active internet connection at the time.

No errors on my env.
Does it only happen with the specific file or mode?
Can you access this domain?
http://unlimited-cdn.waifu2x.net/

Alright, issue appears to be completely on my end and I am guessing an issue with cookies or something. It is working with other browsers and in incognito mode on chrome. I don't know what could have caused it to start happening. If anyone else runs into this, I guess try another browsers/private mode first. Thank you for the prompt replies, I jumped on the patreon as a thanks :)

If it only happens when using a different browser, it could be a browser problem.
The following features are required for the current unlimited:waifu2x to work.

WebAssembly
Cross-Origin Resource Sharing

I have tested on the latest versions of Google Chrome and Firefox, but it may not work on older or less compatible browsers.

The model files are served from CloudFlare (CDN Provide), so it could be a problem there (there is extra processing such as attack and bot detection).
unlimited-cdn.waifu2x.net URL above is a domain on CloudFlare.

I'm considering this "fixed" on my end, because I have a solution, but just to give you more information:
It was working fine on Chrome for me, but then it suddenly stopped, leading to the issue that started this post. The last attempt I tried on Chrome Incognito, Firefox, and Brave, and those were successful.
It still does not work on Chrome, but I haven't tried clearing my cache. I will just use incognito for now or another browser.
The versions of Chrome I have tried and failed with are Version 109.0.5414.120 - Version 110.0.5481.78, with the second one being the latest version.
The CloudFlare hosted CDN url also gives me that error on regular Chrome, even though I had obviously never visited it before.
Again, I don't want you to spend anymore time then you have to for me, because I can get it to work on other browsers/incognito, but on regular chrome, it still does not work for me. I would think it is most likely a "me" problem.

Just now, I have moved unlimited.waifu2x.net domain to CloudFlare because Adsense has been approved.
At that time, an SSL/TLS configuration problem was causing ERR_TOO_MANY_REDIRECTS, so I fixed it.
Maybe the above problem has also been fixed.


Theme for Components

Currently, the components have only a light theme. A dark theme and user-defined themes would help to enhance the user experience.

Dark theme has been added for all views #25

The theme and theme colors are provided using store which can be easily changed for user-defined themes.

Providing with a color palette for choosing colors can be done for setting user themes

Support to custom theme colors have been added #38


Exasol Metadata Snapshot Execution

Is your feature request related to a problem? Please describe.
Database Navigator in DBeaver gets stuck ETL loads are running. On analysis we found out that the metadata query fired by DBeaver was being blocked by ETL query.
Describe the solution you'd like
Exasol introduced a feature called snapshot execution for metadata queries. This returns latest committed snapshot of the metadata. The metadata queries fired by DBeaver will benefit from this feature.
Describe alternatives you've considered
N/A
Additional context
Screenshots attached.
Database Navigator

ETL Session

DBeaver Metadata Session

thanks for suggestion

This should bei fixes by #9029.
For index retrievable I forgot to use lock free meta data hint.

Thanks for a quick turnaround on this

This should bei fixes by #9029.
For index retrievable I forgot to use lock free meta data hint.

Thanks for a quick turnaround


.Remove() removes wrong instance if priorities are identical

Removing an instance may fail if there are other instances with the same priority.
Code sample:
	class Person
	{
		public string Name { get; set; }
		public int Priority { get; set; }
	}

	class PersonComparer : IComparer<Person>
	{
		public int Compare(Person x, Person y)
		{
			return x.Priority.CompareTo(y.Priority);
		}
	}

	public static void Main(string[] args)
	{
		PriorityQueue<Person> queue = new PriorityQueue<Person>(new PersonComparer());
		Person sam = new Person() { Name = "Sam", Priority = 1 };
		Person max = new Person() { Name = "Max", Priority = 1 };
		queue.Enqueue(sam);
		queue.Enqueue(max);
		queue.Remove(max);
		Console.WriteLine(queue.Dequeue().Name); // returns "Max" instead "Sam"
	}

Hi @KaaCee thanks for raising this issue!
Believe it or not, this behavior was by design. I'm still not sure it was the right design (obviously there is at least one thing wrong with it since it wasn't what you expected), but here's how I got there:

Existing .NET classes based on comparers (e. g. SortedSet<T>, SortedDictionary<K, V>) use "compares as equal" to indicate equality rather than EqualityComparer<T>.Default. As another comparer-based collection, it seems reasonable that PQ should be consistent with those.
It seems that Contains() and Remove() should be consistent with each other (they are currently)
The behavior seems pretty reasonable in the case of something like a case-insensitive comparer (a PriorityQueue<string> initialized with StringComparer.OrdinalIgnoreCase). In a case-insensitive comparer if I've enqueued "A" and later I remove "a" it makes sense that "A" would get removed (I think).
Using the comparer allows us to take advantage of the PQ's internal structure which can sometimes make Remove/Contains faster (it's still O(N)).

That said, I can certainly see counter-arguments to this:

Unlike SortedSet and SortedDictionary, PQ doesn't imply equality, just ordering. Specifically, a PQ allows for multiple items with equal priority
With this behavior, there's no way to remove a specific item from the collection (so long as items can compare equal). That said, you can work around this restriction by having your custom comparer guarantee that two non-equal objects never compare as equal (e. g. in your example break ties by name).

I'd be curious to hear the use-case in which you came across this, as well as any other thoughts you have on the matter. For example, do you know of other .NET classes which set a precedent for treating sorting and equality separately.

Hi @madelson
I can see your arguments. However, this seems to be an unfortunate case of interface naming:
If i do a pq.Remove(item), I would assume this exact item is removed from the queue. I wouldn't assume any other item could be removed by this method.
My use case is keeping track of blocks in a blockchain. In case you're not aware of the tech behind it, i'll try a summary:
Each block is linked to exactly one parent. The only exception is the root block. There might be several different branches in all these linked blocks, so these essentially form a tree. From time to time a new block is added to the tree, but I cannot know where it is added in advance (although it's most likely added to the longest chain from root to leafs).
--> I need to keep track of all these blocks, especially I need to find the last (leaf) block of the longest chain. I.e.: I want to add blocks to the PQ, the "priority" is the height of the block (the number of links up to the root block).
I was trying different PQ implementations, this is why I stumbled over the "strange" behaviour (from my personal perspective) of your implementation.
Best regards
Kc


MatterMost v5.3.1 windows 11 got issue

Hi, I just having some issue with my MatterMost V5.3.1 on my Windows 11. When I start the app, it will take quite some time to load and show white screen. After a while, it will jump to my servers but I not able to click anythings. After a few second it turn to blue loading screen and it will keep loading forever until I clik the top part of Boards or Playbooks then I click back Channels only it work back as normal. I try uninstall and reinstall again but still the same issue. Please help

Hi @kingoframen2020 - Please log this issue against the Mattermost Desktop GitHub repository where it will be reviewed by our Desktop Engineering team. Thanks!


New Game: Catch the Falling Objects

This is a simple browser-based game where you need to catch falling objects using a basket.

Please assign it t me @Sulagna-Dutta-Roy

Do not create a pull request before assigning issue to you . Because contributors doesn't know if it's a duplicate project or not. Project admins need to cross check everytime @katarianikita2003

Do not create a pull request before assigning issue to you . Because contributors doesn't know if it's a duplicate project or not. Project admins need to cross check everytime @katarianikita2003

I'll  take care from now on


Add SciF docker image to CyVerse discovery environment

Task to do
Make SciF solution a CyVerse DE app
Reason
Makes the docker SciF image easier to use
Result
The SciF solution can be used in DE

Waiting on David's feedback. Add issue for reviewing: https://github.com/AgPipeline/issues-and-projects/issues/196


Compatibility: Fix ASTC HDR extension detection

Ensures that ASTC HDR support is only enabled when the GL_KHR_texture_compression_astc_hdr extension is detected instead of GL_KHR_texture_compression_astc_ldr

Thanks!


Set hidden folder as plugin directory

How I can set a hidden folder as plugin directory ?
For example ~/.config/bitbar ?
Even I have show hidden folder enabled in Finder via defaults write com.apple.finder AppleShowAllFiles YES and seeing hidden folders, when I open bitbar and want choose the plugin directory, Finder opens, but don't display the hidden folders.
Any solution for that ?

See https://github.com/matryer/bitbar/blob/master/Docs/DistributingBitBar.md#settings


AICONOUTLINECOLOR copy

Add 'copy' as an option for AICONOUTLINECOLOR (it already is for AICONFILLCOLOR)
http://forums.cacti.net/viewtopic.php?f=16&t=53402

(from #107)

This is implemented now in my copy, and will be pushed when another feature is completed.


Negative Voltage Fix

This PR permits negative inputs when using the range field in an input description, e.g.:
{
  "inputs": {
    ...
    "cv5": {
      "range": [-1, 1],
      "code": "hardware.GetAdcValue(daisy::patch_sm::CV_5);"
    },
    ...
  }
}

This adjusts the scaling Oopsy does to factor in the different input range, preserving the expected behavior of the @max and @min param attributes. This addresses #60.
This fix applies only to old-style JSON files, as the new style has already implemented this functionality.

 Oopsy negative voltage support issue

Since #66 reworks the json model so that all boards will be on the new json format, this PR isn't going to be necessary anymore.
@CorvusPrudens Am I correct in assuming that the min/max/range stuff is set up in the new json format?

Yep!

closing as this is now handled in #69


Checks fail for classes with immutable metaclasses

First of all, thank you for this neat tool!
I've been seeing issues with checking classes that have immutable metaclasses, or generally metaclasses that raise an exception in their __setattr__ (or __delattr__), due to this:
https://github.com/ariebovenberg/slotscheck/blob/9a2cba3fcdaab52bbc1d7d22e1c6689096a93e61/src/slotscheck/checks.py#L74
This seems to be the case defined in the tests here:
https://github.com/ariebovenberg/slotscheck/blob/9a2cba3fcdaab52bbc1d7d22e1c6689096a93e61/tests/src/test_checks.py#L41-L47
I'm not too familiar with the specifics of Python extensions, so I couldn't come up with any good solutions, but it would be nice if these types were supported as well.
edit: the second half of this answer may be useful? Seems like an implementation quirk though, so it would need some testing to make sure it's reliable :/

@shiftinv many thanks for this find! The answer in the link not be 100% provably correct, but it's way better than the current check.
related: #8
In any case: I can implement this rather easily.

Awesome, thank you for the quick fix!


Feature Request : Date range picker

Would it be possible to implement something that allows to pick date range i.e. start date & end date in a single dialogue box?

Thanks for the suggestion, I'll think about it, about the UX etc. and will try to include it in one of the next versions.


tensorflow.python.framework.errors.InvalidArgumentError: Incompatible shapes: [80,1] vs. [160,1]

INFO:tensorflow:Results after 1190 steps (0.382 sec/batch): loss = 0.665373, recall_at_2 = 0.259558823529, recall_at_1 = 0.133613445378, recall_at_10 = 1.0, recall_at_5 = 0.579831932773.
INFO:tensorflow:Results after 1200 steps (0.382 sec/batch): loss = 0.665354, recall_at_2 = 0.258958333333, recall_at_1 = 0.133229166667, recall_at_10 = 1.0, recall_at_5 = 0.579791666667.
INFO:tensorflow:Results after 1210 steps (0.381 sec/batch): loss = 0.665319, recall_at_2 = 0.259504132231, recall_at_1 = 0.13347107438, recall_at_10 = 1.0, recall_at_5 = 0.580113636364.
INFO:tensorflow:Results after 1220 steps (0.381 sec/batch): loss = 0.66533, recall_at_2 = 0.259733606557, recall_at_1 = 0.133913934426, recall_at_10 = 1.0, recall_at_5 = 0.580276639344.
W tensorflow/core/framework/op_kernel.cc:968] Invalid argument: Incompatible shapes: [80,1] vs. [160,1]
[[Node: prediction/logistic_loss/mul = Mul[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"](prediction/Squeeze, prediction/ToFloat)]]
Traceback (most recent call last):
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 972, in _do_call
return fn(*args)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 954, in _run_fn
status, run_metadata)
File "/usr/lib/python3.5/contextlib.py", line 66, in exit
next(self.gen)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors.InvalidArgumentError: Incompatible shapes: [80,1] vs. [160,1]
[[Node: prediction/logistic_loss/mul = Mul[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"](prediction/Squeeze, prediction/ToFloat)]]
[[Node: recall_at_10/ToInt64/_107 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_320_recall_at_10/ToInt64", tensor_type=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "udc_train.py", line 64, in
tf.app.run()
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "udc_train.py", line 61, in main
estimator.fit(input_fn=input_fn_train, steps=None, monitors=[eval_monitor])
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 333, in fit
max_steps=max_steps)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 708, in _train_model
max_steps=max_steps)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/graph_actions.py", line 285, in _monitored_train
None)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 368, in run
run_metadata=run_metadata)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 521, in run
run_metadata=run_metadata)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 488, in run
return self._sess.run(*args, **kwargs)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 625, in run
hook in outputs else None))
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 1215, in after_run
induce_stop = m.step_end(self._last_step, result)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 411, in step_end
return self.every_n_step_end(step, output)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 712, in every_n_step_end
steps=self.eval_steps, metrics=self.metrics, name=self.name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 399, in evaluate
name=name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 771, in _evaluate_model
max_steps=steps)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/graph_actions.py", line 738, in evaluate
session.run(update_op, feed_dict=feed_dict)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 717, in run
run_metadata_ptr)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 915, in _run
feed_dict_string, options, run_metadata)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 965, in _do_run
target_list, options, run_metadata)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 985, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: Incompatible shapes: [80,1] vs. [160,1]
[[Node: prediction/logistic_loss/mul = Mul[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"](prediction/Squeeze, prediction/ToFloat)]]
[[Node: recall_at_10/ToInt64/_107 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_320_recall_at_10/ToInt64", tensor_type=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"]]
Caused by op 'prediction/logistic_loss/mul', defined at:
File "udc_train.py", line 64, in
tf.app.run()
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "udc_train.py", line 61, in main
estimator.fit(input_fn=input_fn_train, steps=None, monitors=[eval_monitor])
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 333, in fit
max_steps=max_steps)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 708, in _train_model
max_steps=max_steps)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/graph_actions.py", line 285, in _monitored_train
None)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 368, in run
run_metadata=run_metadata)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 521, in run
run_metadata=run_metadata)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 488, in run
return self._sess.run(*args, **kwargs)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitored_session.py", line 625, in run
hook in outputs else None))
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 1215, in after_run
induce_stop = m.step_end(self._last_step, result)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 411, in step_end
return self.every_n_step_end(step, output)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/monitors.py", line 712, in every_n_step_end
steps=self.eval_steps, metrics=self.metrics, name=self.name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 399, in evaluate
name=name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 760, in _evaluate_model
eval_dict = self._get_eval_ops(features, targets, metrics)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 991, in _get_eval_ops
predictions, loss, _ = self._call_model_fn(features, targets, ModeKeys.EVAL)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 946, in _call_model_fn
return self._model_fn(features, targets, mode=mode)
File "/home/mldl/ub16_prj/chatbot-retrieval/udc_model.py", line 83, in model_fn
tf.concat(0, all_targets))
File "/home/mldl/ub16_prj/chatbot-retrieval/models/dual_encoder.py", line 81, in dual_encoder_model
losses = tf.nn.sigmoid_cross_entropy_with_logits(logits, tf.to_float(targets))
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/ops/nn.py", line 448, in sigmoid_cross_entropy_with_logits
return math_ops.add(relu_logits - logits * targets,
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 751, in binary_op_wrapper
return func(x, y, name=name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 910, in _mul_dispatch
return gen_math_ops.mul(x, y, name=name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 1519, in mul
result = _op_def_lib.apply_op("Mul", x=x, y=y, name=name)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 749, in apply_op
op_def=op_def)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2380, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/mldl/ub16_prj/VENV_host/py3tf0.10/venv/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1298, in init
self._traceback = _extract_stack()
InvalidArgumentError (see above for traceback): Incompatible shapes: [80,1] vs. [160,1]
[[Node: prediction/logistic_loss/mul = Mul[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"](prediction/Squeeze, prediction/ToFloat)]]
[[Node: recall_at_10/ToInt64/_107 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_320_recall_at_10/ToInt64", tensor_type=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"]]
(venv) mldl@mldlUB1604:~/ub16_prj/chatbot-retrieval$

I solved this by changing eval_batch_size to 8. But I don't know how to define eval_batch_size by my own choice

thanks, it works,
I also wondering how to change eval_batch_size

hi, i came across with the same problem. do you have some suggestions about how to change the eval_batch_size? thanks


Add extraQueryParameters to acquireTokenSilent in msal-browser

acquireTokenSilent does not take in extraQueryParameters. This prevents applications from potentially passing query parameters to the authorize endpoint when the refresh token needs to be renewed.

Coverage increased (+0.08%) to 82.809% when pulling 8a3ce906e78b9c0b5e3d52d60bc36d4e07c3f9c0 on browser-extraQueryParameters-silent into 5227326fba605b793166d36ad1331744294a2af6 on dev.


EOF exception

MCProtocolLib version 1.7.7
Connecting to mc.parkercraft.it (1.7 -> 1.8 server)
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:290)
at org.spacehq.opennbt.NBTIO.readTag(NBTIO.java:141)
at org.spacehq.mc.protocol.util.NetUtil.readNBT(NetUtil.java:32)
at org.spacehq.mc.protocol.util.NetUtil.readItem(NetUtil.java:67)
at org.spacehq.mc.protocol.packet.ingame.server.window.ServerWindowItemsPacket.read(ServerWindowItemsPacket.java:38)
at org.spacehq.packetlib.tcp.TcpPacketCodec.decode(TcpPacketCodec.java:41)
at io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:316)
... 29 more

Are you connecting to a server with the right protocol version? ("1.7 -> 1.8 server"?) Sounds like either an issue with the server sending bad data or the protocol library reading something wrong.

Yes in the handshake packet I am sending the right protocol number

Uhm perhaps I understand the problem.
I will check and update you.
Thank you!

The game version of the MCProtocolLib build you are using must match up with the game version of the server you are connecting to.


feat: peers page

Tasks:

[x] World map
[x] Peers table (react-virtualized)
[x] Dynamic locations in the map
[x] Flags in the table
[ ] Merge https://github.com/ipfs-shipyard/ipfs-webui/pull/702 first

Closes https://github.com/ipfs-shipyard/ipfs-webui/issues/700.

@hacdias Slow when scrolling or fetching the flags? I'm using react-virtualized to only render the visible rows, but you can scroll to see more.
I can add the margin, but it was not supposed to appear US there, only flags 😅

@fsdiogo it seems that Windows Flag emojis are just the country code sadly. Yesterday it seemed more slower. When I resize the page and scroll it seems a bit slow

@hacdias ohh, so the flags aren't rendering on Windows? 😓
Can you test the following please (I don't have a windows machine):
In the src/peers/PeersTable/PeersTable.js, line 14, can you change that to:
{ rowData.flagCode ? <CountryFlag code={rowData.flagCode} svg /> : '🏳🌈' }

That way we are force rendering the flags to SVG instead of emoji. Maybe it will work.

@fsdiogo
Yes, that way they render:

Still, we need some margin there

@fsdiogo merged the #702

@hacdias awesome, thanks!
It doesn't look as good as with the emojis though:

We have two options here:

Always render the flags as SVG
Use something like platform.js to detect if it's Windows, and render as SVG accordingly

What do you think?

Yeah, the emojis are better even though they are platform dependent. You can render with SVGs on Windows or let it use the Windows "emojis". If we render SVGs conditionally, I don't think there's a need to add a dependency when we can just:
svg={window.navigator.appVersion.indexOf('Win') !== -1}

Can we merge this? 🚀

@fsdiogo here we go 😄


podvm-mkosi: support to build s390x fedora image

According to #1640 , there are 2 problems for mkosi to build s390x images:

The nix OS does not support s390x, but we can use the mkosi ToolsTree feature defined in mkosi.conf to download latest tools automatically:

[Host]
ToolsTree=default

s390x does not support UEFI, so mkosi cannot build a bootable s390x image. Instead, we can first use mkosi to build non-bootable system files, then use zipl to generate the bootloader (podvm-mkosi/build-s390x-image.sh)

We need run mkosi from the repository:
git clone -b v21 https://github.com/systemd/mkosi
ln -s $PWD/mkosi/bin/mkosi /usr/local/bin/mkosi
mkosi --version

For the new mkosi release, there is an issue to set environment (#1746). Instead, we try to use profile as suggested in mkosi community (https://github.com/systemd/mkosi/issues/2500).
I tested the s390x qcow2 image in libvirt environment, and it should work.

I try to avoid impacts to x86 images, which can still be run with nix, and s390x changes will not be picked up for the Match rules.
I also build a new x86 image, but I don't have AWS environment to verify it. Since UEFI is enabled, I can start the VM with following command on ubuntu 22.04 host:
virt-install --name podvm --memory 2048 --vcpus 1 --disk path=/var/lib/libvirt/images/podvm.qcow2,device=disk,bus=scsi --import --os-variant fedora38 --network default --graphics none --machine q35 --boot loader=/usr/share/OVMF/OVMF_CODE.secboot.fd,loader.readonly=yes,loader.type=pflash,loader_secure=yes --features smm.state=on

However, it seems current libvirt provider cannot support UEFI image on a host with Intel processor. I noticed we can configure LIBVIRT_LAUNCH_SECURITY and LIBVIRT_FIRMWARE for UEFI, but it requires SEV (AMD Secure Encrypted Virtualization) support on the host, but I don't have an AMD host.
2024/03/19 09:32:37 [adaptor/cloud/libvirt] failed to create an instance : error building the libvirt XML, cause: SEV is not supported for this domain

@mkulke , thanks for your comments. I tried to address them and update the commit.


JIRA exporter coverage in e2e runs

Adds two new exporters in the e2e tests:

jira_committime, to cover standard JIRA query
jira_custom_committime, to cover non-standard JIRA query and resolution status

Depends on: https://github.com/konveyor/mig-demo-apps/pull/92
@redhat-cop/mdt

/hold
Until https://github.com/konveyor/mig-demo-apps/pull/92 is merged

/unhold

/retest


Lazyload arcpy

Hi @cwalv,
Finally had a chance to go through this; there's a lot of good stuff in here, but it's sort of a big PR.  We can discuss, but just a few notes:

The CI job is failing on your branch; I haven't dug into the problem yet
After looking at the lazy-loading code, I'm pretty apprehensive about it; seems like a lot of complexity to introduce for a small problem (basically just usage).  Are there use cases I'm missing?  I'm inclined to leave this out for now, unless there's a good reason to add it.
It looks like you fixed a bug in the git module; it would be great to have that in its own issue/PR.
Some of the changes here I've duplicated in the extract-modules branch--namely pulling out a cli module, and getting rid of some of the class-level props that weren't being used.

Yeah, I'll close this PR since I was unable to get the tests to pass in CI.  The problem is that the lazyloading of arcpy conflicts with the MagicMock of it in the tests .. they do similar things and are stomping on each other.  All of the tests pass when they're ran individually with plain old unittest, but not at first when ran with nosetests.  In the later commits I was able to get them to pass when running nosetests on my machine, but it still fails in travis, and as you point out the benefit to the change is minimal anyway (i.e., all it buys you is being able to run something like slap -h and have it return without taking 10 seconds to import arcpy .. or raising an incoherent exception if it can't connect to the license server).

The more general use case (beyond slap -h) is when there's an error in the config file, or any other condition where we can "fail fast" without hain to call into arcpy

That's a good point...this has bitten me a few times.
Is it possible to do the import locally, within the __init__ method of a class?  We could turn the esri wrapper module into a class, and do the import there?  Worth experimenting with, for sure.


How To Embed Compose Desktop Application to Swing-Based Application

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #6712

@john-amiscaray Thank you for the heads up!. Lemme work on the changes

plagiarism check done ✅
Only imports and composable bring up the red flags.

@kariuki-boniface Looks good. I just made some minor changes right now. Be sure to go through them in case I did something wrong or to learn from my corrections.

@kariuki-boniface Great work. We are ready for the final review now.

@section-engineering-education/content-moderator-team
Is anyone able to give this PR a final review? Its been ready for 19 days?

I'll be jumping on this one

@kariuki-boniface
Please take note at all the changes made by your peer reviewer and myself.

This article was quite difficult to review (had many grammatical issues).


⚠ Bofrost.de has degraded performance

In dee6ac3, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1024 ms

Resolved: Bofrost.de performance has improved in dfa5fba after 19 hours, 40 minutes.


[Feature Request] Document System Manager Installation

The install button is disabled for some components when working remote.
Show an explanation why.

Fixed with 3.5.0


Svg empty when extract: false

I wanted to have a configuration that extract my svg automatically when I build for production, so I explicitely set extract: true or extract: false, and I've noticed that as soon as I do that, my svg's are empty (or invisible).
So it seems that as soon as I explicitely set this value, it doesn't give the right output.
I don't really know how to debug this so let me know what you need :)

I need more information of your setup - could you setup a repo with webpack config & minimum code which reproduces described case.

I'll keep this on the side, I haven't got the time to investigate further. It might be complicated to try reproducing that in another project.
Will try during the weekend and I'll report back or close the ticket. Thanks.

@tleunen ping

@tleunen ping again

Sorry, I don't really have time to test again or try to create another app with the issue. Feel free to close for now if you'd like. I haven't tested a more recent version of the svg-sprite-loader as well.


⚠ ClamAV has degraded performance

In 9b004bb, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 249 ms

Resolved: ClamAV performance has improved in 0e7e36c.


Where to put Dockerfile when creating a new stack with Web editor?

Use Case: testing portainer if useful for in house use (commercial)
Have you reviewed our technical documentation and knowledge base? Yes
Question:
Where do I have to store Dockerfile when the docker-compose.yml contains i.e.

build:
 context: .
 dockerfile: Dockerfile
 args:
   - EXTRA_LOCALES=de_DE.UTF-8 UTF-8

I'm testing portainer to set up an in house (bitnami) moodle server. The bitnami image does not contain locales other than en_AU.UTF8 - I need various international locales.
I'm using this docker-compose.yml. According to the documentation, it needs to be modified to add locales.  The Dockerfile is published here.
I tried to save Dockerfile in several locations, but get always the error message

time="2022-06-12T13:47:39Z" level=info msg=": exit status 1 (err=failed to deploy a stack: Building moodle"
time="2022-06-12T13:47:39Z" level=info msg="Cannot locate specified Dockerfile: Dockerfile"

My entire docker-compose.yml is attached:
docker-compose.yml.txt

As per this FAQ entry, we don't currently support building from Dockerfiles via GIt (or via docker-compose uploads), though this is something we are actively working on supporting.
In the meantime, we recommend building the image first in Portainer then adding your Dockerfile and referencing the built image.


fix(prometheus): fix upstream_health_metrics config true->flase change not working issues

Summary
if upstream_health_metrics config true->flase change, in the handler code, it is not working.

Checklist

[ ] The Pull Request has tests (Not need)
[ ] There's an entry in the CHANGELOG
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Full changelog
Issue reference

Should we add a change log entry for this PR?

@chronolaw It's a small typo fix, I think it's no need to add changelog


CI testing and compilation is interleaved

I created a branch to see if I could trigger a MacOSX CI timeout while printing the commands that dune executes underneath the hood:
https://github.com/jmid/multicoretests/tree/ci-debug-attempt
As a side-effect I learned that despite running dune build before dune runtest in the CI workflow
https://github.com/jmid/multicoretests/blob/ci-debug-attempt/.github/workflows/common.yml#L78-L82
it appears as if ocamlopt is still sometimes interleaved with test runs.
https://github.com/jmid/multicoretests/actions/runs/3446769124/jobs/5752070142
https://github.com/jmid/multicoretests/actions/runs/3446769126/jobs/5752070129
It may be that not all executables are correctly "aliased" (in dune terminology) :thinking:

Here's an example from the first CI log:
random seed: 350807273
generated error fail pass / total     time test name

[ ]    0    0    0    0 /  250     0.0s test Task.parallel_for
[ ]    0    0    0    0 /  250     0.0s test Task.parallel_for (generating)
[✓]  250    0    0  250 /  250     3.7s test Task.parallel_for

[ ]    0    0    0    0 /  250     0.0s test Task.parallel_for_reduce
[✓]  250    0    0  250 /  250     2.7s test Task.parallel_for_reduce

[ ]    0    0    0    0 /  250     0.0s test Task.parallel_scan
[✓]  250    0    0  250 /  250     2.7s test Task.parallel_scan
================================================================================
success (ran 3 tests)
Running[2]: (cd _build/default && /Users/runner/work/multicoretests/multicoretests/_opam/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47<EMAIL_ADDRESS>-strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I src/internal/.util_print_test.eobjs/byte -I /Users/runner/work/multicoretests/multicoretests/_opam/lib/bytes -I /Users/runner/work/multicoretests/multicoretests/_opam/lib/ocaml/threads -I /Users/runner/work/multicoretests/multicoretests/_opam/lib/ocaml/unix -I /Users/runner/work/multicoretests/multicoretests/_opam/lib/qcheck-core -I /Users/runner/work/multicoretests/multicoretests/_opam/lib/qcheck-core/runner -I lib/.lin.objs/byte -I lib/.util.objs/byte -no-alias-deps -opaque -o src/internal/.util_print_test.eobjs/byte/dune__exe__Util_print_test.cmo -c -impl src/internal/util_print_test.ml)
Running[3]: (cd _build/default/src/bigarray && ./lin_tests_dsl.exe --verbose)

random seed: 90357831
generated error fail pass / total     time test name

[ ]    0    0    0    0 / 5000     0.0s Lin_api Bigarray.Array1 (of ints) test with Domain
[ ]    0    0    0    0 / 5000     0.0s Lin_api Bigarray.Array1 (of ints) test with Domain (generating)
[✓]   62    0    1   61 / 5000    11.6s Lin_api Bigarray.Array1 (of ints) test with Domain


feat: add eslint and prettier and add opengraph metadata

Fixes #43, fixes #54

To add eslint and prettier to the workflow to enable proper formatting of code. This will facilitate code contributions from outside.
To add opengraph metadata to contributor details page. Will need to test via preview.

Looks nice for the homepage og image now:

This is how it looks for the contributor details page og image:

Does this look okay to you @kmartens27?

I like it, and it looks good from the preview! @alyssat does this work for you for the social posts?

Here is an example of the og metadata we have included for each page:

Added a og:title metadata to have Alex Earl name as the title in opengraph, contract the above where it just says "Contributor Spotlight":

That is much better, having the contributor name is a better introduction/visual aspect. Thanks so much @krisstern


[Python APIView] doesn't indicate variadic arguments (*args)

For example, this code:
def get_token(*scopes, **kwargs):
  # type: (*str, **Any) -> AccessToken

Produces this json:
{
    "Kind": 5,
    "DefinitionId": "azure.identity.AuthorizationCodeCredential.get_token.param(scopes",
    "Value": ""
},
{
    "Kind": 0,
    "DefinitionId": "azure.identity.AuthorizationCodeCredential.get_token.param(scopes",
    "Value": "scopes"
}

And looks like this in apiview:

... making scopes look like a single string argument when it's actually an arbitrary number of positional string arguments.

@chlowell PR #2479 should address this for you, assuming your code has Python 3-style type hints somewhere. APIView does not actually parse Python 2-style type hints for anything except return types, but it will work with a Python 3-style type hint:
  def with_variadic_type(self, *vars: str, **kwargs):
        return None

Per https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html#when-you-re-puzzled-or-when-things-are-complicated the type here for vars should be str, not *str.


Option to clear the cache

I read in an issue here that the user should clear the cache.  It's not stated in the instructions how to do that.  Also an option --clear-cache should be created.

cross-seed --help will show you the way. I'll see if I can add it to the README.

https://github.com/mmgoodnow/cross-seed/releases/tag/v1.10.4


handle GP services that respond with multiple output parameters

Hi John,
Thanks for all the Sunday work, that solved a lot of issues for me.  I know your architecture assumes a single output parameter for all services.  The thing is I don't really have many services that match that expectation.  For this service in question, there are four outputs but for my CodePen example I only visualize one and sniff scalars from the other.
I am not sure if you are interested in providing a way to grab multiple outputs but at the very least could you persist and provide the jobID and jobStatus in some manner?  Currently the response to the run is the one output parameter load that lacks these items.  With the JobID and the certainty the job succeeded, its easy enough to hit the endpoint myself for secondary parameters.
A secondary minor issue is the delay and the total loop count for the job success check.  In my environment, EPA production servers can take several minutes or more to produce results and hitting AGS so frequently is just overkill.  Could these items be tunable by the user?
Thanks,
Paul

these are really good suggestions! you might already know this, but you can access the raw service response in the callback.  i hadn't thought about it much, but halfway thought the jobId would show up there.  since it doesn't, i don't see a problem with tacking it onto the parsed response.
i'm not sure i understand the point of explicitly passing jobStatus. what would it be helpful for?
with regard to making the interval of requesting status updates from the service configurable, sounds great.

[ ] attach jobId to parsed responses
[ ] make async status request interval configurable

forgot to respond to the major suggestion.  i'm interested in adding support for multiple outputs.  i'll take a look at your codepen sample and try and figure out exactly what it'll take.

Hi John,
Again thanks for the quick response.  I am not really sure of the scope of your code so apologies for throwing stuff at you.  Knowing jobStatus is perhaps unnecessary but its based on a vague paranoia that the service may not have completed successfully.  I suppose I am more used to a pattern where errors are sent to a separate callback - there are a lot of things that could go wrong with an async service.  In this case it all comes back in the response and sniffing for jobStatus would be a very simple way in a failed status to know if the job itself failed or was still executing and the loop ran out or what.  It's not a critical thing.
In terms of multiple outputs, I guess as I mentioned I would like the option of fetching some outputs and not others, also - sorry if this is picky - the outputs from my services can be quite large in some cases and sometimes I don't actually need them as GeoJSON, they populate tables or perhaps are fed into a second Esri service.  Having the option to skip the GeoJSON conversion would be swell.
Any finally the next idea is how to gracefully chain together service calls.  Having the option to load parameters as a single associative array would be useful.
So thanks for your attention, this is a great library.  EPA is quite focused on AGOL development and utilizing existing AGS servers with AGOL.  The leaflet library is great way for me to decouple the AGS services from the ever-developing and sometimes a bit unstable AGOL environment.  I can remain in my backend spider hole and say, "hey look, this works fine in leaflet, think about what you can do in AGOL" and pass it on to others.
Cheers,
Paul

I am more used to a pattern where errors are sent to a separate callback
this pattern should give you access to a parsed response, raw response and caught errors in a single callback.

I would like the option of fetching some outputs and not others
building your logic on top of a reference to the raw response would be appropriate for this.  let me know if something is missing or not working.

I can remain in my backend spider hole
hah.

Hi John,
I was looking at your changes this morning.  So I have been using your example pattern of a callback e.g.
function callback(error, geojson, response)
So the jobID gets attached to the geojson (parsed) object and not the full (raw) response object.  I would have almost expected the reverse but this works.  I updated my codepen to use things as they are now.
Thanks,
Paul

yeah, that's because its not present in the final response.  we have to dig it out earlier.  I updated the readme to reflect what you can expect to see in the parsed response.
thanks for testing and providing feedback!

as of version 1.0.1, im parsing and returning parsing multiple output parameters of various types (featuresets, strings, booleans or GPDataFiles).
i'll leave this issue open until if/when the code is refactored to do the same for async services.

resolved in #44. thx to @kgrimsby :tada:!


Support Older version of Linux distribution

We are currently adding zstd compression support to Spark and we are using ztsd-jni for that. We are facing Spark unit tests failure because the library is compiled with a newer glibc requirement than the amplab machines have. Can you tweak your compilation to support older Linux distros?
See https://github.com/apache/spark/pull/18805#issuecomment-336524557 for more details.

Thanks for notification. I just pushed v1.3.2-2 to maven that has the linux-amd64 library compiled on older distro (debian 6). It should become public in several hours. Please let me know if it works as expected on your test fleet.

Thanks a lot for the quick turn around on this. Will let you know how it goes.

This may also fix #43 (not sure what glibc that distro has).

BTW, the change worked and Spark unit tests passed now.

@sitalkedia, great! Thanks for coming back with the results. I will update my release process to use older distro for the amd64 shared object compilation.


Damian

Mail Loop protection and UI changes on the "My Email Adresses" site.
Removed a minor icon overlap with small window sizes and a case where the layout of the site switched on mouseover.

Merged into branch 'develop'. I did some additional changes to clean things up a little. Please review this commit. Thanks.


Logseq capture extension not working with latest Firefox nightly

I have both current release 109 and nightly 111 of Firefox installed with both having the logseq capture extension installed. I have Logseq itself up and running. And I have both instances of Firefox configured the same. Append the current site to TODAY at the end of the page.  The release version works fine but the nightly version does nothing when I click on the logseq capture button on the toolbar. One note to add is that if I type the full URL in the nightly address bar, the entry is created properly in the Logseq app. For example using logseq://x-callback-url/quickCapture?page=TODAY&append=true&title=Tweet%20/%20Twitter&content=&url=https%3A%2F%2Ftwitter.com%2Fjakluge%2Fstatus%2F1607683259961573377" does the right thing. Just not when I hit the logseq button in nightly. Any ideas on how to debug this issue or what the cause might be?

The same issue exists in Firefox 110.0
@hkgnp can you please investigate the issue?

The same issue exists in Firefox 110.0 , the previous version 109 was working fine. @hkgnp can you please investigate the issue?

Definitely something changed from 110 and up.

I've implemented the fix. Looks like some methods have changed in the latest version. Please try 0.2.2 when it is out in the market. It is currently pending review.

Thank you!

Closing as the button is fixed on latest nightly.


Crashes at camera.setParameter

https://console.firebase.google.com/project/saventry-70aaa/crashlytics/app/android:com.izho.saveentry/issues/d5ed5b33359d224d46bb5d8567f46eae?time=last-seven-days&sessionId=5F12A63901F1000171916ADE0EAEB6FD_DNE_0_v2
Happening on Samsung phones

Camera.setParameters() will throw RuntimeException when given parameter is not supported.
This seems to be due to  parameters.previewFormat = IMAGE_FORMAT as other attributes are checked.


Run preflight on operator-certification-operator

Is your feature request related to a problem? Please describe.
Run preflight on the operator-certification-operator to get initial report so we know what needs to be done for certification
Describe the solution you'd like.
Result of this issue should be new issues to resolve any problems that preflight finds

ran successfully by @yashoza19 .

We discussed this and we will be running preflight against the operator as part of the certification effort and do not see the need to provision cluster resources to run preflight on each merge to main. Closing this issue.


Implement the my applications view

Description
As part of this issue, we need to create the "my applications" view, which should closely match the provided mockup. This will provide the users with a way to see all the applications that they have created on the platform.
Tasks

Set up the basic React components as required.
Implement the layout and design of the my applications page, following the provided mockup.
Integrate the necessary components and assets to achieve the desired functionality and visual appearance.
Ensure responsiveness and compatibility across different devices and screen sizes.

Mockup: https://www.figma.com/file/nehm2ff8aR7NkPerg39fK9/ScholarX-V2-|-Wireframes?type=design&node-id=943-1002&mode=design&t=OFxJkHITzop09S2b-4

Note: You may want to mock the API refer to the API doc 1 and API doc 2 to see the relevant details.
Acceptance Criteria

The user interface closely resembles the provided mockup.
All required sections, elements, and content are present and displayed correctly.
The interface is responsive and works well on various devices and screen sizes.
The implementation follows best practices and coding standards.
Unit tests are written

Can I work on this issue ?

@anjula-sack


Changed store method to public

In order to save data, we need the store method public.

Yes, Marc! We have also sent PR to original plugin. Please check https://github.com/mibrito707/cordova-plugin-secure-storage-echo/pull/33


Release rc2

Codecov Report

Merging #22 into release-rc2 will increase coverage by 0.13%.
The diff coverage is 68.83%.

@@                Coverage Diff                @@
##             release-rc2      #22      +/-   ##
=================================================
+ Coverage          70.97%   71.11%   +0.13%
- Complexity           123      136      +13
=================================================
  Files                 22       23       +1
  Lines                827      876      +49
  Branches              56       54       -2
=================================================
+ Hits                 587      623      +36
- Misses               198      214      +16
+ Partials              42       39       -3

Impacted Files
Coverage Δ
Complexity Δ

...cross/stub/bcos/contract/ProofVerifierUtility.java
81.48% <ø> (ø)
4.00 <0.00> (ø)

...bank/wecross/stub/bcos/web3j/Web3jWrapperImpl.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

.../java/com/webank/wecross/stub/bcos/BCOSDriver.java
50.98% <43.24%> (-2.83%)
20.00 <1.00> (ø)

...nk/wecross/stub/bcos/contract/FunctionUtility.java
82.85% <70.00%> (+9.88%)
15.00 <10.00> (+2.00)

...a/com/webank/wecross/stub/bcos/BCOSConnection.java
84.67% <100.00%> (+0.58%)
19.00 <0.00> (ø)

...ecross/stub/bcos/protocol/request/Transaction.java
100.00% <100.00%> (ø)
11.00 <11.00> (?)

...m/webank/wecross/stub/bcos/web3j/Web3jUtility.java
74.07% <0.00%> (+1.66%)
2.00% <0.00%> (ø%)

...wecross/stub/bcos/config/BCOSStubConfigParser.java
91.66% <0.00%> (+3.16%)
7.00% <0.00%> (ø%)

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 6ace90c...c52715a. Read the comment docs.


list: rename price filter into paid

I didn't update the doc.

thx for your contribution i will update that.


Remote process crash when executing a script on remote machine

Connected to a remote computer
F5 and right click, execute as script both repro this 100%.

After continuing to run, PowerShell runspace state changes to: 'Broken'

That is good found, so looks like you are trying to execute/debug local script after you entered remote session. According to powershell ISE, it prevents people to execute anything on local after entered into remote session. We should probably do the same.

We should provide a mechanism to Execute a script on a remote session/machine then; Potentially Soln explorer Context menu.  Maybe Editor context menu too? @bmoore-msft

NOTE:

Editor context menu is the way we currently supported for debugging remote file, and that is also the only way of doing that as far as I know.
By opening remote file, there is only an empty solution created.


Update views.py

a little wrong from the PDF of tangowithdjango19

when i exercise the project，finded a little wrong from the PDF of tangowithdjango19：the 2nd else indentation


cups-browsed.c: uuid was used after its pointer was freed by ippDelete()

Hi,
valgrind results in Fedora bug revealed that I didn't understand how ippFindAttribute() works when I issued a PR which clears response variable in get_printer_uuid(). The ippFindAttribute() returns a pointer to a member of response structure and this pointer is freed when response is freed with ippDelete().
The fix now uses strdup() for the pointer and this copy is returned as return value.

Thank you very much for this fix.

@zdohnal, the PR you ment where you introduced the problem was #281? Am I right?

@tillkamppeter Yes, that's the commit, I'm sorry for inconvenience.


feat(tooltip): added marker options. close #13413

This is a second version of a pull request I made yesterday.
Brief Information
This pull request is in the type of:
new feature
What does this PR do?
adds a new feature to change the size of the tooltip for the developer
After: How is it fixed in this PR?
export function getTooltipMarker(color: ColorString, size?: string, extraCssText?: string): TooltipMarker;
Are there any API changes?

[x ] The API has been changed.

const marker = getTooltipMarker({
color: colorStr,
type: markerType,
renderMode,
markerId: markerId,
size: "10px"
});
Related test cases or examples to use the new APIs
the size can be adjusted in src/tooltip/toolTipMarkUp.ts. This test case will result in tooltips with height, width, and radius of 1000px.
const marker = getTooltipMarker({
color: colorStr,
type: markerType,
renderMode,
markerId: markerId,
size: "1000px"
});

Thanks for it, but please do not commit anything in dist folder.

Please add test case.

Hey I made changes is it possible u can merge. ty.

Hi @WillPower98 package-lock.json also doesn''t need to commit.
Please be follow code style guide, run npm rum lint before commit


(Linux) Patchelf doesn't skip DLL files

I have been trying to compile tls-client but it fails due to patchelf trying to patch .dll files. By the way, the same command works perfectly fine on windows and I could compile it, but not on linux.
tls client version is 0.2.1

Nuitka version:

1.5.8
Commercial: None
Python: 3.11.3 (main, Apr  5 2023, 15:52:25) [GCC 12.2.1 20230201]
Flavor: Unknown
Executable: /home/user/coding/tls-test/env/bin/python
OS: Linux
Arch: x86_64
Distribution: Arch None
Version C compiler: /usr/bin/gcc (gcc).

The error is FATAL: Error, call to 'patchelf' failed: ['/usr/bin/patchelf', '--set-rpath', '$ORIGIN/../..', 'main.dist/tls_client/dependencies/tls-client-32.dll'] -> b'patchelf: not an ELF executable'.
Basically using --onefile breaks on linux since it tries using patchelf on .dll files. A potential fix would be skipping .dll files on a linux based system, and only apply it on .so files.
Command used: python -m nuitka --onefile main.py --follow-imports

It seems it is picking up Windows DLLs for no good reasons. I wonder if they are really used or not.
Can you enhance this, so it doesn't match these on non-Windows?
- module-name: 'tls_client.cffi'
  dlls:
    - from_filenames:
        relative_path: 'dependencies'
        # TODO: We might want to match OS and arches here closely, so we do not pick up
        # unnecessary arches.
        prefixes:
          - 'tls-client'

If you are available to do a PR, this can be fixed by adding to the yaml configuration, described here: https://nuitka.net/doc/nuitka-package-config.html
And here is more of a walk through style post: https://nuitka.net/posts/nuitka-package-config-kickoff.html
Here are a example PRs for other packages:
#2030
#1993

Yep! Thanks for the help, that did the trick. I will make a pull request later. I modified the standard.nuitka-package.config.yml with OS exclusive file extensions and it worked.

#2255 tested on linux and windows, the fix works

That's great. Very good job. I will merge it for 1.6.1 hotfix release because I am right now pushing out 1.6 and cannot really interrupt it.

I am marking it as factory, because that is how I find hotfix related issues later on.

alright :+1:

This is part of the hotfix release 1.6.2 that I just made.


how to stop or terminate the scan

I use the DTWAIN_AcquireFile api to acquire the image,but I don't want to these images,how do I stop or terminate it?

Not clear what you are asking, but if your goal is to stop the feeder, you can set up the application to get the DTWAIN_TN_PAGECONTINUE notification, and return 0 or 2 back to DTWAIN when this notification is sent.
This is not documented fully (will need to update it), but you will see DTWAIN_TN_PAGECONTINUE explained here.

What I mean is that,I want to stop the scanner to acquire images when the images are acquiring,which api should I use?DTWAIN_TN_PAGECONTINUE notification is dtwain triggered,not the user,is that right?

Yes, DTWAIN_TN_PAGECONTINUE is sent to the application by DTWAIN.  You need to respond to it by returning the desired value.  By default (returning a 1), it does nothing, but returning a 0 should act in stopping the scanning process.
But be aware that stopping the scanner when already set up to scan all (or a set) number of pages is highly dependent on the device as to how it will behave.  Some devices may eject all the remaining pages, some will report an error, others may stop right away and report no error.  Just be aware of the possible consequences of stopping the scanning process abruptedly.

The production of scanner which I use is HuaGao,and the model of the scanner is one of these:HS-8010Pro、HS-7010Pro、HS-6010Pro、P-5010Pro、Hi-4010Pro、HS-6010Pro、HS-4010Pro、i-5010UW、Hi-5010Pro、i-6010UW、Hi-6010Pro、p-6010pro、HS-6010UW、i-6010P、G-0701W、i-6010Pro

I saw the twain pdf,which write:To discard all pending images, use the DG_CONTROL / DAT_PENDINGXFERS / MSG_RESET
operation. Does the dtwain support it?

The DG_CONTROL / DAT_PENDINGXFERS / MSG_RESET will be automatically done if DTWAIN_TN_PAGECONTINUE is returned 0.

Also, if you eventually want to debug the library source code, basically all of the logic for DTWAIN_TN_PAGECONTINUE is found here.
A notification is sent out, and the return value of 0 issues the
ResetTransfer(MSG_RESET)
exactly as mentioned by the TWAIN specification.

Another question:  What computer language are you using?  Is it C#, C++, etc.?
Also, I made a few changes to the libraries in the development branch.  Please test your application using the release versions found here (32-bit) and here (64-bit).

OK,thanks, and I use Javascript

I use the node Library ffi to call the api of dtwail.dll.But I have a question,how do I define  these variablesDG_CONTROL / DAT_PENDINGXFERS / MSG_RESET when I use DTWAIN_CallDSMProc.

The TWAIN constants are in twain.h.
DG_CONTROL = 1
DAT_PENDINGXFERS = 5
MSG_RESET = 7

Thanks,and other question is when dtwain api is calling,(for example DTWAIN_AcquireFile )the other api can not be called,do you know the reason?

When the DTWAIN_AcquireFile is calling,I use DTWAIN_CallDSMProc to terminate the scanner,but it was not called,I have no idea about it.(The requirement is to stop the scanner if user do not want to scan.)

What verification do you have that the function was not called?  The function must have been called, and possibly you are passing in bad application and/or source identity values.  What is the return value?
This can also be verified by generating a log (DTWAIN_SetTwainLog) and seeing the call go through to the TWAIN system by looking at the function call and the sequence of steps that occur before returning.
Also, did you try what was suggested earlier?
Finally, the scanners you mentioned are not sold in the part of the world where I am located.  The worst case scenario is to get the source code, compile, and debug what is going on.

Closing.  Only will reopen if the issue has not been resolved.


Provide a generic version for uint32_t to float conversion, only if t…

…he int32 conversion is available
This remove duplicate code for various Intel implementation and should also help for #962.

@JohanMabille the error seems unrelated... a defect in the testing framework installation or something?

That's weird, it looks like it does not find doctest, but in that case I would have expected a failure when including the header. I've restarted the jobs in case it is just a flaky paranormal issue.


Implement Scrollable

Implement scroll event handler with API similar to Touchable.

Usage:
new scroller = new tapspace.Scrollable(view, item)
scroller.start({ ... })

Implementation details:

listen for mouse wheel event

Application specific behaviour:

scroll to pan
scroll to zoom

Implemented in v1.2.0-alpha.4


How to delete dynamic link from this package?

Hi @mahamaad
The API does not provide any method to delete dynamic links, which means it is also not possible to do so through this package.
by the way, it is possible to archive links from the firebase console if they have been created there.

ok thank you so much