Update RestClient.cs - X509Certificate2 constructor behaviour under certain windows server & IIS

This is a fix for when using asp.net on some windows servers, where the X509Certificate2 constructor tries to access the private key store for local user, even for .pfx file, and if the profile is not loaded in IIS (even some cases when it is loaded) it throws an error - The specified network password is not correct.
This tells the constructor to look at the Local Computer key store to avoid the issue. Downside of this is, it will create files under %ProgramData%\Microsoft\Crypto\RSA\MachineKeys\ which needs to be cleared. The best solution to tackle this is to use the X509Certificates.Reset() to clear out all resources at the end of the usage of the certificate.
Example usage -
var restClient = new RestClient(destServerUrl);
string qsFileName = QlikSense.QlikSenseApplicationName(downloadUrl, 1);

var certPassword = new SecureString();
foreach (var c in "".ToCharArray())
{
    securePassword.AppendChar(c);
}

var serverCerts = RestClient.LoadCertificateFromDirectory(certificateLocation, certPassword);
restClient.AsDirectConnection("Directory", "User", 4242, false, serverCerts);

var data = System.IO.File.ReadAllBytes(sharedFolder + @"Export\" + qsFileName);
string nameOfApp = appRename;

var result = restClient.WithContentType("application/vnd.qlik.sense.app").Post("/qrs/app/upload?keepData=true&name=" + nameOfApp, data);

var json = JsonConvert.DeserializeObject(result);

I have now added a version of the method RestClient.LoadCertificateFromDirectory that takes a X509KeyStorageFlags as argument. I will therefore close this pull request.


kernel did not sent the value when edit the dict with 40000 keys in spyder4.0.0b7

Hi, all. there is problem when I edited the dict with 40000keys and values whose shape is (100,1) .

That dict is too big, so it's not possible to retrieve its value to show in Spyder, sorry.
However, the error message can be improved to better explain the reasons of the failure.

but in the versiont 3.3.6 spyder with kernel 0.5.2, it give me a warning "will be slow", but give the correct  solution. I think it's a better solution, when 4.0.0b7 give the error and then every vaviables  show the same erro window.


Another question.

why are you not on twitter, or if you're give me the link so that I text you there or Discord.

why are you not on twitter, or if you're give me the link so that I text you there or Discord.

In case you don't use any social media platform, give me your mail :)

Looks like you are using a recursive approach - so fibo(50) will take a long time. The big-O is O(Z ^ n) (where Z is the golden ratio ~1.62). Therefore fibo(50) means on the order of<PHONE_NUMBER>3 operations. How much time did it take?
Your programming language looks very cool - I especially like the extern fun syntax! Here is my reddit: https://www.reddit.com/user/EricBuehler

Looks like you are using a recursive approach - so fibo(50) will take a long time. The big-O is O(Z ^ n) (where Z is the golden ratio ~1.62). Therefore fibo(50) means on the order of<PHONE_NUMBER>3 operations. How much time did it take?
Your programming language looks very cool - I especially like the extern fun syntax! Here is my reddit: https://www.reddit.com/user/EricBuehler

It's basically infinite loop 😅, thanks for the extern syntax.

I texted you on reddit

I don't see it... how did you text it?

Update: I just got it.


feat: Run python doctests

This PR extends Papyros with the following features:
ChangeListeners to the user's code can now specify a delay before they are called, i.e. delay ms will pass after the last change to the document before they are called. This allows running more expensive checks for advanced functionality with minimal impact (similar to how linting is done)
Backends can provide extra running modes depending on the contents of the editor. Implementation has been provided for a doctest-runner: enabled when doctests are detected and automatically runs them. Currently, the run happens in verbose mode to make it clear what happened to the user (preventing empty outputs indicating success).
The run and stop button have also been combined into a single button as one was always disabled anyway.
Example usage:

Closes #183

I would make this a neutral button instead of a green one (similar to the copy code to dodona)

Saved this as neutral-bg in the tailwind config.

Can you add a doctest example to the examples section?
This example already exists, it's called "Doctests" and features code based on an implementation of factorial.

Now that you toggle between the Run and Stop buttons, could you make sure they have the same width. Now they have a slightly deviating with, which gives some unpleasant "jumping" behaviour.

Now that you toggle between the Run and Stop buttons, could you make sure they have the same width. Now they have a slightly deviating with, which gives some unpleasant "jumping" behaviour.

I could add a min-width, but since these are translated strings there's no easy way around that. Any language that is added later might run into different problems when the button text is changed.


Add doc on managing environments

[ ] ~Tests added / passed~
[ ] ~Passes black dask / flake8 dask~

Closes https://github.com/dask/distributed/pull/4190
Fixs #6702

@jsignell ?


Using beta, major lag with indented lists and supercharged plugin

What happened?
I updated to latest beta version of DataView and experienced a freeze state upon restart of Obsidian.
Reverting back to the release version no longer freezes the app.
To reproduce:

Create a new vault
Add plugins: BRAT, DataView, SuperCharged links and enable them all
Do not update DataView to latest beta yet
Create two notes, leave one empty and add 20 items to a list, all indented (so 20 indents)

For example:
- aaaaaaaaaaa
    - aaaaaaaaaaaa
        - aaaaaaaaaa

and so on

switch back and forth between the two notes, no problem
Use BRAT to update DataView to latest beta version (https://github.com/blacksmithgu/obsidian-dataview)
switch between the two notes, lag

Adding more indented items to the note gets the lag exponentially longer
DQL
No response
JS
No response
Dataview Version
0.5.20
Obsidian Version
0.14.6
OS
Windows

Another thing, if the list do not have indented items then all is fine.

Is the SuperCharged links plugin also relevant to the freeze? Perhaps the dataview query API subtly changed in a way to break the plugin.

Maybe, I'll contact the team about the issue.

I've improved some API-related slowness which may resolve this issue - @stecydube do you see better performance on the latest version?

Yes, that fixes it!
I tried it with 30+ indented items and no slowness.
I'm going to see the code... curious on how you fixed it 😁


Playing shorts doesnt prevent phone from locking

Fixed in 5.0.3 https://github.com/bcc-code/bcc-media-app/commit/3dcb9a1a168e9e21e84e0d8562767f67c4b49c52


docs: fix space issue in CDN link (fix #1272)

Please check if the PR fulfills these requirements

[x] It's the right issue type on the title
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes/features)
[ ] Docs have been added/updated (for bug fixes/features)
[ ] It does not introduce a breaking change or has a description of the breaking change

Description

remove spaces from CDN links

Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

@y7ya
Thanks for your contribution 🙌


Handle the release of the next version of bashate

The format of the output will change with 0.3.2 when it gets released.  This will allow for having warnings though so that can be checked for again.
0.3.1 output:
E002: Tab indents: '	echo "bad line"'
 - bashate_testing/midentify.sh : L2

0.3.2 output:
[E] E002: Tab indents: '	echo "bad line"'
 - /home/ben/bashate_testing/midentify.sh : L2

While bashate itself might not provide an option for providing version, maybe you can use pbr or pip to handle version requirements.
[~] ben@ed90$ pbr info bashate
bashate	0.3.1	released

[~] ben@ed90$ pip show bashate
---
Name: bashate
Version: 0.3.1
Location: /usr/local/lib/python2.7/dist-packages
Requires: pbr, Babel, argparse

Checking for version is not going to be feasible.  version_args just appends arguments to cmd and since the bashate command doesn't provide a mechanism of providing version.  The module code itself doesn't even have version information, all of the above output is metadata only created for pbr/pip.

E0005 so far is the only warning in 0.3.2. One possible solution could be just wait until 0.3.2 is out and update the regex checking to distinguish errors from warnings.
So far now as a workaround I guess I could update the regex to ignore text before the error code to be operational for both versions and just incorrectly flag E005 as an error when 0.3.2 comes out.  Or could ignore E005 with -i to just not flag it at all.

With #5 merged this is addressed.  When 0.3.2 gets released things can be updated to handle warnings correctly which will be addressed in #4 so closing this out.


Search SDK: Fixing unit tests that were broken by VS2017 migration

As part of moving to VS2017, the Search SDK is using a newer version of the ClientRuntime. Two of the unit tests were pinning constructor validation behavior of ServiceClient, which seems to have changed.
Also, the move to VS2017 required using a newer version of the Resource Manager SDK, which required re-recording all mocks.
Finally, for the data plane SDK, we upgraded to Microsoft.Spatial 7.2.0, which is compatible with VS2017 and .NET Core.
FYI @shahabhijeet

Description

This checklist is used to make sure that common guidelines for a pull request are followed.

[X] I have read the contribution guidelines.
[X] The pull request does not introduce breaking changes.

General Guidelines

[X] Title of the pull request is clear and informative.
[X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[X] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[X] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[X] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as a link to the swagger spec, used to generate the code.
[X] The project.json and AssemblyInfo.cs files have been updated with the new version of the SDK.

I'm going to close this and open a new one after rebasing my changes.


Extension to Clapeyron.jl

Right now the core dependency is CoolProp.
I would like to see if it can be extended to Clapeyron,jl.
The core problem is that the variable nodes we have are (h, p , mdot) while with Clapyeron.jl   we can have nodes to be (T,p,mdot) this does not allow us to represent state point in the two-phase region. So HP cycles will not be represented properly.

Clapyeron.jl has been updated to handel ph flash computations. We can now possibly get this working.


Update Python to 3.11

We're standardizing on this version across the various Benefits related repositories.

This is where I'm currently at with testing this Python update:
Start from clean slate

[x] Use Docker Desktop to delete containers and images for Benefits and eligibility-server

Update Python

[x] Update docker-python-web Dockerfile to use python:3.11
[x] Rebuild its image - docker compose build app --no-cache
[x] Check its Python version - docker compose run --entrypoint "python --version" app

Test Benefits with updated base image

[x] Update Benefits Dockerfile to use docker-python-web:app (locally built image)
[x] Rebuild Benefits image - docker compose build client --no-cache
[x] Check its Python version - docker compose run --entrypoint "python --version" client
[x] Open Benefits devcontainer with "Rebuild Without Cache and Reopen in Container"
[x] Run app locally and go through full flow - did Senior/Login.gov eligibility verification and enrollment, also tested Veteran/Login.gov eligibility with ineligible user
[x] Verify that unit tests pass

Test eligibility-server with updated base image

[x] Update eligibility-server Dockerfile to use docker-python-web:app
[x] Rebuild eligibility-server image - docker compose build server --no-cache
[x] Check its Python version - docker compose run --entrypoint "python --version" server
[x] Open eligibility-serve devcontainer with "Rebuild Without Cache and Reopen in Container"
[x] Update Benefits compose.yml to point at local eligibility_server:latest
[x] Run app locally and go through Courtesy Card flow and enrollment

❌ Getting this output2023-09-19 13:44:04 + bin/init.sh
2023-09-19 13:44:04 + flask init-db
2023-09-19 13:44:05 [2023-09-19 18:44:05,575] DEBUG urllib3.connectionpool:1048 Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-09-19 13:44:05 [2023-09-19 18:44:05,794] DEBUG urllib3.connectionpool:546 https://raw.githubusercontent.com:443 "GET /cal-itp/eligibility-server/dev/data/server.csv HTTP/1.1" 200 2074
2023-09-19 13:44:05 Traceback (most recent call last):
2023-09-19 13:44:05   File "/home/calitp/.local/bin/flask", line 8, in <module>
2023-09-19 13:44:05     sys.exit(main())
2023-09-19 13:44:05              ^^^^^^
2023-09-19 13:44:05   File "/home/calitp/.local/lib/python3.11/site-packages/flask/cli.py", line 1064, in main
2023-09-19 13:44:05     cli.main()
2023-09-19 13:44:05   File "/home/calitp/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main
2023-09-19 13:44:05     rv = self.invoke(ctx)
2023-09-19 13:44:05          ^^^^^^^^^^^^^^^^
2023-09-19 13:44:05   File "/home/calitp/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
2023-09-19 13:44:05     return _process_result(sub_ctx.command.invoke(sub_ctx))
2023-09-19 13:44:05                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-19 13:44:05   File "/home/calitp/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
2023-09-19 13:44:05     return ctx.invoke(self.callback, **ctx.params)
2023-09-19 13:44:05            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-19 13:44:05   File "/home/calitp/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
2023-09-19 13:44:05     return __callback(*args, **kwargs)
2023-09-19 13:44:05            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-19 13:44:05   File "/home/calitp/app/eligibility_server/db/setup.py", line 34, in init_db_command
2023-09-19 13:44:05     import_users()
2023-09-19 13:44:05   File "/home/calitp/app/eligibility_server/db/setup.py", line 57, in import_users
2023-09-19 13:44:05     import_csv_users(path, remote)
2023-09-19 13:44:05   File "/home/calitp/app/eligibility_server/db/setup.py", line 97, in import_csv_users
2023-09-19 13:44:05     data = csv.DictReader(
2023-09-19 13:44:05 Creating table...
2023-09-19 13:44:05 Table created.
2023-09-19 13:44:05 Importing users from: https://raw.githubusercontent.com/cal-itp/eligibility-server/dev/data/server.csv
2023-09-19 13:44:05            ^^^^^^^^^^^^^^^
2023-09-19 13:44:05   File "/usr/local/lib/python3.11/csv.py", line 86, in __init__
2023-09-19 13:44:05     self.reader = reader(f, dialect, *args, **kwds)
2023-09-19 13:44:05                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-19 13:44:05 TypeError: "quotechar" must be a 1-character string

[ ] Troubleshoot and fix:

[x] Revert eligibility-server back to Python 3.10 (point it back to GHCR docker-python-web)
[x] docker compose build server --no-cache
[x] Open Benefits devcontainer with "Rebuild With No Cache and Reopen in Container"
server service was able to start, gives output:

2023-09-19 13:51:49 + bin/init.sh
2023-09-19 13:51:49 + flask init-db
2023-09-19 13:51:51 [2023-09-19 18:51:51,184] DEBUG urllib3.connectionpool:1048 Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-09-19 13:51:51 [2023-09-19 18:51:51,392] DEBUG urllib3.connectionpool:546 https://raw.githubusercontent.com:443 "GET /cal-itp/eligibility-server/dev/data/server.csv HTTP/1.1" 200 2074
2023-09-19 13:51:52 + nginx
2023-09-19 13:51:52 + python -m gunicorn -c /home/calitp/run/gunicorn.conf.py eligibility_server.app:app
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [14] [INFO] Starting gunicorn 21.2.0
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [14] [INFO] Listening at: unix:/home/calitp/run/gunicorn.sock (14)
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [14] [INFO] Using worker: sync
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [15] [INFO] Booting worker with pid: 15
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [16] [INFO] Booting worker with pid: 16
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [17] [INFO] Booting worker with pid: 17
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [18] [INFO] Booting worker with pid: 18
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [19] [INFO] Booting worker with pid: 19
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [20] [INFO] Booting worker with pid: 20
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [21] [INFO] Booting worker with pid: 21
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [22] [INFO] Booting worker with pid: 22
2023-09-19 13:51:54 [2023-09-19 18:51:54 +0000] [23] [INFO] Booting worker with pid: 23
2023-09-19 13:51:51 Creating table...
2023-09-19 13:51:51 Table created.
2023-09-19 13:51:51 Importing users from: https://raw.githubusercontent.com/cal-itp/eligibility-server/dev/data/server.csv
2023-09-19 13:51:51 Users added: 25
2023-09-19 13:51:51 Eligibility types added: 1

[ ] Figure out what the difference is

[ ] Verify that unit tests pass


A subcommand to manage addons

What feature would you like to be added?
As KubeOne got support for addons (#782) , we might need to add "addon package manager" subcommand to make it easier to:

list publicly available (A.K.A. discovery) addons
download them

kubeone addons subcommand should have at least 2 commands:

kubeone addons list — that will fetch from the addons index (TODO: where this will be?) a list of available addons
kubeone addons get — that will download the requested addon and place it into the addons directory (configured in KubeOne config).

The addons index
One possible place can be github.com/kubermatic/kubeone/{KUBEONE_VERSION}/addons/index.json, as kubeone can detect own version and construct appropriate URL to the index JSON.
What are use cases of the feature?
Greatly improve UX for the end user of KubeOne, and provide a facility to use/reuse different system software.

Not that many users seem to use this feature.

Since we heavily changed the way addons work, probably we should close this one as obsolete.

@kron4eg A subcommand to manage addons could still be very useful. Right now, we don't have any way of listing addons or showing what's inside an addon, besides going to GitHub (which is not really user-friendly).

But it will be different subcommand from what I've anticipated initially, and it has to have new issue with new adapted requirements.

Replaced by #1622


UWLSWD index page

remaining to-dos

[ ] Add email contact to index - @briesenberg07 will do this once shared-email setup for<EMAIL_ADDRESS>is complete
[ ] Replace any lang tags which are not IETF Best Current Practice 47 (IETF-BCP47) language tags -- see

uwlib-cams/uwlswd_vocabs#30
https://github.com/uwlib-cams/uwlswd_ngl/issues/11
...

[ ] Replace uwlswd/xsl/temp_index.xsl with index.xsl*, which:

[ ] Sorts resources using schema:disambiguatingDescription values
[ ] Fetches @en human-readable information (titles, descriptions, disambiguatingDescriptions, etc.) for index

* to-be-written
Summary
Output/update comprehensive HTML index page at UWLSWD repository each time a dataset is added/updated, perhaps with additional details for each resource. Eliminate multiple links to datasets/vocabs from University of Washington Libraries Semantic Web Resources, simply link to this index.

@cspayne thank you for sharing the draft index page**! This is a great starting point. \I'd like to improve the presentation with some sorting, and perhaps in future, present the resources in categories.

Sorting: xsl:sort could be implemented to sort alphabetically by titles/title, or in some other useful way
Categorization: This is probably for the future. I don't imagine that our current DataCite XML provides any values which could be used to divide resources into categories... but this might be possible in future. Specifically, we've talked about coming up with meaningful but brief phrases for resourceType...

<?xml version="1.0" encoding="UTF-8"?>
<resource>
   ...
   <resourceType resourceTypeGeneral="Dataset">brief phrase here</resourceType>
   ...
</resource>

...perhaps these could be used to sort into categories? Or, if we add other elements to our DataCite descriptions, something else??
** *@gerontakos Cypress' draft .html file can be downloaded for viewing from my OneDrive w/ UW NetID login.

One other point of feedback, and I'm not sure what to do here--
It's a big overwhelming list! This isn't any shortcoming in Cypress' work, it's just that we've published a lot of resources, which constitute a long list with lots of titles and lots of text, and that's all there is to it!
But, is there any way to make these more digestible? Brainstorming:

A search box at the top of the page above the list would help, but I don't think you can do that with a static page (can you?)
What about presenting a simple list at top, and a full listing with details at bottom? Something like**:

Instances of the aggregation class [go to this resource on the web] [go to details below]
Linked Data Platform Vocabulary [go to this resource on the web] [go to details below]

[...then, below...]
Instances of the Aggregation Class
Instances of the class represented in the University of Washington digital collections; the class is taken from the Digital Public Library of America Metadata Application Profile 5.0
Linked Data Platform Vocabulary
RDFS vocabulary establishing classes and properties needed to describe platforms used to process RDF datasets. The word platforms represents applications, software, scripts, programs, etc. useful in processing the datasets.
[...]

Or, a table, with titles in a left-hand column and descriptions in a right-hand column?
Or, something else??

** Note that these links don't go anywhere

Continuing to brainstorm options for making a less-listy page which (I think) could be accomplished in a static page:

Navigation pane with (short-)title-only links to full descriptions
...

see recent commit: update index to include resourceType

A couple of additional index to-dos:

[ ] Get "Instances of the ProvenanceStatement Class" into the correct category [1A] -- @briesenberg07 will do this as the error is probably in temp_index_categories.xml
[ ] Update index_pages.css so that all description text has a left margin [1B] -- @cspayne changing indent-text to margin-left in index_pages.css [2] seems to do what I want but I'm not sure whether this might cause problems for any other index pages. OK to make this change?

[1A+B]

[2]

[ ]  Update index_pages.css so that all description text has a left margin [1B] -- @cspayne changing indent-text to margin-left in index_pages.css [2] seems to do what I want but I'm not sure whether this might cause problems for any other index pages. OK to make this change?

Not a problem! The UWLSWD index page is the only page using the indent class.

@briesenberg07
Is this issue ready to be worked on? I'm happy to take it on if so.

Looks like there are a few still-to-do tasks above, here's the status:

👎🏻  Add email contact to index - this can't be done yet, once @gerontakos makes me owner of the shared NetID uwlsemanticweb I can get email set up for the ID and we can begin plastering it all over UWLSWD
👍🏻  Replace any lang tags which are not IETF Best Current Practice 47 (IETF-BCP47) language tags - can't quite remember why this was an index issue... I think there are a couple of lang-tag issues in UWLSWD_cleanup, and checking for non-BCP-47 tags is in the checklist, but I'm not sure why it'd be an index issue (index page has no RDFa, thus no embedded lang tags...). So I don't think it's an index issue, but I do think there are more lang tags out there that need cleaning up and this can be worked on.
👍🏻  Replace uwlswd/xsl/temp_index.xsl with index.xsl - if the remaining needed schema:disambiguating description values can be added, then I believe we can implement a new style sheet for generating the index. So it'd be a multi-step process, but this can be worked on. If you get into writing the new stylesheet, note that I demoted the VoID description to the lowest slot in the index TOC.


simplify cookie logic, fixes issue of multiple cookies created based on path

@chappjc I noticed that multiple cookies where being created based on path and was causing issue persisting the selected theming option while navigating though the explorer.
This simplifies the logic and solves that issue.

Seems to work alright, but the light theme always seems to be shown briefly (sometimes noticeable such as with a new address with lots of transactions).

yea, we need a way to set the darkBG class on body on the server side when that is the preferred state.
@raedah is looking into using cookie to accomplish that.

For now this should be merged in though because the current master has a bug where the theme state does not persist reliably between routes to multiple cookies being created for various paths.


Add grid data and tool used to generate it

PR adds grid data (tiles, land, zones) in both geographic (EPSG:4326) and projected (7 variants of Lambert's Azimuthal Equal Area) formats. I refactored past work to generate this data into a script. Tiles in this version of the data now also indicate if they intersect with land.
Changes to data from (internal) version V00:

Fix projection parameters for Asian continent
Add "land" column to tile spatial layers that indicates if each tile's geometry intersects with land in its zone

The GEOG/GeoJSON versions of the tiles need to be corrected to not span the anti-meridian since this causes tiles to be rendered across the map
See:

https://tools.ietf.org/html/rfc7946#section-3.1.9
https://tools.ietf.org/html/rfc7946#section-3.1.9
https://macwright.org/2016/09/26/the-180th-meridian.html

Going to fix this tonight or tomorrow, but then I think it's good to merge

Should be fixed in a296815
@YingtongZhang do you mind second checking these corrected GeoJSON files again tomorrow if you have time? Thanks again for ~double~ triple checking already :smile:


UpdateSearchCluster lambda: Unable to import module 'index': No module named index

Describe the bug
When updating an item DynamoDB Streams should update the search index. However next to the trigger in the table is shown PROBLEM: Function call failed and looking at the CloudWatch logs of UpdateSearchCluster lambda shows Unable to import module 'index': No module named index
To Reproduce
Steps to reproduce the behavior:

Do a fresh deployment in us-east-1
Modify some item
Look at the trigger/ cloudwatch logs of UpdateSearchCluster lambda function

Expected behavior
No error message.

Hi,
We have resolved the issue and updated the UpdateSearchCluster function.
Thanks for raising the issue.

Hello Mohiuddin,
I am trying to setup a lambda function to notify about ssl certificate expiry information well in advance.   I have created function with Python 2.7 runtime and index.lambda_handler.  I have attached code.  When I test it, I am getting below error:
{
"errorMessage": "Unable to import module 'index'"
}
START RequestId: b50a27a6-ad29-48a9-8af5-49e77e7b8557 Version: $LATEST
Unable to import module 'index': No module named index
Please check and help me here.  Thanks.
acm_lambda.txt


Added the Linde College

Added my school as i would like to use Pycharm Pro for my projects on O&O. :)

@J3ldo First stage of verification passed, official domain is lindecollege.nl as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@J3ldo Thank you for your patience while waiting for a review and processing your request. Pull request merged.

Thanks alot school just started so right on time.


pythonPackages.serverlessrepo: init at 0.1.8

A Python library with convenience helpers for working with the AWS Serverless Application Repository.
Packaging this in order to update aws-sam-cli to the latest version.

Motivation for this change
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

All changes built and tested successfully against Python 2.7, 3.5, 3.6 and 3.7

Thanks for your contributions and attentiveness @dhl :sparkles:
In the future, if you have dependent packages for a certain feature, be sure to pr them together.
That makes things faster because they're reviewed together.
Other than that, be sure to ping me when you update aws-sam-cli.

@worldofpeace understood, and thanks for mentoring me through the process! I really appreciate the effort you've put into reviewing the PRs and getting them into shape for merging.


ModuleNotFoundError: No module named 'shopping'

Hi there!. i've a problem with shopping module from google-api-python-client, i attempted create a new venv environment then reinstall the package, but not work
Environment details

OS type and version:  bash $ uname -a: Linux [user] 4.15.0-139-generic #143~16.04.1-Ubuntu SMP Wed Mar 17 08:10:33 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Python version: 3.8
pip version: pip --version pip 20.2.4 from /var/www/html/...venv//lib/python3.8/site-packages/pip (python 3.8)
google-api-python-client version:
Name: google-api-python-client Version: 2.9.0 Summary: Google API Client Library for Python Home-page: https://github.com/googleapis/google-api-python-client/ Author: Google LLC Author-email<EMAIL_ADDRESS>License: Apache 2.0 Location: /var/www/html/../venv/lib/python3.8/site-packages Requires: uritemplate, httplib2, google-auth, google-api-core, google-auth-httplib2, six Required-by:

Steps to reproduce

source venv/bin/activate
python3.8 insert-product.py -insert

Code example
from shopping.content import common

product = self.collection.find({"_id": mongoDB_ID })
product = list(product)
if len(product) > 0:
    uniqueId = common.get_unique_id()
    print(uniqueId)

Stack trace
Traceback (most recent call last):
  File "ovnix.py", line 10, in <module>
    from modules.modules import moduleRegisters as modules
  File "/var/www/html/.../venv/modules/modules.py", line 7, in <module>
    from .google_merchant_center.index import MerchantCenter
  File "/var/www/html/.../venv/modules/google_merchant_center/index.py", line 3, in <module>
    from shopping.content import common
ModuleNotFoundError: No module named 'shopping'

extras
pip freeze | grep -i google

google-api-core==1.30.0
google-api-python-client==2.9.0
google-auth==1.31.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.53.0

Thanks.

Hi @gjae ,
This issue appears to be specific to a sample in googleads/googleads-shopping-samples and unrelated to google-api-python-client. Please create a new issue here.  If you have a support contract with Google, please create an issue in the support console to ensure a timely response. I'm going to close this issue but please re-open it if you have additional questions.


2 Transfers from coinbase

I did 2 transaction from coinbase to bitmart and they said successful but never arrived at bitmart account.

Me too i make 1 transfer from coinbase to Kucoin nothing received? And nobody can’t help😬


upcoming: [M3-7647] - Update logic for child_account PAT

Description 📝
Used our approach from https://github.com/linode/manager/pull/10024 to cleanup Parent/Child scopes.
Nothing should change in terms of what we see from the original PR: https://github.com/linode/manager/pull/9992
Changes  🔄

Changed getPermsNameMap to filterPermsNameMap and now it accepts an array of perms
Enabled child_account perms and removed our old approach
Update tests

How to test 🧪
Prerequisites
(How to setup test environment)

Check out this PR and yarn dev.
In the dev tools:

Make sure the Parent/Child Account Switching feature flag is on.
Turn mocks on.

Verification steps
(How to verify changes)

Go to http://localhost:3000/profile/tokens and click the Create a Personal Access Token button.
Observe that "Child Account Access" is visible as a new scope and all scopes default to None.
On the tokens landing page, click the View Scope button for any mock PAT.
Observe that the "Child Account Access" scope is visible in the table.
Toggle the feature flag off and observe that the Child Account Access token is not visible in the Create or View drawers and all scopes default to Read/Write.
Toggle the feature flag back on.
Go to serverHandler.ts and edit the following request to change the user_type to null, child, or proxy:

  rest.get('*/account/users/:user', (req, res, ctx) => {
    // Parent/Child: switch the `user_type` depending on what account view you need to mock.
    return res(ctx.json(accountUserFactory.build({ user_type: 'parent' })));
  }),

Observe that the Child Account Access token is not visible in the Create or View drawers.
Verify tests pass:

yarn test utils CreateAPITokenDrawer ViewAPITokenDrawer

As an Author I have considered 🤔
Check all that apply

[x] 👀 Doing a self review
[x] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[x] 🧪 Providing/Improving test coverage
[x] 🔐 Removing all sensitive information from the code and PR description
[x] 🚩 Using a feature flag to protect the release
[x] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

Toggle the feature flag off and observe that [...] all scopes default to Read/Write.

Seeing all scopes default to "None" with the feature flag turned off:

Toggle the feature flag off and observe that [...] all scopes default to Read/Write.

Seeing all scopes default to "None" with the feature flag turned off

@hkhalil-akamai - My guess is that Jaalah copied the testing instructions from the previous PR where this was implemented, and the testing instructions weren't updated to indicate that we'd decided to un-feature-flag the change from default R/W to default None. So, what you're seeing is what's expected. I'll update the PR description. Thanks for the 👀 .


Fix selected student not resetting on Clear command

Bug fix for issue as mentioned in commit title

Code coverage fails as version number in MainApp cannot be tested.


No padding in the (Community Discussion Forum) button on the chapter's page (In Mobile devices)

Description

No padding in the Community Discussion Forum on the chapter's page (In Mobile devices)
Expected Behavior

Before

After

Screenshots/Logs

Environment:

Meshery Version:
Kubernetes Version:
Host OS:
Browser:

I would like to work on this issue.

Thank you, @UtkarshMishra12. Good eye!


Repo sync for protected CLA branch

The pull request is created from main638088843364225187sync_temp to main to fix git push error for protected CLA branch

Learn Build status updates of commit 23ab884:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


go_1_22: 1.22.1 -> 1.22.2

Changelog: https://go.dev/doc/devel/release#go1.22
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] 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/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

was it intentional that this was merged directly to staging instead of master?

was it intentional that this was merged directly to staging instead of master?

Yes.

I'm a nix newbie and wondering about the process this goes through until it reaches nixpkgs-unstable? Is that documented somewhere?
When can I expect to be able to use this version?

I'm a nix newbie and wondering about the process this goes through until it reaches nixpkgs-unstable? Is that documented somewhere?
When can I expect to be able to use this version?

This confused me for a while searching online to figure out how the branching worked, but I think this is the best explanation: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#staging.  I saw merges from master -> staging and figured everything is meant to hit master first.  I didn't realize staging also would be eventually merged back into master.

When can I expect to be able to use this version?

A new staging-next should start in a day or so. https://nixpk.gs/pr-tracker.html?pr=301373 is probably the easiest was to track progress.


Missing state(s) on failover

https://github.com/awslabs/aws-advanced-jdbc-wrapper/blob/51ce0b4e0a479f7920582e771dae23b73a2dfcad/wrapper/src/main/java/software/amazon/jdbc/plugin/failover/FailoverConnectionPlugin.java#L502
We should probably be doing something like
https://github.com/brettwooldridge/HikariCP/blob/8c1a7c29341348b3ea71ccfe35d4858b378160e2/src/main/java/com/zaxxer/hikari/pool/PoolBase.java#L205

Thanks Dave -- yes taking an approach closer to the hikari PoolBase would help us a lot in being able to adopt the wrapper driver for MySql.  Perhaps even better would be giving us the ability to provide a listener or lambda to initialize a connection on failover ourselves.
Currently these two methods in the FailoverConnectionPlugin will attempt to restore autoCommit, readOnly, and in some cases transactionIsolation during a connection switch, but from looking at PoolBase, a lot more properties are initialized.
software.amazon.jdbc.plugin.failover.FailoverConnectionPlugin#transferSessionState
software.amazon.jdbc.plugin.failover.FailoverConnectionPlugin#restoreSessionState
Being able to ensure proper initialization in both cases would be valuable.
If AWS Wrapper directly implemented the equivalent of Hikari PoolBase, that may be sufficient.  But as it may be out of scope for the AWS Wrapper driver to know all possible connection setup scenarios, it may also be worthwhile if the AWS Wrapper driver provided some means for us to intercept and perform the connection setup using a listener or provided lambda of some sort.
Do you have an expected timeframe to deliver this capability?  Either giving driver consumers access to connection setup, or duplicating the current Hikari connection setup in the wrapper driver so all consumers of the wrapper driver can use it?
thanks,

scott

@scott-long-adp Does https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/705 help in this case ?

@davecramer possibly -- does it address all places where session state is configured or copied?  I am thinking specifically of:
software.amazon.jdbc.plugin.failover.FailoverConnectionPlugin#transferSessionState --and--
software.amazon.jdbc.plugin.failover.FailoverConnectionPlugin#restoreSessionState
... these two methods appear to be invoked during certain failover scenarios and do some setup of the connection-- is the intent that ConnectionProviderManager.setConnectionInitFunc() replace these?  It looks like they are both still active whether setConnectionInitFunc() is used or not.

@scott-long-adp we have a more comprehensive PR in flight https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/729/

Closing issue as #729 has been merged and released in v2.3.1.


fix(packager): throw errors on an uncompilable entrypoint

Fixes #66
Have you read the section in CONTRIBUTING.md about pull requests?
Yes
Are your changes appropriately documented?
N/A
Do your changes have sufficient test coverage?
N/A (when I do a test blitz on error pathways this will be covered)
Does the testsuite pass successfully on your local machine?
N/A

Sigh, we're still getting race conditions with rebuild on Windows: https://ci.appveyor.com/project/electron-userland/electron-forge/build/1.0.183

Strange, we are now hitting ELIFECYCLE errors on CI 😕


ERROR: buildNavigation: Could not create solid heightfield.

I'm using Carla 0.9.13 and I'm trying to import a custom map created with roadrunner.
I have followed the steps described in this tutorial https://carla.readthedocs.io/en/0.9.13/tuto_M_add_map_source/ (using the make import method). But I'm facing some problems.
The main problem is that I can't generate the pedestrian navegation file, the pedestrian can spawn  using world.spawn_actor() but they don't move (I have followed this tutorial https://carla.readthedocs.io/en/0.9.13/tuto_M_generate_pedestrian_navigation/).
When I try to create the .bin file i found this error:
ERROR: buildNavigation: Could not create solid heightfield.
I have found this issue in the github repo: https://github.com/carla-simulator/carla/issues/5106
but nothing more. Any help is welcomed.
Thanks in advance!

same problem here, does anyone has a solution ?

For those with these issue, try to export only the mesh related to pedestrian navigation into the .obj file. It resolves my error.

Exporting only the meshes related to the pedestrian navigation has solved the problem. Thanks!

Hi All, the map that i have do not include pedestrian navigation, its a simple map with 4 way protected traffic signal exported from Road runner, i still get this error. Truly appreciate your suggestion. How do we export mesh related to specific concern into .obj? Kindly let me know -Rani

I have the same issue, did you find a way to resolved it?


fix: deprecate maxExtension in favour of maxExtensionMinutes

Background: maxExtension was incorrectly interpreted as seconds in the LeaseManager. This means that if users were relying on client side lease extension in subscribers, they would not actually extend leases for 60 minutes, but only 60 seconds. Also if the user passed in values, they'd be interpreted incorrectly. This PR deprecates the old field in favour of a new one that's explicitly named like the defaults, but also converts the old value if needed.
Fixes: https://github.com/googleapis/nodejs-pubsub/issues/1208

LGTM. Looks like the Node.js sample just uses maxMessages. Can you think of any other places we need to update?

I think this is maxMessages rather than maxExtension, should be unchanged.


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In e6c43c1, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 13373 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 1dcb988.


Flavor var file is used even if flavor option is not selected

Getting error the following error while running script
Console Logs
Error: Failed to read variables file

Given variables file ./compute-vars/.tfvars does not exist.

To Reproduce
Command used to run ./openshift-install-powervs create -ignore-os-checks -verbose
where I am using default var.tfvars file
Expected result
It should take var.tfvars file as default and not use ./compute-vars/.tfvars if flavor option is not passed

/cc @yussufsh @Prajyot-Parab @aishwaryabk

@aishwaryabk please check this ASAP.
@Shilpi-Das1 if this is blocking you then please use the master branch or old version of the script till we get you the fix.

@yussufsh Sure I will use that I have tested it with PR https://github.com/ocp-power-automation/openshift-install-power/pull/153 Its running fine

Fixed via #153


Allow to send Infinite double values either as max or min

Fixes #1264 and fixes #1271

@HeartSaVioR comments addressed.

LGTM!

Merged into master, 2.8, 2.9 respectively. Thanks for the great work!


Bikeshed-generated specs have unreadable img alt-text, when viewed with dark color-scheme preference

STR:

Configure your OS and/or browser to have a dark color-scheme preference.
Load https://drafts.csswg.org/css-grid-1/#intro
Force the images in that section to show their alt-text, by e.g. reloading with a slow network connection, or by changing the image src attributes to # (you may need to nudge them to redisplay by adding/removing display:none).

EXPECTED RESULTS:
Readable alt-text.
ACTUAL RESULTS:
The image's alt text shows up with light-gray text on a white background, which makes it ~unreadable.
Screenshot:

ANALYSIS

The light-gray text color here is #ddd which comes from a general color: var(--text); declaration for a body {...} style rule.  i.e. it's just the color that we're using by default for all text in the document (assuming it'll be displayed over the dark background)
The white background color here comes from this style rule:
https://github.com/speced/bikeshed/blob/880b32e72e8701c8da914a60ea5b3e0f5546780f/bikeshed/stylescript/colors.css#L216-L218

Perhaps we should add color:black or similar to that rule?  In general, it's good practice to set color and background as a pair, to ensure sufficient contrast.

(I've tested and reproduced this in both Firefox and Chrome, btw, so this isn't a browser-specific issue.)
CC @tabatkins (though they probably get pinged automagically here, I suspect)

Yeah, that's def a styling issue. The issue, tho, is that we want to make sure that opting your image out of the white background is as easy as possible, and having to set two properties isn't as good - if you forget to reset color as well, you'll have the same problem but in reverse.
I'll have to think a bit on if there's a good solution.

(though they probably get pinged automagically here, I suspect)

and yes, I do ^_^

Not particularly surprising, but just as confirmation - this affects other specs as well, not just the grid spec.  I just noticed it when reading the css-text-decor-3 spec when some images in the spec happened to load slowly:


[serverless-1.27.0] patch func-deploy task to use kn client midstream built

Patching func-deploy task to use midstream specific kn client image.

@lance @matejvasek

/approve
/lgtm


Update readme with correct method name #default_wait_time

The README is for master where the correct method name is default_max_wait_time

Dup of https://github.com/jnicklas/capybara/pull/1550


ModuleNotFoundError: No module named 'pkg_resources'

Description
With jupyter_ydoc==0.2.0 there seems to be an issue with missing pkg_resources:
lerna ERR! yarn run build:prod stderr:
Traceback (most recent call last):
  File "/tmp/build-env-sga8vbqf/bin/jupyter-labextension", line 5, in <module>
    from jupyterlab.labextensions import main
  File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyterlab/labextensions.py", line 37, in <module>
    from .labapp import LabApp
  File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyterlab/labapp.py", line 15, in <module>
    from jupyter_server_ydoc.ydoc import JupyterSQLiteYStore
  File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyter_server_ydoc/__init__.py", line 6, in <module>
    from .ydoc import YDocWebSocketHandler
  File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyter_server_ydoc/ydoc.py", line 11, in <module>
    from jupyter_ydoc import ydocs as YDOCS  # type: ignore
  File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyter_ydoc/__init__.py", line 1, in <module>
    import pkg_resources

Reproduce
This was noticed in https://github.com/jupyter/notebook/pull/6539#issuecomment-1261172479, with this example run: https://github.com/jupyter/notebook/actions/runs/3145280672/jobs/5112365511
In that case notebook uses hatch as the build backend but triggers commands from JupyterLab to build the extension, which probably explains why it hits the jupyter_ydoc path since there is a top-level import.

Expected behavior
Probably there should not be a dependency on pkg_resources?
Context
https://github.com/jupyter/notebook/pull/6539#issuecomment-1261172479

Operating System and version: Ubuntu GitHub Actions
Browser and version: N/A
Jupyter Server version: 1.19.1

Looks like this might be related to https://github.com/jupyter-server/jupyter_ydoc/pull/51.
Also 0.2.0 still seems to be a draft release at the moment:

I tested it in a conda-forge environment, where setuptools is always installed with python, and I didn't see this issue, thanks for reporting @jtpio.
The Jupyter Releaser failed when releasing v0.2.0, and I had to publish manually. It should be fixed now :+1:


Stash in APS3

|    by<EMAIL_ADDRESS>
We need a consistent Stash settings for BOM NWP suites.
I have discussed this task with Gary and Lawrie, and Lawrie has agreed
to take on this task. I have written some simple scripts to change stash for
UM rose app. However I believe Lawrie will do a better job.
I am happy to discuss with Lawrie on what I have done in this area.
Martine has provided information on UK's development on Stash Utility
https://code.metoffice.gov.uk/trac/um/ticket/751
This will be in 10.3

Issue migrated from trac:226 at 2024-01-31 18:19:23 +1100

<EMAIL_ADDRESS>changed component from ACCESS model to BOM ACCESS

<EMAIL_ADDRESS>commented

This should be on BOM ACCESS. Sorry for the email.


Again does not transmit sound.

Hi, again the bot does not want to transmit the sound.
ffmpeg works, everything seems to be as good, but at the same time nothing is heard in the discord.

https://hastebin.com/urapehecin.cs - Code.

Maybe there is some kind of working example?
I've already checked everything 5 times, even by the old recommendations I changed the server's location.

Hey, I apologize for the hard time you're having with Discore. I definitely can make a sample for sending audio, but I can almost guarantee that it won't work (at least not a v3 version). I've started investigating (again) why Discore seems to not work with most voice servers and I've been puzzled by it since this started happening earlier this year.
Fixing this issue requires a lot of changes made in v4, so I'm not sure I'll be able to fix the v3 branch. So what I can do is release a pre-release of v4 (which in my testing is actually very stable) that contains all of the voice fixes I've attempted until now, and then make a sample bot for you based on that release. If the sample does not work for you then your issue is certainly the same that I'm investigating.
I'll comment back here soon when I have that ready.

Okay, give this sample a try: https://github.com/BundledSticksInkorperated/Discore.Samples/tree/master/v4.0.0-pre1/Discore.Samples.VoiceSending.
The README explains how to setup and use it.
Works for me when connected to the US central voice region.

So I finally figured out why Discore wasn't working in a lot of voice regions, that is all good and fixed on v4.0.0-pre2. I updated the link in the previous comment, that example should 100% work for you on any voice region. :D
I'll be making a patch for the 3.x branch soon as well as porting those samples to 3.x since 4.0 isn't quite ready yet.

Here's the v3.1.2 sample for voice sending: https://github.com/BundledSticksInkorperated/Discore.Samples/tree/master/v3.1.2/Discore.Samples.VoiceSending

Yes, updated to v4.0.0-pre2, it works, thanks :)


ThisType cant work in the block scope of function

Bug Report

🔎 Search Terms
ThisType

🕗 Version & Regression Information

This is a crash
This is the behavior in every version I tried, and I reviewed the FAQ for entries about ThisType

⏯ Playground Link

Playground link with relevant code
💻 Code

function defineComp<Bar, Foo, Data>(
  options: {
    bar: Bar,
    foo: () => Data
  } & ThisType<{ bar: Bar }>
): Bar
function defineComp(options: any) {
  return options.bar
}

// failed
const aaa = defineComp({
  foo() {
    console.log(this.bar)
    return {
      count: this.bar() // throw error
    }
  },
  bar() {
    return '1'
  },
})

// work
const bbb = defineComp({
  bar() {
    return '1'
  },
  foo() {
    console.log(this.bar)
    return {
      count: this.bar() // it's work
    }
  },
})

🙁 Actual behavior
Has ts error that (property) bar: unknown in aaa.

🙂 Expected behavior
no error

I believe this is essentially a duplicate of #45213.
When encountering the this.bar() call the compiler has no clue what bar is because it hasn't been defined yet.


Python Invalid syntax

Hello,
I am doing as follows:
python -m virtualenv fonttools-venv
I got an error "SyntaxError: invalid syntax. Perhaps you forgot a comma?"
How can i do ? I am under windows 11, i use python command to do this.

@chabinot this question doesn't seem related to Zulip, so I'm closing this issue.  I suggest using a site like StackOverflow that is designed to answer questions about any software thing.


allow frontend to find ProjectID from metadata

Pretty simple, and it seems to me, most people will configure frontend for the current project.
Does it make sense ? Any tests to add ?
Also, it probably needs a bit of doc ?

I believe this is not the behavior we want, actually, and it could cause a lot of confusion.
We recommend that you have one frontend per metric scope, and we also recommend that a metric scope should be a project with no resources within it. So if someone follows all the recommendations, and they have a multi-project metric scope, then they actually should always have to specify a different ProjectID than the one the frontend is running in.
For customers who don't use scopes, choosing the current project ID should be fine, but I'd rather require people to read the documentation and make a decision instead of relying on built-in default behavior that could be wrong.

@lyanco thanks for the prompt answer ;)
Actually, on the linked page I read this:

Change the queried project

The frontend deployment uses the cluster's Google Cloud project as the scoping project. If this project is the scoping project of a multi-project metrics scope, then it can read metrics from all projects in the metrics scope.
You can specify a different project by using the --query.project-id flag.
Typically, you use a dedicated project as a scoping project, and this project is not the same project the frontend deployment runs in. To let the deployment read a different target project, you must do the following: [...]

If I understand correctly, my PR implements this behaviour, which is not the current case.
I am actually configuring a multi-project scope and will have to change the projectID I am using, but have already deployed the frontend and found boring to configure that, while usually, when I don't specify any project it default to the current project if applicable, in my experience.
We maybe can add an info log so it's clear when the service starts ?

Nice catch on the docs, thanks! I will update those.
FWIW one of the biggest failure points is people not configuring Grafana to connect to the APIs, instead leaving it connected to the local Prometheus. It's maybe like 1/8th of users miss this, so I do want to keep the friction here to help ensure people set Grafana up in a way that actually gets the full benefit of the system. Especially as you should only be setting up Grafana and the frontend only once or a handful of times, it hopefully shouldn't be too painful... but yes, boring :-)

The real solution here is for Grafana to implement https://github.com/grafana/grafana/discussions/40844#discussioncomment-4332200 but that's out of our control.


These Fields

Feature request

Hello
I was wondering could you maybe add these option fields to your theme?
These are taken from here

Hi,
FontAwesome is not used in this theme and it's not a package I want to include. However adding custom fields for something like default footer text and 404 message could be a nice addition to the theme.
Do you have any ideas of which fields to add? (other than footer/404 text)
It's pretty simple really if you want to modify this section on your own as well, you can add/remove any fields you want in the theme blueprints.yaml file (link).

upload favicon field would be nice
also, it should be possible to change keywords in SEO easily
Lets talk about Font Awesome
I understand you don't want to add unnecessary files; is this the reason?
What do you say about including it from grav-plugin-admin like this:
{% do assets.addJs('plugin://admin/themes/grav/fonts') %}

also, it should be possible to change keywords in SEO easily- Add a plugin Auto SEO or any other for cms Grav

hi
yes, if you could help me with setting up favicon field that would be great.
other ones I've figured out, but uploading - basically path of it bugs me, and I get error,
can't figure it out.


Remove the "set" cast in the setup.py

The set cast on this line (https://github.com/limpyd/redis-limpyd/blob/master/setup.py#L23) in the setup.py file make this package uninstallable when setuptools version is >= 38.2.3
See also:

https://github.com/pypa/setuptools/commit/f012485e4767f3be81493c93ad534a02c6f14f14#diff-0f33d7d69d9f143736a252a75373261bR169
https://github.com/pypa/setuptools/issues/458#issuecomment-346944831

And also, hello @twidi :)
This is also the case in the related redis-limpyd-extensions package https://github.com/limpyd/redis-limpyd-extensions

In fact we should keep the set (to remove duplicates) and then convert it to a list.
But mainly, this setup.py should be should be rewritten from the ground up as explained (in french) here: https://twidi.github.io/python-packaging-talk/fr  / http://pyvideo.org/pycon-fr-2017/les-aventuriers-du-packaging-perdu.html
But this will be for another time.
The important thing is that you just said to me that all of my packages using this way of managing dependencies are broken? I am sad, and it'w the worse time in two years for me, as I work 7/7 :(

Yeah, we got this nice surprise yesterday on our main package since the  mkvirtualenv install the latest version of setuptools by default...
We fixed it on our main package, but there is some dependencies (limpyd and others maybe) who still use the set.
So no other choices to downgrade setuptools after creating the virtualenv for the moment.

I think this will also break the next deployment of Isshub. Thanks for letting me know, better before deploying a fix in a rush than "oh f*** what's going on!!?!??!?!?!?" ;)


Creating a global login modal that can be called from any other component

Hi,
I have a project with the standard header, router-content, footer type setup.
I have a modal which contains a user login form but I need to be able to open this from buttons in the header and footer (as well as various other places). What is the best way to achieve this?

Based on the above I have the standard header/footer code which is loaded once.
I have hunted around on Stackoverflow and looked at the examples in the readme but nothing is working for me - I must admit I am new to ng2. I can see examples in previous question but these go back to mid 2016 and the code in them errors for me so I assume ng has moved on since.
Regards
Leigh

@leighmillard probably just exposing the modal on a higher level component, such as your root component and maybe creating a service that has a handle on it to open and close it would work. I can't think of any other solutions off the top of my head right now...


Copy dir content on Windows

At first question not related to windows only. I think I ask this before few times it past years.
Why LuaRocks try copy Lua dir if rockspec did not ask do this.
And now windows specific question.
I jsut try install cjson and faced with problem than LR can not copy lua dir on my swindows system.
I try dig into and found problem with this copy command
C: & cd "C:\DOCUME~1\moteus\LOCALS~1\Temp\luarocks_luarocks-source-lua-cjson-2.1.0-1-386\lua-json-2.1.0" & "c:\Lua\LuaRocks\tools\cp" "-dR" "lua\*.*" "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua" 2> NUL 1> NUL

When I execute command without quite mode I got error message like
c:\Lua\LuaRocks\tools\cp: cannot stat `lua\\*.*': Invalid argument

When I remove quotes around this path all works as expected
C: & cd "C:\DOCUME~1\moteus\LOCALS~1\
about:blankTemp\luarocks_luarocks-source-lua-cjson-2.1.0-1-386\lua-json-2.1.0" & "c:\Lua\LuaRocks\tools\cp" "-dR" lua\*.* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua" 2> NUL 1> NUL

But not sure how this should work with path with spaces I try call from command like command like
"c:\Lua\LuaRocks\tools\cp" "-dR" "c:\Documents and Settings\moteus\Local Settings\Temp\luarocks_luarocks-source-lua-cjson-2.1.0-1-5386\lua-cjson-2.1.0\lua\*.*"  "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"

But got
c:\Lua\LuaRocks\tools\cp: cannot stat `c:\\Documents and Settings\\moteus\\Local Settings\\Temp\\luarocks_luarocks-source-lua-cjson-2.1.0-1-5386\\lua-cjson-2.1.0\\lua\\*.*': Invalid argument

Also cp does not understan short paths like C:\DOCUME~1\moteus\LOCALS~1.
Also I found that luarocks seems just ignore this error when do tasks like
build = {
  copy_directories = {'doc', 'examples', 'test'},

I check my installed rocks and all such dir is empty.
So as result i can not install any library which source tree has lua directory.

Found discassion https://sourceforge.net/p/gnuwin32/discussion/74807/thread/443dd2d3/
This command works for path with spaces
"c:\Lua\LuaRocks\tools\cp" -dR c:\Documents" "and" "Settings\moteus\Local" "Settings\Temp\luarocks_luarocks-source-lua-cjson-2.1.0-1-5386\lua-cjson-2.1.0\lua\*.* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"

Crazy world :)

I think it should work if the path is quoted as usual and then *.* is simply appended, should be easier to implement.

>"c:\Lua\LuaRocks\tools\cp" -d -R "lua"\*.* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"
c:\Lua\LuaRocks\tools\cp: cannot stat `lua\\*.*': Invalid argument

>"c:\Lua\LuaRocks\tools\cp" -d -R "lua"\* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"
c:\Lua\LuaRocks\tools\cp: cannot stat `lua\\*': Invalid argument

>"c:\Lua\LuaRocks\tools\cp" -d -R "lua\"*.* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"
c:\Lua\LuaRocks\tools\cp: missing destination file operand after `lua"*.* c:\\Lua\\5.1\\systree\\lib\\luarocks\\rocks\\lua-cjson\\2.1.0-1\\lua'
Try `c:\Lua\LuaRocks\tools\cp --help' for more information.

>"c:\Lua\LuaRocks\tools\cp" -d -R "lua\"* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"
c:\Lua\LuaRocks\tools\cp: missing destination file operand after `lua"* c:\\Lua\\5.1\\systree\\lib\\luarocks\\rocks\\lua-cjson\\2.1.0-1\\lua'
Try `c:\Lua\LuaRocks\tools\cp --help' for more information.

>"c:\Lua\LuaRocks\tools\cp" -d -R lua\*.* "c:\Lua\5.1\systree\lib\luarocks\rocks\lua-cjson\2.1.0-1\lua"

Last one works :)

Seems like to fix this we need proper argument quoting :smile:
win32\tools\cp -d -R ^"lua 2\*.*^" ^"lua 3^"

I've recently implemented it in penlight.

At least, this works for me? I'll test it a bit more.

By the way, I can't reproduce the original issue for some reason: the copy command succeeds and files appear in lua dir. However, something else then clears the directory before luarocks stops.

For reference, when I install lua-cjson using luarocks make it executes a command similar to yours: C: & cd "C:\Users\mpete\lua-cjson" & "C:\Users\mpete\lua53\luarocks\tools\cp" "-dR" "lua\*.*" "c:\users\mpete\lua53\\lib\luarocks\rocks\lua-cjson\2.1devel-1\lua", except it runs fine.

@moteus can you reproduce the problem if you use fs.copy_contents directly? You'll probably need to add path to luarocks sources to package.path for it to word, like it's done in luarocks.bat.

C:\lua\test>md src
C:\lua\test>touch src\test.txt
C:\lua\test>md dst

package.path = package.path .. ';' .. [[c:\Lua\LuaRocks\lua\?.lua;c:\Lua\LuaRocks\lua\?\init.lua]]
local cfg = require "luarocks.cfg"
local fs = require "luarocks.fs"
cfg.verbose = true
print(fs.copy_contents([[c:\Lua\test\src]], [[c:\Lua\test\dst]]))

C: & cd "C:\lua\test" & "c:\Lua\LuaRocks\tools\cp" "-dR" "c:\Lua\test\src\*.*" "c:\Lua\test\dst"
c:\Lua\LuaRocks\tools\cp: cannot stat `c:\\Lua\\test\\src\\*.*': Invalid argument
false	Failed copying c:\Lua\test\src to c:\Lua\test\dst

I also add print command in execute_string function like
   cmd = fs.command_at(current, cmd)
   print(cmd)
   local code = os.execute(cmd)

Seems like to fix this we need proper argument quoting :smile:
win32\tools\cp -d -R ^"lua 2*.*^" ^"lua 3^"
I've recently implemented it in penlight.

Not sure what you mean. general rule for arguments I think correct. But in this case I am not sure how it should work
>"c:\Lua\LuaRocks\tools\cp.exe" -dR "c:\Lua\test\src\test.txt" "c:\Lua\test\dst"

Copy single file without problem. But
>"c:\Lua\LuaRocks\tools\cp.exe" -dR "c:\Lua\test\src\*.*" "c:\Lua\test\dst"
c:\Lua\LuaRocks\tools\cp.exe: cannot stat `c:\\Lua\\test\\src\\*.*': Invalid argument

Strange, it works for me... What's your Windows version?

Windows XP. Tomorrow I test on Win 7.

Ok. I found 2 things.

On my old LR 2.2 it works because LR did not quote source parameter. It changed in https://github.com/keplerproject/luarocks/commit/c54cbfc6d678d4ab6ec94daf6791fe9d4e4a7d4e
On Win7 and on Win2k3 all works as expected. Seems GnuWin32 not as portable as I wish.

So I just comment out copy Lua dir in my LR. I really do not need all those files,
But may be some one can ask me why LR copy this folder. It copy it not to module dir. So it is not any part of code install. It is not doc/test/etc. It just code which never be executed in this folder.


Azkaban 3.48.0-10-g7cd5123 这个版本的大bug，执行失败，retry，但是结果却是Success的，是个伟大的失败 ,E：Azkaban 3.48.0-10-g7cd5123 this version of the big bug, execution failure, retry, but the result is Success, a great failure

使用flow中内嵌子flow，若子flow上层有job执行失败failed，其他job仍在继续执行，当点击retry时，retry失效，导致，其他job变成cancelled，然后整个flow的状态就变成为成功Successed，这个是azkaban的大bug.
@HappyRay @kunkun-tang @weidious @chengren311
Use the embedded flow in flow. If the upper level of the flow has job execution failed, other jobs continue to execute. When retry is clicked, retry fails, causing other jobs to be cancelled, and then the state of the whole flow becomes successful Successed, which is azkaban's big bug.

@HappyRay @kunkun-tang @weidious

哈哈哈，真有才，用中文提问


Remove support for.net7 and start support for .net9

net9 only will be supported in order to limit maintenance on application and as some last OpenAI packages are available only for .net9


check timestamp

Current implementation does not check timestamp. So it accept invalid timestamp.

I'll add test for this.

I added test. But latest go-nostr have breaking changes that type of ConnectionError is now string. So I disabled TestServerShutdownWebsocket.

By invalid you mean a timestamp in the future?
I think Relayer shouldn't disallow these, they should be disallowed by the individual implementations that use relayer (like the basic) one.
There are some use cases for accepting events in the future. A relay could, for example, accept them, but not display until their time comes, thus making a seamless "scheduled post" service.

Shouldn't events in the past be disallowed as well?  Keys could be compromised, attacker deletes old events, and posts new 'replacements' with strategically altered content.  It seems like 'posting' back-dated events should be considered invalid as well?

Again, this should be part of individual implementations policies. Relayer itself is trying to be a generic framework for implementing relays on top of.
There are use cases for accepting old events, such as, for example, receiving an entire archive of posts from someone copying those from some other relay.

Considering web clients like iris and snort, future timestamp posts will always sit at the top of the screen. This can be an attack, I think.

Iris and Snort should fix on their side. Also if a user is following someone else that messes up with timestamps like that that must be because the user is ok with that.

make sense. FYI, nostr-rs-relay rejects invalid timestamp.
https://github.com/scsibug/nostr-rs-relay/blob/8e4e2d824bd7defb3c17a959ebc17ba03778ebdf/src/event.rs#L319-L333

Yes, I think it is fine for relays to reject, I just don't think it fits Relayer per se since Relayer is trying to be flexible. I would welcome a PR for the relayer/basic relay, for example (but since no one is using it and it's just an example I don't think you should waste your time on that).

Related issue: https://github.com/nostr-protocol/nips/issues/407

Related nip https://github.com/nostr-protocol/nips/blob/master/22.md


What about docs?

Hey there, I wonder what we should do for documentation on this project. Any thoughts @lazare1999

[ ] Item 1

We should

[ ] Create a docs folder
[ ] Create a new index.md document
[ ] Turn on Github Pages
[ ] Decide if we want to go with something more complex

Thanks @lazare1999


Overrides aren't applied to the output of some aggregate functions

Version
1.23.0
What happened?
While investigating https://github.com/sqlc-dev/sqlc/issues/2973, I discovered that the new database-backed query analysis engine correctly determines the types returned from aggregate functions (like SUM() and MAX()) but overrides appear not to be applied.
See the playground link below for a contrived example.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
https://play.sqlc.dev/p/805a63c93e881d175878c977a7da684b8616b8dcb4f538520eacb5a5101a954b
What operating system are you using?
No response
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

If you use integer instead of pg_catalog.int4, the overrides work correctly https://play.sqlc.dev/p/20a4bc6945b5102aac27e034893f1eba42b59c4457573b1df25db04a38a047a7


[dv/otp_ctrl] stress_all_with_rand_reset test

This PR clears up stress_all_with_rand_reset test compile issues.

Fix the constraint names that does not match the base constraint name
Clean up cfg.hjson and testplan
Turn on the access mode for test_access region, so tl_error in
stress_all_with_reset sequence won't hang

Signed-off-by: Cindy Chen<EMAIL_ADDRESS>

This has no functional change, just force push to see if it can trigger CI checks..

This has no functional change, just force push to get the latest code and see if it can pass CI


Fix issue with long PMM list being inaccessible on Live Preview

If Live Preview and/or a page in the CP where the html tag has the noscroll class is being used, long PMM lists scroll off screen and are not accessible at all. Recommending that PMM makes its list scrollable with a maximum height on non-scrolling CP sections.

Nice solution, thanks!


Fix some typo in pod-overhead.md

Uniform case in pod-overhead.md(Kubelet → kubelet).

I like this change, although I'm aware that the upstream developers are using "Kubelet" more and more frequently than ever for unknown reasons.

I like this change, although I'm aware that the upstream developers are using "Kubelet" more and more frequently than ever for unknown reasons.

/lgtm

/lgtm

Page preview:
https://deploy-preview-25891--kubernetes-io-master-staging.netlify.app/docs/concepts/scheduling-eviction/pod-overhead/
Thanks @ydFu .
/approve

Page preview:
https://deploy-preview-25891--kubernetes-io-master-staging.netlify.app/docs/concepts/scheduling-eviction/pod-overhead/
Thanks @ydFu .
/approve


fix(kv/config): set SchedulerHeartbeatTickInterval to ten seconds

SchedulerHeartbeatTickInterval should not be smaller than RaftBaseTickInterval, set SchedulerHeartbeatTickInterval to ten seconds
fix https://github.com/tidb-incubator/tinykv/issues/393

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


Minor correction to remove the confusion

I have made a minor addition to the content to clarify the confusion.
Problem: https://github.com/MicrosoftDocs/windows-itpro-docs/issues/9461

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

#sign-off


Add a configuration option for download retry attempts

Is your feature request related to a problem? Please describe.
I'm behind a corporate proxy and for whatever reason every second attempt of downloading NVD data fails with a "Connection Reset" error and thus with the current version of DependencyCheck I'm not able to complete all the necessary downloads successfully.
Describe the solution you'd like
My current solution is hacky. I simply added an endless loop to HttpResourceConnection.fetch which keeps re-trying the download until it eventually succeeds. This way I finally managed to get a successful build with the dependency-check-maven plugin. A more elegant solution (and the one I'm hoping for) is, add a configuration option where one can specify how many retrys might be appropriate for their situation. In my case I never needed more than 3 retries until a file got downloaded successfully.
Additional context
Possible configuration option
    <plugin>
        <groupId>org.owasp</groupId>
        <artifactId>dependency-check-maven</artifactId>
        <version>6.2.1-SNAPSHOT</version>
        <configuration>
            <downloadRetryAttempts>10</downloadRetryAttempts>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>update-only</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

We have been running into NVD download errors as well. Ran into these these download errors on Bitbucket Pipelines and on other build servers internally. Not sure what happened, but these failures started happening about half a year ago.
@jeremylong, do you think this is feasible to do?

One can retry whatever NVD command is using in CI:
eval "$DEPENDENCY_CHECK_COMMAND" || eval "$DEPENDENCY_CHECK_COMMAND" || eval "$DEPENDENCY_CHECK_COMMAND"

...which might be considered cleaner as it makes the retrying a consumer choice, and not something that is necessarily fostered/suggested to everyone (which can take a toll on the NVD servers, and make the situation worse).
Another great thing to do is to cache the NVD database in CI for up to 24h. This way one is less subject to upstream flakiness. Here's how I did it in CircleCI:
https://github.com/jonase/eastwood/commit/f2bd347d6cb99483ef8ea3800c94fc0378805f23

@vemv This might be doable. We have been using Maven to build our packages and we usually just run 'mvn verify'. Luckily at the moment, the verify step only runs maven-dependency-check plugin, but it seems like it would be more tricky if there was more than one plugin that run at that step. It just sucks that the NVD download is not really that reliable.
I will probably look into caching the NVD database. If not I can maybe try to give the Centralized Database approach a try.


Feat: Imporve the Cards of the website

Describe the feature
The cards doesnot have proper structure and the text is not perfect
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

I would like to work on this issue. please assign this to me @arghadipmanna101


Consistent option names pt1

Okay, first changeset, changing only tension -> lineTension. Feel free to comment on stuff you don't like.

Coverage increased (+0.02%) to 71.957% when pulling 4d4271e6c4088913f3fcbe1e2c8c43d967b3379e on jachstet-sea:consistent_option_names_pt1 into 13e038730cdebbfb2790ded18354e76a6e444ffe on nnnick:master.

Looking good!

Glad to hear. Working on doing the same for the point-options now

Looks good

Allright, I just pushed part 2 but kept the branch name so it goes into this PR.
I also added a new sample that showcases how to use the different point size options.
Feel free to merge, I consider this done if there are no change-requests from your side.

Coverage increased (+0.07%) to 72.007% when pulling b21d1476085851aa1be870d11d6217c9e87fdfbc on jachstet-sea:consistent_option_names_pt1 into 13e038730cdebbfb2790ded18354e76a6e444ffe on nnnick:master.

And just to have a reference: fixes #2307

@tannerlinsley feel free to merge


added requisite files for the DeckText theme to be added to the db.

DeckText
URL: https://github.com/mmatis/DeckText
A theme that bumps up the size of the Steam Deck's UI text and some controls, making it easier to read and more accessible for people with diverse needs.
Checklist
Failure to complete this checklist or deleting boxes from the checklist will result in the closing of your pull request unless this is a theme update. Please write any comments regarding this checklist at the bottom of your pull request.
Check every box.

[x] I am the original author of this theme or have permission from the original author to make this pull request.
[x] All copyright of this theme's contents belong to the listed author or is cited in the repository linked above.
[x] This theme's target has been marked appropriately and only styles said target.
[x] This theme works properly on the latest versions of SteamOS for Steam Deck, decky-loader and SDH-CssLoader.
[x] This theme only uses * or !important if absolutely necessary.
[x] This theme is under 4MB in size and uses the least disk space possible.
[x] This theme's preview image does not include text unless it is necessary to describe changes that can be made.
[x] This theme is safe for work and does not contain any sexual, drug-related, or profane content.
[x] This theme prefixes any CSS variables with a unique identifier.

Check one box.

[x] I am not bundling a part of another theme with this theme to encourage mixing and matching themes.
[ ] Themes included with this theme are toggleable using a patch.

Check one box.

[ ] This is a keyboard theme applied to the default keyboard.
[x] This is a system-wide theme applied to the default keyboard. The keyboard is toggleable using a patch.
[ ] This theme does not target the keyboard.

You seem to have left out your theme name and a link to your theme repository?

Apologies! Updated the merge comment. I knew I'd miss something!

Is it ready to merge now?

I fixed the typo in my repo and attempted to update the commit in my author .json to 15caeb5. Is there anything else I need to do?

I'm waiting until the CI test builds your theme, but it's taking a while for some reason. Nothing should be required from your side


[stress testing] Stress watcher deletes test resource groups on container restart

Some events in the cluster, such as a node reboot, will cause the pod to reach a terminating state, and a new pod to be re-scheduled on a new node. The first pod event triggers the watcher to delete the underlying resources, despite the test still running on a new node. We need to figure out a way to skip completion hooks in the watcher when they are actually pods getting re-scheduled.

Perhaps we can change the watch to job events, or at least check the job status on a pod event to exclude Running.

@l0lawrence, this is probably what happened to your test.

For posterity, some investigative tools for rooting out node reboots:
You can see these changes with these two queries against stress-pg - Microsoft Azure
KubePodInventory
| where Namespace == "llawrence"
| where TimeGenerated between (datetime(10/8/2022, 6:10:00 AM)..datetime(10/8/2022, 6:45:00 AM))
| where ControllerName startswith "sendconsumesync-pyamqp-feature-branch-warning"
| where ContainerName endswith "python-eh-stress"
| sort by TimeGenerated asc

This shows you your test containers/pods and what their state was. At the beginning of those results there are TWO pods for the same test, with different ID suffixes, one in state terminating and the other in state running. The one in terminating state is on node aks-default-37641077-vmss000001 and the running one on node aks-default-37641077-vmss000002. Then:
KubeNodeInventory
| where TimeGenerated between (datetime(10/8/2022, 6:10:00 AM)..datetime(10/8/2022, 6:45:00 AM))
| where Computer in ('aks-default-37641077-vmss000001', 'aks-default-37641077-vmss000002')
| sort by TimeGenerated asc

This shows the node states for the same time period. node *001 has a Status of "RebootScheduled,Ready" and then "RebootScheduled" which was the node the original pod was on


after stop and start the container again, all /piwiki/ folder is deleted

The bug was introduced in commit 775e02a6944dcd8131f5613cf3bf45ef80cdd755

Hello everyone,
If it can help, I noticed that issue from the latest container: marvambass/piwik
Both are due to the $PIWIK_RELATIVE_URL_ROOT containing at the end a "/" which make some code bugged.
When launching marvambass/piwik, I map at start the modified /opt/startup-piwik.sh

line 74:
Origin:     if [ ! -h "/usr/share/nginx/html$PIWIK_RELATIVE_URL_ROOT" ]
Modified: if [ ! -h $(echo "/usr/share/nginx/html$PIWIK_RELATIVE_URL_ROOT" | sed 's//$//') ]

line 83
Origin:     chmod -R 0755 /usr/share/nginx/html$PIWIK_RELATIVE_URL_ROOT\tmp
Modified: chmod -R 0755 /usr/share/nginx/html$PIWIK_RELATIVE_URL_ROOTtmp

Let me know if this was the issue and if a modification could be implemented in the next version.
Thanks in all case for your work on that container, it is a very cool product! ;-)
Good evening there!
Greg.

sorry guys but I can't reproduce this error, I've tried a lot of different approaches but it works every time without a problem

Hello,
Here are the steps I used, hope it helps:
1 MYSQL with piwik db
docker run -d --name mysql
-e MYSQL_ROOT_PASSWORD=pw
-e MYSQL_USER=dbadmin
-e MYSQL_PASSWORD=pw
-e MYSQL_DATABASE=piwik
mysql
2 Simple web page (with the piwik code):
docker run --name web -p 80:80 -d
-v $PWD/index.html:/usr/share/nginx/html/index.html
nginx
3 PIWIK
docker run -d -p 81:80
--link mysql:mysql --name piwik
-e PIWIK_MYSQL_USER=dbadmin
-e PIWIK_MYSQL_PASSWORD=pw
marvambass/piwik
4 Add trusted_hosts[] = "dev.local:81". Have to do this way because mapping this file in piwik container makes piwik fail.
docker cp $PWD/config.ini.php piwik:/piwik/config/config.ini.php
I am using docker v1.8.1.
Container marvambass/piwik inspect:
"Id": "8604b226b64a9572ae861db215c4fcd5a60356d32a0e279841d1d1bef0b4d887",
"Parent": "68119dbe4a91c48dd5d653db20872a87e6317216a133f4ee4d87713cbef8528b",
"Comment": "",
"Created": "2015-08-25T18:50:33.995752183Z",
"Container": "cf968b73b8f5cbd2112344c17c8fb79ec7af9a73a8f79697e50b76efa34191ac"
Everything is working fine your the modified version of startup-piwik.sh.
Thank you and good evening!
Greg.

New version is working, thanks a lot! ;-)


Node version of Lambdas needs to be upgraded to 8.10

Amazon is deprecating Node 6.10, which is used by 2 of the lambda functions.
"Lambda functions configured to use the node.js 6.10 runtime will be disabled on April 30, 2019. Code updates to existing functions using node.js 6.10 will be disabled 30 days later on May 30, 2019."

Updated in #22.


Filters prevent puzzle mode launch

"Sometimes clicking on the puzzle squares doesn't load the puzzles (but it's not locked up because I can still go to Labs). Haven't figured out what caused it, but I had chosen a filter, loaded more puzzles, and then tried clicking on one of these puzzles"
"yeah, while any of them are selected I can't enter a puzzle - but once I unselect all of them I can enter perfectly fine"

This has to do with how the mobile app inconsistently sometimes relies on the URL as a source of state and sometimes as a reflection of in-memory app state. It's an architectural problem, but I should have a short-term fix.


https://github.com/topics/python2 @Lucky-botik-bot

          [https://github.com/topics/python2]() @Lucky-botik-bot

Originally posted by @Beckyscrypto in https://github.com/ikatyang/emoji-cheat-sheet/issues/508#issuecomment-1075814820

      [https://github.com/topics/python2]() @Lucky-botik-bot


.Net: Add support for audio transcription format

Context
Azure.AI.OpenAI SDK V2 added support for audio transcription format:
public enum AudioTranscriptionFormat
{
    Text,
    Simple,
    Verbose,
    Srt,
    Vtt,
}

that can be used by {Azure}OpenAIAudioToTextService classes:
var options = new AudioTranscriptionOptions()
{
    Granularities = ConvertToAudioTimestampGranularities(executionSettings!.Granularities),
    Language = executionSettings.Language,
    Prompt = executionSettings.Prompt,
    Temperature = executionSettings.Temperature,
    ResponseFormat = AudioTranscriptionFormat.Simple, // It's not supported by SK yet.
};

ToDo
Consider adding optional TranscriptionFormate property to the {Azure}OpenAIAudioToTextExecutionSettings class.
Notes
Decide whether the property should be released as part of the Azure.AI.OpenAI SDK V2 migration initiative or afterwards.

It appears that the property existed in the previous version of the Azure.AI.OpenAI SDK under the ResponseFormat name and already exists in the {Azure}OpenAIAudioToTextExecutionSettings classes.


Refactored altmetric badges for publications page

Inspired by @MaxUlysse in https://github.com/nf-core/nf-co.re/pull/288, I refactored the altmetric code on the Publications page to give altmetric badges for all publications.
I also fixed up the CSS styling a little and changed the display of the badges. They're now a little smaller (good as there are more of them), and they work on a dark background properly for the website dark-mode.

Nice! I just added badges showing the number of citations (if there are any) from Dimensions.ai too:

Quite useful - just found a preprint for coproid! Will add now..


Unit and integration tests are lacking

At present, the unit tests mostly cover the charmm_containers module. This is intentional - these classes have been the source of most of the issues I've discovered in the past - but issues with Molecule and Structure would also have far-reaching implications. The unit tests should be expanded upon.
Additionally, more integration tests are required. The OpenMM test is useful, as it tests both structure generation and PSF/PDB format structure. More tests using OpenMM or other simulation packages, perhaps for some more difficult molecules, would be ideal.

Additional tests added in 3c9c8e29137c06f5443ecbf8b671d2246a0d19d6, so now over 80% coverage.
Tests to cover command line usage are still necessary.

Any short-term plans to bump code coverage even higher?

I've added tests for the command-line portion of the software, so coverage is ~91% now


Added Magnetic

Project URL

https://github.com/efremidze/Magnetic
Description

SpriteKit Floating Bubble Picker (inspired by Apple Music)
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

thx


Request had insufficient authentication scopes

import os
import flask
import requests
from apiclient.discovery import build
import google.oauth2.credentials
import google_auth_oauthlib.flow
import googleapiclient.discovery
CLIENT_SECRETS_FILE = "/Users/rajm/Downloads/client_secret_107778277441-t2s9h0mkrh9f26s1988nag0e8b1mo3o2.apps.googleusercontent.com (7).json"
This OAuth 2.0 access scope allows for full read/write access to the
authenticated user's account and requires requests to use an SSL connection.
SCOPES = ['https://www.googleapis.com/auth/androidenterprise']
API_SERVICE_NAME = 'androidmanagement'
API_VERSION = 'v1'
CALLBACK_URL = 'https://storage.googleapis.com/android-management-quick-start/enterprise_signup_callback.html'
cloud_project_id = 'first-gcp-project-276615'
app = flask.Flask(name)
Note: A secret key is included in the sample so that it works.
If you use this code in your application, replace this with a truly secret
key. See https://flask.palletsprojects.com/quickstart/#sessions.
app.secret_key = os.urandom(16)
@app.route('/')
def index():
return print_index_table()
@app.route('/test')
def test_api_request():
if 'credentials' not in flask.session:
return flask.redirect('authorize')
Load credentials from the session.
credentials = google.oauth2.credentials.Credentials(
**flask.session['credentials'])
androidmanagement = build(
'androidmanagement', 'v1', credentials=credentials)
signup_url = androidmanagement.signupUrls().create(
projectId=cloud_project_id,
callbackUrl=CALLBACK_URL
).execute()
Save credentials back to session in case access token was refreshed.
ACTION ITEM: In a production app, you likely want to save these
credentials in a persistent database instead.
flask.session['credentials'] = credentials_to_dict(credentials)
return flask.jsonify(**signup_url)
@app.route('/authorize')
def authorize():
Create flow instance to manage the OAuth 2.0 Authorization Grant Flow steps.
flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
CLIENT_SECRETS_FILE, scopes=SCOPES)
The URI created here must exactly match one of the authorized redirect URIs
for the OAuth 2.0 client, which you configured in the API Console. If this
value doesn't match an authorized URI, you will get a 'redirect_uri_mismatch'
error.
flow.redirect_uri = flask.url_for('oauth2callback', _external=True)
authorization_url, state = flow.authorization_url(
# Enable offline access so that you can refresh an access token without
# re-prompting the user for permission. Recommended for web server apps.
access_type='offline',
# Enable incremental authorization. Recommended as a best practice.
include_granted_scopes='true')
Store the state so the callback can verify the auth server response.
flask.session['state'] = state
return flask.redirect(authorization_url)
@app.route('/oauth2callback')
def oauth2callback():
Specify the state when creating the flow in the callback so that it can
verified in the authorization server response.
state = flask.session['state']
flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
CLIENT_SECRETS_FILE, scopes=SCOPES, state=state)
flow.redirect_uri = flask.url_for('oauth2callback', _external=True)
Use the authorization server's response to fetch the OAuth 2.0 tokens.
authorization_response = flask.request.url
flow.fetch_token(authorization_response=authorization_response)
Store credentials in the session.
ACTION ITEM: In a production app, you likely want to save these
credentials in a persistent database instead.
credentials = flow.credentials
flask.session['credentials'] = credentials_to_dict(credentials)
return flask.redirect(flask.url_for('test_api_request'))
@app.route('/revoke')
def revoke():
if 'credentials' not in flask.session:
return ('You need to authorize before ' +
'testing the code to revoke credentials.')
credentials = google.oauth2.credentials.Credentials(
**flask.session['credentials'])
revoke = requests.post('https://oauth2.googleapis.com/revoke',
params={'token': credentials.token},
headers = {'content-type': 'application/x-www-form-urlencoded'})
status_code = getattr(revoke, 'status_code')
if status_code == 200:
return('Credentials successfully revoked.' + print_index_table())
else:
return('An error occurred.' + print_index_table())
@app.route('/clear')
def clear_credentials():
if 'credentials' in flask.session:
del flask.session['credentials']
return ('Credentials have been cleared.' +
print_index_table())
def credentials_to_dict(credentials):
return {'token': credentials.token,
'refresh_token': credentials.refresh_token,
'token_uri': credentials.token_uri,
'client_id': credentials.client_id,
'client_secret': credentials.client_secret,
'scopes': credentials.scopes}
def print_index_table():
return ('' +
'Test an API request' +
'Submit an API request and see a formatted JSON response. ' +
'    Go through the authorization flow if there are no stored ' +
'    credentials for the user.' +
'Test the auth flow directly' +
'Go directly to the authorization flow. If there are stored ' +
'    credentials, you still might not be prompted to reauthorize ' +
'    the application.' +
'Revoke current credentials' +
'Revoke the access token associated with the current user ' +
'    session. After revoking credentials, if you go to the test ' +
'    page, you should see an invalid_grant error.' +
'' +
'Clear Flask session credentials' +
'Clear the access token currently stored in the user session. ' +
'    After clearing the token, if you test the ' +
'    API request again, you should go back to the auth flow.' +
'')
if name == 'main':
When running locally, disable OAuthlib's HTTPs verification.
ACTION ITEM for developers:
When running in production do not leave this option enabled.
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
Specify a hostname and port that are set as a valid redirect URI
for your API project in the Google API Console.
app.run('localhost', 8080, debug=True)
Upon executing this code in the terminal i'm facing this issue
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://androidmanagement.googleapis.com/v1/signupUrls?projectId=first-gcp-project-276615&callbackUrl=https%3A%2F%2Fstorage.googleapis.com%2Fandroid-management-quick-start%2Fenterprise_signup_callback.html&alt=json returned "Request had insufficient authentication scopes.">
please do reply to this error on how can I solve it
Thanks in Advance

From the error message it looks like the credential you are using has insufficient scopes. Would you mind trying the suggestions here?


[OSPO Book] referencing existing Open Source Models

This ticket is to track existing open source models that have been published over the past years

Open Source Maturity Model (FINOS): Divided into the three broad dimensions of strategy, management and usage, with each dimension then subdivided into individual elements that describe open source in finance engagement (https://survey.osmm.finos.org/551476)
The Open Source Software Adoption Framework: a study that tries to identify the influence of different referent groups on perceptions of whether the use of OSS is good or bad in the SME (https://www.researchgate.net/publication/220393155_A_theory-grounded_framework_of_Open_Source_Software_adoption_in_SMEs)

Also The Open Source Good Governance Framework referenced #449


feat(query): Elasticsearch with HTTPS disabled for Terraform

Proposed Changes

Added query and metadata for Terraform
Added tests
Added positive_expected_result

I submit this contribution under the Apache-2.0 license.

We need to create a CxPolicy in the rego file to trigger a vulnerability result when the EnforceHTTPS attribute is not set in the configuration.
Adding a positive test to cover the previous situation is also needed.

Hi. In Terraform description about EnforceHTTPS attribute it says that "Defaults to true", so there is no need to create a CxPolicy


Improve docs, examples and tutorial directory

docs:

used for code documentation
setup automatic docs generation using sphinx

examples:

contains example code implementations. This may can be included directly in the source code

tutorial:

implementations of roles, provider, consumer that can be used for demonstration of the package

currently examples contains the reference tests for the PATs. I suggest to create a new pat folder for those tests


How to implement constraints for reducers, etc.

Maybe it's just my newness to the Elm Architecture, but I'm having a hard time figuring out how to do constraints with reducers, etc. For example, in the GoMix todo example when you click the button, it adds a todo whether the input has a value or not. For keyup I can put a constraint like this:
// If the input has value and the user hits Enter, add todo.
onkeyup={e => (e.keyCode === 13 && e.target.value) ? actions.add() : ""}

But for the button click that won't work because it doesn't have access to the input value. Old school way would be on button click check value of input, if it has a value, do stuff, otherwise not. How do you do that with this pattern? This would also come up with form validation. 🤔

@rbiggs You have access to the input value, indirectly, because you keep track in the model of every input change. Does that make sense?

app({
    model: {
        items: [],
        text: ""
    },
    view: (model, actions) =>

            <input
                oninput={e => actions.setText(e.target.value)}
                type="text"
                value={model.text}
            />
            <button
                onclick={e => model.text !== "" && actions.append()}
            >Add </button>

                {model.items.map(item =>
{item}
)}

        ,
    reducers: {
        append: (model) => ({
            text: "",
            items: model.items.concat(model.text)
        }),
        setText: (model, text) => ({ text })
    }
})

CodePen

Alternatively an effect would be better, since it doesn't require any logic in the view-part.

@dodekeract :+1:
@rbiggs it sounds to me like an effect too. Make an effect, then just pass e to it, and do you checking and all that stuff there, not in the view part.

Yeah, I was thinking an effect was the way to go, but I wan't sure. Thanx. 🍺🍻


weex platform add android

error: unknown option `--telemetry'

Same for me. A fresh install using a tutorial.

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.
Feel free to ask question in new repository and thanks for your contribution.

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.