AttributeError: 'list' object has no attribute 'float'

I was running the c2q_transfer_learning_ants_bees.ipynb notebook and received an error in the qnet function about an attribute error. I am assuming it is happenning as float point is being applied on a list rather than tensors.
Code that is causing the error:
@qml.qnode(dev, interface='torch')
def q_net(q_in, q_weights_flat):

        # Reshape weights
        q_weights = q_weights_flat.reshape(max_layers, n_qubits)

        # Start from state |+> , unbiased w.r.t. |0> and |1>
        H_layer(n_qubits)

        # Embed features in the quantum node
        RY_layer(q_in)

        # Sequence of trainable variational layers
        for k in range(q_depth):
            entangling_layer(n_qubits)
            RY_layer(q_weights[k + 1])

        # Expectation values in the Z basis
        return [qml.expval(qml.PauliZ(j)) for j in range(n_qubits)]

class Quantumnet(nn.Module):
        def __init__(self):
            super().__init__()
            self.pre_net = nn.Linear(512, n_qubits)
            self.q_params = nn.Parameter(q_delta * torch.randn(max_layers * n_qubits))
            self.post_net = nn.Linear(n_qubits, 2)

        def forward(self, input_features):
            pre_out = self.pre_net(input_features)
            q_in = torch.tanh(pre_out) * np.pi / 2.0

            # Apply the quantum circuit to each element of the batch and append to q_out
            q_out = torch.Tensor(0, n_qubits)
            q_out = q_out.to(device)
            for elem in q_in:
                q_out_elem = q_net(elem,self.q_params).float().unsqueeze(0)
                q_out = torch.cat((q_out, q_out_elem))
            return self.post_net(q_out)

Error Message:
Training started:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-39-efc42279baeb> in <cell line: 1>()
----> 1 model_hybrid = train_model(model_hybrid, criterion, optimizer_hybrid,exp_lr_scheduler, num_epochs=num_epochs)

5 frames
<ipython-input-33-2b46b36c83e0> in forward(self, input_features)
     14             q_out = q_out.to(device)
     15             for elem in q_in:
---> 16                 q_out_elem = q_net(elem,self.q_params).float().unsqueeze(0)
     17                 q_out = torch.cat((q_out, q_out_elem))
     18             return self.post_net(q_out)

AttributeError: 'list' object has no attribute 'float'

Can someone help me fixing this error?

Hey @sleepingcat4, could you tell us what version of PennyLane you're running (you can just print qml.about())? This repo runs on a very old version of PennyLane (0.7.0 — we are currently on 0.31.1).

I am using PennyLane version: 0.31.1

thanks for reference, it worked and my issue is resolved!

I though I had fixed it but unfortunately I am geetting the error: AttributeError: 'list' object has no attribute 'float' again. It turns out while I was running it on colab, though I had restarted my runtime, it used version 0.7.0 to execute the training process.
I had earlier installed version v0.7.0 to test but installed the latest immediately afterwards as v0.7.0 didn't have device plug-in pre-packed. Can you please help me in resolving this error?
@isaacdevlugt

Hey @sleepingcat4, I'm having some issues getting this notebook to run on my machine due to how old it is 😅. I'll need to investigate this further. Sit tight and I or one of my colleagues will respond this week.

Hi @sleepingcat4  😄
The problem here is in q_net when returning this list:
return [qml.expval(qml.PauliZ(j)) for j in range(n_qubits)]
In this case the Qnode is returning a list instead of a Tensor. To solve this, I would put:
q_out_elem = torch.Tensor(q_net(elem,self.q_params)).float().unsqueeze(0)
within the forward method of the Quantumnet class.
From my point of view this is not expected behavior so I will let the team know so that they can keep it in mind and change it if they think it is appropriate 😊


what should I do when i want to add some prompt?

Now,i want to add some prompt to the frame. what should i do? example:wo want the LLM communicate with me using Chinese Language,so i want to add a prompt "请用中文回答我". where  should i do write the prompt ?

You may consider adding it to the planner's prompt.

thanks for your reply, but  how can i add it to the planner`s prompt?
I don't want to manually type "请用中文回答我" at the beginning of each session.

You can find it here


Add forges.csv: map domains to forge names

See https://github.com/DISIC/politique-de-contribution-open-source/issues/162
First step. csv seems good enough right now, no need for yml. We may want to store the version number in another column.

This PR should be done in the other repo https://github.com/etalab/data-codes-sources-fr


Implemented CreateFolder action and context menus

This is a work in progress, please do not merge yet.

I'll leave this here if you want to review @david-poindexter but it is a bit huge as it also implemented all the context menu and permissions architecture. I'll merge before I next need to work on the next action


A rendering issue of destructurs

Current haddock head of ghc-9.2 branch (041385bc43f0b99d26077787eb8ed9e394766438) renders toLazyTMVar defined by:
newtype StrictTMVar m a = StrictTMVar { toLazyTMVar :: LazyTMVar m a }

as
$sel:toLazyTMVar:StrictTMVar

certainly the inner part of the link should just be toLazyTMVar

You're right it has DuplicateRecordFields turned on which implies DisambiguateRecordFields.


command is using wrong version

To enable istio envoy injection, the label should be updated from 1-17 to 1-18
kubectl label namespace default istio.io/rev=asm-1-17
to
kubectl label namespace default istio.io/rev=asm-1-18
[Enter feedback here]

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

ID: 31367f47-0d71-8b44-ca40-e2b1c7cf3d16
Version Independent ID: 627b0d0f-0d38-e529-2e52-30823cf0008f
Content: Deploy Istio-based service mesh add-on for Azure Kubernetes Service (preview) - Azure Kubernetes Service
Content Source: articles/aks/istio-deploy-addon.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: shasb

@raddaoui
Thanks for your feedback! We will investigate and update as appropriate.

@raddaoui
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


Improve UI of the App

Problem
The current UI of the app lacks responsiveness, leading to suboptimal user experiences on different devices. Elements like buttons, forms, and lists do not adapt well to varying screen sizes, and the overall design feels outdated.
Suggestions

Dark Theme:

Adopt a visually appealing and consistent dark theme throughout the app to enhance aesthetics and readability.

Spacing and Padding:

Increase spacing and padding between elements to improve readability, particularly in forms and lists.

Responsiveness:

Ensure all UI components (buttons, forms, modals, etc.) adapt seamlessly to various screen sizes, including mobile, tablet, and desktop.

Typography:

Implement a clean and readable font.
Optimize font sizes for headers, subheaders, and body text to improve clarity and consistency.

Interactive Elements:

Add hover effects for interactive components like buttons and links.
Introduce subtle animations (e.g., modals, tooltips) to improve interactivity and user engagement.

Screenshots
Current UI Screenshots
1. Book Review App

2. Add New Book

3. The Pragmatic Programmer Book Details

Open Source Contribution
We welcome contributions from the open-source community! If you'd like to contribute:

Feel free to suggest design mockups or themes.
Fork the repository, work on the suggested improvements, and submit a pull request.
Leave a comment here if you have any questions or need clarification.

Your help in improving the app's UI will be highly appreciated!

Any design suggestion will be highly appreciated


Select the text inside brackets like (Ctrl+alt+B) in Notepad++

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
Like in Notepad++, select the values inside the brackets using Ctrl+alt+B would be helpful to select if there is long lines inside the bracket.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@LokeshTamil Hi, I agree that this will be a good feature. We will see if it can be implemented in the future.

similar to #17723


[VM] Allow specifying additional ports to expose when creating a VM

Thanks to #1982, the az vm open-port command provides a simple solution for managing a VM's open ports, however, it would be nice if this could also be achieved as part of the az vm create command, by adding a new flag that accepts a list of ports to open on the underlying NSG.
This command already allows automatically exposing the right port for SSH/RDP access, and it would be a nice addition to also open more ports in a declarative way, without needing to use an additional command (either vm open-port or network nsg rule create) in order to satisfy simple scenarios (e.g. spinning up a web server VM that will always need port 80 exposed).
az vm create -n <name> -g <group> --image UbuntuLTS --expose-ports 80

I would argue that VM create is already complex enough. This would run into the same problems that happened when I tried to make vm open-port accept a list of ports--namely, there is no good heuristic for specifying the priority and each inbound or outbound rule must have a different priority.

@tjprescott I fully agree, and could appreciate that argument. I just wanted to open this for discussion. The fact that vm create was enhanced to allow provisioning entirely new data disks made it seem reasonable to me to also "allocating" exposed ports as part of the operation as well.
Users could obviously run az disk create before hand, or az vm disk attach afterwards, but being able to declare what you want for your VM in a single operation, without caring about the individual steps needed to achieve it, is really nice. It seems like exposed ports fall into a similar category of commonly used resources for a VM.
But I agree this command is getting large, so I respect your team's judgement here.

There are couple exceptions, but the principal of exposing options from VM create are like following:

All required so VM can boot
All required you can remote connect to it
All required that can only be done on create such as the custom data
Lots of people ask for it.
For this issue, it doesn't fall into the above list, hence debatable.
At the same time, considering VM create is essentially a builder on a json formatted template, maybe we can expose the pipeline, so users can pass in a general setter for extra settings.

Cleaning u old issues, reopen if this is still active.


⚠ ClamAV has degraded performance

In b6c4426, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 66 ms

Resolved: ClamAV performance has improved in e183bd8.


Redirect not working on scripts loaded by another script

I'm attempting to use this extension to do local development work by redirecting the address our script gets hosted at to my localhost dev server.  The code runs inside a NextJS module federation so it needs the context of the entire website to work properly.  This works great in Chrome with the Redirector plugin, and I hoped that this would do the same thing in Safari, but it doesn't seem to even try to load from localhost, it just loads our deployed code with no errors.
Addresses changed for privacy, but otherwise, here is the Redirector export json output:
{
    "createdBy": "Redirector v3.5.3",
    "createdAt": "2024-04-09T18:04:30.486Z",
    "redirects": [
        {
            "description": "Localhost",
            "exampleUrl": "https://project.example.com/remoteEntry.js?cb=862.8932411336993",
            "exampleResult": "http://localhost:3030/remoteEntry.js?cb=862.8932411336993",
            "error": null,
            "includePattern": "https://project.example.com/*",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "http://localhost:3030/$1",
            "patternType": "W",
            "processMatches": "noProcessing",
            "disabled": false,
            "grouped": false,
            "appliesTo": [
                "stylesheet",
                "script",
                "image",
                "xmlhttprequest"
            ]
        }
    ]
}

vs Redirect Web's export:
{
  "appVersion" : "5.1.1",
  "bundleID" : "io.github.mshibanami.RedirectWebForSafari",
  "createdAt" : "2024-04-09T18:09:48.106Z",
  "kind" : "RedirectList",
  "redirects" : [
    {
      "captureGroupProcesses" : [

      ],
      "comments" : "",
      "destinationURLPattern" : "http:\/\/localhost:3030\/$1",
      "exampleURLs" : [
        "https:\/\/project.example.com\/remoteEntry.js?cb=862.8932411336993"
      ],
      "excludeURLPatterns" : [

      ],
      "isEnabled" : true,
      "kind" : "Redirect",
      "sourceURLPattern" : {
        "type" : "wildcard",
        "value" : "https:\/\/project.example.com\/*"
      },
      "title" : "Localhost"
    }
  ]
}

I don't see any options analogous to the "Applies to" field in Redirector. Is it even parsing requests made by one script to fetch another script?  The example URL and resulting modification look correct, but it just isn't working at all.

Hi @ardunster, this extension currently only supports redirection for a main window because Safari doesn't provide Web Extension API that Redirector uses in other browsers. (I guess that's why Redirector doesn't support Safari.)
On the other hand, Apple provides declarativeNetRequest API for this purpose, but Safari's implementation is broken: https://github.com/mshibanami/DeclarativeNetRequestIssue
I already sent Apple the bug report (FB13251357) last year, but there has been no response.
But I've been thinking of adopting this API anyway. I'm currently working on another feature, and once I release it, I will continue to work on that.

Thanks for the answer.  For this purpose I ended up actually using a built in Safari Developer Tools feature, Local Overrides. If the extension gets updated to work like this in the future though it may be more convenient to pass around a config file!

Ah, Thanks for sharing it with me. That's great to know.
Although your issue has been solved, yes, implementing this functionality would benefit many users. In fact, I have already received feature requests from a few users via email.
I will reopen this issue so that you and other users can track the progress.
Thanks!

Progress: In FB13232043, Apple replied to me that the related changes were submitted to Safari and WebKit. They will probably appear in the next release notes of Safari Technology Preview or something.

OK, I've released a new version 7 a few minutes ago, which includes support for the new DNR (Declarative Net Request) type.
@ardunster Would you mind taking another look if you have time? Thanks!

I will try to remember to check it out at work next week!

I'm closing this issue now. Please feel free to reopen it if you encounter any problems.


Resolve approach for JSON path and dots in key names

Is your feature request related to a problem? Please describe.
How do we want to support both of these requirements:

Providing a JSON-path structure for accessing fields within events
Allowing fields to contain dots in the name e.g. my.field.

Raised by this question:
https://github.com/opensearch-project/data-prepper/pull/435/files#r732111116

Do we properly handle accessing an item in an array? e.g. foo.bar[5] = "f"
{
  "foo": {
    "bar": ["a", "b", "c", "d", "e", "f"]
  }
}

Do we properly handle accessing an item in an array? e.g. foo.bar[5] = "f"
{
  "foo": {
    "bar": ["a", "b", "c", "d", "e", "f"]
  }
}

Not at this moment, but it is a good point and something we should consider when making this decision.


Installing Issues

I've followed all the instructions on how to install, but when I type kissanime-dl into cmd it says
'kissanime-dl' is not recognized as an internal or external command,
operable program or batch file.
Am I doing something wrong? Please help me, thanks !

Can you give me some specs? What version of python are you using, and what is the OS?

closing due to long inactivity.


As a CIF administrator, I want to see the AnnualReports on the project view page, so that I can get information about them

Description:
Adding the annual reports form to the project view page.
We can base the UI look based on what was already done for the other read-only forms, and add the same visual cues about reporting requirement status than in the wireframes.
Acceptance Criteria:
Given that a project_revision that includes a annual report is committed
When I visit /cif/project-revision/<projectRevisionId>/form/annual-reports
Then

The form is displayed with readonly theme
There is an Edit button in the top-right corner
The form submit button is not displayed
The TaskList is displayed in view mode

Given that I am viewing a committed annual report
When I click the Edit button
Then a new project revision is created, and I am redirected to the form matching the one I was viewing
Development Checklist:

[ ]  The view page shows the annual report details
[ ] Meets the DOD

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

Hey team! Please add your planning poker estimate with ZenHub @BCerki @dleard @gurjmatharu @matthieu-foucault @mikevespi @Sepehr-Sobhani

Thank you @BCerki ! Meets acceptance criteria.


docs(event-bus): document closure-based listeners

This adds documentation for the feature added by https://github.com/tempestphp/tempest-framework/pull/540.

Thanks!


Please provide examples for connecting accross Azure AD tenants

Need example for connecting to different Tenant/Subscription

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

ID: 25c87883-1e32-6383-9d21-306f91406ba6
Version Independent ID: ba6f8deb-cbfc-bf07-2bc8-26f5e6145859
Content: Create an Azure private link service using Azure PowerShell
Content Source: articles/private-link/create-private-link-service-powershell.md
Service: private-link
GitHub Login: @KumudD
Microsoft Alias: kumud

@artisticcheese , Thank you for your feedback. We will investigate and get back to you shortly.

@artisticcheese, do you mean you need to create an Endpoint in one tenant and service link to another tenant ?

Yes, that's one of the things which advertised use case when ISV provides services to external clients with no connectivity between subscriptions/tenants.

@artisticcheese , It is similar to linking the service to the endpoint which is present in the same tenant.
Once the Links service is created, you execute the below command to get the object:
$privateLinkService=Get-AzPrivateLinkService -Name $plsName -ResourceGroupName $rgName
In the consumer end, i.e in different tenant, when you create link service connection, you need to use the resource ID of link service which you created in the provider end.
$plsConnection= New-AzPrivateLinkServiceConnection `
-Name plsConnection `
-PrivateLinkServiceId  $privateLinkService.Id

As long as you have permission/ authorization, you should be able to create private link service connection.
Let me know if you have any further questions.

@artisticcheese , Do you have any update on this issue?


Sorting new feature

I found a bug when I do a sorting based on date, it doesn't sorted out right because it's sorted based on string.. I manage to made a workaround by adding new option which is
sortableType
the default value would be "string" but it could be a date as well.. and also I remove the sorting case sensitive by converting all the strings into lower case
I reallly hope this helps you Jos ! and please review my code if you have time and see if I missed something :)

Good point, thanks. The sorting now always orders by string value. I think your solution is nice but we can implement a more generic solution by allowing people to provide their own comparator. This allows you to create a custom compare function for every sort of data, not just number, string, and Date. It should be possible to configure a comparator for each individual column.
As for your specific use case: it may be better to provide the date dateEnter as a timestamp or ISOString, and use a format function to display it in a form like "30 Nov, 2015".


":verbose pwd" to print the scope of current directory

Hi @brammool .
Sometimes I want to know the scope of current directory, to know which the path comes from.
How do you think?

Oops, I forgot to write about example.
This PR introduces :verbose pwd output like below (current directory = /path/to/dir).
Tab-local (:tcd)
:verbose pwd
[tabpage] /path/to/dir

Window-local (:lcd)
:verbose pwd
[window] /path/to/dir

Global (:cd)
:verbose pwd
[global] /path/to/dir

Codecov Report

Merging #5469 into master will decrease coverage by <.01%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master    #5469      +/-   ##
==========================================
- Coverage   82.85%   82.85%   -0.01%
==========================================
  Files         134      134
  Lines      147808   147953     +145
==========================================
+ Hits       122471   122582     +111
- Misses      25337    25371      +34

Impacted Files
Coverage Δ

src/ex_docmd.c
83.83% <16.66%> (-0.12%)
:arrow_down:

src/ui.c
71.12% <0%> (-1.2%)
:arrow_down:

src/os_unix.c
63.32% <0%> (-0.23%)
:arrow_down:

src/gui.c
63.43% <0%> (-0.16%)
:arrow_down:

src/cmdexpand.c
81.53% <0%> (-0.13%)
:arrow_down:

src/textprop.c
88.28% <0%> (-0.05%)
:arrow_down:

src/terminal.c
81.81% <0%> (-0.04%)
:arrow_down:

src/if_py_both.h
76.77% <0%> (-0.03%)
:arrow_down:

src/map.c
76.72% <0%> (ø)
:arrow_up:

... and 20 more

Continue to review full report at Codecov.

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

That can be useful.  Please add a test that after a sequence of cd/lcd/tcd commands the right message is printed.

@brammool Okay. Added tests and help.

Unrelated tests seems failed.
https://travis-ci.org/vim/vim/jobs/636706074?utm_medium=notification&utm_source=github_status


Results different between x86 and AVX implementation?

Hi,
we're seeing different results / features detected in v0.9.20 depending on whether we set STD_CFLAGS to x86-64 or broadwell.
We're using covdet feature detection + sift featue descriptors.
Is it expected that the AVX and non-AVX implementations give different results?
Thanks!

we're actually not sure now if we were using the sse2 versions of the avx versions.
more worryingly, we are getting better results with avx/sse2, although that might be a red herring

actually, it seems like AVX is a red herring -- the difference between x86-64 and broadwell is there even disabling AVX/SSE2 and even OpenMP explicitly

With gcc (GCC) 5.4.0, results are different between x86-64 and haswell.
With clang 3.9 they are not.

it turns out the results were different because of gcc's liberal use of fused multiple and add. on clang fma is turned off by default.

We have figured out now what the problem is.
Architectures >= haswell have FMA (fused multiply-add) instructions that do combined floating point multiplication and addition with higher precision.
That's why floating point results can differ.
GCC turns it on by default if the -march is given, clang doesn't.


Rather Large Documentation Review™

I'm leaving scarily soon. This is an update of the dev docs based on what I know about GOV.UK. There's a lot of deletions because things aren't relevant any more.

Remove section on router-data
This is now properly retired - it's best not to advertise it as an option

What do you mean by properly retired here?


Automatically reduce crossing number

I want to use Draw.io as a mind mapping tool. Unfortunately as I add more thoughts to a diagram I inevitably want to connect nodes that are located far apart from one another. This means I need to rearrange the entire diagram which takes forever. If I don't rearrange the diagram things get very messy very fast:

It would be great if Draw.io could somehow automatically rearrange the nodes in my diagram in order to make it tidier. I realize that graph drawing is an open area of research, and I think this is mostly an unsolved problem. Still, I think there might be ways to partially automate this. I believe there are known ways to reduce a graph's crossing number, for instance. I think the algorithms that Graphviz uses might be pretty close to state of the art: https://stackoverflow.com/questions/19245350/graphviz-dot-algorithm Maybe draw.io could offer a menu that allows users to apply various layout algorithms to their graph?
Unfortunately I don't know enough about the field to comment on the feasibility of automatic layouts. Maybe you guys could hire a mathematician specializing in graph theory to help out here? Just a thought.

Oh... the layout menu I descirbed already exists, I just never realized it until now. 🤦♂
None of the options produce great results though... I guess that means there's just no way to do this?


Move to app deployment

This is not working except for the ingress issues with deck and hook.

@giantswarm/team-ludacris PTAL - I want to merge here soon. Already a lot of changes and having smaller PRs would be nice :D

Going with this - feel free to still leave comments. I will continue with smaller PRs today.


[BB] - Add endpoint to get posts by user id.

@Ivanochko @SerhiiKlymchuk @MrZenik @vanya706
Usage of filter:
Endpoint:
GET http://localhost:8080/api/posts/filter
Body:
{
    "title": "Title",
    "users": [1, 3],
    "categories": [2]
}

No one value is required!


AVT3 fail to open link in data table with JAWS active

AVT3 fail to open link in data table with JAWS active, but it is working fine AVT2(tab and Enter without JAWS)
When tab to link in data table, it supposes to open link instead of make checkbox selected when JAWS active. (Below is screen when before enter is hit.)

This needs to be fixed by the product team that has implemented this. We only support an overflow menu as the last item.


Add support remoteAddress - real IP header

Hello, please add support for real IP header from proxy in logs (remote-addr', req.headers['x-forwarded-for'])
I'll try proxing from nginx to redis-commander and see only:
redis-commander    | Login success for user admin from remote ip <IP_ADDRESS> redis-commander    | Login success for user admin from remote ip <IP_ADDRESS>

New version (github or docker image) does support this, e.g:

cli param "--trust-proxy 1"
setting env var "TRUST_PROXY=1"
config file key "server.trustProxy"

Either set this value to a boolean-like value (1, true) or to a string with ip addresses of proxies to trust and not use as remote ip addresses. For more information of possible values please check the Node Express documentation at https://expressjs.com/en/guide/behind-proxies.html

thanx, now it's work.


php-version parameter is not respected on 8.3.x

Describe the bug
Whenever I put an 8.3.x version, the action always tries to install 8.3.3 instead of the given one, causing an issue.
Version

[x] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
[x] v2
[ ] v1

Runners

[ ] GitHub Hosted
[x] Self Hosted

Operating systems
Amazon Linux
PHP versions
8.3.1
To Reproduce
           - name: setup php
              uses<EMAIL_ADDRESS>              with:
                  php-version: '8.3.1'
                  extensions: ${{ env.PHP_EXTENSIONS }}
              env:
                  runner: self-hosted

Expected behavior
setup-php should install 8.3.1
Screenshots/Logs

Additional context

Are you willing to submit a PR?

Patch versions are not supported, also Amazon Linux is not supported.


3.0 update: Mention it requires Sdk="Microsoft.NET.Sdk.Web"

With Sdk="Microsoft.NET.Sdk" in the csproj it doesn't work.

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

ID: 41a1e05b-c19d-6933-92fc-4c100340504f
Version Independent ID: d72414f7-2c53-53a7-1def-428160792a90
Content: Use web API analyzers
Content Source: aspnetcore/web-api/advanced/analyzers.md
Product: aspnet-core
Technology: aspnetcore-webapi
GitHub Login: @pranavkm
Microsoft Alias: prkrishn

That's not surprising.  All the 3.0 templates use <Project Sdk="Microsoft.NET.Sdk.Web">

That's not surprising. All the 3.0 templates use

Does the doc mention that it requires a templated project? What about using it with a library project? Microsoft.NET.Sdk.Web is not otherwise necessary/required.

https://github.com/dotnet/aspnetcore/issues/14675


Abstractions and core libraries tooling - CSharp

In order for us to move with confidence to GA, we need better tooling for
the abstraction and core libraries. This includes:

[x] doc comment for all the things that are not already commented in the abstraction libs (constructors, static things, not implementing/inheriting...)
[x] unit tests for the libraries
[x] cobertura reports generation
[x] udpate the readmes to remove the tasks
[ ] #572

Closing this for now. Static analysis will be covered by #572


Where's the data stored?

I'm using docker to use jsonhero-web, while I want to use -v to mount and sync the data file or folder, but anywhere to be found.

According to this comment
they "use Cloudflare Workers as the host and Workers KV as the storage for either the raw JSON contents or the URL you submit"


When opening the right-click context menu on Gnome, it closes immediately if there is an option under the mouse

Does this issue occur when all extensions are disabled?
No, but only because the number of options in the right-click menu isn't enough to cause it to render below the mouse.

VS Code Version: 1.77.3
OS Version: Fedora 37 (Gnome 43)

Steps to Reproduce

Have enough extensions enable to make the right-click context menu take up the majority of the screen
Right click somewhere in the middle of the file

Expected results
The right-click context menu opens and I am able to click my desired option immediately.
Actual results
Due to the mouse being at the centre of the right-click menu when it opens, the lifting of the right mouse button causes the menu item below the mouse to be immediately chosen. See the position of the mouse in the menu in the screenshot below, and observe that the "Rename symbol" option is highlighted.

This means that as soon as I release my mouse, that selection will be chosen immediately, which is extremely frustrating, and potentially destructive if my mouse happens to be over a difficult-to-undo operation (eg a permanent file deletion when working on a remote machine through SSH).

Almost certainly a duplicate of #113175

Looks like it


TypeError: argument of type 'NoneType' is not iterable test_apache_tomcat

        data = requests.get(url).content
        soup = BeautifulSoup(data, features="lxml")
        for tag in soup.find_all("a"):
            link = tag.get("href")

>           if "security-" in link and any(char.isdigit() for char in link):
E           TypeError: argument of type 'NoneType' is not iterable

vulnerabilities/importers/apache_tomcat.py:141: TypeError

Is this issue still open? I want to solve this.

@nikkuAg thanks for chiming in, sure go ahead. The underlying issue is that this test is not mocked https://github.com/nexB/vulnerablecode/blob/main/vulnerabilities/tests/test_apache_tomcat.py#L339. Please mock this test with an HTML.

@TG1999 Can you please elaborate on what do you mean by mock the test with HTML response?

@nikkuAg Have a look at this article which simply explains  mock external API calls
https://pytest-with-eric.com/pytest-advanced/pytest-mocking/#Mock-External-Rest-API-Calls

So, instead of updating the test_apache_tomcat.py file, we should add error handling in the apache_tomcat.py file.

So, instead of updating the test_apache_tomcat.py file, we should add error handling in the apache_tomcat.py file.

@nikkuAg No , we need to add a new mock test in test_apache_tomcat.py file  , no need to add error handling in the apache_tomcat.py file.


fix: remove url validation

Removes url validation as wait-on allows to wait on resources like http-get://localhost:8000/foo or tcp:4000 or file1.
See https://github.com/jeffbski/wait-on#nodejs-api-usage

thank you for this @Manduro


help wanted with trying to setup a wrapper function for encrypting/decrypting const char* values

I'm trying to setup a wrapper function to make it easier to use this library in a project of mine but I'm sorta running into 2 main issues.
Issue 1 is I can't seem to find a way of converting a const char* into a uint8_t array.
Issue 2 is that I can't seem to figure out what the decrypt/encrypt functions output in order to store it in the output variable so that I can return a decrypted const char* value to the rest of my project.
This is the current wrapper function I have, any way I can get these 2 issues fixed?
static const char* crypt_wrapper(int mode,const char* key,const char* string){
	//int mode - should we decrypt or encrypt the string?
	//const char* - the key used for decrypting/encrypting the string
	//const char* - the string we want to decrypt/encrypt

	const char* output;
	uint8_t formated_key[1] = {};
	uint8_t formated_string[1] = {};

	struct AES_ctx ctx;
	AES_init_ctx(&ctx,formated_key);

	if(mode == 1){
		output = AES_CBC_encrypt_buffer(&ctx, formated_string, sizeof(formated_string));
	}else{
		output = AES_CBC_decrypt_buffer(&ctx, formated_string, sizeof(formated_string));
	}
	return output; // the string we return after encrypting/decrypting it
}

Hi @VaasKahnGrim

uint8_t is usually a typedef for unsigne char. Your const char* points to an array of chars -> the conversion should be a matter of casting.

I quote from the readme: "No padding is provided so for CBC and ECB all buffers should be multiples of 16 bytes.". Your key and strings are not multiples of 16 bytes -> they are only 1 byte.

I will close this issue since it's not a bug in this library. This question is better suited for a Q&A-site like stackoverflow.com or something similar

if I have to keep the string and the key in a multiple of 16 do you have any recommendations for dealing with much larger amounts of data being encrypted/decrypted? say 10mb worth in size for a string?
trying to basically encrypt data being opened from files here but its sounding like tiny-aes-c won't even be able to fill that role here

You can encrypt or decrypt an arbitrary amount of data, but you need to work on a multiple of 16 bytes at a time.
Again, this question is much more suited for stackoverflow.com


Update CLDR to 31

ref https://github.com/yahoo/formatjs-extract-cldr-data/pull/13

In CLDR v30 and v31, many Japanese sentences are corrected.

👍
@gyehuda @redonkulus I need access to this repo.


[TC-320] cache url config parameters not created at the Mid Caches

From GH issue https://github.com/Comcast/traffic_control/issues/1743:
We created a new delivery service and used the Cache URL expression. The parameters got created for Edges, but not for the Mids. Thus making ORT and ATS complain.
Author: Steve Malenfant
JIRA Link: https://issues.apache.org/jira/browse/TC-320

cache url has been deprecated.


Sgds 483 documentation

Create Installation , Usage guide via md files for storybook
Use gulp to combine them to form one continuous README file on github
-when adding new documentation stuff, dont edit README file directly. Edit the .md files in docs folder  and run `npm run build:readme"
Cleanup the storybook mdx components files: remove import statements, add custom element tag names in the title section
renaming of some components to adhere to naming convention

<EMAIL_ADDRESS>
urgh npm
https://overreacted.io/npm-audit-broken-by-design/
https://stackoverflow.com/questions/68589798/what-exactly-do-i-do-about-gulp-4-0-2-dependency-vulnerabilities


Streamline Benchmark User Guide IA

Description
Describe what this change achieves.
Issues Resolved
Closes #[insert issue number]
Version
List the OpenSearch version to which this PR applies, e.g. 2.14, 2.12--2.14, or all.
Frontend features
If you're submitting documentation for an OpenSearch Dashboards feature, add a video that shows how a user will interact with the UI step by step. A voiceover is optional.
Checklist

[x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@IanHoang: Here's a complete consolidation of the Benchmark user guide. Let me know if you have any questions.

Relates to https://github.com/opensearch-project/opensearch-benchmark/issues/663


DefaultGrantStore RemoveAsync hides grants possibly leaking out of defined policies

As discussed in #1634 the DefaultGrantStore's delete method RemoveItemAsync(string key) calls the underlying store Store.RemoveAsync(string key) and suggests it always goes well (no exceptions nor validation checks it exists). Looking at the EntityFramework implementation (one others will use as a reference implementation) this is very much the case, as seen in the method here: https://github.com/IdentityServer/IdentityServer4.EntityFramework/blob/dev/src/IdentityServer4.EntityFramework/Stores/PersistedGrantStore.cs#L106
It could be interesting to create this contract stronger. For example, there could be an extra method VerifyExistsAndRemove that follows most of the same logic, except it does not capture any exceptions and throws if it doesn't exist.
Another method could be to create Task<bool> TryRemoveAsync(string key) and not have any other Remove method, making it obvious that the action can fail and forcing the logic for how to handle this at a higher level.
The current way exposes failures everywhere a specific PersistedGrant would be deleted as any DbUpdateConcurrencyException error is swallowed and (for example) null values (as with #1634) and other bugs higher up can cause the PersistedGrant's behavior to fall outside of defined policies.

I guess I'm missing something -- what would the calling code do if this new TryRemove API returned false?

So this originated from the the #1634 bug where something should have been deleted but wasn't, and it did not notify callers of the Remove method. This caused refresh tokens to stay valid because the code deleting them never had any clue it failed.
Making this an explicit contract (a remove can fail or succeed) makes it something exceptions can be thrown for (Your one time use refresh token could not be deleted). There are other places the Remove method is used and certainly for PersistedGrants it seems applicable to be very careful with this.
So it'd make it an explicit decision to ignore or handle a false return, not an implicit ignore of a failed remove.

Reassigning to be part of the RT rework.

Reviewed and given that the original issue was solved, it's unclear if this is still needed.


dummy change

Coverage remained the same at 88.462% when pulling f50b0a4a4d89d10b1440b7f7acf50f3b4184856e on test-circle-build into ce93fd27df0dc6a0f20dfc852e9c72b0364545da on master.

Coverage remained the same at 88.462% when pulling f50b0a4a4d89d10b1440b7f7acf50f3b4184856e on test-circle-build into ce93fd27df0dc6a0f20dfc852e9c72b0364545da on master.

this was just a test - closing.


Lagrange exits if mime hook doesn't "consume" entire input

If a mime hook script doesn't finish reading stdin, Lagrange gets a SIGPIPE and exits.
I set up the following script to play videos, and while it works fine if I play through to the end, Lagrange exits if I stop mpv halfway through the video. Similarly, if I just remove the mpv line completely, Lagrange still just exits.
#!/bin/bash

/usr/local/bin/mpv --fs - >/dev/null 2>/dev/null

echo -e "20 text/gemini\r"
echo "done~"

Just for completeness' sake - this is on macOS 11.0.1, Lagrange 0.12.1.
Probably similar to #89

I'll add a handler for SIGPIPE so this use case works, too.

Running macOS, I couldn't get mpv to read the video from stdin:
[file] Reading from stdin...
 (+) Video --vid=1 (*) (h264 320x240 15.000fps)
 (+) Audio --aid=1 (*) (aac 6ch 48000Hz)
[file] Cannot seek backward in linear streams!
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 1, offset 0x30: partial file
[lavf] error reading packet: Invalid data found when processing input.

However, if I dump the video to a file it plays fine with this:
cat > /tmp/vidfile
/usr/local/bin/mpv --fs /tmp/vidfile >/dev/null 2>/dev/null

echo "20 text/gemini\r"
echo "done playing!"

Hook definition:
Show video via mpv
video/mp4
/bin/sh;/Users/jaakko/mpv.sh

Of course, the current MIME hooks were not intended for handing the file to an external viewer. A separate mechanism for external viewer programs could/should be added.

Closing as SIGPIPE is now dealt with.


No M1 support because GoogleMaps pod < 6.0.1

Bug report

Summary
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/nicholas/git/tenant/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64
This happens when building on an M1 Apple machine without Rosetta
Environment info
"react-native": "0.66.3",
"react": "17.0.2",
"react-native-maps": "^0.30.1",

react-native info output: // The command is actually npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 12.1
CPU: (8) arm64 Apple M1
Memory: 83.73 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK:
API Levels: 25, 27, 28, 30, 31, 32
Build Tools: 28.0.3, 29.0.3, 30.0.2, 30.0.3, 32.0.0, 32.1.0
System Images: android-31 | Google APIs ARM 64 v8a, android-32 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8139111
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_322 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce

Build app on M1 Mac without Rosetta with react-native-maps installed (it uses an old 5.1.0 GoogleMaps pod which uses the old framework) - see https://cloud.google.com/blog/products/maps-platform/announcing-version-60-maps-and-places-sdks-ios
You will see the error
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/nicholas/git/tenant/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64

Describe what you expected to happen:
It should build and run the react-native app under arm64 without Rosetta
Describe what you actually happens:
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/nicholas/git/tenant/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64
See Google's URL with this same error, solution is to use GoogleMaps pod v6 instead of v5.
https://cloud.google.com/blog/products/maps-platform/announcing-version-60-maps-and-places-sdks-ios
Reproducible sample code
Create new react-native app on M1, add react-native-maps, pod install, note how GoogleMaps is 5.1.0 instead of 6.x. Build in Xcode without Rosetta, note how the error is shown.
Please bump the version of the pod dependency. :)

Same here not working on M1 chip.

This is alredy merged. There's no release for it yet though :) See #4061. You could try installing from the master branch.

Working fine 4 me mmhmmmm

@Simon-TechForm will take a look thanks!

I am having the same issue. I am using M1 pro and after installing react-native-maps, I did pod install, and after the project is not building. In error warning, it clearly says that it's expecting x86 architecture but it's linking with arm64. I believe this lib is still not updated for the M1
These are the errors that I am getting.

That is a different issue, make sure you are excluding arm64 for any ios simulator SDK both in your Podfile for your pods and in Xcode for your main targets. Do not exclude for any SDK. That will ruin it.

I am having the same issue. I am using M1 pro and after installing react-native-maps, I did pod install, and after the project is not building. In error warning, it clearly says that it's expecting x86 architecture but it's linking with arm64. I believe this lib is still not updated for the M1
These are the errors that I am getting.

That is a different issue, make sure you are excluding arm64 for any ios simulator SDK both in your Podfile for your pods and in Xcode for your main targets. Do not exclude for any SDK. That will ruin it.

Your solution worked for me as my app project was excluding the arm64 but not the pods project updating it solved the issue

Does anybody know when the next release is scheduled? Cheers :)

@karatekid430 can't give you an exact date, but I'm looking to push a new release relatively soon.
I'm going to close this in favour of #3527 to try and keep the discussion in one place :)

any news? I have the same issue!

Can I ask, what did everyone do to get pod install using google maps to even run right on an M1 Mac?
If I cd ios and pod install with
# React Native Maps dependencies
  rn_maps_path = '../node_modules/react-native-maps'
  pod 'react-native-google-maps', :path => rn_maps_path

it will not even finish the pod install

For the unfortunate few that might end up here. I advise you to read this article, for the lazy ones you should update your podfile postinstall script to this one:
  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

     # Add these three lines down below -----------------------------------------------
     installer.pods_project.build_configurations.each do |config|
       config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
     end
     # --------------------------------------------------------------------------------
  end

Some background, I was upgrading my project to the latest react-native version on the new M1 MacBook, recreated ios directory with npx react-native init ... and encountered with this issues while configuring react-native-maps, this issue is still valid one these package versions and is resolved with the above solution:
...
    "react": "18.0.0",
    "react-native": "0.69.0",
    "react-native-maps": "0.31.1",
...

    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

     # Add these three lines down below -----------------------------------------------
     installer.pods_project.build_configurations.each do |config|
       config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
     end
     # --------------------------------------------------------------------------------
  end```

I added this post-install but still get errors even trying to do pod install what is the magic trick to complete pod install on an M1 so you can build apps using MAPS on an M1?

Oh I have cleaned and the like 1000 times
If Google maps is in the podfile it wont do pod install on the M1, runs fine on Intel Mac
Auto-linking React Native modules for target `frdrivertrackapp`: RNBackgroundFetch, RNBackgroundGeolocation, RNGestureHandler, RNPermissions, RNReanimated, RNScreens, ReactNativeGetLocation, TextToSpeech, react-native-background-actions, react-native-config, react-native-keep-awake, react-native-maps, and react-native-notifications
Analyzing dependencies
objc[39498]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1df56eb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1042bc2c8). One of the two will be used. Which one is undefined.
objc[39498]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1df56ebe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1042bc318). One of the two will be used. Which one is undefined.

and the error shows
### Error

LoadError - dlsym(0x209519740, Init_ffi_c): symbol not found - /Users/[MACUSER]/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi_c.bundle
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:6:in `rescue in <top (required)>'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:3:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:338:in `download_file'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:284:in `ensure_versions_file_loaded'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:208:in `search'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `select'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `search'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:416:in `create_set_from_sources'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:385:in `find_cached_set'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:360:in `specifications_for_dependency'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:165:in `search_for'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:274:in `block in sort_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `sort_by'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `sort_dependencies'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:53:in `block in sort_dependencies'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:70:in `with_no_such_dependency_error_handling'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:52:in `sort_dependencies'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:746:in `require_nested_dependencies_for'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:729:in `activate_new_spec'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:686:in `attempt_to_activate'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Users/[MACUSER]/.gem/ruby/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `<main>'

If you remove
# React Native Maps dependencies
  rn_maps_path = '../node_modules/react-native-maps'
  pod 'react-native-google-maps', :path => rn_maps_path

from the podfile everything runs fine on the M1, but defeats the point.
My understanding is this has something to do with Google Pods and M1 not being x86, but clearly people have this runing on M1 macs, so trying to figuer out how?

arch -x86_64 pod install

Thank you both of you, I had been googling how to fix this for a bit. for whatever reason it never linked me to the doc @Darapsas referenced.
Because there are so many threads on this I would almost say it might be appropriate to add that post to the readme, or at least the commands.

There seems to be something I am not getting. - I used arch -x86_64 pod install all the time but when I add the package in the podfile it will throw me an error:
/Users/Me/.../ios/myProject.xcodeproj The linked library 'libPods-myProject.dev.a' is missing one or more architectures required by this target: x86_64.
Which in some way makes sense. I am excluding it and it seems google maps package expects it?
Now you guys seem to get it running, can anybody help?

@russmenum did you already find a solution? Whenever I add the line in the podfile the build will fail regardless of whether I follow the other steps or not..

@russmenum did you already find a solution? Whenever I add the line in the podfile the build will fail regardless of whether I follow the other steps or not..

The arch -x86_64 worked for me, but I am not excluding architectures on the M1, so is there a reason you need to exclud?

this helps me. Thank you


Infinite loop for1 actor will hang all  system

For my understanding about actor model, i need 1 actor keep looping to do some task it should not hang the system, other actors should still working and do their job

If you infinitly loop inside an actor, you block one thread of the threadpool. If you infinitly loop in more actors than there are threads in the threadpool, the system hangs because it can't process any other messages.
So it would be better to not infinetly loop inside an actor.
But this is a problem with threadpools and not with the actor model itself.
If you need something that would block, you should move that into another thread, outside of the threadpool.
If you need to do (or check) something repeatedly then you can create an actor and use the pre_start start method to schedule a message every X milliseconds to perform your operation.
e.g.:
#[derive(Debug, Clone)]
enum Message {
    Loop,
    Str(String),
}

// implement the Actor trait
impl Actor for MyActor {
    type Msg = Message;

    fn pre_start(&mut self, ctx: &Context<Message>) {
        ctx.schedule(
            Duration::from_secs(0),      // initial delay
            Duration::from_millis(1000), // time between messages
            ctx.myself.clone(),
            None,
            Message::Loop, // your loop message
        );
    }

    fn recv(&mut self, ctx: &Context<Message>, msg: Message, _sender: Sender) {
        match msg {
            Message::Loop => {
                // do something repeatedly
                println!(
                    "[{}]({:?}) LOOP",
                    ctx.myself().path(),
                    std::thread::current().id()
                );
            }
            Message::Str(s) => {
                // do something with the Str message
                println!(
                    "[{}]({:?}) :: Received: \"{}\", self.value: {}",
                    ctx.myself().path(),
                    std::thread::current().id(),
                    s,
                    self.value
                );
            }
        }
    }
}

This way the actor can still respond to other messages, while repeatedly responding to the scheduled message.

Keeping this open for now because it’s a common occurrence and the explanation and solution provided by @hardliner66 is very good. We’ll get this included in the official docs and close this issue after.


Adding the end-to-end timeout on the client side

Timeout specification has been added for the inference request. Have intentionally left streaming timeout from the python grpc because of a bug in grpc. For streaming RPC, most likely it treats the timeout in milliseconds instead of seconds(even though it is documented as seconds).  Will explore the issue and add it later.

What about the HTTP python client?
The geventhttplib doesn't offer separate request level timeouts.
We already have the logic of specifying the timeouts while creating clients here:
https://github.com/NVIDIA/triton-inference-server/blob/master/src/clients/python/library/httpclient.py#L135-L138


write(&[1u8]) and write_u8(1) yield different hashes

Hello,
this is mostly an API question -
should these two invocations yield the same hash?
I would expect that they would yield the same hash as they do for the DefaultHasher (see here).
use gxhash::*;
use std::hash::Hasher;

fn main() {
    let mut h = GxHasher::with_seed(0);
    h.write_u8(1);
    dbg!(h.finish()); //<PHONE_NUMBER>358324775

    let mut h = GxHasher::with_seed(0);
    h.write(&[1u8]);
    dbg!(h.finish()); //<PHONE_NUMBER>142091921
}

Kind regards,
ambiso

Hello,
This is expected. The reason for this is that for write_u8 (and for some other primitives) we can skip the full construction as we know in advance the size fits entirely in 128-bits, which is the width of the pipe algorithm. This further improves performance in these situations.
[u8] and u8 haven't been considered regarding (claimed) stability, but I understand it can be ambiguous. Maybe it deserves a clarification somewhere in the docs.
As you can see ahash (and maybe other hashers) are doing the same:
use std::hash::{BuildHasher, Hasher};

fn main() {
    dbg!(check(std::hash::RandomState::default())); // true
    dbg!(check(ahash::RandomState::with_seed(42)));  // false
    dbg!(check(gxhash::GxBuildHasher::default()));   // false
}

fn check<BH>(build_hasher: BH) -> bool
where BH: BuildHasher {
    let mut h1 = build_hasher.build_hasher();
    h1.write_u8(1);

    let mut h2 = build_hasher.build_hasher();
    h2.write(&[1u8]);

    h1.finish() == h2.finish()
}


Failing while building all modules of bc-java including bcutil-jdk15to18:1.69 (using gradle build command)

Package artifact id:  bc-java
source code url: https://github.com/bcgit/bc-java/tree/r1rv69
Issue Description: Failing while building all modules of bc-java including bcutil-jdk15to18:1.69 using gradle build command
JDK Version: 1.8
Build CMD: gradle build -x javadoc
MVN Version: 3.9.6
Error Log:
2024-04-18T11:50:25.685+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating root project 'bc-java'.
2024-04-18T11:50:25.685+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not find method testCompile() for arguments [{group=junit, name=junit, version=4.11}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
attachement: build log attached (jdk 1.8)
Failed_jdk_8_gradle_8.txt
OS: windows 10

I have also faced similar exception while using JDK 11 and 17 . I am attaching JDK -11 and JDK -17 logs also here .
Failed_jdk_17_gradle_8.txt
Failed_jdk_11_gradle_8.txt
Please let me know the correct JDK version to be used and also let me know any other requirements to get the build success with test cases.


Refactor: Add helper method to find segments where a predicate is true

We add this helper method to the worker called segment_where which takes care of locking and unwrapping the mutex. It will iterate over the segments and find the first occurrence where the predicate is true.
Dries up code for  get_skip_segment, get_mute_segment, etc.

Great! Thank you!


Preview/1.0.0

:white_check_mark: Build TheIdServer 1.0.2-preview1-0006-0006 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/260638bef9 by @aguacongas)


Error: The Serverless Function "api/index" is 68.16mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

Running into the above error. Steps to reproduce:

Clone example https://github.com/juicyfx/vercel-examples/tree/master/php
Update runtime to<EMAIL_ADDRESS>in vercel.json
Attempt to deploy

This is my first time using Vercel, sorry if I am missing something basic.
Here is the full output from Vercel
[13:58:13.793] Cloning github.com/***************************** (Branch: *************, Commit: *******)
[13:58:16.783] Cloning completed: 2.990s
[13:58:16.938] Restored build cache
[13:58:16.993] Running "vercel build"
[13:58:17.592] Vercel CLI 28.12.7
[13:58:17.782] > Installing Builder<EMAIL_ADDRESS>[13:58:21.951] 🐘 Downloading user files
[13:58:21.952] 🐘 Downloading PHP runtime files
[13:58:21.971] 🐘 Creating lambda
[13:58:22.367] Build Completed in /vercel/output [420ms]
[13:58:28.894] Failed to process build result for "api/index". Data: {"type":"Lambda"}.
[13:58:28.897] Error: The Serverless Function "api/index" is 68.16mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

Forgot to add, my entire project is 11.8 KB, not sure where the "68.16mb" is coming from

Hey Matt,
Check the sources tab in the vercel project to see exactly what files have
been copied.
Prevent unnecessary files by using a .vercel ignore file.
https://vercel.com/guides/prevent-uploading-sourcepaths-with-vercelignore
On Fri, 20 Jan 2023 at 6:09 AM, Matt Mulhall @.***>
wrote:

Forgot to add, my entire project is 11.8 KB, not sure where the "68.16mb"
is coming from
—
Reply to this email directly, view it on GitHub
https://github.com/juicyfx/vercel-examples/issues/113#issuecomment-1397900145,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEHQ6OL6AHEQFCCN33Z3V3WTIFXJANCNFSM6AAAAAAUBCZJYM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Roland Ihms
mobile :+264 81 886 3437
Solutions to your web problems
Please consider the environment before printing this mail.


Update documentation about the support of private attachments for GBM and Facebook Messenger. RD-18781

Jira Ticket : https://jira.ringcentral.com/browse/RD-18781

I have the only concern about that: some of our sources support private attachments and some don't. Ideally, we should explicitly mention for each source weather it supports private attachments. AFAIK, only Source SDK doesn't support private attachments.
We say "attachment should be public" in the common list of fields and then we add "it supports / doesn't support private attachments" in lists of specific fields of each source. I see you added that line to some sources but some of them are left without any information.

I have the only concern about that: some of our sources support private attachments and some don't. Ideally, we should explicitly mention for each source weather it supports private attachments. AFAIK, only Source SDK doesn't support private attachments.
Yes ok I see, maybe we could add a new section in Overview part. Maybe a board like Channel Capabilities to list for each source if private attachments is supported as you suggested. WDY? https://developers.ringcentral.com/engage/digital/guide/interactions/structured-messages
We say "attachment should be public" in the common list of fields and then we add "it supports / doesn't support private attachments" in lists of specific fields of each source. I see you added that line to some sources but some of them are left without any information.
I think what we could do here is just say in Primary Parameters for attachment_id field => Support public and private attachments. Then we don't need to redefine it each time for each structured content. For exemple on this page -> https://developers.ringcentral.com/engage/digital/guide/interactions/structured-messages/rich-link
WDY ? :)

@alexeevit

Yes ok I see, maybe we could add a new section in Overview part. Maybe a board like Channel Capabilities to list for each source if private attachments is supported as you suggested. WDY?

Nah, too much honour :laughing:

I think what we could do here is just say in Primary Parameters for attachment_id field => Support public and private attachments. Then we don't need to redefine it each time for each structured content.

I see what you mean. One of the main aim of the "Primary Parameters" is to provide most common requirements, like recommended values that are supported by all sources. So we shouldn't override the common requirements by more strict requirements. It's fine to override them by less strict requirements, thus users are still fine with using common requirements but they're also free to use features of a source.
Therefore, I think the best solution would be to keep it "Should be public" in the "Primary Parameters" and just check that all sources that support private attachments has a mention about that in the "Properties Unique to this Channel".
What do you think?

Ok it should be good now :

SDK structured messages documentation specify that only public attachments are supported.
I have updated documentation for each type of structured messages. It now shows for each type of structured message, which source supports private attachments.

Thanks! Now it's almost splendid.
I found we have a problem in the documentation for carousels :smiley_cat:

It doesn't have unique properties for Facebook Messenger
All unique properties for other sources are just copy-pasted from the documentation for templates. So all field names aren't correct (e.g. structured_content.title in GBM should be structured_content.items.title and structured_content.items.title should be structured_content.items.items.title)

Could you fix that?

I have updated docs based on your comments. Please have a look and let me know if you're happy with new changes :) . Thx

There's only a small change request left. LGTM otherwise.
Good job! Thanks for the efforts!

No prob. Thanks a lot for your help. Good teamwork 👍

I don't know if you have the power  to approve this xD before I merge it. I will squash commit locally on git

I don't know if you have the power  to approve this xD before I merge it. I will squash commit locally on git

@onima I just took a look at the proposed changes and I don't see any issues. Thanks for fixing the field names.  I can merge this as we are getting ready to publish.

BTW, do you have a schedule of publishing we can have an access to?

Publishing is generally the end of each month.  There's a lot of flexibility though so sometimes we push it or change it depending on what needs to be updated. The best approach is to focus on the end of the month and reach out to me if you need an exact date lookup.

Thanks for the updates and for fixing some of the guides I moved over!


CA secret reconciliation

Is there an existing issue for this?

[X] I have searched the existing issues

Problem Statement
At controller startup time the operator tries to retrieve the ca secret (name and namespace are passed as args or defaulted to kong-system/kong-operator-ca). If such a secret does not exist, it is created. The existence of the CA is never enforced. Thus, if the secret containing the CA is deleted the operator will not be able to issue mTLS certificates anymore (unless it restarts).
Proposed Solution
If the CA secret is not provided by the user but is created by the operator, it needs to be enforced in the cluster. This can be achieved through a controller that watches all the secrets with a specific label and whenever such a secret triggers an event, the desired state (i.e., having a valid CA secret) is enforced.
Additional information
This issue can be seen as complementary to #108, in which a secret controller has been mentioned as well.
Acceptance Criteria

[ ] If the CA secret provided by the operator is deleted, it gets automatically recreated by the operator.

CA certificate recreation would effectively invalidate all the PKI that depends on being signed by that CA. Therefore, this feature likely needs rotation of all the certificates dependent on the deleted CA.


gh should retry on EOF

Describe the bug
time=2024-06-18T10:43:44.145+02:00 level=WARN msg="endpoint failed with retryable status" endpoint="https://api.github.com/notifications?all=true&page=4" "retry left"=100
time=2024-06-18T10:43:54.534+02:00 level=ERROR msg="Failed to init the manager" err="unexpected EOF"
Usage:
  gh-not sync [flags]

Flags:
  -h, --help   help for sync
  -n, --noop   Doesn't execute any action

Global Flags:
  -c, --config string      Path to the YAML config file (default "/Users/nobe4/.config/gh-not/config.yaml")
      --from-file string   Path to notification dump in JSON (generate with 'gh api /notifications')
  -R, --no-refresh         Prevent a refresh
  -r, --refresh            Force a refresh
  -v, --verbosity int      Change logger verbosity (default 1)

unexpected EOF

Version
gh-not version v0.2.1 (6b03b2ffdc34973d8346e0219a8dff8b24d843ca) built at 2024-06-18T08:37:38Z
https://github.com/nobe4/gh-not/releases/tag/v0.2.1

To Reproduce
Steps to reproduce the behavior:

gh-not sync -v4 -r

Expected behavior
It retries when the body can't be read.

During #70 I managed to handle io.EOF as a "retriable" state.
Having an invalid JSON (such as when we get a 🦄 error, all HTML) also needs to be handled.


Archive Files task fails if source directory name contains '@'

Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Archive Files
Environment

Server - Azure Pipelines or TFS on-premises?
Azure pipelines

Agent - Hosted or Private:
Hosted

Issue Description
Archive Files task fails if source directory name contains '@'
Task logs
2019-06-23T15:34:55.7525525Z ##[section]Starting: Archive files
2019-06-23T15:34:55.7620977Z ==============================================================================
2019-06-23T15:34:55.7621026Z Task         : Archive Files
2019-06-23T15:34:55.7621051Z Description  : Archive files using compression formats such as .7z, .rar, .tar.gz, and .zip.
2019-06-23T15:34:55.7621097Z Version      : 1.119.0
2019-06-23T15:34:55.7621131Z Author       : Microsoft Corporation
2019-06-23T15:34:55.7621158Z Help         : More Information
2019-06-23T15:34:55.7621201Z ==============================================================================
2019-06-23T15:34:56.2806249Z [command]d:\a_tasks\ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0\1.119.0\7zip\7z.exe a -tzip d:\a\1\a\1003.zip .babelrc .env.Development .env.Local .env.LocalLigiloApiOnly .env.Staging .git .gitignore .vscode @types launch.json package-lock.json package.json public README.md src tsconfig.json tsconfig.prod.json tsconfig.test.json tslint.json webpack.config.js
2019-06-23T15:34:56.2957749Z
2019-06-23T15:34:56.2958335Z
2019-06-23T15:34:56.2958426Z 7-Zip [64] 16.00 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-10
2019-06-23T15:34:56.2958764Z
2019-06-23T15:34:56.2958790Z
2019-06-23T15:34:56.2959220Z Command Line Error:
2019-06-23T15:34:56.2959663Z Cannot find listfile
2019-06-23T15:34:56.2959950Z types
2019-06-23T15:34:56.2973496Z code: 7
2019-06-23T15:34:56.2973903Z stdout:
2019-06-23T15:34:56.2974268Z 7-Zip [64] 16.00 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-10
2019-06-23T15:34:56.2974589Z
2019-06-23T15:34:56.2974915Z
2019-06-23T15:34:56.2975302Z stderr:
2019-06-23T15:34:56.2975611Z
2019-06-23T15:34:56.2975968Z Command Line Error:
2019-06-23T15:34:56.2976589Z Cannot find listfile
2019-06-23T15:34:56.2976865Z types
2019-06-23T15:34:56.2977302Z
2019-06-23T15:34:56.2977743Z error: undefined;
2019-06-23T15:34:56.2982039Z Error: Archive creation failed for archive file: d:\a\1\a\1003.zip
2019-06-23T15:34:56.2982475Z code: 7
2019-06-23T15:34:56.2982814Z stdout:
2019-06-23T15:34:56.2983170Z 7-Zip [64] 16.00 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-10
2019-06-23T15:34:56.2983628Z
2019-06-23T15:34:56.2984123Z
2019-06-23T15:34:56.2984471Z stderr:
2019-06-23T15:34:56.2985203Z
2019-06-23T15:34:56.3039281Z ##[error]Archive creation failed for archive file: d:\a\1\a\1003.zip
2019-06-23T15:34:56.3051671Z Command Line Error:
2019-06-23T15:34:56.3051736Z Cannot find listfile
2019-06-23T15:34:56.3052169Z types
2019-06-23T15:34:56.3052230Z
2019-06-23T15:34:56.3052293Z error: undefined;
2019-06-23T15:34:56.3052333Z code: 7
2019-06-23T15:34:56.3052372Z stdout:
2019-06-23T15:34:56.3052413Z 7-Zip [64] 16.00 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-10
2019-06-23T15:34:56.3052462Z
2019-06-23T15:34:56.3052500Z
2019-06-23T15:34:56.3052538Z stderr:
2019-06-23T15:34:56.3052563Z
2019-06-23T15:34:56.3052619Z Command Line Error:
2019-06-23T15:34:56.3052659Z Cannot find listfile
2019-06-23T15:34:56.3052715Z types
2019-06-23T15:34:56.3052752Z
2019-06-23T15:34:56.3052805Z error: undefined;
2019-06-23T15:34:56.3065276Z code: 7
2019-06-23T15:34:56.3065539Z stdout:
2019-06-23T15:34:56.3065574Z 7-Zip [64] 16.00 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-10
2019-06-23T15:34:56.3065599Z
2019-06-23T15:34:56.3065808Z
2019-06-23T15:34:56.3066037Z stderr:
2019-06-23T15:34:56.3066056Z
2019-06-23T15:34:56.3066084Z Command Line Error:
2019-06-23T15:34:56.3066113Z Cannot find listfile
2019-06-23T15:34:56.3066159Z types
2019-06-23T15:34:56.3066186Z
2019-06-23T15:34:56.3066214Z error: undefined;
2019-06-23T15:34:56.3086658Z ##[section]Finishing: Archive files
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Hi @bishal-pdMSFT ,
I've been able to reproduce this on version: 1.119.0.
That version is a bit outdated, are you able to update to the newest version of the archive file task?
- task: ArchiveFiles@2
You may need to update your input for
rootFolder to be rootFolderOrFile

@thboop is this issue fixed in 2.* version of task?

@bishal-pdMSFT Apologies I should have been more explicit, this issue should be resolved in the 2.* version of the task but please reach out if you encounter any issues.

I'm going to close this ticket. If you continue to run into trouble with the 2.* version of the task please comment in the ticket and we can revisit it!


Not updated to 1.8.3

Namelayer doesn't provide support for Spigot 1.8.3.
Please add it soon, it would be greatly appreciated!

Unfortunately unless I can find a way to trick maven we wont be able to support versions beyond what we are currently running.

our plan is to move forward soon, why can't we have a 1.8 branch though?
On Mon, Mar 23, 2015 at 2:26 PM rourke750<EMAIL_ADDRESS>wrote:

Unfortunately unless I can find a way to trick maven we wont be able to
support versions beyond what we are currently running.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/NameLayer/issues/87#issuecomment-85158199.

What's the problem with Maven? The fixed dependency version? We could use a variable for that, or just change it locally.

Its the nms code that gets changed every few versions or when ever there is
a major mc change. I need different versions of spigot, if you can get the
pom to use a 1.8.3 spigot as well as the 1.8.1 please do.
On Mar 23, 2015 6:22 PM, "Travis Christian"<EMAIL_ADDRESS>wrote:

What's the problem with Maven? The fixed dependency version? We could use
a variable for that, or just change it locally.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/NameLayer/issues/87#issuecomment-85229864.

@j0ach1mmall3 Hey the latest version should work for apigot 1.8.3


[BUG] - Table selection not working

NextUI Version
2.6.5
Describe the bug
The table with selection is not working when trying to select the row with the checkbox, if i press on the row then it will work fine. But the checkbox will not work as expected. I will drop a video also.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Just try a table with selection or just check out on the nextui website https://nextui.org/docs/components/table#multiple-row-selection
Expected behavior
When i press on the checkbox then select the row
Screenshots or Videos
https://github.com/user-attachments/assets/1b69f085-87da-4696-84bd-997fae295663
Operating System Version
Windows
Browser
Chrome

Duplicated: https://github.com/nextui-org/nextui/issues/4252


C# generator does not consider some C++ functions.

Once its done with parsing all the header files and starts generating code it throws and error in the function 'GetVirtualCallDelegate' in this file \CppSharp\src\Generator\Generators\CSharp\CSharpTextTemplate.cs
The reason is that Driver.Delegates[method] fails since there is no entry for the key in the dictionary. The method in this case is: virtual ~DepthPacketProcessor();

I have reproduced a crash with the same dictionary but with another function. I am therefore not sure that what I've reproduced is your issue. When I have fixed it, I'll let you know so that you can test.

@ddobrev thanks for the update.

@sajivthomas fixed by https://github.com/mono/CppSharp/commit/9ab71aeac7b70c00e3bd8bc0859ddb94d0f78b7c.


Prototype/fdb layer replace couch rate

Overview
Replace the couch_rate rate limiting algorithm with couch_views_batch to dynamically optimize the indexer batch size during view updates.
While working on optimizing couch_views I ran into couch_rate behaving oddly. Reading through the implementation it was nearly impossible to predict how changing various parameters would affect the behavior under load. The rate limiting algorithms were also a bit misapplied. We don't really want a rate "limiter" so much as a rate "maximizer".
After failing to comprehend couch_rate and realizing that it was missing some fairly important signals (specifically, the approximate transaction size) I decided to take a whack at simplifying things. The new approach is quite a bit simpler and results in the ability to both successfully index large views (1,000,000 doc ranges were tested) but also has a more predictable and simple behavior.

The graph above is a representative of the behavior. Batch sizes start out small when a view indexer starts. The batch size is quickly ramped up to search for the threshold of a batch size, and then batch sizes are adjusted in much smaller increments to follow the optimal batch size.
Matching the old behavior of couch_rate to attempt to maintain a consistent transaction time limit can be accomplished trivially by adjusting the couch_views.batch_tx_max_time parameter.
Testing recommendations
make check
Checklist

[x] Code is written and works correctly
[x] Changes are covered by tests
[x] Any new configurable parameters are documented in rel/overlay/etc/default.ini
[ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

I should mention that my hack to generate the batch_size graphs had a bug where it would double count if a transaction would be retried. that spike to ~8500 just happens to be at the transition in this graph. There's always a conflict towards the start of view indexing due to a conflict on the couch_jobs data that I have yet to track down.

I'm not convinced about having the default implementation of batch_module in the same file as couch_views_batch. I initially found it confusing trying to figure out where it starts and where couch_views_batch is. I would prefer we have a couch_batch module similar to couch_rate with the default module and couch_views_batch.

I agree with Garren. This separation would also hide the #batch_st{} record in couch_views_batch module.

Just wanted to mention that the scope of couch_rate was bigger. The idea behind couch_rate was to provide a rate limiter/batch size estimator which can be used anywhere where we have a chance of a transaction failure from FDB and where we can be better off by adjusting transaction size (one possible use case is to unify with https://github.com/apache/couchdb/blob/prototype/fdb-layer/src/couch_replicator/src/couch_replicator_rate_limiter.erl). However since it seems like we are getting a consensus that we should introduce limits we might not need a generic solution and couch_view specific one might suffice.

In regards to Move error reporting test to EUnit commit you've mentioned:

This test doesn't fail correctly any longer. Rather than attempting to
create a new pathological view case I've just moved it to eunit where we can use meck to throw errors directly.

The meck can be used from ExUnit.
  defp with_fdb_error(_ctx) do
    :ok = :meck.new(:couch_views_batch, [:passthrough])
    :meck.expect(:couch_views_batch, :start, [], fn() ->
      :erlang.error({:erlfdb_error, 2101})
    end)
    on_exit(fn ->
      :meck.unload()
    end)
  end

describe "something something" do
    setup [....,  :with_fdb_error]
    test "something something", ctx do
       ...
    end
end

@garrensmith I've split the behavior/implementation between couch_views_batch (behavior) and couch_views_batch_impl (implementation). I don't believe this behavior is nearly abstract enough to cover anything besides couch_views so it doesn't make a lot of sense to me to create a new application to hold a new module that only couch_views will use.
@iilyak For the scope I agree that this is a lot more narrow. I started by trying to figure out the AIMD/congestion algorithms in both couch_rate and couch_replicator but after thinking awhile I realized that having an AIMD based algorithm isn't appropriate for batch sizes since we want to avoid failing batches as much as possible because every failed batch is wasted time when building a view. I did a number of different approaches to try and measure optimal batch sizes and behaviors. An earlier version of this work actually tried to optimize the rate of indexing within the bounds of transaction sizes. That lead to the realization that just maximizing the work done in a single transaction was most beneficial overall for indexing throughput. That's how it ended up being so simple and narrow in the end.
For the meck-via-Elixir, that would have worked if this test were running in the same VM but those tests are run separately against an instance of dev/run.

For the meck-via-Elixir, that would have worked if this test were running in the same VM but those tests are run separately against an instance of dev/run.

We have two kinds of Elixir tests

integration tests which live in test/elixir/test
unit tests which live in src/<app>/test/exunit/

Unit tests are run on the same VM

@nickva I've addressed your three main suggestions. For the metrics I don't have a good answer other than maybe expose the timing logs I've currently somewhat hacked in the views branch. Let me know if you think some sort of combined metric there would be useful and I can add that.

@davisp Looks, let's skip the metrics for now, could be a future enhancement
I am getting a consistent timeout in the couch_views_indexer_test:39: indexer_test_ (indexed_empty_db)... test while it passes on prototype/fdb-layer. Looking a bit into that

@nickva I sometimes have one but it seems to be only occasionally for the first run after compiling and then doesn't happen again. Let me know if you find anything though. Flaky tests are never good.

@davisp Found the issue, couch_views builds are were fast enough to trigger a race condition in couch_jobs monitoring code. The job was completing before the type monitor for couch_views jobs even started.
Made a PR to fix it:
https://github.com/apache/couchdb/pull/3135

@nickva I've addressed all of your suggestions. Let me know if you have anything else.
@iilyak @garrensmith I'm pretty sure I've addressed all of your concerns, let me know if there's anything left to handle.

@davisp lgtm +1 to merge from me, also good job adding extra tests!

Updated the max size parameter to include bytes. Will merge when CI comes back green.


A convenient way to get a session from a member method of Model

like:
class User(Base):
    __tablename__ = 'users'

    id = Column(BigInteger, primary_key=True)
    username = Column(String(64), unique=True)

    def __init__(self, username):
        self.username = username

    @classmethod
    def get_jack(cls):
        return cls.session.query(cls).filter(cls.name=='jack').first()

You could use object_session for that.

In general, I'm not in favor of having a session accessor in all model classes. Something like User.query might be worth thinking about, though.

You could use object_session for that.

object_session only works for instance of Model.  and the instance has been attached to a session already.

True, my bad. Providing a session accessor in model classes still seems a bit odd though. This would mean that in theory, something like User.session.query(OtherModel) is possible, which I'd like to avoid, possibly by a User.query method.

Yeah, User.query is a better way !

I usually separate the modal ( where i define tables ) from the view ( where i make functions to query common things )
So in Tornado, every "page" has its own class, so i do this:
from tornado_sqlalchemy import SessionMixin
from mymodals                  import User

class MyPage(SessionMixin, tornado.web.RequestHandler):
   def __init_(self):
      ...

   async def get(self, query_string_user):
        user = await self.get_user(query_string_user)
        self.render(user)

   def get_user(self, username):
      """
      self.session magically exists because this class inherit from SessionMixin
      """
      return self.session.query(User).filter(User.name==username).first()


Steps "To create an Azure storage account" confusing

In Step 3, ii. For Account kind, select general purpose.  "You can't use a Blob storage account for a Cloud Witness."
but then in "View and copy endpoint URL Links" it says: "… Cloud Witness always uses Blob as the the storage type."

@Schutzhund3. Which article are you referring ?

https://github.com/MicrosoftDocs/windowsserverdocs/blob/master/WindowsServerDocs/failover-clustering/deploy-cloud-witness.md

@thanks for reply. I dont have knowledge about Azure , so wait for few days to get answers from azure experienced users


PR: Handle CompletionWidget position when undocking Editor

Description of Changes

[x] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[x] Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #11076
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: dalthviz

Great job @dalthviz! I only have one question before merging: what happens to the completion widget of the IPython console? Does it have the same problem as the one in the editor?

I only have one question before merging: what happens to the completion widget of the IPython console? Does it have the same problem as the one in the editor?

Good question, it probably has the same issue. We should maybe have a default behavior for the set_ancestor and only override for special plugins? so that not all plugins need to write custom code?

Note: The failure on Azure is unrelated to this.


Cannot approve plan

Docker image with "require-approval" tool has base image "scratch", in current configuration no way to simply approve/cancel plan by creating file in fs, because base image has no tools touch, cp, cat, ...

That's true, the image doesn't allow for exec or anything like it. There are two ways approvals are done, 1st by observing a file and 2nd by observing a database entry. The latter is a different project which someday I might open it up.
But back to the dilemma at hand. I would use the tfo-cli tool (https://github.com/isaaguilar/terraform-operator-cli/releases/tag/v2.1.1) and you can run a command like the following:
tfo local debug --namespace <my-namespace> <my-terraform-resource> -- touch /home/tfo-runner/generations/<n>/_approved_<uuid-of-plan>

Side note:
I want to add a native command to tfo-cli eventually.
the following doesn't work, it's just an idea
tfo local approve -n <my-namespace> <my-terraform-resource>


accumulate counts with a hashmap in a spark streaming job and use SizeEstimator utility to compare to approximation techniques

compare to these:  https://github.com/fluxcapacitor/pipeline/tree/master/myapps/spark/streaming/src/main/scala/com/advancedspark/streaming/rating/approx

cute demo, but not critical


Better feedback from its UI and Gizmo

Now the gizmo and UI are working together and make the operator more user friendly


Update Lamianar to 0.12.0

Actually bump it to 0.12.1 please, there was a small fix
--Nikita
On Sat., Feb. 27, 2021, 1:44 p.m. Lorenzo Gabriele, <
<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/kitlangton/animus/pull/1
Commit Summary

Update Lamianar to 0.12.0

File Changes

M build.sbt
https://github.com/kitlangton/animus/pull/1/files#diff-5634c415cd8c8504fdb973a3ed092300b43c4b8fc1e184f7249eb29a55511f91
(3)
M js/src/main/scala/animus/RAFStream.scala
https://github.com/kitlangton/animus/pull/1/files#diff-618c0eafc84433816433fc8c86a23528c660baf01286c20bae53bea1aef50885
(2)
M js/src/main/scala/animus/Transitions.scala
https://github.com/kitlangton/animus/pull/1/files#diff-5b2f2308e365e43e92bc1d708cae0e82a4dfb928286270d66a7d0f564e84dfbf
(4)
M js/src/main/scala/animus/package.scala
https://github.com/kitlangton/animus/pull/1/files#diff-1b271ffe40841adad34ad3e6eb4e2ec7257a3458f0ff7530a481df11db83d246
(6)

Patch Links:

https://github.com/kitlangton/animus/pull/1.patch
https://github.com/kitlangton/animus/pull/1.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kitlangton/animus/pull/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAECBMEOMPQHF5FOORMQ2J3TBFRTVANCNFSM4YKK26LA
.

Thanks very much!


[Enhancement] Differentiate how errors and warnings are highlighted

Summary
Both warnings and errors are highlighted with a red underline which is not very helpful. Warnings usually are displayed different to an error on IDE's

Everything is changed to errors with the latest PR. This is in favour of hiding unwanted warnings


desse = "0.2.1" : no DesseStatic in the root

see image above

Thanks for opening this issue. In all probability, you're reading documentation for master branch and using v0.2.1. Please refer to documentation for v0.2.1 here.

thanks very much .
IS DesseDynamic ready to use ? I see it in github test , but not write in documents


build: detach stg and prod deployment by using 'rc' on tag name

Current coverage is 84.95% (diff: 100%)

Merging #160 into master will not change coverage

@@             master       #160   diff @@
==========================================
  Files            28         28
  Lines          1954       1954
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1660       1660
  Misses          193        193
  Partials        101        101

Powered by Codecov. Last update ac5abad...5bdfaeb

LGTM. The increment_version function in particular is pretty awesome. Thanks!


revise tile of the "ASCT+B table for Lung v1.2" page

On the following page, the title should be “Lung v1.3” instead of “Lung v1.2”.
https://hubmapconsortium.github.io/ccf-releases/v1.4/docs/asct-b/asct-b-vh-lung.html

@jianghuayu007 edited and part of pull request: https://github.com/hubmapconsortium/ccf-releases/pull/46


Update dependencies

This PR update vulnerable dependencies exept string inside of nixt because there is no fix released yet and also based on Snyk report the affected code is inside underscore and unescapeHTML which are not used inside of nixt so we should be fine

Hey @axe312ger, CI is 💚 can you take a look


chore(deps): update common-dev-assets digest to 1085d60

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
330b908 -> 1085d60

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline


[ERROR PPL-0013] Internal error, placed more pins than exist (97 out of 65).

Describe the bug
When I use the new -group and -order set_io_constrains feature, I get the error above.
Expected Behavior
No error
Environment
It is recommened to pull the latest changes.
If problem persists, file a github issue with the re-producible test case.
kernel: Linux 5.15.0-67-generic
os: Ubuntu 22.04.2 LTS (Jammy Jellyfish)
cmake version 3.22.1

To Reproduce
https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/pull/905
Relevant log output
No response
Screenshots
No response
Additional Context
No response

@eder-matheus @maliberty I was able to reproduce it, see build log for https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/pull/905

@oharboe Sorry for the delay. I was having trouble to reproduce it on my Mac. Something is weird with the make issue for this new design.
Anyway, this PR should fix the issue: https://github.com/The-OpenROAD-Project/OpenROAD/pull/3075
Could you check with your internal testcase?

There was a bug in make issue that I fixed this week.