Error while "make -j $(nproc)" because of CUDA9 and GCC6

Seems like CUDA requires GCC6 but errors with it :D Pretty fantastic logic...
I know it's not a problem here, but some thread or workaround about that?
ArchLinux user here. Let me know if more info is needed.
output
~/Downloads/nheqminer/build master *
❯ make -j $(nproc)
[  4%] Building NVCC (Device) object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o
[ 13%] Built target cpu_xenoncat
In file included from /opt/cuda/include/host_config.h:50:0,
                 from /opt/cuda/include/cuda_runtime.h:78,
                 from <command-line>:0:
/opt/cuda/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
CMake Error at cuda_djezo_generated_equi_miner.cu.o.cmake:219 (message):
  Error generating
  /home/charlike/Downloads/nheqminer/build/cuda_djezo/CMakeFiles/cuda_djezo.dir//./cuda_djezo_generated_equi_miner.cu.o

make[2]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/build.make:65: cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:178: cuda_djezo/CMakeFiles/cuda_djezo.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

~/Downloads/nheqminer/build master *
❯ ls /usr/bin/

~/Downloads/nheqminer/build master *
❯ cuda

~/Downloads/nheqminer/build master *
❯ pacman -Qi cuda
Name            : cuda
Version         : 9.0.176-4
Description     : NVIDIA's GPU programming toolkit
Architecture    : x86_64
URL             : http://www.nvidia.com/object/cuda_home.html
Licenses        : custom:NVIDIA
Groups          : None
Provides        : cuda-toolkit  cuda-sdk
Depends On      : gcc-libs  opencl-nvidia  gcc6
Optional Deps   : gdb: for cuda-gdb
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : cuda-toolkit  cuda-sdk
Installed Size  : 2.18 GiB
Packager        : Sven-Hendrik Haase<EMAIL_ADDRESS>Build Date      : Tue 03 Oct 2017 05:24:44 AM EEST
Install Date    : Tue 28 Nov 2017 07:30:43 AM EET
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

and the CUDA file core problem (/opt/cuda/include/crt/host_config.h)
#if __GNUC__ > 6

#error -- unsupported GNU version! gcc versions later than 6 are not supported!

#endif /* __GNUC__ > 6 */

@CtrlC-Root Thank you so much, this works for me as well !


Ollie: Watch babatunde3802(?:@gmail.com)?

Ollie requests the watch of the watch_keyword babatunde3802(?:@gmail\.com)?. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

babatunde3802(?:@gmail\.com)? has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by cigien in Charcoal HQ


Update browser support for BigInt

BigInt is supported in Firefox as of Firefox 68!
Edge doesn't support it for now but it will when EdgeHTML will be replaced with Chromium.
I replaced Firefox with Safari as a second example of an unsupported browser (I still swapped them because "Edge or Safari" sounds better than "Safari or Edge" to me :p).
As a further improvement (not included here), we could add a link to the Can I use... support table for BigInt.

Nice! I'd be totally down for a link to caniuse.com, want to include that here?

Sure!


[PLAT-265] Rebase upstream

Changes to bring in (from most recent commits):

ed9e4c6, 24e2f2d, 74ff735, 00f336e, 7dad6d2, ad32086, 8360808, f5c3e43, ca24498, ef9d233, 1d4be98, d09001e, 26316ff, c8d489c, 8db3027, 0ae730d, 5236052

Progress:

[ ] 0b5e0bf: rebasing
[x] ee67660
[x] 695fa86
[x] 3a9fda4
[x] b47b83d

Sorry it keeps redirecting me to this repo 😓


Refactor connect_server method in ServerDB adapter

@marcocapozzoli  Is this still relevant somehow? If not, please close it as "not planned"


Add package: webinterface-wifi

Add package: webinterface-wifi

Thanks again for the help! I definitely plan to add whitelist/blacklist functionality. Going to look into some existing packages for the best way to handle a config file and will add some command line options to configure it. I'm thinking of defaulting to a whitelist containing only the SSID of the wifi network that webinterface-wifi is installed/configured on. I would also prefer the application update the config rather than the service file when changing a port.

I really recommend following the XDG standards. Config files should either be in /opt/etc or ~/.config. It would probably be better to put it in /opt/etc since it's installed as a service that doesn't run for a specific user session, and it's meant to be modified by the user. I'd also recommend adding a small cli for modifying the settings live without having the restart the service.


[GLUTEN-1325] Move decimal arithmetic to spark sql

Can you help merge this one? @rui-mo
Gluten check  https://github.com/oap-project/gluten/pull/1326

Can you help merge this one? @rui-mo Gluten check oap-project/gluten#1326

Done.


(doc) Add echo example

Shows how to read request body and echo it back in a response, including
error handling.

Thanks for this! We need more examples. :)

Agreed! I wonder if there's a nice way to make them more visible from the docs here: https://docs.rs/iron/0.5.1/iron/
(I didn't know about the examples before, and the docs itself are really minimal.)

Could just put a link to the examples directory in the frontpage of the docs maybe!


[#99420212] Variabilise the name of the Tsuru PPA

So that we can point it at our own PPA which contains copies of the packages
at the versions we want to use. This is to workaround a limitation of
Launchpad PPAs which only allow you to download the latest version of a
package.
I can't see any nice way (with Ansible) to remove the old repo if you've
specified a custom one, because another playbook (tsuru_api/gandalf/hipache)
may still configure the original repo and both tasks would fight (changing
it back and forth in every run).
So if we use this, we'll also want to either a) remove the old repo as a
custom task outside of these playbooks, or b) specify the package versions
we want so that the old repo is ignored if it presents a later version.

Shout if you have a opinion/preference for a) or b).

Same comment than in gandalf playbook applies here.

Updated.

Work ok :+1:, merging


fix(deps): update module github.com/azure/azure-sdk-for-go/sdk/azcore to v1.13.0

This PR contains the following updates:

Package
Type
Update
Change

github.com/Azure/azure-sdk-for-go/sdk/azcore
require
minor
v1.12.0 -> v1.13.0

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

2 additional dependencies were updated

Details:

Package
Change

github.com/Azure/azure-sdk-for-go/sdk/internal
v1.9.0 -> v1.10.0

golang.org/x/net
v0.26.0 -> v0.27.0


Assertion failure running air-to-aie pass

air-to-aie on a transform test, run from mlir-air/mlir/test directory:
 $ air-opt --air-to-aie  Transform/AIRDependency/matmul_parallel.mlir

Maybe this is not a sensible pass to run on this input, but I'm reporting just in case you don't think users should be reaching assertion failures like this.  Here's the dump:
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:1045: std::vector::reference std::vector<int>::operator[](std::vector::size_type) [_Tp = int, _Alloc = std::allocator<int>]: Assertion '__n < this->size()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: ../../build/bin/air-opt --air-to-aie Transform/AIRDependency/matmul_parallel.mlir
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  air-opt   0x00005563621ba8f7

I'm also getting this when I run the matmul_mul-custom notebook example...


Try using shasum/awk for comparing hashes of PaketRestoreCacheFile and PaketLockFilePath for speed boost on osx and linux

This closes #2796 .  This attempts to use the systems hashing programs in preference to reading in the whole paket lock file.  For reasons unknown the ReadAllText can perform poorly on osx/linux.
In experiments on some of my builds this can shave off minutes.
Let me know if this seems reasonable.

@matthid?


Commit 7929a63 breaks multiline commenting

When using <Plug>(comment_toggle_linewise_visual) on multiple lines of which at least one is already commented (but not all) the following error gets thrown:
E5108: Error executing lua [string ":lua"]:1: Vim(lua):E5108: Error executing lua ...ite/pack/packer/start/Comment.nvim/lua/Comment/utils.lua:6
3: attempt to get length of local 'iter' (a nil value)
stack traceback:
        ...ite/pack/packer/start/Comment.nvim/lua/Comment/utils.lua:63: in function 'is_empty'
        ...ite/pack/packer/start/Comment.nvim/lua/Comment/utils.lua:295: in function 'uncomment'
        ...te/pack/packer/start/Comment.nvim/lua/Comment/opfunc.lua:135: in function 'linewise'
        ...te/pack/packer/start/Comment.nvim/lua/Comment/opfunc.lua:76: in function 'opfunc'
        .../site/pack/packer/start/Comment.nvim/lua/Comment/api.lua:34: in function 'toggle_linewise_op'
        [string ":lua"]:1: in main chunk
        [C]: in function 'toggle_linewise_op'
        [string ":lua"]:1: in main chunk
stack traceback:
        [C]: in function 'toggle_linewise_op'
        [string ":lua"]:1: in main chunk

This definitely wasn't the case at commit 006724e and only started to happen with commit 5a71d73.

Sorry for this. Should be fixed by https://github.com/numToStr/Comment.nvim/commit/1855716bd9d0f71b03d447dc75df5060575d1367. Can you try after updating?

Seems to work!


Merge release-2.4

cc @brian-brazil @gouthamve

(sigh) DCO is again confused by slightly different addresses for @gouthamve and @jannickfahlbusch.
@brian-brazil should we just force it to pass?

Yeah, these are false positives.

Because I'm used to submit forked PRs so I didn't even think about using the GH interface directly... Replaced by #4730


Rewrite copy_dir() fn into buildable object

This is not yet in a ready state. I propose this here initially, so we can talk about the API of the type.
@baszalmstra You also said that this would be a good idea, so pinging you here for a first general review whether this goes into the right direction for you!

The API looks good to me. Maybe we can also have a shortcut for the mixed globs thing that we expect from recipes (like ::parse(&[&str]]).

I rewrote a few bits here and included what I understood you wanted.
Have another look please, I think this is ready for proper review.

So the errors in CI are because of unused functions. What to do about that? Marking them as allowed is not the right approach IMO.
I could remove them one by one with one commit each, which could then be reverted once it is required to have that individual functionality. But as you squash-merge, that wouldn't be possible :laughing:

Friendly ping. What to do about the unused fns?

Hi, sorry for the late reply. I think we're fine with just allow-unused them. The other option we had in mind would be to move this to another crate. But preference is allow unused for now :)

I rebased and fixed the clippy issues. However, there is still a problem with copying multiple files from a directory. I believe that issue comes from not recursing into the directory (e.g. when matching on cmake/ it shoudl copy the whole directory (except for files excluded).

That's strange. The WalkBuilder documentation does not explicitely say that directories are skipped implicitely.
The current implementation does not use the WalkBuilder::filter_entry function, which could mistakenly cause that issue.
Maybe though it would be a good idea to use that function, to potentially reduce the files looked at, right?

True, I didn't realize we didn't use the filter entry (we did before and I fixed a similar bug then) :)
I can have a less tired look today if you don't get to it

I can have a less tired look today if you don't get to it

Yes please. I figured to not use the filter_entry function exactly for that reason: because there was a bug with recursion. I assumed that not using it would default to "recurse always" but it seems that it does not. :cry:


Create Hell_word.md

Display "Hello word" using C.
What the program do ?
Program will display "hello word".
In what programming language it is written?
Program is written in C language

This pull request do not contains files in specific folders. Please fix it and reopen


[nrf fromlist] tests: drivers: retained_mem: Run test on nrf54l20pdk

Add overlays to execute retained_mem test on nrf54l20pdk.
Upstream PR #: 82958
manifest-pr-skip

Commit tags will fail until
https://github.com/nrfconnect/sdk-zephyr/pull/2378
is merged.


fix: replace env file with pulumi config file

:tada: This PR is included in version 1.0.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Use heroku container registry to deploy the webapp

This PR follows the advice given in the heroku/conda-buildpack repo which recommends that apps should deploy from the container registry instead of a buildpack. To complete this PR, I need to:

[x] Establish where the staticfiles should be stored (in the app or in an S3 bucket)
[ ] Initially this will be deployed as a separate heroku app. Once it has been tested thoroughly, it should be given the ospc.org domain name
[ ] Set up the services from the previous applications such as monitoring and logging
[ ] Review the environment variables to see what is still used, what needs to be updated, etc.

This PR follows up on the initial work in converting PolicyBrain to Python 3 in #886.

It looks like most projects store staticfiles within the project directory. I plan to continue to do this unless we run into issues with this down the road.

This version of the app is up at https://ospc-docker-test.herokuapp.com/ if anyone is interested in testing it out.

This version of the app is up at https://ospc-docker-test.herokuapp.com/ if anyone is interested in testing it out.

I moved the app to https://ospc-test.herokuapp.com/ to make sure it was primarily under the main OSPC heroku account.

PR #889 is ready to go.

PolicyBrain is now deployed with Docker via the Heroku Container Registry

Static files are now served via whitenoise. This resolved an issue where the static files were not found at their expected path. In the process of resolving this, I learned that Django does not claim to have a "production" ready static file server. Its static file server is meant for development:

(source: https://docs.djangoproject.com/en/2.0/howto/static-files/)
White noise was chosen primarily for its ease of setting up but also for its performance. There are ways to configure it further to hook it up to a higher performance CDN type setup if needed. Early on in the project, the files were served from a S3 bucket, but this bucket hasn't been updated since 2016 and does not appear to be used anymore.

A few paths for static file locations were misconfigured. These were fixed in this PR, too.

Next up:

Hook up a copy of the production database to the test server running this code. This allows for testing retrieval of previous runs. This also gives me an opportunity to practice moving a postgres server from one heroku app to another before doing it for the production site.
Once this has been thoroughly tested, this site will become the new test site, a copy of it will be created to be the new production site, the production database will be migrated to the new production site, and finally, the domain name will be transferred to the new production site.


Error enum values not propagated as exit codes for benchmark comparison in CI.

From the docs:

These baselines can then be checked with:
swift package benchmark baseline check --check-absolute-path /relative/or/absolute/path/to/Thresholds

The absolute check will have an exit code of 0 if the check is exactly equal, but will return with exit code 2 if there were any regressions or exit code 4 if there were only improvements.

But, this does not seem to be the case; this is what I saw.
$ swift package benchmark baseline check main merge_request
Building for debugging...
[1/1] Write swift-version-6E0725D62189FA0A.txt
Build complete! (0.29s)
Building for debugging...
[1/1] Write swift-version-6E0725D62189FA0A.txt
Build complete! (0.66s)
Build complete!
Building BenchmarkTool in release mode...

=======================================================================================
Threshold deviations for test benchmarks:TestBenchmarks
=======================================================================================
╒══════════════════════════════════════════╤═════════════════╤═════════════════╤═════════════════╤═════════════════╕
│ Time (wall clock) (μs, %)                │            main │   merge_request │    Difference % │     Threshold % │
╞══════════════════════════════════════════╪═════════════════╪═════════════════╪═════════════════╪═════════════════╡
│ p75                                      │             185 │             170 │              -8 │               5 │
╘══════════════════════════════════════════╧═════════════════╧═════════════════╧═════════════════╧═════════════════╛

New baseline 'merge_request' is BETTER than the 'main' baseline thresholds.

error: benchmarkThresholdImprovement
$ echo $?
1

The return code for improvement is 1, and from the docs I expected it to be 4 in the CI.
I see that the error enum's value is defined as 4 here, and it is thrown from performCommand.
I suspect that performCommand's caller might not be calling exit with the error enum's raw value as done here.
 Diagnostics.error(String(describing: error))
 exit(1)

This seems to be happening in the example benchmark comparison run. I couldn't completely trace the call across library boundaries. Is this a bug or am I missing something?
Environment

OS: macOS Sonoma 14.4
package-benchmark version: 1.22.3
Swift version: 5.11-dev, DEVELOPMENT-SNAPSHOT-2023-12-07-a

Yeah, it's the same issue. It's possible to work around by running the benchmark tool directly without swiftpm - running the benchmark with --debug you can see the actual command line required to drive the benchmark tool and instead run that in ci, the you should get the correct error code surfaced.

Is this also reflected in the docs? I could not find anything of the sort and was going entirely by the 0/2/4 exit codes.

Thanks for the report, unfortunately away for a couple of weeks and won't have time to check on this until then, sorry for delay.

No worries! Also thank you for pointing out the workaround


Sun Risks: Visualizing the Statistics

[ Project Lead ] @SASUSA
[ GitHub Repo ]
[ Track ] Data visualization
[ Level ] Beginner
[ Timezone ]
Description
Creative data visualizations for the following sun risk statistics to accompany this published piece: http://www.stats.org/sun-risk-skin-cancer-different-groups/.

SEER Stat Fact Sheets: Melanoma of the Skin: http://seer.cancer.gov/statfacts/html/melan.html
As the American Cancer Society noted, “the past 5 years of data indicate that rates are declining or plateauing among those younger than 50. For example, from 2008 to 2012, incidence rates declined by about 3% per year in both men and women ages 20-29. In contrast, among adults 50 and older, the incidence rate has increased by 2.6% per year since 1996.” http://seer.cancer.gov/<EMAIL_ADDRESS>This table from U.S. study looking at childhood sunburns and subsequent melanoma diagnoses, finding these odds ratios:
http://www.stats.org/wp-content/uploads/2016/04/Sunburns3-e1461772160559.png
Current Data on Risk Factor Estimates Does Not Explain the Difference in Rates of Melanoma between Hispanics and Non-Hispanic Whites http://www.hindawi.com/journals/jsc/2016/2105250/tab1/
Of those people who get melanoma, it steals an average of 17.1 years of someone’s life. http://progressreport.cancer.gov/end/life_lost

Want to Contribute?
Join us at the Global Sprint June 2-3. Leave a comment in this issue to let the project lead know you're interested in contributing during #mozsprint 2016!

Note to the Project Lead
Congrats, @SASUSA! This is your official project listing for the Mozilla Science Global Sprint 2016. To confirm your submission, please complete the following:

[ ] Provide a GitHub repository for work and discussion on your project
[ ] Confirm in a comment that at least one person will be available to review and answer questions on this project from 9-5 in their timezone on both June 2 & 3. Please specify timezone. :clock1:

Do you want to become a featured project? :tada:
Here are some exercises that will help your project be more inviting to new contributors. We hope you'll try to complete some of these as you prepare for #mozsprint.
If you complete all the exercises, your project will be eligible to be featured in our collection of open source science projects! Once you've finished this list, contact @acabunoc to submit your project for review.

[ ] README.md:
[ ] LICENSE:
[ ] CONTRIBUTING.md:
[ ] Roadmap or an Issue Tracker (with tasks to complete):
[ ] Data Reuse Plan (if applicable):
[ ] Code of Conduct:
[ ] Personas:

Excited to see what we can create tomorrow. Carey Reed from SASUSA will be available to answer any questions June 2 & 3 ET. Thanks so much Mozilla Science Lab for hosting such a great event!


Parser for basic projections

Column projection
Literal expression projection
Constant expression projection
Aggregation projection

Codecov Report
Patch coverage: 94.36% and project coverage change: +3.53 :tada:

Comparison is base (b8eb4a7) 77.63% compared to head (022a87f) 81.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   77.63%   81.17%   +3.53%
==========================================
  Files          72       78       +6
  Lines         322      393      +71
  Branches        8        8
==========================================
+ Hits          250      319      +69
- Misses         66       69       +3
+ Partials        6        5       -1

Impacted Files
Coverage Δ

Tseesecake/Parsing/Query/AggregationParser.cs
88.88% <88.88%> (ø)

Tseesecake/Parsing/Query/ExpressionParser.cs
91.66% <91.66%> (ø)

Tseesecake/Modeling/ColumnReference.cs
100.00% <100.00%> (ø)

Tseesecake/Modeling/TimeseriesReference.cs
100.00% <100.00%> (ø)

Tseesecake/Parsing/Grammar.cs
100.00% <100.00%> (ø)

Tseesecake/Parsing/Keyword.cs
100.00% <100.00%> (ø)

Tseesecake/Parsing/Query/ProjectionParser.cs
100.00% <100.00%> (ø)

Tseesecake/Parsing/Query/QueryParser.cs
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[storage] Queue messages with unicode chars on Py2.7 fail

Error message:
HttpResponseError: XML specified is not syntactically valid. RequestId:d21e8082-e003-00a3-3ed6-4baf99000000 Time:2019-08-05T21:44:22.1622073Z ErrorCode:InvalidXmlDocument LinePosition:0 LineNumber:0 Reason:None Error:None

Suspected issue in msrest casting unicode to str:
https://github.com/Azure/msrest-for-python/blob/master/msrest/serialization.py#L516

Potential fix in msrest:
https://github.com/Azure/msrest-for-python/pull/172


Fix #10270

Motivation
Fix bug.

:exclamation: before this PR can be merged please make sure that you enable "Allow edits from maintainers".
This is needed for tooling to be able to update this PR in-place so that Github can properly recognize and mark it as merged once its merged into the upstream branch


Remove log depth skin workaround

Fixes #6447
Fixes #6416
I tested it using model miner.glb (https://github.com/CesiumGS/cesium/issues/8875) and bear_on_balloon.gltf (https://github.com/CesiumGS/cesium/issues/6416)

Thanks for the pull request @baothientran!

:heavy_check_mark: Signed CLA found.
:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

One of the model unit tests was failing locally. This is because we still have glTF 1.0 versions of CesiumMan in our tests and they have the unnormalized bone weights problem. In lieu of fixing the model which is complicated with glTF 1.0 I tweaked the test so that he faces the camera and the missing chunk doesn't overlap the center pixel.
For reference, this is the issue recreated in a local sandcastle:

Thanks for the fix @baothientran, and as a result some nice code cleanup!


Fixed jsonSerialize

The jsonSerialize function fails because of
$this->meta() is not implemented(or changed to $this->element->meta();
This PR changes that.

Thank you for contributing


Mandatory reject param?

Hi there!
I'm upgrading my code to v4, and I saw that the new reject(dismiss) Promise is mandatory to avoid browser errors. If I do not set a dismiss function, I get the following error in Chrome:
Uncaught (in promise) cancel

Would be possible to make this reject optional? Sometimes we just want to close the popup if the user hits cancel, and not show a new swal to confirm that the user clicked cancel successfully.
If I code an empty dismiss function just to avoid this error, ES6 linters will fire up to not create empty functions, and the code would not be accepted for deployment.
Best regards,
Rafael.

Hi @rafael-renan-pacheco ! I don't know at this moment how to suppress Uncaught (in promise) error messages in browser console.

@limonte is there currently a reason it does do a rejection of the promise? I don't see anywhere where they would be caught other than by the user at the end (unless that was the idea)
But you can do something like this:
return modalDependant.apply(this, args).catch(function(rejected) {
    console.log(rejected);
  });

@limonte ah yeah, I see what you mean. Thanks!

@limonte I'm not sure if this is something we actually want to pursue in swal but for the sake of providing a solution: we could make a wrapper class for the default Promise implementation and override the then() function call to catch silently if the two function parameters for then() are not supplied.
So something like:
//Note this is entirely untested
SwalPromise.prototype.then(func1, func2) {
    if (typeof func1 !== "function" && typeof func2 !== "function") {
        return false; //manual catch
    } else {
        return Promise.prototype.then(func1, func2); //go back to the normal implementation
    }
}

I'm not sure how to implement this idea, can you please create PR? Thank you @acupajoe !

The above wouldn't work in cases where they're not using a .then() handler.

The only way i can really see this being resolved is with an opt-in solution such as
Promise.prototype.done = function() {
    return this.catch(function() {
        // Silence is golden.
        // Catch promise rejections silently.
    });
};

And then swal().done() to suppress the error.
There is no way to fix this without using a non-native promise implementation where we can suppress the error internally.

@samturrell I implemented your suggestion in v4.0.6
https://jsfiddle.net/limon/2ya7akjq/
Thank you Sam, with your help we finally found the solution for this issue.

@rafael-renan-pacheco as to me, this issue can be closed as there's most probably no better solution.

Hi @limonte!
Of course! Thank you very much for your support :+1:
Best regards,
Rafael.

Hi, @limonte
It works, thanks.
Instead of adding "done" after each swal, i put it in sweetalert2.js line1129 right after closing Promise
works great for me


Update gfx942 BBS Equality/GridBased yamls for 0811/0813/0815 sizes

Could you check the removed CustomKernel solution if any other solution refer to the same kernel? If No, we should remove the CustomKernel from tensilelite.

Local test passed.
[----------] Global test environment tear-down
[==========] 37294 tests from 13 test suites ran. (1838504 ms total)
[  PASSED  ] 37294 tests.
hipBLASLt version: 1000


Wiki: Add more at wikipedia link

Link to the corresponding wikipedia page at the end of the summary.

Added pull request for this


Manganato extension

Steps to reproduce
Not loading picture of the m/m/m but on website it works perfectly
Expected behavior
Working normally
Actual behavior
Manganato extension seems not working and no fix, come on i don't like use others extension
Crash logs
No response
Yōkai version
New version
Android version
14
Device
Realme c3
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, or a request for an extension, I should be contacting the extensions repository's maintainer/support for help.
[X] I am reporting an issue exclusive to this fork. I have also checked that is not an issue on the main version of Mihon
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version 1.9.2.
[X] I have updated all installed extensions.
[X] I have filled out all of the requested information in this form.

Talk to whoever maintain that extension and confirm that it's an app issue before opening an issue. There are no extensions associated with Yokai, never has, never will.

How to talk or contact them though? because I thought you guys were the one maintaining the extension

Head to Source > Extensions > Find the extension > Settings > Find this button, it should redirect you to the repo. Other than that you're on your own.


Not issue, only a request: Is my new 2kPro cam supported?

sorry, I already have 4 YI-Home 1080p cams, 2 work well with the alternative firmware while unfortunately I burned the other 2 for experiments with the firmware.
Now I have purchased this other cam and I would like to try modifying it, can you tell me if it is compatible? Because I can't find it in the list but I see that others have tested it if I'm not mistaken.
Product Name: Yl Home 2K Pro Camera
Model: YYS.62121
SN: YY6230EUW3B*******
DID: YFUSY94CV51502231104
Thanks a lot
Mat

I need the fw version.
You can find it in the app.

ok, I just set it up (it was still in the box)
the current firmware is:
<IP_ADDRESS>_202303091901
the new firmware it asks me to install is:
<IP_ADDRESS>_202311171457
I waited to install it because I'm more interested in the hack :)

This is supported?
y623_0.3.1.tgz

Yes, y623.


rudimentary support for BMPs with alpha masks

"rudimentary" in the sense that the format will be allowed and parsed, but the alpha channel is thrown away when drawing and getting pixels.
No hard feelings if you don't want to accept this patch. It's kinda silly. The better solution is to not use BMPs with alpha masks, of course. It's just that I found myself in a situation where I want to render some BMPs that I don't necessarily have control over. I figured this hacky solution is better than nothing since it's unlikely embedded-graphics will ever get alpha blending support.

I wouldn't mind adding this hack, as long as it is documented how ARGB images are handled.
I couldn't find information about whether BMP uses premultiplied alpha or not. If it doesn't, drawing a not entirely opaque image would lead to an ugly output. In this case it would be better to apply some simple alpha blending with black to fix the semi transparent pixels: r = r * a / 255 (the same for the other color channels). Because this only needs to be calculated for pixels with a != 255 the performance impact for completely opaque images shouldn't be too large.

I figured this hacky solution is better than nothing since it's unlikely embedded-graphics will ever get alpha blending support.

It was planned to have some alpha blending inside of e-g. But alpha blending would have only ever worked for a subset of DrawTargets, like an in memory frambuffer, because most display drivers don't support reading back the pixels from the display framebuffer. I think I've even got an unpublished branch somewhere that implements some ARGB types and basic alpha blending, but I doubt that this will ever be released.

Cool, thanks for the thoughtful (and speedy!) feedback :)

If it doesn't, drawing a not entirely opaque image would lead to an ugly output.

Yeah, the output I'm seeing isn't gonna win any beauty contests, that's for sure :) For my particular use case, I'm just barfing out the splash BMPs that are embedded in the UKIs for a phone bootloader I'm hacking on. In this particular situation, I have a 720x1280 framebuffer to play with, and the image (the Arch splash logo that ships with a core OS package) is only a small portion of the screen, so it doesn't actually look too awful.

In this case it would be better to apply some simple alpha blending with black to fix the semi transparent pixels

I thought about this, and decided not to explore until I took a temperature test from upstream. Since you seem receptive, let's talk some more ...
I was thinking that it could be useful to provide the "background" color that the image should blend with. That is, you'd call something like .alpha_bg(Rgb888:CSS_HOT_PINK).draw(&mut display) (hot-pink is my go to CSS color <3). During the pixel shovel-out, any pixels that have < 255 alpha would get blended with that fixed color. So basically what you suggested, but you could actually specify what you expect the background color to be.
Further, any pixels that have 0 alpha would actually get skipped. So this alpha_bg addition wouldn't mean that everything inside the image bounding box is suddenly hot pink, you know? Plus skipping the transparent pixels might be a nice speed-up in some cases (or compensate for the alpha blending elsewhere!)

I thought about this, and decided not to explore until I took a temperature test from upstream. Since you seem receptive, let's talk some more ...
I was thinking that it could be useful to provide the "background" color that the image should blend with. That is, you'd call something like .alpha_bg(Rgb888:CSS_HOT_PINK).draw(&mut display) (hot-pink is my go to CSS color <3). During the pixel shovel-out, any pixels that have < 255 alpha would get blended with that fixed color. So basically what you suggested, but you could actually specify what you expect the background color to be.

That sounds great, I had thought about suggesting something like this, but had decided against it to prevent feature creep beyond your use case. But being able to set the background color is a much better solution and I support the idea of implementing it this way.

Further, any pixels that have 0 alpha would actually get skipped. So this alpha_bg addition wouldn't mean that everything inside the image bounding box is suddenly hot pink, you know? Plus skipping the transparent pixels might be a nice speed-up in some cases (or compensate for the alpha blending elsewhere!)

I don't think this is a good idea, because it would treat pixels with alpha 0 and 1 very differently (0 would draw nothing and 1 would draw a pixel in glorious hot pink). In some cases this can also have worse performance, because the image can no longer be drawn via DrawTarget::fill_contiguous and needs to be drawn via DrawTarget::draw_iter instead.

:+1:  I've updated the PR with the blending. Let me know what you think.
I must say, it's looking fabulous:

Let me know how I should document this. Also, I'm not sure if it's possible to expose the alpha channel via Pixels? Since e-g doesn't have core color types with alpha. I didn't think very hard about it, though.


pixi with websocket

Hey,
I am trying to use pixi with a websocket, but seem to be hitting a spike in GPU over a short period of time.
First version
if (evt.data instanceof ArrayBuffer) {
    let blob = new Blob([evt.data], { type: "image/jpeg" });
            let imageUrl = URL.createObjectURL(blob);
            camera.image.src = imageUrl;
            var texture = new PIXI.Texture(new PIXI.BaseTexture(camera.image));
            var bunny = new PIXI.Sprite(texture);
            camera.stage.addChild(bunny);
            camera.renderer.render(camera.stage);
        } else {
            alert(evt.data);
   }
}

Played around and maybe thought its due to me continuously creating a new texture, and sprites, and continuously calling addChild..
Changed it to create a single instance of a Sprite, call addChild once, and set the Sprite's texture with
var texture = new PIXI.Texture( new PIXI.BaseTexture(camera.image) );
camera.sprite.texture = texture

but all i get is a white screen.
Any ideas ?
Environment

pixi.js version: _e.g. 5.20
Browser & Version: _e.g. Chrome 79.0.3945.88
OS & Version: _e.g. Windows 10
Running Example: url

camera.image.src = imageUrl;
var texture = new PIXI.Texture(new PIXI.BaseTexture(camera.image));

that is asynchronous operation. You cant just expect renderer.render work after that, you have to wait when the png/jpg texture is parsed by browser, then pixi can render it correctly. Look at onload event of baseTexture or assign that callback to image itself.

Oh, the problem is in spike, right? Its PNG decoding + texture upload. use createImageBitmap to make it async operation, and pixi kinda has that already, you can enable it if you pass certain field in ImageResource constructor, just pass that ImageResource instead of Image to BaseTexture constructor.
https://github.com/pixijs/pixi.js/blob/dev/packages/core/src/textures/resources/ImageResource.js#L72
And here is createImageBitmap call, you can debug whether it goes there, by placing a breakpoint:
https://github.com/pixijs/pixi.js/blob/dev/packages/core/src/textures/resources/ImageResource.js#L188
There are only one or maybe two projects that use that async loading , so beware - you have to dig inside and create a new case for us, its up to you to check if that thing actually can be used :)

I think the issue is that you’re continually creating a new Sprite/Texture/BaseTexture every time. Depending on how often that’s called with WebSocket, it can create issues for your browser with memory. The most ideal solution is to not recreate your objects every time. You could achieved this by redrawing to a canvas owned by a BaseTexture then updating the BaseTexture. If the dimensions keep changing, you’ll need to save a reference to that Sprite and call destroy (also destroy the BaseTexture by passing true to destroy).

just wanted to update..
i ended up with a "loaded" event on the BaseTexture and it solved my problem...


bug: dart_format does not work

Neovim version (nvim -v)
0.9.5
Operating system/version
archlinux 6.7.4-arch1-1
Add the debug logs

[X] I have set log_level = vim.log.levels.DEBUG and pasted the log contents below.

Log file
Log file: /home/mhdos/.local/state/nvim/conform.log
15:16:03[INFO] Run dart_format on /home/mhdos/file.dart
15:16:03[TRACE] Input lines: { "void main() { print('hello world'); }" }
15:16:03[DEBUG] Run command: { "dart", "format" }
15:16:03[TRACE] Applying formatting to /home/mhdos/file.dart
15:16:03[TRACE] Comparing lines { "void main() { print('hello world'); }" } and { "void main() { print('hello world'); }" }
15:16:03[TRACE] Diff indices {}
15:16:03[TRACE] Applying text edits: {}
15:16:03[TRACE] Done formatting /home/mhdos/file.dart
15:16:03[WARN] Formatter 'dart_format' timeout
15:16:03[INFO] dart_format exited with code 143
15:16:03[DEBUG] dart_format stdout: { "" }
15:16:03[DEBUG] dart_format stderr: { "" }
Formatters for this buffer:
dart_format ready (dart) /home/mhdos/.local/sdks/flutter/bin/dart
Describe the bug
dart_format does not work.
note: if I manually run dart format file.dart, it works
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
n/a
Expected Behavior
expected output:
void main() {
  print('hello world');
}

Minimal example file
void main() { print('hello world'); }
Minimal init.lua
No response
Additional context
No response

Looks like it's timing out. Either increase the timeout_ms or run it with async = true


Adding tags to any mp4 file with multiple MDATs always corrupts them

Describe the bug
If you try to add tags to any mp4, that contains multiple MDATs, the app will corrupt this file and it becomes unplayable.
To Reproduce
Steps to reproduce the behavior:

Get a mp4 with multiple mdats (the online video downloader "rapidsave" creates this type of file in some cases for example)
Add tags through Aves
Video becomes unplayable and corrupt after this

Expected behavior
Either refuse to add tags to mp4 files with multiple mdats, or the app should find a way to add the tags correctly.
System information and logs:
Package: deckers.thibault.aves
Installer: com.looker.droidify
Aves version: 1.8.9-izzy, build 10001
Flutter: stable 3.10.3
Android version: 10, API 29
Android build: QP1A.190711.020.G960FXXUHFVG4
Device: samsung SM-G960F
Geocoder: ready
Mobile services: ready
System locales: en_US, de_DE
Storage volumes: /storage/emulated/150/
Storage grants:
Error reporting: false
aves-logs-20230819_040728.txt

Thanks for the report. Could you please provide a sample file with multiple mdat?

https://send.bitwarden.com/#4rss-Pe6Ckyf1bBkAJ9e-Q/NtyKwh6i2uOFPvwTY2xCsQ
If you want, I can also send you it through email.

Thanks for the sample.
For now, I "fixed" this by making Aves fail when trying to edit a fragmented mp4.
In the future, I intend to switch to ffmpeg for video edition, which should be more robust and versatile.


Add random errors in AdService

This mimics what the AdService currently does in our old microservices-demo deployment. Deferring to @jack-berg to decide if we should do something more appropriate here.
Ideally, errors would be something the upstream opentelemetry-demo repo would better showcase, but until that time it seems fine that we continue to do our own thing.

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


As an entrepreneur and developer, I want an explanation of what a partner is on the partners' list page so I can understand the value of the partners' pages to me.

As an entrepreneur and developer, I want an explanation of what a partner is on the partners' list page so I can understand the value of the partners' pages to me.
DOD:

Replace "Profiles" with "Partners" as the list title
Mirror design of "Code with us" page in PDF mockup
Include image
Overlay big heading on image: "Government Partners"
Overlay smaller tagline on image under heading: "Meet government innovators open to new ways to develop technology."
Include contextual content under image: "Discover government innovators from British Columbia experimenting with technology development. Explore APIs and code you can use, and find opportunities to work together."
Remove tags in list (i.e. Collaboration, Participation, etc.)
Have default list appear in alphabetical order

@lmullane, for 7, instead of changing code, you can remove tags in yml file.

@f-w I will do that.


[BUG?] csrf check faild in add new commet

Gitea version (or commit ref):  version 1.13.0+dev-735-gdf4bbcd23 built with GNU Make 4.2.1, go1.14.9 : bindata, sqlite, sqlite_unlock_notify (Build with last commit: df4bbcd235cec8708cd0cbdd9bcbdd00f5db4fd5)
Git version:
Operating system:
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

Description
GetInvalid csrf token. when add code comment. view:

log:
[Macaron] 2020-10-06 14:59:24: Started POST /testg/test_repo/pulls/5/files/reviews/comments for <IP_ADDRESS>
[Macaron] 2020-10-06 14:59:24: Completed POST /testg/test_repo/pulls/5/files/reviews/comments 400 Bad Request in 338.589µs
2020/10/06 14:59:24 ...s/context/context.go:332:func1() [D] Session ID: 87d1841579ba977c
2020/10/06 14:59:24 ...s/context/context.go:333:func1() [D] CSRF Token: bR_QLYCBp6bLpxZQHFc4FNzrJ4Y6MTYwMTk2NzU2NDc0ODM4NzM3NA

...

clean cache & login -> test again

clean cache & login -> test again

That's a workaround but not a solution.

If this fix it, there is already an issue about it ...

also interesting #11188

Sadly it's not usefull, And I found an amazing thing. The submit review is usefull which is using same csrf value...

Sorry, It's my config fault.

Sorry, It's my config fault.

Could you explain?


Content revision required

you need to update this text under SharePoint Online section above.
"Includes one team site and the public website. Does not include publishing site functionality. The public website capabilities were designed with small business in mind."
Public sites are not supported in SharePoint Online and are long gone. Unless you have plans to bring them back :-)

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

ID: 28dce46b-a552-800a-621a-efcd6ee41d4e
Version Independent ID: ea865148-7860-c247-6ae5-454ddb9c60c6
Content: Branding and site provisioning solutions for SharePoint
Content Source: docs/solution-guidance/Branding-and-site-provisioning-solutions-for-SharePoint.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Markdown formatting issues and doc update required... adding this to my backlog and will get the doc updated. Thanks!


Remove useless ParseException from signatures in EntityUtils

ParseException can be removed from all signatures of this class. And since this class is final, there is no risk of overridden signature.

@fdaugan We cannot do that. It would break the binary compatibility with previous releases.

Indeed, I have just seen that.

Changing exceptions in method signatures does not break binary compatibility. It would break source compatibility though.


esy build fails on windows

Operating System: windows 10 1903

Revery Version: master

OCaml version: 4.03

Native, Bytecode, or JS build: native

Steps to reproduce: esy build

Actual Result:

info esy build 0.5.8 (using package.json)
info building @opam/ocamlfind@opam:1.8.1@ff07b0f9
info building @opam/ocaml-migrate-parsetree@opam:1.4.0@0c4ec62d
error: build failed with exit code: 1
build log:
# esy-build-package: building: @opam/ocamlfind@opam:1.8.1
# esy-build-package: pwd: C:\Users\Vijay\.esy\3_\b\opam__s__ocamlfind-opam__c__1.8.1-ff386450
# esy-build-package: running: "bash" "-c" "patch -p1 < findlib-1.8.1.patch"
C:/Users/Vijay/AppData/Roaming/npm/node_modules/esy/node_modules/esy-bash/.cygwin/bin/bash: findlib-1.8.1.patch: No such file or directory
error: command failed: "bash" "-c" "patch -p1 < findlib-1.8.1.patch" (exited with 1)
esy-build-package: exiting with errors above...
building @opam/ocamlfind@opam:1.8.1
esy: exiting due to errors above

Expected Result:  successful build
Search terms used: esy build fails on windows

Works after deleting .esy folder at root level directory


Do not include babel-polyfill in ES5 CDN bundles

Bundling babel-polyfill with libs is discouraged by Babel devs, see https://babeljs.io/docs/usage/polyfill/. The Babel polyfill can only run once in the browser, it throws the second time it runs and pulls everything else down with it.
Suggestions:

Use the transform-runtime plugin, or
Require user to include the polyfill separately, https://cdnjs.com/libraries/babel-polyfill

Reverted, as we first need to figure out how to solve this in our ecosystem

Fixed in 9.0.0 as we don't use babel anymore


Dart pad slowed down.

What happened?
It's not a huge problem, but I'm reporting that DartPad seems to be slowing down.
When I run the following DartPad, a few months ago I got results around 600ms and 300ms, but when I ran the same code recently I got results of 2900ms and 1000ms. Results are three times slower than before.
Steps to reproduce problem

DartPad link

Additional info
Today

Past

Browser
Browser: Chrome
Version: 112.0.5615.137
It is the same even if I turn off all AdBloc plug-ins and run it, and there is no error in the console.
Machine
Operating system: MacOS Ventura
Version: 13.1

What are you attempting to measure here?

I doubt this is dartpad specific and instead should be reported to the flutter/flutter repo.

Since I registered an issue in the flutter project, I will close this issue.

Re-opening as this isn't a Flutter issue.

I believe this is related to https://github.com/dart-lang/dart-pad/issues/2489, potentially a dupe.


AllPublicDeclarationsHaveDocumentation warns on overridden methods

I recently used Homebrew to upgrade to swift-format 509.0.0.
The behaviour of the AllPublicDeclarationsHaveDocumentation rule has changed:

Previously overridden methods did not cause the rule to trigger a warning.
Now they do.

I'm not sure if this was intentional or not - there doesn't seem to be any mention in the release notes.
The behavioural change seems to have happened in https://github.com/apple/swift-format/pull/609
AllPublicDeclarationsHaveDocumentation.swift now contains:
guard
       DocumentationCommentText(extractedFrom: decl.leadingTrivia) == nil,
       modifiers.contains(anyOf: [.public, .override])

Whereas previously it contained a guard that modifiers does not contain override:
guard
       DocumentationCommentText(extractedFrom: decl.leadingTrivia) == nil,
       let mods = modifiers, mods.has(modifier: "public") && !mods.has(modifier: "override")

Thanks for the report! I noticed that we don't actually have test coverage for this case, and in the process of adding test coverage for it, it revealed that the rule—and a few others—were written incorrect to support unit testing anyway. So this became a whole... thing.
I'll do a targeted fix for this specific issue and then fix the other underlying issues with the tests separately, since it might have broader-ranging impact, and I can cherry-pick the specific fix into a 509 dot release.


Refactor pkg/cidata: avoid y, simplify private func

The PR refactors code in the pkg/cidata:

rename y to instConfig;
pass only necessary params to the setupEnv function.

Given recent changes I think the variable should now be called instCfg, but that should probably be done globally in a separate PR.

Hmm, there are not that many instance of instConfig or inst.Cfg, so maybe it can be included in this PR?
$ grep -rc -E 'inst\.?Config' pkg | grep -v :0
pkg/hostagent/hostagent.go:36
pkg/hostagent/inotify.go:1
pkg/hostagent/mount.go:1
pkg/hostagent/requirements.go:5
pkg/instance/ansible.go:1
pkg/instance/create.go:6
pkg/instance/start.go:2
pkg/store/instance.go:1


Default Text when key is not available

Hello,
Default Text
When 'SCREEN1_TITLE' is not available, it showing me SCREEN1_TITLE on screen. I like to see 'Default Text' on screen. How can i achieve this ?

landed as fcd6b3e

should be add support for $translate.instant ?

@gsaandy Please don't comment on very long, closed tickets. In case this feature doesn't work on instant, please open a new ticket within the system. Thanks.

@knalli were the docs ever updated for this? wanted to reference this for my team.

See here #1427 (Contribution welcome) :)


Potential typo?

<ScrollContainer snap="mandatory">
  <ScrollPage>
    <Animator animation={batch(Fade(), Sticky(), MoveOut(0, -200))}>
      <MediumText>Let't me show you scroll animation 😀</MediumText>
    </Animator>
  </ScrollPage>
<ScrollContainer>

This snippet was copied from the markup example here
Should the last <ScrollContainer> tag be </ScrollContainer> instead?

Oh, it's my mistake.
Thanks for letting me know. I'll fix it


Any chance of making this script work for ubuntu 16.04?

Any chance of making this script work for ubuntu 16.04?

[this] (https://github.com/Nyr/openvpn-install) worked well for me


Can't open popup to login Facebook from third party website.

I can't login to Facebook from third party website that use Facebook comment plugin. The website is https://m.manganelo.com/genre-4
Also doesn't work with disqus comment.
https://www.foxaholic.com/novel/i-became-the-strongest-with-the-failure-frame【abnormal-state-skill】as-i-devastated-everything/
I already enable popup in site setting and disable all extensions. In Chrome even with popup blocked in site setting, it still could open a new window to login. It's opened in tab group.
What do?

Fixed @ https://github.com/kiwibrowser/src.next/commit/782591a0d06547c52448795b2156b0140e5ed238
It will come with the upcoming (next) build
It's not ideal fix at all, as it's a relatively large whitelist but it should work for now (and based on the complains later, we can figure out if an heuristic is needed)

Wasn't it kinda bad to have a hard-coded such common words? Some malicious ads popup can use these words as domain name.

It is wide but I doubt an advertisement named facebooknetwork.de ou googleofficial.nz doing popup ads would survive long on the internet because of the Certificate Transparency alerts that the companies have.
Seems better than a false positively blocked window

Even when the chance is low there's still possibility. Maybe change the keyword to something more definite like facebook.\w+$


Java 6.1: If-else blocks

Description
Add audio, documentation, and video regarding the If - else blocks.

Location of File to be added
The files should be added inside the If - else blocks  folder which is inside the Control Statements  folder present in the   Java  main folder.  The documentation file can be in the .md/.py/.ipynb format. Audio should be in .mp3 format and to be submitted through a Google drive link. Video can be in any format and should be submitted through a Google Drive link.
Note:

You are required to comment with \assign CONTENT_TYPE, so that other content types can be created at the same time.
Failing to comment in the above manner will lead to the removal of assignment from the issue even if the bot assigns.
You are required to do a PR within 7 days otherwise you will be unassigned and others will be assigned.
Issues will be assigned on a first come first serve basis.

Domain
Java_Domain
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

\assign Documentation

\assign Documentation

\assign document

/assign documentation

I would like to contribute to this via documentation @AkMo3

@pragatikesarwani38 Documentation content has already been assigned. Only audio and video is available.

@RahulJaiswal-18 You have been assigned documentation for this issue.

\assign Audio
I would like to contribute to this via audio @AkMo3

@Khushi-Agrawal-1 go with the audio

\assign video

/assign documentation @AkMo3

\assign Document

\assign video

@AkMo3 I'm little confused as to what to do with my Google Drive link. I'm contributing with audio but I have also made a markdown file just for reference purpose so am I suppose to put the link in it

@garvitraj I'm little confused as to what to do with my Google Drive link. I'm contributing with audio but I have also made a markdown file just for reference purpose so am I suppose to put the link in it ?

@garvitraj I'm little confused as to what to do with my Google Drive link. I'm contributing with audio but I have also made a markdown file just for reference purpose so am I suppose to put the link in it ?

Yes. Please see https://github.com/girlscript/winter-of-contributing/pull/3157/files for reference

Hey @AkMo3 can you please merge the PR as I'm not able to generate PR for another issue under Java. Thankyou


showing popover on disabled checkbox

I want to show nspopover on checkbox only when checkbox is disabled (with ng-disabled). Is this possible?

@janigorse
Not within nsPopover's current logic, unfortunately. But Angular's plethora of options and control should allow you to accomplish that pretty easy. I can think of ng-if, for starters, to come to an aid.


Which version of Apollo of this patched one?

Hi,
Is this following patched apollo version 7?
# Using SSH
git clone --branch guardstrike/apollo_carla_bridge git@github.com:guardstrikelab/apollo.git

#Using HTTPS
git clone --branch guardstrike/apollo_carla_bridge https://github.com/guardstrikelab/apollo.git

Thanks!

Hi,
Is this following patched apollo version 7?
# Using SSH
git clone --branch guardstrike/apollo_carla_bridge git@github.com:guardstrikelab/apollo.git

#Using HTTPS
git clone --branch guardstrike/apollo_carla_bridge https://github.com/guardstrikelab/apollo.git

Thanks!

Here are two ways to pull the code through ssh or https, the effect is the same.

@yellinshadows We made modifications to a version between 7.0 and 8.0，and we are planning to upgrade to 8.0.

@WilliaJing Could you guide me how to reproduce the original apollo repo to integrate with carla 0.9.14?

@datvuthanh you can try directly pulling the latest official code from Apollo
and not
git clone --branch guardstrike/apollo_carla_bridge git@github.com:guardstrikelab/apollo.git

Hi @WilliaJing , thank you for your help. Do you use LGSVL Simulator? I want to build Full Self Driving Car System on Carla but concerning about carla support.

I haven't used LGSVL Simulator,it has stoped update,so I am trying to use carla.

It looks like this issue hasn’t been active in longer than a few weeks. In the absence of more information, we will close it, If you find that this is still a problem, please feel free to reopen it.


When will we be able to create and send assets?

When will we be able to create and send assets from the wallet-server?

cardano-wallet server can send assets but it doesn't yet have a minting function. You can mint assets with cardano-cli.

Ok great, but it's not documented in the API docs. Could somebody please update that?
https://input-output-hk.github.io/cardano-wallet/api/edge/

Perhaps we can make the docs more clear, thanks for pointing that out.
Assets are treated more or less the same as ada, and appear wherever there are ada amounts.
So you can add assets to the payment field of postTransaction, and you can see them in the wallet balance..

Thanks for addressing my concerns. I appreciate your help.


Convert line breaks to \n and strip line break from the end of string returned by OS::read_string_from_stdin/OS::get_stdin_string.

Replaces \r\n with \n (can be in the middle of the string is pipe/redirection is used).
Strips line breaks from the end of the string.

Fixes https://github.com/godotengine/godot/issues/80136

Does it also mean that the original reported issue should be considered a bug?

Thanks!


Function SelectUniqueValue not working

I'm trying to use the function of SelectUniqueValue to create unique Display Names and Conical Names during the provisioning from Workday to Active Directory. We use the users Employee ID for their Universal Principal Name (UPN).  E.g<EMAIL_ADDRESS>This is not working though.  Does this function only work for UPN creation?
Here is the Expression I'm using:
SelectUniqueValue(NormalizeDiacritics(Join(", ", [PreferredLastName], [PreferredFirstName])), Join(" ", NormalizeDiacritics(Join(", ", [PreferredLastName], [PreferredFirstName])), Append(Mid([MiddleName], 1, 1), ".")), Join(" ", NormalizeDiacritics(Join(", ", [PreferredLastName], [PreferredFirstName])), Append(Mid([MiddleName], 1, 2), ".")), Join(" ", NormalizeDiacritics(Join(", ", Append([PreferredLastName], "3"), [PreferredFirstName]))))
Any help would be greatly appreciated.
Thanks.

@steele6599
Please help with the link of document on which above document feedback request is created.
In case your query in not related to document content, open a new forum thread in MSDN forum or Stack Overflow as it could be better place to get help on your scenario. These forum community members could provide their expert guidance on your scenario based on their experience. Thanks.

https://docs.microsoft.com/en-us/azure/active-directory/cloud-provisioning/reference-expressions?source=docs#feedback

There you go, thanks.

Closing this issue as there is already a duplicate issue : https://github.com/MicrosoftDocs/azure-docs/issues/47786


not working in blender 3.2

I have tried 0.0.2 and 0.0.3. Both work fine in blender 3.1

In blender 3.2 they changed the gltf exporter again so the add-on doesn't add material variants anymore:

Blender3.2.zip

ok so it took me an hour but all I have to add was a 1 ;)

They changed their function calls again in the exporter ... (why not add it as deprecated so it wont just crash ?)
The gltf2_blender_gather_materials.py / gather_material function now want's an active uv index that it passes to the get_material_cache_key function. That's the positional arg that's missing.

Thanks for the information. I will update the add-on hopefully soon.

Blender 3.3 already has this plugin built in


Addons not loading

I have the most up to date addon manager. I have deleted and redownloaded my addons. when I get into game nothing loads.
gw2al_log says:
[INFO] core | Addon loader v1.0 (v1.1 r33) initialized
[INFO] core | Loading addons from "./addons" path
[INFO] core | Loading arcdps
[INFO] core | Loaded d3d9_wrapper v2.0 r21
[INFO] core | Loaded arcdps v1.0 r480
[INFO] core | Loading d3d9_wrapper
[INFO] core | Loading gw2radial
[INFO] core | Loaded gw2radial v2.2 r1
[INFO] core | Done loading addons
[INFO] d3d9_wrapper | Loading system dxgi
[[INFO] core | Unloading core addon
[INFO] core | Unloaded
r addon is not working, make sure you handle this situation!
[INFO] d3d9_wrapper | Loading system dxgi

I have the same issue. I tried a clean addon install but that didn't work either.
If I download arcdps from the official source and place it in the gw2 map at least arcdps works, but none of the extensions.

.... or the other way round. You should have that file in both locations

I have the same issue. I tried a clean addon install but that didn't work either.
If I download arcdps from the official source and place it in the gw2 map at least arcdps works, but none of the extensions.
edit: Ok I got them working again, I got this from the elite insights discord (arcdps) https://discord.com/channels/456611641526845473/1098002444232957962:

copy  dxgi.dll from bin64/cef into the root Guild Wars 2/ folder

Cheers. I could see the dxgi library was missing but I wasn't sure where to copy it from.

This fixed my problems Thanks guys!


Extend output of command "cf org-users" with origin of the user

Please provide details on the following items. Failure to do so may result in deletion of your feature request.
The UAA allows the existence of the very same username in multiple origins (e.g. uaa, ldap, someSamlProvider, someOidcProvider). The command "cf org-users" list the usernames of the users that have some org roles assigned (ORG MANAGER, BILLING MANAGER or ORG AUDITOR). If an username exists in multiple origins (e.g. uaa and ldap) it is not clear which user actually has the corresponding role assigned. It could be either the user with origin ldap or the one with origin uaa. The request is to extend the output of the command by the origin of the user, e.g. "myuser (uaa)".
What's the user value of this feature request?
The value is that the output of both, username and origin, identifies the user uniquely. This is currently not the case as only the username is provided.
Who is the functionality for?
Everybody who uses the command "cf org-users" and more than one origin for users.
How often will this functionality be used by the user?
Every time a user executes "cf org-users".
Who else is affected by the change?
No breaking change.
Is your feature request related to a problem? Please describe.
Yes, the problem that a user cannot identified uniquely by the output of command "cf org-users".
Describe the solution you'd like
The output of the command "cf org-users" may look as follows (as an example):
Getting users in org myorg as myuser...

ORG MANAGER
  somemanageruser (uaa)

BILLING MANAGER
  No BILLING MANAGER found

ORG AUDITOR
  someauditoruser (ldap)

Note that the username "myuser" in the first line can stay as it is as the user knowns with which origin he logged in.
Describe alternatives you've considered
There are no alternatives that I am aware of. If a user is listed by the command "cf org-users" you may try to assign him the same role again. If this does not work, he probably has the role already. But even such approaches do only work if the username is only listed once.

Proposed workflow for adding this feature: https://docs.google.com/document/d/1wFXhxkh0a5UttNnPcx37o7ByAczGciCVJqVZ2D2lJGg/edit


Nit picks / Bugs

Module should have a cplxmodule.__version__ defined.
In your setup.py set the version=version and use this up top somewhere. This might look dirty but believe me it's the best way. We use this for gnuradio/sigmf and other projects:

import os

with open(os.path.join('cplxmodule', '__init__.py')) as derp:
    version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', derp.read()).group(1)

I'm fairly certain that this line should be changed to allow passing a tuple of padding parameters like (5,7,) or whatever to padding:

self.stride[0], self.padding[0], self.dilation[0], # from this
self.stride, self.padding, self.dilation, # to this

Due to the way that you are using relative imports (correctly) this project is compatible with Python 3.7+ and NOT prior versions. You can add an indicator for this in the setup. This was actually a bug related to your pip package reporting the same version as the version installed from git, but they were different and had different submodules. More reason to properly version.

I probably have a PR for you for a different feature, but I have to get it approved for release first.

@Teque5 Thank you for using the package and your issue!
1, 4. This was a gross oversight on my part.  Thank you for pointing this out!
2. Thank you for the snippet! I decided to use a slightly different approach in setup.py: it creates a __version__.py during install.
3. The 1d convolution is supposed to take tuple singletons or ints, however I cannot recall any solid reason to hide exceptions related to bad argument values from the user.
I am going to ship these fixes soon bundled with minor updates to more modern pytorch version >=1.8.

#25 has been merged and the update has been released on pypi.


Error on docker compose up

Hello!
First of all, awesome project! Thank you!
I am running this on Ubuntu 22.04.
I have created an .env file inside the "api" directory with this configuration

And then I entered inside the "api" folder, and tried to run "docker compose up", and got these errors:
$ sudo docker compose up
[+] Running 2/0
 ⠿ Container bricky-app-1  Created                                                                                0.0s
 ⠿ Container bricky-api-1  Created                                                                                0.0s
Attaching to bricky-api-1, bricky-app-1
bricky-app-1  |
bricky-app-1  | ><EMAIL_ADDRESS>start
bricky-app-1  | > next start
bricky-app-1  |
bricky-app-1  | ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
bricky-api-1  | INFO:haystack.telemetry:Telemetry has been disabled.
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'File` with input: {'root_node': 'File', 'params': None, 'node_id': 'File'}
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'MarkdownConverter` with input: {'root_node': 'File', 'params': {}, 'node_id': 'MarkdownConverter'}
bricky-api-1  | DEBUG:haystack.pipelines.base:Exception while running node 'MarkdownConverter' with input {'root_node': 'File', 'params': {}, 'node_id': 'MarkdownConverter'}
bricky-api-1  | Traceback (most recent call last):
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/pipelines/base.py", line 530, in run
bricky-api-1  |     node_output, stream_id = self._run_node(node_id, node_input)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/pipelines/base.py", line 457, in _run_node
bricky-api-1  |     return self.graph.nodes[node_id]["component"]._dispatch_run(**node_input)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/nodes/base.py", line 201, in _dispatch_run
bricky-api-1  |     return self._dispatch_run_general(self.run, **kwargs)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/nodes/base.py", line 245, in _dispatch_run_general
bricky-api-1  |     output, stream = run_method(**run_inputs, **run_params)
bricky-api-1  | TypeError: BaseConverter.run() missing 1 required positional argument: 'file_paths'
bricky-api-1  |
bricky-api-1  | The above exception was the direct cause of the following exception:
bricky-api-1  |
bricky-api-1  | Traceback (most recent call last):
bricky-api-1  |   File "/opt/venv/bin/uvicorn", line 8, in <module>
bricky-api-1  |     sys.exit(main())
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
bricky-api-1  |     return self.main(*args, **kwargs)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
bricky-api-1  |     rv = self.invoke(ctx)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
bricky-api-1  |     return ctx.invoke(self.callback, **ctx.params)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
bricky-api-1  |     return __callback(*args, **kwargs)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/main.py", line 404, in main
bricky-api-1  |     run(
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
bricky-api-1  |     server.run()
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
bricky-api-1  |     return asyncio.run(self.serve(sockets=sockets))
bricky-api-1  |   File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
bricky-api-1  |     return loop.run_until_complete(main)
bricky-api-1  |   File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
bricky-api-1  |     return future.result()
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 67, in serve
bricky-api-1  |     config.load()
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/config.py", line 477, in load
bricky-api-1  |     self.loaded_app = import_from_string(self.app)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
bricky-api-1  |     module = importlib.import_module(module_str)
bricky-api-1  |   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
bricky-api-1  |     return _bootstrap._gcd_import(name[level:], package, level)
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
bricky-api-1  |   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
bricky-api-1  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
bricky-api-1  |   File "/home/appuser/./main.py", line 28, in <module>
bricky-api-1  |     index_pipe.ensure_index()
bricky-api-1  |   File "/home/appuser/./pipelines/indexing.py", line 57, in ensure_index
bricky-api-1  |     self.pipeline.run(file_paths=files_to_index)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/haystack/pipelines/base.py", line 535, in run
bricky-api-1  |     raise Exception(
bricky-api-1  | Exception: Exception while running node 'MarkdownConverter': BaseConverter.run() missing 1 required positional argument: 'file_paths'
bricky-api-1  | Enable debug logging to see the data that was passed when the pipeline failed.
bricky-api-1 exited with code 1

I can access localhost:3000, but I get this error when I do:
bricky-app-1  | Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
bricky-app-1  | Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
bricky-app-1  | TypeError: fetch failed
bricky-app-1  |     at Object.fetch (node:internal/deps/undici/undici:14152:11)
bricky-app-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
bricky-app-1  |     at async __WEBPACK_DEFAULT_EXPORT__ (/app/.next/server/pages/api/chat.js:16:22)
bricky-app-1  |     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:363:9)
bricky-app-1  |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:487:9)
bricky-app-1  |     at async Object.fn (/app/node_modules/next/dist/server/next-server.js:749:37)
bricky-app-1  |     at async Router.execute (/app/node_modules/next/dist/server/router.js:253:36)
bricky-app-1  |     at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:384:29)
bricky-app-1  |     at async NextNodeServer.handleRequest (/app/node_modules/next/dist/server/base-server.js:322:20) {
bricky-app-1  |   cause: Error: getaddrinfo EAI_AGAIN api
bricky-app-1  |       at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
bricky-app-1  |     errno: -3001,
bricky-app-1  |     code: 'EAI_AGAIN',
bricky-app-1  |     syscall: 'getaddrinfo',
bricky-app-1  |     hostname: 'api'
bricky-app-1  |   }
bricky-app-1  | }

I can't access localhost:8000/docs
Am I doing something wrong?
Thanks!

I have a doubt, in my doc dir I can put what kind of files?

Hi @gabazureus - thank you for checking my project out 😄
I managed to reproduce your error. It occurs because no files were found to index (in the doc_dir).
I've implemented a fix for this, so you now should get a nice error instead of a crash.
The code picks up any .md files in the doc_dir path, you can see how in the indexing pipeline: https://github.com/larsbaunwall/bricky/blob/8437ec2676ef9e73aa0c1520d0e9fef1a7f23b26/api/pipelines/indexing.py#L53
Also note that the files need to be visible to the docker container, either by copying them into a local project folder that gets copied on build, or by mounting a volume.
A quick start could be to put your markdown files in the api/sources folder and configure the DOC_DIR to point to sources

Hey @larsbaunwall
Thanks for the reply!
I tried to put a .md file inside the api/sources, and specified it in DOC_DIR in .env file. But the same error persisted.
So I tried to delete all the content of the files main.py, openai.py and indexing.py.
And then tried this commands:
sudo docker system prune
systemctl restart docker.service
sudo docker compose down
sudo docker compose up -d

And then the same error persist, even with these files without any line.
Before that I put many prints inside indexing.py and main.py, and none of them printed in the log. I tried commenting out this line as well "disable_telemetry()" in main.py, to see if the following line in the log disappears: "INFO:haystack.telemetry:Telemetry has been disabled.". But it showed up anyway.
I don't know if I am doing something wrong with docker, because I am new with it.
Thanks!

Hi @gabriel0xdef
From your description, I'm wondering if your docker-compose is using recent images. Deleting contents in those files should give you a whole range of other errors 😉
Have you tried running docker-compose up --build in the repo root? The --build flag forces the images to be rebuilt.

Oh yes! This command made it. Thanks!
Now I can open localhost:8080/docs
and every of my prints appeared when I run sudo docker compose up --build, and got no error in the starting process.
But when I ask a question, for example "What is the capital of Brazil?", I get this error:
bricky-app-1  | Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
bricky-app-1  | Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'Query` with input: {'root_node': 'Query', 'params': {'Generator': {'top_k': 1}, 'Retriever': {'top_k': 5}}, 'query': 'What is the capital of Brazil?', 'node_id': 'Query'}
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'Retriever` with input: {'root_node': 'Query', 'params': {'Generator': {'top_k': 1}, 'Retriever': {'top_k': 5}}, 'query': 'What is the capital of Brazil?', 'node_id': 'Retriever'}
bricky-api-1  | ola   **<---- my print**
bricky-api-1  | tchau   **<---- my print**
bricky-api-1  | ola2   **<---- my print**
bricky-api-1  | adding nodes...   **<---- my print**
bricky-api-1  | adding markdownconverter...   **<---- my print**
bricky-api-1  | adding preprocessor...   **<---- my print**
bricky-api-1  | indexing files...
bricky-api-1  | No files found to index at path /api/sources
bricky-api-1  | Source context will be empty
bricky-api-1  | ola3   **<---- my print**
bricky-api-1  | ola4   **<---- my print**
bricky-api-1  | ola5   **<---- my print**
Calculating embeddings: 100%|██████████| 1/1 [00:01<00:00,  1.31s/it]
bricky-api-1  | DEBUG:haystack.nodes.retriever.base:Retrieved documents with IDs: []
bricky-api-1  | DEBUG:haystack.pipelines.base:Running node 'Generator` with input: {'documents': [], 'root_node': 'Query', 'params': {'Generator': {'top_k': 1}, 'Retriever': {'top_k': 5}}, 'query': 'What is the capital of Brazil?', 'node_id': 'Generator'}
**print(res) ------>** bricky-api-1  | {'answers': [], 'documents': [], 'root_node': 'Query', 'params': {'Generator': {'top_k': 1}, 'Retriever': {'top_k': 5}}, 'query': 'What is the capital of Brazil?', 'node_id': 'Generator'}   **<---- print(res)**
bricky-api-1  | INFO:     <IP_ADDRESS>:44522 - "POST /ask HTTP/1.1" 500 Internal Server Error
bricky-api-1  | ERROR:    Exception in ASGI application
bricky-api-1  | Traceback (most recent call last):
bricky-api-1  |   File "/home/appuser/./main.py", line 58, in ask
bricky-api-1  |     answer = res["answers"][0].answer
bricky-api-1  | IndexError: list index out of range
bricky-api-1  |
bricky-api-1  | During handling of the above exception, another exception occurred:
bricky-api-1  |
bricky-api-1  | Traceback (most recent call last):
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
bricky-api-1  |     result = await app(  # type: ignore[func-returns-value]
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
bricky-api-1  |     return await self.app(scope, receive, send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/fastapi/applications.py", line 270, in __call__
bricky-api-1  |     await super().__call__(scope, receive, send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
bricky-api-1  |     await self.middleware_stack(scope, receive, send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
bricky-api-1  |     raise exc
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
bricky-api-1  |     await self.app(scope, receive, _send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
bricky-api-1  |     raise exc
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
bricky-api-1  |     await self.app(scope, receive, sender)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
bricky-api-1  |     raise e
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
bricky-api-1  |     await self.app(scope, receive, send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 706, in __call__
bricky-api-1  |     await route.handle(scope, receive, send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
bricky-api-1  |     await self.app(scope, receive, send)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
bricky-api-1  |     response = await func(request)
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
bricky-api-1  |     raw_response = await run_endpoint_function(
bricky-api-1  |   File "/opt/venv/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
bricky-api-1  |     return await dependant.call(**values)
bricky-api-1  |   File "/home/appuser/./main.py", line 62, in ask
bricky-api-1  |     return self.ResponseModel(error=e.message)
bricky-api-1  | AttributeError: 'IndexError' object has no attribute 'message'
bricky-app-1  | SyntaxError: Unexpected token I in JSON at position 0
bricky-app-1  |     at JSON.parse (<anonymous>)
bricky-app-1  |     at packageData (node:internal/deps/undici/undici:6403:23)
bricky-app-1  |     at specConsumeBody (node:internal/deps/undici/undici:6381:14)
bricky-app-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
bricky-app-1  |     at async __WEBPACK_DEFAULT_EXPORT__ (/app/.next/server/pages/api/chat.js:26:18)
bricky-app-1  |     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:363:9)
bricky-app-1  |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:487:9)
bricky-app-1  |     at async Object.fn (/app/node_modules/next/dist/server/next-server.js:749:37)
bricky-app-1  |     at async Router.execute (/app/node_modules/next/dist/server/router.js:253:36)
bricky-app-1  |     at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:384:29)

I used a markdown file inside my api/sources with this content:
'''Brazil''' (; ), officially the '''Federative Republic of Brazil''' (Portuguese: ), is the largest country in both South America and Latin America. At  and with over 211 million people, Brazil is the world's fifth-largest country by area and the sixth most populous. Its capital is Brasília, and its most populous city is São Paulo. The federation is composed of the union of the 26 states and the Federal District. It is the largest country to have Portuguese as an official language and the only one in the Americas; it is also one of the most multicultural and ethnically diverse nations, due to over a century of mass immigration from around the world; as well as the most populous Roman Catholic-majority country.

It is possible to answer this question with the text, right?

Oh yes! This command made it. Thanks!
Now I can open localhost:8080/docs
and every of my prints appeared when I run sudo docker compose up --build, and got no error in the starting process.
But when I asked a question, I got these errors:
bricky-api-1  | No files found to index at path /api/sources
bricky-api-1  | Source context will be empty
I tried "/api/sources" or "api/sources", and it give me the same.
Then I tired only "sources" and it worked!
Simply awesome!!
A doubt, is it possible to change the default language to read the DOCs contents, and the answer of Bricky to Portuguese?
If yes, what do I can change in the code?
Thank you, I would like to help you more If I can.


No Method Error - Invalidated Feedback

When visiting the invalidated feedback page with a ?page parameter, like the one added by the pagination buttons at the bottom, I get the following error message:

NoMethodError in Admin#recently_invalidated

This link should present the error in question. You should also be able to trigger this error when clicking on any of the pagination links at the bottom of the invalidated feedback page.

@Undo1 Possible that this is related to Yvette's deleted account? This is caused by the feedback still having a user_id, but that user_id not matching an actual user since Yvette is gone.

@thesecretmaster Could we change it to f.user&.name to handle null users?

@Undo1 f.user_name could be present even if f.user is nil.

@j-f1 As it is, in this case. But I think we wanted to fully remove Yvette from our system (GRPR?), so maybe in the future feedbacks should be anonymized.

Yeah. I don't know if there's an actual anonymization process that exists, but if there is, it shouldn't fully nuke the user, just remove email+password+refrences to name scattered around, like feedback user_name and leave the user record, to avoid breaking stuff like this.

Anonymisation policy is "either you give us the info we need or you don't have an account"; see /privacy on metasmoke.

@ArtOfCode- But "you don't have an account... but we store your name" is an edge case which exists here.

@thesecretmaster Because chat exists, and not all chat users have metasmoke accounts.

Ok. Well, anyways, things to do to solve the problem. @Undo1 Can you confirm that on the prod DB, there are feedbacks with user_name and a user_id that pointed to a non-existant user? If so, can you set user_id to null?

Fix deployed. @Undo1 could still do some majik fixing in the database, but the issue is resolved.


router: moving upstream to a new file

Risk Level: Low (moving classes around)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a
Cleanup for #1630

Next steps are splitting upstream into HTTP and TCP classes like over in #10162 but I'd prefer to move it to its own file first.
@mattklein123 you're done with your massive refactors enough this won't be a PITA for you right?

This is no problem for me but looks like you need a format fix?
/wait


100% unit test coverage

Postponed until #43 is done.

Implemented basic Class, Pipe and Service unit tests.
Unfortunately there isn't much documentation around flushing a mocked HTTP request. I'll come back to this later on.


Manage button is not a button

Bug Report Dump (Auto-generated)

Version 1.15.0<PHONE_NUMBER>)
Device: iPad7,3 (iOS 11.1.2)
TestFlight: true

?

Guess @BasThomas saying its not a button in terms of Accessibility


Created a Gradio UI

Hi everyone,
I created a Gradio user interface to generate the mvc .yaml files.
I am very new to programming so have merci. Nonetheless, I believe it is quite useful tool, since it maintains the integrity of the original folder structure.
You basically just have to run the shell script and open the localhost link.
To utilize this tool, follow these simple steps:

Input the directory path to your AnimatedDrawings folder.
Specify your desired output directory for the generated .yaml file.
Click the "Refresh" button to populate the drop-down menus for Character, Motion, and Target. This action will populate these fields based on the folder names in the .../AnimatedDrawings/examples/characters directory for Characters, filenames in the .../AnimatedDrawings/config/motion directory for Motion, and filenames in the .../AnimatedDrawings/config/retarget directory for Target.
Next, select your preferred export option - file only, video, or GIF. Choosing MP4 will present a preview directly in the Gradio interface.
Finally, click "Export" to generate and export your MVC .yaml files.

I hope you have fun and an easier time using it. The next step will be the docker thing, but I have no idea how dockers work, so I will look into it. :D
I've submitted a pull request for this tool, but as this is my first attempt, I welcome any feedback or assistance. Meanwhile, feel free to explore the repository I've set up: https://github.com/vensu-art/AnimatedDrawingsGradio.
Have a nice day!

Hello @vensu-art,
Thank you for taking the time to make the project better :). If you wouldn't mind, can you add some tests to your code? Nothing complicated, but something to ensure that the configuration files it outputs are valid. This will be necessary to have before it is merged into main.
I recommend using pytest.

Sure! I will figure out how to do it, can't be that hard I guess :D
Thank you for the quick response @hjessmith

It'll be a valuable learning experience. Holler if you get stuck.

"I am having trouble writing. Could you please help me
/home/cv/.conda/envs/animated_drawings/lib/python3.8/site-packages/glfw/init.py:912: GLFWError: (65544) b'X11: Failed to open display localhost:13.0'
warnings.warn(message, GLFWError)
/home/cv/.conda/envs/animated_drawings/lib/python3.8/site-packages/glfw/init.py:912: GLFWError: (65537) b'The GLFW library is not initialized'
warnings.warn(message, GLFWError)
Traceback (most recent call last):
File "", line 3, in
File "/data/cv/aoyang/AnimatedDrawingsGradio/animated_drawings/render.py", line 17, in start
view = View.create_view(cfg.view)
File "/data/cv/aoyang/AnimatedDrawingsGradio/animated_drawings/view/view.py", line 47, in create_view
return WindowView(view_cfg)
File "/data/cv/aoyang/AnimatedDrawingsGradio/animated_drawings/view/window_view.py", line 34, in init
self._create_window(*cfg.window_dimensions)  # pyright: ignore[reportGeneralTypeIssues]
File "/data/cv/aoyang/AnimatedDrawingsGradio/animated_drawings/view/window_view.py", line 126, in _create_window
logging.info(f'OpenGL Version: {GL.glGetString(GL.GL_VERSION).decode()}')  # pyright: ignore[reportGeneralTypeIssues]
AttributeError: 'NoneType' object has no attribute 'decode'

I am currently not at home, but can you give me a little bit more information on when the error occurred?
Does the repository work without using the Gradio UI by just following the commands mentioned in the readme?
If it only happen when you use the Gradio UI, does it happen when you start the shell script or after you select the characters, motion, etc and start rendering it out?


⚠ Bofrost.lu has degraded performance

In f63b57e, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1364 ms

Resolved: Bofrost.lu performance has improved in fd5dcff after 16 minutes.


Cilium continues to serve stale IPs from existing allocated ENIs after updating AWS subnets

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
We have cilium v0.15.3 installed with argocd/helm in our clusters in IPAM ENI mode, with no tunneling (native routing) configured. We set the subnets and configure the ENI parameters with a configmap:
    {
      "cniVersion":"0.3.1",
      "name":"cilium",
      "plugins": [
        {
          "cniVersion": "0.3.1",
          "type": "cilium-cni",
          "eni": {
            "first-interface-index": 1,
            "subnet-tags": {
              "network-zone": "qa",
              "kubernetes.io/cluster/awscmhdev4": "shared"
            }
          },
          "ipam": {
            "pre-allocate": "2",
            "min-allocate": "0",
            "max-above-watermark": "0"
          }
        }
      ]
    }

We have cilium choosing from 3 subnets in us-east-2, one per AZ. Because we share the subnet range with several clusters, we recently created a set of larger subnets in the same VPC, with identical routing configurations as cilium's current pod subnets, and also tagged them with the same set of subnet tags for cilium. We then untagged the previous subnets, but left their configuration otherwise unchanged.
Cilium detected these subnets immediately from the metrics we have, but on existing nodes, would continue to give new pods IPs from the existing old subnet ranges. The behavior seemed to continue as long as the node's ENI's still had free IPs. New nodes in the cluster served the new subnet ranges to pods as expected. Is this the expected behavior? Should cluster operators expect to have to recycle all the nodes to force Cilium to serve IPs from the new subnets? Should Cilium stop serving the old subnets immediately? It's unclear from the docs what behavior is correct.
Cilium Version
v0.15.3
Kernel Version
5.10.214-202.855.amzn2.x86_64
Kubernetes Version
Server Version: version.Info{Major:"1", Minor:"27+", GitVersion:"v1.27.11-eks-b9c9ed7", GitCommit:"f19f83c16ca534237fbfb65bc580d51752b98c91", GitTreeState:"clean", BuildDate:"2024-03-02T03:46:53Z", GoVersion:"go1.21.7", Compiler:"gc", Platform:"linux/amd64"}
Regression
No response
Sysdump
No response
Relevant log output
No response
Anything else?
No response
Cilium Users Document

[ ] Are you a user of Cilium? Please add yourself to the Users doc

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thanks for this issue @cnmcavoy, I've marked it for the attention of the relevant team.


[Fix] Fix init in LibrispeechLmConfig

Summary
Fix #1219

Thanks for this! Has the HuggingFace datasets library changed recently, is that what causes this? In that case, should we specify some version here: https://github.com/speechbrain/speechbrain/blob/062a17f32c6d67391e73be97b926ec3da3b12a6c/recipes/LibriSpeech/LM/extra_requirements.txt

turns out this approach will still encounter another problem:
raceback (most recent call last):
    File "train.py", line 185, in <module>
        train_data, valid_data, test_data = dataio_prepare(hparams)
      File "train.py", line 115, in dataio_prepare
      datasets = load_dataset(
    File "/home/jamfly/miniconda3/envs/sb/lib/python3.8/site-packages/datasets/load.py", line 1694, in load_dataset
      builder_instance.download_and_prepare(
    File "/home/jamfly/miniconda3/envs/sb/lib/python3.8/site-packages/datasets/builder.py", line 595, in download_and_prepare
      self._download_and_prepare(
    File "/home/jamfly/miniconda3/envs/sb/lib/python3.8/site-packages/datasets/builder.py", line 683, in _download_and_prepare
        self._prepare_split(split_generator, **prepare_split_kwargs)
    File "/home/jamfly/miniconda3/envs/sb/lib/python3.8/site-packages/datasets/builder.py", line 1085, in _prepare_split
      num_examples, num_bytes = writer.finalize()
    File "/home/jamfly/miniconda3/envs/sb/lib/python3.8/site-packages/datasets/arrow_writer.py", line 484, in finalize
      self.check_duplicate_keys()
    File "/home/jamfly/miniconda3/envs/sb/lib/python3.8/site-packages/datasets/arrow_writer.py", line 420, in check_duplicate_keys
      raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
  Found duplicate Key: 0
  Keys should be unique and deterministic in nature

Hi @Gastron,
After some code tracing, I found that it might be the issue when hugging face update their codebase from 1.6.2 to 1.7.0. However, current version is 1.17.0. I think at this time, we can specifically indicate the version of datasets. But we still need to find the real cause in the future.
So, I will only set datasets' version to 1.6.2 as the workaround.

Well, more broadly speaking @mravanelli I don't understand why we depend on HuggingFace dataset libs here. This introduces a datasets.py script that seems to be the source of the error and will always be as it couples the recipes with future version of HuggingFace dataset ... :-(

This really looks like something that MUST be converted to webdataset ... Aku, any chance that you could have the time to look at it ? I could retrain the LM entirely If we are able to switch this to webdataset.

I think @JianyuanZhong preferred to use the HF dataset here for some reasons. As far as I remember, it was very fast and already set up to work on large text corpora. The standard datasets in speechbrain expects a JSON or a CSV files, while here you might want to train on the big text corpus directly

Yes, this is why I think Webdataset should be preferred :-/ Or we should revise so it fits to the latest datasets version (1.17 and not 1.6 :/)

Right, if we are able to remove one extra-dependency I think it is much
better for maintainability.
On Mon, 3 Jan 2022 at 12:42, Parcollet Titouan @.***>
wrote:

Yes, this is why I think Webdataset should be preferred :-/ Or we should
revise so it fits to the latest datasets version (1.17 and not 1.6 :/)
—
Reply to this email directly, view it on GitHub
https://github.com/speechbrain/speechbrain/pull/1223#issuecomment-1004250517,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEA2ZVRKKOC7KPCK4DAVKKDUUHNZJANCNFSM5LFKLFGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I think WebDataset is not a good option for text. I think for text something as simple as a few text files as shards could work. Some simple IterableDataset implementation for that would be nice.

What should we do it here? @jamfly proposed a temporary fix that might work for now. Do you think we have to implement the bigger refactor discussed before in this PR or in another one?

Yeah I think we should merge this version specification change as this is just one recipe. Thanks to @jamfly for taking the time to investigate the bigger picture too!

Hi @mravanelli, @TParcollet I think the issue was that, the values used as keys weren't really unique (values can be duplicated between files(archive paths)) in the speechbrain implementation, and huggingface's dataset previous implementation wasn't checking that the keys were unique. They introduced the check in this new version, which is why we couldn't execute it anymore.
I just made sure that the keys are unique within a set with this small change, and it's working fine with the new version.
def _generate_examples(self, archive_path):
    """Yields examples."""
    key = 0
    for p in archive_path:
        with open(p, "r", encoding="utf-8") as f:
            for line in f:
                line = re.sub(
                    r"\d+-\d+-\d+\s", "", line
                )  # remove ids in transcripts
                text = line.strip()
                # Skip empty lines.
                # very long sentences (>1000 char) are removed to prevent OOM
                if text and len(text) < 1000:
                    yield key, {"text": text}
                    key +=1


updated PAT Token by including username

added username in the authentication

@jayendranarumugam : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off