Missing fields?

I think the schema should duplicate some optional fields from Institutions:

Country (in case the HEI spans several countries)
Website URL
Fact Sheet URL?

Website is already present.
Country - won't the country present in the <streetAddress> element be enough?
Fact sheets - perhaps I missed that. Is it possible to one HEI to have department-level fact sheets?

Website is already present.

Sorry, yes.

Country - won't the country present in the "streetAddress" element be enough?

Not if it's optional?

Fact sheets - perhaps I missed that. Is it possible to one HEI to have department-level fact sheets?

If departments can be situated in different locations (even countries), I would think they might need their own fact sheets?

Not if it's optional?

In our database, we don't have any other indicator of Unit's country. I.e. if we don't have an address, then we cannot tell in which country it is. Do you believe that other partners store this separately?

If departments can be situated in different locations (even countries), I would think they might need their own fact sheets?

Ok. I will add it.

In our database, we don't have any other indicator of Unit's country. I.e. if we don't have an address, then we cannot tell in which country it is. Do you believe that other partners store this separately?

We do it in our system (FS). Another conceivable scenario is that an Org Unit could be a "virtual" entity without a physical address but still affiliated with a country (whether that's a realistic scenario, I have idea). If you don't think it will be useful, and no one else comments on it, I'll remove it.

If you don't think it will be useful, and no one else comments on it, I'll remove it.

Yes. I think it's okay to include the country in the address element. In your particular case, if you have a country, but you don't have the full address, you might consider printing this:
<streetAddress>
    <country>XY</country>
</streetAddress>

That's a very limited address, but it's still valid "address-related data". Some clients will ignore it (as discussed here), but others might still use it for some limited purposes (e.g. if they are looking for units in particular country).

Fine by me. I'll remove it from the model/dictionary - I assume you mean to do this both for the Institutions and the OUnits API?

I assume you mean to do this both for the Institutions and the OUnits API?

Yes, let's try this.


Broader authorization support

Allow linking of existing authorizers and cognito user pool authorization.

@gojko - I know I should add tests, will get to them ASAP, but in the meantime now this is here for anybody else who is blocked.

make sure that the pre-existing authorizer does not get removed during deployment. IDs are specific to an API (unlike ARNs) and Claudia will clean them up during updates

It doesn't clean them up because the API isn't fully removed; the root / stays there.

@dhackner i'm pretty sure it's cleaning up existing authorizers, check this line: https://github.com/claudiajs/claudia/blob/master/src/tasks/register-authorizers.js#L95
I didn't have time to make it check for existing authorizers and compare existing configuration to the requested config, then merge differences, so I just remove all the authorizers and rebuild them from scratch. I might do a diff in the future, once I have time to look into this properly.
if you want to preserve auhorizer IDs, you'll have to implement that as well.

c

If you don't create any authorizers, it doesn't wipe out the existing ones, so this works for my purpose but is obviously pretty hacky. Hoping to get time to do this the right way and submit a real PR.


Fix regression in session token handling (#1527)

Please help keep the CHANGELOG up to date by providing a one sentence summary of your change:

Fix regression in handling session tokens from EC2 instance metadata and ECS task metadata

Fixes #1527. Went digging in the serde test cases to figure out how to do this. 😅
Verified with an instance role and a rusoto_ec2::Ec2::describe_regions call with a locally patched rusoto_credential.
@matthewkmayer I'd propose this for a 0.41.1 release of rusoto_credential, if that's possible?

Thanks for the fix!
Yes, a 0.41.1 release of rusoto_credential is the way to go, I should be able to get that out later today.

Thank you 😃

Just published 0.41.1, if the project doesn't pick it up cargo update or deleting the Cargo.lock file should pick up rusoto_credential 0.41.1.


fix: stmt operation adds a mutex lock

Codecov Report
Attention: Patch coverage is 92.30769% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 68.55%. Comparing base (023df72) to head (cdd0b7b).

Files
Patch %
Lines

controller/ws/ws/handler.go
92.30%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #263      +/-   ##
==========================================
+ Coverage   68.48%   68.55%   +0.07%
==========================================
  Files          82       82
  Lines        9541     9567      +26
==========================================
+ Hits         6534     6559      +25
+ Misses       2358     2357       -1
- Partials      649      651       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


New name?

I suggest changing the name of the framework, because it's not clear where the S in Sails comes from. IMO the framework would be a lot friendlier-sounding if it had a name that alliterates with the technologies it's built on top of, such as:
Nails.js (because Node.js)
Jails.js (because JavaScript)

Good idea

Send a pr

A bit late for an april fools joke. :)

just straight up call it rails.js and see what happens.

good idea.


Simplify the marker gene algorithm to assume that queries will be for cell types in tissues

Investigate calculate_markers to figure out what is slowing down this calculation. Start at get_markers

Will be taken care of by the new wmg pipeline based on census


Float textBox Right and left

is it possible to float the text right and left

Hi @SathishRamV
Styling your form is out of scope for this library. Use whatever CSS framework you like to float your elements.


Localize website into Arabic (ar)

This is a Feature Request

What would you like to be added
Create an initial, at least minimum-viable Arabic (العربية) localization for https://k8s.io/
Why is this needed
Arabic is a widely-spoken language in the wider arabian region of the world with over 250 million total speakers. This change will help make Kubernetes available to a wider audience.
Comments

The CNCF believes that that everyone in the community that wants to participate feels welcome to do so regardless of gender, gender identity, sexual orientation, disability, race, ethnicity, age, religion or economic status.

/language ar

Related pull requests:

#16894
#16942
#19758
#20343
#20459

/kind feature

/language ar

@sftim I would assist on this

Also see #kubernetes-docs-ar (or visit https://slack.k8s.io/ for an invitation to Slack).

@mohamedsgap, @nofalx and others - is there any help that the SIG Docs team (who don't speak any Arabic) can do to help move things forward?

@sftim I'd like to request the reopening of the issue regarding the localization of the Kubernetes website into Arabic (العربية) - Issue #22726.
During my recent work on the Arabic (AR) localization efforts, I have made significant progress, including an open pull request and an umbrella issue. I have also submitted a membership request to contribute to this important endeavor.
Based on the ongoing progress and the need for clear documentation and community feedback, I believe it would be beneficial to reopen the issue. to provide a clear overview of the localization efforts and track the related discussions and updates. By reopening the issue, we can document the progress and gather feedback from the community. It will also help in building a collaborative environment where multiple contributors can review and support each other's work.
I kindly request your consideration and support in reopening the issue. Please feel free to add any additional context or suggestions to further enhance the localization efforts.

/reopen
We can continue to track the work towards finding an Arabic localization team.

/remove-lifecycle rotten
/lifecycle stale

Thank you @mboukhalfa, definitely can contribute )

Do we have a team looking to work on this issue? If so, please introduce (or reintroduce) yourselves here.

Do we have a team looking to work on this issue? If so, please introduce (or reintroduce) yourselves here.

Hi @sftim, I'm really interested in working on this Arabic localization issue! I've already reached out to @selaamimech who might be interested in contributing as well. Although things are progressing slowly, I'm determined to make this happen.

Do we have a team looking to work on this issue? If so, please introduce (or reintroduce) yourselves here.

Hi @sftim, I'm really interested in working on this Arabic localization issue! I've already reached out to @selaamimech who might be interested in contributing as well. Although things are progressing slowly, I'm determined to make this happen.

I am available also to contribute, I suggest to create a new target branch. Then I will create a new PR from my fork that contains the minimal required content as a first step.

Hi @mboukhalfa and @selaamimech
A good way to get started is to open some draft PRs against main, as a sketch of what you'd like to do.

No progress
/close not-planned

Hello @sftim @mboukhalfa, joining the bandwagon! I'm happy to contribute and will go ahead and put together a set of draft PRs. I have read the contribution guide and see that @mboukhalfa has created an umbrella issue #37546—do you have any guidance otherwise as to where I ca start?

Hello @sftim @mboukhalfa, joining the bandwagon! I'm happy to contribute and will go ahead and put together a set of draft PRs. I have read the contribution guide and see that @mboukhalfa has created an umbrella issue #37546—do you have any guidance otherwise as to where I ca start?

PTAL https://github.com/kubernetes/website/issues/44682 for the restart.


Is Pygeofilter supporting various CRS other than 4326?

Summary
Hi! I've been working on pygeoapi for the past couple weeks and a recent PR #964 added the possibility to use CQL to query features inside the pygeoapi PostgreSQL provider ! :)
The implementation of this new feature uses pygeofilter as it references the to_filter function to translate ECQL AST to a Django Query expression. The call to to_filter from pygeoapi can be found here.
While using this new pygeoapi CQL feature, I have come across an issue that could be coming from pygeofilter? I'm creating this issue more as a discussion topic, because I'd like to know more information about the way pygeofilter is meant to be used with geometries using various SRID. I'm interested to know in order to see if I can work around my issue or if it's something that might bring an idea to someone working in this current repository.
Context
In order to provide context, here's an example of my usage in pygeoapi and the steps to reproduce my issue:

In pygeoapi, via a service request handler, I'm receiving a CQL written as such: INTERSECTS(geom, POLYGON((-103.7402 55.4461, -103.7402 55.8272, -103.2597 55.8272, -103.2597 55.4461, -103.7402 55.4461))).

pygeoapi starts by using the parse function to parse the CQL string. To the best of my understanding, this uses Lark to parse the string and generate a result ref: Lark's parse.  The call to pygeofilter's parse from pygeoapi can be found here

Then, in pygeoapi, this result is sent to the aforementioned to_filter function in order to finally send the cql filters results to an sqlalchemy query like so: session.query(self.table_model).filter(cql_filters). This call from pygeoapi can be found here.

Everything seems to be great and I'm pretty convinced that, if the CQL has a geometry that has its coordinates in SRID=4326 or maybe the same SRID as the data, everything would be working fine. That being said, I believe that I've stumbled on this particular issue, because our data is stored in SRID=3978, not in SRID=4326(!). So, when I execute this CQL on our point layer, in 3978, sqlachemy understandably fails and gives this error: sqlalchemy.exc.InternalError: (psycopg2.errors.InternalError_) ST_Intersects: Operation on mixed SRID geometries (Point, 3978) != (Polygon, 4326) and [SQL: SELECT {....} FROM {....} WHERE ST_Intersects({geom_field}, ST_GeomFromEWKT(%(ST_GeomFromEWKT_1)s)).

Therefore, the first thing I've tried (even if that's not what we want in pygeoapi) is to send a CQL with a POLYGON that's using coordinates in SRID=3978 (the same SRID as the data) just to attempt to get results from the query. I used this CQL: INTERSECTS(geom, POLYGON((-574624 735257, -574624 870115, -417433 870115, -417433 735257, -574624 735257))). It failed with the same error message. This was telling me something was probably forcing it in SRID=4326.

I then tried to send a CQL in which I was explicitly writing the SRID of the POLYGON using a PostGIS EWKT format as such: INTERSECTS(geom, SRID=3978;POLYGON((-574624 735257, -574624 870115, -417433 870115, -417433 735257, -574624 735257))) to attempt to force the geometry in 3978. It was still giving me the same error about a 4326 incompatibility.

At this point, I thought either (1) pygeofilter is not meant to be used with a SRID other than 4326, or (2) it's not supporting the EWKT format. I was thinking I had to abandon using to_filter altogether and try to find a different way to make it work for CQL inside pygeoapi. However, before doing so, I jumped in GitHub to try to understand the implementation of to_filter and something caught my attention. Is it possible that, with all the formatting that happens (impressive work btw!), the function parse_geometry is called at some point?

If so, this might explain the issue that I'm experiencing. This parse_geometry function starts by calling as_shape** from the pygeoif library and then calls to_wkt** again from the pygeoif library. Afterwards, it uses a regular expression to search for a SRID={some_number}; in the geometry WKT string to determine what kind of SRID should be used in ST_GeomFromEWKT to be returned. Even though, using rhs variable on the geometry, I validate that the SRID 3978 is defined (Geometry(geometry={'type': 'Polygon', 'coordinates': (((-574624.0, 735257.0), (-574624.0, 870115.0), (-417433.0, 870115.0), (-417433.0, 735257.0), (-574624.0, 735257.0)),), 'crs': {'type': 'name', 'properties': {'name': 'urn:ogc:def:crs:EPSG::3978'}}})); after the object goes through as_shape and to_wkt it loses its SRID. Actually, my understanding is that a WKT never has a SRID - when a WKT has a SRID it's called an EWKT - so I think that's normal that a SRID can't be read ever? In my particular case, it seems the SRID={number}; is never found and the default SRID=4326; is used, all the time, in the response, possibly causing my issue.
My question, finally! :), is it possible to use pygeofilter CQL on geometries that are in other SRIDs? Maybe the parse_geometry function should have an additional parameter like the similar parse_bbox function?
Thank you for taking the time to read!
TL;DR
Is it possible the function parse_geometry always responds with an SRID=4326 when returning the ST_GeomFromEWKT? Making pygeofilter exclusively(?) work with geometries in SRID=4326 projection? Is there a way to work with other SRID values for a geometry in pygeofilter CQL? Maybe the parse_geometry function should have an additional parameter like the similar parse_bbox function?
Footnotes
** pygeofilter (and by extension pygeoapi) is referencing an old version of pygeoif (version==0.7 which dates back from sometime near 2012 maybe?). This is on purpose as it seems that the latest version of pygeoif has caused issues recently and so this commit addresses this. That is why the references above point to other places in pygeoif. Indeed, the function as_shape in pygeoif's Geometry class doesn't exist anymore. It's now in PyGeoif's Factories class. Also, the function to_wkt in pygeoif's Geometry class has been renamed to wkt.

We've noticed that pygeoapi has recently unpinned (PR #1146)[https://github.com/geopython/pygeoapi/pull/1146] the pygeoif version of 0.7 which makes this issue a bit more relevant as it's happening on the latest code of pygeofilter, rather than on old code.
I'm therefore updating the issue with this message.
The new source code being used by pygeoapi is now this:

Unfortunately for us, that code still doesn't work for the recent cql implementation in PyGeoAPI PR #964
I'm copying another implementation of the parse_geometry that works better for us (and shouldn't break the current implementation) in case it might interest somebody:
def parse_geometry(geom):
    # Read the wkt
    wkt = shape(geom).wkt

    # Default srid (like og code)
    sridtxt = "SRID=4326;"

    # If the crs is defined in the geom json object
    if 'crs' in geom and \
       'properties' in geom['crs'] and \
       'name' in geom['crs']['properties']:
        # Read the srid
        srid = re.search(r'\d+$', geom['crs']['properties']['name'])

        # If the srid number was read format the sridtxt
        if srid:
            sridtxt = f"SRID={srid.group(0)};"

    return func.ST_GeomFromEWKT(f"{sridtxt}{wkt}")

That being said, even with this implementation, pygeoapi still struggles when querying data other than 4326, due to its cql implementation (or limitation(?)). So, I'm thinking of moving the issue over to pygeoapi instead and we could close this one with or without the suggested parse_geometry implementation.
Thank you for reading!

@Alex-NRCan The OGC CQL2 specification https://portal.ogc.org/files/96288 expects any geometry filters to come in as WGS 84.
If the OGC API supports "Part 2" of the specification, then an additional filter-crs property is required (https://portal.ogc.org/files/96288#filter-filter-crs) in order to specify the input crs.

@bitner Thank you for your reply!
Yes indeed, it'd be great to be able to use such a filter-crs parameter in pygeoapi. Maybe it'll come soon, now that a filter parameter (for the cql) has been added? That said, even if it would become the case and filter-crs would be added, I believe that the issue that I'm pointing out in here would remain - at least as far as cql is concerned. Indeed, at the time that I created the issue, the cql code wasn't able to use shapes in another crs, because pygeofilter was always assuming 4326 (as it's hardcoded and I couldn't make the condition work differently, except for my suggested code change above).

@bitner @Alex-NRCan
I'm looking into this with the intent of improving the existent pygeoapi support for CQL filtering and it seems to me that there is indeed a bug with pygeofilter not preserving a geometry's CRS information when evaluating an expression for sqlalchemy - either that or I'm reading it wrong :stuck_out_tongue: - bear with me for a bit:
Lets say I have a postgis table with a geom geometry column that uses epsg:3004 - this is thus my storage CRS (in OGC API - Features part 2 parlance)
Now I'm trying to use a filter that specifies a point in the native CRS of the data, like this:
$ from pygeofilter.parsers import ecql
$ parsed_expression = "DWITHIN(geometry, SRID=3004;POINT(2322807.3173735966 4631504.384268367), 10, meters)"
$ print(parsed_expression)
DistanceWithin(
    lhs=ATTRIBUTE geometry,
    rhs=Geometry(
        geometry={
            'type': 'Point',
            'coordinates': (2322807.3173735966, 4631504.384268367),
            'crs': {
                'type': 'name',
                'properties': {'name': 'urn:ogc:def:crs:EPSG::3004'}
            }
        }
    ),
    distance=10,
    units=Token('METERS', 'meters')
)

As you can see, pygeofilter is able to parse the text and correctly keeps a reference to the CRS in the generated pygeofilter.ast.Geometry instance.
However, when I evaluate this to a sqlalchemy expression, pygeofilter looses this information, and I get this:
from pygeofilter.backends.sqlalchemy.evaluate import to_filter

# the definition of `table_field_mappings` is not relevant here, so I omitted it
$ db_filter = to_filter(parsed_expression, table_field_mappings)
$ print(db_filter.compile(compile_kwargs={"literal_binds": True}))
ST_DWithin(
    atlante.beni_confiscati.geometria,
    ST_GeomFromEWKT(
        'SRID=4326;POINT (2322807.3173735966 4631504.384268367)'
    ),
    10
)

As you can see pygeofilter disregarded its own information about the CRS of the point I originally used and sticked SRID=4326 in there instead - this query fails miserably, as postgis complains about mismatched geometry CRSs :cry: .
As pointed out by @Alex-NRCan , the problem lies in the implementation of pygeofilter.backends.sqlalchemy.filters.parse_geometry():
https://github.com/geopython/pygeofilter/blob/a08c5a50af48816e460a2746891584bc5a4bc294/pygeofilter/backends/sqlalchemy/filters.py#L21-L25
This function calls pygeoif.shape(), which discards the CRS information, and then tries to find a SRID in the result - however, this will always fail, as pygeoif discarded the CRS when converting to its own representation.
This seems fixable and I'm willing to submit a PR.


Use kl_coeff in loss function calculation

What does this PR do?
The VAE model contained here takes an optional kl_coeff parameter that's supposed to be a scaling factor for the KL term of the variational loss. This might be useful to avoid the "posterior collapse phenomenon". This pull request makes sure that it's used in the loss function.
Fixes #328.
Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
[ ] Did you make sure to update the documentation with your changes? not needed
[ ] Did you write any new necessary tests? not needed
[ ] Did you verify new and existing tests pass locally with your changes? no changes in tests
[ ] If you made a notable change (that affects users), did you update the CHANGELOG? it's a bug fix, no new feature

PR review

[x] Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Absolutely! =)

My pleasure! Excuse the weird question, but would you be able to give me an estimate of when this will be included in a minor release? Thanks! :)

we'll have a release as soon as we are done with simclr fixes, which should be a couple of days max.


Add flag to consume yaml file at a given path for future configurations

Description
This PR adds a flag config that will parse a string path during server startup. It defaults to an empty string, if no config flag is provided

What type of PR is this? (check all applicable)

[x] 🍕 Feature
[ ] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Related Tickets & Documents
#26 Flag to consume yaml file at path to prevent eviction from cache of configured repos

Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[x] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[ ] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

@k1nho - are you interested in tackling the integration of the "never evict" map into the LRU cache itself? We shouldn't merge code that is half-baked (pun intended) and I'd like to avoid the main branch having commits that are not feature complete. Although, this isn't introducing breaking changes, it would just be confusing for anyone looking at the main branch commits.

@jpmcb sure, I can give it a try! I was waiting based on the scope of the issue, but if it is ok to do it in this one I can try. I would like to know more about certain cases, right now I think of two in particular, would like to get more info on this.

Say we are about to exceed our minimum disk space and we call tryEvict, the LRU element is part of never evict, what is the expected behavior? go down the DLL to find the nearest LRU?

Kinda tied to first case, but say we have [https://github.com/open-sauced/insights, https://github.com/kubernetes/kubernetes, https://github.com/open-sauced/pizza]  as our never evict repos (imagine more repos this is just small example), and we are about to exceed our minimum disk space, we try to evict by looking for nearest LRU element not part ofneverEvictRepos but all the repos in the cache are part of neverEvictRepos, should we fail?

I think both those cases are misconfigurations: ideally someone shouldn't configure the cache to be smaller than their list of "never evict" repos nor should they have
We should provide feedback that something's not right. Let's start with a warning message and go from there.

Ok, trying to understand better the implementation. This case, for example, where we have repo3 on the LRU spot, but since repo3 is on neverEvictRepos map, we cannot evict it instead we should evict nearest LRU which happens to be 'a'. After, the swap we have a full cache with all repos being neverEvictRepos, so any subsequent Put() call can never evict a repo? or is the setup of neverEvictRepos like a constant, meaning we do not put them on the DLL but they are just placed in hm?

or is the setup of neverEvictRepos like a constant, meaning we do not put them on the DLL but they are just placed in hm?

Right. neverEvictRepos is more of a receipt to "check" when eviction is going to take place. neverEvictRepos shouldn't be a "pre-load" of repos since that would likely trigger massive rate limiting from git service providers.

ince repo3 is on neverEvictRepos map, we cannot evict it instead we should evict nearest LRU which happens to be 'a'

Correct.

After, the swap we have a full cache with all repos being neverEvictRepos, so any subsequent Put() call can never evict a repo?

That's correct. Typically that would be a cache "drop". But again, I would say that's a misconfiguration on the part of the user deploying this service. There should always be some amount of disk space free and the size of the repos in neverEvictRepos shouldn't be equal to (or greater than) the size of the attached disk.
In that scenario, we should log out a warning message that can be surfaced by administrators. And in the future, we may add some metrics that denote cache "drops" so they can see a problem has started with the service.
But for now, start with something basic. Something like a check in the eviction algorithm that sees if the node up for eviction is in the hashmap. If it is, skip and go to the next node in the list.

Awesome, I understand better now! I did the implementation, but need some help with the test setup. Right now, we have a test TestTryEvict and this line will evict all the repos.
https://github.com/open-sauced/pizza/blob/e99d988bbc30d3fc9fa4e4a6cbb0d789a5298d76/pkg/cache/lrucache_test.go#L194C8-L194C8
The way I have it now is that when  nil  is reached on the DLL, it means that all the repositories in the cache are neverEvictRepos and thus we error because of the misconfiguration. I had a test for tryEvict, but it will fail because of trying to evict everything (which it should since it represents a misconfiguration).


Use anyhow for error handling

Use anyhow instead of custom error types and strings for error handling. This should give us "caused by" style traces when an error occurs.
Before:
$ tldr --update
Error: Could not update cache: Could not remove cache directory (/home/danilo/.cache/tealdeer/tldr-pages): Permission denied (os error 13)

And after:
$ cargo run -- --update
Error: Could not update cache

Caused by:
    0: Could not clear the cache directory
    1: Could not remove the cache directory at /home/danilo/.cache/tealdeer/tldr-pages
    2: Permission denied (os error 13)

PR summary:

116 additions and 195 deletions

We're doing something right 😉

Note: For debugging of error messages, if messages aren't entirely obvious, we could also provide a debug build with features = ["backtrace"] enabled for anyhow. Then you get an error backtrace if RUST_BACKTRACE or RUST_LIB_BACKTRACE is enabled.
$ RUST_BACKTRACE=1 cargo run -- --update
Error: Could not update cache

Caused by:
    0: Could not clear the cache directory
    1: Could not remove the cache directory at /home/danilo/.cache/tealdeer/tldr-pages
    2: Permission denied (os error 13)

Stack backtrace:
   0: anyhow::context::<impl anyhow::Context<T,E> for core::result::Result<T,E>>::with_context::{{closure}}
             at /home/danilo/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.52/src/context.rs:58:30
   1: core::result::Result<T,E>::map_err
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/result.rs:852:27
   2: anyhow::context::<impl anyhow::Context<T,E> for core::result::Result<T,E>>::with_context
             at /home/danilo/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.52/src/context.rs:58:9
   3: tldr::cache::Cache::clear
             at ./src/cache.rs:359:21
   4: tldr::cache::Cache::update
             at ./src/cache.rs:188:9
   5: tldr::update_cache
             at ./src/main.rs:222:5
   6: tldr::main
             at ./src/main.rs:454:9
   7: core::ops::function::FnOnce::call_once
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:227:5
   8: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/sys_common/backtrace.rs:123:18
   9: std::rt::lang_start::{{closure}}
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/rt.rs:146:18
  10: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:259:13
      std::panicking::try::do_call
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:403:40
      std::panicking::try
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:367:19
      std::panic::catch_unwind
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panic.rs:133:14
      std::rt::lang_start_internal::{{closure}}
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/rt.rs:128:48
      std::panicking::try::do_call
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:403:40
      std::panicking::try
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:367:19
      std::panic::catch_unwind
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panic.rs:133:14
      std::rt::lang_start_internal
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/rt.rs:128:20
  11: std::rt::lang_start
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/rt.rs:145:17
  12: main
  13: __libc_start_main
  14: _start

It might also be worth it to inspect all uses of unwrap etc. and check whether it is now more reasonable to propagate as an anyhow Erorr instead

It might also be worth it to inspect all uses of unwrap etc. and check whether it is now more reasonable to propagate as an anyhow Erorr instead (maybe in another issue / PR though)

I didn't really find problematic unwraps, except for that unzip issue that popped up in that other issue. However, let's fix that separately.

I am building the benchmark docker right now!

Let me know if it makes a difference! The only place that could make a difference in my eyes is the replacement of the unwrap in the inner printing loop with a .context(...)?. However, we're not exactly dealing with millions of loop iterations, so I don't think it'll make a significant difference.

Okay so this took longer than I hoped it would. In the docker image, everything is within measurement error. On my machine, the anyhow version is anywhere from 0.2 to 0.7 ms slower than main (around 8 to 9 ms usually) on a cold disk cache. Without clearing caches, both are too fast to measure / too fast to factor out system noise. I am willing to take the performance "hit", I really like anyhow, lgtm


Add more integration tests

Integration tests branch. I'll be adding more over the next couple days. We can merge this at any time though since all the tests pass.

Added a bunch more tests, the ones that were skipping are bugs that we need to fix, I've created issues for each of these cases.
Handing it over to @timsuchanek to migrate mocha to jest. Thanks!


Dialog 'OK' doesn't select a date

So this feel really unintuitive to me. If I press the 'OK' button, I'm saying that I want the current value to set. Yet, if I start of with a picker that doesn't have a date already set, 'OK' will remain in that state. To me the purpose of the date picker is to pick a date. What do think of just disabling the 'OK' button if where is no selected date. The user will be forced to cancel if they still don't want to select a date.

I like logic of the 'OK' button as it is now in the master branch. If there is no selected date and you press 'OK', then nothing happens (why something should have happened if nothing was picked). To pick the current date you have the 'Today' button.
I really don't know what's misleading or unintuitive in this behavior. I think it's more about tastes, but from my user experience, I'd like this logic.
As for disabling the 'OK' button, what will happen if you click outside instead of 'Cancel' button?

I was thinking about it in more of a form validation scenario. If the form is invalid, we don't allow it to save. No date selected is 'invalid' for a date picker. So allowing someone to select an invalid value defeats the purpose of the component. 'OK' should be the confirmation that a value value is getting selected. Therefore, if the value IS invalid, the the 'OK' button should be disabled. Even if the 'OK' button is disabled, the Cancel button and clicking outside the dialog box will still work and leave the value in the invalid state.
I respect your desire to leave it working the way it currently does. Just giving my opinion on how I was expecting to use it.

@unmade - @SirDarquan's 'opinion' does mirror what I need, which is to attach a handler function to the OK button, which when pressed, signifies that the user confirms any date value selection. Whether the value is valid or not can be handled by the OK button event handler function.
Does that make sense somehow?

Well, now it does.


Editbin.exe command line documentation is incomplete.

The documentation for the editbin.exe command does not include the full set of parameters currently supported by the tool. Of note is the /GUARD option that sets CFG options in the binary.

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

ID: de44cbbf-b736-40e1-62c4-1c2c3141e199
Version Independent ID: 28045da2-6b76-e9c5-4faf-c88fa2f405f6
Content: EDITBIN Options
Content Source: docs/build/reference/editbin-options.md
Service: visual-cpp
Sub-service: tools
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

Moved this issue to an internal work item tracking system because we are moving away from using GitHub issues to track C++ doc work.

Marking as open so internal move tool will port it.


how does mimalloc calculate the page and segment through the mask when releasing memory？

how does mimalloc calculate the page and segment through the mask when releasing memory？That codes what I do not  understand
// Segment that contains the pointer
static inline mi_segment_t* _mi_ptr_segment(const void* p) {
// mi_assert_internal(p != NULL);
return (mi_segment_t*)((uintptr_t)p & ~MI_SEGMENT_MASK);
}

Ah, it is a bit tricky, but essentially, mimalloc aligns all segments on a 4MiB boundary to find the metadata belonging to a pointer. The technical gives more details if you are interested:
https://www.microsoft.com/en-us/research/publication/mimalloc-free-list-sharding-in-action

thank you,becase  mimalloc get memory from OS,so segments boundary is zero?


Adding Dropdown Feature in Test Report Documentation

Is your feature request related to a problem? Please describe.
I'm was annoyed to see all the lengthy ping status and scroll all the way down to reach the test summary when i was reading through the test report in NanoMQ Docs.
Describe the solution you'd like
I would like to propose the drop down feature in the docs so that it reduces the length of the page and improves readability of the documentation.
Describe alternatives you've considered
I believe adding drop down feature to hide and show the test pings status as per the user needs is the ideal solution for this.
Additional context
I would like to work on this issue as a part of Hacktoberfest contribution

sure, will make it happen.

sure, will make it happen.

Can i work on it and make a PR??

Here you go. I have labeled it as Hacktoberfest.
Thank you for the initiative!

Here you go. I have labeled it as Hacktoberfest. I had a plan to add the updated benchmarking report of 0.18, just don't have enough time....
Anyway Thank you for the initiative! @Smartmind12

Thanks I am going to make the PR rightaway!

@JaylinYu I have done the needful! Kindly review the same!


Pokemon's Location Area Encounters issue

The property "location_area_encounters" at the Pokemon endpoint now returns a string pointing to an URL
Example, for Resource Jirachi: "location_area_encounters": "/api/v2/pokemon/385/encounters"
According to the docs, it should return an array:
"location_area_encounters": [],
Is this a mistake or a change in the API?

@fferegrino this is a known change made to improve the performance of the API. I completely forgot to update the docs to reflect this! I guess this is a good testament to how quickly changes affect end users. Sorry about that! I'll rename your ticket to reflect the bad docs.

Cool, thank you for your quick response. I'm creating a client (called Jirapi) and this issue arose during some tests. I'll modify accordingly.
A final question, querying that endpoint should return the same result as the property did?

Yep

Sorry, maybe it's me.
But here http://pokeapi.co/api/v1/pokemon/13/ I can't find any "location_area_encounter".
Was moved?


upgraded the packages to latest versions available

This closes issue : #281
Description
The website had packages that were outdated so an issue to upgrade the package was raised and assigned to me
Files changed

public/mockServiceWorker.js (It is a library code that was changed automatically as soon as the library was upgraded)
package.json
yarn.lock

Commands used

yarn upgrade --latest
using yarn upgrade did not upgrade to the latest packages to had to use the latest flag

Is the development tested

[x] Yes
[ ] No

Other issues

Found an error on DS (/challenge) page

The errors are hidden in prod but are visible in dev. (Found out during the discussion call with Randhir and Yash on 20 August around 6 PM IST)
This could be raised as a new issue.

LGTM.

LGTM


recaptcha not showing

I get no errors but the recaptcha is not showing in the page, if I inspect the page I see the component but no content inside. It seems like the recaptcha was not instantiated. Any ideas?

Can you please share some code?

It seems that the problem appears when I want to use the recaptcha inside a form. If I place it outside the form then it works.

Does not seem like an issue.


Can't run the tests...

Expected behavior
Yarn install should work out of the box
Actual behavior
[tw-mbp-tuster react-datepicker (master)]$ yarn
yarn install v0.27.5
warning ../../package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred<EMAIL_ADDRESS>Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "/Users/tuster/workspace/react-datepicker/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Steps to reproduce
git clone https://github.com/Hacker0x01/react-datepicker.git
cd react-datepicker
yarn install

I believe this was an issue on my side. Running this solved my issue.
npm config set registry https://registry.npmjs.org && npm config set _auth ''


Update documentation for loop unrolling

Update the documentation for loop unrolling in our design decisions file.

Handled in #57


Extension does not load

i686, Ubuntu
I have installed i386 libwkhtmltox and php-wkhtmltox exactly according your instructions, added appropriate line in php.ini, copied extension file to php standart extensions library, but the extension does not appear in phpinfo output...

hi zavg - can you enable verbose logging of startup for php and see if there is any error we can further diagnose?

Thank you very much for quick resoponce.
Ok. How should I do it?
I set
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On
display_startup_errors = On
and restarted apache2. Where I should search for errors logging?

I would try running php from the command line with display_startup_errors = On

Nothing, only regular output...


Documentation

Is there some documentation on how I can create my own icons?

You can use a http://fontforge.github.io and his doc  to add some icons to .svg file and #52 to update other formats.

Closed due to inactivity.


Navbar Logo in Mobile

The logo in the navbar is appearing too large in mobile view and is pushing the hamburger menu past the mobile window.

This appears to only be happening when working in chrome and testing out responsiveness.  This does not happen in an emulator.


Cluster observability

During our discussions for https://github.com/stackabletech/t2/issues/368, we found out that the current logs are not sufficient to do a proper troubleshooting of the tests.
As an operator developer who is investigating a test failure, I ...

... would like to be able to access the log data of a test even if the cluster is already destroyed
... would like to be able to easily search the log data
... would like to have the following data about my test run:

operator logs of all the Stackable operators running in the cluster
event log of the K8s control plane
pod change log of the K8s control plane?
(if possible) systemd journal of the Kubelets
more (I'm greedy)

comments:

an article we stumbled upon while researching: https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/
(!) Differentiation: The logging ticket https://github.com/stackabletech/issues/issues/202 targets mostly the application/operator aspect of logging AND it will take some time before the results can be used here.

Not a long-term solution, but an interesting experiment to try: An observability product recently caught my eye - https://www.groundcover.com/. They promise A LOT. Out of the box. Could be useful to tune our expectations.
It's a bit pricy to use at scale (the pricing is at 20$ per node per month), but we can try it with up to 3 nodes for free.

Audit logging and operator/product logging are two separate problems that we need to handle.
We already have a very simplistic auditing solution in place (running kubectl get --watch for the object types we care about), even if it's not 100% reliable or comprehensive.
I think the "easy" way to handle the product logging problem (for now) would be to deploy Vector in Kubernetes mode, which just slurps up all logs from all pods running in the cluster, and dumps it into a file or wherever else.

@teozkr I was aware of that. See the last comment in the description. Thank you for the idea of using Vector. This could actually be a low hanging fruit.

Audit logging and operator/product logging are two separate problems that we need to handle.

Spike is up and running and will be demonstrated in the Stackable review on 2022-11-09.
Follow-up tasks have been created.


It looks horrible on Microsoft Edge.

I know it's probably more browser problem than plugin problem but I know there are ways to make it look better on edge.
Environment

OS: Windows 10 Creators Update
vue.js version: 2.x

What do you mean with "It looks horrible" ?

Every slots are blinded and not able to see it. Only white remains.

Should be fixed with 1.0.4


Eclipse can't import org.fxmisc.richtext.model

Hi all,
I have added the fat jar file to my build path in eclipse, but I am unable to run the JavaKeywords demo because Eclipse fails to import org.fxmisc.richtext.model for some reason. It says "org.fxmisc.richtext.model cannot be resolved."
It also can't find org.fxmisc.flowless.VirtualizedScrollPane.
Anyone seen any issues like this?
Thanks!

Which fat JAR, at what version?

I'll grab the new release. It looks like this is related to Issue #236 maybe. I can tell you that instead of following the imports in the source at the following link, I had to change to StyleSpans imports to the following. Still having no luck with VirtualizedScrollPane.
import org.fxmisc.richtext.StyleSpans;
import org.fxmisc.richtext.StyleSpansBuilder;
https://github.com/TomasMikula/RichTextFX/blob/master/richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywords.java

It looks like the demos jar is different from the stable release jar. I downloaded the stable release, but only the demos jar has org.fxmisc.richtext.model. I think the demos jar will solve my problem. I will confirm tonight when I get home.

Ahh, I see - you used "outdated" fat JAR link from README. I wrote "outdated", because it's linking to the latest "stable" version, that is pretty old (1.5 years).
Demos link is using the lastest tagged version.
Use links from that page: https://github.com/TomasMikula/RichTextFX/releases

I checked the "fat jar" links on the ReadMe. The only one that is "outdated" is the stable release. So, if that's the one you downloaded, that would explain why. All the other links that after their demo's screenshot use the most recent release.
Is this issue now closed?

Yes, it works now. Issue closed. Thanks!


Refactor TC MS Admin user logs in

test was refactored to page object design.

This branch should never be merged to develop to not interrupt other students.
Once you have it cleared - close this pull request, create a new branch from this branch and continue working on new branches.


Clarify pyo3 version on issue template

When looking at old bug reports, it's hard to tell from a glance if they are still relevant because they don't list exactly the pyo3 version they relate to. So I have adjusted the list of requested information slightly so this is captured.

Thank you!


minor typo in documentation

There is an extra parentheses at the end of the map example
Should read:
_.map({1,2,3},
    function(i,v)
        return v+10
    end)
-- => "{11,12,13}"

apologies if opening an issue for this is inappropriate.

opened a pull request


Implement 'is parsed'

Behind a feature flag.
The minimum viable feature would be enough to close this issue.

Blocking on #174.

should is parsed actually take an argument as to which category is it?
example:
sub foo() is parsed(/a+/):term {

}

sub bar() is parsed(/ <EXPR> if <EXPR>/):statement {
}

(yes, I know, 007 doesn't have adverbs. Doesn't really matter)

The category information, for better or worse, goes on the name of the identifier:
macro infix:<?>(lhs, rhs) is parsed(/"?" <.ws> ["wooga" <.ws>]* "?"/) {
    return quasi { {{{lhs}}} + {{{rhs}}} };
}
say(1 ? wooga wooga wooga wooga ? 7);        # 8

macro statement:<next>() is parsed(/"next" <.ws> <identifier>?/) { ... }

Currently leaning towards not allowing is parsed on subs, simply because subs are very runtime-y, can be passed around the program, etc. This feels incompatible with statically knowable compile-time textual information. In a way, the strength of subs as first-class citizens also damns them as something that can't be is parsed realiably.

When you pass a sub as an argument (etc), the name changes. Which is really what makes this be.
I think it makes sense that is parsed really binds to that name. Just like my &a = infix:<~>; gives you a function without any special syntax on top. (and this goes back to sub a(infix:<+>) {3 + 4}, i.e. sub a(x is parsed...) {}, mmh...)

No longer blocking on #174, seeing as we have regexes now. :tada:

When you pass a sub as an argument (etc), the name changes. Which is really what makes this be.
I think it makes sense that is parsed really binds to that name. Just like my &a = infix:<~>; gives you a function without any special syntax on top. (and this goes back to sub a(infix:<+>) {3 + 4}, i.e. sub a(x is parsed...) {}, mmh...)

Yes, what you're saying is true. And I'm not fundamentally opposed to making is parsed work for subs. It's more like, I don't see it as being on a critical path. More of an it-would-be-nice kind of thing.
One story that's missing currently for is parsed subs is, what parameters do they get from the is parsed regex? With macros, we're expecting/hoping that Q nodes will find their way into the parameters? Do subs get Q nodes too? Or do they get the "corresponding runtime values"? If the latter, how do we deal with the fact that expressions and identifiers have a value, but most other constructs (statements, traits, properties, argumentlists) don't?

Now that we have regexes, I would like us to make is parsed work for something really really simple. Something like
macro statement:whoa() is parsed(/"whoa!"/) {
    return quasi @ Q::Statement {
        say("whoa!");
    }
}

whoa!;        # prints "whoa!\n"

I haven't tried this myself, nor thought about what it would take. But clearly something needs to be installed somewhere. Probably a decent starting point is the operators, which are an open set and which can be installed.
I'll accept PRs on this. If it's still open in a week or so, I'll try it myself. :smile:

Not promising anything again, but it also sounds interesting. Should statement: add something to the statement category?
Should there be a statement:uds (user defined statement) that'd look at the is parsed list for the current scope?

Not promising anything again, but it also sounds interesting. Should statement: add something to the statement category?

Yes, but note that that in itself has no observable effect except to change what the parser parses. There's no introspection into the statement category, for example. And until further notice, you can only subrule-call <statement>, not <statement:moo>.

Should there be a statement:uds (user defined statement) that'd look at the is parsed list for the current scope?

That could work, yes. (Though, again, I haven't thought deeply about it.) The thing to make sure is that things behave sanely with the old, hard-coded statement types.


fix: make VTXO scripts miniscript compatible

miniscript uses OP_CSV OP_VERIFY instead of OP_CSV OP_DROP. This seems to be a miniscript specific rule. I couldn't find the exact reason for this. The only documentation was this comment. With this change we were able to make the asp compatible with the following miniscript on the client side: tr(UNSPENDABLE_KEY,{and_v(v:pk(ASP),pk(USER_1)),and_v(v:older(TIMEOUT),pk(USER_0))})
BREAKING CHANGE: OP_VERIFY is now used instead of OP_DROP in all VTXO scripts.

Thank you for having a look at this.
We had some more thoughts on this:
miniscript might not be the best approach if the goal is to support arbitrary scripts in Ark.
For example, if you were to build lightning "on Ark" you couldn't use miniscript because the locking script also makes use of OP_DROP: https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output

Thank you for having a look at this.
We had some more thoughts on this:
miniscript might not be the best approach if the goal is to support arbitrary scripts in Ark.
For example, if you were to build lightning "on Ark" you couldn't use miniscript because the locking script also makes use of OP_DROP: https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output

Even though the changes have been approved, seems better to close this instead of merging?


Emilia Theme Visual Bug Fix: long links can overflow past page's border.

For descriptions of an emilia theme's project page, long links could over flow and move way past the screen. Added overflow-wrap attribute to patch this visual bug. One line change to header-project.tsx file.

Hey, thanks for the PR!
I kinda missed it (sorry!) but included it now in this PR: https://github.com/LekoArts/gatsby-themes/pull/605
It's for the new major versions of the theme so if you can't upgrade straight away you could shadow the component to have it working :)


Vim: Error reading input, exiting...

When double-clicking a text file in Ubuntu (both 10.10 and 11.04), it tries to run vim and fails. When looking at .xsession-errors, there's that message. The documentation of that error (from http://vimdoc.sourceforge.net/htmldoc/message.html ) says:

"This occurs when Vim cannot read typed characters while input is required. Vim got stuck, the only thing it can do is exit.  This can happen when both stdin and stderr are redirected and executing a script that doesn't exit Vim."

Looking for the mime type files, i see that the command line used to open the file is "gvim -f filename". It works on a terminal, but fails on the GUI.

Same error here using ubuntu 11.04. Any hints on this?

i found out that there is a problem with the ~/.vimrc file...but can't figure it out yet.

Nope, doesn't work here. Commented out every reference to win32 or win64 and nothing happened. It's also curious that it has that term command there, i had to add it manually to vimrc.local because the arrow and other keys weren't working, so it probably isn't even working (otherwise i wouldn't have had to add it)

does gvim start, when you completly remove ~/.vimrc?

Yep, it does.

Well i tried to narrow the error in my ~/.vimrc using
if 0
endif
around half the code of the file so you know in which half the error resides and so on...

Is this still happening? A lot has changed for the 3.0 branch (now default branch).

Yes, still happening. Awesome changes in the new version by the way, but it still shows that error, which means it can't be called from the GUI or be used as default editor on X, at least on Ubuntu :(


Add a viewer for COSMO surfaces

I suppose I did rebase.
Add a viewer for COSMO surfaces
vis_poly/cosmo_poly.py

read .cosmo or gout file to import cosmo data.
output polygonized cosmo surfaces for visualization.
used to_sigma.py for parsing.
used open3d package for surface reconstruction (mesh generation)
used pyvista package for visualization.

profiles/to_sigma.py

clean: unnecessary 'print' at L158 removed.

I did too many commits. sorry.  I should squash them before push. I'll handle this tomorrow.

It's ok, I can squash-merge at the end, which is usually how I handle pull requests.  That avoids accidents persisting in the main codebase.

Are we all set here?

Are we all set here?

I guess so.

Ok good, I'll squash+merge tomorrow.

Very nice work!


Is there an option that will not display the wifi info message?

Hello!
I am currently building the iot system with esp32.
The wifi has been completed to some extent, and now we are doing another task.
However, sometimes I do not want to see the wifi info message. Is there an option not to display the wifi info message?

You can use esp_log_level_set function to control logging for different modules. For example, you may set log level for "wifi" to ESP_LOG_NONE.

Thank you very much.
Dowan Kim
From: Ivan Grokhotkov<EMAIL_ADDRESS>Sent: Monday, April 10, 2017 11:16 PM
To: espressif/esp-idf
Cc: kdw; Author
Subject: Re: [espressif/esp-idf] Is there an option that will not display the wifi info message? (#508)
You can use esp_log_level_set http://esp-idf.readthedocs.io/en/latest/api/system/log.html#_CPPv217esp_log_level_setPKc15esp_log_level_t  function to control logging for different modules. For example, you may set log level for "wifi" to ESP_LOG_NONE.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/espressif/esp-idf/issues/508#issuecomment-292962498 , or mute the thread https://github.com/notifications/unsubscribe-auth/AXuQWk7T2sniSzSwcjgt4FsZobXkc4w4ks5rujmpgaJpZM4M4xdF .  https://github.com/notifications/beacon/AXuQWlz7MPqczWX1FwcAl-Ouu3HfBoQ4ks5rujmpgaJpZM4M4xdF.gif


Restructure grid, node and link

Since graph,node,link are more abstract terms I would be careful to create any relations. A graph can exist of a single node, so a node can be a graph itself. link could be defined as part_of some graph, while node can be part_of some graph but also a subclass of graph. The order-zero graph (empty set graph) has no nodes and links, the singleton graph has no links. Therefore,  a graph does not  necessarily have a link or node as parts.

There are no definitions provided yet. We should discuss the terms from the energy modelling point of view and add definitions.

node = electricalGridNode --> Are there other kinds of nodes in this domaine which should be considered in the OEO, e.g. a mathematical understanding?
graph in which context does this term occur in the energy modelling context?
link = powerLines like SuedLink --> are there other kinds of links in this domaine to be considered in the OEO?

Nodes and links in energy modeling not only occur in modeling of electricity grids, but also in other grids (district heating grids, gas grids, etc.). So it an electricalGridNode is a node but is not equal to a node.
Likewise relation between link and  powerLines.

Thanks for the clarification @l-emele. What about:
grid: BFO: object with subclasses 'electricityGrid', 'gasGrid', etc
definition:  assembly of systematically connected elements that can work as a supply system
gridComponent:  BFO: fiat object part, 'part_of grid'
definition: discrete element of a grid which serves a certain purpose
gridNode: BFO: fiat object part, 'is_a gridComponent', 'part_of grid'
definition: part of a grid where two or more links meet
link: same as gridNode
definition: a grid component that serves as a connection between two other grid components
electricalGridNode: BFO: fiat object part, 'part_of electricityGrid'
@gnn: Please check BFO parent classes. Relation to #41.

so as bullet points current situation, as tasks a bit modified changes proposed in this issue
grid

classification: BFO: object aggregate
definition: A grid is an object aggregate of systematically connected artificial objects that can work as a supply system
subclass 'electricityGrid'
[ ] add: subclass 'gasGrid'

ElectricityGridcomponent

classification: ArtificialObject,  part of some ElectricityGrid
definition: A grid component is a part of an electrical grid
[ ] change definition: "Arificial Object that is a discrete element of an Electricity Grid."

Node

classification: BFO: fiat object part
[ ] definition: "a fiat object part of a grid where two or more links meet"
[ ] name change: GridNode/ ElectricalGridNode
[ ] add relations  'part_of grid'
[ ] reclassify as ElectricityGridComponent?

link

classification: BFO: fiat object part
[ ] definition: a fiat object part that serves as a connection between two other grid components
[ ] add relations  'part_of grid'
[ ] reclassify as ElectricityGridComponent?

hmm thats a bit complicated, are graph, link and node fiat object parts or objects?

I suggest we try to find primary labels for these that are less generic and more specific to the electricity context, to avoid ambiguity with other types of grid, node and link? (I see some are already suggested in the proposal above.)
e.g. (just using the proposed definitions)
supply grid: A supply grid is an object aggregate of systematically connected artificial objects that can work as a supply system.
alternative term: grid
electrical grid node: "a fiat object part of an electrical grid where two or more links meet"
alternative term: node
grid component link: "a fiat object part that serves as a connection between two other grid components"
alternative term: link

Grid/ supply grid: I guess all the grids concerning energy system modelling are supply grids. @l-emele what do you think? Along with electricity grid, we'd need gas grid and (district) heating grid. Anything else? I could go with both terms, grid or supply grid.
grid component link: The def of @jannahastings sounds good to me. The technology specific types of links (power line #18, gas pipeline, heat line/heating pipeline) would then be subclasses of this class.
Grid node: all kinds of grids do have grid nodes, which are at least the systematically connected objects. So, an upper class grid node  would make sense I think.
Apart from link endings, an electricity grid node unusally constists of other components, too, like trafo/swithyard,... And I think this holds true for other grids, too (e.g. compressor stations for gas). Maybe we should reflect that in the def.
Do we also need/want a class grid component as parent of electricity grid component and the other grid components?

I think it would be more consistent if we make grid component classes for all grids or just for the superclass grid instead of just electricity grid.
Making grid component classes for all grids would be nice to see e.g. all the electricity grid classes together

Ok, I'll start implementing.

We still have the class graph left, without definition. I am going to delete it.

It makes sense, that link and node are fiat object parts of a grid.
On the other hand, its current subclasses, e.g. powerline or transformer, should rather be defined as artificial objects/grid components in my opinion.
Could we use the has_function property, or something like that, to describe that a powerline is a link (although link is not defined as function)?

if an object like a powerline is a link than it can be clearly differentiated from the rest of the grid and is therefore no fiat object part. So I think it makes more sense to classify link and node as sth else. Maybe make them roles? A powerline has the role "link" in a grid?

@jannahastings what do you think?

if an object like a powerline is a link than it can be clearly differentiated from the rest of the grid and is therefore no fiat object part. So I think it makes more sense to classify link and node as sth else. Maybe make them roles? A powerline has the role "link" in a grid?

I don't think we should move link and node to the dependent entities branch (i.e. as roles or functions), as they do not seem to me to be attributes (that inhere in other entities) but entities in their own right. And looking at the current definition of powerline: "A powerline is a grid component that is an uninterrupted transmission system between two nodes in an electricity grid." -- that also suggests that this class is always used to pick out a part of the larger grid. So if it is not a fiat object part, it is nevertheless still an object part. So I think we can just go with classifying power line as a link, and classifying link as a grid component. The parent of grid component can be "object and part_of some grid" (fully defined)

Ok, I implemented @jannahastings suggestions.
This is how the structure looks right now:

Since powerline is definitly an electricity grid component I'd suggest

to make all subclasses of electricity grid component direct subclasses of grid component
to make electricity grid component, heating grid component and gas grid component equivalent classes with "grid component and part of some electricity grid" etc.

yes sounds good


nixos/ncdns: replace shortened link

Description of changes

Things done

Built on platform(s)

[ ] 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/)
22.11 Release Notes (or backporting 22.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

What's the motivation? Github says the existing links won't be removed, even if the service is deprecated.

That we know what the full link is and can find the file in the source tarball. Also using link shortener in documentation is bad internet hygiene.


dimming a light....

If I have a lamp, which is off, by siri dimme to 10%, is sent by mqtt following:
{"Name": "Living room light one", "service_name": "", "characteristic": "On", "value": true}
And immediately after that:
{"Name": "living room light one", "service_name": "", "characteristic": "Brightness", "value": 20}
Why is the first info sent that light is on?
Can one change the only dimm value comes?

@dr-apple
That's a HomeKit feature.
charachteristic "On" is set bei HomeKit whenever the Brightness changes from 0 for the first time.
Changing the Brightness e.g. from 20 to 40 will not send the characteristic "On".


test: improve test coverage for heap sampling

Update the test in test/heapsampling.go to more thoroughly validate heap sampling.
Lower the sampling rate on the test to ensure allocations both smaller and
larger than the sampling rate are tested.
Tighten up the validation check to a 10% difference between the unsampled and correct value.
Because of the nature of random sampling, it is possible that the unsampled value fluctuates
over that range. To avoid flakes, run the experiment three times and only report an issue if the
same location consistently falls out of range on all experiments.
This tests the sampling fix in cl/158337.

Thank. I'd still like to get this in.


TRG 2.04 leading product repository

Just a small hint i would change the ordering of the informaion to the leading product repo.
First the leading repo and then the info which other repos belongs to portal.
https://github.com/eclipse-tractusx/portal-frontend/blob/7e06f7330bfecd55a1a4e88e0c172ef71ef3eaa6/README.md?plain=1#L4-L13C1
![Tag](https://img.shields.io/static/v1?label=&message=LeadingRepository&color=green&style=flat) The helm chart for installing the Catena-X Portal is available in [portal-cd](https://github.com/eclipse-tractusx/portal-cd).

The Catena-X Portal application consists of

- [portal-frontend](https://github.com/eclipse-tractusx/portal-frontend),
- [portal-frontend-registration](https://github.com/eclipse-tractusx/portal-frontend-registration),
- [portal-shared-components](https://github.com/eclipse-tractusx/portal-shared-components),
- [portal-assets](https://github.com/eclipse-tractusx/portal-assets) and
- [portal-backend](https://github.com/eclipse-tractusx/portal-backend).

The Catena-X Portal is designed to work with the [Catena-X IAM](https://github.com/eclipse-tractusx/portal-iam).

@FaGru3n change is implemented, please check the release branch https://github.com/eclipse-tractusx/portal-frontend/tree/release/v1.8.0


Adding secrets during the release...

Following is a scenario release pipeline,

azure key vault task
deployment task X
az keyvault secret set --vault-name 'ContosoKeyVault' --name 'StorageConnection' --value 'Pa$$w0rd'
deployment task Y
deployment task Z
......
Will my secret "StorageConnection" be available for deployment task Y and Z automatically? Or should add another azure key vault task after step 3 to get the latest available list of secrets?

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

ID: 69ff8e50-4187-3622-1beb-155f006af5f5
Version Independent ID: bc56fa96-bded-95f8-39a4-a9e5242db1bf
Content: Azure Key Vault task - Azure Pipelines
Content Source: docs/pipelines/tasks/deploy/azure-key-vault.md
Product: devops
Technology: devops-cicd
GitHub Login: @RoopeshNair
Microsoft Alias: ronai

Please add another instance of keyvault task if you need the tasks Y & Z to use latest downloaded secret fetched from the Azure Key vault. Alternatively, if all of the above mentioned tasks are in the same job, please refer to this doc to define a variable that it can be consumed by one of the subsequent steps in the pipeline.

Thanks for your question. It looks like your question isn't an issue with the documentation, but an issue or question specific to your implementation or a bug in the product itself.
For help with a specific task, here are a couple of options where you might consider asking your question:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot

If you've encountered an issue with the product itself, to make sure it gets in front of the right people, please submit your bug here.
If you have an idea for improving the product, please submit your idea here.


lib/meta: add a goret approach to get the name of random types.

may be used to improve deserialization?

Lost it at goret-driven-development.
+1

If it works it ain't stupid...


I run the code as you mentioned,but the result is still original?

    \Badoo\SoftMocks::setRewriteInternal(true);
    \Badoo\SoftMocks::redefineFunction(
        'strlen',
        '$a',
        'return \\Badoo\\SoftMocks::callOriginal("strlen", [trim($a)]));'
    );

    echo strlen('  aaa888   ').PHP_EOL;

@zhushengwen, is your script required though soft-mocks (or script which require your script required through soft-mocks)? Also is autoloader required though soft-mocks?
See usage, how to require autoloader and others.
You can try SOFT_MOCKS_DEBUG environment variable:
SOFT_MOCKS_DEBUG=1 php path/to/your/base/script.php

Close, because there is no answer for long time.


Kubernetes, Helm, or AZ DS: Make changes to azds.yaml with Azure Dev Spaces

Is there an official reference document for azds.yaml, like below?
Which section is Kubernetes, which section Helm, which section is AZ DS?
kind: helm-release
apiVersion: 1.1
build:
  context: .
  dockerfile: Dockerfile
install:
  chart: charts/bikesharingweb
  values:
  - values.dev.yaml?
  - secrets.dev.yaml?
  set:
    replicaCount: 1
    image:
      repository: bikesharingweb
      tag: $(tag)
      pullPolicy: Never
    ingress:
      annotations:
        kubernetes.io/ingress.class: traefik-azds
      hosts:
      # This expands to [space.s.][rootSpace.]bikesharingweb.<random suffix>.<region>.azds.io
      - $(spacePrefix)$(rootSpacePrefix)bikesharingweb$(hostSuffix)
configurations:
  develop:
    build:
      useGitIgnore: true
    container:
      sync:
      - "!**/package.json"
      command:
      - npm
      - run
      - dev
      iterate:
processesToKill: [node]

The azds.yaml file generated by the prep command should work fine for
a simple, single project development scenario. If your specific
project has increased complexity, you may need to update this file
after running the prep command.

https://docs.microsoft.com/en-us/azure/dev-spaces/how-dev-spaces-works
What should I need to learn to make the change, Kubernetes, Helm, or AZ DS?
https://github.com/Azure/dev-spaces/blob/master/samples/BikeSharingApp/BikeSharingWeb/azds.yaml

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

ID: d3aacc8c-a837-ee29-b1b9-b48c108bfdca
Version Independent ID: 3f1141bb-f17b-75d9-10a8-52c5378a6e71
Content: How Azure Dev Spaces works and is configured - Azure Dev Spaces
Content Source: articles/dev-spaces/how-dev-spaces-works.md
Service: azure-dev-spaces
GitHub Login: @zr-msft
Microsoft Alias: zarhoads

@PingPongSet, Thanks for the feedback! We are taking a look into this and will get back to you soon.

@PingPongSet This section in the document explains the correlation:
In order to run your application in a dev space, it needs to be containerized, and you need to define how it should be deployed to Kubernetes. To containerize your application, you need a Dockerfile. To define how your application is deployed to Kubernetes, you need a Helm chart.
To assist in creating both the Dockerfile and Helm chart for your application, the client-side tools provide the prep command. The prep command will also generate a azds.yaml file at the root of your project. Azure Dev Spaces uses this file to build, install, configure, and run your application. This configuration file lists the location of your Dockerfile and Helm chart and also provides additional configuration on top of those artifacts.
The azds.yaml file generated by the prep command should work fine for a simple, single project development scenario. If your specific project has increased complexity, you may need to update this file after running the prep command.
You might also want to refer to this related issue.
@zr-msft Do you know of a doc that could be the reference for the azds.yaml file?

@PingPongSet This section later in the doc goes into more detail on the azds.yaml file.


IE9 has no styling applied to the Center (Incorp. Bless)

I loaded the center in IE9 and it had no CSS applied I had no issues in other browsers including IE11.

Fix to attempt: Implement bless as well as slimming down the included css to only use what's needed.

I had run a smoke test in IE9 and all of the pages checked appeared correct.


Update JSON key locations

When parsing the JSON file, the script expects "_app" and "_line" to be top level attributes, when they are actually second level attributes under "_source". This change modifies the script to account for this.
Sample log event:
{
  "_index": "logline.[prefix].2019-05-02.23",
  "_type": "logdna",
  "_id": "",
  "_score": 1,
  "_source": {
    ...
    "_file": "/var/log/daemon.log",
    "_line": "May  1 20:02:52 node1 microk8s.daemon-kubelet[7436]: E0501 20:02:52.363346    7436 kuberuntime_manager.go:780] container start failed: ErrImageNeverPull: Container image \"iotsimulator\" is not present with pull policy of Never",
    "_ts":<PHONE_NUMBER>353,
    "_app": "daemon.log"
  }
}

Thanks for the update.  It looks like the JSON format also changed in Oct 2018.  There is a test data file test_data\testlog.json.gz that needs to be updated to the new format for the tests to pass.

Hey Chris, thanks for getting back to me! I'll see about updating the data and re-running the tests before pushing any more changes.


WorkItem Search for "(16)" fail unexpectedly with 500 error

2017/01/06 14:42:22 Error listing work items: pq: syntax error in tsquery: "(16):*"
2017/01/06 14:42:22 [EROR] uncaught error req_id=FnAHkepK3d-542 err=pq: Could not complete operation in a failed transaction id=oGDChtHE msg=&{Errors:[0xc420986c30]}
2017/01/06 14:42:22 http: multiple response.WriteHeader calls

(pq: Could not complete operation in a failed transaction)
[2017-01-06 14:42:22]

It fails primarily because of un-escaped braces.
Adding a test case to expose this bug and then fix it.

PR #640


Middleware static - Properly merge options, allow getOnly to be configured.

Pretty small change, but I needed getOnly to be false on a recent project, and found that it was hard coded to true. Fixed up options merging and made getOnly configurable.

for what? POSTing to a static file etc is kinda weird

Yeah, I agree it sounds dumb, but we're using some static JSON files as "fixtures" for the unit tests on our framework. So our unit tests would attempt to POST to the static JSON file which would emulate a restful update. No big deal if you dont want to merge it in, but there was still a bug in the way options were being merged, so that's fixed too.


DA for multiple treatments

Hi!
thank you for this package and for the useful tutorials!
I am working on CyTOF generated data, where I have four groups of treatments, and I want to make three pairwise comparisons
treatmentA to treatmentAB
treatmentC to treatmentCB
treatmentCB to treatmentAB
How do I create a design matrix and contrast?
this is what I did, but I am not sure it was the correct thing to do
my results don't show the different comparisons and without any statistical value
thanks!
condition = ei$condition
condition

[1] treatmentA    treatmentA    treatmentA    treatmentA    treatmentA    treatmentA    treatmentAB treatmentAB treatmentAB treatmentC     treatmentC     treatmentC     treatmentC     treatmentC     treatmentC     treatmentC     treatmentCB  treatmentCB  treatmentCB  treatmentCB
[21] treatmentCB
Levels: treatmentA treatmentAB treatmentC treatmentCB

design <- model.matrix(~0+condition)

contrasts <- makeContrasts(
  treatmentAB-treatmentA,treatmentCB-treatmentC , treatmentCB -treatmentAB ,
  levels=colnames(design))

da_res1 <- diffcyt(sce,
                   design = design, contrast = contrasts,
                   analysis_type = "DA", method_DA = "diffcyt-DA-GLMM",
                   clustering_to_use = "merging")

rowData(da_res1$res)

DataFrame with 11 rows and 3 columns
cluster_id     p_val     p_adj

B cells             B cells                    NA        NA
CD4 T cells         CD4 T cells                NA        NA
CD45-               CD45-                      NA        NA
CD45- CD11b+ CD11c+ CD45- CD11b+ CD11c+        NA        NA
CD45+               CD45+                      NA        NA
CD8 T cells         CD8 T cells                NA        NA
DCs                 DCs                        NA        NA
Granulocytes        Granulocytes               NA        NA
Macrophages         Macrophages                NA        NA
Monocytes           Monocytes                  NA        NA
TCRgd T cells       TCRgd T cells              NA        NA

Hi again,
can anyone help?
thanks again,
Maya

Hi Maya, did you figure this one out? I'm facing the same issue.

I'm not fully sure (I'm guessing), but often model.matrix() makes a modification to the column names with conditionXX when using ~0+condition, but I would need to check it.
If your code is like above, can you give the output of design and contrasts to make sure they match up correctly?


Benchmark instances

FJSPLIB
https://people.idsia.ch/~monaldo/fjsp.html#ProblemInstances
New instances (?)
https://github.com/ai-for-decision-making-tue/Job_Shop_Scheduling_Benchmark_Environments_and_Instances
https://github.com/SchedulingLab/fjsp-instances

Da Col, G., & Teppan, E. C. (2022). Industrial-size job shop scheduling with constraint programming. Operations Research Perspectives, 9, 100249. https://doi.org/10.1016/j.orp.2022.100249

[ ] Job shop instances

[ ] Related: https://github.com/wsgisler/job-shop-scheduling

[ ] https://github.com/SchedulingLab/jsp-instances

Dauzère-Pérès, S., Ding, J., Shen, L., & Tamssaouet, K. (2023). The flexible job shop scheduling problem: A review. European Journal of Operational Research. https://doi.org/10.1016/j.ejor.2023.05.017

contains an overview of benchmark instances.

There are several sets of FJSP benchmark instances that are widely used in the literature:
34 BRdata (Brandimarte, 1993), HUdata (Hurink et al., 1994), BCdata (Barnes and Chambers,
35 1996), DPdata (Dauzere-P ́eres and Paulli, 1997), DMUdata (Demirkol et al., 1998), KCdata
36 (Kacem et al., 2002a), Fdata (Fattahi et al., 2007), DAdata (Birgin et al., 2015), as well as
37 Ydata (Birgin et al., 2015), leading to a total of 467 instances of different sizes and with
38 different flexibility levels.

Test Instances for the Flexible Job Shop Scheduling Problem with Work Centers
Dennis Behnke1,∗ and Martin Josef Geiger1

also contains a benchmark set.

Lunadi 2020: online color printing instances
https://github.com/Willtl/online-printing-shop/tree/master

[ ] Should be easy to solve this type of model.

Naderi, B., & Roshanaei, V. (2022). Critical-Path-Search Logic-Based Benders Decomposition Approaches for Flexible Job Shop Scheduling. INFORMS Journal on Optimization, 4(1), 1–28. https://doi.org/10.1287/ijoo.2021.0056

[x] New hard FJSP instances. Cant find the instances directly from the paper, but I know that Naderi et al. (2023) has them,

Morais, R., Bulhões, T., & Subramanian, A. (2023). Exact and heuristic algorithms for minimizing the makespan on a single machine scheduling problem with sequence-dependent setup times and release dates. European Journal of Operational Research. https://doi.org/10.1016/j.ejor.2023.11.024

[ ] 1800 instances for single machine with SDST and release dates: https://github.com/rsobralm/SMRDSDST/tree/main
[ ] Instances should be attributed to Ovacikt, I. M., & Uzsoy, R. (1994). Rolling horizon algorithms for a single-machine dynamic scheduling problem with sequence-dependent setup times. International Journal of Production Research, 32(6), 1243–1263. https://doi.org/10.1080/00207549408956998

[ ] What's strange about these instances is that they include information about the number of machines but they're only used to create single machine instances.

https://github.com/ScheduleOpt/benchmarks lots of instances here

https://grupo.us.es/oindustrial/en/research/results/ here too

https://ptal.github.io/scheduling-data.html overview of main instances

https://www.projectmanagement.ugent.be/research/data


Feature request: implement introspection API in oauth2 client

Sometimes we need to introspect with oauth2 provider the validity of a token. As such a built-in client API for token introspection like authlib.integrations.requests_client.OAuth2Session.revoke_token will be useful.

seems that building OAuth2Auth already checks token validity.

Forget it. Turns out that the how to authenticate the introspect endpoint is undefined. For example, in CAS server, the introspect endpoint expects HTTP basic authentication with client_id and client_secret as username and password.
As such there is no point in implementing it in library.

I can't understand your question. Can you explain it in detail with examples?

Currently, I need to directly make a requests call to do token introspection
# introspect token for validity
auth = HTTPBasicAuth(
    oidcdemo_client_id,
    oidcdemo_client_secret
)
access_token = token['access_token']
data = {
    'token': access_token
}
reply = requests.post(introspect_url, auth=auth, data=data)

It would be useful to have a API such as
introspect_token(url, token=None, token_type_hint=None, body=None, auth=None, headers=None, **kwargs) to wrap the operation.

Added in master code.

@lepture I am trying to implement introspection on client side suing Okta as my authorization server but continuously getting error
{"error": "missing_authorization", "error_description": "Missing \"Authorization\" in headers."}
My Implementation

class MyIntrospectTokenValidator(IntrospectTokenValidator):
    def introspect_token(self, token_string):
        print(f"Introspecting token {token_string}")
        url = f'{okta_keys.get("base_url")}/v1/introspect'
        data = {'token': token_string, 'token_type_hint': 'access_token'}
        auth = (okta_keys.get('client_id'), okta_keys.get('client_secret'))
        resp = requests.post(url, headers=headers, data=data, auth=auth)
        resp.raise_for_status()
        return resp.json()

require_oauth = ResourceProtector()
require_oauth.register_token_validator(MyIntrospectTokenValidator())

okta = oauth.register(
    name='okta',
    client_id=secrets["internal_client_id"],
    client_secret=secrets["internal_client_secret"],
    access_token_url=f'{okta_keys.get("base_url")}/v1/token',
    authorize_url=f'{okta_keys.get("base_url")}/v1/authorize',
    api_base_url=f'{okta_keys.get("base_url")}',
    introspect=f'{okta_keys.get("base_url")}/v1/introspect',
    jwks_uri=f'{okta_keys.get("base_url")}/v1/keys',
    userinfo_endpoint=f'{okta_keys.get("base_url")}/v1/userinfo',
    client_kwargs={'scope': 'openid email profile'},
)

@app.route('/authorize', methods=["GET", "POST"])
def authorize():
    _okta = oauth.create_client('okta')  # create the google oauth client
    token = _okta.authorize_access_token()  # Access token from google (needed to get user info)
    session.permanent = True  # make the session permanant so it keeps existing after broweser gets closed
    headers = {'Authorization': f'Bearer {token.get("access_token")}'}
    print(f"\n\n{headers}\n\n")
    return redirect(url_for('index', _external=True))

@app.route('/oauth/hello-world-api', methods=["GET", "POST"])
@require_oauth(['openid', 'email', 'profile'])
def hello_world():
    return str('Hello World')

I have been trying to resovle this for a while but could not succeed


Fix button icon_disabled_color alpha channel

Alpha is hard-coded to 0.4 for icons when a button is disabled. This change will respect the theme's icon color instead.
See https://github.com/godotengine/godot/pull/57459 for the 3.x PR

Thanks!


Wanna see my hot pics?💋💋💋

Hi!😻😻😻 Wanna see my hot pics?💋💋💋 Go to this site and find me here. ❤❤❤ My nick is sexygirl662 👇👇👇
https://tinyurl.com/ulpu2gz

Why?

Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/36825?email_source=notifications&email_token=AGJRJ7V5SIP2P5L3MSSDFWTRDKR7BA5CNFSM4KWTJUUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOB43VQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGJRJ7UHQOFS2VOBOLSUQ43RDKR7BANCNFSM4KWTJUUA
.


not working in windows chrome, but it is working in other browsers

Using this demo link and google.com and the "always on" check
https://eager.io/app/NnkeiqegQ2K4/install?source=button
and then turning off my wifi
I just stumbled upon this, when developing on my windows machine
not working in:
Windows
Chrome version:
44.0.2403.157 m
OSX
Safari 8.0.8
But, it is working in:
OSX
Chrome: 44.0.2403.157
IOS
Safari mobile
Windows 10
IE 11
Edge
Does anyone else noticed this?

:+1: noticing the same

Facing same issue. :-)

Possibly a consequence of https://github.com/HubSpot/offline/issues/209 ?


Flv video support

Describe:
I saw in the Discord group that flv videos are not supported since they're old video formats. In the off chance, would it be possible to get support for it? If the benefits aren't worth the addition / support for flv, no worries and feel free to close out. We're currently trying with flv.js as a wrapper for Vidstack, but might not be as compatible as we expected.
There's a discussion post from a few months back here: https://github.com/vidstack/player/discussions/857
Thanks.

Thank raising this but unfortunately out of scope for us right now. We can consider revisiting it in the future.


Plugin Request - curl data from MyDLink Baby Cam DCS-825L

So I've got this D-Link DCS-825L Baby Cam that has a temperature sensor on it. I've been digging around trying to figure out how to get the Temperature out of it, and I think I've found the right file.
on the device, there's a script called http://[Device IP]/eng/web_event.cgi which, when run returns the below:
motion_detected_1=off
mdv1=0
pir=off
gp_input_0=off
gp_input_1=off
gp_input_2=off
gp_input_3=off
storage_full_sd=off
storage_failure_sd=off
in_recording=off
audio_detected=off
gp_output_0=off
gp_output_1=off
gp_output_2=off
gp_output_3=off
pan_pos=0.000000
tilt_pos=0.000000
zoom_mag=0.000000
focus_step=0
irled=off
playing_music=off
music_repeated=off
night_led=off
camera_name=<redacted>
speaker_occupied=off
mic_muted=off
td=normal

tdC=23
tdF=73

tdC=23
tdF=73

tdC=23
tdF=73

tdC=23
tdF=73

tdC=23
tdF=73

The temperature result keeps repeating over and over for as long as the script is running.
Now I'm not great at coding, but I'm sure there must be a way to pull this out into a Thermometer reading that can be input into HomeBridge... Any ideas? There must be some way to CURL this output?

Well.. so I sort of answered my own question:
curl -u admin: -m 1 http:///eng/web_event.cgi | grep 'tdC=' | sed -n -e 's/^tdC=//p'
The -m is to -max-time the curl command to 1 second, which catches the first temp report
the grep finds the term tdC= from the whole string
the sed removes the search parameter "tdC=" and just returns the value after it.
returns a very simple "23"
Thank you very much!
Now... how to get this into an accessory?

I haven't tried this, but there are some plug-ins for readable HTTP that may do the trick.
Here's one for thermostats, but it doesn't look like there's very good instructions. You'll have to dig around the code to see what parameters it needs...
https://www.npmjs.com/package/homebridge-http-thermostat
I'm guessing it's going to be similar to something like this one (this one is just to get an on/off characteristic):
https://www.npmjs.com/package/homebridge-readablehttp

Also, if you're in the market for a thermostat, I love my Ecobee3 and definitely recommend them. You can add remote sensors to it and put them in any room. It responds to "What is the temperature in ?". It's much more reliable that HomeBridge too. Just another option.

did anyone dig any deeper into this topic?


How to integrate with sails.js?

Hi,
Can I know is that possible to integrate bull board into our project which using sails js?
I've seen this issue for integrate 2 framework into a single project:
https://github.com/felixmosh/bull-board/issues/103
but I have no idea how to do it in sailsjs.

There is no official support, you can make an adapter between sails.js => express as I've answered in https://github.com/felixmosh/bull-board/issues/212#issuecomment-752206341,

With v3.0.0 you can write an adapter for sails.js.
PRs are welcome


Only one openshift-apiserver pod out of three is responding

On GCP 4.0 on CentOS apiserver runs on 3 masters, but only one pod is responding. This breaks openshift-kube-apiserver, which uses api server to communicate - most of the requests are failing.
$ oc get pods -n openshift-apiserver -o wide
NAME              READY     STATUS    RESTARTS   AGE       IP            NODE
apiserver-dz57l   1/1       Running   0          21m       <IP_ADDRESS>   vrutkovs-ig-m-4m83
apiserver-nrc9c   1/1       Running   1          3m        <IP_ADDRESS>   vrutkovs-ig-m-23z7
apiserver-zsl6n   1/1       Running   1          3m        <IP_ADDRESS>   vrutkovs-ig-m-42bb
# curl -kLvs https://<IP_ADDRESS>:8443/apis/apps.openshift.io/v1
<hangs>
# curl -kLvs https://<IP_ADDRESS>:8443/apis/apps.openshift.io/v1
<hangs>
# curl -kLvs https://<IP_ADDRESS>:8443/apis/apps.openshift.io/v1
<works immediately>

This works fine if I adjust ds/apiserver to match only one known-to-work master node. All masters are created from the same instance group and get the same firewall rules applied.
This doesn't seem to affect AWS, but should happen on libvirt with 3 masters

Can you check from inside the pods whether the API servers answer? kubectl exec ....
In other words: is it a network problem?

Yep, oc -n openshift-apiserver exec <pod name> -- curl -kLvs https://localhost:8443 works fine

It's an MTU problem; the nodes have an mtu of 1460. We need to fix this, either in the network operator (someday) or the installer (easier)

It's an MTU problem; the nodes have an mtu of 1460. We need to fix this, either in the network operator (someday) or the installer (easier)

How would you propose the installer fix this without changes to the operator?

It was a wrong MTU on GCE which was breaking us

A couple ways to do this, but for GCP, the SDN mtu will always be 1410. We already have https://jira.coreos.com/browse/SDN-250 to figure out the MTU story in a sustainable way.


Using ->toOthers() results in a "Ably error: Malformed message; invalid connectionKey" Same as issue 38

Hi!
Seems I am getting this as well when using the method in Laravel. I have all the latest packages and Laravel 11 latest.
broadcast(new ChatMessageCreated($message))->toOthers();
Result in:
[2024-09-15 01:38:06] local.ERROR: Ably error: Malformed message; invalid connectionKey {"userId":1,"exception":"[object] (Illuminate\Broadcasting\BroadcastException(code: 0): Ably error: Malformed message; invalid connectionKey at /vendor/ably/laravel-broadcaster/src/AblyBroadcaster.php:187)
I check the X-Socket-Id, it is there. And the socket is in the payload sent to the Rest api
I am really not sure what causes this. I do see that have a couple of websocket initiating, I did connect to different channels as I have a channel fro chat, for announcement and for some other events.
So not sure why the socket id a invalid connectionkey.
I check both on the front end and in the AblyBroadcaster.php and the key are exactly the same.
┆Issue is synchronized with this Jira Task by Unito

Hi @graphem thanks for raising the issue. Can you confirm you are using laravel-echo at client side? It will be great if you can create a dummy repo that can help us reproduce the issue. Then we can try to fix it ASAP.

Yes I am using Echo. I will see what I can do for the dummy repo. Thanks!

Yes I am using Echo. I will see what I can do for the dummy repo. Thanks!

Thanks, that would be super useful 👍

@sacOO7 Here is the repo:
https://github.com/graphem/build-a-realtime-chat-with-laravel-vue-and-pinia
You will need to run the migration and add a room in the DB, then visit the /rooms/{slug}. Then you will see the 500 happening on trying to publish a message.
Thanks!!

@graphem thanks for creating the repo. We will try to reproduce from our side and post updates here

@sacOO7 Were you able to reproduce?

Hi @graphem I was able to reproduce the issue. Although, I had to manually edit the db for rooms. Btw, does this code work properly for reverb?

Seems I have found out the issue. This also needs sending clientId as per https://ably.com/docs/channels#publish-on-behalf. Currently, we are only sending connectionKey. This will work when user is not logged in. But for logged in user, we need to send clientId as well. This will require updating both laravel-broadcaster and laravel-echo packages. We should be able to update the same in next few days 👍

And yes the project works fine with Reverb.

Hi @graphem issue is fixed and released in latest versions of laravel-broadcaster and laravel-echo ( fix on the master branch, will be published soon ).

Btw, do star both repos if you feel like it : )

Amazing! Will test it out soon


Improve handling for all-in actions

When a player bets all their chips, these actions are still labeled as "bets" or "raises." It would be helpful to note that these are all-ins, and provide an "all-in" (shortcut: a) action.

@CharlieHess Would it be better to call it Push (p) ? http://poker.wikia.com/wiki/Push

@pstutes: All poker clients that I know of use the term all-in.

+1 on all-in

I created a pull request to my implementation
https://github.com/CharlieHess/slack-poker-bot/pull/58


[Falcon7b] Add perf and output verification settings to demo and add demo to CI

For the grayskull/wh/t3000 Falcon7b (tt-lib) demos:

Add an option to compare generated tokens against expected tokens
Add an option to compare e2e perf in perf_mode against expected perf
Add an option (disabled by default) to save generated tokens
Add expected output json files
Update readmes with new commands

For the t3000 demo:

Add 8-chip perf verification and output verification to demo pipeline in CI (runtime ~7m)

FYI @uaydonat @s-jovic @djordje-tt

Multi-chip demo tests: https://github.com/tenstorrent/tt-metal/actions/runs/9120886240
Post-commit models tests: https://github.com/tenstorrent/tt-metal/actions/runs/9120970134


Fix reported content length for HttpResponse::endWithoutBody

Hey!
I need to report a real size of a body in the HEAD response. It doesn't work without this patch.
Thanks.

Hey @uNetworkingAB,  could you give your feedback on my changes? No pressure at all, I just need to understand how to proceed.


Pep8 cleanup

@ravwojdyla nothing urgent, just keeping code standards up to snuff..

You can also set it up in your build matrix, like we do for luigi:
https://github.com/spotify/luigi
https://travis-ci.org/spotify/luigi

Some big changes coming. Will do this some time after that..


Bug: Low DPI "Add" button

Description
This is probably a duplicate issue, but I've noticed that the little icon used for creating a new item is somewhat low-quality and should be better contrast. This is rather specifically in dark mode, but the issue is still apparent in light mode, just not as prevalently.

Surely a font icon like  would be appropriate here? The contrast of the dark icon and the dark app appearance makes the current icon feel slightly out of place...

Steps To Reproduce

Open any view
Look at the "Add..." button in the top left corner of the toolbar

Requirements

See if this is a DPI scaling issue
Consider replacing the icon with a different font icon

Files Version
<IP_ADDRESS>
Windows Version
10.0.22631.4317
User ID
N/A
Log File
N/A

Thanks for the report, this is a known issue with WinUI 3 but the good news is a fix is being targeted for 1.7.
https://github.com/microsoft/microsoft-ui-xaml/issues/9338

We still use 1.5 (it is the version of API framework we mainly use called WinAppSdk and we're having an issue with 1.6) and 1.7 will come out by the first half of 2025.

We received word from Microsoft that they had more work than anticipated for WinAppSdk 1.7, and consequently, several tasks have been deprioritized, including the issue with path rendering.


Create a new release

https://github.com/toji/gl-matrix/issues/245
https://github.com/toji/gl-matrix/pull/357
https://github.com/toji/gl-matrix/commit/bcb8258fd4939844fe91796efe48622c618a97fb

Yes please!


Pass packages filter to test command env

Stack:

#447
#446
#445
#444
#443 ⬅
#441

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.


🚀 feat: password visibility toggle button for user and mentor!

Is your feature request related to a problem ? Please describe. ✍
Enhancement
Describe briefly how you would implement this enhancement.
Some steps to implement this enhancement-
1. I will add the toggle button in password section of User login

Additional context or screenshots
Additional context
Are you contributing for a program?
GSSoC2023
Code of Conduct

[X] I have read and agree to the Contributing Guidelines of this project.

cool!

@SINJINI-G update please ?

@SINJINI-G update please ?

Almost done. Will make a PR soon.