feat(examples): add processing-yarnish.rs for simulating parallel build tasks

feat(examples): add processing-yarnish.rs for simulating parallel build tasks

Introduces processing-yarnish.rs in examples, leveraging threads for parallel task simulation.
Supports configurable parallel processes, highlighting a threshold-driven spawning mechanism.
Demonstrates structured HUD through incremental task loading and process completions.

I don't want to maintain more examples for niche use cases.

cd `mktemp -d`  && \
git clone https://github.com/console-rs/indicatif.git  && \
cd indicatif && \
git fetch origin pull/672/head:pr-672 && \
git checkout pr-672 && \
cargo run --example processing-yarnish

I don't want to maintain more examples for niche use cases.

Sure! I just thought it could be nice addition , educational example for potential users, that is just a slight variatation of yarnish.
When you take just a brief look at source, it's just variation of yarnish showing how to use it for continuous load.
Otherwise, if another educational example is too much , I absolutely understand,
and potentially interested people can always run snippet I provided above:
cd `mktemp -d`  && \
git clone https://github.com/console-rs/indicatif.git  && \
cd indicatif && \
git fetch origin pull/672/head:pr-672 && \
git checkout pr-672 && \
cargo run --example processing-yarnish

Basically example I provided was to illustrate yarnish but with usage of ::remove, when one wants to dynamically add and remove progress bars.
Therefore, if you don't have second thoughts about merging, please close this PR, and let potential users use code snippet I provided above to pull and run, if they will wish :).


fix(ci): fix windows argoexec release build

Fixes #13562
Motivation
The windows build in the release.yaml CI was broken by #13145, we need releases to work so this hack fixes it.
(CI should probably prove this is buildable rather than waiting for release to run.)
Modifications
In #13145 the dependencies for the binaries were fixed to be technically correct - as in the binaries depended upon the .go files that they were built from.
This had the side effect of causing pkg/apis/workflow/v1alpha1/openapi_generated.go to get rebuilt when building dist/argoexec. This is technically correct behaviour.
 This means that the Makefile step which trys to create a symlink fails with ln: failed to create symbolic link 'v3' -> '.': File name too long.
Attempting to enable LongPathsEnabled (What year is it?) doesn't help either inside or outside the container run.
So this PR runs the windows build with a hack reverting the dependencies when building the windows dist/argoexec only via a Makefile variable HACK_PKG_FILES_AS_PKGS.
I consider this "fine" as we don't directly support development on Windows, and the reverted behaviour there if anyone really wants to use it isn't that terrible (as in people lived with it for years before #13145 fixed it)
Verification
Verified here

This fails when building on windows because windows has stupid limitations. This means that the Makefile step which trys to create a symlink fails with ln: failed to create symbolic link 'v3' -> '.': File name too long.
Attempting to enable LongPathsEnabled (What year is it?) doesn't help either inside or outside the container run.

Hmm my read of the error message was that . is problematic or something, since v3 and . are both short and so it's just giving an incorrect error message on some fallthrough case. That would explain why LongPathsEnabled has no effect.
Unless it's one of the files inside the directory being too long and Windows recreates or links them all (or something) during a symlink?
To be fair, the symlinking part of the build is potentially one of the weirdest pieces and can be problematic in other ways (e.g. parallelized operations per https://github.com/argoproj/argo-workflows/pull/12583#issuecomment-1913944498). I've been meaning to sit down with it and see if it can be refactored out.

. resolves to /Users/<something>/go/src/github.com/argoproj/argo-workflows, and ln -s appears when run from git bash under windows to effectively be akin to a cp -a. The result doesn't even look like a symlink, and it doesn't seem to behave like mklink.
I chose this way of doing it as expedient rather than perhaps the best choice. Potentially windows could be detected and mklink could be invoked. Docker under windows in a VM doesn't work for me (nested VMs) right now to play with this in a sane way.

we don't directly support development on Windows

We do have contributors on Windows also, including Tianchu, per #12603. That issue also involves a symlink file in the codebase.
But yes I agree that reverting to the old behavior isn't that harmful

(CI should probably prove this is buildable rather than waiting for release to run.)

I was thinking about this too, this would require us to build the images for multiple architectures in CI, which will take more time (substantially so, the cross-compilation is quite slow). We could do that if we make the other steps not wait on it I suppose

This one is an easy parallel step, which will only slightly damage the number of server hamsters each build uses, so shouldn't impact too much.

The E2E tests depend on the image build, so the longest build of those will cause the longest delay. I pulled the numbers in https://github.com/argoproj/argo-workflows/issues/12449#issuecomment-2257604118 and it's an order of magnitude longer (~2min -> ~20min in best case).
That's why I said that if we wanted to do this, it would have to be a separate, non-dependent step.
But also there's a limit to the amount of parallelism GH allows per account/org, so the more we add, the more likely we are to hit that limit and cause things to become serial as a result. We do seem to already hit this occasionally if we have many simultaneous PRs or if CD is doing a release (the GH jobs will be pending for a while before starting).
Also not sure if you missed it, but I did leave one comment on this PR specifically


Improving SVG spinner animation

Hey  👋🏻
Your work always amazes me ❤
Recently, I noticed iconify does provide spinners https://icones.js.org/collection/svg-spinners
Then I thought I can use this in my component lib instead of my custom vue component, This will allow users to user any spinner they like for loading animation.
I tried it and found that it's animation isn't smooth (it looks like it pauses for fraction of the second) as my custom components, I don't know how SVG animation is implemented but do you think that can be improved further?
Difference:
https://user-images.githubusercontent.com/47495003/231944675-13ed6bed-24bd-4a15-a563-c2e2c00b4730.mov
I have added live demo in my docs temporary for more visible difference:
https://anu-vue.netlify.app/guide/components/loader.html

In browsers animation timers start only after DOM is loaded, so pause can happen during loading.
Solution is to use icon in CSS as background or mask (such as UnoCSS). Timers for animations in background/mask images are separate from main timers, so they start animating immediately, even if DOM is still loading.

Thanks for the response, I wasn't refering to initial pause I was refering to similar to 60fps behavior.
Have you checked the live demo? svg icon spinner animation looks like it pauses for fraction of the second after each time frame (I don't know much about animation glossary so I hope you understand what I'm trying to say). Whereas, vue component animation looks smooth.
Regards.

Oh, I see issue now, but only on video. Checked attached demo frame by frame, can see many frames where first icon is identical in 2 frames in a row, while bottom icon animates.
From what I've seen in various tests, CSS animations require much less CPU and render faster. In case of spinner, as far as I understand browser behaviour, icon is rendered only once, then cached and rotated, so circle doesn't need to be re-calculated on each frame.
Repeating SVG animations (such as spinners) require re-rendering icon on every frame, which requires way more CPU than simple CSS rotation, which could result in fps loss and high CPU usage.
I suggest to offer both options, with CSS animation as default behaviour. SVG animations are shiny, but simple rotation is performed much better with CSS.

Just to make sure we are on the same path, iconify SVG spinners uses SVG animations, Right?

I suggest to offer both options

Actually, I was going replace my custom spinner with iconify's spinner for wider options.
Have you checked the quasar's spinners: https://quasar.dev/vue-components/spinners#example--other-spinners

Yes, all those icons use SVG animations, including Quasar icons.

🤔  Quasar's animations still looks smooth, only issue I noticed is loaders get blurry when size is increased above 5em (maybe 80px).
Anyways, Should we close this or keep it open for future improvements?


[Implement-6481] [Task] Add sql task plugin jdbc dependency package

Purpose of the pull request
this pr close #6481

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

Merging #6482 (cc8a752) into dev (59daf3c) will increase coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev    #6482      +/-   ##
============================================
+ Coverage     38.64%   38.71%   +0.06%
- Complexity     3207     3212       +5
============================================
  Files           645      645
  Lines         25729    25729
  Branches       2786     2786
============================================
+ Hits           9943     9960      +17
+ Misses        14870    14852      -18
- Partials        916      917       +1

Impacted Files
Coverage Δ

...rver/master/processor/queue/TaskResponseEvent.java
100.00% <0.00%> (+6.45%)
:arrow_up:

...er/master/processor/queue/TaskResponseService.java
55.29% <0.00%> (+15.29%)
:arrow_up:

Continue to review full report at Codecov.

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

I'm not sure this approach is justified. @dailidong @lenboo PTAL


Format type filter gather files with wrong extension

I used version 2.5.0 with the following command: python google_images_download.py --keywords "clown" --format "png" --limit 15 --size medium
I do get .jpg even if I specified "png" as requested format. I would expect to receive only png files.
Completed Image ====> 1. aj5chhqwc308cw7ja9d0.png
Completed Image ====> 2. pennywise.png
Completed Image ====> 3. ronald-mcdonald-clown-hed-a-2016.png
Completed Image ====> 4.<PHONE_NUMBER>38-elam-creepy-clown-copycats-go-global-02-story-top.png
Completed Image ====> 5. clowns-hero-1.png
Completed Image ====> 6. https%3a%2f%2fblueprint-api-production.s3.amazonaws.com%2fuploads%2fstory%2fthumbnail%2f23903%2fscreen_shot_2016-10-10_at_3.53.24_pm.png
Completed Image ====> 7. gummo_the_clown_front_7.png
Completed Image ====> 8. pennywise_the_dancing_clown.png
Completed Image ====> 9. 4c29b7b75ba38c9c498fdc0c27c84aca.png
Completed Image ====> 10. thumb.png
Completed Image ====> 11. creepy-clown.png
Completed Image ====> 12.<PHONE_NUMBER>27-elam-creepy-clown-copycats-go-global-03-story-top.png
Completed Image ====> 13. clowns_0.png
Completed Image ====> 14. 2016-10-11_opi_25389998_i1.jpg
Completed Image ====> 15. clown-1475762369-640x356.png

I pushed more the investigation and it seems related to the fact that PNG images are wrongly named "jpg". Maybe the file extension should be enforced. For instance, if requesting PNG, jpg file extension should be renamed .png instead of letting .jpg.

This is now resolved in https://github.com/hardikvasa/google-images-download/commit/cf5ff4876b8384ef0d92e68b66fa648e494d2640
closing this issue for now. If the issue still persist, feel free to reopen this thread.


[Bug Report] Grokking demo currently broken in Colab

The Grokking demo is currently not executing properly in Colab.
Describe the bug
The Grokking demo currently fails execution
Code example
The block...
print(loss_fn(all_logits, labels)) # This bugged on models not fully trained

Generate the following error....
RuntimeError                              Traceback (most recent call last)
[<ipython-input-88-6591fc338d6e>](https://xoc33mq2olp-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240412-060119_RC00_624124077#) in <cell line: 1>()
----> 1 print(loss_fn(all_logits, labels)) # This bugged on models not fully trained

[<ipython-input-18-45ad8e4e85fe>](https://xoc33mq2olp-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240412-060119_RC00_624124077#) in loss_fn(logits, labels)
      4     logits = logits.to(torch.float64)
      5     log_probs = logits.log_softmax(dim=-1)
----> 6     correct_log_probs = log_probs.gather(dim=-1, index=labels[:, None])[:, 0]
      7     return -correct_log_probs.mean()
      8 train_logits = model(train_data)

RuntimeError: Size does not match at dimension 0 expected index [12769, 1] to be smaller than self [113, 113] apart from dimension 1

Skipping this block allows the demo to run for another block, but after that the demo errors out due to a memory error.
System Info
Describe the characteristic of your environment:

Colab T4 GPU

Additional context
Checklist

[x] I have checked that there is no similar issue in the repo (required)

I can work on this today.


Keras 2 requests for contribution

There is an early draft branch available for Keras 2: https://github.com/fchollet/keras/tree/keras-2
Note that the codebase will keep evolving a lot. Support for backwards compatibility with Keras 1 will only be added once the new codebase is finalized.
In this thread I will be posting very specific requests for contribution.
[DONE] Fix Theano Conv2DTranspose layer
The Deconvolution layer has become Conv2DTranspose, with a simplified API that does not require users to specify an output shape (that was a big issue with the previous API). The new implementation works fine with TensorFlow, but appears to be broken with Theano (most likely the backend function conv2d_tranpose). I haven't had time to look into it, feel free to check it out and fix it.
[MOSTLY DONE] Unit tests
The API is changing and the previous unit tests all need to be ported to the new API. I haven't started to look into this. Feel free to pick any unit test file and update it.
Update examples to the new API
Likewise.

If you have feedback, bugs to report, or if you're opening PRs against the keras-2 branch, post in this thread.

For the record, I estimate progress to be about 50%, not counting updating the docs, examples and unit tests.
Git diff with master: 85 files changed, 5060 insertions(+), 5332 deletions(-)

Hi @fchollet, going through some of your updates now. I wanted to verify a couple things:

You seem to be renaming nb_X (e.g. nb_classes) to num_X.  Consistently do this across?
objectives -> losses
TimeDistributedDense is gone, so replace with TimeDistributed(Dense(...)) where appropriate?

@braingineer yes, that's all correct.
Note that TimeDistributedDense had been deprecated for ~6 months already.
Regarding nb_*, there may be a few exceptions where we rename things to simply *s. E.g. nb_epoch would become epochs. But, yes, generally nb_* becomes num_*.

Thanks!

Note that TimeDistributedDense had been deprecated for ~6 months already

Ah. I personally deviated from the main branch on wrappers a while ago so I never touched based on this.  I had just noticed that it was still being used in a bunch of the tests.
I've run out of cycles to push on this until Sunday evening/Monday.  if someone else wants to push on it, I can start a PR and they can pick up where I left off.

@fchollet: There's a small fix for the Conv2DTranspose layer with Theano in #5382.

At present, there's a zoo of recurrent layers (SimpleRNN, LSTM, GRU, ConvLSTM). By exposing the recurrent API and making use of the existing graph building machinery, one could construct arbitrary recurrent structures without resorting to backend functions. In my mind, this is how the API would look like:
from keras.layers import Recurrent, Input, InputState

def LSTM(num_inputs, num_cells):
    """Handmade LSTM cell."""
    # x_t.shape = (batch_size, num_inputs)
    x_t = Input(shape=(num_inputs,))
    C_t_minus_1 = InputState(shape=(num_cells,))
    h_t_minus_1 = InputState(shape=(num_cells,))

    # LSTM Equations
    C_t = ...
    h_t = ...

    return Recurrent(inputs=x_t, state_updates={C_t_minus_1: C_t, h_t_minus_1: h_t})

# x.shape = (batch_size, num_time_steps, num_inputs)
x = Input(shape=(10, 42))
y = LSTM(num_inputs=42, num_cells=100)(x)

Of course, we'll need Multiply and Add layers to afford full flexibility, but that comes for free given Lambda. I can contribute if required.

New requests for contribution on Keras 2:

Fixing ConvLSTM2D. Currently broken, haven't looked into it.
Making it possible to set the initial states of recurrent layers, either by value (from numpy array) or symbolically (from tensors that come from somewhere else in the graph), and writing an example script for seq2seq.
make sure all layers that can support masking, do (e.g. TimeDistributed should)
make sure losses and metrics get properly masked in training.py.

Also:

Fix issue with shape inference in SeparableConv2D layer when using kernel dilation.

Keras 2 is getting there, with nearly all unit tests passing and few bugs left.
One thing that is easy to do, would be very helpful, and needs to be done quickly, is to convert the example scripts from examples/ to the new API. I have done a few, but about 2/3rds are left.

git diff master --stat:
178 files changed, 13760 insertions(+), 13242 deletions(-)
Reminder: you too can help, and it's easy. See above.

So, I hope to do at least a few of the example conversions. Are you also thinking that this should be the time we double-check the validity of the doc strings and everything? It seems like we should
a) make sure the examples work as described in 1.2.2
b) migrate to K2 and again make sure that it still works
..which may be pretty time consuming (validating before/after, both backends, tracking down any issues).

Are you also thinking that this should be the time we double-check the validity of the doc strings and everything?

Yes, that would be quite helpful.

Any time constraint? You mentioned you'd like this aspect done quickly.

There are no time constraints. But do keep in mind that if something is pending for a while, someone else (or myself) may push it before you do.

Sure - just curious if you were pushing a March 1st release date or something similar.

We will ship it when it's ready. March 1st may be a bit early. But probably the first week of March.

Would there be interest in multiple dataset backends so functions like Model.fit() can be extended?
For example formats like TFRecord could be supported (among others) in addition to hdf5. Here is a starter TFRecord pull + discussion in keras-contrib: https://github.com/farizrahman4u/keras-contrib/pull/27
Also on that topic, https://github.com/fchollet/keras/pull/5445 explains the new pull request procedures for Keras 1, Keras 2, and keras-contrib as I understand them.

Would there be interest in multiple dataset backends so functions like Model.fit() can be extended?

Yes, that would be useful. TFRecord in particular is relevant. But that can be added later.

Another important thing to do: fix Theano-related errors. Tests are all passing with TensorFlow, but some tests are failing with Theano. I have no time to look into it right now.

@fchollet

Making it possible to set the initial states of recurrent layers, either by value (from numpy array) or symbolically (from tensors that come from somewhere else in the graph)

This and much more has already been done in recurrentshop. Maybe we can integrate the whole thing into Keras? (including timestep wise RNN building, depth first computation, readout etc)

@farizrahman4u in general I am interested in integrating some of the features of recurrentshop into Keras. However this won't happen in Keras 2. But one feature that we need right away is just the ability to set initial states of RNNs.

Would there be interest in multiple dataset backends so functions like Model.fit() can be extended?
Yes, that would be useful. TFRecord in particular is relevant. But that can be added later.

Ideally the x,y params of model.fit() and other similar nparray params would support tensors of whatever api/backend for performance reasons. For example, in addition to TFRecords, tf tensor ops can be implemented to load data directly from imaging hardware or graphical simulations for RL.
Might tensor param support be worth design consideration for the 2.0 spec to avoid breaking changes, even if it is merely a no-op to be implemented after 2.0 is released?

@fchollet
To allow numpy array initial states, you can simply add an argument to the RNN constructor, and should be properly serialized in layers config.
To allow initializing states with symbolically, you might have to allow dict input to layers (this is how it is done in recurrentshop) . So you can call a RNN like this : y = LSTM(5)({'input': x, 'h' : tensor1, 'c' : tensor2}).

Fix issue with shape inference in SeparableConv2D layer when using kernel dilation.

Is there an example?

@fchollet How about supporting more functionalities of tensorboard? All sort of summaries and improved graph?
Like, I can add name field in keras layers, so when we generate graphs from tensorboard callback, graphs will be much cleaner with name of each layer block.

It is not possible to fit a Keras model on TF tensors, because that would involve modifying the existing computation graph, which is impossible, or creating a new one altogether, which has undesirable side effects. What you can do, however, is build your model on top of inputs that are TF tensors. You can still use fit in that context (instead of expecting data to be provided as Numpy arrays, the model will pull data from the relevant graph nodes automatically).
However... there is little rationale for using Keras fit at this point. If your workflow is TF-based, you should train your Keras models using TF training loops (e.g. TF Experiment which will be compatible with Keras models). fit will always primarily be for arrays and Python generators.

If your workflow is TF-based, you should train your Keras models using TF training loops (e.g. TF Experiment which will be compatible with Keras models).

I've been running keras + TF backend, I just now happen to have a TFRecord dataset. I was just giving examples of other data sources where converting to numpy arrays is expensive. If fit() will always be numpy arrays I'll follow your advice or convert the TFRecord to the accepted format, though I did like the idea of switchable dataset backends in addition to model backends. Thanks for the advice!

Another important thing to do: fix Theano-related errors. Tests are all passing with TensorFlow, but some tests are failing with Theano. I have no time to look into it right now.

@fchollet I am working on theano related errors.

@fchollet I just submitted a PR for masking with TimeDistributed.


chore: enable F41 surface kernel builds

Thank you for contributing to the Universal Blue project!
Please read the Contributor's Guide before submitting a pull request.

Take:
Should we continue offering surface/asus images in general?

I use the surface images personally. I'm only one person though, and understand there is additional workload required to maintain this image.
As for this PR, DNF5 changed the "$dnf config-manager --add-repo='...'" command. The build fails when running /tmp/fetch.sh because of this change. It should be changed to the same curl command found in reusable-build.yml that replaced the dnf command. With this change it will compile locally on my machines, cannot directly contribute to this PR unfortunately.


Villages not spawning at correct altitude

Been using TC/PHXTM for almost 4 years now, and I must say it never gets old seeing what you can make..
..Although I just recently upgraded the plugin (latest on Jenkins) and started with new configs and am having an interesting issue:

On lower terrain the villages tend to be much higher up.
Really odd issue, any idea?
Biome config:
https://gist.github.com/Joannou1/818a59f4fcc8e4304836
Using latest Spigot/PaperSpigot

Minecraft spawns villages at or above the world sea level, but never below. Minecraft uses a single variable for this; per-biome control is not possible. This means that Terrain Control has to use the water level in the WorldConfig for updating this Minecraft variable.
So setting WaterLevelMax to a lower value in the WorldConfig should solve the problem.

Can't believe I didn't notice that!
Thanks for pointing that out!

If you haven't worked with the village code, how could you know that the spawn height of villages is related to the world water level? :smile:
It's just one of the many quircks in the terrain generation of Minecraft.

I usually check similarities between things, and I didn't bother with altitude :P
They all spawned at around the 100 mark, so yeah.


feat: Save nightly build in github releases with date tags

Description
A solution to save nightly releases with date tag
Problem*
From issue:

Similar to Rust, it would be great to be able to do something like noirup -v nightly-2023-08-3
Our current workflow is that each night, we overwrite the nightly tag, so there is no convenient way to get the nightly release from two or three days ago.
This is mainly a problem for project whom don't want to build from source, and don't want to wait for a release but they want to use the latest features.

Resolves https://github.com/noir-lang/noir/issues/2332
Summary*

Added step to get formatted date string
Updated release step to generate tags/releases in format nightly-yyyy-mm-dd

Documentation

This PR requires no documentation updates when merged.

Additional Context
The step Get formatted date can be moved to job build-barretenberg and its output can be saved in job outputs. It reduces number of duplicates but the move will mix job purpose. Also we can create a separate job for the step.
PR Checklist*

[x] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Extending Blaine's comment; how does it solve this part of the issue:

Each night when CI makes a release, it should tag the release artifacts with the date. It should also tag the latest release artifact with nightly so users can do noirup -v nightly to get the latest nightly version.

Emphasis mine
?

Extending Blaine's comment; how does it solve this part of the issue:

Each night when CI makes a release, it should tag the release artifacts with the date. It should also tag the latest release artifact with nightly so users can do noirup -v nightly to get the latest nightly version.

Emphasis mine
?

Thank you @phated  and @kevaundray
Yes, the update was incorrect. I fixed it in last commit. Please, review the new changes.

Hello @phated
I fixed the previous issues a time ago. Now I merged the new changes.
Please, review the changes and approve/add new comments.


Craft 5

Are there any plans for Craft 5 on this one?

Yep! It’s on our list and we’ll get to it as soon as we can 🎉
@.***> wrote:

Are there any plans for Craft 5 on this one?
—
Reply to this email directly, view it on GitHub
https://github.com/hybridinteractive/craft-position-fieldtype/issues/29,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJLCVO4OOSNUCROLKDRVH3LY2U7TTAVCNFSM6AAAAABFOJ2X7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTKMJXGUZTGMY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Fantastic few projects with your very handy plugin in it. :-)

Made a PR for this https://github.com/hybridinteractive/craft-position-fieldtype/pull/30


re-render recaptcha if passing recaptcha is in a bad state

Is your feature request related to a problem? Please describe.
its possible to get into a bad recaptcha state, in such a case we are storing what the user submitted (on the client) but the user is stuck in an infinite submission loop.
Describe the solution you'd like
Refresh recaptcha so that a new challenge is presented
https://user-images.githubusercontent.com/35935196/181995701-b88837b2-f0ae-4d7f-8094-cf67128886d6.mov


Lavalink.kt supports rest api since 4.0.0

https://github.com/DRSchlaubi/Lavalink.kt/releases/tag/4.0.0

feel free to target the v4 branch instead

Lavalink.kt 4.0.0 doesn't target Lavalink v4 it targets v3 and therefore that doesn't make a lot of sense

ahh nvm then


File to import not found

hello i given an error;
File to import not found or unreadable: ./medium_editor/medium_editor.
Load paths

Hi @salihsagdilek
Did you followed the install steps in the README?
Where do you get this error (on the server / on the console)?
Can you post the entire stack trace of the error?

yea i followed readme install steps;
Sass::SyntaxError at /admin_users/1
File to import not found or unreadable: ./medium_editor/medium_editor.
Load paths:
  /var/www/sh/app/assets/javascripts
  /var/www/sh/app/assets/stylesheets
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin_medium_editor-0.1.2/app/assets/javascripts
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin_medium_editor-0.1.2/app/assets/stylesheets
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/active_skin-0.0.12/app/assets/images
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/active_skin-0.0.12/app/assets/stylesheets
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin-1.1.0/app/assets/images
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin-1.1.0/app/assets/javascripts
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin-1.1.0/app/assets/stylesheets
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin-1.1.0/vendor/assets/javascripts
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activeadmin-1.1.0/vendor/assets/stylesheets
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/coffee-rails-4.2.2/lib/assets/javascripts
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/jquery-rails-4.3.1/vendor/assets/javascripts
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/formtastic-3.1.5/app/assets/stylesheets
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actioncable-5.1.3/lib/assets/compiled
  /home/ubuntu/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionview-5.1.3/lib/assets/compiled

This path is strange "./medium_editor/medium_editor"...
The import line should be: @import 'activeadmin/medium_editor_input';
Can you show me your "app/assets/stylesheets/active_admin.scss" (or sass)?
You could also try to clean & compile the assets:
rake assets:clean
rake assets:precompile

again same problem
its my app/assets/stylesheets/active_admin.scss
// SASS variable overrides must be declared before loading up Active Admin's styles.
//
// To view the variables that Active Admin provides, take a look at
// `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the
// Active Admin source.
//
// For example, to change the sidebar width:
// $sidebar-width: 242px;
// Active Admin's got SASS!
@import "active_admin/mixins";
@import "active_admin/base";
@import "active_skin";

@import 'activeadmin/medium_editor_input';
@import 'activeadmin/medium_editor/themes/default'; // or another theme

// Overriding any non-variable SASS must be done after the fact.
// For example, to change the default status-tag color:
//
//   .status_tag { background: #6090DB; }
#footer {
  background-color: $skinHeaderBck;
}

#switchLanguage {
  position: relative;
  span {
    color: $skinActiveColor;
    font-size: 16px;
    cursor: pointer;
  }
  p {
    display: inline-block;
    float: right;
  }
  > ul {
    position: absolute;
    bottom: 100%;
    margin: 0;
    left: 0;
    display: none;
    background-color: #fff;
    list-style: none;
    padding: 0;
    li {
      a {
        font-size: 16px;
        padding: 5px 10px;
        text-decoration: none;
        display: block;
        &:hover {
          background-color: $skinHeaderBck;
          color: #fff;
        }
      }
    }
  }
  &:hover {
    > ul {
      display: block;
    }
  }
}

I have just created a new rails (5.0) app for testing and your sass. It works.
You could try with an empty app to see if there's a conflict somewhere else.

i found this problem and create pr

You didn't changed ruby files so it's good :)
PR merged with a minor change to README, thank you

I made some tests but I have some problems with .css in imports - I rolledback, I will do some checks when I have more time

@salihsagdilek could you please try the gem on branch develop?
In my test install works.
The theme import to add in active admin styles is:
@import 'activeadmin/medium_editor/themes/default.css';

@blocknotes that's ok 👍

Good :)


b-form-group: horizontal layout works only in some cases

Describe the bug
According to docs
https://cdmoro.github.io/bootstrap-vue-3/components/FormGroup.html#horizontal-layout
all these should work:
 <b-form-group
                                label-cols="4"
                                label-cols-lg="2"
                                label="Test 1"
                            >
                                <b-form-input></b-form-input>
                            </b-form-group>

                            <b-form-group
                                label-cols="4"
                                label="Test 2"
                            >
                                <b-form-input></b-form-input>
                            </b-form-group>

                            <b-form-group
                                label-cols="auto"
                                label="Test 3"
                            >
                                <b-form-input></b-form-input>
                            </b-form-group>

but only Test 1 has a horizontal layout.
Version: 0.3.4

Related, maybe I misunderstand usage:
label-align-sm="end" works, but label-align="end" doesn't work.
I was hoping that if no viewport sizes are specified, all apply.

Related, maybe I misunderstand usage:

You're not. This is a bug

Hi, note that the tests above still doesn't work on 0.3.7:

Thanks

My mistake, I thought this was only for label-align classes.

I have finalized the changes and I believe everything should be working. I have also included test cases for these two issues. This truly would not have been as big of an issue if not for the render functions 🤢 Why not just use jsx at that point?
The issue stemmed from a mishandling of how to created the align classes, and how it created the col props. Align xs class would be resulted to text-xs-{whatever}, which is not a valid class -> it is text-{whatever}. Similarly, prop 'xs' is not valid for BCol prop, whereas the other breakpoints are. 'xs' prop is actually prop 'cols'.
You are free to open the issue again if I still have not managed to fix it. Npm release 0.3.8 contains the fix if you would like to view it in your app.

Thank you so much!

Message ID: @.***>


Added accout limit for api keys api_keys.md

Description of the change: Added info block about account level api keys limit
Reason for the change: Kaylyn requested it ;)
Link to original source: https://sendgrid.com/docs/User_Guide/Settings/api_keys.html
@ksigler7

Hello @debri174,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


Fix issue in arrow expression type checking in sort

Purpose

$title

Fixes #25848, https://github.com/ballerina-platform/ballerina-lang/pull/25815#discussion_r488719579
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

@MaryamZi @mohanvive, shall we merge this and move further reviews/fixes to another issue/pr?  @lasinicl can you create an issue to keep track of that?


BrowseRouter Registration missing quotes

Due to the missing quotation marks it appears that other applications may not be able to launch the app when the path contains spaces.
This is stored as the Data in key Computer\HKEY_CLASSES_ROOT\BrowseRouterURL\shell\open\command

Thanks for the report. I will fix this in the next few days, or accept a PR.

Thank you. I'm still trying to work out what the mechanism is that PowerToys uses to trigger searches (which no longer works with BrowseRouter configured as default) The missing quotes was the first thing I came across. I'm not 100% sure on what the quotes should be and I don't know what specification to consult in relation to that.

When I use
"Z:\Path To\BrowseRouter\BrowseRouter.exe" %1
The browser will launch, but if I use A Search Query in PowerToys, It ends up launching three separate tabs as if each of the words  A Search Query was a separate URL.

Fixed in the linked PR and released as https://github.com/nref/BrowseRouter/releases/tag/0.13.1. Would you mind to see if it resolve the issue with PowerToys?

What's the procedure for me to test this? Would I need to unregister and then register again and then make sure it is set as default in Windows settings?

Good question. Just double-click the exe and it will update the existing registry keys with the new quoted path.

Following your steps the app did update the registry.
This breaks double clicking on .URL files for me (as well as PowerToys not working).
As I mention above,
When I use "Z:\Path To\BrowseRouter\BrowseRouter.exe" %1 the browser will launch
but with the new  "Z:\Path To\BrowseRouter\BrowseRouter.exe %1" it will not
I do not know what the specification is for these registry keys, however.

Thanks for the quick feedback. You're right, I put the quote in the wrong spot - I will fix this tomorrow.

Could you please try https://github.com/nref/BrowseRouter/releases/tag/0.13.2? Thanks

I ran the tagged exe several times and it looks like it's putting the expected value in the registry now. Nothing broke.
I will rename https://github.com/nref/BrowseRouter/issues/55 so it is more clear what that request is about

Thanks for your help testing the fix!


V100  32G OOM

deprecate("scale", "1.0.0", deprecation_message)
100%|█████████████████████████████████████████████████████████████████████████████| 50/50 [01:44<00:00,  2.09s/it]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 2015, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1562, in call_function
prediction = await anyio.to_thread.run_sync(  # type: ignore
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 865, in wrapper
response = f(*args, **kwargs)
File "/data_ext/demo/Leffa/app.py", line 138, in leffa_predict_vt
return self.leffa_predict(src_image_path, ref_image_path, "virtual_tryon", step, scale, seed, vt_garment_type)
File "/data_ext/demo/Leffa/app.py", line 127, in leffa_predict
output = inference(
File "/data_ext/demo/Leffa/leffa/inference.py", line 48, in call
images = self.pipe(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "/data_ext/demo/Leffa/leffa/pipeline.py", line 167, in call
gen_image = latent_to_image(latent, self.vae)
File "/data_ext/demo/Leffa/leffa/pipeline.py", line 186, in latent_to_image
image = vae.decode(latent).sample
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/accelerate_utils.py", line 46, in wrapper
return method(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/autoencoders/autoencoder_kl.py", line 326, in decode
decoded = self._decode(z).sample
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/autoencoders/autoencoder_kl.py", line 297, in _decode
dec = self.decoder(z)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/autoencoders/vae.py", line 337, in forward
sample = up_block(sample, latent_embeds)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/unets/unet_2d_blocks.py", line 2750, in forward
hidden_states = upsampler(hidden_states)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/diffusers/models/upsampling.py", line 180, in forward
hidden_states = self.conv(hidden_states)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/conv.py", line 458, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/conv.py", line 454, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 768.00 MiB. GPU 0 has a total capacity of 31.73 GiB of which 204.19 MiB is free. Process 201317 has 488.00 MiB memory in use. Including non-PyTorch memory, this process has 31.05 GiB memory in use. Of the allocated memory 29.20 GiB is allocated by PyTorch, and 1.49 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
could you give me some advice?

i try to add this but it not works
import os
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"


Support example request dropdown for DocService

Motivation:
Setting multiple example requests aren't displayed contrary to multiple headers/queries/paths.
Modifications:

Add a select component which allows users to select a request.
Truncate the displayed value in case the example request is too long.

Result:

#4576

Oops 😅    Fixed 🙇


Ensure that batch retrieval tests clean up after themselves

What this PR does / why we need it:
Also added some time buffer for the batch retrieval file tests so we're not at the mercy of float rounding when converting between df and file.
Which issue(s) this PR fixes:

Fixes #702
Does this PR introduce a user-facing change?:

/test test-end-to-end-batch

/lgtm

/approve

/test test-end-to-end-batch

/hold

/unhold

/lgtm

/approve


DropDownMenu should animation away when interrupted

If you tap outside the drop down menu while its animating in, we should
animate it away smoothly. Previously, we jumped to the reverseCurve,
which made the menu disappear immediately. Now we hold the animations as
state, which means we keep their _curveDirection property and don't
switch curves unless the animation actually finishes.
Also, fix a subtle bug in CurvedAnimation whereby we'd never set the
_curveDirection if we didn't see a status change in the parent
animation. Now we initialize _curveDirection based on the current value
of the parent's status.
Fixes #4379

@Hixie


Does Faster-Whisper support float8?

As far as I can tell, faster-whisper only supports int-8, f16, and f32. Does it support fp8 on GPUs like H100/L4/L40s? I might be wrong (if so let me know), but I think fp8 can give better accuracy than int8, so it will be great if we can use fp8.
Thank you for all your work, love this library!

@kalradivyanshu , hello. No, we don't support fp8. For more info, see this docs.


Optionally Validating the Signature

When optionally validating the signature of the powershell script LogCollectorInstaller.ps1, the name of signer is "Microsoft Azure Code Sign" rather than "Microsoft Corportation" and the Digital Signature Information records that "A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider".  The countersignatures Name of Signer is "Microsoft Time-Stamp Service"

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

ID: e4f7c304-9777-e8d6-1e49-e80ea333c072
Version Independent ID: c659f6d0-9011-fd40-d33e-090a719e82da
Content: Roll out continuous reports for Cloud App Security using a Docker on Windows
Content Source: CloudAppSecurityDocs/discovery-docker-windows.md
Service: cloud-app-security
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

@mikeycrawford  - Thank you for your comment. We will investigate the issue and get back to you.

Thank you again for your contribution. The issue is being addressed by the engineering team.


Adjust Footer Height for Improved User Experience

The current footer height is excessively tall, which negatively impacts the overall user experience. A footer that takes up too much vertical space can overwhelm users and detract from the main content of the page.
Proposed Changes:

Reduce the height of the footer to ensure it complements the main content without dominating the layout.
Ensure that all essential information remains accessible and visually appealing within the adjusted footer space.

Screenshot:

Please assign this issue to me so I can begin working on the necessary adjustments. Thank you!

This is not necessary. Please check other issues first before posting.


Small tweaks

Added .editorconfig
Small README.md tweaks
Removed repeated use of os.Getenv("GITHUB_PULL_REQUEST_ID")
Put summary percentage rise/fall coverage value into code block to help it stand out and no need to left pad.
More :medal_sports: for being a good Golang tester 😄

Thx @danielwhite - missing a quirky animated GIF 😄 .


Add an AWS Glue Extractor

Summary of Changes
Add an AWS Glue Extractor
Tests
It was add another test file to this new extractor based on the test_hive_table_metadata file
Documentation
I documented the code functions and added an example on README to follow others extractors example

Codecov Report

Merging #157 into master will decrease coverage by 0.07%.
The diff coverage is 78.04%.

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
- Coverage   83.21%   83.14%   -0.08%
==========================================
  Files          57       58       +1
  Lines        2812     2853      +41
  Branches      302      306       +4
==========================================
+ Hits         2340     2372      +32
- Misses        381      390       +9
  Partials       91       91

Impacted Files
Coverage Δ

databuilder/extractor/glue_extractor.py
78.04% <78.04%> (ø)

Continue to review full report at Codecov.

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

Wohoo! Cool the first(?) metadata Extractor pulling data, not from a SQL source, but an API 👏👏
Welcome as a committer @PedroRossi!

thanks @PedroRossi

thank you also @feng-tao and @jornh


Remove template code duplication

There's some code duplication in templates that's really annoying me
crate/details.html => rustdoc/body.html

Hi, is the above links broken? Especially in the latter, #L53-L118 is not found now.

Yes, that part of the codebase had a lot of churn lately. Here's an updated link for rustdoc/header.html: https://github.com/rust-lang/docs.rs/blob/master/templates/rustdoc/header.html#L52-L117

Thanks for your advice!


Cannot set Ask ChatGPT as default

It constantly switch back to Grammar correction
Google Chrome	123.0.6312.107 (Official Build) (arm64)
Revision	399174dbe6eff0f59de9a6096129c0c827002b3a-refs/branch-heads/6312@{#761}
OS	macOS Version 14.4.1 (Build 23E224)

Yes. You're correct. I missing the code. I will update it. Thank you !!

Fixed in https://github.com/giaphiep/chatgpt-wizard/commit/4d045ce852062e4e1d5e221b06ffb0012db7c821


[Media3] Attempting to create ExoPlayer instance crashes

Android framework version
net9.0-android
Affected platform version
.NET 9
Description
The code throw an exception when trying to create an instance of ExoPlayer

System.ArgumentException: Could not determine Java type corresponding to AndroidX.Media3.ExoPlayer.IExoPlayerInvoker, Xamarin.AndroidX.Media3.ExoPlayer, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null. (Parameter 'targetType')

Steps to Reproduce
var builder = new AndroidX.Media3.ExoPlayer.ExoPlayerBuilder(this);
var player = builder.Build();

Example project:
media3.zip
Given other developers seem to already be using the media3 bindings, I wonder if I am doing anything wrong...?
Did you find any workaround?
No response
Relevant log output
No response

I have the exact same issue. I've tried many variations, including a clean MAUI project running .NET 9 (full version, not pre-release).

Repro Exception
System.ArgumentException: Could not determine Java type corresponding to `AndroidX.Media3.ExoPlayer.IExoPlayerInvoker, Xamarin.AndroidX.Media3.ExoPlayer, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null`. (Parameter 'targetType')
   at Java.Interop.TypeManager.CreateInstance(IntPtr handle, JniHandleOwnership transfer, Type targetType) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:line 323
   at Java.Lang.Object.GetObject(IntPtr handle, JniHandleOwnership transfer, Type type) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:line 302
   at Java.Lang.Object._GetObject[IExoPlayer](IntPtr handle, JniHandleOwnership transfer) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:line 288
   at Java.Lang.Object.GetObject[IExoPlayer](IntPtr handle, JniHandleOwnership transfer) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:line 280
   at AndroidX.Media3.ExoPlayer.ExoPlayerBuilder.Build() in D:\a\_work\1\s\generated\androidx.media3.media3-exoplayer\obj\Release\net8.0-android\generated\src\AndroidX.Media3.ExoPlayer.IExoPlayer.cs:line 749
   at media3.MainActivity.OnCreate(Bundle savedInstanceState) in /Users/moljac/Downloads/1036/media3/MainActivity.cs:line 16
   at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net9.0/android-35/mcw/Android.App.Activity.cs:line 3196
   at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V(_JniMarshal_PPL_V callback, IntPtr jnienv, IntPtr klazz, IntPtr p0) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:line 121

Here is an example of how to use media 3 with Maui. https://github.com/CommunityToolkit/Maui/pull/2076
var Player = new ExoPlayerBuilder(Platform.AppContext).Build() ?? throw new InvalidOperationException("Player cannot be null");

Above is how you create an new instance of

@ne0rrmatrix Have you tested this with .NET 9? I cannot get it working, just get the exception.

I have tested against dotnet 8 over the last few months. I am currently unable to test using either dotnet 8 or 9 and can't provide any feedback. After updating to dotnet 9 I cannot build anything. Once I get my mac's and pc's working with new dotnet I will see if any changes are needed.

Let me create repro sample for both net9.0 and net8.0, so we can narrow it down.

Archive.zip
Repro:
dotnet build net8.0/media3/media3.csproj -t:run -f:net8.0-android

OK!
dotnet build net9.0/media3/media3.csproj -t:run -f:net9.0-android

Crashes!!!

SDK version needs to be set for dotnet 9.
Example:
{
   "sdk":
   {
       "version": "9.0.100",
       "rollForward": "patch"
   },
   "msbuild-sdks":
   {
       "MSBuild.Sdk.Extras": "3.0.44",
       "Microsoft.Build.Traversal": "4.1.0",
       "Microsoft.Build.NoTargets": "3.7.56",
       "Xamarin.Legacy.Sdk": "0.2.0-alpha4"
   }
}

Sample builds fine in Debug or Release mode when using current 9.0 version of dotnet from VS 2022 install.

Sample builds fine in Debug or Release mode when using current 9.0 version of dotnet from VS 2022 install.

Yes. Builds fine, but crashes during running.

I believe that this was broken by: https://github.com/dotnet/android/commit/35f41dcc7cf5eb65dc12d7c0a3421e67c2bdb6d6
What I don't understand is why this wasn't caught by existing unit tests, e.g.
https://github.com/dotnet/android/blob/70948d5eaa72091389940fdd5a0eb828c85bdd60/tests/Mono.Android-Tests/Java.Interop/JavaObjectExtensionsTests.cs#L38

@ne0rrmatrix
Does your app crash during running [loading]?
Just to be certain

App crashes after launching activity. It also only crashes when exoplayer build() instruction is executed

To be specific it crashes only when executing Build(). If I run
var player = new ExoplayerBuilder(); // App does not crash. Return type is `ExoplayerBuilder`
player.Build(); // App crashes on this line. Return type is `IExoPlayer`

@ne0rrmatrix
Thanks a lot. Did you use repro sample provided in this issue?
Just asking, so other can use it for debugging.
thx

Yes  I tried the sample app. It has exact same behavior. I also tested by modifying it like above to try and test if ExoPlayerBuilder was working. It is working for that class. It is only the Build() method that causes the crash.

Moving this to dotnet/android for better visibility/tracking, as initial investigation appears to be a .NET 9 regression in Java.Interop.


Potential optimization in the git operations used in preparing a repository for the analysis

With the decision to switch to partial cloning in this PR to improve the cloning time in Macaron's analysis, I have noticed that there could be potential optimization for the git operations performed on a repository before Macaron analyzes it.
The git operations in this context includes the git operations performed to checkout the branch and commit of any software component's repository.
The current implementation of such git operations can be found here:

reset_git_repo
check_out_repo_target

The potential optimization are as follow:

https://github.com/oracle/macaron/pull/491/files#r1357738772: Only checkout the commit we want without git pull can save us from downloading unnecessary objects because only checking out would still follow the partial cloning strategy.
Stashing, Reseting the index and working directory and fetching before checking out the branch lead to a significant time consumed to check out.

We should also consider only stashing, reset the index, working directory when necessary ONLY.
We could also consider don't run any fetch before checking out a branch if not necessary.

For example, if the use want to analyze a specific branch and commit. If that branch and commit already exists, we shouldn't try to run git fetch.
However, for cases like if the user provide only a branch, or no branch and commit at all, we still need to fetch to analyze the latest commit.
To know whether it's worth to do it this way, much investigation effort is still needed.

Within this PR, stashing and resetting the repository index and working tree have been removed.
Therefore, this Github issue only tracks first optimization mentioned above.


Create check-dist.yml

This adds a workflow to check the contents of the checked-in dist/index.js against the expected version.
See https://github.com/actions/upload-artifact/pull/227 for background and rationale.

Hello @brcrista. Thank you for your pull request. Could you please remove this step and the verify-no-unstaged-changes.sh file.

Ah sorry @dmitry-shibanov , I should have checked that after the last one.  Fixed now.


buildTest command

Dynamically parse input text and build tests based on a combination of LLMs, regex, and user input. Validate each step by actively running it, but also provide a automatic option.

Initial LLM investigation in llm branch.


Add metric output support

Add a --metrics flag to provide output in InfluxDB line format for metric collection.
Should this also include a --metrics-only flag to not check against thresholds?

Closed by #15


UnicodeEncodeError

Book:<PHONE_NUMBER>003
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6580-6581: ordinal not in range(128).
Running Python 3.6.5 :: Anaconda, Inc.

Sorry, equal to #16


Link our others packages in the saleor readme

Saleor uses many of our other libraries (ex. prices). What do you think @elwoodxblues to list them in new section in the readme?

I'm not sure, I think open-source projects usually don't do this, as those who are interested will find other packages on our Github profile anyway. But if others agree, I won't block this. What do you think @patrys?

We could mention the pricing types under architecture once we move to prices 1.x but I'd rather avoid marketing in docs.

Who will want to know what the saleor uses will check the requirements.txt
For other users this will be unnecessary and will only add unnecessary work to the team.


QnA Maker integration docs not working

Describe the bug
We are trying to implement QnA Maker integration following the docs here: DOCS
We get the following error when the Connect to QnA Knowledgebase block is reached:

Object reference not set to an instance of an object.

We already tried some different configurations, guided by other issues we found here flagged as closed.
Version
Application SHA
test
Branch: stable
Browser

[X] Chrome
[ ] Safari
[ ] Firefox
[X] Edge

OS

[ ] macOS
[X] Windows
[ ] Ubuntu

Expected behavior
We are exactly replicating the docs, so we expect it to work.
Screenshots

Additional context
Bypassing the appsettings way, we also tried "hardcoding" the configuration in the Connect to QnA Knowledgebase block but nothing changed.
Our bot is working properly with common LUIS operations, we used an Intent to route to QnA as suggested by docs.
We also tried to call QnA starting the Bot from VS. We obtain the same exception and it seems to be related to something happened here: Microsoft BotBuilder
@onoflo
@andreatosato

Hi @fathorMB thanks for reporting. I am not sure if it related, but we have another QnA maker issue reported here. @hibrenda please let me know if there is anything I should update on the docs.

Hi @zxyanliu, i don't think it's related. In my case the block is rendering successfully. Maybe can be related to this one?

@fathorMB could you share more detail for the dialog file ? in the dialog flow, do you only include the QnA step or there are other steps may introduce this error ?

@hibrenda the QnA step is the only one in the dialog. I also tried to put it in a separate dialog and directly in the intent recognized trigger, but fails the same way. I tried to put other steps to check if the problem was in my dialog but all other steps are working.

if possible, could you share your bot (dialog) to us (no need to share qna) , we may have a try .

@hibrenda It's pretty simple to reproduce. I just created a new bot from scratch and then added a intent recognized trigger with some of the questions i have in my QnA. I see that LUIS is recognizing correctly, the trigger is fired and it contains only the QnA block. Configured as you see in the screenshot, so as explained in the documentation. At runtime, when reaching the QnA block, the only bot response is the error i did include in the issue description.

@fathorMB Thanks for reporting this issue. now I see .
could you input something in following field and retry.

We test with qna sample and not reproduce this issue as all have been settled in the sample.

@hibrenda I'll try and let you know. Thanks in advance for support

@hibrenda It is now working filling all the fields you pointed out. Thank you!

By the way in master branch, we do have improvement even if you leave these as empty.


Model reference consultation

Hi, do you have any references for homo_GNN model? The reference source of homo_GNN model was not found in the project

Hi, it is just homogeneous GNN like GCN\GAT\GraphSAGE with a type-specific linear transformation. We will give a simple description for homo_GNN/relation_HGNN/meta_HGNN. Before that, you could refer to Space4HGNN: A Novel, Modularized and Reproducible Platform to Evaluate Heterogeneous Graph Neural Network.


Add NPM package library source provider support

To support NPM package resolution of Library resources in the language server, IDE plugins, tooling, and evaluator, create a cql-to-elm-fhir package to house the NPMLibrarySourceProvider.

Resolved by #826


[BUG] cannot get entity order from schema in Octave

schema = bids.Schema;
entities = schema.entity_order();

error: wrong type argument 'cs-list'
error: dynamic structure field names must be strings
error: called from
    parse at line 433 column 33
    entity_order at line 191 column 7

Could not reproduce on Octave 6.4 and 7.1 on Ubuntu 22.04


fix js-loader on pretty much all branches

change jsx to js in test-property and rm questionmark

fixed on all branches, left jsxon electron branch so react can be easily used


Building process ERROR: hidpp20.h - hidpp20.c / ninja -C builddir .Please help

Ubuntu 21.04
Hello everyone when I try to build and install the libratbag, on  ninja -C builddir I have got this error:
$ sudo ninja -C /usr/local/libratbag
ninja: Entering directory `/usr/local/libratbag'
[1/2] Linking target _hidpp.so
FAILED: _hidpp.so
cc  -o _hidpp.so _hidpp.so.p/meson-generated_hidpp.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,_hidpp.so libutil.a libhidpp.a libratbag.a libshared.a /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libevdev.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/local/lib/libpython3.9.a -lm -Wl,--end-group
/usr/bin/ld: /usr/local/lib/libpython3.9.a(_sre.o): warning: relocation against `PyExc_RecursionError' in read-only section `.text.unlikely'
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: link finale non riuscito: bad value
collect2: error: ld returned 1 exit status
[2/2] Linking target _libratbag.so
FAILED: _libratbag.so
cc  -o _libratbag.so _libratbag.so.p/meson-generated_libratbag.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,_libratbag.so libutil.a libhidpp.a libratbag.a libshared.a /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libevdev.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/local/lib/libpython3.9.a -lm -Wl,--end-group
/usr/bin/ld: /usr/local/lib/libpython3.9.a(object.o): warning: relocation against `PyDictKeys_Type' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: link finale non riuscito: bad value
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

this it's the entire error before showing the above one:
sudo ninja -C /usr/local/libratbag
ninja: Entering directory `/usr/local/libratbag'
[7/75] Compiling C object libratbag.a.p/src_driver-hidpp10.c.o
../../../home/cris/libratbag/src/driver-hidpp10.c: In function ‘hidpp10drv_write_button’:
../../../home/cris/libratbag/src/driver-hidpp10.c:345:41: warning: passing argument 1 of ‘ratbag_action_keycode_from_macro’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  345 |   rc = ratbag_action_keycode_from_macro(action, &key, &modifiers);
      |                                         ^~~~~~
In file included from ../../../home/cris/libratbag/src/driver-hidpp10.c:48:
../../../home/cris/libratbag/src/libratbag-private.h:489:63: note: expected ‘struct ratbag_button_action *’ but argument is of type ‘const struct ratbag_button_action *’
  489 | ratbag_action_keycode_from_macro(struct ratbag_button_action *action,
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../../../home/cris/libratbag/src/driver-hidpp10.c: In function ‘hidpp10_log’:
../../../home/cris/libratbag/src/driver-hidpp10.c:551:29: warning: implicit conversion from ‘enum hidpp_log_priority’ to ‘enum ratbag_log_priority’ [-Wenum-conversion]
  551 |  log_msg_va(device->ratbag, priority, format, args);
      |                             ^~~~~~~~
[14/75] Compiling C object libratbag.a.p/src_driver-hidpp20.c.o
../../../home/cris/libratbag/src/driver-hidpp20.c: In function ‘hidpp20_log’:
../../../home/cris/libratbag/src/driver-hidpp20.c:1607:29: warning: implicit conversion from ‘enum hidpp_log_priority’ to ‘enum ratbag_log_priority’ [-Wenum-conversion]
 1607 |  log_msg_va(device->ratbag, priority, format, args);
      |                             ^~~~~~~~
[19/75] Compiling C object libratbag.a.p/src_driver-sinowealth.c.o
../../../home/cris/libratbag/src/driver-sinowealth.c:162:1: warning: ‘sinowealth_color_to_raw’ defined but not used [-Wunused-function]
  162 | sinowealth_color_to_raw(struct ratbag_color color)
      | ^~~~~~~~~~~~~~~~~~~~~~~
../../../home/cris/libratbag/src/driver-sinowealth.c:156:1: warning: ‘sinowealth_raw_to_color’ defined but not used [-Wunused-function]
  156 | sinowealth_raw_to_color(struct sinowealth_rgb8 raw)
      | ^~~~~~~~~~~~~~~~~~~~~~~
[27/75] Compiling C object libhidpp.a.p/src_hidpp10.c.o
../../../home/cris/libratbag/src/hidpp10.c: In function ‘hidpp10_profile_parse_names’:
../../../home/cris/libratbag/src/hidpp10.c:1422:23: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1422 |        metadata->lgs02.name,
      |        ~~~~~~~~~~~~~~~^~~~~
../../../home/cris/libratbag/src/hidpp10.c:1427:36: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1427 |         metadata->lgs02.macro_names[i],
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../../../home/cris/libratbag/src/hidpp10.c: In function ‘hidpp10_profile_set_names’:
../../../home/cris/libratbag/src/hidpp10.c:1449:43: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1449 |  hidpp10_uchar8_to_uchar16(metadata->lgs02.name,
      |                            ~~~~~~~~~~~~~~~^~~~~
../../../home/cris/libratbag/src/hidpp10.c:1453:56: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1453 |   hidpp10_uchar8_to_uchar16(metadata->lgs02.macro_names[i],
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
[71/75] Generating '_hidpp.so.p/hidpp.c'.
notype name breathing
notype name traveling
notype name blink
notype name on
/home/cris/libratbag/src/hidpp20.h:227: Warning 503: Can't wrap class $unnamed5$ unless renamed to a valid identifier.
/home/cris/libratbag/src/hidpp20.h:222: Warning 503: Can't wrap class $unnamed4$ unless renamed to a valid identifier.
/home/cris/libratbag/src/hidpp20.h:218: Warning 503: Can't wrap class $unnamed3$ unless renamed to a valid identifier.
/home/cris/libratbag/src/hidpp20.h:213: Warning 503: Can't wrap class $unnamed2$ unless renamed to a valid identifier.
[73/75] Linking target _libratbag.so
FAILED: _libratbag.so
cc  -o _libratbag.so _libratbag.so.p/meson-generated_libratbag.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,_libratbag.so libutil.a libhidpp.a libratbag.a libshared.a /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libevdev.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/local/lib/libpython3.9.a -lm -Wl,--end-group
/usr/bin/ld: /usr/local/lib/libpython3.9.a(object.o): warning: relocation against `PyDictKeys_Type' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: link finale non riuscito: bad value
collect2: error: ld returned 1 exit status
[74/75] Compiling C object _hidpp.so.p/meson-generated_hidpp.c.o
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_led_sw_ctrl_led_state_breathing_get’:
_hidpp.so.p/hidpp.c:6858:26: warning: taking address of packed member of ‘struct hidpp20_led_sw_ctrl_led_state’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 6858 |   result = (_breathing *)& ((arg1)->breathing);
      |                          ^~~~~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_led_sw_ctrl_led_state_traveling_get’:
_hidpp.so.p/hidpp.c:6881:26: warning: taking address of packed member of ‘struct hidpp20_led_sw_ctrl_led_state’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 6881 |   result = (_traveling *)& ((arg1)->traveling);
      |                          ^~~~~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_led_sw_ctrl_led_state_blink_get’:
_hidpp.so.p/hidpp.c:6904:22: warning: taking address of packed member of ‘struct hidpp20_led_sw_ctrl_led_state’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 6904 |   result = (_blink *)& ((arg1)->blink);
      |                      ^~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_led_sw_ctrl_led_state_on_get’:
_hidpp.so.p/hidpp.c:6927:19: warning: taking address of packed member of ‘struct hidpp20_led_sw_ctrl_led_state’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 6927 |   result = (_on *)& ((arg1)->on);
      |                   ^~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_button_binding_button_get’:
_hidpp.so.p/hidpp.c:9141:45: warning: taking address of packed member of ‘union hidpp20_button_binding’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 9141 |   result = (hidpp20_button_binding_button *)& ((arg1)->button);
      |                                             ^~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_button_binding_consumer_control_get’:
_hidpp.so.p/hidpp.c:9187:55: warning: taking address of packed member of ‘union hidpp20_button_binding’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 9187 |   result = (hidpp20_button_binding_consumer_control *)& ((arg1)->consumer_control);
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_internal_led_effect_get’:
_hidpp.so.p/hidpp.c:13227:43: warning: taking address of packed member of ‘struct hidpp20_internal_led’ may result in an unaligned pointer value [-Waddress-of-packed-member]
13227 |   result = (hidpp20_internal_led_effect *)& ((arg1)->effect);
      |                                           ^~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_macro_data_delay_get’:
_hidpp.so.p/hidpp.c:15198:40: warning: taking address of packed member of ‘union hidpp20_macro_data’ may result in an unaligned pointer value [-Waddress-of-packed-member]
15198 |   result = (hidpp20_macro_data_delay *)& ((arg1)->delay);
      |                                        ^~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
cris@ubuntu:~/libratbag$ sudo ninja -C /usr/local/libratbag
ninja: Entering directory `/usr/local/libratbag'
[1/2] Linking target _hidpp.so
FAILED: _hidpp.so
cc  -o _hidpp.so _hidpp.so.p/meson-generated_hidpp.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,_hidpp.so libutil.a libhidpp.a libratbag.a libshared.a /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libevdev.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/local/lib/libpython3.9.a -lm -Wl,--end-group
/usr/bin/ld: /usr/local/lib/libpython3.9.a(_sre.o): warning: relocation against `PyExc_RecursionError' in read-only section `.text.unlikely'
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: link finale non riuscito: bad value
collect2: error: ld returned 1 exit status
[2/2] Linking target _libratbag.so
FAILED: _libratbag.so
cc  -o _libratbag.so _libratbag.so.p/meson-generated_libratbag.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,_libratbag.so libutil.a libhidpp.a libratbag.a libshared.a /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libevdev.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/local/lib/libpython3.9.a -lm -Wl,--end-group
/usr/bin/ld: /usr/local/lib/libpython3.9.a(object.o): warning: relocation against `PyDictKeys_Type' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: link finale non riuscito: bad value
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Have you any idea how to solve it?

In hidpp20.h , I have applied the changes from @staticssleever668 and rebuild from "0" again, it seems that something solving but still persist some error  that cannot linking target _libratbag.so, below it's the error:
$ ninja -C builddir
ninja: Entering directory `builddir'
[9/75] Compiling C object libratbag.a.p/src_driver-hidpp10.c.o
../src/driver-hidpp10.c: In function ‘hidpp10drv_write_button’:
../src/driver-hidpp10.c:345:41: warning: passing argument 1 of ‘ratbag_action_keycode_from_macro’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  345 |   rc = ratbag_action_keycode_from_macro(action, &key, &modifiers);
      |                                         ^~~~~~
In file included from ../src/driver-hidpp10.c:48:
../src/libratbag-private.h:489:63: note: expected ‘struct ratbag_button_action *’ but argument is of type ‘const struct ratbag_button_action *’
  489 | ratbag_action_keycode_from_macro(struct ratbag_button_action *action,
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/driver-hidpp10.c: In function ‘hidpp10_log’:
../src/driver-hidpp10.c:551:29: warning: implicit conversion from ‘enum hidpp_log_priority’ to ‘enum ratbag_log_priority’ [-Wenum-conversion]
  551 |  log_msg_va(device->ratbag, priority, format, args);
      |                             ^~~~~~~~
[12/75] Compiling C object libratbag.a.p/src_driver-sinowealth.c.o
../src/driver-sinowealth.c:162:1: warning: ‘sinowealth_color_to_raw’ defined but not used [-Wunused-function]
  162 | sinowealth_color_to_raw(struct ratbag_color color)
      | ^~~~~~~~~~~~~~~~~~~~~~~
../src/driver-sinowealth.c:156:1: warning: ‘sinowealth_raw_to_color’ defined but not used [-Wunused-function]
  156 | sinowealth_raw_to_color(struct sinowealth_rgb8 raw)
      | ^~~~~~~~~~~~~~~~~~~~~~~
[13/75] Compiling C object libratbag.a.p/src_driver-hidpp20.c.o
../src/driver-hidpp20.c: In function ‘hidpp20_log’:
../src/driver-hidpp20.c:1607:29: warning: implicit conversion from ‘enum hidpp_log_priority’ to ‘enum ratbag_log_priority’ [-Wenum-conversion]
 1607 |  log_msg_va(device->ratbag, priority, format, args);
      |                             ^~~~~~~~
[23/75] Compiling C object libhidpp.a.p/src_hidpp10.c.o
../src/hidpp10.c: In function ‘hidpp10_profile_parse_names’:
../src/hidpp10.c:1422:23: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1422 |        metadata->lgs02.name,
      |        ~~~~~~~~~~~~~~~^~~~~
../src/hidpp10.c:1427:36: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1427 |         metadata->lgs02.macro_names[i],
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../src/hidpp10.c: In function ‘hidpp10_profile_set_names’:
../src/hidpp10.c:1449:43: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1449 |  hidpp10_uchar8_to_uchar16(metadata->lgs02.name,
      |                            ~~~~~~~~~~~~~~~^~~~~
../src/hidpp10.c:1453:56: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1453 |   hidpp10_uchar8_to_uchar16(metadata->lgs02.macro_names[i],
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
[73/75] Linking target _libratbag.so
FAILED: _libratbag.so
cc  -o _libratbag.so _libratbag.so.p/meson-generated_libratbag.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,_libratbag.so libutil.a libhidpp.a libratbag.a libshared.a /usr/lib/x86_64-linux-gnu/libudev.so /usr/lib/x86_64-linux-gnu/libevdev.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/local/lib/libpython3.9.a -lm -Wl,--end-group
/usr/bin/ld: /usr/local/lib/libpython3.9.a(object.o): warning: relocation against `PyDictKeys_Type' in read-only section `.text'
/usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: link finale non riuscito: bad value
collect2: error: ld returned 1 exit status
[74/75] Compiling C object _hidpp.so.p/meson-generated_hidpp.c.o
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_button_binding_button_get’:
_hidpp.so.p/hidpp.c:9680:45: warning: taking address of packed member of ‘union hidpp20_button_binding’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 9680 |   result = (hidpp20_button_binding_button *)& ((arg1)->button);
      |                                             ^~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_button_binding_consumer_control_get’:
_hidpp.so.p/hidpp.c:9726:55: warning: taking address of packed member of ‘union hidpp20_button_binding’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 9726 |   result = (hidpp20_button_binding_consumer_control *)& ((arg1)->consumer_control);
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_internal_led_effect_get’:
_hidpp.so.p/hidpp.c:13766:43: warning: taking address of packed member of ‘struct hidpp20_internal_led’ may result in an unaligned pointer value [-Waddress-of-packed-member]
13766 |   result = (hidpp20_internal_led_effect *)& ((arg1)->effect);
      |                                           ^~~~~~~~~~~~~~~~~~
_hidpp.so.p/hidpp.c: In function ‘_wrap_hidpp20_macro_data_delay_get’:
_hidpp.so.p/hidpp.c:15737:40: warning: taking address of packed member of ‘union hidpp20_macro_data’ may result in an unaligned pointer value [-Waddress-of-packed-member]
15737 |   result = (hidpp20_macro_data_delay *)& ((arg1)->delay);
      |                                        ^~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

Hi, my commits only fix some warnings, not the error. The error is /usr/bin/ld: /usr/local/lib/libpython3.9.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC. Did you install Python from the repository, or did you compile it yourself? Either way, you can try to workaround this as described here (Stack Overflow):

Install pyenv. I don't know if it's in your distro's repositories. If not, see this (pyenv's repository on GitHub).
Install Python using pyenv. PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.4.
Activate pyenv. See the output of pyenv init.
Verify that Python version changed with python version.

Side note: never run make or ninja as root if you are not installing what you just compiled, as doing this is a security risk.

HI, @staticssleever668  thank you so so so much to reply here, at least you give me some input to understand where to check, I really apppreciate it!
I have settled python enviroment by official site and at beginning i installed it with the command "./configure --enable-optimizations" and with the "sudo make altinstall" as suggested everywhere to don't overwrite the basic system Phyton installation with the risk to break it. After, I noticed that with some other project cannot find the PATH and was so messy because phyton sytem folders are all fragmentated and devided by different phyton versions; and I reinstalled the python 3.9.5 (the latest version) but at this time with the command "./configure --enable-shared" , everything working well but now I noticed thanks to you that the problem persist in this python enviroment and still check the phyton version 3.9.4 intead of the latest one.
Buuuut yesterday, I tried to delete Phyton 3.9.4 to re-install from zero, and now magically my Ubuntu it's fully break that cannot boot up anymore.
Really, the people say that Windows it is bad, but Linux is "not immune" of serious problems..... I'm not super expert but I never have got such problems of booting system with Windows or Mac in development enviroments, last time was Wine Development enviroment that messy with my external SSD Windows OSes that modifie the Kernel folders in Wine Building proces where Windows will never touch or connect the external HDD/SDD for building Enviroment. I don't know, maybe Luinux as many other problem situations because there are too many distro differentiation with different packages libs reactions, but let's say that there isn't a perfect OSes.
Anyway, now I will reinstall all the OS, and this time I will go back for Debian, give me some time and I will let you know just to share for others.....

Hi @staticssleever668 , I'm back......after reinstalled all the OS (UBUNTU again and not DEBIAN for some PPA projects), libs and so on FINALLY I can build and install. The problem was related to python environment that I did build it from the Official and source, where in Ubuntu 21.04 in the way it doesn't need because it's already installed, maybe my past settles overwrite or make a mess with the PATHs or brake something from the basic configurations. Thank you to give me the suggestion, you were totally right :+1: !!!
Now, I just installed all the necessaries libs from mason , pip3 and some other minor python libs and the environment can communicate and build, since the PATH are settled by default from the official Ubuntu repo.
But, with Ubuntu (at least with 21.04) this project it's a bit messy, i don't know how the people can let it works it. The problems are:
1) When you try install Piper from the repository in this GitHub account, you can build and install it but Piper will not Open because by default it will install the software folder in /usr/lib/python3.9/site-packages/ piper and when you will launch the app it will looking for this folder in /usr/lib/python3/dist-packages/piper.
So, the final user it has two options or run Piper by terminal as following PYTHONPATH=$PYTHONPATH:/usr/lib/python3.9/site-packages piper  or take "physically" the Piper system Folder and copy from  /usr/lib/python3.9/site-packages/piper to /usr/lib/python3/dist-packages/piper that will work the app without terminal command but with just double clik on the piper desktop launcher.

The libratbag installation, as the Authors said, will not install these files into the following path:

/usr/share/dbus-1/system.d/org.freedesktop.ratbag1.conf
/usr/share/dbus-1/system-services/org.freedesktop.ratbag1.conf
/usr/share/systemd/system/ratbagd.service

You have to copy from your "buildir folder" manually to the Author suggestions folders (where in /usr/share/systemd/ the folder system/ it's not even exist you have to create it and paste into the related file).
Because those files system will be installed into another PATH in UBUNTU and are:
/etc/dbus-1/systemd/org.freedesktop.ratbag1.conf
/usr/local/share/dbus-1/system./org.freedesktop.ratbag1.conf
/etc/systemd/system/ratbagd.service

As you can see it's a bit everything strange and in anyway I will try to fix , in PIPER I can set the DPI and not the MACROS for the Buttons, the buttons will simple not Work with my Logitech MX Master 2S. The same problems in the past, that i faced with automatic per-packed installations....
Now I will delete everything, because obviously this project it's not working, I hope this project can getting better in the future, because so far I have got all these problems only with this Libratbag/ Ratbagd / Piper!
Thank you so much to help me  ;).


Error Code 500 But Still Works

What version of Node.js are you using?
v10.19.0
What version of npm are you using?
6.14.4
What operating system are you using?
Ubuntu
Describe the Bug
Whenever changing someones employment rank on a company or approving someone to a company it shows an error code 500 in the top right even tho the action was actually performed it just doesnt say/show it was until you refresh the page
Expected Behavior
I accept to click accept and then them be removed from pending and put under employees
To Reproduce
To reproduce this issue you can try and join a whitelisted company as a different civ then as the owner try to accept them

Any errors in your terminal?

@RealZotty this looks like a db issues. Make sure you imported the snaily-cad.sql correctly. Feel free to re-open this if you're still encountering this issue


Add documentation for local development.

Maybe it would be worth adding a Run a scheduler and a worker with a pointer to the cluster doc. WDYT?

@maiste I have not felt the need for this yet in my development process so am missing context. It sounds like a good suggestion but can I please request that you add a paragraph or sentence to the document once this is merged?


Investigate mesh VPN / service mesh

Backend hosts (and developer workstations) connect to each other and authenticate using a mixture of iptables rules, postgresql credentials, SSH credentials, HTTPS + basic auth, SSH port forwarding.
Investigate if a mesh VPN or service mesh could help simplify the auth methods, ensure encryption is always used, prevent exposing services to the whole Internet,.

This is relevant to the issue we were having with the API host too.


Add GovCloud regions to Sample SDK

https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/e1ccf3156c94f0b1a668946fc7dd41a64af1230e/samples/js/browser/index.html#L30
Thanks!

@noahsw Please see the linked JS PR. Adding those regions to the sample won't, by itself, enable access via JS SDK. The linked PR, which should be in version 1.19 (due by mid-October), will help. I will add these regions to the sample to coincide with the 1.19 release.

@noahsw JS Speech SDK version 1.19.0 has been released, with support for usgov regions. Thanks again for writing this issue up!

Thx @glharper but I'm not seeing any changes to https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/e1ccf3156c94f0b1a668946fc7dd41a64af1230e/samples/js/browser/index.html#L30. I was hoping to see the GovCloud regions in the dropdown.

@noahsw I have a PR now for this file. The structure of the sample has changed, so the file path you linked to will be deleted at some point.


Formal equiv diff bsg_crossbar_o_by_i_i_els_p_16_o_els_p_16_width_p_16_top.v (Plugin aliases escaped instance names)

Test bsg_micro_designs/bsg_misc/bsg_crossbar_o_by_i/bsg_crossbar_o_by_i_i_els_p_16_o_els_p_16_width_p_16/top.v
The plugin aliases all escaped instance names into one. It only uses the leaf part of the name that contains the hierarchical separator "."

Fixed now


Don't render DOM when not visible.

Currently the modal renders DOM even when it is never opened, as well as after it is closed. Instead we should only render the DOM while the modal is open.

Could not reproduce


Resource exhausted error in the middle of training

I am using a 1070 and 8GB graphic card, and I still get the OOM resource exhausted method in between training a mnist for default configuration. I even Reduced the batch sizefrom 32->16->8 , can you help me with this?

I've been trying to get it the work as well but I'm coming up short. There are two issues causing this.
TF needs everything to be the same dtype during computation of the adaptive step of dopri5, so everything is cast to float64. This is basically your entire model being double the size it normally is.
On top of that, I haven't been successful in implementing the Adjoint method which commutes the backward augmented ode in fixed number of function calls and therefore fixed amounts of memory. So the number of function calls explodes and eventually causes an oom.
At best, try it with a large tolerance of 0.1 or 0.2. Normally, this is going to lead to worse results though. I doubt it would work even then.
I am currently waiting on TF 2.0 to make a guess of how I can implement Adjoint method. There's no direct equivalent to PyTorch Function class for me to port properly.

I am using adam not dopri

Both of the adaptive step methods are costly, Adam takes more time than dopri5 most of the time.

I wanted to classify faces95 using ODENET but, it would be greatly helpful if can use the mnist code

Try the PyTorch version. It's more efficient currently and has the Adjoint method available

okay!

An update on this issue, seems simply using the Euler method (or any fixed step solver for that matter (euler, huen, midpoint, rk4)) seems to properly train a reduced model without issue. I finished training one to completion (160 epochs) and have posted the checkpoint along with the log file.
MNIST is an extremely easy task for CNNs, and it quickly gets 99.37 even with just 62k parameters and a single ODEBlock.
I'm considering writing a script for CIFAR 10, which would be more indicative or the actual performance of ODENets.
Also, theres this new paper from Berkeley AI Research - ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs, which compares against the standard ODENet from the Neural ODE paper on CIFAR 10 and 100 and finds that RK45 (Dopri5 solver) diverges on both tasks for standard ODENets, so even with the Adjoint method propsed by Neural ODE paper, more difficult tasks cannot be solved using the Dopri5.
Hopefully, the authors of the BAIR paper eventually release the code upon acceptance, at which point I hope to directly implement the checkpointed variant with Discretize-Then-Optimize method (but that might take upto a year, maybe 6 months if we're lucky).


Way to automatically detect device and apply correct fixes

Don't know if it's possible but there should be a way to do something like <nixos-hardware/auto-detect> which would automatically include the right config for the device, which could enable including the right config in an automated fashion.
Otherwise a tool that just returns the right path or nothing if no hardware-quirk conf is needed would be cool
Needing this for scripting purposes

When doing inxi -v7 it spits out, among other things:
Machine:
  Type: Laptop System: LENOVO product: 4334 v: Lenovo G570

Based on those (wherever it got those from) the device detection could work

Seems to be /sys/class/dmi/id/product_*
$ tail /sys/class/dmi/id/product_*
==> /sys/class/dmi/id/product_family <==
IDEAPAD

==> /sys/class/dmi/id/product_name <==
4334
tail: '/sys/class/dmi/id/product_serial' kann nicht zum Lesen geöffnet werden: Permission denied

==> /sys/class/dmi/id/product_sku <==
HuronRiver_CRB
tail: '/sys/class/dmi/id/product_uuid' kann nicht zum Lesen geöffnet werden: Permission denied

==> /sys/class/dmi/id/product_version <==
Lenovo G570

(See #49, with similar goals.)
Nix itself will not be able to take a peek at the system, especially given the purity focus flakes is having. This, though, could happen in a "nixos-hardware-detect" kind of script.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/best-practice-for-enabling-hardware-support/7424/1

Is there any news on that? I think it could be very interesting to have at least a script that proposes some configuration for the hardware. For example, if I have this graphics card, then I should enable this module... Ubuntu was doing something similar at some point, not sure if we can get inspired by that. But at least a minimal script that handles some basic configuration would be nice.
I just discovered nixos-hardware, and I think it's a great project, but I doubt that all computers will enter in that table (mine is not for example), so a more generic solution could be nice. For example it seems that intel usually uses this configuration, does that mean that I should use that as soon as I have a Intel computer? If there are some command that can be run to check if I need i915 kernel module, then it could be nice to pack it in a script.

NixOS has a way to do this through nixos-generate-config. There's further discussion here: https://github.com/NixOS/rfcs/pull/70


fscache: fix large stargz chunks processing

builder: sort stargz chunks by uncompressed_offset
Ensure that the stargz chunks in the blob meta are sorted by
uncompressed_offset and ordered by chunk index so that they
can be found quickly at runtime with a binary search.

fscache: some fixups for large stargz chunk
1. use blob_compressed_size to compute stargz's compressed gzip_size;
2. use binary search to find stargz chunk (sorted by uncompressed_offset in blob meta);

Signed-off-by: Yan Song<EMAIL_ADDRESS>

Tested ok with ghcr.io/stargz-containers/wordpress:5.9.2-esgz !

@imeoer , your pull request has been updated. A new test job will be submitted. Please wait in patience.

@imeoer , the test job has been submitted. Please wait in patience.

@imeoer , your pull request has been updated, but no change is detected in the code.

@imeoer , The CI test is completed, please check result:

Test CaseTest Result

merge-target-branch:white_check_mark:SUCCESS

build-docker-image:white_check_mark:SUCCESS

compile-nydus:white_check_mark:SUCCESS

compile-ctr-remote:white_check_mark:SUCCESS

compile-nydus-snapshotter:white_check_mark:SUCCESS

start-nydus-snapshotter-config-containerd:white_check_mark:SUCCESS

run-container-with-nydus-image:white_check_mark:SUCCESS

Congratulations, your test job passed!

@imeoer  can we highlight this feature in README.md?

@imeoer can we highlight this feature in README.md?

I think they can be in another PR, let's fix the break first.


Move deprecated exercises out of exercises dir

We should move the deprecated exercises out of the exercises dir and into some other sub dir of xscala. Maybe just name the dir deprecated.
This way we can keep the deprecated exercises around, without having them polluting the live exercises dir.

Can't merge. This would break exercism.