Return DApp information if present in origin

Feature request
With the implementation of "native WalletConnect", the details of the connected DApp (name, icon, etc.) are available and could be sent as part of the transaction origin. We currently map this to Safe Apps.
The client currently sends the WalletConnect Safe App as the origin to show the icon in the transaction list:

The client could alternatively send the DApp details and we could return the origin "as is" if no Safe App is found. This would allow the client to display DApp icons in the transaction list instead.
Considerations

Should we instead add a different key, e.g. dappInfo, as this is technically not from a Safe App
Does this have any security implications?

To give some additional context. This was mentioned here https://github.com/safe-global/safe-config-service/issues/621.
The scope of this feature was relatively big because the interface would take into consideration external projects or reaching a format that would be both extensible and robust (community driven).
However the scope can be reduced if this is tackled mostly by the Safe Client Gateway. That is, the scope would not change on the Safe{Core} side and therefore the Safe Transaction Service but start as a proposal to be tackled on the Safe{Wallet} side before pushing this to be more of an "open" format.

Good to know.
From the client-side we can provide the following info when making a tx:

app name
app URL or origin
app icons in different sizes


Integrated terminal font rendering doesn't match editor

VSCode Version: 1.43.2 (0ba0ca52957102ca3527cf479571617f0de6ed50)
OS Version: macOS 10.14.6

Even when the same font family and size are configured for the editor and the terminal, the font rendering in the integrated terminal does not match the font rendering in the editor. In the attached example screenshot, I have the font for both set to 12pt Consolas, and my screen is non-retina. The character shapes, anti-aliasing, line height, and letter spacing are all different between the terminal and the editor.

Steps to Reproduce:

Ensure that the editor font family and font size preferences match the integrated terminal font family and font size preferences.
View some text in the editor and in the terminal and compare the rendering.

Does this issue occur when all extensions are disabled?: Yes. Attached screenshot has extensions disabled.

Nope, it's none of those.

You can change this setting to align rendering with the editor, you'll likely notes a shift in performance though.
"terminal.integrated.rendererType": "dom"

Thanks! The DOM rendering looks much closer, and I was able to get the terminal's line height to match the editor's as well by process of trial and error.
The horizontal spacing still appears slightly inconsistent by some fraction of a pixel. Is there a way to make it match exactly? See attached animation - the left side is perfectly aligned but the terminal text is slightly wider by the right edge.

Is making the terminal's canvas text rendering look like the editor's text rendering considered a non-goal?

Yes it's not a goal, performance is more important for the terminal as its text buffer is far more dynamic than the editor's.


Improve Contributing Guidelines

Updates needed on the CONTRIBUTING.md document.

@Akshu-on-github Is there something specific you would like me to update?

Not for now @msaini26 - needed a reminder on what people found confusing! Coud you briefly describe what you found confusing and what might help another in your shoes?

@Akshu-on-github If this repository is for first time users, it might be helpful to explain step-by-step how to start. For example, first fork the repo, then clone it, create your own branch, make changes, etc. We can include code snippets of what to write exactly in the terminal. Let me know what you think.

Indeed, I see these in several first-timer repos... but personally, I don't think it comes under the CONTRIBUTING.md. Instead, could you create a file called first-timers with the same @msaini26?

Yes, sounds good @Akshu-on-github. 👍

I've assigned this issue to you, please let me know how it goes!

It's going well, thank you! I will make a pull request when I finish. @Akshu-on-github

@Akshu-on-github Just finished, so I made a pull request. Let me know if anything needs to be changed.


Improve Exception to NSError conversion

Fixes #29

The current implementation uses compiler internals which causes issues when the @Throws annotation is also used.
For this to work correctly we need a public API: https://youtrack.jetbrains.com/issue/KT-50539


Package for Flatpak

Is your feature request related to a problem? Please describe.
Some systems don't have support for the packages here. Additionally, flatpaks are sandboxed and more secure by design.
Describe the solution you would like!
Building this as a Flatpak would allow more systems to have access to the browser. It should be easy to build a flatpak from the Debian package.
Describe alternatives you have considered.
Snaps are an alternative to flatpaks, but they are often frowned upon by the Open community.
Additional context
No response

I do in fact have a system running Fedora, I do not have the required knowlege or resources to distribute a flatpak package. Also, these packages would have to be made manually so they would become outdated anyway. If you wish to provide these pages, or make an automatic way to do so, that would be much appreciated.

I don't know about flatpak, but would https://www.electronforge.io/config/makers/flatpak work?

I don't know about flatpak, but would https://www.electronforge.io/config/makers/flatpak work?

or even more difficult, making it work with GitHub actions, and uploading it to flathub (manually D:)

Is flatpak really neccesary? Just run binaries, or use the RPM package. If you are intentionally using a distribution that requires flatpaks thats on you.

@webdev03 I got the config in package.json working, you just need to add it to the gh actions. I've been at it for 30 minutes now haven't found out what I'm doing.

I need to? Why do I have to?

I need to? Why do I have to?

Your the only one that knows how, lmao. You made the action.

Is flatpak really neccesary? Just run binaries, or use the RPM package. If you are intentionally using a distribution that requires flatpaks thats on you.

I'm not using silverblue anymore, just fedora. However, flatpaks can be very helpful.

Is flatpak really neccesary? Just run binaries, or use the RPM package. If you are intentionally using a distribution that requires flatpaks thats on you.

I'm not using silverblue anymore, just fedora. However, flatpaks can be very helpful.

in what way? lmao

I need to? Why do I have to?

Your the only one that knows how, lmao. You made the action.

You know I'm not a linux person.... how would I know?

I need to? Why do I have to?

Your the only one that knows how, lmao. You made the action.

You know I'm not a linux person.... how would I know?

Wouldn't it be the same as when you added M1 builds? 'npm run make' ran on fedora would already produce a flatpak.

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners doesn't have fedora?

Contributor
I'm sure you can do the flatpak with Ubuntu though.

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners doesn't have fedora?

I'm sure you can do the flatpak with Ubuntu though.

OK, so, just add the flatpak builder.

OK, so, just add the flatpak builder.

yes i think anyway

Coming back to this!

Maybe try https://docs.flatpak.org/en/latest/electron.html ?

I have added flatpak build support in commit ef747ea!

The flatpak doesnt install
Gh action

@mdwalters has volunteered

Flatpak packaging has been implemented in 3b7f078!

The implementation broke the build system and was reverted.

@jdev082
See my Flathub manifest submission: https://github.com/flathub/flathub/pull/4821

I was surprised to see my icon design on the flathub page! Keep up the excellent work, everyone!

Pleased to say this feature is now officially implemented!


Image Column Href now with Prefix

Image Column
When using prefix, it was present only for the source of the image, but not in the href property. That caused an issue: when using a prefix, the image would show in the column (source with correct prefix) but the link was broken (because was without prefix).
This pull request adds prefix to the Href property, and if the prefix is not set, it doesn't add anything.
Regards!

Totally agree! Thank you @robertotcestari . Just merged it, will be available in the next patch update (0-3 days).
Cheers!


Tweaks to the 'closed schools' CC report

Context
PR #747 introduced a 'closed schools' report for Computacenter. This PR includes some tweaks some of the functionality and language in this report.
Changes proposed in this pull request

Temporarily turn off pagination within the report

It's my hunch that the CC ops team is going to use Ctrl+F to find school caps using the URN, shipTo, or soldTo numbers. Because of pagination, it's very unlikely that the school they're looking for is going to be on the first page and there's currently no other search functionality included.
I've not actually removed the pagination, I've just made the pages contain 10,000 items. If my hunch is incorrect, then it's easy enough to change this back, or if it's correct, then some of the code can be removed in a subsequent PR.

Fix an N+1 query problem in the controller (which becomes noticeable/very acute when pagination is disabled)
Re-align some of the report language with the rest of the service:

School closures => Schools that can order (because the report also includes schools that can order for specific circumstances and don't, strictly speaking, have to be closed)
Partially closed => Ordering for specific circumstances (same thinking as above)
Fully closed => Ordering due to COVID-19 disruption (again, schools don't have to be fully closed in order to have the can_order order state)

Guidance to review
Is the new terminology correct?

Looks good, I agree with @emmajhf.
It also looks like the tabs are overrunning the page container a little, the left of the All tab should line up with the S for schools.


Fixing SearchStats (de)serialization (caused by https://github.com/opensearch-project/OpenSearch/pull/4616)

Signed-off-by: Andriy Redko<EMAIL_ADDRESS>Description
Fixing SearchStats (de)serialization (caused by https://github.com/opensearch-project/OpenSearch/pull/4616)
Issues Resolved
Related to https://github.com/opensearch-project/OpenSearch/pull/4616
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff
[X] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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

Gradle Check (Jenkins) Run Completed with:
* **RESULT:** null x

* **URL:** null

* **CommitID:** [721578d](https://github.com/opensearch-project/OpenSearch/commit/721578d321d5d4822956296f974bcf54d6962568)

wait for jenkins to start workflow
Check if queue exist in Jenkins after triggering
WORKFLOW_URL null
Use queue information to find build number in Jenkins if available
Please check jenkins url for logs: null
Result: null
Error: Process completed with exit code 1.

Yeah, this gradle setup is flakey. I've had to restart it several times w/ different errors at different points along the workflow. Looks like the check is happy atm but we really need to make this more reliable.  /cc @peternied @peterzhuamazon

FYI, I added a note to the original PR on how we can prevent this moving forward. I'll look at adding a note to CONTRIBUTING.md to encourage contributors to set the correct version check on the originating PR instead of doing it in follow up PRs that could be forgotten (like we saw here).

FYI, I added a note to the original PR on how we can prevent this moving forward. I'll look at adding a note to CONTRIBUTING.md to encourage contributors to set the correct version check on the originating PR instead of doing it in follow up PRs that could be forgotten (like we saw here).

We usually comment on pull request before it gets merge but this one was merged pretty fast, didn't have a chance to put a comment there

We usually comment on pull request before it gets merge but this one was merged pretty fast, didn't have a chance to put a comment there

Yeah. And the backport PR was a massive munge of eight PRs w/ ~8K lines added. Something was bound to be missed. Another reason I like setting the intended versions in the check on the original PR and let the BWC tests fail.
If we ever get a public slack workspace we should have a #bwc-builds channel we can monitor for failures like this. Alternatively, maybe we could have an optional BWC git action that doesn't block merge but can be used as a reminder?

:crossed_fingers: gradle doesn't topple. :smile:

@nknize all set :-)


Cannot find the SafetyNet options any more after reinstalling

Sorry for a question which feels pretty stupid but I've done everything multiple times including trying "your" https://lineage.microg.org/ version of Lineage and trying the proven good method of vanilla Lineage + tingle patching... And the option for SafetyNet just is no longer there in the microG settings. Self check is 100% fine and I've (re)installed DroidGuard helper and everything.
Was it a mistake to format (from TWRP) the phone before flashing Lineage? Was something vital to SafetyNet on some partition which the LOS zip doesn't provide? Also most of my Play Store apps are now saying "Update Google Play services" on startup...?

Maybe you are using the stable version instead of the latest preview version of microG GmsCore.
Try updating to 0.2.4-105.

Aha! Sounds like an idiotically simple solution. I'll try that when the phone finishes restoring. Huge thanks for working on these wonderful software, BTW.

I'm not working on it, I just help sometime.

 I'll stick to tingle for now instead of https://lineage.microg.org/ as the latter failed SafetyNet for some reason.


Update terraform.tfvars.json

I was able to transfer the cookbook-elasticsearch repo, so this should be all set. Thanks so much!
Description
Describe what this change achieves
Issues Resolved
List any existing issues this PR resolves
Check List

[ ] A summary of changes made is included in the CHANGELOG under ## Unreleased
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.

Nevermind. #33


Fix crash when parsing "c" tags

["/" sig-c-tag-alg] is optional, and even if it weren't we shouldn't
crash when it's not present.
Fixes a segfault when arc_name_to_code() called strcasecmp() on NULL.

Updated.


feat(dropDown): Scroll to selected item

If an item is selected the drop down scrolls to it when opened. This helps to keep track if the list has lots of items.

it works perfectly fine, thanks for contributing


[CURATED PROJECT] Project #N

Project Title: Chimera
Project Size: 987
Project ID: 233
Artist Channel ID:<PHONE_NUMBER>74855188

@mchrupcala Sending this your way to grow the # of people within the team that know how to make these changes 😄
@ryley-o would be a great person to help walk you through this if you're having trouble.

@jakerockland no problem! I'll reach out to him so I don't miss any steps.

Merged https://github.com/ArtBlocks/artbot/pull/184


Add full name column to User Manager list

It would be nice to see this merged 👍

It would be nice to see this merged 👍

Available from v2.4.0

Available from v2.4.0


Extended base class and fixed fatal errors

We extended the SOAP base class with a method to allow re-use of authorized sessions.
Additionally the sessionHeader was added to the SOAP header without check for existance, so there was an empty header thus beeing invalid. This has been fixed.

Looks good - thanks! We need a contributor license agreement (CLA, very similar to Apache projects) to accept substantial contributions. Could you fill out the doc, scan it, and send it to me at ppatterson (at) salesforce (dot) com?

RefreshToken() adds an explicit dependency on curl, and uses REST API.
These changes should not be introduced to the SOAP client.


Upgraded Sentiment Analysis - question about sigmoid

To get the predictions you do this:
rounded_preds = torch.round(torch.sigmoid(preds))

I was wondering why I get very different accuracies when I add a sigmoid layer to the LSTM instance:
self.sigmoid = nn.Sigmoid()

and then return the following:
self.sigmoid(self.fc(hidden))

where self.fc is still the Linear hidden layer that you are using (and I do not apply sigmoid then in)
rounded_preds = torch.round(preds)

I expected that the results would be the same because I am doing the same, but apparently it's something totally different. Can you explain why this is the case?
And does it also mean that if you want to add another layer to the classifier (say for instance a RELU layer) you have to do it before feeding the results to the linear layer (so between LSTM and linear layer).

Note: I realise though that if you have a sigmoid value as the returned prediction value by the classifier instance itself, then this value will also be used to compute the loss and perform propagation, whereas if there is just a linear layer the value used to compute the loss will be the one provided by the linear layer. So it makes sense that the outcomes are different.
So I guess that my question is then why can't we not let the classifier object return a value provided by the sigmoid function/layer (instead of using a value provided from a linear layer) or feed the output from the linear layer to a sigmoid layer and return that as the final prediction of the classifier object.

I think that I know the answer:
[(https://discuss.pytorch.org/t/bceloss-vs-bcewithlogitsloss/33586/4)]
You are using BCEWithLogitsLoss, so the sigmoid activation function will be applied internally when the loss is computed. Therefore, you should not feed probabilities into the loss function (in contrast to BCEloss).
However, to interpret the results / make a final prediction, we still need to convert the predicted values by the linear layer to sigmoids, which is why you do that in the binary_accuracy function.

Yep, that's exactly correct.


Update 👽README.md

Updated with "Magic3D by Nvidia"
"https://arxiv.org/abs/2211.10440"

@p2kalita could you update data.csv too? This table is now updated automatically using data from data.csv.

Why not let me try XD.


Rename port envvar to adhere to invoker spec

See https://github.com/projectriff/invoker-specification/pull/3.


Add a vectorized Text Element

The following example works well for n=10, but e.g. n=100 the re-rendering on zoom stops working (on MacBook Pro at least).
%%opts RGB [width=800, height=800]
n=100
clusters = np.random.uniform(low=(0,0,0),high=(1,1,.005),size=(n,3))
scatter = hv.Scatter(np.concatenate([scale *  np.random.randn(1000, 2) + (x,y) for x,y,scale in clusters]))
boxes = hv.Path([hv.Box(x,y,scale*6).data[0] for x,y,scale in clusters])
texts = hv.NdOverlay({i: hv.Text(x, y, text=f'{np.round(scale*100, 1)}') for i, (x, y, scale) in enumerate(clusters)}, kdims=['i'])
datashade(scatter) * datashade(boxes) * texts

If we take out the * texts then high e.g. n=1000 zoom works fine.

We discussed this yesterday and we'd like to either make the Text Element vectorized or add a new vectorized Text Element. I've already written an implementation, which you can view here:
https://anaconda.org/philippjfr/multitext/notebook
So we only have to decide what to call it or whether to replace the existing Text Element.


Assignment 2 questions answered

Questions answered to address requirement for Assignment 2.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I added answers to questions explaining the code returns.
What did you learn from the changes you have made?
I understood that printing code and their results is insufficient, as clarifications are required.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I was thinking how much detail is needed to comply with the requirement. At the beginning, my answers were too short, or not explaining the code.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
No, once I understood what the expectations were.
How were these changes tested?
It was markdown, not code.
A reference to a related issue in your repository (if applicable)
Documentation is important, now I'm learning out why and how to do it correctly.
Checklist

[x ] I can confirm that my changes are working as intended

I am unable to see your solutions in the markdown file. Please see attached screenshot

Thank you for your feedback.
I uploaded Assignment 2 again.
Regards,
Anca Kurian
On Mon, Oct 21, 2024 at 9:54 PM Melokazz @.***> wrote:

I am unable to see your solutions in the markdown file. Please see
attached screenshot
image.png (view on web)
https://github.com/user-attachments/assets/60d9d08e-de8b-4b87-9178-b85e2bd7ec3d
—
Reply to this email directly, view it on GitHub
https://github.com/ancakurian/applying_statistical_concepts/pull/5#issuecomment-2428050314,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYEDF3AGH2K4HMYYEFRHJDLZ4WV7FAVCNFSM6AAAAABQGMQWXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRYGA2TAMZRGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Avoid recreating new download button.

Hi,
i am using the same object with different report for multiple report viewing. It would be great if we can create the download button once and just set the anchor to the correct link each time. This will save some time.

Please try version 2.7.1.


Unable to Generate Excel from a template with Pivot & Filters

NPOI Version 2.6.2
File Type - [ ] XLSX
Upload the Excel File
Template.xlsx
Please attach your original Excel File to help us reproduce the issue
Reproduce Steps
I have taken all the logic out of this, simple using a template and creating new excel with it doesn't seem to work
code :
MemoryStream outputStream = new MemoryStream();
using (Stream templateStream = assembly.GetManifestResourceStream(resourceName))
{
IWorkbook workbook = new XSSFWorkbook(templateStream);
workbook.Write(outputStream, true);
outputStream.Position = 0;
}
return File(outputStream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "GP-Summary.xlsx");
Issue Description

basically similar to https://github.com/nissl-lab/npoi/issues/419 but for filters/ slicers

#783 #867

#783 #867

@tonyqus - is this fixed then?

No. There are related PR, which may causes this issue

@tonyqus - are we working on this or have plans to add support for slicers?


Jupyter notebook set global workdir

Is it possible to set default workdir directly from Jupyter notebook that all steps will use?

%cd before other kernels are started. Otherwise you will have to use language specific chdir() to change directory.

I see. This is actually good idea. May I ask how to achieve the same in command version? Is it some magic CONFIG setting I'm not aware of? :)

No. Command version has to use task level or action level workdir.


Merge stable to develop

Purpose of PR?:
needs a merge

there will be another merge after the release of 8.3.5


This hopefully solves the problem.

Fixes #<Put_Issue_Number_Here>
#40

Hello @sagnik-chatterjee! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file src/einsteinpy/integrators/runge_kutta.py:

Line 102:21: E231 missing whitespace after ','
Line 121:25: E231 missing whitespace after ','
Line 121:38: E261 at least two spaces before inline comment
Line 121:39: E262 inline comment should start with '# '
Line 121:79: W291 trailing whitespace

In the file src/einsteinpy/symbolic/predefined/vacuum_solutions.py:

Line 71:1: W293 blank line contains whitespace

And I would request you to slow down a little. :P
It's too fast for us. Don't comment on anymore issues. Solve the issues one by one

thank you .. i will solve the issues one by one .


Error when loading pull request manager hub

Hi,
when i try to access to the pull request manager hub page i get this "empty" page.

At first i thought it was permissions of my user. When it starts loading it appears the normal page.. and then all disapears.
I checked devTools and found some errors:
react-dom.production.min.js:198 TypeError: Cannot read property 'text' of undefined
at n.renderSelectedItems (DropdownFilterBarItem.js:68)
at U (DropdownExpandableButton.js:11)
at Xo (react-dom.production.min.js:150)
at Di (react-dom.production.min.js:178)
at Ga (react-dom.production.min.js:232)
at $a (react-dom.production.min.js:233)
at Ns (react-dom.production.min.js:249)
at Os (react-dom.production.min.js:248)
at Cs (react-dom.production.min.js:245)
at es (react-dom.production.min.js:243)
  | da | @ | react-dom.production.min.js:198
-- | -- | -- | --
  | n.callback | @ | react-dom.production.min.js:210
  | oa | @ | react-dom.production.min.js:193
  | ra | @ | react-dom.production.min.js:193
  | Ba | @ | react-dom.production.min.js:217
  | Ha | @ | react-dom.production.min.js:220
  | (anonymous) | @ | react-dom.production.min.js:250
  | t.unstable_runWithPriority | @ | scheduler.production.min.js:18
  | Ds | @ | react-dom.production.min.js:250
  | Ns | @ | react-dom.production.min.js:249
  | Os | @ | react-dom.production.min.js:248
  | Cs | @ | react-dom.production.min.js:245
  | es | @ | react-dom.production.min.js:243
  | enqueueSetState | @ | react-dom.production.min.js:130
  | x.setState | @ | react.production.min.js:13
  | value | @ | PullRequestsTab.tsx:387
  | (anonymous) | @ | PullRequestsTab.tsx:339
  | Promise.finally (async) |   |
  | (anonymous) | @ | PullRequestsTab.tsx:323
  | l | @ | runtime.js:45
  | (anonymous) | @ | runtime.js:271
  | I.forEach.e. | @ | runtime.js:97
  | l | @ | runtime.js:45
  | t | @ | runtime.js:135
  | (anonymous) | @ | runtime.js:170
  | i | @ | runtime.js:169
  | E._invoke | @ | runtime.js:192
  | I.forEach.e. | @ | runtime.js:97
  | e.async | @ | runtime.js:216
  | value | @ | PullRequestsTab.tsx:70
  | (anonymous) | @ | PullRequestsTab.tsx:171
  | Promise.then (async) |   |
  | (anonymous) | @ | PullRequestsTab.tsx:170
and
DropdownFilterBarItem.js:68 Uncaught (in promise) TypeError: Cannot read property 'text' of undefined
at n.renderSelectedItems (DropdownFilterBarItem.js:68)
at U (DropdownExpandableButton.js:11)
at Xo (react-dom.production.min.js:150)
at Di (react-dom.production.min.js:178)
at Ga (react-dom.production.min.js:232)
at $a (react-dom.production.min.js:233)
at Ns (react-dom.production.min.js:249)
at Os (react-dom.production.min.js:248)
at Cs (react-dom.production.min.js:245)
at es (react-dom.production.min.js:243)
  | n.renderSelectedItems | @ | DropdownFilterBarItem.js:68
-- | -- | -- | --
  | U | @ | DropdownExpandableButton.js:11
  | Xo | @ | react-dom.production.min.js:150
  | Di | @ | react-dom.production.min.js:178
  | Ga | @ | react-dom.production.min.js:232
  | $a | @ | react-dom.production.min.js:233
  | Ns | @ | react-dom.production.min.js:249
  | Os | @ | react-dom.production.min.js:248
  | Cs | @ | react-dom.production.min.js:245
  | es | @ | react-dom.production.min.js:243
  | enqueueSetState | @ | react-dom.production.min.js:130
  | x.setState | @ | react.production.min.js:13
  | value | @ | PullRequestsTab.tsx:387
  | (anonymous) | @ | PullRequestsTab.tsx:339
  | Promise.finally (async) |   |
  | (anonymous) | @ | PullRequestsTab.tsx:323
  | l | @ | runtime.js:45
  | (anonymous) | @ | runtime.js:271
  | I.forEach.e. | @ | runtime.js:97
  | l | @ | runtime.js:45
  | t | @ | runtime.js:135
  | (anonymous) | @ | runtime.js:170
  | i | @ | runtime.js:169
  | E._invoke | @ | runtime.js:192
  | I.forEach.e. | @ | runtime.js:97
  | e.async | @ | runtime.js:216
  | value | @ | PullRequestsTab.tsx:70
  | (anonymous) | @ | PullRequestsTab.tsx:171
  | Promise.then (async) |   |
  | (anonymous) | @ | PullRequestsTab.tsx:170
We are using this version:
Installed version
1.20200213.1 (Latest)
Last updated
17/02/2020 at 16:48 WET
Cheers,
Ricardo Rodrigues

I can confirm the same behavior. Tried with different browsers too with no luck, page remains blank.

Wondering if the issue is related to the number of repos in the team project?  When using a team project with a handful of repos I do not have this issue.  But there is a team project that I spend most time on and it currently has 122 repos and in that the hub fails to load as explained above.  @rrodrigues123 can you confirm if your team project has large number of repos also?  @cribeiro84 any thoughts on this one?

@raoranjeet true story!

So i would say its the teams you are affected in the projects that generate this behavior, not the large list of projects itself.
Thanks!

Hm... bad news. Same behavior. Don't know why it didnt got the same error on my last try.
So, back to the start. But @raoranjeet other users on my department are using the same collection that has that large list of team projects and they don't have this error. That's why i thought it was about me and my permissions.
Right now i'm in 48 teams in all of the team projects of this collection.

@raoranjeet and @rrodrigues123 sorry for the delay in replying back to you - having a little baby does not make my life easier :-)
To be honest, I'm not aware of any additional filter to only capture the repos you are supposed to have access to. The extension simply uses the default "get" repositories from the existing ADO SKD.
@rrodrigues123 is there any additional info you could share with us? I'm curious because you are getting error when the extension tries to get the text property of the selected item(s). Have you tried to access the extension from any other project that you are admin?

Hello @rrodrigues123 and @raoranjeet
Are you still facing issues with the extension?
Thanks a lot

@cribeiro84  not anymore.  The extension started working for me a few weeks ago.  Whatever you did, fixed it.  Thank you!


Change nether fortress detection to work prior to structure generation

Maybe change their spawning to be like the strongholds, a certain number around spawn. this would make exploring the nether for a bit an actual task instead of randomly having one right under your nose, or 10k blocks out? it also makes it a lot easier to do the detection. as we could just mirror the stronghold detection from eyes of ender

implemented in 3.0 beta


V2 - idToken signature can be verified - accessToken signature is invalid

I am currently able to verify the JWT idToken that is returned from the v2.0 endpoint.
When I try to verify the JWT accessToken the same way I am getting: Signed JWT rejected: Invalid signature
Is there a different set of keys needed to verify the accessToken ?

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

ID: 628db02d-345a-5dc4-17f0-3d6ff76d7fe5
Version Independent ID: 524b460d-47b7-72c9-e994-ea94b3a9dd2b
Content: Azure Active Directory v2.0 and the OpenID Connect protocol
Content Source: articles/active-directory/develop/v2-protocols-oidc.md
Service: active-directory
Sub-service: develop
GitHub Login: @CelesteDG
Microsoft Alias: celested

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

@mores Can you please provide us details how are you validating the JWT Tokens ?

com.nimbusds.jwt.proc.ConfigurableJWTProcessor jwtProcessor = new com.nimbusds.jwt.proc.DefaultJWTProcessor();
java.net.URL endpoint = new java.net.URL( "https://login.microsoftonline.com/" + tenant + "/discovery/v2.0/keys" );
com.nimbusds.jose.jwk.source.JWKSource keySource = new com.nimbusds.jose.jwk.source.RemoteJWKSet( endpoint );
com.nimbusds.jose.JWSAlgorithm expectedJWSAlg = com.nimbusds.jose.JWSAlgorithm.RS256;
com.nimbusds.jose.proc.JWSKeySelector keySelector = new com.nimbusds.jose.proc.JWSVerificationKeySelector( expectedJWSAlg, keySource );
jwtProcessor.setJWSKeySelector( keySelector );
com.nimbusds.jose.proc.SecurityContext ctx = null;
com.nimbusds.jwt.JWTClaimsSet claimsSet = jwtProcessor.process( jwtToken, ctx );

@mores I think you may be getting this error if "nonce" includes in access token.  Please refer to SO thread on the same.  I also suggest you to please open a new MSDN forum post with the details and community will help address your query. Please refer to below link to MSDN forum to ask new question -
https://social.msdn.microsoft.com/Forums/azure/en-US/newthread?category=windowsazureplatform&forum=WindowsAzureAD&prof=required.

@mores We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Make rgh-netiquette less eye-catching

I think this is a bit much:

It should roughly match the visual weight of the comment box. Maybe it should be gray or just not a banner at all.
Test URL
https://github.com/refined-github/sandbox/pull/17
https://github.com/refined-github/sandbox/pull/1

I personally don't know if it's a good idea to make this less eye-catching, as I feel like it's an somewhat important notice. I think that as-is, it's sort of helpful to have it stick out as when you(or me personally, at least) first load up the page you see that and you think "ah, maybe I should think about leaving a comment here"

This refers to the notice we have on the Refined GitHub organization. The user literally cannot miss it if they want to leave a message, because the comment field is hidden until they find the button to unhide it.
I want people to see this notice when they look for the comment box, whereas now they see this notice without even trying to leave a comment.


Update xssya.py

Changed SSLv3 to TLS_v1 to fix sites that are updated against POODLE

Thanks for your request - Tool has been updated


Fix Rust panic when the move is made in finished game

Now it just panicks on unwrap when I request another move.

This doesn't happen anymore, since I'm not requesting or sending moves when the game is finished.


Feat/show profile

Description
Fixes #179
Changes
List the changes made to achieve the feature or fix the bug.

Return Profile Page
Return Edit Profile Page
Change paths
Add link in menu
Add 'Go back' button

Screenshots
Add screenshots that show your changes

How Has This Been Tested?
Open menu and use it
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] My changes generate no new warnings
[ ] I have executed manual tests that prove my fix is effective or that my feature works

@DevArtemNuss can you complete the checklist in the description?

@donnyquixotic Done


More powerful pin filtering of Nearby map via allowing users to modify SPARQL query

As requested by @VojtechDostal , power users familiar with SPARQL would find it useful to be able to partially modify the SPARQL query themselves to filter results. We can probably implement this in a similar manner to https://tools.wmflabs.org/wikishootme#lat=50.0720077&lng=14.424068199999999&zoom=15

Adding a screenshot from WikiShootMe. Thank you Josephine for starting this issue :)

My suggestions on how to implement this:

In the "filters" dropdown menu for "place type", we have an additional option: "Advanced options". This should probably stand out from the other place types through the use of different font/color/etc.
When the user selects that, they are brought to a dialog that lets them modify the SPARQL. As we are already looking at a map with an existing query rather than a blank slate, I would suggest that we display the default SPARQL query, rather than a blank text field like WikiShootMe.
The buttons should probably be "Close", "Reset" and "Apply". If the user chooses "Reset", all their changes are cleared and the default SPARQL is displayed again.
If the query is invalid, either we need to check this in the dialog step and inform the user that they need to change it, or display a toast that says "Invalid SPARQL, resetting to default" and do just that.

What do you think @neslihanturan @VojtechDostal @nicolas-raoul ?

Sounds perfect!
If a custom request fails or times out (50% of my SPARQL errors are mistyped variable names, which unfortunately result in hard-to-debug timeouts), I would suggest telling the user to fix or reset their query, so that they don't have to retype it again.

I love the use case @misaochan . Now I am more clear about this issue to create a UI. I agree @nicolas-raoul for the last step. Also we can have reset to default or save my query buttons for further usages maybe? So that they can bring their query back instead of typing all over again.

Custom SPARQL is rather niche, so personally I don't really think a "save my query" feature would be worth the complexity&maintenance. People who write SPARQL queries should be able to save their queries in a memo app, a text file or even an email draft :-)
By the way, the advantage of letting users modify the whole query (rather than just a fraction like WikiShootMe) is that we can do much deeper customization, for instance here is how I would possibly use this feature:

Exclude schools
Search for labels in all of the languages I know, rather than just one language, before fallback
Artificially increase radius in the areas where I have already taken all pictures
Increase the meaning of what is considered as "destroyed"
Sometimes misuse the "destroyed" feature to simply differentiate between two kinds of items. Example: Black for items that have an article only in the Cebuano Wikipedia
Remove some stuff that I typically do not use, to make queries faster

I agree that we probably don't need a "save my query" function for the time being, and also the full query should be editable.

About the last step though: If a custom request fails or times out (50% of my SPARQL errors are mistyped variable names, which unfortunately result in hard-to-debug timeouts), I would suggest telling the user to fix or reset their query, so that they don't have to retype it again.
I don't think we have a way to check the validity of a query without actually executing it.

Ah, when I said "invalid" I was actually thinking about the request failing - are they different? I agree with both of you, auto-resetting is probably a bad idea now that I think about it. :)

Hi everyone, there are some points needs to be clarified appeared during my mockup attempts. Currently we use this query:
SELECT
     (SAMPLE(?location) as ?location)
     ?item
     (SAMPLE(COALESCE(?itemLabelPreferredLanguage, ?itemLabelAnyLanguage)) as ?label)
     (SAMPLE(COALESCE(?itemDescriptionPreferredLanguage, ?itemDescriptionAnyLanguage, "?")) as ?description)
     (SAMPLE(?classId) as ?class)
     (SAMPLE(COALESCE(?classLabelPreferredLanguage, ?classLabelAnyLanguage, "?")) as ?classLabel)
     (SAMPLE(COALESCE(?icon0, ?icon1)) as ?icon)
     ?wikipediaArticle
     ?commonsArticle
     (SAMPLE(?commonsCategory) as ?commonsCategory)
     (SAMPLE(?pic) as ?pic)
     (SAMPLE(?destroyed) as ?destroyed)
   WHERE {
     # Around given location...
     SERVICE wikibase:around {
       ?item wdt:P625 ?location.
       bd:serviceParam wikibase:center "Point(${LONG} ${LAT})"^^geo:wktLiteral.
       bd:serviceParam wikibase:radius "${RAD}" . # Radius in kilometers.
     }

     # Get the label in the preferred language of the user, or any other language if no label is available in that language.
     OPTIONAL {?item rdfs:label ?itemLabelPreferredLanguage. FILTER (lang(?itemLabelPreferredLanguage) = "${LANG}")}
     OPTIONAL {?item rdfs:label ?itemLabelAnyLanguage}

     # Get the description in the preferred language of the user, or any other language if no description is available in that language.
     OPTIONAL {?item schema:description ?itemDescriptionPreferredLanguage. FILTER (lang(?itemDescriptionPreferredLanguage) = "${LANG}")}
     OPTIONAL {?item schema:description ?itemDescriptionAnyLanguage }

     # Get Commons category (P373)
     OPTIONAL { ?item wdt:P373 ?commonsCategory. }

     # Get (P18)
     OPTIONAL { ?item wdt:P18 ?pic. }

     # Get (P576)
     OPTIONAL { ?item wdt:P576 ?destroyed. }

     # Get the class label in the preferred language of the user, or any other language if no label is available in that language.
     OPTIONAL {
       ?item p:P31/ps:P31 ?classId.
       OPTIONAL {?classId rdfs:label ?classLabelPreferredLanguage. FILTER (lang(?classLabelPreferredLanguage) = "${LANG}")}
       OPTIONAL {?classId rdfs:label ?classLabelAnyLanguage}

       OPTIONAL {
           ?wikipediaArticle   schema:about ?item ;
                               schema:isPartOf <https://${LANG}.wikipedia.org/> .
         }
       OPTIONAL {
           ?wikipediaArticle   schema:about ?item ;
                               schema:isPartOf <https://en.wikipedia.org/> .
           SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
         }

         OPTIONAL {
           ?commonsArticle   schema:about ?item ;
                               schema:isPartOf <https://commons.wikimedia.org/> .
           SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
         }
     }
   }
   GROUP BY ?item ?wikipediaArticle ?commonsArticle

Where location, label, description, class, classLabel, icon, wikipediaArticle, commonsArticle, commonsCategory, pic, destroyed are variables that we reach and use their values in NearbYResultItem.kt class. On the other hand ${LONG}, ${LAT}, ${RAD} and ${LANG} are the inputs that we send to the query. So:
1- We should notify the user about they can use these inputs (${LONG}, ${LAT}, ${RAD},${LANG}) in their query as well.
2- We should make some fields (i.e. location, label, description, class...) uneditable, from my understanding of SPARQL, we may let the WHERE block can be edited. If you confirm me I will continue to the mockup accordingly. What I mean by WHERE block is:
WHERE {
     # Around given location...
     SERVICE wikibase:around {
       ?item wdt:P625 ?location.
       bd:serviceParam wikibase:center "Point(${LONG} ${LAT})"^^geo:wktLiteral.
       bd:serviceParam wikibase:radius "${RAD}" . # Radius in kilometers.
     }

     # Get the label in the preferred language of the user, or any other language if no label is available in that language.
     OPTIONAL {?item rdfs:label ?itemLabelPreferredLanguage. FILTER (lang(?itemLabelPreferredLanguage) = "${LANG}")}
     OPTIONAL {?item rdfs:label ?itemLabelAnyLanguage}

     # Get the description in the preferred language of the user, or any other language if no description is available in that language.
     OPTIONAL {?item schema:description ?itemDescriptionPreferredLanguage. FILTER (lang(?itemDescriptionPreferredLanguage) = "${LANG}")}
     OPTIONAL {?item schema:description ?itemDescriptionAnyLanguage }

     # Get Commons category (P373)
     OPTIONAL { ?item wdt:P373 ?commonsCategory. }

     # Get (P18)
     OPTIONAL { ?item wdt:P18 ?pic. }

     # Get (P576)
     OPTIONAL { ?item wdt:P576 ?destroyed. }

     # Get the class label in the preferred language of the user, or any other language if no label is available in that language.
     OPTIONAL {
       ?item p:P31/ps:P31 ?classId.
       OPTIONAL {?classId rdfs:label ?classLabelPreferredLanguage. FILTER (lang(?classLabelPreferredLanguage) = "${LANG}")}
       OPTIONAL {?classId rdfs:label ?classLabelAnyLanguage}

       OPTIONAL {
           ?wikipediaArticle   schema:about ?item ;
                               schema:isPartOf <https://${LANG}.wikipedia.org/> .
         }
       OPTIONAL {
           ?wikipediaArticle   schema:about ?item ;
                               schema:isPartOf <https://en.wikipedia.org/> .
           SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
         }

         OPTIONAL {
           ?commonsArticle   schema:about ?item ;
                               schema:isPartOf <https://commons.wikimedia.org/> .
           SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
         }
     }
   }

For my use case number 2 above, I need to modify the COALESCE, which is outside of WHERE.
I am in favor of having just a big text area, and a tooltip that contains a "read more" link to the wiki (such tooltips with "read more" weblinks can be seen in Achievements). I can write that wiki page, it can even contain a collection of purpose-specific custom queries.
This feature is for power users who are knowledgeable in SPARQL.
So I would be in favor of putting on the user the responsibility of having valid SPARQL with all needed inputs/outputs.

Hmm, we can let people edit COALESCE without editing "as ?label", "as ?description" parts. Them might be superusers when it comes to SPARQL but it is not only about the SPARQL, also about to know about the code in our side and we can not expect them to know the variable names that our code preferred.

We can list the variables in the tooltip or "read more".
Users start from the default query, it is not like they have a blank page.
In SPARQL queries, output variables are always at the same place, and people know to not modify the output variable names.
If they mess up, resetting to default is easy enough.
Having several text fields separated by as ?label/etc areas would make copy/pasting (from the wiki for instance) very cumbersome and error-prone.

"Having several text fields separated by as ?label/etc areas would make copy/pasting (from the wiki for instance) very cumbersome and error-prone."
hmm very true, I didn't think about this user flow. So I will continue as you said with tooltips, thanks for the inputs @nicolas-raoul !

Here is my suggestion, I am happy so hear your feedbacks.

Looks good to me!
A few minor things:

Grey background implies that the text is not editable.
- If you are a super user you can edit nearby query below -> You can customize the Nearby query. If you get errors, reset and apply.
Put the (i) tooltip after that text, rather than after Advanced options.
I suggest this tooltip content:

You can customize the Nearby query to show things that interest you, show labels in your preferred languages, etc. The Nearby query is written in SPARQL, which is very powerful but also hard to debug. We suggest you start from the default query and modify things little by little. The good news is that you can always go back to the default: just reset and apply. (or shorter if that does not fit)
Read more linking to https://commons-app.github.io/docs.html#nearby-query

Here is my suggestion, I am happy so hear your feedbacks.

Looks good to me @neslihanturan . :) @nicolas-raoul 's changes sound good as well.

Where location, label, description, class, classLabel, icon, wikipediaArticle, commonsArticle, commonsCategory, pic, destroyed are variables that we reach and use their values in NearbYResultItem.kt class

I think that it might be beneficial to check that these variables all exist when the user taps "Apply" - if any of them don't exist, show an error dialog and do not proceed. Otherwise, for instance if a user removes commonsCategory, they could get a nice map with all the pins shown, but the app will probably crash at the final stage of a Nearby upload since we require a check for that variable. Given that the events are so far apart, they may not connect the crash to their SPARQL modification, and file a crash report that we will be scratching our heads over for months (especially if they don't mention in the crash report that they made a modification).

Checking that the request's String contains the String ?wikipediaArticle (etc) before the WHERE can be worth checking indeed, even if that does not guarantee that wikipediaArticle will actually be an output, even less that it is in the right format (for instance it could contain a number).
I would recommend against checking for the String as ?wikipediaArticle, because someone who reads only English might decide to make their SPARQL faster by removing the whole localization fallback mechanism, removing the need for SAMPLE [...] AS part.

Makes sense. I wonder if it's possible to make a note in ACRA if a modified query is being used in Nearby?

Here are mockups after reviews, I hope all good:

Looks great to me. :) I think "Advanced" would look nicer with the UI, but "Advanced Options" seems clearer. I'm OK with either one.

I also think that Advanced Options is clearer, but I a okay whichever you wish.

Sorry for nitpicking, let's go with "Advanced Options" since you both think it is clearer :-)

Hi @misaochan , quick question around this

Will the radius expander we apply implicitly around the nearby query be applicable even with the advanced query?

Hi @ashishkumar468
I think most people will not modify the ${RAD} part, in which case no special code is needed.
But if we want to take care of those who modify it, I can see two cases that could be considered as special:

The custom SPARQL contains no ${RAD}. In that case, maybe just ignore (do not perform the radius string replacement) and proceed as usual. Maybe no source code change is even necessary depending on the replacement function that was used.
The radius expander while loop never ends. To handle that case, I would suggest adding a RADIUS_LOOP_MAX_ITERATIONS (I suggest setting it to 16 meaning 4900 kilometers which works even in the most remote places, I just tried) and throwing an error if the while loop reaches it.

Thanks for the input @nicolas-raoul , this should work : )


crane cp fails

Describe the bug
I tried to upload using crane and it failed.
bin/zot-darwin-arm64 serve examples/config-minimal.json

{"level":"info","module":"http","clientIP":"<IP_ADDRESS>:54199","method":"HEAD","path":"/v2/busybox/blobs/sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8","statusCode":200,"latency":"498.167µs","bodySize":0,"headers":{"User-Agent":["crane/0.10.0 go-containerregistry/(devel)"]},"goroutine":82,"caller":"zotregistry.io/zot/pkg/api/session.go:132","time":"2022-07-13T10:57:01.683065-07:00","message":"HTTP API"}
{"level":"info","module":"http","clientIP":"<IP_ADDRESS>:54199","method":"PUT","path":"/v2/busybox/manifests/sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52","statusCode":415,"latency":"6.292µs","bodySize":0,"headers":{"Accept-Encoding":["gzip"],"Content-Length":["527"],"Content-Type":["application/vnd.docker.distribution.manifest.v2+json"],"User-Agent":["crane/0.10.0 go-containerregistry/(devel)"]},"goroutine":82,"caller":"zotregistry.io/zot/pkg/api/session.go:132","time":"2022-07-13T10:57:01.683779-07:00","message":"HTTP API"}

> crane cp busybox localhost:8080/busybox:latest

2022/07/13 10:57:00 Copying from busybox to localhost:8080/busybox:latest
2022/07/13 10:57:01 existing blob: sha256:19d511225f94f9b5cbf3836eb02b5273c01b95da50735742560e3e45b8c8bfcc
2022/07/13 10:57:01 existing blob: sha256:62aedd01bd8520c43d06b09f7a0f67ba9720bdc04631a8242c65ea995f3ecac8
Error: failed to copy index: PUT http://localhost:8080/v2/busybox/manifests/sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52: unexpected status code 415 Unsupported Media Type

To Reproduce
Steps to reproduce the behavior:

Configuration
Client tool used
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

@tamalsaha Thanks for filing the issue.
zot is a OCI dist-spec-only registry which means clients need to be conformant as well. That said, investigating this.
Meanwhile, would it be possible for you to consider skopeo instead?
https://github.com/project-zot/zot#skopeo

Thanks for the quick response. I just tried skopeo but I am getting http/https error. I am running zot binary locally. I am not sure how to tell skopeo to not use https.
> ./bin/zot-darwin-arm64 serve examples/config-minimal.json
{"level":"info","params":{"distSpecVersion":"1.0.1-dev","GoVersion":"go1.18.4","Commit":"v1.4.2-rc2-8-g8da34d5","BinaryType":"-sync-search-scrub-metrics-ui_base","AccessControl":null,"Storage":{"Dedupe":true,"GC":true,"Commit":false,"GCDelay":3600000000000,"GCInterval":0,"RootDirectory":"/tmp/zot","StorageDriver":null,"SubPaths":null},"HTTP":{"Address":"<IP_ADDRESS>","Port":"8080","AllowOrigin":"","TLS":null,"Auth":{"FailDelay":0,"HTPasswd":{"Path":""},"LDAP":null,"Bearer":null},"RawAccessControl":null,"Realm":"","AllowReadAccess":false,"ReadOnly":false,"Ratelimit":null},"Log":{"Level":"debug","Output":"","Audit":""},"Extensions":null},"goroutine":1,"caller":"zotregistry.io/zot/pkg/api/controller.go:107","time":"2022-07-13T11:13:44.818818-07:00","message":"configuration settings"}
{"level":"info","cpus":8,"max. open files":65535,"goroutine":1,"caller":"zotregistry.io/zot/pkg/api/controller.go:102","time":"2022-07-13T11:13:44.818856-07:00","message":"runtime params"}

> skopeo copy --format=oci docker://busybox docker://localhost:8080/busybox --multi-arch=all
Getting image list signatures
Copying 10 of 10 images in list
Copying image sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52 (1/10)
Getting image source signatures
FATA[0001] trying to reuse blob sha256:19d511225f94f9b5cbf3836eb02b5273c01b95da50735742560e3e45b8c8bfcc at destination: pinging container registry localhost:8080: Get "https://localhost:8080/v2/": http: server gave HTTP response to HTTPS client

Since you haven't setup TLS certs yet, also use --dest-tls-verify=false like so:
skopeo copy --format=oci --dest-tls-verify=false docker://busybox docker://localhost:8080/busybox --multi-arch=all

Thanks. The tls issue solved. But I see a new error.
> skopeo copy --format=oci --dest-tls-verify=false docker://busybox docker://localhost:8080/busybox --multi-arch=all
Getting image list signatures
Copying 10 of 10 images in list
Copying image sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52 (1/10)
Getting image source signatures
Copying blob 19d511225f94 skipped: already exists
Copying config 5adc2f9fad done
Writing manifest to image destination
Storing signatures
Copying image sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d (2/10)
Getting image source signatures
Copying blob 94b622d2880b done
Copying config 3cb910bc00 done
Writing manifest to image destination
Storing signatures
Copying image sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992 (3/10)
Getting image source signatures
Copying blob 7bc0df393b28 done
Copying config 54929f90e2 done
Writing manifest to image destination
Storing signatures
Copying image sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc (4/10)
Getting image source signatures
Copying blob 7ceae7886eaf done
Copying config 6bfc8b040c done
Writing manifest to image destination
Storing signatures
Copying image sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a (5/10)
Getting image source signatures
Copying blob 87379020f3b6 done
Copying config 4463ac2fb2 done
Writing manifest to image destination
Storing signatures
Copying image sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933 (6/10)
Getting image source signatures
Copying blob 122c52305f25 done
Copying config cd1da0766e done
Writing manifest to image destination
Storing signatures
Copying image sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea (7/10)
Getting image source signatures
Copying blob ff2d9c2b154f done
Copying config 353683d1a1 done
Writing manifest to image destination
Storing signatures
Copying image sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c (8/10)
Getting image source signatures
Copying blob cd719190bb51 done
Copying config 39fcd2b22a done
Writing manifest to image destination
Storing signatures
Copying image sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132 (9/10)
Getting image source signatures
Copying blob 46b5947a368c done
Copying config 1b73bdb9af done
Writing manifest to image destination
Storing signatures
Copying image sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc (10/10)
Getting image source signatures
Copying blob 55b62457923c done
Copying config 8ae09c4662 done
Writing manifest to image destination
Storing signatures
Writing manifest list to image destination
FATA[0019] Uploading manifest list failed, attempted the following formats: application/vnd.oci.image.index.v1+json(uploading manifest latest to localhost:8080/busybox: StatusCode: 415, )

{"level":"info","module":"http","clientIP":"<IP_ADDRESS>:54865","method":"PUT","path":"/v2/busybox/manifests/latest","statusCode":415,"latency":"3.5µs","bodySize":0,"headers":{"Accept-Encoding":["gzip"],"Connection":["close"],"Content-Length":["2166"],"Content-Type":["application/vnd.oci.image.index.v1+json"],"Docker-Distribution-Api-Version":["registry/2.0"],"User-Agent":["skopeo/1.8.0"]},"goroutine":233,"caller":"zotregistry.io/zot/pkg/api/session.go:132","time":"2022-07-13T11:39:05.238791-07:00","message":"HTTP API"}

Can you try dropping the --multi-arch=all argument?

Just FYI, another client which we know is fully OCI compliant is regclient.

Can you try dropping the --multi-arch=all argument?

Another issue is you have specified any image tag on the destination side, which is not OCI compliant.
docker://localhost:8080/busybox:latest instead?
Would try this first.

Hi @tamalsaha,
It is failing since --multi-arch is sending an image index to an URI endpoint which expects a image manifest.
However, you can override os and arch in skopeo as follows:
skopeo --override-arch=amd64 --override-os=linux copy --format=oci --dest-tls-verify=false docker://busybox:latest docker://localhost:8080/busybox:latest

busybox on dockerhub only has limited arch/os combinations available. Following is a trace on a Mac running zot.
skopeo --override-arch=amd64 --override-os=darwin copy --format=oci --dest-tls-verify=false docker://busybox:latest docker://localhost:8080/busybox:latest
FATA[0001] choosing an image from manifest list docker://busybox:latest: no image found in manifest list for architecture amd64, variant "", OS darwin

skopeo --override-arch=arm64 --override-os=linux copy --format=oci --dest-tls-verify=false docker://busybox:latest docker://localhost:8080/busybox:latest
Getting image source signatures
Copying blob 87379020f3b6 skipped: already exists
Copying config 4463ac2fb2 done
Writing manifest to image destination
Storing signatures

From my testing, it doesn't look like Zot supports the Docker media types, or the OCI Index media type, only the OCI Image. That means multi-platform manifests can't be copied, but I can copy single platform images, by name or digest, as long as the media type is application/vnd.oci.image.manifest.v1+json.

That limitation on media types is confirmed here:
https://github.com/project-zot/zot/blob/ada21ed84237e858892d436c677bddeddd189342/pkg/storage/local.go#L1556-L1559

@sudo-bmitch,
As per the spec,
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-manifests

The index manifest is frequently used (along with the docker media types), so I'm a bit surprised to see they aren't supported:
https://github.com/opencontainers/image-spec/blob/main/image-index.md

Adding @jdolitsky to the discussion here.
Multi-arch image push as done by skopeo pushes as oci image index to the manifests endpoint, while zot expects an oci image manifest. Not clear if zot is non-compliant, but if so, we would like to fix it.

It may have to do with the busybox image being of Docker type vs OCI:
$ crane manifest busybox  | jq -r .mediaType
application/vnd.docker.distribution.manifest.list.v2+json

You would want to use something to convert it instead of direct crane cp

@rchincha , do you see Zot supporting common Docker images like busybox as-is or require some kind of conversion to be uploaded to a Zot registry? I understand that this might require supporting more than just the OCI spec.

zot aims to be vendor-neutral which means staying close to OCI standards. So, short answer is NO.
But for all practical purposes, this is seldom a serious limitation (also from our experience) since there are plenty of tools that do the conversion (skopeo does too)

I have never used skopeo before yesterday. How will oen copy this busybox image into zot registry? How do I convert the manifest?

skopeo --override-arch=arm64 --override-os=linux copy --format=oci --dest-tls-verify=false docker://busybox:latest docker://localhost:8080/busybox:latest
^ is your ask different from this?

Yes, because this command will only upload the linux/arm64 image. I want to upload images for all the architectures that busybox has on Docker hub . Then also upload the manifest that points to those uploaded architecture specific images.

The downside of converting manifests to the OCI media types is the digest is modified in the process. That means you can no longer include image signing metadata on the image, and users cannot pin to a digest from a trusted external source. Tools that do the conversion aren't that widespread, and tools to build container images still strongly favor the Docker media types.

True. @tamalsaha pls evaluate if this is a serious limitation for you - basically, cross-repo copying and cross-repo references.
That said, if you want to control your entire pipeline ...
https://github.com/project-stacker/stacker
https://github.com/chainguard-dev/apko
https://github.com/sigstore/cosign
PS: we are rolling out a -rc release to address the multi-arch requirement.

True. @tamalsaha pls evaluate if this is a serious limitation for you - basically, cross-repo copying and cross-repo references.
That said, if you want to control your entire pipeline ...
https://github.com/project-stacker/stacker https://github.com/chainguard-dev/apko https://github.com/sigstore/cosign
PS: we are rolling out a -rc release to address the multi-arch requirement.

@tamalsaha https://github.com/project-zot/zot/releases/tag/v1.4.2-rc5 is now available which should address the multi-arch requirement.

@tamalsaha FYI, https://github.com/project-zot/zot/releases/tag/v1.4.2 is now officially released which includes the multi-arch support.

I get the impression this issue is resolved, but I'm still getting this with latest zot
❯ regctl image copy nginx:1.22.1 localhost:5000/nginx:1.22.1
WARN[0004] Failed to push manifest                       err="failed to put manifest localhost:5000/nginx@sha256:5bbe9f58a36db5fd0b65a59134c0342b9fc111ef2ade5887ae923ac4d3bafe23: request failed: unexpected http status code: Unsupported Media Type [http 415]: {\"errors\":[{\"code\":\"MANIFEST_INVALID\",\"message\":\"manifest invalid\",\"description\":\"During upload, manifests undergo several checks ensuring\\n\\t\\t\\tvalidity. If those checks fail, this error MAY be returned, unless a more\\n\\t\\t\\tspecific error is included. The detail will contain information the failed\\n\\t\\t\\tvalidation.\",\"detail\":[{\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\"}]}]}" target="localhost:5000/nginx:1.22.1"
failed to put manifest localhost:5000/nginx@sha256:5bbe9f58a36db5fd0b65a59134c0342b9fc111ef2ade5887ae923ac4d3bafe23: request failed: unexpected http status code: Unsupported Media Type [http 415]: {"errors":[{"code":"MANIFEST_INVALID","message":"manifest invalid","description":"During upload, manifests undergo several checks ensuring\n\t\t\tvalidity. If those checks fail, this error MAY be returned, unless a more\n\t\t\tspecific error is included. The detail will contain information the failed\n\t\t\tvalidation.","detail":[{"mediaType":"application/vnd.docker.distribution.manifest.v2+json"}]}]}

am I doing something wrong?

@itaysk, see @rchincha's comment above, only the OCI media types are supported, not the docker ones: https://github.com/project-zot/zot/issues/622#issuecomment-1184655793

This is a major limitation of Zot in any real environment and should be documented clearly as an intentional limitation in the readme.

Update:
skopeo copy docker://nginx docker://custom-zot-reg.com/nginx
This works well as expected although there's no need to add the flag --format=oci in the copy command.


Add all controller metrics

This commit adds metrics of HierConfig and all other object controllers.
It includes total reconciliations and peak concurrent reconciliations
and related api writes.
Tested on GKE cluster and the metrics can all be viewed in Stackdriver.

/assign @adrianludwin

lgtm!
/assign @rjbez17
/unassign @adrianludwin

Hi @rjbez17, these are the rest of the controller metrics exported to Stackdriver. The prometheus metrics will be added through #416 .

🎉
/lgtm
/approve


HTML-only templates or plugin-based templating engine

Blazor should remove the use of C# within the HTML templates and move to pure HTML Attribute logic like angular/vuejs/knockout.
*Note: This is a follow-up action after asking for vuejs/angular-style templates during the community standup a while back [https://youtu.be/CWuIz9khK-o?list=PL1rZQsJPBU2StolNg0aqvQswETPcYnNKL&t=3857] (I know it was a super long time ago 🤦♂ )
My intent isn't to copy other popular frameworks but to take the learnings and knowledge that MS already has when developing UI frameworks. Notably the shift to having a declarative language like XAML which uses data binding on attributes like 'ItemSource' or 'Visibility' instead of allowing code to reside inside those templates. It promotes the separation of business logic from residing within the template and makes it more readable for programmers/designers. In the field, I've observed that pure web designers on teams are often discouraged or restricted from committing changes to templates that have languages injected into them which makes them more dependent on developers to make cosmetic changes. Personally, I don't enjoy having two languages in the same file (even in vuejs or angular) and wish it followed the XAML/XAML.cs style. On the other hand, I understand the convenience of having them within the same file, but I do not agree with mixing the languages (one of the main reasons I don't prefer react).
I understand that Blazor uses the Razor templating engine and we are currently restricted to what it offers. IMO, since Razor templates only work on the server, I would relate them to server-side frameworks like jinja2 or Django templates. These frameworks address a different use case of back-end engineers optionally sending parts of HTML to the client and doesn't tool for SPAs. I understand the convience of using it as the engine but I do not think its practices migrate well to a client UI framework.
Since there seems to be a strong tension to have a story for migrating Razor users and templates to Blazor, I would suggest investing in a layer of abstraction where other template engines may be exchanged from the one out of the box. I'd personally invest a large quantity of development time to make sure that a pure attribute option become available.

Im sorry, but I really hope this will never happen. That's what makes blazor unique, using c # on the client side.

@GoranHalvarsson you understand that this doesn't eliminate C# as the view logic that lives in the '@functions' section. I am excited to see C# be used on the client side as well but not in the middle of my UI elements.

Yes, but that’s what makes blazor so wonderful. Look at the community standup(from october) where steve does a demo on tabs (in blazor). Specially that part where he puts a simple if statement for the ”third tab”.
https://youtu.be/wwi55L6Qb18

Personally i dont like the @functions thing. I prefer Razor pages way much more. Write any C# code anywhere using @{...}.

@jtillman I filed #960 asking for something similar.  Steve punted it over to Razor team, but they didn't have any interest in focusing on it at the time, https://github.com/aspnet/Razor/issues/2397.  Understandable, but it would be nice if we could plug something like this into Razor.
Maybe you could create your own  or  element to get a more declarative syntax?

@jtillman Blazor is created to free professional programmers from JavaScript mess. As @jtillman said it has already been discussed in #960. Notice there are a lot of supporters (probably JavaScript programmers) and a lot of opponents (probably C# programmers). It is difficult to please everyone.

to free professional programmers from JavaScript mess

Hey, this seems to be strong, biased opinion.

The Razor syntax is one of the strong arguments FOR Blazor. This is not Angular. And maaan I am happy about that!

@xclud If I am not mistaken, there is little difference between Razor Pages and Blazor. You can put any C# code in the page, wherever you like.
The @functions {} block is just a simpler version for the inheritance model. You can move the @functioins {} code into a separate file and class and inherit from it. It is a nice way to separate the code from the presentation.
Separating code and presentation of Blazor pages
Separation of concerns

@peterblazejewicz my opinion is of course biased - I have more than 30 years of experience in strongly typed languages like Pascal, C, C++ and now C#. Blazor is the first SPA framework for people like me. Those people have to write big applications. Code have to be well structured and easy to understand for maintainers. We often need to maintain this code for the period of 10 years or more. Those who prefer JavaScript and ngIf or v-if attributes already have a lot of other frameworks. Hopefully Blazor will never drift in that direction.

Microsoft has used attributes to control User Interfaces way before these other frameworks existed. So those building Microsoft UI should already be familiar with the concept. I believe that a portion of the other frameworks success in large teams was accredited to the attribute based pattern.
Frameworks with Workflow Statements as Attributes
Year 2006/2008  WPF <- Microsoft

ItemSource="{Binding Cards}" & Visibility="{Binding HasCards}"

Year 2010 Knockout Js  <- Microsoft

data-bind="foreach: Cards, visible: HasCards"

Year 2010 Angular

*ngFor="let card of Cards" & *ngFor="HasCards"

Year 2014 VueJs

v-for="card in Cards" & v-if="HasCards"

Lets steer the conversation to answering some fundamental questions:
Why are we explicitly NOT following the pattern that we had with XAML?
Is our position that attribute binding is a bad thing in Xamarin and WPF so we're diverging from it?
If we encourage teams to have code within the template, what good or bad side effect are they likely to experience?
How much should building UI for the desktop be from building UI for the browser (using MS technologies)?

Why are we explicitly NOT following the pattern that we had with XAML?

Because Blazor is the next big step in the ASP.NET Core evolution and not Xamarin/WPF.

If we encourage teams to have code within the template, what good or bad side effect are they likely to experience?

This v-for="card in Cards" & v-if="HasCards" is also code in the template but written in different "language". Simple templates alone are never enough, so people add "artificial languages" to them. Those "languages" are never as good and complete as standard programming languages. Some constructs in those templates look like a poor workarounds to suddenly encountered problems. In Blazor/Razor we have standard well designed C# language and we don't have to learn anything new and ugly.
Do you really think that this example "without code" taken from VueJs doc:
<template v-if="ok">

Title

Paragraph 1

Paragraph 2

</template>

is better than this with one C# instruction?
@if (ok)
{

Title

Paragraph 1

Paragraph 2

}

How much should building UI for the desktop be from building UI for the browser (using MS technologies)?

Do you want to have yet another Silverlight? You can read these issues: #111, #143, #840.
In initial post you have written:

Personally, I don't enjoy having two languages in the same file (even in vuejs or angular) and wish it followed the XAML/XAML.cs style.

This was discussed a few months ago here #278

Razor is pretty mature. It does a lot of things very well. Blazor is Razor in the Browser!
We should try to get the most out of Razor before changing it into something completely different. XAML is maybe a nice idea for many people, but it has nothing to do with Razor. I could envision a different SPA Framework with XAML as frontend language, but Blazor isn't it.
Idea: Maybe we could implement something like Taghelpers, that a component can be used as an additional attribute on many different tags. So you could implement this functionality yourself.


The history doesn't load

The history doesn't load.
https://user-images.githubusercontent.com/1689815/119820236-8accb780-bef1-11eb-9b7e-5f769ead7591.mp4
After stopping the screen recording and coming back to the app, it shows the empty history screen.

Still here in latest build

I cannot reproduce. Could you give me the exact same steps you followed?

On a physical device,

click on history.
It takes quite a long while to load (on a fresh install)
and then loads eventually.

Are we refreshing something in the background ?
Do we need to block the whole view while doing it ?


Unable to log in.

Running the newest version.
Unable to log in after installation.
SQLite and PHP7 installed on shared hosting.
AllowOverride set to use .htaccess files.
Getting a 301 redirect when I call https://www.iemssupply.net/taskboard/api.
Installed at https://www.iemssupply.net/taskboard/ if you want to take a look.
Thanks in advance,
JC

Have you made your api directory writable (chmod 777 ./api) ?

Yes. Permissions are set to 0777 for the directory itself, do the permissions need to be set recursively for everything below that?

I am guessing this has to do with the fact that my shared hosting provider won't let me make modifications to the AllowOverride directive in my httpd.conf file.  Thanks anyways.

I think I'm going to take a stab at this anyways. Wish me luck :-)

After some digging, some comment deleting, and a little bit of thought, I went ahead and installed this on a laptop that I control.  It would certainly be nice to figure out how to get it up and running on a shared hosting service, but I'll let it go for now.  Cheers!

Does your shared hosting allow .htaccess files to use rewrite? I ask because every endpoint I try to hit just gives a 404 Not Found (instead of say a 500 Server Error).

To my knowledge, it does.  I have several other software packages on this domain/server that allow .htaccess files to use rewrite.  It's (ugh) GoDaddy shared.

Do you have access to any error logs for the server? Maybe that would point us in the right direction.

Let me dig and see which logs I can get my hands on.  Might be a day or two since this is a sideline thing.  Can I get back to you?

Of course.

Any update on this? I do have the same issue.  Thanks!

Which error logs did we need to look at?  Raw Access, other?
Thanks,
JC

If there is anything in api/logs/ that's a good start. Otherwise, logs for the Apache (or whatever server) that coincide with the failure.

xxx.xxx.xxx.xxx - - [17/Jul/2020:11:50:18 -0700] "POST /taskboard/api/authenticate HTTP/2.0" 404 63 "https://www.iemssupply.net/taskboard/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
xxx.xxx.xxx.xxx - - [17/Jul/2020:11:50:20 -0700] "POST /taskboard/api/login HTTP/2.0" 404 63 "https://www.iemssupply.net/taskboard/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"

I've decided to go another direction with this.  Unfortunately, I have some other projects to get in above this one.  Thanks for the help anyways, maybe I'll have some time to pick this back up later.
JC


ansible operator interval loop

Type of question
Are you asking about community best practices, how to implement a specific feature, or about general context and help around the operator-sdk?
about general context and help around the operator-sdk
Question
What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
Just deployed an ansible operator.
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
The operator reconcile loop to run after N minutes (which happens when using a go operator).
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
The ansible operator reconcile loop never runs based on a time interval, just when there are changes in any of the watched resources.
Environment

operator-sdk version:

operator-sdk version: "v0.16.0"
commit: "55f1446c5f472e7d8e308dcdf36d0d7fc44fc4fd"

Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.3+012b3ec", GitCommit:"012b3ec", GitTreeState:"clean", BuildDate:"2020-07-24T07:23:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind: openshift 4

Additional context
I wanted to know if a time interval reconcile loop is supported in the ansible operator.
If not, is that a limitation of ansible-runner?

Hi @odra,
You are using an old version. Officially, only 0.19.x and 1.0 are supported.  What do you think about the upgrade and migrate your project to use 1.0 with the new layout? Would it be possible? If it is a bug with ansible sdk base image, it might already be solved.  See its migration guide.

HI @odra,
Also, could you please confirm my understanding of your issue. Are you using the  reconcilePeriod in the watches file and you are not seen the CR be reconciled after X period? Would be this the case?


March security update

Resolves HASH_SIGN_FOLLOWED_BY_ISSUE_NUMBER
What is being addressed
Describe the current behavior you are modifying. Please also remember to update any impacted documentation.
How is this addressed

Describe the changes made, and if appropriate, why they are addressed this way
Note any pending work (with links to the issues that will address them)
Update documentation
Update CHANGELOG.md if needed
Increment template version if needed, for guidelines see Authoring templates - versioning

/test

/test-destroy-env

/test-destroy-env

/test

/test-destroy-env


provide server events to get realtime progress on speedtest

speedtest-net offers events to listen to, when starting a test.
test phases could be pushed to the client via socket.io and displayed to give better ux

implemented


Implement Samplegen Nodejs using MVVM

Implement Samplegen Nodejs using MVVM #289

Current coverage is 81.51% (diff: 77.85%)

Merging #416 into master will decrease coverage by 0.06%

@@             master       #416   diff @@
==========================================
  Files           189        193     +4
  Lines          7006       7145   +139
  Methods           0          0
  Messages          0          0
  Branches        910        930    +20
==========================================
+ Hits           5715       5824   +109
- Misses         1020       1043    +23
- Partials        271        278     +7

Powered by Codecov. Last update ceacde3...b52427d

LGTM for following MVVM patterns - I'll let others check the Node-specific stuff.

Generated code LGTM.
As we chatted offline, you can ignore the decrease of the coverage in this case, the code looks like still reasonably covered.

And don't forget to choose 'Squash and merge' option instead of 'Merge pull request'.


docs: provide a DefaultTheme.AlgoliaSearchOptions['locales'] template for translators

What problem is this solving
I believe that this feature will help to better the translators' work, because this will allow serving a translation that is paring the Chinese version that goes a little beyond translating the text of buttons and interface's instructions.
Proposed solution
I think we could provide a version of the object below with English content to give a starting point for those who are dedicated to translating the documentation content:
export const zhSearch: DefaultTheme.AlgoliaSearchOptions['locales'] = {
  zh: {
    placeholder: '搜索文档',
    translations: {
      button: {
        buttonText: '搜索文档',
        buttonAriaLabel: '搜索文档',
      },
      modal: {
        searchBox: {
          resetButtonTitle: '清除查询条件',
          resetButtonAriaLabel: '清除查询条件',
          cancelButtonText: '取消',
          cancelButtonAriaLabel: '取消',
        },
        startScreen: {
          recentSearchesTitle: '搜索历史',
          noRecentSearchesText: '没有搜索历史',
          saveRecentSearchButtonTitle: '保存至搜索历史',
          removeRecentSearchButtonTitle: '从搜索历史中移除',
          favoriteSearchesTitle: '收藏',
          removeFavoriteSearchButtonTitle: '从收藏中移除',
        },
        errorScreen: {
          titleText: '无法获取结果',
          helpText: '你可能需要检查你的网络连接',
        },
        footer: {
          selectText: '选择',
          navigateText: '切换',
          closeText: '关闭',
          searchByText: '搜索供应商',
        },
        noResultsScreen: {
          noResultsText: '无法找到相关结果',
          suggestedQueryText: '你可以尝试查询',
          reportMissingResultsText: '你认为该查询应该有结果？',
          reportMissingResultsLinkText: '点击反馈',
        },
      },
    },
  },
}

Describe alternatives you've considered
I believe the solution proposed is good enough to be considered to be implemented.

@Jinjiang, what you think about the point I raised? It is not a big thing, but I believe to be worth of consideration.

Feel free to add it to the contribution guidelines

Agree. I think it's a good idea to provide a template for translations.

Feel free to add it to the contribution guidelines

Of course, I will edit the contribution guidelines soon. I just created the issue to know what you people think about this improvement for the documentation.


🚀 [Feature Request] - Redesigning Blog Post UI

Is your feature request related to a problem ? Please describe. ✍
Enhancement

Redesigning of the ui of blogs page.
The proper ui is missing here. I would like to enhance it and add proper ui to it.
Please assign it to me under gssoc'23. I would like to work upon this issue and improve the ui
Describe briefly how you would implement this enhancement.
Some steps to implement this enhancement-
1. Step 1
2. Step 2
3. Step 3

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

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

Would love to see the new UI for blogs @akanksha984 . Assiging this.

All the updates have been made.

Looks Amazing 🚀  @akanksha984 . Thanks.  You can raise the Pull Request with your changes.

Thank you, The blog1 has been updated could you assign me all the blogs so that I could update all of them It would take some more time as all the blogs will have to be styled individually, Also the common part has been updated, footer has been added, hover effects, image sizing has been done

@akanksha984 Yes please.

Thank you

Please check it @Harshil-Jani https://github.com/amupedia2021/Project-Amupedia/pull/526
Hope you like it 😇


Fixed #33437: being able to render form fields individually using form.field.as_p

This PR adds the feature to render the fields of a form individually using the {{ form.field.as_p }} syntax.
This is only a proposition for now. It is meant to be discussed. In particular, I had to change the markup for hidden fields.
I opened a ticket to follow discussions on this feature request.
P.S.: Please also indicate me if it needs further testings. I haven't been able to run them locally. I get:
TypeError: cannot pickle 'traceback' object
Exception ignored in: <function Pool.__del__ at 0x7fee1a63c940>

Hi,
You need to install a few requirements to run the test suite locally, see https://docs.djangoproject.com/en/4.0/internals/contributing/writing-code/unit-tests/#quickstart

You need to install a few requirements to run the test suite locally, see https://docs.djangoproject.com/en/4.0/internals/contributing/writing-code/unit-tests/#quickstart

I did that, though. I even tried going with Tox, which installs them automatically before running the tests, but no luck.

I can confirm that tblib is correctly installed. Running without parallelisation works correctly though. It will do for now.

Closing as per ticket-33437.


Add signatureAlgorithms argument to Sig class

Currently Sig defaults to Schnorr signatures which is causing a problem w/ MultiSig contracts. We need to default to ECDSA sigs and add an optional 3rd signatureAlgorithms argument to the Sig class. For example
export declare class Sig {
    keypair: ECPair;
    hashtype: number;
    sigtype: number;
    constructor(keypair: ECPair, hashtype: number, sigtype: number = 0x00);
}

Also can we make the hashtype argument optional and default to 0x01? That way there could be 3 states.
// default to 0x01 SIGHASH_ALL for hashtype and 0x00 ECDSA for sigtype
.spend(alicePK, new Sig(aliceKP))

// default to 0x00 ECDSA for sigtype
.spend(alicePK, new Sig(aliceKP, 0x01))

// explicit
.spend(alicePK, new Sig(aliceKP, 0x01, 0x00))

Let's pair program when you get to this so that we can confirm the hashtype and sigtype hex values are correct in my comment above.
Primarily we want to add a 3rd sigtype arg to the Sig constructor. We also want to make the 2nd and 3rd args optional. Ensure the 2nd arg defaults to SIGHASH_ALL and ensure the 3rd arg defaults to ECDSA


Vite 3 - force-including unknown dependency bombs out

Describe the bug
In Vite 2, force-including an unknown dependency via optimizedDeps.include or ssr.noExternal would log a warning only. In Vite 3, the dev server / production build bombs out with the error:
error during build:
Error: Failed to resolve force included dependency: banana
    at addManuallyIncludedOptimizeDeps (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:38515:27)
    at async initialProjectDependencies (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:38313:5)
    at async initDepsOptimizer (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:37812:32)
    at async doBuild (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:43100:9)
    at async build (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:43062:16)
    at async CAC.eval (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/cli.js:758:9)

Reproduction
https://stackblitz.com/edit/vitejs-vite-ecaudg?file=vite.config.js&terminal=dev
System Info
System:
    OS: macOS 12.0.1
    CPU: (8) arm64 Apple M1
    Memory: 108.19 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.4.0 - ~/.nvm/versions/node/v18.4.0/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.12.1 - ~/.nvm/versions/node/v18.4.0/bin/npm
  Browsers:
    Chrome: 103.0.5060.53
    Firefox: 95.0
    Safari: 15.1

Used Package Manager
npm
Logs

Click to expand!
❯ npm run build
$ vite build
vite v3.0.0-beta.5 building for production...
error during build:
Error: Failed to resolve force included dependency: banana
    at addManuallyIncludedOptimizeDeps (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:38515:27)
    at async initialProjectDependencies (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:38313:5)
    at async initDepsOptimizer (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:37812:32)
    at async doBuild (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:43100:9)
    at async build (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/chunks/dep-332aa27f.js:43062:16)
    at async CAC.eval (file:///home/projects/vitejs-vite-ecaudg/node_modules/vite/dist/node/cli.js:758:9)

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Maybe the error should be caught here
https://github.com/vitejs/vite/blob/09742e21dc8d59c57d82e384fd58f7da3c08cd74/packages/vite/src/node/server/index.ts#L551

It seems have been fixed by #8917

Can confirm running npm i vite@beta && npm run dev in the repro it's fixed.


Use mermaid & jquery from npm instead of own copies

This looks nice. I would prefer to keep code, which converts mermaid stuff in separate process (phantom) in that separate convert folder. Could you please keed it there + remove npm debug log from merge? I will be more than happy to merge it then.

Sorry, I missed this one. It's standard to have npm-debug.log in .gitignore file to prevent it for being uploaded. Also, I've removed the convert folder since now that all assets are removed the only item on the convert folder is convert.html, that's somewhat redundant.

Any update on this?

Uff, I am sorry for being so late. I missed this. Git now complains about merge conflicts. Can you please update this.


devon4j migration issues

We support migrating (upgrading) of devon4j projects with devon-ide. However there are currently a few issues:

not all minor releases are reflected. Hence upgrading from those does not work OOTB.
the CLI for migration is IMHO flawed: devon java update would more imply to update java/jdk as devon java setup does install java/jdk. Before our first official release and pusing this out to the wild, I would love to improve the CLI and rename update to something more appropriate as e.g. migrate[-project].
the Migrator/Migrations are entirely untestet. We should add minimal unit tests.
ideally our integration test could contain or create an oasp4j:2.6.0 project from archetype and migrate it step by step to the latest version while assuring that a maven build after each step is successful.

Fixed with PR #163
However, for the record:
When starting from oasp4j:2.6.0 and migrating onwards the result does not build properly. I currently consider this as legacy problems. PRs are most welcome.


CLI script in version 0.14.1 silently fails

Hi,
I'm not familiar enough with node or with the bootlint app specifically, so I'm not sure what exactly is going wrong. I'll share what I've found, in the hope that others can find a solution.
Today I installed the latest version, 0.14.1, of the bootlint app using npm -g install bootlint. When I run the CLI script it silently fails. That is, it doesn't check any files, it doesn't respond to command line options, it just exits with a zero status code.
If I manually copy the cli.js file from the 0.13.0 release into the node_modules/bootlint/src directory, bootlint appears to work as expected. Files are checked, etc.
This suggests that there is something wrong with the latest version of the cli.js script. I hope this is enough for someone more experienced than I, to identify the root cause and fix the issue.
With thanks.
-Corey

CC: @XhmikosR @hnrch02

CC: @kkirsche

Caused by #253. The fact that we lack an external test of the CLI's output certainly didn't help things.

I am happy to incorporate any feedback on #335 into a new PR, but for now I'm shipping it as-is as a critical bugfix.


Add missing appVersion field.

Description
The kubearden-crds and kubewarden-defaults charts are missing the appVersion field to store the Kubewarden stack version. This commit adds the field in the Helm charts.

Superseded by https://github.com/kubewarden/helm-charts/pull/209


Recursive snapshot option

Adds option for recursive snapshot.
Closes #22

This looks great. Thanks for the contribution :).


Is there any solution for local pc only?

I see a lot of people try to run fast-stable-diffusion at google colab... so I think google may add some limit soon...
so I want to try it at my windows 10 pc.
is there any solution let tme download this version and run in my windows 10?
(I know this is a modify version of automatic1111 + dreambooth) , but origianl dreambooth is not easy to use, but this version of fast dreambooth is very good and easy to use. Will they release extensions for automatic1111 ?
I try it to run via jupyter, but lot of error and I can't run it successfully)
Thank you so much.

No plans for local at the moment, but I'll do my best in the future


RuntimeError: Batch size: 64 is too large for this schedule

layout = "NCHW"
data_shape = (1,1,256,256)
graph_net, lib, params = nnvm.compiler.build(net, target='cuda', shape={"data":data_shape},
dtype="float32",params=params)
error occurred at nnvm.compiler.build. only if "target" was set to 'llvm' , the compilation pass, otherwise(in the cases target='cuda' or target='opencl' or target='rocm') it will throw this Error.I'm wondering why it say that the batch size is 64 even if data_shape = (1,1,256,256) ???
NNVMError: TVMCall CFunc Error:
Traceback (most recent call last):
File "C:\Users\zhangzhiwei\AppData\Roaming\Python\Python35\site-packages\tvm-0.1.0-py3.5-win-amd64.egg\tvm_ffi_ctypes\function.py", line 54, in cfun
rv = local_pyfunc(*pyargs)
File "C:\Users\zhangzhiwei\AppData\Roaming\Python\Python35\site-packages\nnvm-0.8.0-py3.5.egg\nnvm\top\nn.py", line 123, in schedule_conv2d
return topi.generic.schedule_conv2d_nchw(outs)
File "", line 2, in schedule_conv2d_nchw
File "C:\Users\zhangzhiwei\AppData\Roaming\Python\Python35\site-packages\tvm-0.1.0-py3.5-win-amd64.egg\tvm\target.py", line 218, in dispatch_func
return dispatch_dict[k](*args, **kwargs)
File "C:\Users\zhangzhiwei\AppData\Roaming\Python\Python35\site-packages\topi-0.1.0-py3.5.egg\topi\cuda\conv2d_nchw.py", line 509, in schedule_conv2d_nchw
raise RuntimeError("Batch size: %d is too large for this schedule" % batch_size)
RuntimeError: Batch size: 64 is too large for this schedule

changing "axis" (which was 0) to 1 fixes this problem.


fix: defilama stats

Describe the bug
A clear and concise description of what the bug is.
defilama stats are wrong for connext, we need to fix it.
To Reproduce
Steps to reproduce the behavior:

Go to '...'

Additional context
Add any other context about the problem here.

Would you describe the bug in more details? I remember the issue but I don't think it has enough context to fix the bug as soon as possible.  At least, url/screenshot, whatever is fine.

@sanchaymittal still relevant?


difficulty for obtaining the solid polymer electrolyte dataset

The solid polymer electrolyte dataset link provided in the code is arXiv of a paper. If I understand correctly, the data set should be in the supplementary or code link of this paper. But it's hard for me to choose right data without more information. Could you please give me more accurate data-source link?

Hi, that paper contains the link to the data https://www.htpmd.matr.io/. The trajectory IDs used in this paper are here https://github.com/kyonofx/mlcgmd/tree/main/graphwm/splits/battery. You can also contact the corresponding authors for questions regarding downloading the trajectory data.

feel free to reopen if you have further question.


refactor methods in location_encoder related to index matrices

In particular it's a mystery why we need to pad the variational parameters in location_encoder.py
vpf_padded = F.pad(var_params_flat, (0, len(self.variational_params), 0, 0))

My theory is that it's related to "off source" special case indexing, but I need to think about this more.
Related comment: https://github.com/prob-ml/bliss/pull/527#discussion_r846302514

Subsumed by #540 . There are a series of related changes that would need to happen to get rid of this line (though I think  len(self.variational_params) here can be safely changed to 1).