Avoid App Store updates & update prompts

Tell us how we can improve Xcodes
Currently I have 13.3.1 installed through Xcodes.app, but the AppStore now shows me a pending update for 13.3.1 - the same exact version? How can that be avoided? Could Xcodes.app help disable the AppStore installation somehow? (Some config/plist/defaults setting maybe?)
Is your feature request related to a problem? Please describe.
It's a feature request.
What would you like to see? How would you like it to work?
I would like the App Store to ignore Xcode or alternatively to at least recognize, that the latest version is already installed.

Hi @calimarkus a few people have asked how, and I still haven't figured it out and my searches have come up empty handed.
I'm curious if the new symlink preference (create an Xcode.app link to the current version) would help?

Sadly the symlink didn't help so far (at least not by creating it after the fact).
I also tried some manual renaming initially. So not sure if there's anything to the specific timing of things in my case. I wonder if fully uninstalling the AppStore version, before installing through Xcodes solves it. But testing that out on my old MacBook Air will take sooo long 😅

@calimarkus Came across this tweet: https://twitter.com/genegoykhman/status/1519833821964820483?s=20&t=x6XVojBGy5-805lRaXzPOg perhaps that works?

I think I got it finally resolved on my personal machine. Here's what I did:
I was in a pretty strange state, where the AppStore claimed that I have a pending Xcode update for 13.3.1. Even though I had 13.4 installed already (through Xcodes). The Xcode product page itself showed the "GET" button though, as if I didn't have Xcode installed..:

Product page
Updates page

So I figured some internal AppStore state is borked. I followed this article https://macpaw.com/how-to/clear-app-store-cache to find the caches of the AppStore. I ended up deleting both the following paths fully:
$TMPDIR../C/com.apple.appstore/
~/Library/Caches/com.apple.appstore/

I then also logged out of the AppStore & restarted my Mac. And finally... no pending Xcode update is shown! Yay.


fix: enforce exact JSON decoding

We need our SDK to cover the entire Moov API request/response structure. This is a first step towards enforcing that.

@InfernoJJ updated to pass in content-type to Decoder


fix(clerk-js): Improve UI on create org component (part 2)

Description
The input states on Figma use solely box-shadow, but we're adding a solid border on the code to make customization easier.
That said, this PR includes a workaround for that: shadows.input had its y value reduced from 1 to 0, as to give a similar effect as the stacked shadows on Figma. This doesn't yield a perfect 1x1 comparison though, but the end result is close enough and should suffice, for the benefit of user customization.
https://github.com/clerk/javascript/assets/12413903/9b82f99d-16e2-4cee-851c-dc3691370372
https://github.com/clerk/javascript/assets/12413903/adc87257-d156-4c67-b2f0-162533757ac6
Checklist

[ ] npm test runs as expected.
[ ] npm run build runs as expected.
[ ] (If applicable) JSDoc comments have been added or updated for any package exports
[ ] (If applicable) Documentation has been updated

Type of change

[x] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Packages affected

[ ] @clerk/backend
[ ] @clerk/chrome-extension
[ ] @clerk/clerk-js
[ ] @clerk/clerk-expo
[ ] @clerk/fastify
[ ] gatsby-plugin-clerk
[ ] @clerk/localizations
[ ] @clerk/nextjs
[ ] @clerk/clerk-react
[ ] @clerk/remix
[ ] @clerk/clerk-sdk-node
[ ] @clerk/shared
[ ] @clerk/themes
[ ] @clerk/types
[ ] build/tooling/chore

!preview

!preview

Hey @octoper, your preview is currently deploying and should be available shortly.

Status
Preview
Updated (UTC)

:cook: Deploying...
Inspect
Jan 17, 2024 05:20 PM

!preview

!preview


Class Swift_Plugins_Logger: Add a timestamp with microtime to the returned output

This is a feature request.
It would be nice if the output generated by the Logger Plugin would contain a timestamp with microtime.
Example:
2015-04-29 09:37:10.001 ++ Starting Swift_SmtpTransport
2015-04-29 09:37:10.004 << 220 smtp.whatever.org SMTP Service ready at Wed, 29 Apr 2015 09:37:10 +0200
2015-04-29 09:37:10.052 >> EHLO [<IP_ADDRESS>]
2015-04-29 09:37:11.123 << 250-smtp.whatever.org Hello [<IP_ADDRESS>] ([<IP_ADDRESS>]), pleased to meet you 250-HELP 250-VRFY 250-EXPN 250-DSN 250-SIZE 250 PIPELINING
2015-04-29 09:37:11.126 ++ Swift_SmtpTransport started
2015-04-29 09:37:11.139 >> MAIL FROM<EMAIL_ADDRESS>2015-04-29 09:37:11.222 << 250<EMAIL_ADDRESS>Sender OK
2015-04-29 09:37:11.333 >> RCPT TO<EMAIL_ADDRESS>2015-04-29 09:37:11.444 << 250<EMAIL_ADDRESS>Recipient OK
2015-04-29 09:37:11.555 >> DATA
2015-04-29 09:37:11.666 << 354 Enter message, end with "." on a line by itself
2015-04-29 09:37:11.777 >> .
2015-04-29 09:37:11.888 << 250 Message accepted for delivery
2015-04-29 09:37:11.999 ++ Stopping Swift_SmtpTransport

This would make it possible to use the log for detecting time-related issues (aka slow smtp server and things like that).

Can you submit a PR?


Reuse getUplinkRepresentor function from sriovnet

For switchdev devices, information about the PF and representors is located in the same directory (e.g. /sys/bus/pci/devices/xxx/physFn/net).
The previous implementation of getPfName picked the first device in the directory by alphanumeric order. As an outcome, in some cases, the wrong device might have been chosen. As a fix, switching the CNI to use getUplinkRepresentor fn from sriovnet.
Signed-off-by: amaslennikov<EMAIL_ADDRESS>

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 15 (20.0%)  changed or added relevant lines in 3 files are covered.
4 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.5%) to 66.23%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/config/config.go
3
4
75.0%

pkg/manager/manager.go
0
5
0.0%

pkg/utils/sriov.go
0
6
0.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/manager/manager.go
1
45.6%

pkg/utils/utils.go
1
58.33%

pkg/config/config.go
2
78.95%

Totals

Change from base Build<PHONE_NUMBER>:
-0.5%

Covered Lines:
506

Relevant Lines:
764

💛  - Coveralls


Improve error logging

Errors logged to console don't always indicate where the error occurred:
https://github.com/DougReeder/sample-media-pwa/commit/331e083dd0efb15a396657897877be6e3b1b6030

Thanks! Do you mind submitting a PR for this?
It would be nice if all errors could be properly capitalized as well.
 -      console.error("video player init err:", err)
 +      console.error("Video player init error:", err)

Sentence capitalisation?
On Oct 2, 2017 4:40 AM, "François Beaufort"<EMAIL_ADDRESS>wrote:

Thanks! Do you mind submitting a PR for this?
It would be nice if all errors could be properly capitalized as well.

 console.error("video player init err:", err)

 console.error("Video player init error:", err)

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleChromeLabs/sample-media-pwa/issues/30#issuecomment-333473795,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXGPtj4V9qXJ1A516cw70_89WFvd9LSks5soKFsgaJpZM4Po34z
.


Use Dropdown widget in dynamically added/deleted formset factory.

Goal
Use django-select2 dropdown widget in dynamically added/deleted formset factory.
Problem
The widget loads for each formset, and works properly for the first form, however future forms do not show the dropdown when clicked on. This is non-Admin view.
https://github.com/applegrew/django-select2/issues/606#issuecomment-633102623
On this linked comment, Joe asks if the form is being added dynamically, which mine is - is this the cause of the issue?
Code Snippet
Not sure which part of my code is causing this, and don't want to add everything, so can add this in the future if needed.

Hi @BenAkko,
Apologies for the delayed response. I somehow didn't get any notifications for a while.
Regarding your questions, you need to initialize the new select fields once the form has been injected into your DOM.
// … inject your formser
$('.django-select2').djangoSelect2() // initialize select2 fields

This should solve your problem.
Best,
Joe


Docs/update readme

Description

Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[x] 📝 Documentation
[ ] 🗑 Chore

Codecov Report

Merging #21 (b6d26b8) into main (99ed2a2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage   98.42%   98.42%
=======================================
  Files         102      102
  Lines        2217     2217
=======================================
  Hits         2182     2182
  Misses         35       35

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


"demand" library needs work

this is actually the wrong repo for this but figured I would post it to get more eyes on it
I wrote this UI prompt library based on huh? for Go: https://github.com/jdx/demand
It solves the problems I had for rtx (and I plan to use it a lot more too), but if someone new to rust or just someone looking for an easy OSS project wanted to contribute I think it would be a great project. What makes it easy is I basically just want "huh?" in rust so you can just read that project's source code basically and fill in the gaps that are missing. It's not difficult work but it just isn't something that's interesting me at the moment.
I do think it would be popular in the rust space though—assuming we took care of these table-stakes. Charm really nailed the UX on this.
Here's some examples of what it needs:

more themes
input/text components
better examples (in particular the "select" example is just a clone of multiselect's)
replicate the form/group functionality (this is significantly harder than the rest though)

kudos @roele who did most of the legwork here and demand just hit 1.0!

@jdx thanks for the opportunity and all your support!


fix: prepare checkin for auth get participant

These changes make the QR code component more dumb. This is for the preparation of making the get participant API endpoint authorized

closed: Will be handled in #26


Add id to the partytown scripts

Added IDs to Partytown scripts in nuxt3 as it was added on nuxt2.

I have a case where i need to select Partytown scripts in the html.

What's your use-case?

What's your use-case?

In my project. i remove all scripts from Html using render:response hook, i need an id to partytown scripts (or any attribute) to be able to not removing them from the Html.

I have the same issue
It would be great to add IDs to the scripts


Cropping

Coverage decreased (-17.16%) to 34.28% when pulling 0acf12f4cf1b363456a5ac4425a4d8504c8af64c on cropping into 6f76557bbc41982da47b16b34acf9d4aa87d8d7c on django_1_7.


double fetching when manual

Using v6
Describe the bug
onFetchData calls twice when using manual data and change page,
It looks like that one call is after click on button and another after change page state.
To Reproduce
Steps to reproduce the behavior:

Go to https://codesandbox.io/s/z37o0vqpmx
Click on Next
See the concole
changePage(pageIndex: 11)
index.js:26 fetchData(page: 11)
index.js:26 render(page: 11, pageCount: 5553)
index.js:26 fetchData(page: 11)
index.js:26 render(page: 11, pageCount: 5553)

Expected behavior
I expect that one click on Next call one fetchData
Codesandbox!
https://codesandbox.io/s/z37o0vqpmx

Hi!
You change "page" in changePage function.
After change "page" TableReact call onFetchData (see more https://github.com/tannerlinsley/react-table/blob/v6/src/lifecycle.js line 118)

@ElfenLiedGH I'v understand it. But how could I change page another way?

After many hours of debugging I think that you couldn't use
manual={true}
onFetchData={...}

together with controlled-component-style props.
sorted={sorted}
page={page}
filtered={filtered}
onSortedChange={this.handleSortedChange}
onPageChange={this.handlePageChange}
onFilteredChange={this.handleFilteredChange}

Sometimes it looks like that everything is working, but you will be struggling with double data fetching and small issues, for example when you change the sorting, current page number failed to reset to 0 (onPageChange callback won't be called!), which introduces conflicts between internal state and props of ReactTable component, which also leads to calling onFetchData twice.
Could someone confirm this?

I think I've the same issue. Initial load is OK. First click on sort or first filter thing -> triggers 2 API calls. And results of filter operation can be received in wrong order.
I also reviewed the related ticket: but I bind filtered and page and sorted to the URL query parameters: to achieve good working history/back functionality.
The double call:

it's first a call without the new filter
then the correct call

Hi there! It looks as though you've submitted an issue or feature request for v6 of React Table, which I am no longer maintaining or supporting. I invite you to try the latest alpha release of v7 and help me push towards a v7 release soon. Thankyou!
If you still wish to discuss v6, please use https://spectrum.chat/react-table.

I found some sort of workaround as only the filters are affected. So I bind 'page', 'pagesize', and 'sorted' to the url and when I navigate to the detail view I push the current 'filtered' setting to the history, so that the browser back button works ok.
I will try the v7 next week. I am a bit reluctant in running alpha releases on prod, but I will certainly invest some time to  get it working in a hobby project first, and document the process. (count me in if v7 internal api is stable enough for some docs of tables with paginate, filter and sort in the backend)

@tannerlinsley thanks for this excellent work. Unfortunately, we do not have enough resources to test the v7 for now. I wanted to share the following workaround until we got time to investigate the v7.
We simply use a debounce function that will trigger the trailing call (we use the lodash one):
import { debounce } from 'lodash';
// ...
onFetchData = async ({ page, pageSize, sorted, filtered }, instance) => {
  // fetch code here
};
debouncedFetchData = debounce(this.onFetchData, 200);

render() {
  // ...
  page={page}
  onPageChange={this.onPageChange}
  sorted={sorted}
  onSortedChange={this.onSortedChange}
  onFetchData={this.debouncedFetchData}
  // ...
}

By doing so, we do not have duplicate call nor error at the mounting phase (we use query params to define the initial state).

I'm having the same problem.
Since the whole table is locked while loading, we know that no other valid requests will be made while loading - any further requests should be this bug. So I simply ignore any requests made while already loading by returning early from onFetchData instead of actually fetching anything.


WHO???

 Probably just copy paste reupload jar.Why anyonenbother to look at client when dev 0 reputation? Major issue inclient: just noob and waste time. NN. What is saligaud jack? What can it even do? Bad repo terrible repo only gives building info wow id rather use WUTST PLUS 2 LOL!!!!


Cannot do -ident

Something like
let x = 5;
let y = -x;
will not work

Something like
let x = 5;
let y = -x;
will not work

Can confirm 0 - x works though

Yes you can do that, or -1 * x, etc.

Yes you can do that, or -1 * x, etc.

I prefer 0 - x but I think - x and -x should be allowed

Fixed in #55


fix: issue could not find realme binary

based on the docs for realm database in this link, I've figured out that we should utilize expo-dev-client to run our application to build the native modules for the realme database, unless the app won't compile and run.

I don't understand the Android project, did you work on it on Android Studio or it's required for realm? How did it happen?

I don't understand the Android project, did you work on it on Android Studio or it's required for realm? How did it happen?

For building realm as a native module and using it's binary for the project we need to use expo-dev-client to do the build stuff for us and it's generating us the android folder for as and everything related to build the modules. I've been getting error: missing binary for realm and based on the documentation I came to the solution to run the project as said on the docs that I've attached the link.

@krzysztof-tys I'm close this PR, I'm going to open a PR after testing all the possible solutions before doing this one


aborted

terminate called after throwing an instance of 'std::bad_alloc'
what():  std::bad_alloc
./clean_wav.sh: line 26:  6499 Aborted

What tensorflow version do you have? Beware this repo is in 0.12.1.


[net] connection refused-error

hey,
From what I could see we don't error when there's you try to make a tcp-connection to a server that doesn't exists.
const runtimejs = require('runtimejs');
const TCPSocket = runtimejs.net.TCPSocket;

var client = new TCPSocket();
client.onerror = function(err) {
  console.log('I thought that this would run');
}
client.open('<IP_ADDRESS>', 666);

@iefserge I can work on a PR for this - if I've understood this correctly - that there should be an error in the example above?

@kesla sure, tcp reset feature is not implemented

@iefserge idk if this is still an issue?

@kesla yes


not all sources appear in add source list

At random (but quite often) it seems like the add sources list breaks and just doesn't list all possible sources, i have plugin for looking-glass as a source added but this happened before adding that too.

if i leave obs-studio-portable open long enough they might show up, or they might not, it seems to be random each time.
Any ideas on what to try out?

Found a reliable way to make the other sources appear.
Right click inside the sources list, hover over Add, move away from Add so that the list of possible sources vanishes, hover over Add again, move off it again and then on the 3rd hover over Add, all sources will be visible.
see mp4 below for reference
https://github.com/ublue-os/obs-studio-portable/assets/2557889/64ef1ce5-0e4b-4919-ba91-d16309200122


[GLUTEN-3689][CH]use s3 file last modified time as cache update line

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
(Fixes: #3689)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

LGTM


knife client/user commands do not actually allow for specifying a public key

creating or editing a user/client does not actually save the public key that is given to it.

This is an issue that people hit in Chef training when using knife client create.

This is part of #3368

Closing this as a dupe of #2541


Optioinally release cache in data iter during iteration.

Alternative to https://github.com/dmlc/xgboost/pull/10226 .
The PR reuses the release_data parameter.

LGTM.


Performance Issues on 10ms updates

Hello, I am trying to use the accelerometer and gyroscope sensors to do fall detection. However, this requires updates every 10ms or at most 100ms which I believe saturates the react-native bridge. Is there a possible solution for this? Thanks for the help!

Hey, I think you'd need to have the business logic in the native land, so in Android or iOS directly. I'm not aware on ways for libraries to  optimize the bridge usage.
One thing we could try is to add a level of filter to the API, but we'd need to be able to express it statically, e.g. new Gyroscope({minThreashold: 42}) and it only fires if that threashold is met and therefore leaves the bridge alone for most of it's lifecycle. Not sure if that's something you want to do though 🤔

I see, thank you for the suggestion!

With the React Native new architecture & JSI, this problem could be worked around. RN 0.68 has support (behind a flag) and RN 0.69 will have React 18.

@alissayarmantho could you please assist me in knowing how exactly are you using this package for fall detection, our team needs to integrate in an app as well, it would be very much appreciated

I use the gyroscope and acceleration to calculate a value. This value is used to determine if there's a fall detection or not.
The calculation formula is from some research paper.

@alissayarmantho thank you for the reply, is it possible for you to share the formula or the code snippet, it'll be really helpful, my use case is to report if a fall was detected or not, thanks in advance.

Ah, I think you can google them somewhere online. I've forgotten where it came from and the accuracy was not that ideal either. The code was quite long too so I don't think I can share that here.

Okay thank you


Removed flatten workspace features for .NET SDK generation

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Please ensure to add changelog with this PR by answering the following questions.

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
If it's an update to existing version,  please select SDKs of specific language and CLIs that require refresh after swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No, no need to refresh for updates in this PR

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
[ ] Ensure to copy the existing version into new directory structure for first commit (including refactoring) and then push new changes including version updates in separate commits. This is required to review the changes efficiently.
Adding a new service

[ ] Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

Hi, this is a minor change that is currently preventing us from publishing .NET SDK due to occurring errors

Hi @akning-ms , this is a minor change that is currently preventing us from publishing .NET SDK due to occurring errors

Not sure if there is any impact for other language.  @weidongxu-microsoft @ArcturusZhang @lirenhe @msyyc to confirm the change

Java appears haven't release for this service so OK for me.
x-ms-client-flatten is usually used for properties property. So the change looks good to me.
However it might still be breaking changes to some SDK.

For python, the PR will bring unnecessary breaking change. I advise use 'directive' in 'readme.csharp.md' instead of changing swagger definition. This method could avoid influencing other language. Here is simple example:

For Go SDK track 1, this would be a breaking change, but it is acceptable.
For Go SDK track 2, this is not a breaking change

Hi @msyyc , this change was introduced because the .NET SDK is unable to be created while having this in the swagger.
if it affects the python SDK, I didn't understand your offer, what is the purpose of "directive' in 'readme.csharp.md" ?

Is .Net SDK written maually? If it is generated by autorest, you could redefine the definition of swagger file through 'directive' in 'readme.csharp.md'

@msyyc  it is written manually...

@msyy please note that the containing property #/definitions/WorkspaceProperties already have this property

Now that there is rational reasons, python would not impede the merge.

@akning-ms Hi Arthur, could you please approve?


Added error for 'context deadline exceeded'

If your not happy with the wording please feel free to make any adjustments.
If this isn't up the your expectations please let me know. I've been wanting to start adding more errors to this package but this is my first.
Thank you,
Chris

Awesome, thanks for this! I think its safe to merge in but I'll need to run the actual hugo generate stuff since I don't have my server automatically doing that (I had issues with netlify not having a new enough hugo version)

And it's live → https://errorsingo.com/context-context-deadline-exceeded/

@joncalhoun Thank you, I'll start work on adding some more. I've run into what I think are some less common postgresql related errors that I'd like to share.
I didn't run the hugo command to re-create the site since that results in a much larger number of files to merge. It also might cause problems depending on what versions of hugo people are using.


Consolidate DCP and CGM matrices definitions in ProjectMatrixDownloadComponent

Generalize DCP and CGM matrices definitions into a single component.

superseded by dx


Need help exporting model for new language

@RVC-Boss @XXXXRT666  I've trained the Spanish model by fine-tuning the base model on a 24-hour single-speaker dataset. I want to know how to export the GPT and SoVITS models so that they can be used as base models for future fine-tuning. I've attached the outcomes of the model as well, just  in case.
Input Audio: http://sndup.net/xgzbs
Result: http://sndup.net/ydtmm     <----  Navy seals copypasta translated in Spanish
Edit: Also, during the inference I noticed that cross-language synthesis is no longer supported. What did I miss here?

I think I wanna save the scaler_state_dict for the SoVITS model

Seems like the model has lost previous info from the base model, meaning you won't get a decent sounding model with a small dataset.

You can use torch.load to read the keys of the pretrained model and the finetuned model, and then manipulate the keys to align the keys of the finetuned model with the format of the pretrained model's keys.
The weights file is just a python ordereddict.
pretrained:
torch.load("s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt",map_location="cpu").keys()
torch.load("s2G2333k.pth",map_location="cpu").keys()
fine tuned:
torch.load("logs/logs_s2/G_233333333333.pth,map_location="cpu").keys()
torch.load("logs/logs_s2/D_233333333333.pth,map_location="cpu").keys()
torch.load("logs/logs_s1/ckpt/epoch=14-step=45.ckpt,map_location="cpu").keys()
torch.load("SoVITS_weights_v2/e16_s224.pth,map_location="cpu").keys()
torch.load("GPT_weights_v2/e15.ckpt,map_location="cpu").keys()


High-usage application

Sometimes Android warns me to kill the app because of its high-usage.
Maybe it may be related to our notification BootReceiver.
Need to investigate on that.

So far.. no high usage app warning for this app :)


Implement Pagination to the GET API calls

Is your feature request related to a problem? Please describe.
Provide pagination to all the GET API calls to improve the performance as data count increases.
Describe the solution you'd like
Pagination is a concept that helps in serving only part of the data as a response, however, with information about how to access all the data from the server, page by page, without much load and high computation for the server to serve the whole data.
ex: api.twitter.com/2/accounts/abc1/campaigns?cursor=c-3yvu1pzhd3i7&count= 50
Describe alternatives you've considered
No Alternatives
Additional context

also look into the elastic search for the easier search as well.


git lfs prune --verify-remote behave unexpectedly

git lfs prune --verify-remote behave unexpectedly when combined with Estranged.Lfs .
It seems Estranged.Lfs always responds to inquiries with a positive answer that is as if "the file in question does exists" unconditionally.

Hi,
Thanks for the report! Can you include some anomyised logs of the request/responses with the environment variable GIT_TRACE=1? I'm looking to track down the specific requests that respond positively when they shouldn't.
Thanks,
Alan

Here you are. I've also added GIT_CURL_VERBOSE=1 to see headers and contents of the POST request.
log-with-empty-bucket.txt
The lambda is connected to a newly created empty bucket. So there exist no object to download at all.
log-with-server-down.txt
Throttling the lambda with setting concurrency down to zero, the api returns an error. but it is being treated correctly as negative, no file exists, answer.

Thanks for the additional information - it looks like this particular git lfs operation doesn't follow the signed URL, so it doesn't actually verify whether it can get the data.
I'll count this as a feature request, since it will require the batch download endpoint to ping S3 for each object it's asked to return to confirm it exists - I'll try to get to it within the next few weeks.
Thanks,
Alan

For reference - I have started a new branch for the changes around this feature: https://github.com/alanedwardes/Estranged.Lfs/tree/fetch-object-metadata

This was addressed with version 3.0.0 - Estranged.Lfs now makes HEAD requests in parallel to S3 to verify all requested objects exist. https://github.com/alanedwardes/Estranged.Lfs/releases

I wasn't expecting this would be solved in such a short time.
Thank you very much. @alanedwardes
note: I purchased act.II as a sign of appreciation.


qps recover after 13mins when inject one of tikv io hang

Bug Report

What version of TiKV are you using?
v6.5.7
git hash：5f1ac992c5f4515ec493634795f1af7a726c1ec9
What operating system and CPU are you using?
8c/32g
Steps to reproduce
1、run tpcc

2、inject one of tikv io hang last for 20mins

What did you expect?
qps can recover within 5mins after inject one of tikv io hang
What did happened?
qps recover after 13mins when inject one of tikv io hang

clinic：https://clinic.pingcap.com.cn/portal/#/orgs/31/clusters/7317786419213168837?from=1703858383&to=1703862621

/type enhancement

/remove-type bug

/assign LykxSassinator

The root cause of this issue is that the peers enter into PreChaos state and ignore the WakeUp messages triggered by PD, making the duration of re-voting longer than expected.
And it's triggered as follows:

Firstly, as the Hiberate Region feature is enabled, peers enter GroupState::Idle as expected.
Secondly, this cluster gets IO hang errors. The QPS is dropped to nearly ZERO (no new WRITE / READ flows to each TiKV node). And it triggers awaken hibernated regions mechanism by sending WakeUp messages to these peers to make them revoting into a short term.
However, the on_check_peer_stale_state_tick (tick period is 5 minutes by default) goes just right before the raftstore handling the WakUp messages, and it makes the state into PreChaos state.
Then, the WakeUp messages are ignored as the prerequisite self.fsm.hibernate_state.group_state() == GroupState::Idle is invalid.
Finally, these peers keep wait for another on_check_peer_stale_state_tick to make PreChaos into Chaos to trigger the re-voting progress. And this makes the recovery duration longer than expected.


[e2e]: go schedule main config-noldflags slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/9262487798
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.config-noldflags.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.config-noldflags.slsa3.yml
Trigger: schedule
Branch: main
Date: Tue May 28 02:17:27 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/9279196393
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.config-noldflags.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.config-noldflags.slsa3.yml
Trigger: schedule
Branch: main
Date: Wed May 29 02:17:57 UTC 2024
Tests are passing now. Closing this issue.


i should support iOS

the UIStackView is only available on iOS 9.0 or newer. what should i do

The Library is only available for iOS 9 ++


Fix semantic release with parallel builds

Closes #15

:tada: This PR is included in version 2.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[scripts can't handle lightning being disabled] Stuck sitting at 100.00% with 12 peers, does not proceed to menu

I copied the blockchain over from PC to save on sync time, went from 99.something percent to 100% but now it just sits there and does not give me the menu.
SSD access light is blinking intermittently, no errors in logs that I can tell.
Accessing the http endpoint shows "unknown hostname: raspiblitz" (I named it simply raspiblitz which is also the .local name) and no other links or info.
Tried a "sudo reboot now" but it just goes back to the same "100.00%" screen.
"top" shows bitcoind using 1-2% CPU, about 6 minutes total over perhaps 3-4 hours.  "iotop" shows some minimal disk activity, mostly reads, from bitcoind.  As far as I can tell it's not really doing anything.
Debug output:
    ***************************************************************
    * RASPIBLITZ DEBUG LOGS
    ***************************************************************
    blitzversion: 1.7.1
    chainnetwork: bitcoin / main
     12:16:12 up 25 min,  3 users,  load average: 0.29, 0.45, 0.43

    *** SETUPPHASE / BOOTSTRAP***
    see logs: cat /home/admin/raspiblitz.log
    setupPhase--> done
    state--> ready

    *** BACKGROUNDSERVICE ***
    to monitor Background service call: sudo journalctl -f -u background

    *** BLOCKCHAIN(MAINNET) SYSTEMD STATUS ***
    * bitcoind.service - Bitcoin-Daemon
      Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
       Active: active(running) since Tue 2022-01-18 11:51:52 PST; 24min ago
     Process: 2932 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED(code= exited, status= 0 / SUCCESS)
      Process: 2934 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/mnt/hdd/bitcoin/bitcoin.conf -pid=/mnt/hdd/bitcoin/bitcoind.pid -debuglogfile=/mnt/hdd/bitcoin/debug.log(code=exited, status=0/SUCCESS)
     Main PID: 2985 (bitcoind)
        Tasks: 18 (limit: 4472)
       CGroup: /system.slice/bitcoind.service
               `-2985 /usr/local/bin/bitcoind -daemon -conf=/mnt/hdd/bitcoin/bitcoin.conf -pid=/mnt/hdd/bitcoin/bitcoind.pid -debuglogfile=/mnt/hdd/bitcoin/debug.log

    Jan 18 11:51:51 raspiblitz systemd[1]: Starting Bitcoin-Daemon...
    Jan 18 11:51:52 raspiblitz systemd[1]: Started Bitcoin-Daemon.

    *** LAST BLOCKCHAIN(MAINNET) ERROR LOGS ***
    sudo journalctl -u bitcoind -b --no-pager -n8
    -- Logs begin at Tue 2022-01-18 11:50:14 PST, end at Tue 2022-01-18 12:16:12 PST. --
    Jan 18 11:51:51 raspiblitz systemd[1]: Starting Bitcoin-Daemon...
    Jan 18 11:51:52 raspiblitz systemd[1]: Started Bitcoin-Daemon.

    *** LAST BLOCKCHAIN(MAINNET) 20 INFO LOGS ***
    sudo tail -n 20 /mnt/hdd/bitcoin/debug.log
    2022-01-18T19:53:05Z New outbound peer connected: version: 70016, blocks=719325, peer=0 (manual)
    2022-01-18T19:53:19Z New outbound peer connected: version: 70016, blocks=719325, peer=1 (outbound-full-relay)
    2022-01-18T19:53:30Z New outbound peer connected: version: 70016, blocks=719325, peer=3 (outbound-full-relay)
    2022-01-18T19:53:38Z New outbound peer connected: version: 70016, blocks=719325, peer=4 (outbound-full-relay)
    2022-01-18T19:53:45Z New outbound peer connected: version: 70016, blocks=719325, peer=5 (outbound-full-relay)
    2022-01-18T19:53:58Z New outbound peer connected: version: 70016, blocks=719325, peer=6 (outbound-full-relay)
    2022-01-18T19:54:26Z New outbound peer connected: version: 70016, blocks=719325, peer=7 (outbound-full-relay)
    2022-01-18T19:54:47Z New outbound peer connected: version: 70016, blocks=719325, peer=9 (outbound-full-relay)
    2022-01-18T19:54:54Z New outbound peer connected: version: 70016, blocks=719325, peer=10 (outbound-full-relay)
    2022-01-18T19:55:01Z New outbound peer connected: version: 70016, blocks=719325, peer=11 (outbound-full-relay)

    -- Logs begin at Tue 2022-01-18 11:50:14 PST, end at Tue 2022-01-18 12:16:12 PST. --
    Jan 18 11:51:51 raspiblitz systemd[1]: Starting Bitcoin-Daemon...
    Jan 18 11:51:52 raspiblitz systemd[1]: Started Bitcoin-Daemon.

    *** LAST BLOCKCHAIN(MAINNET) 20 INFO LOGS ***
    sudo tail -n 20 /mnt/hdd/bitcoin/debug.log
    2022-01-18T19:53:05Z New outbound peer connected: version: 70016, blocks=719325, peer=0 (manual)
    2022-01-18T19:53:19Z New outbound peer connected: version: 70016, blocks=719325, peer=1 (outbound-full-relay)
    2022-01-18T19:53:30Z New outbound peer connected: version: 70016, blocks=719325, peer=3 (outbound-full-relay)
    2022-01-18T19:53:38Z New outbound peer connected: version: 70016, blocks=719325, peer=4 (outbound-full-relay)
    2022-01-18T19:53:45Z New outbound peer connected: version: 70016, blocks=719325, peer=5 (outbound-full-relay)
    2022-01-18T19:53:58Z New outbound peer connected: version: 70016, blocks=719325, peer=6 (outbound-full-relay)
    2022-01-18T19:54:26Z New outbound peer connected: version: 70016, blocks=719325, peer=7 (outbound-full-relay)
    2022-01-18T19:54:47Z New outbound peer connected: version: 70016, blocks=719325, peer=9 (outbound-full-relay)
    2022-01-18T19:54:54Z New outbound peer connected: version: 70016, blocks=719325, peer=10 (outbound-full-relay)
    2022-01-18T19:55:01Z New outbound peer connected: version: 70016, blocks=719325, peer=11 (outbound-full-relay)
    2022-01-18T19:55:14Z Socks5() connect to k4gcobw6vsuxfrfapbz4uvqsg63hwbj25mlqn6vgb2qvggaa5zgyqoid.onion:8333 failed: host unreachable
    2022-01-18T19:55:24Z New outbound peer connected: version: 70016, blocks=719325, peer=12 (block-relay-only)
    2022-01-18T19:55:32Z New outbound peer connected: version: 70016, blocks=719325, peer=13 (block-relay-only)
    2022-01-18T20:02:34Z New outbound peer connected: version: 70016, blocks=719325, peer=24 (block-relay-only)
    2022-01-18T20:03:48Z Socks5() connect to qyib7gmiduqpcehv4njd7aiasaqntla4wrfz6nw3kpcm4yragm7jcsyd.onion:8333 failed: host unreachable
    2022-01-18T20:04:26Z UpdateTip: new best=00000000000000000007cf8892252578c7bbbaee765f26ff3040d1358579c0b5 height = 719326 version=0x20000004 log2_work=93.294712 tx=703779837 date='2022-01-18T20:03:50Z' progress=1.000000 cache=3.2MiB(24589txo)
    2022-01-18T20:04:36Z Socks5() connect to 7ntgzvavj26ksax7xbe2oojo3hoksdxzngi4yyyt7ci24w6wupohvxid.onion:8333 failed: general failure
    2022-01-18T20:06:28Z New outbound peer connected: version: 70016, blocks=719326, peer=27 (block-relay-only)
    2022-01-18T20:09:34Z UpdateTip: new best=00000000000000000003b94c02b5b8d8c494e0cdb742aa08bf4cf2d6407320e8 height = 719327 version=0x20400000 log2_work=93.294724 tx=703781775 date='2022-01-18T20:09:22Z' progress=1.000000 cache=5.0MiB(36905txo)
    2022-01-18T20:14:49Z Socks5() connect to phxshq6kpk73vzv5qsveavg76be7qaomwqztjhjesbpixovktrbfpnid.onion:8333 failed: host unreachable

    *** LND(MAINNET) SYSTEMD STATUS ***
    - OFF by config -

    *** C-LIGHTNING(MAINNET) SYSTEMD STATUS ***
    - not activated -

    *** BLOCKCHAIN(TESTNET) SYSTEMD STATUS ***
    - OFF by config -
    *** LND(TESTNET) SYSTEMD STATUS ***
    - OFF by config -

    *** C-LIGHTNING(TESTNET) SYSTEMD STATUS ***
    - not activated -

    *** BLOCKCHAIN(SIGNET) SYSTEMD STATUS ***
    - OFF by config -
    *** LND(SIGNET) SYSTEMD STATUS ***
    - OFF by config -

    *** C-LIGHTNING(SIGNET) SYSTEMD STATUS ***
    - not activated -

    *** NGINX SYSTEMD STATUS ***
    * nginx.service - A high performance web server and a reverse proxy server
       Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
      Drop-In: /etc/systemd/system/nginx.service.d
               -raspiblitz.conf
       Active: active(running) since Tue 2022-01-18 11:51:36 PST; 24min ago
        Docs: man:nginx(8)
     Main PID: 1121 (nginx)
        Tasks: 5 (limit: 4472)
       CGroup: /system.slice/nginx.service
               |-1121 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
               |-1122 nginx: worker process
               |-1123 nginx: worker process
               |-1124 nginx: worker process
               `-1125 nginx: worker process

    Jan 18 11:51:35 raspiblitz systemd[1]: Starting A high performance web server and a reverse proxy server...
    Jan 18 11:51:36 raspiblitz systemd[1]: Started A high performance web server and a reverse proxy server.

    *** LAST NGINX LOGS ***
    sudo journalctl -u nginx -b --no-pager -n20
    -- Logs begin at Tue 2022-01-18 11:50:14 PST, end at Tue 2022-01-18 12:16:12 PST. --
    Jan 18 11:51:35 raspiblitz systemd[1]: Starting A high performance web server and a reverse proxy server...
    Jan 18 11:51:36 raspiblitz systemd[1]: Started A high performance web server and a reverse proxy server.
    --> CHECK CONFIG: sudo nginx -t

    *** BLITZAPI SYSTEMD STATUS ***

    *** LAST BLITZAPI LOGS ***
    sudo journalctl -u blitzapi -b --no-pager -n20
    -- Logs begin at Tue 2022-01-18 11:50:14 PST, end at Tue 2022-01-18 12:16:12 PST. --
    Jan 18 11:51:35 raspiblitz systemd[1]: Starting A high performance web server and a reverse proxy server...
    Jan 18 11:51:36 raspiblitz systemd[1]: Started A high performance web server and a reverse proxy server.
    --> CHECK CONFIG: sudo nginx -t

    - TOUCHSCREEN is OFF by config
    - Loop is OFF by config
    - LND-RTL is OFF by config
    - CL-RTL is OFF by config
    - Electrum Rust Server is OFF by config
    - LIT is OFF by config
    - BTCPayServer is OFF by config
    - BTC-RPC-Explorer is OFF by config
    - LNbits is OFF by config
    - Thunderhub is OFF by config
    - SPECTER is OFF by config
    - SPHINX is OFF by config

    *** MOUNTED DRIVES***
    Filesystem     Type Size  Used Avail Use% Mounted on
    /dev/root ext4      118G  4.2G  109G   4% /
    devtmpfs devtmpfs  1.9G     0  1.9G   0% /dev
    tmpfs          tmpfs     1.9G     0  1.9G   0% /dev/shm
    tmpfs          tmpfs     1.9G   17M  1.9G   1% /run
    tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
    tmpfs tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
    tmpfs          tmpfs      32M   24K   32M   1% /var/cache/raspiblitz
    /dev/mmcblk0p1 vfat      253M   30M  223M  12% /boot
    /dev/sda1 ext4      916G  416G  455G  48% /mnt/hdd
    tmpfs          tmpfs     380M     0  380M   0% /run/user/1000
    tmpfs tmpfs     380M     0  380M   0% /run/user/1001

    *** DATADRIVE ***
    # RASPIBLITZ DATA DRIVE Status

    # BASICS
    isMounted = 1
    isBTRFS=0
    hddRaspiData=1
    hddRaspiVersion='1.7.1'
    isSSD=0
    datadisk='sda'
    datapartition='sda1'
    hddBlocksBitcoin=1
    hddBlocksLitecoin=0
    hddBytes=1000203091968
    hddGigaBytes=931
    hddUsedInfo='416G (48%)'
    hddDataFreeKB=476327260
    hddAdapterUSB='174c:1153'
    hddAdapterUSAP=0

    # RAID
    isRaid=0
    raidCandidates=0

    # SWAP
    isSwapExternal=1
    SwapExternalPath='/mnt/hdd/swapfile'

    *** NETWORK ***
    localip = <IP_ADDRESS>
    dhcp=1
    network_device=eth0

    *** HARDWARE TEST RESULTS ***

    *** SYSTEM STATUS(can take some seconds to gather) ***
    localIP = '<IP_ADDRESS>'
    tempCelsius='62.3'
    uptime=1550
    upsStatus='OFF'
    startcountBlockchain=1
    bitcoinActive=1
    blockchainPeers=12
    blockchainHeight=719327
    initialSync=0
    syncProgress=100.00
    startcountLightning=0
    lndActive=0
    clActive=0
    CLwalletLocked=0
    blitzTUIActive=0
    blitzTUIRestarts=0
    vagrant=0
    scriptRuntime=0

    *** OPTION: SHARE THIS DEBUG OUTPUT ***
    An easy way to share this debug output on GitHub or on a support chat
    use the following command and share the resulting link:
    debug | torsocks nc termbin.com 9999

I think I have found the issue, but I'm new to this linux / bash stuff so please check me.  It appears to be an issue with the value of lightning being expected to equal "" when disabled, but it is instead set to none.  Probably a regression from changing what value signified "lighting not set up" from an empty string to the string "none" sometime in the past.  All I did to hit it is disable lightning in the initial setup screens after etching from the prebuilt image.
In /home/admin/00raspiblitz.sh:
# CONFIGFILE - configuration of RaspiBlitz
configFile="/mnt/hdd/raspiblitz.conf"
source ${configFile} 2>/dev/null

# INFOFILE - state data from bootstrap
infoFile="/home/admin/raspiblitz.info"

<...snip...>

# get system state information raspiblitz.info
source ${infoFile}

<...snip...>

  #####################################
  # INITIAL BLOCKCHAIN SYNC (SUBLOOP)
  #####################################
  if [ "${lightning}" == "" ]; then syncedToChain=1; fi
  if [ "${setupPhase}" == "done" ] && [ "${state}" == "ready" ] && [ "${syncedToChain}" != "1" ]; then
    /home/admin/setup.scripts/eventBlockchainSync.sh ssh
    sleep 10
    continue
  fi

and in /mnt/hdd/raspiblitz.conf:
lightning=none

and in /home/admin/raspiblitz.info:
state=ready
setupPhase='done'

So because lightning is set to none instead of "", this condition if [ "${lightning}" == "" ]; then syncedToChain=1; fi will evaluate to false, thus never setting syncedToChain true, invoking eventBlockchainSync.sh regardless of the value of setupPhase and state.  And as you can see, those conditions do evaluate true, it is the syncedToChain variable only that is causing me to go into the sync script.
So now we're in eventBlockchainSync.sh:
    # determine to loop or not
    loop=0
    if [ ${loopUntilSynced} -eq 1 ] && [ "${syncedToChain}" == "0" ]; then
        # loop until synced to chain
        loop=1
        sleep 3
    fi

I'm not quite sure how loopUntilSynced is set (it clearly must be) since I don't see that argument being passed in from 00raspiblitz.sh but the syncedToChain variable appears to be set in /home/admin/config.scripts/blitz.statusscan.sh.
Now this is where things get a bit sticky for me.  I've shown how and why the sync script gets invoked, but why it doesn't exit requires a deeper of this stuff than I'm able to demonstrate as a windows dev ;)  Hopefully you can take it from here.  Probably a similar regression to what caused the script to be invoked at all, and it expects a disabled lightning network to sync.
All you need to do to repro is deselect lightning on the initial setup screen.

A quick fix I can do myself would be nice too - I now know that I can just ctrl-c and run "menu" and it should operate normally (I think) but whether I should patch the value of "lightning" in raspiblitz.conf or patch the script(s) (one or both of them), I don't know.

Hi. @nkinnan thanks for already going so deep into it and isolating the bug. I think bes in your case as a quick fix is setting lightning in raspiblitz.conf manually to an empty string.

Setup & syncing up with lightning disabled tested OK with RC2. Closing issue for release.


Add Support for GitHub Provider >5.0

I see no breaking changes, so maybe this will work. Can you verify this?
Solves #131

thanks for providing this... fixed in #135


[Fix-8680][UI Next][V1.0.0-Alpha] Startup env name pull-down menu support clear

close #8680

Codecov Report

Merging #8700 (afd9739) into dev (c8b5d1e) will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev    #8700      +/-   ##
============================================
+ Coverage     45.29%   45.30%   +0.01%
- Complexity     4073     4075       +2
============================================
  Files           700      700
  Lines         27050    27050
  Branches       2894     2894
============================================
+ Hits          12251    12255       +4
+ Misses        13645    13643       -2
+ Partials       1154     1152       -2

Impacted Files
Coverage Δ

...e/dolphinscheduler/remote/NettyRemotingClient.java
53.52% <0.00%> (+2.81%)
:arrow_up:

Continue to review full report at Codecov.

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


Add Mirror for Unity

Mirror is a free and open source networking library for Unity.

@samir2901 Not part of PR but does it come with the source code?

@samir2901 Not part of PR but does it come with the source code?

Here's the link to the source code for mirror : https://github.com/vis2k/Mirror

Could we get this merged?


fix: missing supply for add-genesis-account

Codecov Report

Merging #498 (50a797c) into main (3d7b512) will increase coverage by 1.06%.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #498      +/-   ##
==========================================
+ Coverage   28.69%   29.75%   +1.06%
==========================================
  Files          47       47
  Lines        6555     6580      +25
==========================================
+ Hits         1881     1958      +77
+ Misses       4527     4463      -64
- Partials      147      159      +12

Impacted Files
Coverage Δ

module/cmd/gravity/cmd/genaccounts.go
61.60% <100.00%> (+61.60%)
:arrow_up:

... and 1 file with indirect coverage changes


Add filter to support 1,2,3 syntax

Based on discussion from https://github.com/alex/django-filter/issues/137
Using some of @kmwenja's work from his comment, and some from the original gist I had.
I considered using similar terms to Django for cleaning/validating the values, but I left it with the function names used in the comment where the cleaning was suggested.

Thanks for the shout-out :smile:

Credit where it's due. Yours allowed simple coercion, that I hadn't considered since I'd only used it with strings.

Hi @carltongibson, is this the right direction? Sorry, if you were planning on looking at this already.

Hi @zoidbergwill. Thanks for the PR.
My initial thought is that this needs to be done at the widget level rather than the filter.
Look at the SelectMultiple widget — it is responsible for calling getlist on the request parameters QueryDict, and so get the list we are expecting from the standard ?param_list=value_1&param_list=value_2 syntax.
If we're going to add support for the 1,2,3 syntax then we need to match the behaviour there, rather than add a new filter type.
I know most probably want this for DRF related work, rather than building HTML forms, but some consideration should probably go into the render side of the equation too.
Also we need to document when/where/how devs would use the new widget.

Thanks
I'll take a look at the SelectMultiple widget.
I only really have experience with the DRF-related uses for the filters, but I'll take a look at the HTML forms stuff and try my best to match the behaviour.
I've written some basic documentation for the filter that I haven't pushed yet, so I'll write some once the  widget work is done too.

First pass I'd guess sublclass TextInput and just do the join on the value.

The ‘value’ given is not guaranteed to be valid input, therefore subclass implementations should program defensively. — The Widget Docs

Thanks for all the help.

My initial thought is that this needs to be done at the widget level rather than the filter.

So I made a widget that matches the filter behaviour, so should I get rid of the filter? Will the widget be used when I send GET parameters to the filter in DRF?
Sorry, I tried to test the filter side with widgets, without any success. I have working tests for the widget though.

@carltongibson Does this look more in the right direction?

Hey @zoidbergwill — Yes. That looks more or less what I had in mind.
I think people are going to want an example of how to specify the widget using the Filter.extra attribute, but other than that it looks good.

Hi @carltongibson, is there a way to use the widget with a REST endpoint?
I've looked through the code and docs. I feel like I'm missing something.
Am I doing the logic at the wrong point in the widget?

Hey @zoidbergwill.
The flow goes FilterSet -> Filter -> Field -> Widget. Filters have an extras field that is passed down to the Field so if you set your Filter's extras.widget to your custom class that should get set.
You should be able to do this at declaration but if not override init, pull the filter and set it by hand.
(If you're getting stuck I'll need to see your code — what are you trying that's not working?)

Take another look here: https://django-filter.readthedocs.org/en/latest/usage.html#the-filter — the extra example there should work when modified
(Let me know how you get on: both for the docs here and in general.)

So I was having some issues with testing this against an existing project, because of the Django forms.CharField's to_python function. It calls __unicode__ when sent a list.
I've added a simple CSVFilter, that uses a simples CSVField with a custom to_python field so the filter receives a proper list, it just feels wrong and dirty.
I can't see an easier solution with a better filter function to override or anything.

Sorry @carltongibson, I missed your first of the two comments there.

I'll push the field and filter stuff I've added, and I can add tests if it's gonna stay or I can rebase it out.

Ok, Thanks for the effort let me have a look at what you've got here and we'll see how to go forward.

I'll add some tests.

I tried writing tests, but there's nothing really worth testing that I added.

Hi @zoidbergwill,

So I was having some issues with testing this against an existing project, because of the Django forms.CharField's to_python function. It calls unicode when sent a list.

This confuses me. We're talking about adding a new widget for use with a SelectField on a MultipleChoiceFilter right. Where does the forms.CharField come from?
Can you put your FilterSet declaration either here, or in a test case (that you'd like to pass) or in Gist and I'll take a look? Thanks

Sorry, I haven't had the time to work on this. I'll have time in the next few weeks.

Will the proposed code allow  a developer to support syntax like this?
/resources/?id__in=1,2,3

or only something like:
/resources/?ids=1,2,3

What about support for __range lookup, e.g.;
/resources/?id__range=1,10

This should really be added to make django-filter practical to use. In Ruby this feature has landed long ago in the default filtering gem.

Gonna give this another try.

@zoidbergwill — OK. Cool. No stress. :-)
Rather than a filter, look at just creating a widget.

I'm going to close this pending the new version.


WIndows Desktop App regularly crashing

WIndows 8.1, all updates applied.
Toggl Desktop 7.2.36.
It's crashing regularly on both my desktop and laptop, so seems not to be installation specific.
Crashes are fairly random, when starting and/or stopping tasks.

We have uploaded a new beta version (7.2.76) that should fix this crashing issue. Please select beta channel from About view and wait for about 5 minutes for the application to get the update in background then restart the app to start using the new version.

I've updated to the beta 7.2.76 version, but the app is still crashing. Often crashes are when stopping a running task. However, also crashes at other random times.

I have this issue too. I tried the desktop app a year ago, mentioned that it crashed, and gave up because there was no help. A year later I tried it again on what I can only hope is an updated version and it still crashes on a fresh install. When I start the app, I see the gray icon appear in my task-bar icons but within a few seconds it disappears. Running Windows 7.


Remove unset metadata values from documents amended by MetadataTagger

Currently it is not possible to remove a metadata value by leaving a field
unset in the metadata CSV when running the rake task metadata_tagger:tag_metadata.
This will set an empty array for the fields which don't have a value set.

Have you tested in rummager what actually happens if you pass the empty array in? I can't quite remember how rummager->elasticsearch works in this case.
If you need to remove some values then you could just do this https://docs.publishing.service.gov.uk/manual/business-readiness-update-content.html#removing-content-from-the-business-readiness-finder as part of the update process. You can destroy the metadata for a base path or set of base paths or for the whole csv. If you then do step 6 https://docs.publishing.service.gov.uk/manual/business-readiness-update-content.html#updating-content, it should pull itself together :)

I think the reason we reject empty facet arrays like this is because it emulates the behaviour of the publishing apps when 'tagging' content with facets. ie. We do not send empty form params. So the metadata generated by the tagger here will be consistent with the publishing apps.
Also it would be worth understanding the impact of allowing empty facet data like this on finders. There may be some assumptions in finder-frontend about the presence of facet keys...

We, and the team before us, on 2nd line got caught out for quite a while that changes to the spreadsheet that remove an entry to a field don't have any affect with the metadata tag script.
The other option considered than an empty array would be setting null but that seems more dangerous and, I expect, would still leave a trail in the index.
If this is undesirable should we be considering running a strip metadata query as part of this?
Alternatively it's a question of cranking up the docs more but this feels like something that would always be somewhat surprising behaviour.

@kevindew  - certainly the first few incarnations we were dealing mostly with adding rather than removing data. It might be useful to run Indexer::MetadataTagger.destroy_all_eu_exit_guidance! before https://github.com/alphagov/rummager/blob/b67abd60b0eb44db0612e02d6e2495a67c94daea/lib/tasks/metadata_tagger.rake#L5
I think there will be a small blip where nothing will be returned by the finder though. Maybe it's good enough for now though?
Otherwise we could incorporate a destroy per row before amending. That would need something like https://github.com/alphagov/rummager/blob/8709e6b7e431784493db128aa26bb253d5ac130c/lib/indexer/metadata_tagger.rb#L73-L76 to be put in place somewhere around https://github.com/alphagov/rummager/blob/8709e6b7e431784493db128aa26bb253d5ac130c/lib/indexer/metadata_tagger.rb#L29
I'm not sure if there's a more elegant way since that would call Indexer::AmendWorker.new.perform twice in pretty quick succession for a base path which feels annoying.
what do you think @steventux?

I think regularly blowing away all the metadata could also have consequences in that email notifications are triggered for items considered new to the finder. This is determined by something being in the Rummager index but not returned by the search for all guidance for the business readiness finder https://github.com/alphagov/rummager/blob/8709e6b7e431784493db128aa26bb253d5ac130c/lib/indexer/metadata_tagger.rb#L87
The emails are sent via a worker here
https://github.com/alphagov/rummager/blob/8709e6b7e431784493db128aa26bb253d5ac130c/lib/indexer/metadata_tagger.rb#L34
I think removing all metadata would mean that all content would be considered new. So preserving the appear_in_find_eu_exit_guidance_business_finder would be necessary.
I also think we should be pouring effort into getting away from this tagging system now. We have a story in our backlog to improve the tagging process, @thomasleese 's suggestion of making facets / facet values a format we can link to being the best suggestion.
In the short term if we preserve appear_in_find_eu_exit_guidance_business_finder when cleaning the metadata the emails won't be triggered.

I think regularly blowing away all the metadata could also have consequences in that email notifications are triggered for items considered new to the finder. This is determined by something being in the Rummager index but not returned by the search for all guidance for the business readiness finder

Hmm does that mean that when we run the remove metadata command to clear fields that might also be triggering new emails when we re-add them? We had to do that on two docs yesterday.

I also think we should be pouring effort into getting away from this tagging system now. We have a story in our backlog to improve the tagging process, @thomasleese 's suggestion of making facets / facet values a format we can link to being the best suggestion we have so far.

That sounds great 👍

In the short term if we preserve appear_in_find_eu_exit_guidance_business_finder when cleaning the metadata the emails won't be triggered.

Ok cool.
Do you know how common this scenario we've hit here is? If I understand right, our remove then re-add approach isn't great as it will send an email. The approaches around that are relatively complex though.
So then I wonder if this empty array might be just be fine, so long as queries to rummager check there is a particular value in a facet rather than the facet itself exists?

I think the scenario is relatively uncommon because the field stores a yes value or nothing, whereas tagging a document various values typically takes the form of updating with something else rather than removing a value.
I agree that setting with an empty array might be the best compromise for now if we can prove it doesn't have consequences for the search results.


Modify index.html before starting express app

Pointed out by Anthony in a comment on Youtube: selected comment
The meta-tags are set to the default value when sharing the link on social networks.
Cause: some robots will not run Javascript to get meta-tags.
With this PR, index.html will be modified before starting the application and will therefore remove all default values and unused HTML.
The website will be a simple HTML page (without Javascript file).
In addition, the env var NAME, BIO and FOOTER can contain HTML.

<< anthony here
opened a corresponding issue before I saw this
https://github.com/techno-tim/littlelink-server/issues/8#issue-971200308

@Choubakawa   Thank you so much!  I thought about doing something similar but was balancing creating this repo with creating content!  Thank you!


Some examples failing when running yarn run build:examples

Do you want to request a feature or report a bug?
Bug, not in the webpack library though.
What is the current behavior?
Exploring the webpack code base to hopefully learn more about how webpack works and contribute back.

Cloned webpack
ran yarn install
ran yarn run build:examples

Then I got a number of broken examples with something like

Deleted the examples/chunkhash directory and re-ran yarn run build:examples
Came across the same error for a different failing example.
Did this until the build:examples script would pass.
All the following examples had issues and had to be deleted for yarn run build:examples to run smoothly.
- chunkhash
- code-splitting
- harmony-unused
- i18nv
- scope-hoisting
- web-worker

What is the expected behavior?
yarn run build:examples should run smooth without any issues?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Node: v6.11.1
webpack: latest on master: 4c6eb6f3
OS: OSX 10.12.5

@ismail-syed Hi there. Just a question, when you do run the script yarn run build:examples, what are you trying to achieve or make webpack do?

I wanted to build the examples too and running into the same problems as above. The reason I wanted to build the examples is because some things in my own build are working differently in v3 vs v2 and I wanted to see if the same thing happens with the examples.
brandon:webpack/ (master✗) $ yarn build:examples
yarn build:examples v0.23.3
$ cd examples && node buildAll.js
cd aggressive-merging && node build.js
cd chunkhash && node build.js
{ Error: Command failed: cd chunkhash && node build.js
/Users/brandon/projects/webpack/examples/build-common.js:22
		throw e;
		^

Error: ENOENT: no such file or directory, open '/Users/brandon/projects/webpack/examples/chunkhash/js/manifest.chunkhash.js'
    at Object.fs.openSync (fs.js:651:18)
    at Object.fs.readFileSync (fs.js:553:33)
    at /Users/brandon/projects/webpack/examples/template-common.js:53:13
    at String.replace (<anonymous>)
    at Object.replaceResults (/Users/brandon/projects/webpack/examples/template-common.js:49:18)
    at /Users/brandon/projects/webpack/examples/build-common.js:19:19
    at ChildProcess.exithandler (child_process.js:277:5)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:897:16)

    at ChildProcess.exithandler (child_process.js:270:12)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:897:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cd chunkhash && node build.js' }
✨  Done in 1.31s.

Out of curiosity I decided to try an run the test suite locally but that is failing too with similar errors:
brandon:webpack/ (master✗) $ yarn test                                                                                yarn test v0.23.3
$ npm run lint-files

><EMAIL_ADDRESS>lint-files /Users/brandon/projects/webpack
> npm run lint && npm run beautify-lint

><EMAIL_ADDRESS>lint /Users/brandon/projects/webpack
> eslint lib bin hot buildin "test/**/webpack.config.js" "test/binCases/**/test.js" "examples/**/webpack.config.js"

><EMAIL_ADDRESS>beautify-lint /Users/brandon/projects/webpack
> beautify-lint "lib/**/*.js" "hot/**/*.js" "bin/**/*.js" "benchmark/*.js" "test/*.js"

Fine. (326 files checked)
$ mocha test/*.test.js --max-old-space-size=4096 --harmony --check-leaks
module.js:487
    throw err;
    ^

Error: Cannot find module 'webpack/lib/Chunk'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/brandon/projects/webpack/node_modules/extract-text-webpack-plugin/dist/index.js:17:14)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/brandon/projects/webpack/node_modules/extract-text-webpack-plugin/dist/cjs.js:3:18)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/brandon/projects/webpack/test/HotTestCases.test.js:8:27)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at /Users/brandon/projects/webpack/node_modules/mocha/lib/mocha.js:230:27
    at Array.forEach (native)
    at Mocha.loadFiles (/Users/brandon/projects/webpack/node_modules/mocha/lib/mocha.js:227:14)
    at Mocha.run (/Users/brandon/projects/webpack/node_modules/mocha/lib/mocha.js:495:10)
    at Object.<anonymous> (/Users/brandon/projects/webpack/node_modules/mocha/bin/_mocha:469:18)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
error Command failed with exit code 1.

What am I doing wrong?

Did you read the CONTRIBUTING.md file?

Ah, thanks @sokra.
Forgot to run
$ yarn link && yarn link webpack


Docs preview test

Figured it out. You have to give actions write permissions to the repo in the repo settings.


iptables: Correctly remove Cilium chains when IPv6 is disabled

The Cilium chain removal in RemoveRules() was made dependent on IPv6 being
enabled, this is incorrect and leads to the following error when Ipv6 is
disabled:
level=warning msg="iptables: Chain already exists." subsys=iptables
level=error msg="Error while initializing daemon" error="cannot add custom chain CILIUM_OUTPUT: exit status 1" subsys=daemon

Fixes: 5b17c993e57 ("datapath/iptables: Check iptables kernel modules")

This change is

test-me-please

Coverage increased (+0.02%) to 41.24% when pulling<PHONE_NUMBER>d5184a6379fd82c4eb7d657df97953 on pr/tgraf/fix-iptables-chain-removal into e2b3db3bc33fcffa70fc4c5e1a7955d56f664cc9 on master.

Build failed: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/11806/
Looks like etcd was unable to allocate identities :(

test-me-please

Two cases of #7770 in the same CI run :-)

test-me-please


Move jokes to JSON file and use .gitignore

Tested and it works well, this PR removes the venv/ folder and also adds the venv folder  to the .gitignore.
The reason it shouldn't be included is because it contains a Python executable and all the libraries/packages you are using, so it isn't a good idea to include such huge files in your repo, when anyone who runs this will already have Python installed on their device.

@Chiroyce1 is it okay to delete .replit and replit.nix too?

There's nothing wrong in doing so, but since you are running the API on Replit, these files can be useful there (.replit contains the command to run  the server and some other metadata, .replit.nix contains the packages necessary to run the server on Replit) - so for now, keeping it is a good idea.
The reason I deleted venv/ was because it had no use, and was taking up a lot of unnecessary space on the repository.

I made a pr and merged, but the repl couldn't run so reverting now...

I made a pr and merged, but the repl couldn't run so reverting now...

Wait - before that, try to run python3 main.py in the shell

I made a pr and merged, but the repl couldn't run so reverting now...

Wait - before that, try to run python3 main.py in the shell Also we could add these 2 files to the gitigonore, so try that out. Then they will be present on the server, but not on github.

Okay, I'll try that

I get ModuleNotFoundError: No module named 'flask'

I'm just going to revert it now


Multi-period MPEG-DASH manifest - gaps in MPD timeline

Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
Shaka 3.0.7
Hi,
I'm trying to create a multi period DASH manifest with advertisements inserted between content periods.
The content periods have a SegmentTemplate with $Number$ template, and I've worked out the logic of splitting a period and setting the startNumber to the appropriate number on the next content period (after the mid-roll ad).
While observing the network tab on my browser, I see that Shaka Player Demo is fetching the segments exactly at the order I wanted it to fetch them, however, some seconds during the second period (first period of the content) the player prints this error:
Ignoring large gap at 46 size 14.04
Trying to debug the manifest, nothing pops up, is there a way to get more debug out of shaka player to explain why the large gap occured?
Manifest can be found here:
here
Playing it on the latest shaka demo app (https://shaka-player-demo.appspot.com/demo/#build=uncompiled) version 3.0.7
Would appreciate if someone could spot the error in the manifest's timeline, or point me to a place in the code where I can open more debug logs of the player.
Thank you

I found that the segments in the period are wrong and have different durations from what is stated in the manifest, this has caused the gap

I found that the segments in the period are wrong and have different durations from what is stated in the manifest, this has caused the gap


How to choose pre-trained model?

Thanks for your outstanding work. In your supplementary about selecting pre-trained model, you say"For selecting the pre-trained models, we simply opt for the one with the lowest source risk."  So what does the lowest source risk mean? Does this mean choosing the model with the best performance in the source domain?

Hi, based on our observation, most source pretrained models will reach the best performance (lowest source risk) at very late epochs (checkpoints), meanwhile, achieving relatively ok performance on target domain. So we normally choose the last checkpoint. However, for some tasks like Waymo to KITTI, the performance of final checkpoint could be very bad, if that is the case, we simply follow previous work (https://github.com/CVMI-Lab/ST3D/blob/master/docs/GETTING_STARTED.md#train-the-pre-trained) to select checkpoint which performs good on target.


Slivertoboxadapter goes under SliverPersistentHeader

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
import 'dart:ui';

import 'package:flutter/material.dart';

void main() {
  runApp(const MaterialApp(
    title: 'Flutter Demo',
    debugShowCheckedModeBanner: false,
    home: HomePage(),
  ));
}

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State createState() => _HomePageState();
}

class _HomePageState extends State {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.transparent,
      body: Material(
        elevation: 0.8,
        color: Colors.black,
        child: BackdropFilter(
          filter: ImageFilter.blur(sigmaX: 13, sigmaY: 13),
          child: ScrollConfiguration(
            behavior: const ScrollBehavior().copyWith(overscroll: false),
            child: CustomScrollView(
              slivers: [
                buildSliverPersistentHeader(context),
                buildSliverToBoxAdapter(),
              ],
            ),
          ),
        ),
      ),
    );
  }

  SliverPersistentHeader buildSliverPersistentHeader(BuildContext context) {
    return SliverPersistentHeader(
      pinned: true,
      floating: true,
      delegate: Widget1(
        max: MediaQuery.of(context).size.height * 0.75,
        min: MediaQuery.of(context).size.height * 0.5,
      ),
    );
  }

  SliverToBoxAdapter buildSliverToBoxAdapter() {
    return SliverToBoxAdapter(
      child: ScrollConfiguration(
        behavior: const ScrollBehavior().copyWith(overscroll: false),
        child: Container(
            decoration: const BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.only(
                topLeft: Radius.circular(23),
                topRight: Radius.circular(23),
              ),
            ),
            padding: const EdgeInsets.symmetric(horizontal: 16),
            child: Container(
              height: 700,
              width: MediaQuery.of(context).size.width,
              color: Colors.red,
            )),
      ),
    );
  }
}

class Widget1 extends SliverPersistentHeaderDelegate {
  double max;
  double min;
  Widget1({
    required this.max,
    required this.min,
  });

  @override
  Widget build(
      BuildContext context, double shrinkOffset, bool overlapsContent) {
    var progress = shrinkOffset / (200 - 50);
    progress = progress > 0 ? progress : 0;
    progress = progress > 1 ? 1 : progress;
    final avatarAlignTween1 = AlignmentTween(
      begin: const Alignment(0, 0.65),
      end: const Alignment(0, 0.25),
    );

    return Material(
      color: Colors.transparent,
      child: Stack(
        children: [
          const SizedBox(height: double.maxFinite),
          Positioned(
            left: 20,
            top: 50,
            child: GestureDetector(
              onTap: () => Navigator.pop(context),
              child: const Icon(
                Icons.close,
                color: Colors.white,
                size: 30,
              ),
            ),
          ),
          Align(
              alignment: avatarAlignTween1.lerp(progress),
              child: Container(height: 300, width: 300, color: Colors.white)),
        ],
      ),
    );
  }

  @override
  bool shouldRebuild(covariant SliverPersistentHeaderDelegate oldDelegate) {
    return true;
  }

  @override
  double get maxExtent => max;

  @override
  double get minExtent => min;
}

Expected results
What I need is the sliver persistent header should goes under Sliverboxtoadapter
Actual results
Sliverboxtoadapter goes under SliverPersistentHeader
Code sample
Code sample
import 'dart:ui';
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State createState() => _HomePageState();
}
class _HomePageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.transparent,
body: Material(
elevation: 0.8,
color: Colors.black,
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 13, sigmaY: 13),
child: ScrollConfiguration(
behavior: const ScrollBehavior().copyWith(overscroll: false),
child: CustomScrollView(
slivers: [
buildSliverPersistentHeader(context),
buildSliverToBoxAdapter(),
],
),
),
),
),
);
}
SliverPersistentHeader buildSliverPersistentHeader(BuildContext context) {
return SliverPersistentHeader(
pinned: true,
floating: true,
delegate: Widget1(
max: MediaQuery.of(context).size.height * 0.75,
min: MediaQuery.of(context).size.height * 0.5,
),
);
}
SliverToBoxAdapter buildSliverToBoxAdapter() {
return SliverToBoxAdapter(
child: ScrollConfiguration(
behavior: const ScrollBehavior().copyWith(overscroll: false),
child: Container(
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(23),
topRight: Radius.circular(23),
),
),
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Container(
height: 700,
width: MediaQuery.of(context).size.width,
color: Colors.red,
)),
),
);
}
}
class Widget1 extends SliverPersistentHeaderDelegate {
double max;
double min;
Widget1({
required this.max,
required this.min,
});
@override
Widget build(
BuildContext context, double shrinkOffset, bool overlapsContent) {
var progress = shrinkOffset / (200 - 50);
progress = progress > 0 ? progress : 0;
progress = progress > 1 ? 1 : progress;
final avatarAlignTween1 = AlignmentTween(
  begin: const Alignment(0, 0.65),
  end: const Alignment(0, 0.25),
);

return Material(
  color: Colors.transparent,
  child: Stack(
    children: [
      const SizedBox(height: double.maxFinite),
      Positioned(
        left: 20,
        top: 50,
        child: GestureDetector(
          onTap: () => Navigator.pop(context),
          child: const Icon(
            Icons.close,
            color: Colors.white,
            size: 30,
          ),
        ),
      ),
      Align(
          alignment: avatarAlignTween1.lerp(progress),
          child: Container(height: 300, width: 300, color: Colors.white)),
    ],
  ),
);

}
@override
bool shouldRebuild(covariant SliverPersistentHeaderDelegate oldDelegate) {
return true;
}
@override
double get maxExtent => max;
@override
double get minExtent => min;
}

Screenshots or Video
https://github.com/flutter/flutter/assets/102861213/e15e67bd-4d3a-48b7-a9fa-195e48f051fc
Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.3, on Microsoft Windows [Version 10.0.19045.3448], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Android Studio (version 2022.2)
[√] Connected device (5 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

Hi @Lingeshwaran78. Thanks for filing this. I see a similar/related issue which has been closed https://github.com/flutter/flutter/issues/62194. Can you check the suggestion out to see if it works in your case?

I have already tried but doesn't work on my case. btw , thanks for the response

Thanks for your response. I can reproduce this on the latest master and stable channels following the steps highlighted above.
stable, master flutter doctor -v

[✓] Flutter (Channel stable, 3.13.5, on macOS 13.0 22A380 darwin-arm64, locale
    en-NG)
    • Flutter version 3.13.5 on channel stable at
      /Users/damilolaalimi/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12fccda598 (6 days ago), 2023-09-19 13:56:11 -0700
    • Engine revision bd986c5ed2
    • Dart version 3.1.2
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/damilolaalimi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.82.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554                        •
      android-arm64  • Android 14 (API 34) (emulator)
    • iPhone 14 Pro Max (mobile)      • BB55E997-7F31-462D-B3B1-6B177D9B40C7 •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • iPad (10th generation) (mobile) • 5B1DA2B3-69EC-435B-95F8-550B7F3A9FBB •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)                 • macos                                •
      darwin-arm64   • macOS 13.0 22A380 darwin-arm64
    • Chrome (web)                    • chrome                               •
      web-javascript • Google Chrome 116.0.5845.187

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[✓] Flutter (Channel master, 3.15.0-9.0.pre.4, on macOS 13.0 22A380 darwin-arm64, locale en-NG)
    • Flutter version 3.15.0-9.0.pre.4 on channel master at /Users/damilolaalimi/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f6f18d0688 (5 hours ago), 2023-09-25 23:09:32 -0400
    • Engine revision 75950dc280
    • Dart version 3.2.0 (build 3.2.0-198.0.dev)
    • DevTools version 2.28.0-dev.12

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/damilolaalimi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.82.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554                        • android-arm64  • Android 14 (API 34) (emulator)
    • iPhone 14 Pro Max (mobile)      • BB55E997-7F31-462D-B3B1-6B177D9B40C7 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • iPad (10th generation) (mobile) • 5B1DA2B3-69EC-435B-95F8-550B7F3A9FBB • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 13.0 22A380 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 116.0.5845.187

[✓] Network resources
    • All expected network resources are available.

• No issues found!

What I need is the sliver persistent header should goes under Sliverboxtoadapter

Since the SliverPersistentHeader is pinned, the SliverToBoxAdaptor is scrolling under it as expected. This all appears to be working as expected, the header should not be rendering underneath the box adaptor. Can you share more about what behavior you are expecting?
Also, it may be helpful to simply the code reproduction. Our wiki discusses this in https://github.com/flutter/flutter/wiki/Issue-hygiene#provide-reduced-test-cases

The best way to help us [debug an issue] is to provide code, [...] that has been reduced as far as possible (such that removing anything further stops showing the bug).

"If I set pinned to false, my close icon and SliverPersistentHeader will scroll beyond the screen. What I'm expecting is that I want to scroll my box adapter above the SliverPersistentHeader."

If I set pinned to false, my close icon and SliverPersistentHeader will scroll beyond the screen. What I'm expecting is that I want to scroll my box adapter above the SliverPersistentHeader.

Hi @Lingeshwaran78 these widgets are not intended to behave in this way.
I would recommend maybe trying a Stack with the Positioned widget to create the overlap behavior you are looking for.
This may be a good question for stackoverflow, or one of the other support channels like Slack listed on the website under Community: https://flutter.dev/community
Since this does not appear to be a bug, I am going to close this for now. Thank you!


Require wheel at least 0.38.1

The current pypi package fails snyk with ReDos security issue.

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


<EMAIL_ADDRESS>decompress error

Updating 'gimp' (2.10.38 -> 2.10.38-1)
Downloading new version
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: cb16d3|OK  |    54MiB/s|D:/scoop/cache/gimp#2.10.38-1#1eb8f86.exe
Download: Status Legend:
Download: (OK):download completed.
Checking hash of gimp-2.10.38-setup-1.exe ... ok.
Uninstalling 'gimp' (2.10.38)
Installing 'gimp' (2.10.38-1) [64bit] from 'extras' bucket
Loading gimp-2.10.38-setup-1.exe from cache.
Extracting gimp-2.10.38-setup-1.exe ... ERROR Exit code was 1!
Failed to extract files from D:\scoop\apps\gimp\2.10.38-1\gimp-2.10.38-setup-1.exe.
Log file:
  D:\scoop\apps\gimp\2.10.38-1\innounp.log

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=gimp%402.10.38-1%3a+decompress+error

Content of the log:
Signature detected: Inno Setup Setup Data (6.3.0)
This is not directly supported, but i'll try to unpack it as version 5602
; Version detected: 6300
Critical error: The setup files are corrupted. Please obtain a new copy of the program.
Signature detected: Inno Setup Setup Data (6.3.0)
This is not directly supported, but i'll try to unpack it as version 5602
; Version detected: 6300
Critical error: The setup files are corrupted. Please obtain a new copy of the program.

Tried scoop cache rm * to make sure it's not a download problem.
Signature is OK, which tells me that either the file was signed corrupted or the error is a red herring.

Nevermind, this is  #14126.


Address issue #256 and provide a regression test

I am not sure why the travis badge isn't showing up, but it ran smoothly on this PR. See the results.
CC @bbrowning

Thanks for the fix and test!


quick fingerprinting tool

detection of sample_id from cram by calculating snv recall on a certain genomic window

Improved error message to be oneliner:
ERROR: s3://ultimagen-pipelines-503496316425-us-east-1-runs-data/V125/039272-20240513_0500/039272-NA24149-Z0115-CGGCTAGATGCAGAT/039272-NA24149-Z0115-CGGCTAGATGCAGAT.cram - HG003 does not match it's ground truth: hit_fraction=0.5516111238350845 matched ground truth of HG005: hit_fraction=0.9999969040343529 does not have a maximal match with it's expected ground truth: vimax_hit_fraction = 0.9999969040343529```


Deprecate in favor of cocoadialog?

I'm actually one of the maintainers at https://github.com/mstratman/cocoadialog and had been creating my own Node.js wrapper locally for a while.
I finally published it recently and it's now available here: https://github.com/unicorn-fail/node-cocoadialog
I was just doing some surfing for marketing purposes and just saw this package.
I think it would make sense to deprecate this one.
Thoughts?

Why would it make sense?

Because https://github.com/unicorn-fail/node-cocoadialog is a proper Node.js wrapper:

Fully featured
Type completion in IDEs
Debugging
Error handling
Extensive API Documentation
Examples

This project basically just wraps the shell command.

Also because I plan on starting a new cocoaDialog 4 version (based on Swift and newer techniques). So I'll be updating https://github.com/unicorn-fail/node-cocoadialog to coincide with those changes.

I totally forgot to do this, but doesn't seem worth deprecating now as the references projects has not seen any activity in 3 years.


FileNotFound Exception while clearing Data cache

I'm using the WebDataCache.Clear(ulong maxSize) method to limit the size taken by the image cache. However, recently the app has been crashing significantly inside this method because it is not catching System.IO.FileNotFoundException.
As far as I traced there's no exception catching in the library for this call which will be a possible way to solve the issue. Still, It is puzzling me how the file could be listed when doing folder.GetFilesAsync but not be found when deleting it.
Is it enough with catching the exception or this might be pointing to another issue, potentially to the recursion while clearing the cache (just guessing)?

I traced down the error and noticed that WebDataCache.Clear calls DataCache.Clear extension on StorageFolder which then calls DataCache.Clear(List list, ulong maxSize) which internally gets the folder using the CacheFolder property.
However, CacheFolder for DataCache is "_jsoncache" but it is "_webdatacache" for WebDataCache. So it is basically trying to delete files from one folder  using another which is why it ends up throwing the FileNotFound exception.
I plan to fix it by using another extension method on StorageFolder receiving both the list of files and the maxSize

I submitted a pull request trying to solve the issue


Globally disallow young images as it is a violation of Discord's ToS

A server I regular recently got hit by Discord admins for having loli/shota/cub/young/etc images posted, many of them by the Nadeko bot. Since these images are in explicit violation of discord ToS, is there any chance of having the .e621 and other commands automatically filter out Loli/shota/young/cub/etc images? We'd love to continue to use the bot*'s NSFW features* but as of now it still pulls up images that Discord disallows.

No, I'm not responsible for what's hosted on those websites. Anyone using those tags is violating discord ToS, not the bot.
I believe there is a way to explicitly exclude a tag on those websites but I'm not sure of the way to do that.