DeserializationError when calling virtual_machine_scale_sets.begin_deallocate()

Package Name: azure-mgmt-compute
Package Version: 24.0.0
Operating System: MacOS 12.1
Python Version: 3.9.9

Describe the bug
I am working with virtual machine scale sets in this python. I have elsewhere been able to call, for example, virtual_machine_scale_sets.begin_create_or_update() to throw a revised scale_set object at the scale set to increase the capacity from 1 to 3 instances.
In the instance of the begin_deallocate() method, I am getting this error when attempting to use this method with one or two instanceIds in a list,
msrest.exceptions.SerializationError: Unable to build a model: Unable to deserialize to object: type, AttributeError: 'list' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'list' object has no attribute 'get'
I realize that msrest is implicated in the error but I wonder whether it is how azure-mgmt-compute is sending data to msrest that is the issue...
The specific python in this case looks like this,
 client_compute.virtual_machine_scale_sets.begin_deallocate(      rg[key]['Name'],      rg[key]['ScaleSet']['Name'],      scale_victims  )
Where

rg[key]['Name'] contains the name of the resource group where my scale set resides
rg[key]['ScaleSet']['Name'] contains the name of the scale set
scale_victims is a list of instanceIds (here: ['0', '2'])

Here, scale_victims is a list of str, as necessitated by the begin_deallocate method,

https://docs.microsoft.com/en-us/python/api/azure-mgmt-compute/azure.mgmt.compute.v2021_07_01.operations.virtualmachinescalesetsoperations?view=azure-python#azure-mgmt-compute-v2021-07-01-operations-virtualmachinescalesetsoperations-begin-deallocate
https://docs.microsoft.com/en-us/python/api/azure-mgmt-compute/azure.mgmt.compute.v2021_07_01.models.virtualmachinescalesetvminstanceids?view=azure-python

To Reproduce

Use the begin_deallocate() method against a working scale set with one of the instanceIds (in a list) in the scale set.

Expected behavior
I would have expected no errors and that the included instanceIds would be deallocated from the from scale set
Additional context
Here's the full output from the errors I am receiving within the venv where I am working,
I have inserted <TRUNCATED_PATH> to remove some of the noise
Traceback (most recent call last):
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1428, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1193, in rest_key_case_insensitive_extractor
return attribute_key_case_insensitive_extractor(key, None, working_data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1222, in attribute_key_case_insensitive_extractor
return data.get(found_key)
AttributeError: 'list' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 620, in body
data = deserializer._deserialize(data_type, data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1446, in _deserialize
raise_with_traceback(DeserializationError, msg, err)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1428, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1193, in rest_key_case_insensitive_extractor
return attribute_key_case_insensitive_extractor(key, None, working_data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1222, in attribute_key_case_insensitive_extractor
return data.get(found_key)
msrest.exceptions.DeserializationError: Unable to deserialize to object: type, AttributeError: 'list' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<TRUNCATED_PATH>/finpack_scaler.py", line 539, in
main()
File "<TRUNCATED_PATH>/finpack_scaler.py", line 516, in main
client_compute.virtual_machine_scale_sets.begin_deallocate(
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/azure/core/tracing/decorator.py", line 83, in wrapper_use_tracer
return func(*args, **kwargs)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/azure/mgmt/compute/v2021_07_01/operations/_virtual_machine_scale_sets_operations.py", line 1514, in begin_deallocate
raw_result = self._deallocate_initial(
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/azure/mgmt/compute/v2021_07_01/operations/_virtual_machine_scale_sets_operations.py", line 1446, in _deallocate_initial
_json = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs')
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 622, in body
raise_with_traceback(
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 620, in body
data = deserializer._deserialize(data_type, data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1446, in _deserialize
raise_with_traceback(DeserializationError, msg, err)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1428, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1193, in rest_key_case_insensitive_extractor
return attribute_key_case_insensitive_extractor(key, None, working_data)
File "<TRUNCATED_PATH>/.venv/lib/python3.9/site-packages/msrest/serialization.py", line 1222, in attribute_key_case_insensitive_extractor
return data.get(found_key)
msrest.exceptions.SerializationError: Unable to build a model: Unable to deserialize to object: type, AttributeError: 'list' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'list' object has no attribute 'get'

Hi @mjneuharth, thank you for opening an issue! I'll tag the appropriate folks so we can look into this as soon as possible.

Hi @mjneuharth, thanks for your feedback !
About scale_victims in your code, which cannot be passed directly as a parameter. After my investigation, it needs to use the VirtualMachineScaleSetVMInstanceIDs model to help it transform.
like this:
from azure.mgmt.compute.models import VirtualMachineScaleSetVMInstanceIDs

scale_victims = VirtualMachineScaleSetVMInstanceIDs(instance_ids=scale_victims)
client_compute.virtual_machine_scale_sets.begin_deallocate( rg[key]['Name'], rg[key]['ScaleSet']['Name'], scale_victims )

pls let me know if I could help more.

Now that I see what I missed here in the documentation, I see it everywhere.
Thanks for the answer and the help!


Build failure: ghidra

Steps To Reproduce
Steps to reproduce the behavior:

build ghidra

Build log
hydra can produce
Notify maintainers

@roblabla @vringar
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.9, NixOS, 24.11 (Vicuna), 24.11.20240909.dbb8828`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/0yxz367jcdrhd6695wha6y52i3za3xr4-source`

Add a :+1: reaction to issues you find important.

I think this was broken by the recent Gradle update. Should be fixed by next Ghidra release.

The "fix" was just a change in build instruction https://github.com/NationalSecurityAgency/ghidra/commit/30628db2d09d7b4ce46368b7522dc315e7b245c5 :^).
I'll prepare a PR to fix it.


Hubble Stats dummy data

Summary of changes
Provide a detailed description of proposed changes.

Add dummy data for Hubble Stats
Modify container components to match server component design
Minor refactor of some components

Proposed area of change
Put an x in the boxes that apply.

[ ] apps/bridge-dapp
[x] apps/hubble-stats
[ ] apps/stats-dapp
[ ] apps/webbsite
[ ] apps/faucet
[ ] apps/tangle-website
[ ] libs/webb-ui-components

Reference issue to close (if applicable)
Specify any issues that can be closed from these changes (e.g. Closes #233).

Closes #1496

Screen Recording
If possible provide a screen recording of proposed change.
https://github.com/webb-tools/webb-dapp/assets/69841784/c11b1452-c251-40ab-a5cf-1dea3596d0e2

Code Checklist
Please be sure to add .stories documentation if any additions are made to libs/webb-ui-components.

[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Thanks for the quick integration @vutuanlinh2k2, I will use this view as reference to conduct UI review and propose improvements.
Btw, wondering why the chart component is not displaying in pool details? https://github.com/webb-tools/webb-dapp/issues/1346 @devpavan04

Thanks for the quick update @vutuanlinh2k2! I will use this view as reference to conduct UI audit and propose improvements.


Add compatibility with OTP 23

Make TLS connections backed by a wildcard certificate work.
They otherwise wouldn't, due to an OTP bugfix.

Regarding Travis CI, I did ask for it to be enabled. I just don't know how long it'll take.


Mouse configuration

The mouse configuration may not be ideal. I am not a mouse 6DOF player, so the default settings could be poor (or everything about the mouse, in general)

Need help understanding how the mouse should "feel" (videos, screenshots, comparison to other 6DOF games would be very helpful because I'm not a mouser)


Publish mdw-buildpack to CenturyLink internal GitLab repo

Besides GitHub, we need to host the latest buildpack on CenturyLink's GitLab for internal deployments:
https://ne1itcprhas62.ne1.savvis.net/PCF_Buildpacks_PUB_DEV/mdw-buildpack
Apparently this is a matter of corporate policy to not depend on external repos for cf push.
Also, I think we should move build.md to an internal place since it contains CenturyLink-specific information.  Once we do that, we can add shared credentials that would otherwise be inappropriate.

I have requested access, I do not know if I would get the owner access. It would be nice if we can get mdwapp user added as owner so we can use that from our Jenkins builds.

created a Jenkins task to upload.
Did not move build.md yet


Uncaught SyntaxError: Unexpected token : (not getting response in on-response method)

i am getting this error even when the api call goes through successfully with status 200 but i donot get response in on-response method.
i am calling the component like this -
byutv-jsonp handle-as="json" id="getLocation" method="GET" on-
response="_handleGetLocationResponse" debounce-duration="300"
and this is how i am invoking the ajax-request -
var ajax = this.$.getLocation;
ajax.url = "https://maps.googleapis.com/maps/api/place/autocomplete/json";
ajax.params = {
'components': 'country:IN',
'key': 'Bryurhdfh4656gnhjngfhnfghfgh',
'input': e
};
ajax.generateRequest();

How can this be solved?

It doesn't look like the googleapis support JSONP.  The service has to support returning a response that is wrapped in "Padding".  Take a look at the Response tab and you will likely see that a JSON object is being returned without being wrapped.  If the response is not wrapped correctly then you will get syntax errors because it is looking for something like byutv_jsonp_callback({}) not {}.

@coderfin  -- thanks a lot  for your response. i got it working though via some other way.


Rerun successful tasks

It is often useful to be able to easily re-run a successful task via the admin interface.
Along with this feature implementation, to keep the code DRY I have updated the retry failed admin class to use the same resubmit_task function since they are nearly identical except for the fact that when we retry a failed task, we want to delete the original failure.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

15 of 15 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 90.103%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
3232

Relevant Lines:
3587

💛  - Coveralls


Make it happen. Synthesize sensor correction filters and control filters using complementary filter synthesis.

Sensor correction filters and controllers optimized using the complementary filter synthesis H-infinity framework have been proven to work.
This was documented in my thesis, Chapter 8, https://gwdoc.icrr.u-tokyo.ac.jp/cgi-bin/DocDB/ShowDocument?docid=14296.
However, it might be using to have standalone synthesis classes to optimize these filters.


Blob path navigation, enter path text in blob Location field

Storage Explorer Version: 1.0.0
OS Version: Windows 10
Enhancement:

Navigate to Blob Containers
Open Container
Container name displayed
OPTION: enter in blob path directly input next to search

This works well for if there are many pages of blobs to navigate through until 'my blob' is found.
Especially useful if it is a 'folder' e.g. \container\blobfolder\blobfile1.json

#136 also wanted to work with the address bar.
Expected Experience:
Should be able to edit it, paste in new path and the explorer should navigate to the pasted in path if it is valid

This will be included in 1.15!


Added SIGTERM handler for graceful termination

Added SIGTERM handler for graceful service shutdown, equivalent to SIGINT
Clearly describe the problem and solution
SIGTERM handler ensures that all queues are drained before the service is shut down, reducing chances of data loss caused by shutdown or restart.
Relevant issue number(s) if applicable
N/A
Did you run npm run lint from the viewer or parliament directory (whichever you are making changes to) and correct any errors
N/A - no changes to viewer
Did you Ensure that all tests still pass by navigating to the tests directory and running ./tests.pl --viewer
N/A - no changes to viewer
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Why is TERM need since its the same as INT?

Why is TERM need since its the same as INT?

When the server (physical or virtual) is shut down or rebooted, molochcapture.service receives SIGTERM and not SIGINT.

ok, please update to call exit on second call like controlc does

ok, please update to call exit on second call like controlc does

When the service is stopped (manually or upon shutdown or reboot), for some reason SIGTERM is sent twice. If I add the same update as in controlc then the second SIGTERM would cause immediate exit which is what I'm trying to prevent.

i think you need to figure out why that happens

i think you need to figure out why that happens

This has something to do with moloch-capture stopped by systemd.

Yes, definitely something to do with systemd.
If moloch-capture is started with service molochcapture start then either  systemctl stop molochcapture.service or service molochcapture stop sends one SIGTERM.
If moloch-capture is started with systemctl atart molochcapture.service then either service molochcapture stop or systemctl stop molochcapture.service sends SIGTERM twice.


"Help me choose" help link incorrect

Very minor issue but the link looks like a test one...

Yes, you are right, I forgot to correct it.
The Windows credentials store saves your accounts secured and only
accessible by your logged in windows user. The other option saves your
accounts unsecured in KeePass configuration. You should choose the second
one only, if you would like to use KeePass portable e.g. On an USB drive.
The first option is the safest one.
Alex Baker<EMAIL_ADDRESS>schrieb am Fr., 29. Jan. 2016 00:32:

The link looks like a test one
[image: image]
https://camo.githubusercontent.com/e466bc30a309886e6e0e77c1bb98765f534426d4/68747470733a2f2f636c6f756467697468756275736572636f6e74656e74636f6d2f6173736574732f323830383938342f31323636323236342f33616236613534382d633637332d313165352d386236632d653935373336366638623434706e67
—
Reply to this email directly or view it on GitHub
https://github.com/Kyrodan/KeeAnywhere/issues/19.

Is there anyway to accomplish portability AND security? Perhaps using a 2nd database that stores the cloud info so a current main database can be retrieved?

@witeshadow: Storing the credentials in a second database is not an option for me (it's a blacklistet feature because because it complicates the whole thing from a user's perspective. If you like this, you can use KeeCloud which implements exactly this - but currently only supports Dropbox). Beyond this restriction, we can continue this discussion - but please open a new issue for that.

The other option saves your accounts unsecured in KeePass configuration.
Exactly where (in what file) is it saved?

@bjorndoublehorn: see KeePass documentation at http://keepass.info/help/base/configuration.html
It depends on your configuration. Default for installed version is "Local" (C:\Users<User Name>\AppData\Roaming\KeePass\KeePass.config.xml).


can you add a license?

can you slap mit license on this or something so derivatives can happen?

sure done.

done.


Fix yaml warning

The Loader parameter must now be explicitly specified to avoid a warning message when calling yaml.load().  See here for more details.
I also took the opportunity to clean up the fed_hostnames.py file a little bit.

This pull request fixes 3 alerts when merging 573bc79577642a85f1eda8ce3cab8061906f37bf into 2dd0bb888882bc0b1145107e9d96ec372796baaf - view on LGTM.com
fixed alerts:

3 for Unused import

Comment posted by LGTM.com


Categories page mock-up

Get DGIdb v4 logs for gene controller and see if we can't get a sense for frequency of combined source filters

closing this ticket since the page is implemented. creating a new ticket for enhanced design


Implemented integrity check (md5 hash) after dataset download

With regard to issue #1415, I implemented md5 hash check after downloading a compressed dataset file and before extracting it.
See here for security risks, when extracting archives in Python.
I also added missing md5 hashes for the datasets  MNIST, FashionMNIST, KMNIST, EMNIST and QMNIST.

Couldn't we add this check at the end of download_url()?
https://github.com/pytorch/vision/blob/ed5b2dc3a5e7411d8b40cc7e526e151983e99cf9/torchvision/datasets/utils.py#L59-L60
With this, if we have an MD5, your change is automatically included in every dataset.

@le1nux can you fix lint and rebase your PR on top of master? This is almost good to be merged.

Sorry, I was covered in work the past days. Finally I got to rebase the PR, today. Any remarks?


Implement "Event" model

See:
https://dev.twitter.com/streaming/overview/messages-types#events-event
It can be useful when handle follow event on StreamListener like this:
def on_event(self, event):
    if event.event == 'follow' and event.source != self.api.me():
        print('{} has followed me'.format(event.source.screen_name)

FWIW I have a similar pull request over at #587 with some test cases. Maybe we can combine them?

This PR is stale now, since it seems to be for User Streams, which have been deprecated and retired in favor of the new Account Activity API.
For Account Activity API support, see #1075.
Also see:
https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/migration/us-ss-migration-guide.html
https://blog.twitter.com/developer/en_us/topics/tools/2018/enabling-all-developers-to-build-on-the-account-activity-api.html
https://blog.twitter.com/developer/en_us/topics/tools/2017/announcing-more-functionality-to-improve-customer-engagements-on-twitter.html
https://blog.twitter.com/developer/en_us/topics/tools/2017/building-the-future-of-the-twitter-api-platform.html
https://twittercommunity.com/t/details-and-what-to-expect-from-the-api-deprecations-this-week-on-august-16-2018/110746
https://twittercommunity.com/t/reminder-site-streams-user-streams-and-legacy-dm-endpoints-will-be-sunset-august-16th/109482
https://twittercommunity.com/t/building-on-site-streams-user-streams-or-direct-messages-action-required-to-preserve-and-prevent-disruption-to-your-twitter-integration/105736
https://twittercommunity.com/t/date-for-full-deprecation-of-user-streams-site-streams-and-legacy-direct-message-api-endpoints/98734


[SPARK-45757][ML] Avoid re-computation of NNZ in Binarizer

What changes were proposed in this pull request?
1, compress vectors with given nnz in Binarizer;
2, rename internal function def compressed(nnz: Int): Vector to avoid ambiguous reference issue (vec.compressed.apply(nnz)) when there is no type hint
[error] /Users/ruifeng.zheng/Dev/spark/mllib/src/main/scala/org/apache/spark/ml/feature/Binarizer.scala:132:61: ambiguous reference to overloaded definition,
[error] both method compressed in trait Vector of type (nnz: Int): org.apache.spark.ml.linalg.Vector
[error] and  method compressed in trait Vector of type org.apache.spark.ml.linalg.Vector

Why are the changes needed?
nnz is known before compression
Does this PR introduce any user-facing change?
no
How was this patch tested?
ci
Was this patch authored or co-authored using generative AI tooling?
no

Merged to master for Apache Spark 4.0.0.


3.20.3

protobuf 3.20.3
jira: https://anaconda.atlassian.net/browse/PKG-689
upstream: https://github.com/protocolbuffers/protobuf/tree/v3.20.3
diff: https://github.com/protocolbuffers/protobuf/compare/v3.20.1...v3.20.3
license: https://github.com/protocolbuffers/protobuf/blob/v3.20.3/LICENSE
Changes

Update version and SHA

Notes

This fixes two CVEs: CVE-2022-3171 and CVE-2022-1941

Related PRs

https://github.com/AnacondaRecipes/libprotobuf-feedstock/pull/18

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_1ecz8ehd4_/clone/recipe/meta.yaml:59: documentation_overspecified: Using doc_url and doc_source_url is overspecified
Warnings were found

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_09wkeq386p/clone/recipe/meta.yaml:59: documentation_overspecified: Using doc_url and doc_source_url is overspecified
Warnings were found

Linter check found the following problems:
The following problems have been found:
WARNING: /tmp/abs_c6jc_cl4vp/clone/recipe/meta.yaml:59: documentation_overspecified: Using doc_url and doc_source_url is overspecified
Warnings were found


verify github action failing on destroy check

For some reason the verify destroy started failing.

see example here https://github.com/cloud-native-toolkit/ibm-garage-iteration-zero/actions/runs/1106898680

no ocurring anymore


[move-compiler] Allow 'vector' as a module name #151_79

Motivation
[move-compiler] Allow 'vector' as a module name
Test Plan
CI/CD Tests were covered

/canary

:sunny: Canary successful

/land


Is DDP training and nn.SyncBatchNorm.convert_sync_batchnorm supported ?

Hey,
Is DDP training and nn.SyncBatchNorm.convert_sync_batchnorm supported ?

I also want to know this


Component could not be found for blok

Describe the issue you're facing
Hi guys,
I'm getting the following error and I'm a bit lost. When I change the name of the block to "blog" and the component to blog.vue, it will work. So I'm a bit lost on this one.

Anyone an idea about why this is happening?
Reproduction
x
Steps to reproduce
No response
System Info
System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 9 5900HX with Radeon Graphics
    Memory: 3.68 GB / 15.41 GB
  Binaries:
    Node: 18.18.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.9.2 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (118.0.2088.61)
    Internet Explorer: 11.0.22621.1

Used Package Manager
pnpm
Error logs (Optional)
No response
Validations

[X] Follow our Code of Conduct

Hi @stijns96, the component should be SbBlog.vue in your code. Here you can find the README.md section where we showcased an example.
Let me know if it helped and where we can add it to be more obvious next time. Thanks for asking 💜

Hi @Dawntraoz,
I have seen that, but did read it in a different way. Maybe change "code" to "editor" or something like that?
In addition, I changed it to sbBlog.vue, but still get the error?

Hi @Dawntraoz,
Could you please open it again? It's not solved yet

Hi @stijns96, as I can see from the screenshot, you're calling it in lowercase at the beginning, should be Pascal Case: SbBlog (so the first letter should be uppercase). Can you try that and let me know? Thanks again for checking with us <3

Hi @Dawntraoz ,
I tried that, but it keeps giving me the same error. Even when I have the name in storyblok like sb-blog and locally like SbBlog

Hi @Dawntraoz,
I'm sorry, I forgot the first capital letter, but I still get the same error message....

Hi @stijns96, thanks a lot for letting me know, happy you manage!! And don't worry, I don't think I lost my time at all <3 I think this is a really nice way to start improving the DX of the package since the errors can be more explicit, and the components should be exported in more ways.
Thanks for caring and asking for help, that's what we need to improve! Have a lovely rest of the week 🎉


ERROR    HTTPStatus Exception

When using the provided example command:
docker run -it \ -e OPENAI_API_KEY=xxx \ -v "$(pwd)":/app zeroxeli/readme-ai:latest \ -r https://github.com/eli64s/readme-ai
I keep getting this error:
ERROR    HTTPStatus Exception: Client error '404 Not Found' for url 'https://api.openai.com/v1/chat/completions' For more information check: https://httpstatuses.com/404
Tried with both free and paid API key, as well as the PIP install and the docker one. All result in same error.

Hi @Charlie-Root, thanks for reporting the issue. A few initial questions to start are below.

What OS are you using?
Did you export your OpneAI API key before running the CLI?
Have you installed the latest version of readme-ai with pip?

The current version should be 0.4.79. You can check which version you have installed on your system using the command:
pip list

To upgrade the package you can use the command:
pip install readmeai --upgrade

While we debug your issue, have you checked out our Streamlit app for readme-ai? You can generate readme.md files in your browser using the web-app with the link below.

Thank you,
Eli

What OS are you using?
Arch Linux

Did you export your OpneAI API key before running the CLI?
I did, as i said both paid and free version was tried.

Have you installed the latest version of readme-ai with pip?
As said, both (latest) PIP install as well as Docker was tried.

Hi,
I have the same issue.
Im on Pop!_OS 22.04 with paid OpenAI API key, running the latest version (0.4.79).

@iceananas can you try the latest version readmeai 0.4.987 when you get a moment?

@eli64s It's still the same sadly, I updated to 0.4.999.
But I am actually getting '401 Unauthorized' for url 'https://api.openai.com/v1/chat/completions' as error message.
This is the command that I use inside the repository that I want my readme:
readmeai -k "sk-*************************" -r . -b flat-square
(removed api key for obvious reasons)

@eli64sC'est toujours pareil malheureusement, j'ai mis à jour vers 0.4.999.
Mais je reçois en fait '401 Unauthorized' for url 'https://api.openai.com/v1/chat/completions'un message d'erreur. C'est la commande que j'utilise dans le référentiel dont je veux mon fichier readme :
readmeai -k "sk-*************************" -r . -b flat-square (clé API supprimée pour des raisons évidentes)

same error: 401
try simple curl to the endpoint with my api key it's ok


Bower for Brackets does not install packages

Hi,
I've ecnountered an issue which I thought was caused by your extension.
I'm using Brackets on Windows with Git properly installed and added to PATH but whenever I tried to install a bower package all I got was: "Failed to install X" (X is the name of the package).
So, I installed bower separately to check for errors and I got:

C:\Angular>bower install angularjs
bower not-cached    git://github.com/angular/bower-angular.git#*
bower resolve       git://github.com/angular/bower-angular.git#*
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: <IP_ADDRESS>]: errno=No error

Additional error details:
fatal: unable to connect to github.com: github.com[0: <IP_ADDRESS>]: errno=No error

Unfortunately your extension does not display this message about connection problems so users will be quite puzzled as to what is going on and why packages are not being installed.
Fortunately this is something I have encountered on Linux with bower previously so I know the easiest solution is to switch from git:// to https:// as github provides access via both protocols.
So to solve the aforementioned issue just use this command:

git config --global url."https://".insteadOf git://

Hi @MrRafalSzymanski  thanks for reporting this. I'm improving the error messages for the users. I will take this situation into account and display more information about how to configure git when this error happens.


Doesn't work on Jquery Mobile

I checked and found issue 57 and this really doesn't work with JQM.
Jquery 2.1.4
JQM 1.4.5
html:
<select id="features">       <option value="1">1</option>       <option value="2">2</option>       <option value="3">3</option>       <option value="4">4</option>       <option value="5">5</option>       </select>
Jquery:
$('#features').barrating('show', {theme: 'fontawesome-stars', initialRating: null, showSelectedRating: false});
Problem:
Doesn't display stars (yes, the .css is loaded).
Show's the selected rating (clearly set to false)

.
Put's the entire code in a block with a down carat (click on that and you get all sorts of header/footer problems)

Same issue


gym randomly works

Hi there,
Very strange issue, when I launch the command gym it sometimes work, like for instance :
first fail
[~/dev/mdf-develop] gym
/Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/detect_values.rb:16:in `set_additional_default_values': No project/workspace found in the current directory. (RuntimeError)
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym.rb:26:in `config='
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/manager.rb:4:in `work'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/commands_generator.rb:41:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/commands_generator.rb:58:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/commands_generator.rb:14:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/bin/gym:6:in `<top (required)>'
	from /usr/bin/gym:23:in `load'
	from /usr/bin/gym:23:in `<main>'

Second fail
[~/dev/mdf-develop] gym
/Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/detect_values.rb:16:in `set_additional_default_values': No project/workspace found in the current directory. (RuntimeError)
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym.rb:26:in `config='
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/manager.rb:4:in `work'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/commands_generator.rb:41:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/commands_generator.rb:58:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/lib/gym/commands_generator.rb:14:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/gym-0.8.3/bin/gym:6:in `<top (required)>'
	from /usr/bin/gym:23:in `load'
	from /usr/bin/gym:23:in `<main>'

This time it works, I changed nothing
[~/dev/mdf-develop] gym
[16:35:01]: Installing provisioning profile...
[16:35:01]: xcrun xcodebuild -list -project './MDF.xcodeproj'
[16:35:02]: xcrun xcodebuild -showBuildSettings -scheme 'MDF' -project './MDF.xcodeproj'

Sys info :
gym 0.8.3
fastlane 1.30.1
ruby 2.0.0p481

I'm really sorry about this. Your issue seems to be caused by a release yesterday which had a race condition in fastlane_core. Could you please update using sudo gem update fastlane_core and let me know if this fixes your issue?
Sorry again for the troubles.

I just wanted to report, I had this issue also and updating fastlane-core seems to have fixed the issue, thanks!

Yes that fixed it thanks!


CI: Deploy on push to speed up feedback loop

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


Cannot open any file

When I try to open any file I keep getting an IndexOutOfBoundsException. This link has two stacktraces I get for two different files I tried opening.
I am using Java 12 from Oracle, javafx-sdk-12.0.2, and Windows 10 1903.

After (finally) getting the program working in Windows, I can replicate. I'm surprised that this is giving wildly different results from Linux.


Alt list text fix

Show due date instead of text 'elapsed' on countdown elapsed on listpage

Changes completed

Should not have activated service worker, will comment it out on altlistpage


Returning stale (cached?) results?

Hi!
My apologies if the mistake is on my end. Here's my problem. I'm trying to run a test that writes a key to console, then retrieves the value to verify that it worked. But when I use node-consul, I often get back stale results.
Here's some code that represents my problem:
#!/usr/bin/env node

require('dotenv').config();
const sleep = require('sleep').sleep;

const getConsulClient = async () => {
  let options = {
    host: process.env.CONSUL_HOST,
    port: 8500,
    secure: true,
    defaults: {
      token: process.env.CONSUL_ACL
    },
    promisify: true
  };

  return require('consul')(options);
};

const getConsulConfig = async (key) => {
  const client = await getConsulClient();
  let result;
  try {
    result = await client.kv.get(key);
    return (result).Value;
  } catch(e) {
    console.log({e});
    return '';
  }
};

const setConsulConfig = async (key, value) => {
  const client = await getConsulClient();
  if (client.kv.set(key, value.toString())) {
  } else {
    throw `Error writing ${key} to Consul`;
  }
};

const deleteConfig = async (key) => {
  const client = await getConsulClient();
  if (client.kv.del(key)) {
  } else {
    throw `Error deleting ${key} from Consul`;
  }
};

const runTest = async (key) => {
  for (let i = 0; i < 30; i++) {
    await setConsulConfig(key, `foo-${i}`);
    const result = await getConsulConfig(key);

    console.log(`${i} - read`, {result}, result === `foo-${i}` ? 'good' : 'bad');
    sleep(1);
  }
  await deleteConfig(key);
};

runTest('footest-2019');

And here's an example of the output I get. (It's different every time.)
{ e:
   TypeError: Cannot read property 'Value' of undefined
       at getConsulConfig (/Users/jodawill/GitHub/docker-redis-cluster/example.js:25:21)
       at process._tickCallback (internal/process/next_tick.js:68:7) }
0 - read { result: '' } bad
1 - read { result: 'foo-0' } bad
2 - read { result: 'foo-1' } bad
3 - read { result: 'foo-2' } bad
4 - read { result: 'foo-3' } bad
5 - read { result: 'foo-4' } bad
6 - read { result: 'foo-5' } bad
7 - read { result: 'foo-6' } bad
8 - read { result: 'foo-7' } bad
9 - read { result: 'foo-9' } good
10 - read { result: 'foo-9' } bad
11 - read { result: 'foo-10' } bad
12 - read { result: 'foo-11' } bad
13 - read { result: 'foo-12' } bad
14 - read { result: 'foo-14' } good
15 - read { result: 'foo-14' } bad
16 - read { result: 'foo-15' } bad
17 - read { result: 'foo-16' } bad
18 - read { result: 'foo-17' } bad
19 - read { result: 'foo-18' } bad
20 - read { result: 'foo-19' } bad
21 - read { result: 'foo-21' } good
22 - read { result: 'foo-22' } good
23 - read { result: 'foo-22' } bad
24 - read { result: 'foo-23' } bad
25 - read { result: 'foo-25' } good
26 - read { result: 'foo-25' } bad
27 - read { result: 'foo-26' } bad
28 - read { result: 'foo-27' } bad
29 - read { result: 'foo-28' } bad

I'm running Consul 1.4.2. This seems to be a problem with node-consul itself because I don't encounter this problem when I use Postman.
Any idea of what's going on here? Am I doing something wrong, or is it a bug?
Thanks,
Josh

You need to await the set and del calls, example if (await client.kv.set(key, value.toString())) { and if (await client.kv.del(key)) {.

That works. Thanks!


Can't export from subflows.

If I'm within a subflow I can't export the selected content via the menu.
Tested with 0.17.5 git tag.
System:
Windows + Chrome/Firefox latest.
Output on javascript console in chrome:
Uncaught TypeError: Cannot read property 'forEach' of undefined
    at h (red.min.js:16)
    at Object.g [as createExportableNodeSet] (red.min.js:16)
    at HTMLAnchorElement.<anonymous> (red.min.js:16)
    at HTMLAnchorElement.dispatch (vendor.js:4)
    at HTMLAnchorElement.r.handle (vendor.js:4)
    at Object.trigger (vendor.js:4)
    at HTMLAnchorElement.<anonymous> (vendor.js:4)
    at Function.each (vendor.js:2)
    at m.fn.init.each (vendor.js:2)
    at m.fn.init.trigger (vendor.js:4)

Thanks. Quick work around until we get it fixed - ensure you don't have any of the input/output 'nodes' selected when you try to export.
Nick

Thanks for the quick feedback!
I can confirm that this "works" however I also need to be able to export these to share the subflows.
X

To export a subflow, you wouldn't want to do it from 'within' the subflow as that would not pickup the top-level subflow properties. You should add an instance of the subflow to your workspace, then export that node - that will pull in the subflow definition into the export. There are problem better ways we could expose that action, but that's the current way to do it.

Thanks for the tip.
Works for me :)
By the way the latest master@head doesn't show most of the interface due to a js exception. Should I file a bug or is it considered ok that head is unstable?

oops - a work-in-progress slipped in. Master should generally be stable - but if you spot something, worth pinging me on slack in the first instance.

Master is fixed


Add the possibility to create new IP roles

As the titel says, would it be possible to create custom roles for IP addresses. Currently it's only available for VLANs.

IP address roles describe the type of IP address, not its function. There are a limited number of practically relevant roles (loopback, anycast, VRRP, etc.), which is why they are statically defined. What role(s) are you proposing be added?

I'd have to agree that customizable roles would be very nice.
There are many good roles of an IP:
1 - BGP peering
2 - Failover
3 - Heartbeat
4 - Replication
5 - etc
The role of the IP, to me, is the purpose/reason that the IP exists.

@kopacko You are confusing applications with the manner in which an IP address is assigned. For instance, BGP peering can be done on regular unicast IPs or on loopback IPs.

That may be the case, but for those who do not understand unicast, multicast, etc (e.g. the local techs in each of my locations) will not.
Assigning a role that non-technical to understand makes it easier for them.

Well I mainly request it since I can not clearly specify which IP is the gateway.

Perhaps it would help to explain the existing IP roles:

Default (none): A normal IP, optionally assigned to an interface
Loopback: An IP assigned to a loopback interface
Secondary: An IP assigned to an interface as a secondary IP (i.e. ip address x.x.x.x secondary in Cisco IOS)
Anycast: An IP that has other instances assigned elsewhere (an intentionally duplicate IP)
VIP: A floating IP address
VRRP/HSRP/GLBP: A VIP managed by one of the respective NHRP protocols

@tdmike The qualification of an IP as the default gateway for a prefix is a related but different matter. Any of the above (with the exception of loopback) could be the default gateway for a prefix. There are other attributes you can use in determining the gateway IP. For example, whether it's the first or last usable IP in the prefix, whether it's assigned to an interface on a router, etc.

@ jeremystretch  Please put this definition of ip address roles  into document. Someone using Fortigate firewall might think VIP as different meaning.

@jeremystretch Please put this definition of ip address roles into document. Someone using Fortigate firewall might think VIP as different meaning.

@sulisu Feel free to submit and issue for it if you'd like to contribute a PR.


Vault: Option to insert multiple scopes

Description
Currently it is possible to define a Vault form with text, numbers, ... field type.
It would be useful to allow the users to also set a new type of field, which allows them to add multiple text inputs.
For example to allow users to add custom scopes.
At this moment, I can only add 1 scope in an input field

While ideally, we want offer the customers the option to add multiple scopes

Acceptance criteria

[ ] Extend Vault with a new form type to insert multiple text values (for inserting scopes)

@nicklloyd or @elsmr Could you think of a proposal for the Vault API to to store and display multiple scopes?


Error spam when adding/removing AnimatedSprite2D

Godot version:
3.3.rc.custom_build. b38a36923
Regression from https://github.com/godotengine/godot/pull/47064
Issue description:
When adding/removing/moving in scene tree random nodes, then AnimatedSprite2D prints errors:
ERROR: play: Can't play AnimatedSprite without a valid SpriteFrames resource.
   At: scene/2d/animated_sprite.cpp:608.

The problem is that I don't execute any functions on instanced objects.
GDB shows that this is backtrace of execution of this function:
#0  AnimatedSprite::play (this=0x7fffffffcc50, p_animation=..., p_backwards=false) at scene/2d/animated_sprite.cpp:607
#1  0x0000000003c01de1 in VisibilityEnabler2D::_change_node_state (this=0xc719740, p_node=0xadf90f0, p_enabled=true) at scene/2d/visibility_notifier_2d.cpp:309
#2  0x0000000003c0125a in VisibilityEnabler2D::_screen_enter (this=0xc719740) at scene/2d/visibility_notifier_2d.cpp:160
#3  0x0000000003bffc8e in VisibilityNotifier2D::_enter_viewport (this=0xc719740, p_viewport=0x9cea260) at scene/2d/visibility_notifier_2d.cpp:62
#4  0x0000000004024098 in SpatialIndexer2D::_update (this=0x9c84020) at scene/resources/world_2d.cpp:299
#5  0x00000000040217e7 in World2D::_update (this=0x908a090) at scene/resources/world_2d.cpp:350
#6  0x0000000003619ed8 in Viewport::update_worlds (this=0x9cea260) at scene/main/viewport.cpp:238
#7  0x00000000017c53b0 in MethodBind0::call (this=0x97a5990, p_object=0x9cea260, p_args=0x7fffffffd0b0, p_arg_count=0, r_error=...) at ./core/method_bind.gen.inc:59
#8  0x0000000004532c84 in Object::call (this=0x9cea260, p_method=..., p_args=0x7fffffffd0b0, p_argcount=0, r_error=...) at core/object.cpp:919
#9  0x00000000045327ef in Object::call (this=0x9cea260, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:845
#10 0x00000000035f0f09 in SceneTree::call_group_flags (this=0x9ab0330, p_call_flags=2, p_group=..., p_function=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at scene/main/scene_tree.cpp:276
#11 0x00000000035f2647 in SceneTree::iteration (this=0x9ab0330, p_time=0.0166666675) at scene/main/scene_tree.cpp:490
#12 0x000000000174e0c4 in Main::iteration () at main/main.cpp:2100
#13 0x000000000171391c in OS_X11::run (this=0x7fffffffd430) at platform/x11/os_x11.cpp:3641
#14 0x000000000170090b in main (argc=2, argv=0x7fffffffdd28) at platform/x11/godot_x11.cpp:56

Minimal reproduction project:
Run ReparentingDeleting/ReparentingDeleting.tscn scene from https://github.com/qarmin/RegressionTestProject

This code plays AnimatedSprite2D - https://github.com/godotengine/godot/blob/ad293a82f1fc2e4baa35f54b9b8038df72d23737/scene/2d/visibility_notifier_2d.cpp#L285-L295


Release official version

:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


feat(fullstack): Manual List Entry Page

What core or extra feature does this satisfy?
Manual List Entry Page
Describe the feature

[ ] User can input names of shows, and will then be taken to a recommendation list page with recommendations based on those inputted shows.

User should receive the same frontend as https://github.com/Ryantron/anime_site/issues/6.
WARNING: MYANIMELIST DOES NOT HAVE AN ENDPOINT TO QUERY SPECIFIC ANIME NAMES. THIS ONE MIGHT BE VERY DIFFICULT / IMPOSSIBLE.

Additional context
Recommended/suggested endpoints(please modify as you see fit when working on the issue):

Manual List Entry HTML - localhost:3000/animelist/entries
Recommendation List HTML - localhost:3000/animelist/entries/recommendations

Blocked by: #6

manual list entry page has been redistributed into multiple issues


Fixed do_kafka_test.sh script

Changes
The do_kafka_test.sh was created six years ago, but it was discovered last year that it was not functioning properly due to inconsistencies in container name references and issues with dependent scripts.
The script has been refactored and thoroughly tested to ensure its functionality when executed in WSL.
Additional Changes

The dockerfile.testing file has been added to the project for testing purposes. This includes a python installation.
The majority of the code has been moved into methods in do_kafka_test.sh
Color has been added to the do_kafka_test.sh, do_bsm_test.sh and do_tim_test.sh scripts.
The standalone.sh and standalone-multi.sh scripts have been refactored.
Descriptions as comments have been added to a number of scripts.
The DOCKER_HOST_IP environment variable is now required to be set for the do_kafka_test.sh script to run.
The docker-compose-kafka.yml file has been added for testing purposes.

Testing
These changes have been verified to be working when the script is run locally in WSL.

@dmccoystephenson the do_kafka_test.sh script seems to be failing on all the tests for me

Tests currently failing - maybe I missed a step somewhere?

The tests fail sometimes when data cannot be verified to be consumed from the kafka cluster. I have found that the tests are more likely to pass after a fresh restart of the host computer. It's possible that some background processing with docker is causing the issue (which would explain why a restart would help).

Tests pass for me. I am running do_kafka_test.sh in WSL with no other active containers present at the time of execution.
I will continue to experiment until the tests fail and then investigate further.

Compilation was failing when using Ubuntu 20.04 as the base image. After switching back to using Ubuntu 18.04, the tests are passing again.

These changes have been re-deployed to our dev cluster and data has been verified to still be flowing.

I suspect that the do_kafka_test.sh script was failing sometimes because data got produced before the PPM was ready to consume it. I have modified the standalone test scripts to wait until the PPM logs reach 100 lines instead of waiting a fixed 20 seconds for PPM readiness.
Please let me know if you run into more issues @drewjj


$broadcast description in Api is misleading

Broadcast an event that propagates downward to all descendants of the current instance.
should be
Broadcast an event that propagates downward to all immediate descendants of the current instance.
as the _eventsCount only returns immediate descendants' events
Vue.prototype.$broadcast = function (event) {  if (!this._eventsCount[event]) return; ...
optionally - there's a bug that makes _eventsCount return only immediate descendants' events :)

_eventsCount is recursively updated along the parent chain in $on.

Could you please update the $broadcast description to note that broadcasting is not available before the ready event?

You can submit a PR to the vuejs.org repo.


[Feature Request] Display Context Menu without the labels

Description:

It would be helpful for the developer to be able to add the context menu without the labels i.e. the labels in the Context menu being optional.

Problem statement:

There might be cases for the developer to implement the context menu without displaying the labels as shown in the below screenshot. The purpose for it could be for aesthetic reasons or emphasize a particular component in the UI.

@nandorojo Hey Fernando. please have a look.

Hey no need to tag on this. You can open an issue on the iOS library if you'd like. It's not something Zeego can do if that library doesn't support it


Does not reconnect to the match

The bot works for a couple of games but whenever it disconnects from the match for whatever reason it does not reconnect back and gets stuck.
This is the error:

I believe this issue should be resolved. But I'll leave this open for a while just incase you have this issue again.

I am getting this error now once the loading screen ends and the game starts:

Right so this looks like the original issue from #8. If you could comment out line 12 in bot.py and uncomment line 13 and then run the bot, it will add a log file to your desktop. When this issue happens again drop that log file in here so I can better work on this issue.

log.txt
Here is the log file, thanks for your help

should be fixed now. drop log files if you get more errors related to this.

Now it keeps closing the league process while in the loading screen it cant get into a game
But i figured out the cause of it,  it happens when i use an FPS Limiter to limit the fps to 10 or below ( to save cpu usage )
im not sure how to fix it

So ur saying that it works normally unless you use the fps limiter?

Yeah i dont know why thats the case

Yea so that issue is not related to the league bot, and thus I can't really help you unfortunately. Since it looks like the original issue has been fixed I will be closing this issue.


Remove Cargo.lock?

Cargo.lock is normally not supposed to be committed (it' ignored in binaries anyway), is there a specific reason to keep it?

Yes: https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
We had multiple problems with the fact that some crates to not follow (in fact) semantic versioning and can break package from being compiled in a random fashion. So most of rust-bitcoin related projects having this issues in the past start to commit to Carto.lock

This is an interesting problem because the lock is still ignored by binaries which are the consumers of API. The API promises MSRV, but the dependencies don't. So any user of the API still has to manually specify versions. You could pin them in Cargo.toml but then the users of newer compiler can't benefit from updates to those dependencies.
But maybe I have a solution. It's possible to conditionally add dependencies (example in my recent crate), features are supported as well. So the solution would be to have a feature new_rust and then conditionally pin the dependencies in Cargo.toml depending on whether that feature is active. (Rust version would be an even better condition, but it seems to be impossible.)
What do you think?

Well, we use conditional dependencies. In general I have to say that dependency version management becomes a nightmare for libraries and I do not know any good solution to that...

Currently conditional dependencies are used just to activate features. I was suggesting using them for selecting versions of dependencies. if dependency x works on version 1.2.3 and doesn't on 1.2.4, then we can make the requirement =1.2.3 by default and change it to 1.2.4 when new_rust is activated.


Pass optional logger during construction

:notebook_with_decorative_cover: Description
Pass optional, user-defined logger to PyVAST.
:memo: Checklist

[x] The changes are reflected on docs.tenzir.com/vast, if necessary.

@tobim You need to specify a handler for your logger, e.g., log to console or to a file. Also, in your example you never passed the logger object to VAST(). See below for a working example:
import asyncio
import logging
import pyvast

async def main():
  logger = logging.getLogger("vast")
  logger.setLevel(logging.DEBUG)
  logger.addHandler(logging.StreamHandler())
  vast = pyvast.VAST(binary="../../build/vast/debug/bin/vast", logger=logger)
  proc = await vast.import_().zeek(read="../libvast_test/artifacts/logs/zeek/conn.log").exec()
  stdout, stderr = await proc.communicate()

asyncio.run(main())

In my snippet I wanted to use the default logger. It wasn't obvious to me that it is required to set a handler to get some output.


docs: update spec for liquidfarming module

Description

This is for the update of spec docs of liquidfarming module.
closes: #XXXX
Tasks

[ ] update specs for liquidfarming module

References

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Appropriate labels applied
[ ] Targeted PR against correct branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

I reference this PR to update spec docs and apply additional updates to the latest tech specs. In order to prevent from having conflicts with #332, I will close this.

Close in order to avoid collision


Hide Edit/Delete button

Feature request:
Hey, I think is a good idea to have a feature for hide edit and delete buttons based on user authorities. If it exists, there is a documentation showing how to use that?
Bests.

"hide edit and delete buttons based on user authorities" - can you please be more specific?

If u look at this example: http://imageshack.com/a/img924/2151/2B6Uuj.png you will see that bellow the week, there is a list of events with two small buttons to edit event or delete it. I think its a good idea hide this options for common users, making the calendar able only to viewing for them.

You have to define those actions explicitly. They are controlled by event.actions field, as described here. Solution: add them only when you need them ;)


How to deal with obsoleted enum values?

Is there any way to check if a value is obsoleted?

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

ID: 78da2fae-ee31-56f9-c9eb-99ce24161f5d
Version Independent ID: 3da6fba4-b2d6-4851-dd86-fb16ba1bc52b
Content: FieldRef.EnumValueCount() Method - Business Central
Content Source: dev-itpro/developer/methods-auto/fieldref/fieldref-enumvaluecount-method.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Closing this. No doc issue.


Discussion: Separate default and GOV.UK styles

I was going to do a PR to update the input style from GOV.UK Elements to GOV.UK Frontend but when looking at the multiple uses of this component form an open source perspective I thought it could be useful to break the styles up into "Default", a version of the autocomplete with basic brand-free styling with separate overrides for "GOV.UK Frontend" styles.
There may be a better way to achieve this technically, but I've done the PR as a proof of concept / idea.
Default / generic styles

GOV.UK overrides (Updated to GOV.UK Frontend size / padding / responsive text)

related: #285

This would be useful for me, as I’d like to use this on a project I’m working on, but I’m having to override a lot of the default styling.


Adopt meta-flutter repository changes

meta-flutter now contains another layer meta-flutter-apps for all its app examples.

Fixed in 8b7acc8f11a738b4560e21cd7cfc9c09ecc306c0


CORE-19840 Send backchain when receiver has filtered transaction

Changed a number of methods to only return information about signed transactions, ensuring that filtered transactions were not leaking through in the returned data.
Doing this allowed a transaction to be sent by sendTransaction and sendTransactionWithBackchain, however, this highlighted an issue where storing a filtered transaction and then overwriting it with a signed transaction led to the transaction signatures having the wrong indexes. This caused duplicate and missing signatures (the primary issue).
To resolve the transaction signature issue, the signature table has been changed to make the transaction_id and pub_key_hash the primary key, and the signature_idx has been dropped altogether. This resolves the issue because a transaction_id and pub_key_hash pair will always be unique, so we can always correctly identify new signatures via the key. Conflicts will continue to be resolved by ON CONFLICT DO NOTHING.
Additional changes were made to change the signatures field in UtxoSignedTransactionImpl and UtxoFilteredTransactionAndSignatures to be a Set to further align with the changes made in the database.

build e2e

build e2e

build e2e


Can I have a Attach Files button in the issue creation description form?

Can I have a Attach Files button in the issue creation description form?

This is a bug, because it should be there. I'll have a look at it.


Use __slots__

Currently we use this pattern to denote that MyThing will have a prop_a property.
class MyThing:
    prop_a = None

It looks like if we instead use __slots__ we could see 40-50% reduction in memory footprint.
class MyThing:
    __slots__ = ["prop_a"]

source:

https://docs.python.org/3/reference/datamodel.html#slots
http://book.pythontips.com/en/latest/__slots__magic.html

Interesting. So, it seems that if we would go down that path we'd lose out a lot of type safety features. By default mypy doesn't let us access attributes that aren't defined which is a good safety check to have. But it doesn't seem to recognize attributes defined via slots (leaving out for a moment that the string list donation doesn't let us specify the type of the property).
class MyThing:
    __slots__ = ["prop_a"]

y = MyThing()
y.prop_a = 'test'

Leaves you with
$ mypy slots.py
slots.py:5: error: "MyThing" has no attribute "prop_a"

Whereas the following works fine
class MyThing:
    prop_a: str

y = MyThing()
y.prop_a = 'test'

Plus, it has the benefit of catching type bugs. E.g
class MyThing:
    prop_a: str

y = MyThing()
y.prop_a = 4

$ mypy slots.py
slots.py:14: error: Incompatible types in assignment (expression has type "int", variable has type "str")

It looks like if we instead use slots we could see 40-50% reduction in memory footprint.

I admit that I didn't really dive into why the slots construct would reduce the memory footprint that much but if it comes from the fact that we are pre-initializing all these attributes to None then I believe this won't be an issue with Python 3.6 anymore because there you don't need to assign None (or any other value) to an attribute just to denote it. You can simply declare it with its type and as far as I think this won't have any effect on runtime performance but be simply a hint for static analyzers such as mypy.
class MyThing:
    prop_a: str

That's one downside of Python 3.5 that is also explicitly mentioned in PEP526.

There's no way to annotate the type of an undefined variable; one needs to initialize it to None (e.g. a = None # type: int).

Lame, and it doesn't appear there's a reasonable workaround right now.

FYI @davesque

mypy seems to work with this:
class MyThing:
    __slots__ = ["prop_a"]
    prop_a: str

y = MyThing()
y.prop_a = 'test'

It's redundant, but at least you get the type checking and the performance boost.

@carver doesn't actually work (unless my test was broken).  did you just run mypy or did you actually run the python code too.  Mine blew up when i tried to execute it.

Works for me in py3.6.3:
$ python -i slots.py
>>> y.prop_a
'test'

It's redundant, but at least you get the type checking and the performance boost.

@carver so this suggests that it isn't the pre-assignment (prop_a = None) that is eating unnecessary memory but rather that using __slots__ gives you a performance boost in general. Do you mind sharing your memory footprint measurement code?
Also note that if it turns out that the memory boost is in fact related to the pre-assignment than this won't help for Python 3.5 because this just isn't valid Python 3.5 syntax.
class MyThing:
    __slots__ = ["prop_a"]
    prop_a: str

It has to be this for Python 3.5
class MyThing:
    __slots__ = ["prop_a"]
    prop_a = None  # type: str


Logging in & getting authentication token

Hi,
I am stuck at the first step. I have setup the environment with Wamp but I am unable to login. Pardon my lack of knowledge. I read most of the code in app.php, how to setup routes and acl etc. I then went deeper and read a few articles and tutorials about JWT on internet. I have never used it. How do I send my User/Password to the API. Earlier I had created a small REST API using node.js using a tutorial where we sent the credentials in a json object. I assume that will not work here.
I also understand that after authentication in Response object I will get the token which I have to use for all further calls. Second question, whose solution is most probably related to the first one, how will I send this token with each API call. I do see the config file server.development.php having space for the token and a key.
Amal

You should go to USAGE in the guide, you must use Postman or any other API client. I fact there's an included postman collection file in the skeleton for you with everything already setup, just follow the guide, its very easy. Hope it helps.


GitHttpClient.GetAnnotatedTagAsync    VssServiceResponseException: Found

i got a exception( VssServiceResponseException: Found ) when i  get git-annotatedTag from our tfs server by GitHttpClient.GetAnnotatedTagAsync.
http request
GET http://mytfsserver.com/tfs/DefaultCollection/myproject/_apis/git/repositories/79e14f94-ef76-4ff4-8c87-ecd307afc5bd/annotatedTags/cdf05f24fa1dfab5ffe5e7890abcb0fa3f58f3a7 HTTP/1.1
Accept: application/json; api-version=3.2-preview
User-Agent: VSServices/15.131.28119.3 (xx.exe)
X-VSS-E2EID: 73ef52bf-f14c-4313-8da4-1c675f8877a3
Accept-Language: zh-CN
X-TFS-FedAuthRedirect: Suppress
X-TFS-Session: 826496e9-25b7-47eb-8ed8-c5dc2e1a770c
X-VSS-Agent: VSS: 04c96644-51e8-4b20-8157-83a0ad9c5e9c
Authorization: Basic OjdsazJlZXc0NGlrY2tpejZlNDVnNGFsb3hrcmlma3E3YW90ZnRwenV2cjVqazR2ZXhjY3E=
Accept-Encoding: gzip
http response
HTTP/1.1 302 Found
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8; api-version=3.2-preview.1
Expires: -1
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 69ad2774-206d-47d1-b0d2-295ab00ddbe4
ActivityId: c4b0b18f-a147-4809-8365-96ca925de408
X-TFS-Session: 826496e9-25b7-47eb-8ed8-c5dc2e1a770c
X-VSS-E2EID: 73ef52bf-f14c-4313-8da4-1c675f8877a3
X-FRAME-OPTIONS: SAMEORIGIN
X-VSS-UserData: 89d22540-a11d-47ff-bf3d-a09b58439ec1:xuxiaolong6
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 03 Jan 2019 07:24:48 GMT
Content-Length: 457
{"name":"refs/tags/5.4.1","objectId":"cdf05f24fa1dfab5ffe5e7890abcb0fa3f58f3a7","taggedObjectId":"1b74f2c095b39a902144c48b3be3ca48b235dfc7","taggedObjectType":"commit","taggedBy":{"name":"xxx","email":"xxx","date":"2018-12-20T03:49:28"},"message":"","url":"http://xxxx/tfs/DefaultCollection/xxx/_apis/git/repositories/79e14f94-ef76-4ff4-8c87-ecd307afc5bd/annotatedTags/cdf05f24fa1dfab5ffe5e7890abcb0fa3f58f3a7"}
My english is poor , I hope someone can understand my question, and thanks.

@DanXXu Thank you for your question. The GitHub issues in this repo are for documentation feedback, and it sounds like you have a product question. Please post your question here and they will take a look:
https://developercommunity.visualstudio.com/spaces/21/index.html
Thank you.

thanks.


Add argument to write unknown tags to file

This is related to issue #10.  This PR adds an argument that causes CITE-seq-count to write a CSV with any tag sequences not matching a known tag.  This could be useful if the fraction of no_match tags is high, and could help for debugging and/or identify situations where the barcodes actually used do not match what the user expected.

Thanks for the help


kahoot-auto?

Anyone know what kahoot-auto does? Because kahoot-rand answers questions automatically. So what does it do? it prompts me for what i assume is a kahoot login, PIN, and quizid.

auto isnt working at the moment, but what it does is answer all the questions for you.


Removed inconsistency in navigator

Notes for Reviewers
This PR fixes #6860
Signed commits

[x] Yes, I signed my commits.

https://user-images.githubusercontent.com/103871275/211804769-fa984c31-c8d4-4f0f-8380-da2c93a89270.mp4

@hs05june commits from @Abhishek-kumar09 and @sudo-NithishKarthik are included in this PR by accident, I assume. Will you sync your fork/clone with head in order to ensure that only your commits are included?

@Abhishek-kumar09 I will be trying it that way

@Abhishek-kumar09 I tried the approach suggested by you. But it could set only the attributes of the svg tag.

To ensure that the icons have correct color, I have also changed the attributes of the path, polygon and g tag. It wasn't working properly.

@Abhishek-kumar09 please suggest any other approach

Uh-oh. Some merge conflicts have cropped up.

@hs05june will you be attending to these conflicts?

Merge conflicts...

@leecalcote  Yeah looking into them.

Circling back to review. Still merge conflicts.

Hey @leecalcote . I had a word with @Abhishek-kumar09. He suggested me another better approach to solve this issue. I am closing this PR. I will be making another PR for this issue using what @Abhishek-kumar09 has suggested.

Ok. Understood.


(v1.0.4-release) Update TKG tag to v<IP_ADDRESS>

Grinder
00:12:06.692  getDependentLibs:
00:12:07.506       [exec] --------------------------------------------
00:12:07.506       [exec] path is set to C:/Users/jenkins/testDependency/lib
00:12:07.506       [exec] task is set to default
00:12:07.506       [exec] dependencyList is set to maven
00:12:07.507       [exec] --------------------------------------------
00:12:07.507       [exec] Starting download third party dependent jars
00:12:07.507       [exec] --------------------------------------------
00:12:07.507       [exec] downloading dependent third party jars to C:/Users/jenkins/testDependency/lib
00:12:07.507       [exec] C:/Users/jenkins/testDependency/lib/apache-maven-bin.tar.gz exists with correct hash, not downloading
00:12:07.507       [exec] downloaded dependent third party jars successfully


etcdserver: respond with ttl=0 for revoked lease keep alive

Fixes #5172

We need to fix keep alive once test.

LGTM


Allow to set remediationAction for policies with Gatekeeper Constraints and templates

When generating policies from Gatekeeper manifests (Constraint/ConstraintTemplate) no remediationAction is set for the root policy, even when specified in the PolicyGenerator manifest.
Without this remediation (enforcementAction) have to be controlled for each constraint. It would be nice set or override this with PolicyGenerator instead.

Resolved in:

https://github.com/open-cluster-management-io/policy-generator-plugin/pull/167


How can i change alpha in Lua Text?

Describe your problem here.
I want to change alpha in Lua Text... Can i do it?
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

you can use either setProperty("[text name].alpha", number) or doTweenAlpha()

Oh, sweet honey... doTweenAlpha work, i'm sorry
Thank you very much


Issue with ControlsEx 6.0.0

Describe the bug
Using newest ControlsEx (6) I got this exception: 'Field not found: 'ControlzEx.Behaviors.WindowChromeBehavior.TryToBeFlickerFreeProperty

Seems it was removed from controlzex: https://github.com/ControlzEx/ControlzEx/commit/57423c83b2bb7ea2ead35ace2abda17fe1a72d43

@punker76 du have a new version planed with the fix?

@jogibear9988 This should be available with latest alpha and current ContorlzEx version


App crashes in release mode on Android

Hello. When I build the example app in release mode app crashes during model initialization. Any ideas how to fix that?
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64, locale pl-PL) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.92.2) [✓] Connected device (4 available)

is anyone else facing this issue ?

It seems that some plugin-related classes and native methods are being omitted during the release build.
Try creating a android/app/proguard-rules.pro file in the project and then attempt the build again.
I'm not sure whether this file needs to be created at the plugin level or within the example app, but I wrote it in both places, and the build succeeded.
This resolved the release build failure issue for me in the Android environment. I hope this answer helps.
Here is the content of the proguard-rules.pro file:
`-dontwarn javax.annotation.Nullable
-keep class org.pytorch.** { ; }
-keep class com.facebook.jni.* { *; }
Preserve plugin classes
-keep class com.spring98.yolo_realtime_plugin.** { ; }
-keep class com.spring98.yolo_realtime_plugin_example.* { ; }
-keepclassmembers class com.spring98.yolo_realtime_plugin.* { ; }
-keepclassmembers class com.spring98.yolo_realtime_plugin_example.* { *; }
Preserve interfaces and their implementations
-keep interface com.spring98.yolo_realtime_plugin.** { ; }
-keep interface com.spring98.yolo_realtime_plugin_example.* { *; }
Preserve native methods related to plugins
-keepclasseswithmembernames class * {
native ;
}
`


random hash in asset name

Currently, the Atomic Assets from our marketplace have the name "Fair Protocol NFT". We should comply with the ecosystem name and add a hash to have unique names. So, the title should be something like "Fair Protocol Atomic Asset [104ab42f11]".

Link for small hashes: https://stackoverflow.com/questions/4567089/hash-function-that-produces-short-hashes


crash

crashes on android 32bit
crashlog
Crash 2024-03-03 09.52.18.dmp

Notes: if it's black screen and it have a music on, means its not crash.. but you need to restart the game. It's makes it reset the progress itself. But if it crashes, then it save the crashlog to the folder (like you give the crashlog file) also.. how do i use voice chat on globed mobile?...

does this crash still occur in the latest version of the mod?

closing due to no response, if this happens again on the latest version please reopen with a new crashlog


Impossible to load external scripts via cli

zap-cli -v --zap-path /opt/zaproxy/ scripts load -n Auth -e "Mozilla Zest" -t Authentication -f /home/Auth.zst
[DEBUG]           Loading script "Auth" from "/home/Auth.zst"
[ERROR]           Error loading script: Does Not Exist
$ ls -al /home/Auth.zst
-rw-r--r-- 1 root root 7874 Nov  1 13:58 /home/Auth.zst
The file is present, but does not get loaded. The error is quite unhelpful, if the file is actually missing the error is different as well:
[ERROR]           No file found at "/home/Auth.zsasdt", cannot load script.

Same issue for me.

zap-cli -v scripts load -n app-login -t authentication -e 'Zest : Mozilla Zest' -f app-login.zst works.
When i use Authentication, it was giving error as org.zaproxy.zap.extension.api.ApiException: does_not_exist in zap logs.
Changing Authentication to authentication worked.


Want command to rename connection in SERVER

Issue Type: Feature Request
The name for a server given in SERVERS does not appear in tabs and hte dashboard.
Because of this, I'd like to rename the name in servers so that it matches what does appear in the dashboard.
RECOMMENDATION

Add/use the server name given by users to tabs and dashboards so that it is easy to match with the server in SERVERS.
Allow users to easily change the name by adding a "Rename" command to the command menu or adding a "Rename" command to a main menu. (Edit menu?).

Azure Data Studio version: Azure Data Studio 1.0.0 (cab8f3e37c9ac4367e0dacef5185da08bd8021c2, 2018-09-20T21:41:50.803Z)
OS version: Darwin x64 17.7.0

We got a community contribution that addressed part 1: https://github.com/Microsoft/azuredatastudio/pull/2794
though now it doesn't show the server address at all, just the name, so I wonder if we want to think any more about how to display all the info

This is a duplicate of other issues we're tracking to be able to edit connection details.

@kburtram Great, I'm all for closing duplicates! Can you link them, please?


OHIP streaming client for Node JS

Any possibility to create a Node JS application same like this ? This application works fine, but in order to convert this app to native Node app some libraries (like got) are failed to implement since got uses type import module but require module won't support this .

this is just a sample project. should be fairly straight forward to use as reference to convert to NodeJS. You can replace got with another CommonJS http client.


Gaurav6982

Have you read the Contributing Guidelines on Pull Requests?
yes
Description
Added the Dynamic Programming solution to a Problem Rectangle Cutting in both methods Tabulation and Memorization.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)

Please Check@plazzy99

@Gaurav6982 Add space and time complexity.

Ok

@all-contributors please add @Gaurav6982 for code


Stm32f746 audio

Summary
STM32_RCC_DCKCFGR is not defined for the stm32f746, since the stm32f746 has two configuration registers STM32_RCC_DCKCFGR1 and STM32_RCC_DCKCFGR2. Since the LTDC is only affected by clocks steered by
the first register, I suppose it should be the register to be output. (I assume this to be a C&P error coming from
stm32f/stm32_ltdc.c, where the definition stems from stm32/hardware/stm32f40xxx_rcc.h.)
Impact
Bug-Fix
Testing
I'm only wondering why I never encountered that compile error before. However, the affected source file seems
to compile properly after the fix.

@okayserh could you drop the last merge patch?

Happy to do that, when I have figured out how to do it :-). Have circumvented more serious use of git for some time :-/. I'll go through the docs to figure out ...

git remote add upstream git@github.com:apache/incubator-nuttx.git
git checkout stm32f746_audio
git fetch upstream master
git rebase upstream/master
git rebase --continue
git pus -f origin stm32f746_audio

Thanks for the quick help! I've entered the commands as suggested. Did this do the job?

No. Seems like the merge commit is still present. Let me try it locally. Maybe interactive rebase is needed in case if branch already contains a "merge" commit.

@okayserh I rebase your patch on top of apache mainline, please take a look.


"Incompatible Browser" when dashboard in reverse proxy

Hello,
When the dashboard is behind a reverse proxy, a "Incompatible Browser" error message is shown.
Nginx example:
server {
    listen       81;
    server_name  some.local;
    access_log /tmp/some.log combined;

    location / {
        proxy_set_header X-Forwarded-Host $host:$server_port;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass         http://dashboard.local:8070/team-sprint-tasks;
    }
}

Apache example:
<VirtualHost *:80>
    ServerName some.local

    ProxyRequests off
    ProxyPreserveHost on

    <Location />
        ProxyPass http://dashboard.local:8070/team-sprint-tasks
        ProxyPassReverse http://dashboard.local:8070/team-sprint-tasks
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

This should work as the FAQ (http://www.cyclotron.io/faq.html) says "Can I Host My Dashboard on a Separate Domain?" that a reverse nginx proxy can be configured.
Do you have any ideas how can I set the dashboard behind the front server?
Thank you!

Hello,
I just see that proxypassing the cyclotron root instead the dashboard "team-sprint-tasks" itself works right. So, since the FAQ just says that it can be served in a different host as a reverse proxy, I think there's no issue here... :pensive:
Thank you!

Well, looks like it was too early to claiming victory... I see, when I go to a dashboard that there's a single request to the API with the backend hostname hardcoded in URL instead using the HOST request header one (even with "ProxyPreserveHost on" enabled).

Hi @sergiopr89, thanks for bringing this to our attention.  I think the FAQ is correct in that this functionality isn't available out-of-the-box, but the suggested workaround it gives seems to be wrong or too simplistic in this case.
The issue is that Cyclotron is primarily an Angular web application, and the dashboard routing is done client-side in the browser.  So the http://dashboard.local:8070/team-sprint-tasks URL doesn't actually exist in cyclotron-svc at all.  The Incompatible Browser message appears only because it's unable to load the main JavaScript files which hide it.
Due to this routing issue, I can't think of a way to achieve what you're doing without some additional changes.  Potentially, Nginx could proxypass the Cyclotron root, but add a query parameter or header specifying which dashboard to load.  Then when Cyclotron starts up it could check that and load the dashboard if set.  This might make it seamless to load a single dashboard directly.  I will look into this further to see if it's possible.
Regarding the last comment—I think this is just a config issue.  The website makes API requests using the /js/conf/configService.js file, which hardcodes the backend API you want to use.  You can set that directly to the proxy server instead of the backend server, http://some.local:81/.  That config is used by the user's browser, so it needs to be a publicly-available URL.

Hello @baumandm,
Thank you for your help, the API communication error was the config issue as you said, so I just set the API through the front server and it works!
Thank you!


chore: remove turbo cache inputs for docs

Closes #1717
Our build stage is dependent on auto generated code. Therefore if a cache is missed in docs, but not during other packages, it will fail as it attempts to reference auto generated code.
We should treat the docs cache the same we do as other packages to ensure they are in sync and do not cause CI failures.

@Torres-ssf what was the reason for the separate Turbo config, and not inheriting the base? Or the reason for the inputs specifically?

Closing to rethink approach.


[CCM-16588]

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the CODEOWNERS.
What Type of PR is This?

[x] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screenshot.

 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.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65df6ca271dbda40dca671c0--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65e0512cd76367ecad6eacf8--harness-developer.netlify.app


Can't found module ChromiumRevision building by webpack

Puppeteer version: 1.2.0
Platform / OS version: Windows 10
Node.js version: 8.9.1

I use puppeteer in a production build, and I build my server by webpack, and there is a line of code:
node_modules\puppeteer\lib\Launcher.js
const ChromiumRevision = require(path.join(helper.projectRoot(),'package.json')).puppeteer.chromium_revision;

Inside projectRoot there is:
node_modules\puppeteer\lib\helper.js
static projectRoot() {
  if (!projectRoot) {
    // Project root will be different for node6-transpiled code.
    projectRoot = fs.existsSync(path.join(__dirname, '..', 'package.json')) ? path.join(__dirname, '..') :
    path.join(__dirname, '..', '..');
  }
  return projectRoot;
}

Webpack has to resolve this path during building and put package.json it in a separate module. But looks like it can't do it, seems something wrong with __dirname, option in webpack config node: __dirname: false/true doesn't help.
Is it ok to use puppeteer in build, like in one file: server.js?
Is it ok to bundle puppeteer by webpack?
Any workarounds?

Isn't it better to replace
const ChromiumRevision = require(path.join(helper.projectRoot(),'package.json')).puppeteer.chromium_revision;

with this code?
const ChromiumRevision = require('../package.json').puppeteer.chromium_revision;

here is my webpack config:
var path = require('path');

module.exports = {
    entry: path.resolve(__dirname, '../server/src/index.ts'),
    output: {
        path: __dirname + './../dist/',
        filename: 'server.bundle.js',
    },
    target: 'node',
    node: {
        __filename: true,
        __dirname: true,
    },
    module:{
        rules:[
            {
                test: /\.ts$/,
                loader: 'ts-loader',
                exclude: /node_modules/
            }
        ]
   },
    resolve:{
        extensions: [
            '.web.ts',
            '.ts',
            '.web.tsx',
            '.tsx',
            '.web.js',
            '.js',
            '.json',
            '.web.jsx',
            '.jsx',
        ],
    }
};

same problem here

Yesterday I tried to use rollup and I can't pack it.
const ChromiumRevision$1 = commonjsRequire(path.join(helper$34.projectRoot(), 'package.json')).puppeteer.chromium_revision;
...
function commonjsRequire () {
	throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
}

And there is a problem with circular references(https://github.com/rollup/rollup-plugin-commonjs/issues/293)

Hi all ! Do you get a workaround for this one ?
Can't build a lambda with webpack including puppeteer...

It only works with versions <= 0.13.0

webpack.config.js
export default {
...,
  externals: ['aws-sdk', 'puppeteer'],
}

@aslushnikov I checked several issues about webpack bundling (1644, 1224) and I don't understand why  you're closing it. Please, reopen at least 1 issue with this problem to track progress on it or to find some workarounds how to fix it.

I checked several issues about webpack bundling (1644, 1224) and I don't understand why you're closing it.

@EugeneDraitsev these issues fall outside of our core competency. We can't have issues regarding any "downstream" or integration project here; they should be addressed in their own repositories. I suggest filing over to WebPack because that's their field.
If there's something we can do to help Puppeteer work with WebPack we'd be happy to, but we have no resources to look into this.

@aslushnikov You still can help at least to highlighting this issue like 'unresolved' and stay active discussion about that. Maybe someone find workaround or solution for this unresolved issue in this or another therd, or if webpack team fix it you can add solution to this opened thread to help other developers solve their problem. Does it make sense to you?

@aslushnikov You still can help at least to highlighting this issue like unresolved and stay active discussion about that. Maybe someone find workaround or solution for this unresolved issue in this or another therd, or if webpack team fix it you can add solution to this opened thread to help other developers solve their problem

We close issues when they are no longer "actionable": Puppeteer core team has no plans regarding it.
Feel free to continue discussion in the closed issue, that's pretty common.

Please file the issue downstream to WebPack repository and post a link here. This way all newcomers will know where to post concerns and further details.

I really don't think that this is an issue that would be appreciated in the webpack issue tracker, though, since some of puppeteer's code would be near-impossible to support for any bundler (e.g. dynamic requires).
But it's also not strictly an issue with puppeteer.
I do believe that bundling is an important part of the Javascript ecosystem that any project should strive to support, however.
That being said, if you're not afraid to override some of puppeteer's code, here are the necessary changes to make it work with webpack:
In node_modules/puppeteer/lib/Launcher.js
Change
const ChromiumRevision = require(path.join(helper.projectRoot(), 'package.json')).puppeteer.chromium_revision;

into
const ChromiumRevision = require('../package.json').puppeteer.chromium_revision;

(as pointed out by @kutsokon already)
In node_modules/puppeteer/lib/BrowserFetcher.js (in case you need this module)
Change
const request = require(driver).request(options, res => {

into
const request = require('https').request(options, res => {

Lastly, the required bits in the webpack configuration:
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

module.exports = {
  target: 'node',
  optimization: {
    // Disables the built-in UglifyJsPlugin
    minimize: false,
  },
  plugins: [
    new UglifyJsPlugin({
      uglifyOptions: {
        // https://github.com/mishoo/UglifyJS2/tree/harmony#compress-options
        compress: {
          drop_console: false,
        },
        ecma: 8,
        // Necessary for puppeteer, otherwise there will be odd bugs
        keep_fnames: true,
      },
    }),
  ],
};

Evidently puppeteer accesses some functions dynamically as well and therefore doesn't play nicely with UglifyJS. Keeping function names fixes some odd runtime issues, but I haven't done the research where in puppeteer's code one would have to make changes to address that.

How could this be closed ?
We can't bundle puppeteer (with browserify) for the same reasons - this is a major drawback.
A try/catch & fallback to a process.env.PUPPETEER_CHROMIUM_VERSION ( per puppeteer/install.js  design ) would be perfect

I do believe that bundling is an important part of the Javascript ecosystem that any project should strive to support, however.

I think puppeteer could and should spend some time investigating this issue and look to put a fix / workaround in place.

@aengl @daveykane sure, let's make pptr bundle'able. Moving this discussion over to #2119.

A try/catch & fallback to a process.env.PUPPETEER_CHROMIUM_VERSION ( per puppeteer/install.js design ) would be perfect

@131 I'm not sure I follow this.

Ok guys, I'm on Mac OS and here the solution which I did and work in order to use pupperteer in one single file:
STEP 1:
in webpack.config.js add this:
//...
  externals: {
   //...
    puppeteer: 'require("puppeteer")'
  }

STEP 2:
Install those dependencies and update again your webpack.config.js according this stackoverflow comment
STEP 3:
sudo npm install -g puppeteer --unsafe-perm=true
It should works after :)


Repeating gradient

We could add easily repeating gradient
We can find the concept in css
https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_gradient-linear_repeating2
https://developer.apple.com/library/content/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradient.html
We need for that the number of repetitions
We could add parameter to the GradientMode or I prefer to add a var in GradientDesignable
For Linear it is very easy
let layer = CAGradientLayer()
layer.colors = colors.aFunctionToDuplicate(numberOfRepeat: 5)

For radial, same things and also an adaptation must be done when computing locations (now it is [0, 1])
I try with that but not sure that we must do that
var locations: [CGFloat] = []
    let size: CGFloat = 1 / CGFloat(colors.count)
    var pos: CGFloat = 0
    for _ in 0..<colors.count {
      locations.append( pos)
      pos += size
    }
    locations.append(1)

TIL, great idea. I prefer to add an associated value to the enum since we provide similar API for Animtable and some other properties. But we need to handle the parsing careful to apply default 1 to not break the existing @IBInspectable var _gradientMode: String?.
@tbaranes any idea on the API interface?

New idea, when repeating have an odd numbers of colors, with last colors same as first colors
See #567 for smooth conic gradient


fix(demo): code snippet generator using copilotkit

fixes: #637
Description:
This PR adds a new feature to the project: a Code Snippet Generator that suggests code snippets based on user prompts for various programming languages. This feature leverages CopilotKit as a core component and uses Shadcn-UI for styling all UI elements. The implementation follows the requirements outlined in the Hacktoberfest event.
Fixes:
Adds Code Snippet Generator functionality.
Integrates CopilotKit for generating relevant code snippets from prompts.
Styles all UI components using Shadcn-UI, ensuring consistency with the design guidelines.
Screenshots

This is amazing @RohittCodes.
Really nice job!


Remove get_current_request and RequestContext middleware

This mechanism was a source of confusing magic and a correctness issue in the presence of asynchronous tasks. It was only used in the Sentry context builder and the webhook logging formatters, and it’s easy to replace in both.
Cc @alexmv

Yeah this seems like a good thing to remove.

The second commit looks like it had a few things squashed together, or needs an updated commit message -- it's not just removing dependence on get_current_request from logging_util, it's also ripping it out of the bitbucket integration, as well as removing the function itself and its supporting middleware.

All the bitbucket2 changes are there just to support getting the HttpRequest passed to logging_util explicitly, so logging_util doesn’t need get_current_request. The function itself and middleware are removed in the same commit because otherwise tests fail with coverage errors. I’ve expanded the commit message to acknowledge this.

Looks great, merged, thanks @andersk and @alexmv!


[Babel Problems with vpack] Try running vpack on example/ui/index

problem is, the wsClient in the webocket module stops workng -- we need a solution for this

@jimdebeer I don't get errors on the bundling phase of webpack. The only error I get is the one I placed above. Is that the problem ?

thats the problem, try running it without and with babel

problem is nested modules that don't need parsing -- we need a way to check for this is guess, browserify has this nice transformers field for it -- else ignore it, but we can think of something perhaps -- we can also build a blacklist in vpack although thats my least favourite solution
also read up on https://gist.github.com/substack/68f8d502be42d5cd4942 this pretty much puts the finger in the open wound

@jimdebeer There is a way to ignore modules in webpack. I can export that to vpack

yeah its a bit of shitty solution though -- we have to add every npm module that will fail in this way to that ignore field, its also not that i don't need to module in the build right? it just that i cant have it in the wpack babel loader since it messes everything up

It's also possible to ignore modules for specific loaders, but it will include them on the build

ok is it possible to try to find a better solution first? this is the worst solution we have ofc

example what we can do is read out the browserify transforms fields and map them to wepack loaders -- this way we can replace stuff later -- but i think this is pretty much nessecary and will increas your speed as well

"browserify": {
    "transform": [ "brfs" ]
  }

read this from hte pckg.json

@youzi what do you think?

no more vpack!


safety fails on prompt-toolkit

safety version: 2.2.0
Python version: 3.6.15
Operating System: Ubuntu 20.04

Description
We are running "safety check" on our minimum constraints file.
Since today, this fails only on Python 3.6 with our minimum package levels.
Using the "--debug" option of safety, the traceback and error message is as follows:
2024-01-11 20:37:38,176 safety.cli => Unexpected Exception happened: 'prompt-toolkit'
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/safety/cli.py", line 146, in check
    params=params)
  File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/safety/util.py", line 601, in new_func
    return f(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/safety/safety.py", line 336, in check
    for data in get_vulnerabilities(pkg=name, spec=specifier, db=db_full):
  File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/safety/safety.py", line 229, in get_vulnerabilities
    for entry in db[pkg]:
KeyError: 'prompt-toolkit'
Unhandled exception happened: 'prompt-toolkit'

Link to GIthub Actions workflow run for this issue: https://github.com/zhmcclient/zhmc-ansible-modules/actions/runs/7494205584/job/20401604268?pr=874
The minimum-constraints.txt file does specify the prompt-toolkit package.
This started happening today and it is reproducable. On a second run where I enabled the "--debug" option of safety, it happened on most (but not all) Python versions where we use minimum package levels (Python 3.6, 3.9, 3.11): https://github.com/zhmcclient/zhmc-ansible-modules/actions/runs/7494205584
The full output of that safety command with the --debug option is attached in the comment below.
This did not happen before today. I could not find new releases of Python packages that might be related to this (e.g. safety, prompt-toolkit, click).
A third run where I increased the version of safety to 2.3.4 failed with all Python versions where we use minimum package levels (Python 3.6, 3.7, 3.9, 3.11, and safety 2.3.4) and on Python 3.11 and 3.12 with latest package levels (and safety 2.3.4).
So it got worse with every retry :-(
We cannot use safety 2.3.5 because it pins "packaging" to <22.0.
Just a guess: Is there something wrong with the prompt-toolkit package in the safety database?
What I Did

Clone the https://github.com/zhmcclient/zhmc-ansible-modules repo
In a new virtual python env on one of the Python versions mentioned above, run: PACKAGE_LEVEL=minimum make safety for using the minimum package levels, or make safety for using the latest package levels.
This runs:
safety --debug check --policy-file .safety-policy.yml -r minimum-constraints.txt --full-report

The full log of the safety run with --debug on Python 3.6 with minimum package levels:
safety-2.2.0-issue.txt

@andy-maier thank you for reporting this, we are looking into this right away.

Hi @andy-maier, thank you for this comprehensive issue report. We have identified the issue and are targeting fixing it in the 3.0.1 release.
This is a caching mismatch issue on our vulnerability databases (safety may be getting the index database from fresh data and the detailed one from the local disk cache). It happens occasionally.


geoselect JS as a jQuery plugin

Do not merge this branch. Additional modifications may follow.

Coverage remained the same at 34.902% when pulling 25ad1aab8788653a68f35ac86896ddede6a0c398 on fedys:#342-jobs-by-mail-modifications into 0197dd642e0f93d615ccac8528cd322596d7c713 on cross-solution:develop.

Coverage remained the same at 34.902% when pulling e445fa51a0a88394fce1d15fa3d32d5572a47a33 on fedys:#342-jobs-by-mail-modifications into 0197dd642e0f93d615ccac8528cd322596d7c713 on cross-solution:develop.

Coverage remained the same at 34.902% when pulling c83f34e41b22347dfea69340808f01a6e669390a on fedys:#342-jobs-by-mail-modifications into 0197dd642e0f93d615ccac8528cd322596d7c713 on cross-solution:develop.

Coverage decreased (-0.01%) to 34.891% when pulling 24fbeda5c178a040415596b9c7af3781a28be1b0 on fedys:#342-jobs-by-mail-modifications into 0197dd642e0f93d615ccac8528cd322596d7c713 on cross-solution:develop.

Coverage decreased (-0.03%) to 34.891% when pulling 637be34febc7e4130441f3c3a9d6e9f88c827a10 on fedys:#342-jobs-by-mail-modifications into cf72c038b340e603dcedd362d7255a7977060294 on cross-solution:develop.

Coverage decreased (-0.01%) to 34.911% when pulling 8509b06701a6df3040f28878ca1e2920fd41eee9 on fedys:#342-jobs-by-mail-modifications into dfe3147befa85fd1604c3e2d269ace1710c0bdc6 on cross-solution:develop.