Should this repo be in the SimplaElements org?

Self explanatory
/cc @bedeoverend

I'm going to vote no on this, because it will include both elements from SimplaElements and the community, making part of SimplaElements org makes it seem like it should only be for elements in that org


matcher does not verify path

I don't know how to fix it yet, so I can only offer a report at present.
    expect(chef_run).to enable_logrotate_app('foo').with(
      cookbook: 'logrotate',
      path: '/install/install-dir/logs/catalina.out',
      rotate: 5,
      su: 'rspec_user rspec_group'
  )

doesn't check that I've added the recipe with a correct path parameter.

I'm not sure if this is related to an issue I am having. The path is being written for logrotate with "'s around it, and this is causing logrotate to fail parsing the path. Not sure if this is fixed in newer versions of logrotate?

Ah, I was passing the path in as one long string of multiple paths. Changed to an array and now working as expected.

The matcher is now much more simple since logrotate_app has been converted to a custom resource.  I'm going to close this for now.


daemon: Deprecate KPR=probe

The option is a never ending source of confusion. Also, after changing
system configuration, the "probe" option could unexpectedly enable some
KPR features which might be not expected by users.
Deprecate the "probe" option for now. In v1.13 we will make the option
to switch to "disabled". Unfortunately, we cannot just remove the
option, as it was used as a default in the Helm charts.

/test

/test


The embading some time missing the information

Let say I have two sentences and title
Whenever I ask for the first title it's give me answer but for the second one they say. I sorry do you have any other questions.
😁😀

It looks like you are having an issue with the embedding not providing the correct information. It is possible that the embedding is not trained on the data you are providing it. To ensure that the embedding is providing the correct information, you can try training the embedding on the data you are providing it. Additionally, you can try using a different embedding model to see if that provides better results.
If you are still having issues, please provide more information about the data you are providing to the embedding, as well as the embedding model you are using. This will help us better understand the issue and provide more specific advice.
I hope this helps! Let me know if you have any other questions.


Pesogrone/player improvements

Play button now can play and stop the music correctly
Skip to the next song is working and changing the artist's album, title, and name.
The previous song is working but still needs to change the artist's album, title, and name.

If you'd like to work on this, you can start by making the Previous song button work, if you don't mind. Also, there is a delay in showing the next album, which could be another point to work on. If you decide to work on this, please let me know.
Demo
https://user-images.githubusercontent.com/114424771/225438281-0f536868-b8f4-4a96-824e-7b3552089b9a.mp4

Looks good! Good to merge!


too many open files

I keep getting syslog: dial udp ...: too many open files after logspout runs for awhile.
Any ideas?

+1.  Me too.  RHEL 6.6 and Docker 1.5.

I image it's creating a new FD and not cleaning up. Will look into it soon unless somebody else does.

Same here with Docker 1.8.1, Ubuntu.
Does someone have an idea for a workaround, eg. adding a Redis instance?

@schmunk42 what version are you using? I think this was a bug with opening redundant UDP connections, but it should be fixed in the master branch. Try using the "gliderlabs/logspout:master" Docker tag.

I was using latest.
I am using this setup with redis now: https://github.com/rtoma/logspout-redis-logstash
It's working great so far.

I believe this has been resolved. If you find otherwise, please comment and we'll re-open the issue.


Add Probability as a Function

I think probability should be considered a function, at the moment we render:
P(X)/6
as:

Which might not be ideal?

I struggle with this one.  Right now f and g are designated as functions.  I half wonder whether it'd make sense to make all single-letter characters followed by parens behave like functions.
But then we'd run into problems, like if p was treated as a function, then sqrtp(p+1) would get rendered as sqrt(p(p+1)), which might not be what was intended...

Another expression that shouldn't be interpreted as function application is x(x+1).

If there ever was a breaking "version 2" syntax, you could require a space between an opening parenthesis and its preceding letter to avoid it becoming a function. Similarly, I am inclined to add spaces between variables being multiplied (and for clarity, also print them with a tiny space between - because often it is useful to use variable names longer than one character, as in programming). But surely there are differing opinions on that...


Fix images

Fixed paths to images and removed not referenced image

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


Add readme badges

So there's the sign-off missing on some commits (maybe https://git-scm.com/docs/git-config/1.8.2#git-config-formatsignoff would be a good idea?).
Second, instead of merging master into feature branches, could we please rebase onto master? I find the history a lot cleaner that way.


Add verify-blob example

Summary

This commit adds a new example which verifies a blob created using cosign sign-blob. The function SignedArtifactBundle::verify_blob has been extracted and moved into the cosign module, which SignedArtifactBundle::verify_blob now calls.
Release Note

NONE
Documentation

NONE

Is the idea the code is better suited to being in mod rather than bundle.rs? Would like to understand the rationale there.

I probably should have put this code in the cosign module instead of the bundle module (SignedArtifactBundle::verify_bundle) to begin with, but it was not until now I had the need to verify a blob without a bundle and thought it made sense to extract the code in common to both functions. I'd be happy to make changes if there is a better place for this.

The example flow worked for me (some small comments inline) and I love the README - very clear!
Re: relocation of the verify_blob() function: I lean toward moving this to mod.rs the way this PR does, as it is cleaner conceptually since it may need to be called in both a bundle and non-bundle scenario. Making the verify_blob() in bundle.rs into a wrapper is slightly awkward, but taking it out of bundle.rs entirely makes the verify-bundle example do slightly more work - I don't have a strong opinion on that part.
I would say this is fine to merge, esp with small changes to the example's README. @lukehinds what do you think?

@lkatalin Thanks for taking a look!

The example flow worked for me (some small comments inline)

I not exactly sure which comments this refers to. Can you point me to them and I'll address them. Thanks

I'm working on a task where I'd like to use verify_blob but only using a public key and not a certificate. Would it make sense to add a function named something like verify_blob_with_public_key :
  ///
  /// Verifies the signature produced by cosign when signing the given blob via the `cosign sign-blob` command
  ///
  /// The parameters:
  /// * `public_key`: the public key used to verify the signature
  /// * `signature`: the base64 encoded signature of the blob that has to be verified
  /// * `blob`: the contents of the blob
  ///
  /// This function returns `Ok())` when the given signature has been verified, otherwise returns an `Err`.
  pub fn verify_blob_with_public_key(public_key: &str, signature: &str, blob: &[u8]) -> Result<()> {
      let ver_key =
          CosignVerificationKey::try_from_pem(public_key.as_bytes()).expect("conversion failed");
      let signature = Signature::Base64Encoded(signature.as_bytes());
      ver_key.verify_signature(signature, blob)?;
      Ok(())
  }

@danbev I think your verify_blob_with_public_key() function would make sense.

@lkatalin Sorry about dismissing your review. I only rebased and squashed the commits related to the comments above.

Actually, looking at @flavio 's comment, it looks like the verify_blob_* functions should move into the CosignCapabilities trait. @danbev Can you make this update? Hopefully then we will be good to go.

@lkatalin @lukehinds @flavio Thanks for all your reviews and patience on this one!


separate godot and rust project directories

separate godot and rust project directories, resolves #16

godot/native/game.gdnlib and godot/native/Main.gdns should be removed from the tree, since these files would be generated by project-utils.

I think its better to have the gdnlib and gdns files after the project has been generated by the template. The project-utils should ignore these files if they are already existing which is already done in this commit

I'm really not sure if I'd want to build for every platform on build-debug or build-release. Even for export, I'd prefer it if the mobile platforms are opt-in and commented out by default, since these platforms are not always applicable, and users might not always have the necessary SDKs installed. These introduce friction that prevent the template from serving its purpose.

Sure I can comment out the make commands initially and let the user un-comment which lines he/she want to be built/exported. I was thinking the other way around :sweat_smile:

I think its better to have the gdnlib and gdns files after the project has been generated by the template.

Is there a way to make the name of game.gdnlib dependent on the name of the crate? Because for a project named foo, project-utils would name the file foo.gdnlib. It would be great if this behavior can be made consistent.

I think its better to have the gdnlib and gdns files after the project has been generated by the template.

Is there a way to make the name of game.gdnlib dependent on the name of the crate? Because for a project named foo, project-utils would name the file foo.gdnlib. It would be great if this behavior can be made consistent.

Unfortunately, the current version of cargo-generate does not support this, but it was supported in an earlier version. I'm not sure why was it removed. I filed an issue asking about this...

I see. I think we can make a separate issue tracking the upstream one. In that case this seems good to merge to me for now!


fix(web-components): remove disabled attribute from components when disabled is false

Summary of the changes
Remove disabled attribute from components when disabled is false so that it doesn't get passed down to the native element causing dimmed to be read by screen readers
Related issue
#799
Checklist

[x] I have added relevant unit and visual regression tests.
[x] I have manually accessibility tested any changes, if relevant.
[x] I have ensured any changes match the Figma component library.

I wonder if you could put the if statement into a helper function and use that instead? It would only save a couple of lines of code for each component but could be worth it


Overview of this feature can be written better

Reading this first paragraph doesn't tell me what this feature does?  Why it is needed.
After reading the second paragraph I gleaned that:

This feature allows me to create a group in Office 365; then at a later time assign it AAD roles.
2, The AAD roles assigned can be JIT based.

Am I correct?
Can you please explain this a bit more clearly:  "When people join the group, they are assigned the role indirectly. "
I am not sure; I understand this.
"If a group is assigned a role, any IT admin who can manage group membership could also indirectly manage the membership of that role."
Example given after that doesn't make a lot of sense to me. Perhaps I am missing a bit of understanding you are assuming I have before I read this passage:
[Enter feedback here]

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

ID: c1414bc2-4151-b667-65f5-b44f2bf582a1
Version Independent ID: b93aee66-1769-8d98-fea5-ebca3a12d5fc
Content: Use cloud groups to manage role assignments in Azure Active Directory
Content Source: articles/active-directory/users-groups-roles/roles-groups-concept.md
Service: active-directory
Sub-service: users-groups-roles
GitHub Login: @curtand
Microsoft Alias: curtand

@D-Moonesinghe thank you for your feedback . We will investigate and update the thread.

@D-Moonesinghe Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.
@curtand  Can you have a look ?

#reassign:rolyon

Hi @D-Moonesinghe
Thanks for your feedback. We made several updates to this article. We added a Why section and added a diagram. Hopefully this helps.
https://docs.microsoft.com/en-us/azure/active-directory/roles/groups-concept
Let us know if you have any additional feedback.
thanks

#please-close


✨ feat: Implement custom exception

Pull Request Test Coverage Report for Build #148
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-5.6%) to 83.22%

Totals

Change from base Build #142:
-5.6%

Covered Lines:
367

Relevant Lines:
441

💛  - Coveralls


add ardusimple kits to external gps

related to #124

adding ArduSimple to List of known supported GPS devices

I believe this is android-only at the moment


Using custom camel componet into quarkus-camel

I have a custom component that I want to use in camel-quarkus, how should I convert this component?

In JVM mode your component should work out of the box but if you want to take advantages, you may think creating an extension.
If you plan to contribute it to apache-camel and then add the related extension here, please have a look at: https://camel.apache.org/camel-quarkus/latest/contributor-guide.html or have a look at the extensions we provides in this repo.

@wuilmeryair can we close this issue ?

Yes this issue can be closed
Regards.
El jue., 21 nov. 2019 a las 8:28, Luca Burgazzoli<EMAIL_ADDRESS>escribió:

@wuilmeryair https://github.com/wuilmeryair can we close this issue ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/camel-quarkus/issues/379?email_source=notifications&email_token=ABI5JWAKNHSATH3HKS2UTR3QUY2BJA5CNFSM4JJTGHXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZHYJQ#issuecomment-556956710,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABI5JWFYBZ6MMT34DLJMVSDQUY2BJANCNFSM4JJTGHXA
.


Greedy Retry

When an edge fails by raising NotImplementedError we will not compute
the cost from the current object to the target and compare it to the
cost of converting from the source to the target. We will then continue
with the cheaper route.
Example:
Let A, B, C, and D be distinct types.
Imagine we have the following routes defined:
A->B cost=100.0
B->C cost=1.0
B->D cost=3.0
C->D cost=1.0
Now we will call convert(D, A()). The initial route selected will be:
A->B, B->C, C->D with a total cost of 102.00.
Assume that we have finished the A->B conversion and then the B-C edge
fails. Currently we would recalculate the route from A to D omitting the
B-C edge which leaves us with A->B, B->D with a total cost of 103.0
This means that we need to duplicate the 100.0 cost to recompute
A->B. This path makes convert consider the route listed above, but also
looks for routes from B to D. We will then see the route B->D with a
cost of 3.0. Because 3.0 is less than the alternative best route of cost
103.0 we will select this new route instead.
side note:
our releases page was very out of date

ping @kwmsmith @sandhujasmine

bump

bump, I think I am going to merge this soon if there are no comments.

@llllllllll LGTM.

The py2 builds are hanging at test discovery. I will investigate this soon. Assuming nothing radical changes based on that I will merge when that is fixed.


Add a Gitter chat badge to README.md

lssc-team/Numa.jl now has a Chat Room on Gitter
@santiagobadia has just created a chat room. You can visit it here: https://gitter.im/Numa-jl/community.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Codecov Report

Merging #1 into master will decrease coverage by 3%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #1      +/-   ##
==========================================
- Coverage   61.06%   58.06%   -3.01%
==========================================
  Files           5        3       -2
  Lines         131      124       -7
==========================================
- Hits           80       72       -8
- Misses         51       52       +1

Impacted Files
Coverage Δ

src/CellArrays.jl
90% <0%> (-10%)
:arrow_down:

src/Polynomial.jl
52.33% <0%> (-0.45%)
:arrow_down:

src/CellQuadratures.jl
100% <0%> (ø)
:arrow_up:

src/Helpers.jl

src/Numa.jl

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 bac292e...3581e2c. Read the comment docs.


translate "description" ?

I noticed you have added locales. So I wondering if the "description" also should be translated?

It does not need to be translated, it's just to help translators.
You can read about the format here and here, it's Firefox's built in translation system for web extensions.


link property for relationships

I use the link property to link to documentation pages of each module, which is great.
It would be useful to also allow relationships to have a link property, so that all the documentation regarding interfaces between components can be linked.
What do you think?

that will be great!

Yes indeed, nice idea, and quite cheap to implement.
I can add to DSL, but do not show on diagrams
I am working on 1.0 with diagrams based on react-flow and implement there


feat(azure): Azure deployment is private is now supported

This makes private deployments supported in Azure.  Also makes the k8s cluster automatically upgrade itself and reverts an earlier change from v3 -> v5 VM's.

@vanpelt I'm retroactively approving this PR.


Clarification on SubscriberBlackboxVerification.createElement

Hello folks,
I'm looking at getting the TCK working against Vert.x.
Currently trying to extend SubscriberBlackboxVerification, and I'm not sure how to implement the createElement() method.
@Override
public Buffer createElement(int i) {
return ??
}
In particular I can't figure out what the parameter i represents (I did read the javadoc but none the wiser)... and how it relates to the return value. (We are using streams of Buffer throughout the TCK tests - Buffer is a Vert.x class)
Any pointers?

Thanks for your feedback (very valuable as a fresh pair of eyes)!
I'll see how I can improve the comments and docs around this.
Here's a short answer right away though:
Since in order to test a Subscriber we need "some publisher". In older versions of the TCK implementers had to provide the publisher as well, to "drive" the test. Currently the publisher (an asynchronous one) is provided. However (here createElement comes into play), there may exist subscribers which only make sense for some weird type of element - for example if I'm a "FileSubscriber" and have implemented it strictly to work with bytearrays. The createElement method allows such Subscribers to be given the type of element they need. The incoming i parameter means "which element".
Most implementation scan simply:
// I'm testing an Integer subscriber:
/* .. */ extends SubscriberBlackboxVerification<Integer> {
  @Override public Subscriber<Integer> createSubscriber() { } // my Integer subscriber
  @Override public Integer createElement(int i) { return i; } // I create elements of the type it wants
}

You may find tests in the examples project useful, here's a subscriber test: https://github.com/reactive-streams/reactive-streams-jvm/blob/master/examples/src/test/java/org/reactivestreams/example/unicast/SyncSubscriberTest.java

Thanks

Should this be closed?

Ping @ktoso

How about closing it with such additional wording: https://github.com/reactive-streams/reactive-streams-jvm/pull/250
Tim's input has been valuable here, if he wasn't sure how to use it, others might as well. I hope the additional paragraph helps in that perspective.

@ktoso Sounds good to me, I've commented on that PR.


lightkurve should cache its SearchResult object

I think lightkurve should somehow cache the SearchResult object, so that if MAST goes down (as it frequently does) or if I'm coding on a plane (as I frequently am) if I run my lk.search_lightcurvefile('NAME') it still gives me the same result, and .download() will just fetch the path to the cached file.
This is quite a difficult feature to add, but I think it should be possible.

If the goal is to just get lightcurve files, one option is to provide a new method, say, download_lightcurvefiles(), which will do:

the search and download
cache the part of SearchResult, so that if the same search is done again, it can fetch the local downloaded files.

Such an approach avoids caching the whole SearchResult objects.
A prototype is available at:  https://github.com/orionlee/PH_TESS_I_LightCurveViewer/blob/master/lightkurve_ext.py
If there are interests, I could possibly generalize and integrate it to proper lightkurve package.

@orionlee Thank you for posting the example!! :+1::+1::+1:
Do you think we should avoid caching the entire SearchResult object at all cost?  A pickled+compressed SearchResult only seems to be a few kilobytes large for a Kepler target, and we can probably cut this in half by removing unnecessary columns from the SearchResult.table object.
The advantage of caching the entire SearchResult is that we wouldn't have to introduce a new function, we'd simply modify search_lightcurvefile to return a cached object if the same query was executed recently.
Example of saving a SearchResult on disk to show file size:
In [1]: import lightkurve as lk; import bz2; import pickle

In [2]: sr = lk.search_lightcurvefile("Kepler-10")

In [3]: len(sr)  # How many files did we find?
Out[3]: 16

In [4]: with bz2.BZ2File('demo.bz2', 'w') as f:
   ...:     pickle.dump(sr, f)

In [5]: !ls -lh demo.bz2    # How large is the object on disk?
-rw-r--r-- 1 gb gb 5.6K Oct 20 20:01 demo.bz2

In [6]: sr.table.columns    # We can probably remove some of these columns from the object
Out[6]: <TableColumns names=('obsID','obs_collection','dataproduct_type','obs_id',
'description','type','dataURI','productType','productGroupDescription','productSubGroupDescription',
'productDocumentationURL','project','prvversion','proposal_id','productFilename','size','parent_obsid',
'dataRights','dataproduct_type_2','calib_level','obs_collection_2','target_name','s_ra','s_dec','t_min',
't_max','t_exptime','wavelength_region','filters','em_min','em_max','target_classification','obs_title',
't_obs_release','instrument_name','proposal_pi','proposal_id_2','proposal_type','project_2',
'sequence_number','provenance_name','s_region','jpegURL','dataURL','dataRights_2','mtFlag',
'srcDen','intentType','obsid','objID','objID1','distance')>

Size of SerachResult is not too important: they are negligible comparing to the dataset anyway.
I'm more worried about how to save / serialize SerachResult correctly and in a maintainable fashion: if it can be done, I do agree that a better approach is to support caching in search methods.
My concerns of serializing SearchResult: SerachResult is largely a wrapper of the underlying astropy mast query result. If the underlying astropy data structure (astropy Table) changes, what will happen if we read the serialized result from an older version with a newer version of the astropy?
If it raises an exception, it's okay (just treating it as a cache miss). I'm more worried if it might get read successfully but incorrectly in some edge cases.

I looked into it a bit more, and believe there is a way to address my above concern. Lightkurve could use astropy.Table 's read/write functions to serialize the result. E.g.,
search_res = lk.search.search_lightcurvefile("TOI150")
# use fits for now, the appropriate file format is TBD
search_res.table.write('data/temp.fits', serialize_method='data_mask', overwrite=True)

# load result from disk
tab_l = astropy.table.Table.read('data/temp.fits')
search_res_from_disk = lk.search.SearchResult(tab_l)

In this way, the actual serialization logic is maintained by astropy, and would be resilient to any of their changes. It should also be safer than pickle, which could arguably pose some security risk, given pickle could potentially load codes.

Thanks for posting your thoughts.  I agree with what you wrote!
Although I don't think we'd run into any serious security or dependency problems with pickle, it is certainly possible for weird stuff to happen because using pickle is far more complicated than simply writing an AstroPy Table to disk.  So, I'm fully on board with simply saving the Table instead of using pickle!
Some additional thoughts on the implementation:

We'll want to store the time of the original search query in the Table.meta dictionary.  If the search result is older than one week (?), we'll want to ignore the cache.
We'll also want to store the value of lightkurve.__version__.  If the cached result was created using a different version, we should probably ignore it.
We'll probably want a convenient lightkurve.search.delete_cache() function which deletes all files stored in the cache, or which deletes all outdated files stored in the cache.

Finally, one outstanding question is whether this belongs inside Lightkurve, or whether we should try to add caching to the underlying astroquery function (i.e. astroquery.mast.Observations.query_criteria()).  /cc @ceb8

It looks like astroquery.mast deliberately chooses not to allow caching, ignoring the underlying caching support in general astroquery.
https://github.com/astropy/astroquery/blob/v0.3.10/astroquery/mast/core.py#L452
I am not familiar with MAST enough to understand the reason. If the reason does remain valid, it clashes with the offline use case in this issue, or a similar use case of in an interactive notebook, an user might want to (temporarily) cache the MAST response to speed up while tweaking the notebook.

@barentsen @orionlee  The current situation wrt cacheing in astroquery.mast is that we cache the download functions but not any of the queries.  The reason the MAST server queries do not us the astroquery caching functionality is that it clashes with the long polling nature of the MAST servers, meaning that often a result with status "EXECUTING" is returned, and if astroquery caching is turned on it will catch any subsequent queries and return that same "EXECUTING" result, and you can never get the actual result because it required the query to actually reach the MAST servers again.

@barentsen I think it could be worth it, consideration would have to be given to the lifetime of the cache, given that the results of queries will not necessarily be static over time. Realistically I am not going to have the bandwidth to write something like this anytime soon though.

Agreed that the lifetime of the cache would definitely have to be set/configured/checked!
We may have a look into it, time-permitting.

I could possibly take a stab at it, but I will need to first look a bit more at astroquery to see if it's something I can commit to and get back to you.

@orionlee Sounds good! :+1:

I am going to close this issue for now because the caching of search results is being implemented as an astroquery feature, most notably here: https://github.com/astropy/astroquery/pull/1634
Depending on how this feature will be implemented inside astroquery, we may or may not have to open a new issue to add support for it inside Lightkurve.
Footnote: as of Lightkurve v1.9.1 the speed of search operations has been increased ten-fold, so anyone who finds this issue because their search operations are slow may want to upgrade to >1.9.1!


[#62]Make first_known_log_id default impl

Signed-off-by: grapebaba<EMAIL_ADDRESS>
Checklist

[ ] Updated CHANGELOG.md describing pertinent changes.
[x] Updated README.md with pertinent info (may not always apply).
[x] Updated guide with pertinent info (may not always apply).
[x] Squash down commits to one or two logical commits which clearly describe the work you've done. If you don't, then Dodd will :).

@drmingdrmer how to update change log?

@drmingdrmer how to update change log?

@GrapeBaBa
There is a script ./scripts/build_change_log.py <new_tag> <commit_hash> to do this job.
Change log is only built when creating a new tag for release.
Personally, I prefer tracking changes with git commit-message.  :DDD


Count connection terminations, so we can report on them

Required by https://github.com/weaveworks/weave/pull/2547, to fix https://github.com/weaveworks/weave/issues/2523

LGTM.


Predicates

Following on here https://github.com/asinghvi17/GeometryOps.jl/pull/3
Using exact predicates will be something important to consider, making use of ExactPredicates.jl being the best choice. There is an issue of having to convert to Tuples, but this isn't an issue unless points are represented as (non-static) vectors - you already access individual coordinates anyway, so there is no difference in allocations. Also importantly, the performance loss of considering exact predicates is nothing major - for coordinates far from degeneracy, the fast path in ExactPredicates.jl makes it the same as using standard determinant definitions. For point sets where you end up needing to use the more complicated paths in ExactPredicates.jl, the performance does slow down - but that's exactly where you need it!
As an example, my original implementations in DelaunayTriangulation.jl just used determinant definitions for the predicates. You quickly run into infinite loops or e.g. triangles with the incorrect orientation. Some good examples demonstrating this importance here https://www.sciencedirect.com/science/article/pii/S0925772107000697 if you are curious. See also the first chapter here.
For the function is_point_on_segment I mentioned in the PR, where you need an exact predicate is in the computation of cross - this is just the definition of the orient predicate. It's really difficult to detect points on line segments without exact predicates, and when it matters it really matters that we detect collinear points in certain geometric algorithms (at least the ones I use anyway). You can see how I determine whether a point is on a line segment with ExactPredicates.jl here (which assumes already that the points are collinear, detected via point_position_relative_to_line (same as orient).
Lastly: You might be interested in considering three-valued logic rather than Bools, as argued e.g. here. I implement this with a Certificate system in DelaunayTriangulation.jl, but that's rather specific; ExactPredicates.jl uses (-1, 0, 1). It just turns out to be nice to be able to distinguish between cases like e.g. on, left, right. (Certificates were needed since some predicates even needed > 3 outcomes! like classifying the type of an intersection or specifying how a line intersects a triangle).
Anyway, don't have to take all of this on but thought you might appreciate some input. I had to think a lot about this at the time of initially implementing DelaunayTriangulation.jl.

This all sounds great, and like something we want. I think the allocations are actually fine, I didn't understand the scope of your package at first.
But the main problem is that - I don't really understand your package. The docs are terse and the code generation and macros means its hard to just drop down to reading the code.
We will likely need someone with your expertise to actually hook this up.
For now at least I will just bang out the structure of the package, as far as I can tell we can plug in better predicates at any time?

(I've nothing to do with the code in that package, FYI - My contributions there are just some typo fixes. It's just a very useful tool / impressive piece of work.)
I'm not sure the main difficulties with the package's code/documentation. The start of the docs here https://danielvandh.github.io/DelaunayTriangulation.jl/dev/predicates/, after Certificate and up to the meet_predicate docstring, might help clarify some things, the functions in that part are all from ExactPredicates.jl. The aim is to, essentially, compute the value of the predicate and use that value to determine whether more precision is needed, adapting until the sign of the predicate is known exactly. Anyway, yes I could probably look into it myself eventually if needed.
Indeed, you can just hook into it anytime. That's something I considered here https://github.com/DanielVandH/DelaunayTriangulation.jl/blob/main/src/predicates/general.jl#L1-L110 also, just redefining orient_predicate = orient and incircle_predicate = incircle, etc., so that the definitions can be easily changed later if needed.

@DanielVandH we now use ExactPredicates.jl :)


httrack: depend on libiconv unconditionally

Description of changes
libiconv is already defined per-platform.  The actual libiconv library won't be built on platforms like Linux where it doesn't need to be, so there's no need to maintain a separate platform list here.
Required to build for FreeBSD.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Would it be beneficial to semi-automatically fix the other ~200 instances of this?

Would it be beneficial to semi-automatically fix the other ~200 instances of this?

It doesn't seem to be necessary in all cases, and for some packages it would be unnecessary churn, e.g. if they only support Darwin, or only Darwin and Linux.  So until now I've preferred to keep it to ones that I can test.

and for some packages it would be unnecessary churn, e.g. if they only support Darwin, or only Darwin and Linux

I don't get this part. If they only support Darwin, then optional isDarwin seems to make even less sense?

I don't get this part. If they only support Darwin, then optional isDarwin seems to make even less sense?

Oh yes, good point.
e.g. if they only support ~Darwin, or only~ Darwin and Linux.


cleanup: remove unnecessary require for global Buffer

The Buffer object is globally available in Node.js, so there is no need to explicitly require it.

@wesleytodd Does this require an entry in HISTORY.md? The changes don't alter any behavior; they simply remove unnecessary requires of the global buffer.

Thanks! yeah we will be automating that, but I think there is some question still of how deep we want to go on the automation, so it has not happened yet. Just making sure we don't make a mistake by abandoning the process even if it is a bad process 😄 .


cookie dependency to a patched version (>=0.7.0) ?

Bug report
low                 │ cookie accepts cookie name, path, and domain with out  │
│                     │ of bounds characters                                   │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package             │ cookie                                                 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ <0.7.0                                                 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions    │ >=0.7.0                                                │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths               │ . ><EMAIL_ADDRESS>><EMAIL_ADDRESS>               │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info           │ https://github.com/advisories/GHSA-pxg6-pf52-xh8x

[ x] I confirm this is a bug with Supabase, not with my own application.
[ x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Go to '…'
Click on '…'
Scroll down to '…'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information

OS: [e.g. macOS, Windows]
Browser (if applies) [e.g. chrome, safari]
Version of supabase-js: [e.g. 6.0.2]
Version of Node.js: [e.g. 10.10.0]

Additional context
Add any other context about the problem here.

Hello, I was going to create an isue to report the same thing but then I comment here, I have NPM that tells me there is a vulnerability in @supabase/ssr
# npm audit report

cookie  <0.7.0
cookie accepts cookie name, path, and domain with out of bounds characters - https://github.com/advisories/GHSA-pxg6-pf52-xh8x
fix available via `npm audit fix --force`
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/cookie
  @supabase/ssr  *
  Depends on vulnerable versions of cookie
  node_modules/@supabase/ssr
    @nuxtjs/supabase  >=1.3.1
    Depends on vulnerable versions of @supabase/ssr
    node_modules/@nuxtjs/supabase

Thanks for your work!

@J0 This is still issue. Can you release the current release candidate?

Merged the Release. Going to close for now but feel free to re-open if still an issue

Thank you!


Why template creating API does not return id of the new created template?

Hi, I'm try to operate on Open Falcon through Falcon-Plus HTTP API. I find on success creation of template /api/v1/template only return a string message.
Could anybody help to explain why not returning information of the newly  created template, especially the id, anyway, template id is used extensively with other  template related APIs.

这确实是个历史遗留问题，我们需要去修复一下

I submitted a PR for this issue #576


Merge develop into main

Release v1.0.0: Integration of RabbitMQ, Updated Documentation, and Other Enhancements
Description
This pull request merges the develop branch into the main branch, bringing several key updates and enhancements:

RabbitMQ Integration: Added RabbitMQ for messaging between reviewms and companyms, including producer and consumer configurations, and integrated OpenFeign for inter-service communication.
API Gateway Updates: Enhanced API Gateway configuration to work with Eureka for improved routing and load balancing.
Documentation Updates: Revised README and apianddb.md to include new features and changes, including RabbitMQ setup and updated API/database information.

These changes enhance the project's messaging capabilities, improve service communication, and ensure the documentation is up-to-date with the latest developments.

Merging develop into main. This update includes the integration of RabbitMQ for messaging between reviewms and companyms, enhanced API Gateway configuration, and updates to the project documentation. Key changes:

RabbitMQ Integration: Implemented messaging queues with RabbitMQ, including producer and consumer setups, and integrated OpenFeign for service communication.
API Gateway Enhancements: Updated API Gateway configuration to work with Eureka for improved request routing and load balancing.
Documentation Updates: Revised README and APIDBDesign.md to reflect recent changes and new features.


extending SluggableBehavior

I need a slug field for my model and it's going to be shown in url address. current yii\helpers\Inflector::slug() method does not produce what I need (it removes characters of my language) so I easily extended it and made needed changes.
The problem is there is no easy way to make SluggableBehavior use the new slug() method instead of default one! there is a 50-line-length method named getValue() and among so many other things, it produces the real slug value to be saved. Am I supposed to extend the behavior and copy the whole method to edit just 1 line of it?
I think it should have a protected generateSlug() method which makes it easy to extend and alter slug creation logic. or is there another way I'm not aware of?

good suggestion

I'll make a PR in an hour then :)

I'm already working on it :)

Woops, I actually spent 2 hours on it :D
I also made some refactors, would you please take a look at my PR too?
I didn't edit the changelog file since you did the real fix :)


WordWrap property and Padding margin

TStyledSpeedButton does not have WordWrap property. Is it possible to insert it? If the text is long, the characters are printed near the edge. IS possible have a Memo Caption With carrige return ?
Is possibile a padding margin internal of a StyledButton ?

Example of button with large caption.

TStyledSpeedButton was created only for backward compatibility to TSpeedButton (that haven't WordWrap). You must use TStyledGraphicButton, that have WordWrap property.
It's a bug o StyledButton, because don't works as classic TButton... I'll fix it, as soon as possible

Fixed in 3.6.7


DX: Add more type hints

Coverage remained the same at 92.873% when pulling 08d17dffeb980ba61b7833b185c1c05e8f1feb25 on SpacePossum:master_types into f736dc928cd803c93bcaadaef24b738e2a0548e4 on FriendsOfPHP:master.

rebase on top of latest without any other changes done


No prices found for google_compute_instance (Linux/UNIX, on-demand, c2d-highcpu-2)

The cli is producing $0 costs with the "No prices found..." for google instances of type c2d-highcpu-2.  The following terraform can be added to the compute_instance_test test case to reproduce the issue:
resource "google_compute_instance" "debug" {
  name = "debug"
  machine_type   = "c2d-highcpu-2"
  zone           = "europe-west1-b"
  enable_display = true

  tags = ["k8s-cluster", "k8s-lb"]

  boot_disk {
    initialize_params {
      image = "ubuntu-2004-lts"
      size  = 30
    }
  }

  network_interface {
    network = "default"
  }
}

If possible I would like to work on this issue

Thanks @rekram1-node! The contributing guide should help you get started. Look for the two files called compute_instance.go to see what's going on, and use the above test terraform resource to debug. The --log-level=debug are also your friend :)

Hey @alikhajeh1, I want to work on this if no one else is working.

Hi @AnshulAngaria, I've assigned you to this. Let us know if we can help with anything.

Can't replicate the issue, using above TF gives the following output
$ infracost breakdown --path .
Evaluating Terraform directory at .
  ✔ Downloading Terraform modules
  ✔ Evaluating Terraform directory
  ✔ Retrieving cloud prices to calculate costs

Project: .

 Name                                                      Monthly Qty  Unit   Monthly Cost

 google_compute_instance.debug
 ├─ Instance usage (Linux/UNIX, on-demand, c2d-highcpu-2)          730  hours        $60.25
 └─ Standard provisioned storage (pd-standard)                      30  GB            $1.20

 OVERALL TOTAL                                                                       $61.45
──────────────────────────────────
1 cloud resource was detected:
∙ 1 was estimated, it includes usage-based costs, see https://infracost.io/usage-file

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Project                                            ┃ Monthly cost ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ .                                                  ┃ $61          ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

I'm interested in contributing as well


Fixed documentation url, bumped version

See coredump-ch/spaceapi#70

Looks fine to me, but can't one upload a new version of the metadata only?

Apparently not. Because the metadata is built into the release package.


Update contributions.md from being a wiki

Now that we're not using a true wiki, we need to update the contribution guidelines.

Is this still relevant? It looks like its been updated as it doesn't have mentions of wiki stuff anymore.

No I  took care of it once I realized how important it was to have sane contribution guidelines for this kind of project. Thanks.


autocompletion for odo link

odo link should have autocompletion for both services and components
When I do odo link <tab> it should suggest me list of components and services that I have deployed. And that I can link component to.

@kadel I will pick this up and start working on it


WebGL.GetError on Firefox does sometime return a string...

Hum, I do not have a good idea yet on how to write test for this wrapper. Will think about it a bit.

Might be able to do something by mocking 'c'.

I don't think it needs to be that complex. If it was a new method (getErrorInt or something) that passes in the result of c.GetError then you don't have to mock anything...

I don't think it needs to be that complex. If it was a new method (getErrorInt or something) that passes in the result of c.GetError then you don't have to mock anything...

This wouldn't prove that their is no regression as we could change the code that call getError and we wouldn't trigger that path. Never the less, I realize that this is a bit more complex as this code use the js.Value from syscall/js provided by go wasm. Meaning the code can only be executed inside a browser. There are solution to run wasm test in a github action using an embedded chrome, but I think this is a large scope creep on this PR. It would be good to add tests infrastructure to cover problem like this.

This wouldn't prove that their is no regression as we could change the code that call getError and we wouldn't trigger that path. Never the less, I realize that this is a bit more complex as this code use the js.Value from syscall/js provided by go wasm. Meaning the code can only be executed inside a browser. There are solution to run wasm test in a github action using an embedded chrome, but I think this is a large scope creep on this PR. It would be good to add tests infrastructure to cover problem like this.

Accepting as too much work at this time, this repo is a fork of other work and does not have the same standards as Fyne main.
Be aware that all new code should have tests in our main repos, eventually we will insist on the same for all as the runtime depends on quality all the way down.


Update mendix-feedback.md

Updated the Mendix Feedback document. The images are not ready.

Planned module release date: Dec 8

Planned module release date: Dec 8

Images are correct. This PR will merge later today.


[Bug] Widgets symbol must be same on both Side bar as well as on entity explorer

https://www.notion.so/Widgets-symbol-must-be-same-on-both-Side-bar-as-well-as-on-entity-explorer-782a7e3c33dd493f8c25164a2103b1a0

@prapullac can you mention which widget symbols are not the same

@Nikhil-Nandagopal
We can close this issue as this does not exits now.


[AutoPR eventgrid/data-plane] Adding Media Services Event Grid schema

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3097

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/1870


ci: merge staging to master

This is an automatic PR generated by the pipeline CI/CD. This will be automatically fast-forward merged if successful.

Pipeline Attempt on 555603400 for b53c9327411f92aef172f83d94798092a8e79608
https://gitlab.com/MatrixAI/open-source/typescript-demo-lib/-/pipelines/555603400

Pipeline Succeeded on 555603400 for b53c9327411f92aef172f83d94798092a8e79608
https://gitlab.com/MatrixAI/open-source/typescript-demo-lib/-/pipelines/555603400


Enhancement: Extend spo list webhook set command with possibility to set clientState

Add an extra option to spo list webhook set to update clientState property.

Option
Description

-c, --clientState [clientState]
A client state information that will be passed through notifications.

Pick me!

All yours!


Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse.

Fixes

Fixes #3326

Proposed Changes/Todos

[x] Ensure the Menu use the correct view passed on the event
[x] Add more unit tests to Menu and ContextMenu to proof

Pull Request checklist:

[x] I've named my PR in the form of "Fixes #issue. Terse description."
[x] My code follows the style guidelines of Terminal.Gui - if you use Visual Studio, hit CTRL-K-D to automatically reformat your files before committing.
[x] My code follows the Terminal.Gui library design guidelines
[x] I ran dotnet test before commit
[ ] I have made corresponding changes to the API documentation (using /// style comments)
[x] My changes generate no new warnings
[x] I have checked my code and corrected any poor grammar or misspellings
[x] I conducted basic QA to assure all features are working

LGTM
Although could be less verbose using target-typed new instead of explicitly typed constructors, but that's not important.

What do you mean specifically and where?

I think the Menu don't need to subscribe the Application.MouseEvent event because when a menu is opened it grab the mouse and then the MouseGrabView can be used to handle it, as before. It's only a note and leaving as it's.


[Bug]: Error: Process completed with exit code 255.

Current Behavior
paf22-test-agent-1            | Skipping scenario 'OppositeVehicleTakingPriority_4' due to setup error: time-out of 300000ms while waiting for the simulator, make sure the simulator is ready and connected to carla-simulator:2000
paf22-test-agent-1            |
paf22-test-agent-1            | Traceback (most recent call last):
paf22-test-agent-1            |   File "/opt/leaderboard-py3/leaderboard/scenarios/route_scenario.py", line 321, in build_scenarios
paf22-test-agent-1            |     scenario_instance = scenario_class(self.world, [ego_vehicle], scenario_config, timeout=self.timeout)
paf22-test-agent-1            |   File "/opt/scenario_runner/srunner/scenarios/opposite_vehicle_taking_priority.py", line 267, in __init__
paf22-test-agent-1            |     super().__init__(world, ego_vehicles, config, randomize, debug_mode, criteria_enable, timeout)
paf22-test-agent-1            |   File "/opt/scenario_runner/srunner/scenarios/opposite_vehicle_taking_priority.py", line 70, in __init__
paf22-test-agent-1            |     super().__init__("OppositeVehicleJunction",
paf22-test-agent-1            |   File "/opt/leaderboard-py3/srunner/scenarios/basic_scenario.py", line 64, in __init__
paf22-test-agent-1            |     self._initialize_actors(config)
paf22-test-agent-1            |   File "/opt/scenario_runner/srunner/scenarios/opposite_vehicle_taking_priority.py", line 122, in _initialize_actors
paf22-test-agent-1            |     opposite_actor = CarlaDataProvider.request_new_actor(
paf22-test-agent-1            |   File "/opt/leaderboard-py3/srunner/scenariomanager/carla_data_provider.py", line 625, in request_new_actor
paf22-test-agent-1            |     CarlaDataProvider._world.wait_for_tick()
paf22-test-agent-1            | RuntimeError: time-out of 300000ms while waiting for the simulator, make sure the simulator is ready and connected to carla-simulator:2000
paf22-test-agent-1            |
paf22-test-agent-1            | > Registering the route statistics
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7735 (sensor.other.imu)
paf22-test-agent-1            | ERROR: failed to destroy actor 7735 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7734 (sensor.other.gnss)
paf22-test-agent-1            | ERROR: failed to destroy actor 7734 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7733 (sensor.other.radar)
paf22-test-agent-1            | ERROR: failed to destroy actor 7733 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7732 (sensor.lidar.ray_cast)
paf22-test-agent-1            | ERROR: failed to destroy actor 7732 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7731 (sensor.camera.rgb)
paf22-test-agent-1            | ERROR: failed to destroy actor 7731 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7730 (sensor.camera.rgb)
paf22-test-agent-1            | ERROR: failed to destroy actor 7730 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7729 (sensor.camera.rgb)
paf22-test-agent-1            | ERROR: failed to destroy actor 7729 : unable to destroy actor: not found
paf22-test-agent-1            | WARNING: attempting to unsubscribe from stream but sensor wasn't listening: Actor 7728 (sensor.camera.rgb)
paf22-test-agent-1            | ERROR: failed to destroy actor 7728 : unable to destroy actor: not found
Aborting on container exit...
paf22-test-agent-1 exited with code 255
 Container paf22-test-agent-1  Stopping
 Container paf22-test-agent-1  Stopped
 Container paf22-test-roscore-1  Stopping
 Container paf22-test-carla-simulator-1  Stopping
 Container paf22-test-carla-simulator-1  Stopped
 Container paf22-test-roscore-1  Stopped
Error: Process completed with exit code 255.

Expected Behavior
No response
How to reproduce the issue
No response

https://github.com/una-auxme/paf23/actions/runs/8185238686/job/22381819489#step:6:11353

RuntimeError: time-out of 300000ms while waiting for the simulator, make sure the simulator is ready and connected to carla-simulator:2000

Re-run was successful.
https://github.com/una-auxme/paf23/pull/198/checks


fix: add tags check when b.tags nil

Related issue: https://issues.redhat.com/browse/SDA-7178
What
Map was not being setup before use
Why
go panics when trying to assign an entry to nil map

/lgtm


Create Representations “e168434e-b812-48b0-b33b-54c3e0826103/too-many-bats”

Automatically generated by Static CMS

👷 Deploy Preview for endearing-maamoul-70d6fa processing.

Name
Link

🔨 Latest commit
11245c863c05133cfd1f04bae37ff9d08a60429d

🔍 Latest deploy log
https://app.netlify.com/sites/endearing-maamoul-70d6fa/deploys/65f9ee210ca9690008a24635


Fix warnings on all platforms for cygwin specific code.

warning: declaration requires an exit-time destructor [-Wexit-time-destructors]
warning: declaration requires a global destructor [-Wglobal-constructors]

static std::mutex swiftOnceMutex is never used on non-Cygwin platforms

@swift-ci please smoke test

Merging, as doesn't affect OSX/Linux builds - only Windows


FlinkKinesisConsumer metric groups and publication should be externally configurable

Problem
Today, there is no way to configure the metrics produced by FlinkKinesisConsumer and its subcomponents. This can lead to large metric related costs for streams with a large number of shards in environment such as Amazon Kinesis Data Analytics for Apache Flink where downstream where platform control is limited. In some scenarios, stream level metrics are sufficient for observability.  Having the ability to select the metrics, along with their granularity (i.e. selection of sub metric groups) give greater control to users and relieve them from having to fork the code to achieve such ends.
Proposal
Expose the ability to effect the metric group setup in KinesisDataFetcher#runFetcher.
Specifically, in this block of code:
        shardDeserializationSchema.open(() -> consumerMetricGroup
		        .addGroup("subtaskId", String.valueOf(indexOfThisConsumerSubtask))
		        .addGroup("shardId", streamShardHandle.getShard().getShardId())
		        .addGroup("user"));

It should be possible to include or exclude any subset of subtaskId, shardId, user, including the empty set.
Similarly, in this code:
        shardConsumersExecutor.submit(
		        createShardConsumer(
				        seededStateIndex,
				        streamShardHandle,
				        subscribedShardsState.get(seededStateIndex).getLastProcessedSequenceNum(),
				        registerShardMetricGroup(
						        consumerMetricGroup, subscribedShardsState.get(seededStateIndex)),
				        shardDeserializationSchema));

        ...

        private MetricGroup registerShardMetricGroup(final MetricGroup metricGroup, final KinesisStreamShardState shardState) {
        return metricGroup
		        .addGroup(
				        KinesisConsumerMetricConstants.STREAM_METRICS_GROUP,
				        shardState.getStreamShardHandle().getStreamName())
		        .addGroup(
				        KinesisConsumerMetricConstants.SHARD_METRICS_GROUP,
				        shardState.getStreamShardHandle().getShard().getShardId());
        }

It should be possible to  include or exclude any subset of streamName, shardId,  including the empty set, as well as configure which of the following to publish in ShardConsumerMetricsReporter or PollingRecordPublisherMetricsReporters:
	public static final String MILLIS_BEHIND_LATEST_GAUGE = "millisBehindLatest";
	public static final String SLEEP_TIME_MILLIS = "sleepTimeMillis";
	public static final String MAX_RECORDS_PER_FETCH = "maxNumberOfRecordsPerFetch";
	public static final String NUM_AGGREGATED_RECORDS_PER_FETCH = "numberOfAggregatedRecordsPerFetch";
	public static final String NUM_DEAGGREGATED_RECORDS_PER_FETCH = "numberOfDeaggregatedRecordsPerFetch";
	public static final String AVG_RECORD_SIZE_BYTES = "averageRecordSizeBytes";
	public static final String RUNTIME_LOOP_NANOS = "runLoopTimeNanos";
	public static final String LOOP_FREQUENCY_HZ = "loopFrequencyHz";
	public static final String BYTES_PER_READ = "bytesRequestedPerFetch";

@bobtiernay-okta we are not planning on adding new features to this repository. I propose you open a Jira in the apache project and we can take it from there. Please add the Jira reference here if you do not mind


Always use minimal dimension for vector-vector common type derivation

I've experienced a cast error reported by GLSL compiler. Code similar to this:
float3 normal = normalize(float4(1, 1, 1, 1) - float3(1, 1, 1));
Gets converted into:
vec3 normal = vec3(vec4(1, 1, 1, 1) - vec4(vec3(1, 1, 1))));
But it seems vectors cannot be cast to a higher dimension, i.e. vec4(vec3(...)) is invalid GLSL. This means when a common type denoter it looked up, for vectors it must always be the lower dimension. I'm not sure if my change breaks some other code that might have been relying on opposite behavior.
I don't think this is an issue for matrices, as the spec seems to imply that unpopulated matrix entries will be equivalent to identity matrix (section 5.4.2 of 4.5 spec).

I've added another commit, which fixes the same error but in a different place.
In cases where a smaller vector (e.g. vec2) type MUST be cast to a larger vector type (e.g. vec4), zero expand the smaller vector.
This can happen for function arguments. In particular for me it happened for imageStore where in HLSL exact types like float2 or float3 are used, but in GLSL it must be a 4 component vector, where other components are just ignored.

Good work, looks like you are currently working more on that project than me =)

Happy to work on a nice clean project like this. Was considering integrating glslang before I ran into XShaderCompiler, but that codebase looked like a mess.


#78 implementation of maps

Assigned Issue
#21
Have you read the Contributing Guidelines?
Yes/No
Files Affected ?
name_of_file.extension
Checklist

[ ] I've read the contribution guidelines.
[ ] I've checked the issue list before deciding what to submit.

please assign it to me

i added the issue number

i mention the issue number please merge it

please accept it as hacktoberfest accepted


Names

Just some naming things that irked me.  Feel free to ignore. ;-)

You missed one in https://github.com/sosedoff/capistrano-unicorn/blob/1afa872d907ac67627afceea1006a06320298a2d/lib/capistrano-unicorn/capistrano_integration.rb#L32

The new version hasnt been released yet, so i'll go over changes in more detail anyway.
Thanks for pointing that out.


Fix extrinsics status in polkadot js

Whenever someone is trying to send extrinsic over Polkadot JS interface running in top of KAGOME we see that transaction is being applied, but interface does not show that it was finalized:
KAGOME shows:

Substrate shows:

Likely issue is with subscription mechanism for extrinsics status

issue persists


market detail

Coverage increased (+0.09%) to 72.404% when pulling 42c77d6526385e3ea637e950b636bb791fcc5588 on 644-market-detail into f2540a7f767fdeb7046d5d1c77fd317a16962353 on master.

I'm going to go ahead and merge this, however the placement of the extra info fields needs some work IMO.  (All the info fields probably shouldn't just be crammed into the top of the trade panel in a big horizontal list.)


Pandas KeyError during kickoff analysis

Attempted to analyze this replay: https://cdn.discordapp.com/attachments/594899039355666432/599450806428762113/21DF74C045EEF30284D1339ECEC561D4.replay but carball crashed.
Happy to provide any other info you'd need!
Python stack trace:
Traceback (most recent call last):
  File "stats_init.py", line 10, in <module>
    carball.analyze_replay_file(init_replay_file_path)
  File "<project-folder>\venv\lib\site-packages\carball\decompile_replays.py", line 52, in analyze_replay_file
    analysis.create_analysis()
  File "<project-folder>\venv\lib\site-packages\carball\analysis\analysis_manager.py", line 59, in create_analysis
    data_frame, kickoff_frames, first_touch_frames)
  File "<project-folder>\venv\lib\site-packages\carball\analysis\analysis_manager.py", line 83, in perform_full_analysis
    self.events_creator.create_events(game, proto_game, player_map, data_frame, kickoff_frames, first_touch_frames)
  File "<project-folder>\venv\lib\site-packages\carball\analysis\events\event_creator.py", line 32, in create_events
    self.calculate_kickoff_stats(game, proto_game, player_map, data_frame, kickoff_frames, first_touch_frames)
  File "<project-folder>\venv\lib\site-packages\carball\analysis\events\event_creator.py", line 38, in calculate_kickoff_stats
    kickoffs = BaseKickoff.get_kickoffs_from_game(game, proto_game, self.id_creator, player_map, data_frame, kickoff_frames, first_touch_frames)
  File "<project-folder>\venv\lib\site-packages\carball\analysis\events\kickoff_detection\kickoff_analysis.py", line 40, in get_kickoffs_from_game
    BaseKickoff.set_jumps(kPlayer, player, data_frame, frame, end_frame)
  File "<project-folder>\venv\lib\site-packages\carball\analysis\events\kickoff_detection\kickoff_analysis.py", line 56, in set_jumps
    if collected_boost_df[f] == True:
  File "<project-folder>\venv\lib\site-packages\pandas\core\series.py", line 868, in __getitem__
    result = self.index.get_value(self, key)
  File "<project-folder>\venv\lib\site-packages\pandas\core\indexes\base.py", line 4375, in get_value
    tz=getattr(series.dtype, 'tz', None))
  File "pandas\_libs\index.pyx", line 81, in pandas._libs.index.IndexEngine.get_value
  File "pandas\_libs\index.pyx", line 89, in pandas._libs.index.IndexEngine.get_value
  File "pandas\_libs\index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 987, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 993, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 9434

This was probably fixed with https://github.com/SaltieRL/carball/pull/163 already, I'll check later

Thank you @Longi94 for the quick response and fix! I'll make the needed change to my virtual environment's copy of carball for the time being, can't wait for the pypi release 🎉


PDB file reader cannot read SSBOND record without trailing spaces

PDBFileReader cannot read SSBOND record not containing space characters at the end of the line (after the residue number). This is not conforming to the PDB file specification, but PDB files containing this type of SSBOND records are produced by REFMAC5.

Corrected the problem [74433bebd680517fa8883c916c21eae07f0caf0a]


[FR]: Search movie by keyword

Is there an existing issue for this?

[X] I have searched the existing issues

Related app
All - Android
Describe the problem
As a user, I want to have a search functionality in the movies section or somewhere in the app.
Describe the solution
No response
Additional context
No response
Code of Conduct

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

I would suggest adding only one screen for search and display all search results in one place (for now: Movies and shows. Later we can display actors and episodes as well)

I would suggest adding only one screen for search and display all search results in one place (for now: Movies and shows. Later we can display actors and episodes as well)

So do you think I should add a tab in home?

Yes, That would be great. And what do you think of this sketch?

It is great. I will do it.

Yes, That would be great. And what do you think of this sketch?

It is great. I will do it.
Hi Mr. @moallemi.
TMDB has three API for search, movie, tv shows and multi search.
In multi search API it gives me dynamic list of movie or show or person (actor).
what would you suggest to parse these dynamic data? it must be handled in API layer or datasource layer?
It's better to have another response parser for it or just return Any type and handle this mapping inside datasource?

Yes, That would be great. And what do you think of this sketch?

Hi Mr. @moallemi.
TMDB has three API for search, movie, tv shows and multi search.
In multi search API it gives me dynamic list of movie or show or person (actor).
what would you suggest to parse these dynamic data? it must be handled in API layer or datasource layer?
It's better to have another response parser for it or just return Any type and handle this mapping inside datasource?

Dear @hadi-norouzi,
I'd suggest adding a separate search everywhere:

In :data:api:tmdb  -> TmdbSearchService
In :data:model, define new data type

sealed class SearchResult {
    data class Video(val item videoThumbnail: VideoThumbnail)
    // later we can add other search result types
    // data class Actor(val item actor)
}

Then new :data:tmdb-search module, in here we return list of a new model called
so we need a new mapper to map the tmdb search result to our custom SearchResult data type
then we will have:

interface TmdbSearchRepository {
    fun searchStream(query: String): Flow<PagingData<SearchResult>>
}

Then new :domain:tmdb:search in domain and so on

Let me know if you have any questions.


What do we want each segment to do?

My thoughts so far:

Contributors: sign up for email list
Maintainers: improve their project
Corporate decision makers: encourage employees to contribute

How do we track the success of the 2nd two CTAs? Do we need to?
For maintainers, I could see us making a separate email list, but I also don't want to get too bogged down in lists (especially as we don't really have capacity to maintain them).
For corporate, we could measure by number of official partnerships, or if we offer special content (ex. policy kit), number of downloads.
I'm also inclined to just focus on messaging and reaching contributors to start, as that seems to be the main point of this program.
@MikeMcQuaid @bkeepers

How do we track the success of the 2nd two CTAs? Do we need to?

I guess we'll track contributions with the OAuth app: https://github.com/ossfriday/ossfriday/issues/34

For corporate, we could measure by number of official partnerships, or if we offer special content (ex. policy kit), number of downloads.

This seems reasonable/sensible.

Yep, I think it's:

Audience
Message
Call to Action
Metric

Contributors
Contribute regularly, as part of your job
OAuth signup
# of Friday contributions (tracked in app)

Maintainers
Improve your project
OAuth signup
# Friday contributions to a project they have commit access to (tracked in app?)

Companies
Encourage employees to contribute
Sign up for policy kit
Number of kit downloads

I don't love the corporate one (feels like there should be a smaller CTA here), but I think the most important metric overall is the contributor one, so it's ok.
@mikemcquaid Given the above, I wonder whether we can track maintainer contributions slightly differently in the app dashboard. I'll close this out and comment in the relevant issue.

Scratch that, I thought about it and realized it will get complicated. There are maintainer- and contributor-specific actions, but those aren't always distinct people (ex. a maintainer who also wants to contribute regularly), and I don't want to force people into buckets.
Ignore me, we're good!

Updated table above. We'll track Friday contributions in the app. If we ever needed to slice by commit access, we could prob pull that data, but we don't need to overthink it.


HOS : Create Bucket GCP

Issue/Feature Description:
Why this issue to fixed / feature is needed(give scenarios or use cases):
Create bucket from SODA , to fulfill YJP use-case of Bucket creation and placement in a Storage Tier.
How to reproduce, in case of a bug:
N/A
Other Notes /  Environment Information: (Please give the env information, log link or any useful information for this issue)

Completed in I Release

Completed in I Release

Implemented in Isabela Release


TTML parser doesn't support namespaces

Have you read the FAQ and checked for duplicate open issues?:
Yes
What version of Shaka Player are you using?:
v2.4.4
Can you reproduce the issue with our latest release version?:
Yes
Can you reproduce the issue with the latest code from master?:
Yes
Are you using the demo app or your own custom app?:
Demo app
If custom app, can you reproduce the issue using our demo app?:
What browser and OS are you using?:
Any
What are the manifest and license server URIs?:
https://d1chyo78gdexn4.cloudfront.net/vualto-demo/elephants-dream/elephants-dream_nodrm.ism/manifest.mpd
What did you do?
Play TTML asset that uses XML namespaces with different prefixes than normal.
What did you expect to happen?
Play text fine.
What actually happened?
Cannot find attributes since the TTML parser looks up by simple name instead of namespace-qualified.
Found while investigating #1584.

Fix cherry-picked to v2.4.5.


Are there rule tree samples for EasyRules?

Are there rule tree samples for EasyRules?
Thanks.

Hi,
Could you please elaborate on what a rule tree is?

An example of rule trees is a decision tree, for example https://en.wikipedia.org/wiki/Decision_tree
All actions are taken on leaves. You may also have a rule tree which the action is on root.

Ah ok, a decision tree. There is no such an example for now but it would be a very good use case for easy rules!
Do you want to contribute such an example (even a hello world)? You are welcome if you want.
Kr
Mahmoud

Sure, if I decide to adopt it.


Fix executor tolerant staled crashed

Description

Fix unwrap usage in proof checking in executor.
Add one test to ci

Thanks a lot for @keroro520
Applicable Issues
#306

Reword the add to ci test or fixup it to the test: add cita_bft_resend.sh

Reword the add to ci test or fixup it to the test: add cita_bft_resend.sh

Done!

I mean it's an independent commit. you need to clear what test.


Support pagination for Alerts

Introduced pagination in Java API for Alerts.
Reused same API as inventory.
Introduced pagination on REST endpoints for Alerts.
Implementation based on server-side ordering as a first approach.
Pagination not yet implemented on definitions (as priority was alerts).
Deleting from master DB* implementation, created a h2-engine branch for it.

Good Stuff, Lu[ck]as :)


Add try_from attribute for FromRow derive

This is used for converting type in FromRow.And I am not sure whether it is worth and just for discussing.
Example
#[derive(sqlx::FromRow)]
struct Record {
    #[sqlx(try_from = "i64")]
    id: u64,
}

// for custom type
 #[derive(sqlx::FromRow)]
struct Record {
    #[sqlx(try_from = "i64")]
    id: Id,
}

#[derive(Debug, PartialEq)]
struct Id(i64);
impl std::convert::TryFrom<i64> for Id{
    type Error = Error;
    fn try_from(v:i64) -> Result<Id,Self::Error>{
         Ok(Id(v))
    }
}

issues

In fact,I open this pr mainly for decoding Bigint to u64,which will be supported in sqlx 6.0+.It makes me confused whether this pr is worth.

There is another attribute with for type converting.Maybe I will open another issue for discussing.
Example for with
 #[derive(sqlx::FromRow)]
struct Record {
    #[sqlx(with(mysql = "path"))]
    id: u64,
}
fn path(value:MySqlValueRef) -> Result<u64,Box<dyn Error + 'static + Send + Sync>>{
  Ok(Decode::<i64>::decode(value)?.try_info()?)
}

I don't like try_from as the name for something that takes a function argument. I would expect this to take a type name and use a TryFrom implementation for conversion. I don't really understand the git history here w.r.t. with as an attribute, is that an additional attribute with other semantics that's also being introduced here but not discussed in the PR description?

I don't like try_from as the name for something that takes a function argument. I would expect this to take a type name and use a TryFrom implementation for conversion. I don't really understand the git history here w.r.t. with as an attribute, is that an additional attribute with other semantics that's also being introduced here but not discussed in the PR description?

In fact,I tried to add with attribute so there is useless git history.
There is some mistake and I will edit this PR

@zzhengzhuo I'm really sorry for leaving this open for so long, when PRs get buried on the second page of results it gets easy to forget about them.
Do you mind rebasing on main to trigger another run of checks so we can see again why the Format job was failing? I see you  tried addressing it once before already.

@abonander Sorry for the delay getting back to you as I am having a busy time. I have rebased on main, please check it.

But when I run tests, it reports error:
     Running tests/any/any.rs (target/debug/deps/any-3430a2b319f90354)

running 7 tests
test it_connects ... FAILED
test it_does_not_stop_stream_after_decoding_error ... FAILED
test it_gets_by_name ... FAILED
test it_pings ... FAILED
test it_can_fail_and_recover ... FAILED
test it_executes_with_pool ... FAILED
test it_can_fail_and_recover_with_pool ...   I'm seeing identical (passing) results without/with your changes
I also tried rebasing on main again, but the merge conflicts are nontrivial

@zzhengzhuo sorry for the delay again, the corrupt message error can happen when trying to use RusTLS to connect to an older version of MySQL. It might be a latent bug in SQLx, but I haven't had time to look into it. Try testing with one of the -native-tls runtime features instead, or use a newer version of MySQL to test against.

@abonander sorry for delay. Please check.

@zzhengzhuo it's passing but now there's merge conflicts, do you have time to resolve those?

Great, glad to finally land this!

@zzhengzhuo @abonander as someone eagerly awaiting this, I appreciate both of you taking the time to get it merged

try_from => cast?


User documentation: Introduction section is at the bottom

Introduction section is at the bottom in the ToC. It should be at the top

Fixed


Add quick developer documentation

Please add quick walkthrough documentation of your developer env eg. pnpm, build system, versioning, etc.

This is a normal obsidian plugin, my env:

pnpm 8.4.1
node 16.18.1

More details: https://docs.obsidian.md/Plugins/Getting+started/Build+a+plugin


While importing Tensorflow on CPU , a dynamic link library (DLL) initialization routine failed

Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
binary
TensorFlow version
2.10
Custom code
No
OS platform and distribution
Windows 10 x64
Mobile device
No response
Python version
3.10
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Samama>conda env list
conda environments:

base                     C:\Users\Samama\anaconda3
myenv                    C:\Users\Samama\anaconda3\envs\myenv
C:\Users\Samama>conda activate myenv
(myenv) C:\Users\Samama>conda list
packages in environment at C:\Users\Samama\anaconda3\envs\myenv:

Name                    Version                   Build  Channel
_tflow_select             2.3.0                       mkl
abseil-cpp                20211102.0           hd77b12b_0
absl-py                   2.1.0           py310haa95532_0
aiohttp                   3.9.5           py310h2bbff1b_0
aiosignal                 1.2.0              pyhd3eb1b0_0
astunparse                1.6.3                      py_0
async-timeout             4.0.3           py310haa95532_0
attrs                     23.1.0          py310haa95532_0
blas                      1.0                         mkl
blinker                   1.6.2           py310haa95532_0
brotli-python             1.0.9           py310hd77b12b_8
bzip2                     1.0.8                h2bbff1b_6
c-ares                    1.19.1               h2bbff1b_0
ca-certificates           2024.7.2             haa95532_0
cachetools                5.3.3           py310haa95532_0
certifi                   2024.7.4        py310haa95532_0
cffi                      1.16.0          py310h2bbff1b_1
charset-normalizer        3.3.2              pyhd3eb1b0_0
click                     8.1.7           py310haa95532_0
colorama                  0.4.6           py310haa95532_0
cryptography              41.0.3          py310h3438e0d_0
flatbuffers               2.0.0                h6c2663c_0
frozenlist                1.4.0           py310h2bbff1b_0
gast                      0.4.0              pyhd3eb1b0_0
giflib                    5.2.1                h8cc25b3_3
google-auth               2.29.0          py310haa95532_0
google-auth-oauthlib      0.4.4              pyhd3eb1b0_0
google-pasta              0.2.0              pyhd3eb1b0_0
grpc-cpp                  1.48.2               hf108199_0
grpcio                    1.48.2          py310hf108199_0
h5py                      3.11.0          py310hed405ee_0
hdf5                      1.12.1               h51c971a_3
icc_rt                    2022.1.0             h6049295_2
icu                       58.2                 ha925a31_3
idna                      3.7             py310haa95532_0
intel-openmp              2023.1.0         h59b6b97_46320
jpeg                      9e                   h827c3e9_3
keras                     2.10.0          py310haa95532_0
keras-preprocessing       1.1.2              pyhd3eb1b0_0
libcurl                   8.7.1                h86230a5_0
libffi                    3.4.4                hd77b12b_1
libpng                    1.6.39               h8cc25b3_0
libprotobuf               3.20.3               h23ce68f_0
libssh2                   1.10.0               hcd4344a_2
markdown                  3.4.1           py310haa95532_0
markupsafe                2.1.3           py310h2bbff1b_0
mkl                       2023.1.0         h6b88ed4_46358
mkl-service               2.4.0           py310h2bbff1b_1
mkl_fft                   1.3.8           py310h2bbff1b_0
mkl_random                1.2.4           py310h59b6b97_0
multidict                 6.0.4           py310h2bbff1b_0
numpy                     1.26.4          py310h055cbcc_0
numpy-base                1.26.4          py310h65a83cf_0
oauthlib                  3.2.2           py310haa95532_0
openssl                   1.1.1w               h2bbff1b_0
opt_einsum                3.3.0              pyhd3eb1b0_1
packaging                 24.1            py310haa95532_0
pip                       24.2            py310haa95532_0
protobuf                  3.20.3          py310hd77b12b_0
pyasn1                    0.4.8              pyhd3eb1b0_0
pyasn1-modules            0.2.8                      py_0
pybind11-abi              5                    hd3eb1b0_0
pycparser                 2.21               pyhd3eb1b0_0
pyjwt                     2.8.0           py310haa95532_0
pyopenssl                 23.2.0          py310haa95532_0
pysocks                   1.7.1           py310haa95532_0
python                    3.10.0               h96c0403_3
python-flatbuffers        24.3.25         py310haa95532_0
re2                       2022.04.01           hd77b12b_0
requests                  2.32.3          py310haa95532_0
requests-oauthlib         2.0.0           py310haa95532_0
rsa                       4.7.2              pyhd3eb1b0_1
scipy                     1.13.1          py310h8640f81_0
setuptools                72.1.0          py310haa95532_0
six                       1.16.0             pyhd3eb1b0_1
snappy                    1.2.1                hcdb6601_0
sqlite                    3.45.3               h2bbff1b_0
tbb                       2021.8.0             h59b6b97_0
tensorboard               2.10.0          py310haa95532_0
tensorboard-data-server   0.6.1           py310haa95532_0
tensorboard-plugin-wit    1.8.1           py310haa95532_0
tensorflow                2.10.0          mkl_py310hd99672f_0
tensorflow-base           2.10.0          mkl_py310h6a7f48e_0
tensorflow-estimator      2.10.0          py310haa95532_0
termcolor                 2.1.0           py310haa95532_0
tk                        8.6.14               h0416ee5_0
typing_extensions         4.11.0          py310haa95532_0
tzdata                    2024a                h04d1e81_0
urllib3                   2.2.2           py310haa95532_0
vc                        14.40                h2eaa2aa_0
vs2015_runtime            14.40.33807          h98bb1dd_0
werkzeug                  3.0.3           py310haa95532_0
wheel                     0.43.0          py310haa95532_0
win_inet_pton             1.1.0           py310haa95532_0
wrapt                     1.14.1          py310h2bbff1b_0
xz                        5.4.6                h8cc25b3_1
yarl                      1.9.3           py310h2bbff1b_0
zlib                      1.2.13               h8cc25b3_1
(myenv) C:\Users\Samama>python
Python 3.10.0 | packaged by conda-forge | (default, Nov 10 2021, 13:20:59) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow
Traceback (most recent call last):
File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python_init.py", line 36, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 77, in
raise ImportError(
ImportError: Traceback (most recent call last):
File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors for some common causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.

Standalone code to reproduce the issue
import tensorflow

Relevant log output
Traceback (most recent call last):
  File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\__init__.py", line 36, in <module>
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
  File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 77, in <module>
    raise ImportError(
ImportError: Traceback (most recent call last):
  File "C:\Users\Samama\anaconda3\envs\myenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors for some common causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.

@SamamaSaleem  what version of Microsoft Visual C++ Redistributable are u using on your system ?

@SamamaSaleem what version of Microsoft Visual C++ Redistributable are u using on your system ?

It's Microsoft Visual C++ 2015-2022 Redistributable (x-64) - 14.40.33810

@SamamaSaleem have u tried reinstalling anaconda , i had same issue once and reinstalling anaconda and packages fixed it for me  , this specific one "ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed. "

@SamamaSaleem have u tried reinstalling anaconda , i had same issue once and reinstalling anaconda and packages fixed it for me , this specific one "ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed. "

Yes. I tried this numerous times. In fact, I reinstalled Windows, but the issue persists. I tried creating new env, installing Python 3.10 and Tensorflow 2.10. I also set the PATH environmental variable to the Conda's path. No avail. I am not sure is it because of some version compatibility issue or system requirement issue ( as I am installing it on CPU system)

@SamamaSaleem maybe  the issue is with protobuf, can you  tell me the verison of protobuf you are using ? and try to downgrade it and then run your code?

@rakshitdabral I am not using protobuf.

@SamamaSaleem can u try installing protobuf  then? and if it doesnt work try reducing your tensorflow version , i read that reducing tensorflow version help some people for the same issue

@SamamaSaleem,
Could you please provide the tensorflow and the compatible version which you are trying to install. Also there are at least 3 possible scenarios:
- You need to install the MSVC 2019 redistributable
- Your CPU does not support AVX2 instructions
- Your CPU/Python is on 32 bits
- There is a library that is in a different location/not installed on your system that cannot be loaded.

https://github.com/tensorflow/tensorflow/issues/61887
Thank you!

@rakshitdabral I tried installing protobuf, and downgrading tensorflow version, but it hasn't resolved the issue

@tilakrayal -

I tried Microsoft Visual C++ 2015-2022 Redistributable (x-64) - 14.40.33810
My CPU/Python is on 64 bits
I tried to update the PATH variable with the path of the installed libraries.

Unfortunately, the error isn't gone.

Any way out please?

Any way out please?

Looking into it , will surely update you if I find something

@SamamaSaleem which  cpu , are you running tensorflow on??

@SamamaSaleem can you try this once
Do the following.

Run the anaconda prompt as administrator.(right click-> run as administrator).
pip uninstall tensorflow.
Close anaconda prompt.
4 .Again run anaconda prompt as administrator.
5.type:
conda install tensorflow
It will ask for some y / n
Type y.

Now after all done, change your python interpreter's environment to anaconda environment where you installed tensorflow. Now try importing tensorflow.

@rakshitdabral CPU: Intel (R) Celeron (R) CPU B820 @ 1.70GHz

Facing this error now:
(base) C:\Windows\system32>conda install tensorflow
Channels:

defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: | warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:

nothing provides bleach 1.5.0 needed by tensorboard-1.7.0-py35he025d50_1

Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│  └─ python 3.11.* , which can be installed;
└─ tensorflow is not installable because there are no viable options
├─ tensorflow [1.10.0|1.9.0] would require
│  └─ python 3.5.* , which conflicts with any installable versions previously reported;
├─ tensorflow [1.10.0|1.11.0|...|2.1.0] would require
│  └─ python 3.6.* , which conflicts with any installable versions previously reported;
├─ tensorflow [1.13.1|1.14.0|...|2.9.1] would require
│  └─ python 3.7.* , which conflicts with any installable versions previously reported;
├─ tensorflow [1.7.0|1.7.1|1.8.0] would require
│  └─ tensorboard [>=1.7.0,<1.8.0 |>=1.8.0,<1.9.0 ], which requires
│     └─ bleach 1.5.0 , which does not exist (perhaps a missing channel);
├─ tensorflow [2.10.0|2.8.2|2.9.1] would require
│  └─ python 3.10.* , which conflicts with any installable versions previously reported;
├─ tensorflow [2.10.0|2.3.0|...|2.9.1] would require
│  └─ python 3.8.* , which conflicts with any installable versions previously reported;
└─ tensorflow [2.10.0|2.5.0|2.6.0|2.8.2|2.9.1] would require
└─ python 3.9.* , which conflicts with any installable versions previously reported.

tried by creating a new env with python == 3.10 using the following:
conda create --name myenv python==3.10
and installed the tensorflow==2.10
Though it has been installed, the same error of DLL initialization failed is popped again when importing

after the complete process, here is the output:

@rakshitdabral CPU: Intel (R) Celeron (R) CPU B820 @ 1.70GHz

ok so your cpu do supports AVX

nothing provides bleach 1.5.0 needed by tensorboard-1.7.0-py35he025d50_1

Could not solve for environment specs The following packages are incompatible ├─ pin-1 is installable and it requires │ └─ python 3.11.* , which can be installed; └─ tensorflow is not installable because there are no viable options ├─ tensorflow [1.10.0|1.9.0] would require │ └─ python 3.5.* , which conflicts with any installable versions previously reported; ├─ tensorflow [1.10.0|1.11.0|...|2.1.0] would require │ └─ python 3.6.* , which conflicts with any installable versions previously reported; ├─ tensorflow [1.13.1|1.14.0|...|2.9.1] would require │ └─ python 3.7.* , which conflicts with any installable versions previously reported; ├─ tensorflow [1.7.0|1.7.1|1.8.0] would require │ └─ tensorboard [>=1.7.0,<1.8.0 |>=1.8.0,<1.9.0 ], which requires │ └─ bleach 1.5.0 , which does not exist (perhaps a missing channel); ├─ tensorflow [2.10.0|2.8.2|2.9.1] would require │ └─ python 3.10.* , which conflicts with any installable versions previously reported; ├─ tensorflow [2.10.0|2.3.0|...|2.9.1] would require │ └─ python 3.8.* , which conflicts with any installable versions previously reported; └─ tensorflow [2.10.0|2.5.0|2.6.0|2.8.2|2.9.1] would require └─ python 3.9.* , which conflicts with any installable versions previously reported.

try doing this ,  conda config --add channels conda-forge

@SamamaSaleem can you tell me how you install your packages ?? are you using anaconda terminal or cmd??

@SamamaSaleem,
Could you please try to use the latest tensorflow v2.17 and provide whether you are facing a similar issue in the stable version? Thank you!

Duplicate of #19584. Please do a search before opening new issues. This is a very old issue and manifests because old PCs with Windows cannot load libraries needed by TF because they have very old architecture sets.


Update facebook-federation.md

Add redirect endpoints for CIAM tenants

@msmimart
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Hi @3iasuMSFT, now that CIAM docs have been published, we can make these changes directly in those docs. Moving these changes to private repo.


[trans] Add German translation in de.json

Completed translation using translation tool, fixed some grammar mistakes and changed some wordings


Saving audio to file

Hello,
I've wrapped the C# SDK sample code for Text-to-speech in a Web Api service proxy method. My goal is to convert text to an audio file and either save the AudioData to a file or return the AudioData directly.
In the code below, it seems like I can return result.AudioData with a corresponding MIME Type and file name. However, the combinations I've tried lead to unreadable files.  I've spent the afternoon researching and reaching for the right combination without success.
Can you suggest some best practices or point me to an example?
Thank you!

var config = SpeechConfig.FromSubscription("XXXXXXXXXXXXXX", "westus2");
                config.OutputFormat = OutputFormat.Simple;
                // Creates a speech synthesizer using the default speaker as audio output.
                using (var synthesizer = new SpeechSynthesizer(config))
                {
                    var text = textToSynthesize;
                    using (var result = await synthesizer.SpeakTextAsync(text))
                    {
                        if (result.Reason == ResultReason.SynthesizingAudioCompleted)
                        {
                            Console.WriteLine($"Speech synthesized to speaker for text [{text}]");

                            return File(result.AudioData, "***application/octet-stream***", "***audio.***");
                        }
                        else if (result.Reason == ResultReason.Canceled)
                        {
                            var cancellation = SpeechSynthesisCancellationDetails.FromResult(result);
                            Console.WriteLine($"CANCELED: Reason={cancellation.Reason}");

                            if (cancellation.Reason == CancellationReason.Error)
                            {
                                Console.WriteLine($"CANCELED: ErrorCode={cancellation.ErrorCode}");
                                Console.WriteLine($"CANCELED: ErrorDetails=[{cancellation.ErrorDetails}]");
                                Console.WriteLine($"CANCELED: Did you update the subscription info?");
                            }
                        }
                    }
                }

How are you trying to use the file?
The audio returned is a raw stream, in order to write it to a file (wav as an example) you'll need to write the correct wave header before writing the raw data.
You could also use the AudioDataStream.SaveToWaveFileAsync method to handle this for you.
See SynthesisToAudioDataStreamAsync in https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/csharp/sharedcontent/console/speech_synthesis_samples.cs

@rhurey, thanks for the link!
Ideally, I'd like my endpoint to be a proxy to the caller: a react app posts text data; proxy web service submits to Speech API through SDK; returns audio data back to react app; react app plays sound.

@jeffhee
Thanks for pointing this issue. In the SDK version 1.6 and earlier, there is a bug where the audio data in synthesis result has no header. And we fixed in version 1.7. You can update your SDK version and have another try.
I have two tips, 1) you should use config.SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3) to set output format. The config.OutputFormat is for recoginition result format.
2) If you just want to synthesize a audio to file, maybe AudioDataStream.SaveToWaveFileAsync is a better choice. See sample here