Upgrade packages, fix Bayesian NN doc

Closes #531. However, not sure if any of the upgraded dependencies will cause errors elsewhere in the docs, so going to let CI run overnight to find out. It's all good!
Also, the fact that this PR modifies the Manifest file should force Quarto to re-execute all notebooks, meaning that errors can't be hidden by virtue of being cached.

No errors... should be ready for review.

Preview for the Bayesian neural net doc: https://turinglang.org/docs/pr-previews/532/tutorials/03-bayesian-neural-network/


Damage Enrichers cause an error to be thrown

To reproduce: put a damage enricher like [[/damage formula=1d4 type=fire]] in a journal or chat card and then click it. The TypeError  "Cannot read properties of undefined (reading 'actor')" is thrown. Only occurs with Advantage Reminder enabled. Results obtained on Foundry version 11.315 (node.js+chrome), dnd5e 3.1.2, adv-reminder 3.4.1 and 4.0.0, no other modules enabled.

made a new release, version 4.0.1, with this bug fix


Add Null handling for excel files.

Need to add the ability to insert NULL database values when NULL is in the excel column.
Would also be beneficial to add a setting flag to disable if necessary.
-Thanks Mark!

Completed in v1.3.


On a slow machine the Integration tests can timeout

What happened?
On a slow VM, the Integration tests will timeout after 30's
What did you expect to happen?
The integration tests all pass so the build should keep going and complete correctly without failing the build.
What else do we need to know?
This was on the candidate build for 2.1.0

When building on slow machines you can increase the attempts number to start the integration tests by using -Dspring-boot.start.maxAttempts=
mvn  clean install -Dspring-boot.start.maxAttempts=200
Need to see if we should add that as a commented out ability in the application.properties


When the  Arch field for the ClusterPutstruct is filled when posting the accept request, is that field accessible (or could be made accessible by adding a helper function) through the db.Node, db.Cluster, or OS? Should I add it as a parameter?

@DBaum1 I think my previous comment was a bit inaccurate.
The new Arch field should be added to the  internalClusterPostAcceptRequest struct, not to ClusterPut.
Then inside clusterAcceptMember(), which is invoked in the joining node, you can call ArchitectureGetLocalID() to fill the Arch field of the internalClusterPostAcceptRequest object that is about to be serialized and sent to the accepting node.
Finally inside internalClusterPostAccept(), which is invoked by the accepting node, you have to pass req.Arch as a new parameter of cluster.Accept(), which in turn will pass it to tx.NodeAddWithArch() when creating the new node database object.
Hope that's more clear.

Thank you for the clarification!

Hi @stgraber @freeekanayaka
Would it be best to add an option to lxc launch that allows the user to specify the architecture they want to deploy their image to?
Also, any suggestions for testing this feature?

@DBaum1 there's no need of an additional option, because the architecture is implied by the image you choose. Probably the best way to test it is to use a couple of VMs of different architectures. I don't think we're going to have a way to perform automated testing of this (under test/suite), so for now we'll be happy with manual testing only.

Right, testing would effectively be:

lxc launch ubuntu:18.04/arm64 c1
lxc launch ubuntu:18.04/arm64 c2
lxc launch ubuntu:18.04/amd64 c3
lxc launch ubuntu:18.04/amd64 c4
lxc launch ubuntu:18.04 c5
lxc launch ubuntu:18.04 c6

Given our normal balance algorithm this should land us with the aarch64 server running c1, c2 and c5 and the x86_64 running c3, c4 and c6.

For your local testing, you may be able to do so by using a cluster made of a normal x86_64 laptop and a raspberry pi or similar ARM development board. If you can't find an aarch64 Ubuntu image for whatever board you have, you could do the same on armv7l by using /armhf rather than /arm64.
Alternatively if you have easy access to AWS instances, they provide aarch64 instances on there too which should let you run both an x86_64 and aarch64 instance on the same virtual network and test clustering on there.
Or if neither of those options are readily available to you, just send a pull request and after we've done the first bit of review on it, I'll test it on some hardware I have around here.

@freeekanayaka
Should I use the image alias to extract the image's architecture? An image's architecture doesn't seem to be available until after containersPost() and NodeWithLeastContainers() are called but its alias is. My thought was to create a modified version of nodes() which only returns the cluster nodes of a certain architecture.

@DBaum1 correct, you can use the image alias to get the image's architecture (the image alias is the "name" column in the "images_aliases" table, which also contains an "image_id" pointing to a row in the "images" table, which in turn contains the architecture).
Modifying nodes() to filter by architecture seems reasonable to me.

Seeking clarification: the images table has been initialized by the time containersPost() is called. So, at that point, I could query the images_aliases table for the architecture with one of the query functions and pass the result to getNodeWithLeastContainers()?

Hmm, so this is a bit more complicated than I expected.
In containersPost you may not have req.Architecture set already, in fact, in most cases it will not be set (our CLI never seems to set it).
So I think that your initial implementation was right but we need to make it more global.
We need to remove the logic from containersPost, only keeping the part which handles an already set targetNode.
Then add target selection logic to each of:

createFromImage => Select based on architecture of the image
createFromNone => If Architecture in req, then go there, otherwise pick least occupied
createFromMigration => This one will have the Architecture in req, if not, we should fail
createFromCopy => Place on the same node as the source (so we don't waste bandwidth and disk)

It's not ideal for the createFromImage case as an ambiguous ubuntu:18.04 will resolve to something different based on the architecture of the server doing the resolving but it will at least make ubuntu:18.04/amd64 and ubuntu:18.04/arm64 work properly.
What we'll eventually want I suspect is an extra simplestreams function which lets us know what architecture a particular alias is valid for, so we could feed it 18.04 and it would give us a slice of architectures, we can then use that to select a suitable node based on least busy. But it's fine to ignore that part for now, it's an optimization we can sort out later.

So Select based on architecture of the image is a bit of a problem still as you don't know the architecture of the image from req and don't get to query it until after it's been retrieved and so may end up with an image of the wrong architecture that then needs to be internally transferred to a suitable node.
Focus on the others for now as those should be easy and I'll try to send a branch later today which adds a LXD function you can hit with a req.Source and be told what architectures are compatible with it.

So the function I'm writing will actually be suitable for being called directly from containersPost.
It takes a req and figures out where it can go for all type of sources.
Got everything covered except for the interesting remote images types, will sort that out after lunch.

@DBaum1 I'm not quite done with this yet but I've pushed what I have in a draft PR here: https://github.com/lxc/lxd/pull/6585
This at least shows you the new function that LXD will have, so you can integrate it with your work.
As this isn't used anywhere in LXD, it's quite untested so may well need some fixes before it behaves.
I'm now doing the simplestreams side of this, making sure that for aliases that point to multiple images that I do get a properly filled map. Then I'll port our caching code across and rebase daemon_images.go to using that simpler client, but none of that should impact you.

I've got the simplestreams side sorted now in my branch, looking at caching next, but that's really just an optimization as far as you're concerned.

I've now ported the built-in cache over to the new mechanism, waiting for jenkins to be happy with my branch then it can land.


Update bitcoin_en.ts

Updated with BlockchainDialog and WalletModel translations regarding Bitcoin Blockchain Verification
Happy to include Stealth Addresses translations, but submitting this for review first.

When commit on master, i will add this on bitcoin_fr.ts


Dynamic rendering blocking

When I run my tests, I'm able to do it when it's simple, like that :

When it involves rendering something, I can't get it working, the page tries to load but doesn't, like that :

I'm integrating it on a project, in Angular 16.
Is there a specific config to handle this or that causes the crash ?

Usually this is an issue with the bootstrapping code. Your bootstrapping code should look like this. One of the hidden features of SafeTest is you can add #safetest to the url, reload the page, and the console should display all the test files and associated tests. See here for that working in the example angular app.

Does that show you all your test files and tests? If not then you probably have something misconfigured in the bootstrapping code.

That error is a red herring, it's fixed in https://github.com/kolodny/safetest/commit/f57bb0f479b9d299288ec28b372027eb4b9752b5#diff-81a6613f09b12b04742d8b6ef9524cac4577d91a2440485d0cacace86f489069R60, it just needs to be released.
Everything should work per your config. Can you create a minimal repo that has the issue?

Here it is @kolodny , gave you the rights to access it.
https://github.com/MartinFerret/safetest-error-case

OK, I see the issue was that windows was using \ while webpack is expecting /. I published a fix in version 0.1.13. Can you let me know if that fixes the issue?

Thanks a lot, it resolves the issue on windows !


WIP: Remove Deprecated Metrics

We have given sufficient time to the users to migrate to newer metrics. This PR removes the deprecated metrics. Metrics already exist with Prometheus recommended names.

Changes

Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
[ ] Has Tests included if any functionality added or changed
[ ] pre-commit Passed
[ ] Follows the commit message standard
[ ] Meets the Tekton contributor standards (including functionality, content, code)
[ ] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

@khrm needs a rebase 😅


VISTA Ballot Area Precinct Updates

Benefit
Update County precincts as they are received.
Acceptance Criteria

[ ]

Notes
No response
Risks
No response
Issue Reference
refs #

2024-01-15 updated Weber

3 counties on the docket for March 20th.

Box Elder
Sevier
Cache

Closed. Ongoing project. Created new issue for FY24 - Q4.


Failed to load

when I try to play music I get the message: Failed to load because no supported source was found

Mind telling me what OS and Audio system your using? ex. (OS: Linux, Audio: PulseAudio)

I have just launched 1.5.2 please let me know if that fixes your issue!

i am on windows 10 and im using realtek

1.5.2 didnt fixed it

did you install the app with the "Apple Music Setup" file in the dist folder after running the yarn install & yarn dist commands?

did you install the app with the "Apple Music Setup" file in the dist folder after running the yarn install & yarn dist commands?

no i didnt how do we do ?

Installed via the exe release.
Same error:
"Failed to load because no supported source was found"

Installed via the exe release.
Same error:
"Failed to load because no supported source was found"

Same here. I'm on Windows 10 and I installed with yarn. When played from a playlist, this error is given. When I play some random song from browse, it plays 1:30 of each song only. Looks like a preview or demo of the song.

Same here. I'm on Windows 10 and I installed with yarn. When played from a playlist, this error is given. When I play some random song from browse, it plays 1:30 of each song only. Looks like a preview or demo of the song.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

I'll try this out in a bit and see if it fixes the issue for me as well.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

I'll try this out in a bit and see if it fixes the issue for me as well.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

I'll try this out in a bit and see if it fixes the issue for me as well.

Installed node.js 14.15.4. Installed using Yarn and and via the exe same issue.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

I'll try this out in a bit and see if it fixes the issue for me as well.

Installed node.js 14.15.4. Installed using Yarn and and via the exe same issue.

@iiFir3z i think the problem i have just happened on the browser. After I refreshed the problem was fix. Maybe you could add a refresh button or something like that

@iiFir3z i think the problem i have just happened on the browser. After I refreshed the problem was fix. Maybe you could add a refresh button or something like that

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

I'll try this out in a bit and see if it fixes the issue for me as well.

Installed node.js 14.15.4. Installed using Yarn and and via the exe same issue.

Interesting fix for me. After digging around I signed out of my Apple Music on iTunes. No issues since.

Just fixed it I think. First, I reinstalled node.js as babiloof did in his issue thread, and installed using yarn. I installed node.js version 14.15.4 LTS. I think reinstalling node.js was the key though, since I tried installing with yarn instead of the .exe file before and it didn't fix it.

I'll try this out in a bit and see if it fixes the issue for me as well.

Installed node.js 14.15.4. Installed using Yarn and and via the exe same issue.

Interesting fix for me. After digging around I signed out of my Apple Music on iTunes. No issues since.

If you are still having issues after the v1.5.6 release please let me know.

With the v.1.5.6 everything works


v2.0 max ticks labeling issue

Hi,
when max ticks is generated dynamically and very near the next thousand the labels are overlapping.
For example
max ticks is set to 2001:

Also when the width is between 460 and 666 the Y Axis labels for small result sets are looking like this:

A work around to this bug is to use maxTicksLimit and stepSize. I created a code-pen showing this particular bug and this workaround. You could additionally set stepSize to maxTicksLimit/stepSize to create an arbitrary amount of steps.
I would try and help address this issue, but in its current form it seems to address two different problems; rounding of the axis labels showing too many decimals, and the bug shown in the codepen where max values are improperly handled. I can come back in a week or so to help with this Issue, but for my first contribution to this project I am probably going to split this into two separate tasks.

We're running into issues with this as well. Here's a demonstration of the options we've tried (no example code, sorry. Image version in case my hosting changes). We've eventually decided to go with the top option, which sometimes leaves more whitespace on the top than we'd like, but seems by far the least undesirable.
My personal ideal would have been to go with the middle row, if we could chop off the top-most ticks and their lines. I don't mind leaving the chart data hanging over the top tick a little, though I've been advised it's not good chart UX.


How to I pass in body for a POST call?

Hey Team,
I need to mock POST API calls,
Example:
Url: https://apicastle.com/one/two/three/fourfive
Body: [{"dev":"TaswerMahmood"},{"dev":"Mahmood_Taswer"}]
Response: {
"data": [
{"id": "1",
"name": "Taswer Mahmood",
"job": "SE"},
{"id": "2",
"name": "Mahmood_Taswer",
"job": "SE2"}
]
}
I need the mock API body to match the request body.
I would really appreciate the help.

Hi @taswermahmood
You can mock REST endpoints by configuring a REST method to use JSON Path as response strategy.
Please read the documentation for more information: https://github.com/castlemock/castlemock/wiki/Use-Case:-REST#json-path


Provide Helm chart artifact for installation

What would you like to be added:
As part of the releases of this operator, we should also release Helm charts.
Why is this needed:
The Security Profiles Operator currently provides two modes of installation:

Kustomize-generated manifests
Operator Lifecycle Manager bundle

There are a lot of organizations who depend on Helm to install Kubernetes packages, so it would be ideal to also provide a Helm Chart as means of installation
User story covered
All? This would enable more folks to install the Security Profiles Operator through their preferred means.

Comment!

/assign @stephen-fox


How to add hyperlink and actions in row columns?

Use the sourceBuilder attribute to build a dynamic row to do what you want


the pre-training hyperparameters for ResNet12  on CUB

My problem is the same as #69，
In the experiment, I found that the pre-training strategy had a significant effect on the final experimental results，
And I want to recreate ResNet12 pre-trained weights for CUB.
Could you please give some suggestions for the hyperparameters that pretraining ResNet12 on CUB?
like the pretrain ResNet12 on MiniImageNet "python pretrain.py --batch_size 128 --max_epoch 500 --lr 0.1 --dataset MiniImageNet --backbone_class Res12 --schedule 350 400 440 460 480 --gamma 0.1"

Sorry for the late reply.
For CUB, please try lr = 0.1, epoch = 600, schedule = 400, 500, 550, 580, gamma=0.1


[Event Request] Page 1131 - Cost Budget per Period Matrix - OnBeforeMATRIX_OnDrillDown

Dear ALAppExtensions team,
Through this issue we would like to request adding event publisher OnBeforeMATRIX_OnDrillDown in Page 1131 Cost Budget per Period Matrix with the following signature:
[IntegrationEvent(false, false)]
local procedure OnBeforeMATRIX_OnDrillDown(var CostBudgetEntry: Record "Cost Budget Entry")
begin
end;

which would be called as follows in MATRIX_OnDrillDown:
local procedure MATRIX_OnDrillDown(ColumnID: Integer)
    var
        CostBudgetEntries: Page "Cost Budget Entries";
    begin
        OnBeforeMATRIX_OnDrillDown(CostBudgetEntry);

        SetDateFilter(ColumnID);
        CostBudgetEntry.SetCurrentKey("Budget Name", "Cost Type No.", "Cost Center Code", "Cost Object Code", Date);
        if Type in [Type::Total, Type::"End-Total"] then
            CostBudgetEntry.SetFilter("Cost Type No.", Totaling)
        else
            CostBudgetEntry.SetRange("Cost Type No.", "No.");
        CostBudgetEntry.SetFilter("Cost Center Code", CostCenterFilter);
        CostBudgetEntry.SetFilter("Cost Object Code", CostObjectFilter);
        CostBudgetEntry.SetFilter("Budget Name", BudgetFilter);
        CostBudgetEntry.SetFilter(Date, GetFilter("Date Filter"));
        CostBudgetEntry.FilterGroup(26);
        CostBudgetEntry.SetFilter(Date, '..%1|%1..', MatrixRecords[ColumnID]."Period Start");
        CostBudgetEntry.FilterGroup(0);

        CostBudgetEntries.SetCurrRegNo(CurrRegNo);
        CostBudgetEntries.SetTableView(CostBudgetEntry);
        CostBudgetEntries.RunModal;
        CurrRegNo := CostBudgetEntries.GetCurrRegNo;
        CurrPage.Update(false);
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 45720.


reverse eight accidental payouts

During last week's payday (#3415; the first under Gratipay 2.0), we accidentally paid out to eight people that we shouldn't have. It hurts, but I think we need to issue reversals of these payouts. :-(
Let's try to notify the users privately via email.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/15698122-reverse-eight-accidental-payouts?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github).

Bah. We've also got people closing their accounts, and withdrawing that way (cf. https://github.com/gratipay/gratipay.com/pull/3392#issuecomment-100435765). :-(

It feels to me like a bridge too far to reverse bank payouts on closed accounts.

Two of the eight failed anyway.

I've issued reversals for the six successful accidental payouts last week. They will four or five days to process. Now to notify users ...

Upon reviewing history for the six users, I would actually expect two more of these payouts to fail (they've been failing in the recent past). That leaves four accidental successful payouts.

(One of which was to me, btw. :-)

Accidentally sent before I was finished (how do I turn on that "undo" feature in Gmail?), but thankfully only to @webmaven:

Greetings!

We're in the midst of a major transition, during which we're changing our terms of service for receiving money on Gratipay. Our goal is to be able to bring you on under our new terms and send you your money, but we're not quite ready to do that yet, so unfortunately we've had to reverse last week's payout. :-(

chad

From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Bcc: [4]
Subject: erroneous payout

Greetings!

You are receiving this message because you are one of four users to whom Gratipay made an erroneous payout last week.

We're in the midst of a major transition, during which we're changing our terms of service for receiving money on Gratipay. Our goal is to be able to bring you on under our new terms and send you your money, but we're not quite ready to do that yet, so unfortunately we've had to issue a reversal for last week's payout. Sorry. :-(

For more details, please see this GitHub ticket.

I will follow up when we're ready to announce the new Gratipay terms.

Leaving open until the status of the payouts/reversals solidifies.

@whit537 Let me know if you need any data on the transaction from my end.

Thanks @webmaven. It will be interesting to see how the transaction appears for you and I, because that will give us an idea of how it appears to the other two.

Right now it appears as a credit to the account on 5/15.

BTW, @whit537:

how do I turn on that "undo" feature in Gmail?

https://support.google.com/mail/answer/1284885?hl=en

@webmaven I don't see a Labs tab:

I checked in Google Apps, and Labs is enabled for Gmail. Hmm ...

Maybe because I'm using<EMAIL_ADDRESS>as a delegated account?

@whit537, that's as far as my knowledge goes, I'm afraid.

I am one of the four users. Where does the money that got paid out and then reversed go to? My assumption would be that it would go back to my gratipay account, but my gratipay account shows a balance of $0.

@kytrinyx I expect it'll require a manual step to update balances in Gratipay. I hope to get to this ticket and bring it in for a landing on Wednesday, if someone else doesn't get to it sooner ...

Ok, understood.

Apparently I got caught in the payout storm.
My Gratipay account is still reading as if it did not get reversed as well.
Let me know what happens with this.
Ironically, the payout happened because I have been catching up here and updating my settings-- so when I added my bank account. BOOM. lol

Looking into this now ...

Upon reviewing history for the six users, I would actually expect two more of these payouts to fail (they've been failing in the recent past).

And, indeed, these two more did fail.

That leaves four accidental successful payouts.

And we're all on this ticket: @webmaven @kytrinyx @heidigardner @whit537. :-)

So did the reversals succeed?

Yes, per both user confirmation and the Balanced dashboard. Here's what the reversal looks like in my personal bank account:

So the next step is to record the reversals in Gratipay.

$$ are showing back in the Gratipay account.
Good work, @whit537

Done. Check your history page, eh @webmaven @kytrinyx @heidigardner? Balance should now be correct. Aaaaaaaand I believe that closes out this issue! See you on #3481, etc. ...

@heidigardner Nice! Thanks for the confirmation. :)

It's all sorted in my history page. Thanks!

@kytrinyx Huzzah! Just in time to get you paid out properly today. :P

:heart:

I see the reversal as well.

@webmaven Cool. Maybe once we bring back payroll (https://github.com/gratipay/gratipay.com/issues/3433) we can finally add you to Gratipay and get you paid out.


Use larger text

Go through an find all views that are using smaller text then necessary. Some of our text is really small and would be hard to read for someone with poor vision. This needs to be tactfully and tastefully. Please do not just make text larger everywhere.

Closing this, will be using design mockups from DZ instead.


The suggestions appear in Overlay which is covered by software keyboard

See the screenshot above. Notice the blue line just above the keyboard? This is the suggestion popup. The position is calculated incorrectly when software keyboard is open. Hiding the keyboard allows me to see the suggestion, but 99% of the people will not notice.
I suggest to (a) detect the height of the software keyboard and adjust the position accordingly. Or (b) attach the position to the text field. The suggestions should scroll WITH the page. Currently suggestions float ABOVE the page.
What do you think?

Should be fixed by #31.


TypeError: a bytes-like object is required, not 'str'

pygarl/plugins/sprint.py", line 15, in sprint
line = line.replace("\n", "")
TypeError: a bytes-like object is required, not 'str'

you can use this syntax,  it was helpfully for me:
Plot the input received from the specified serial port
def sprint(port, baudrate):
print("Opening serial port...")
s = serial.Serial(port=port, baudrate=baudrate, timeout=1)
# Start the endless loop
while True:
    # Read a line from the serial connection
    line = s.readline()
    print("".join(map(chr,line)).replace("\n", ""))


Calling  az account get-access-token failed in cloudshell.

I'm trying get this work for me but in the cloudshell when I call az get access token with the resource-type, it give me an error of client bad request.

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

ID: f87e092b-c331-8bc9-9061-89f0712adb5a
Version Independent ID: d0ef3b6e-5973-e159-3c73-9eb8dbf2825f
Content: Use Azure Active Directory - Azure Database for PostgreSQL - Single Server
Content Source: articles/postgresql/howto-configure-sign-in-aad-authentication.md
Service: postgresql
GitHub Login: @lfittl
Microsoft Alias: lufittl

@wudong We are checking and we will get back to you.

@wudong We are not getting the error that you are getting.Can you please try the steps again.

@wudong Were you able to try this and provide results. If no questions at this  moment, we will close the thread by EOD.


Upload benchmark result

Upload the output of the benchmark driver as a markdown file to artifact.

It seems that it includes needles "warming up..." message.
https://github.com/benchmark-driver/benchmark-driver/blob/master/lib/benchmark_driver/output/markdown.rb#L21
We can send a pull request to benchmark-driver to use $stderr instead of $stdout for the warming up....

I've been wanting to delete that message too. Thanks for the suggestions. I'll give it a try.


Build with clang++-7

This pullreq enables pficommon to be built with clang++-7 installed in docker.retrieva.jp/pficommon_ci:gcc9.2007 image.
In addition, warnings when ./wafis executed are suppressed in 38c062a and 8d27bf1 , but warnings when ./waf --check is executed still remains because ./waf --check by gcc also shows warnings.
There is __gnu_cxx::stdio_filebuf in sys/system/file.h , so build with clang++-7 and libc++ will fail.

In 35b8e6b , I've fixed a bug in move assignment operator which deletes nullptr and does not call munmap when lhs is open.
Also, I've added a test for move constructor in 88bdb54 .

Thank you for the suggestion! I've committed both of them.
When lhs is open, rhs takes care of the resource after operator=(mmapper&&) is called so there is no need to call close() explicitly (it is called in the destructor).

LGTM. I will merge this pull request after the CI passes.


fix(auth, ios): named app for MFA

Description
Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.
Related Issues
#10275
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[ ] All existing and new tests are passing.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] The analyzer (melos run analyze) does not report any problems on my PR.
[ ] I read and followed the Flutter Style Guide.
[ ] I signed the CLA.
[ ] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[ ] No, this is not a breaking change.

Is an SDK issue


has no field or method GlobalBool

Default installation is not working.
$ go get github.com/assetnote/commonspeak2
github.com/assetnote/commonspeak2/command/deletedfiles
go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:33:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:34:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:35:14: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:36:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
go/src/github.com/assetnote/commonspeak2/command/deletedfiles/deleted.go:37:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
github.com/assetnote/commonspeak2/command/routes
go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:37:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:38:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:39:14: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:40:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
go/src/github.com/assetnote/commonspeak2/command/routes/routes.go:41:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
github.com/assetnote/commonspeak2/command/subdomains
go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:32:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:33:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:34:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
go/src/github.com/assetnote/commonspeak2/command/subdomains/subdomains.go:35:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
github.com/assetnote/commonspeak2/command/wordswithext
go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:31:17: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:32:16: c.GlobalBool undefined (type *cli.Context has no field or method GlobalBool)
go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:33:14: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)
go/src/github.com/assetnote/commonspeak2/command/wordswithext/words.go:34:18: c.GlobalString undefined (type *cli.Context has no field or method GlobalString)

I'm also having the same issue. I try different Go versions but same error occurs.

Edit glide.yaml and replace
  - package: "github.com/urfave/cli"

with:
  - package: "github.com/urfave/cli"
    version: "^1.22"

It won't compile but it will fix this specific error.

You need to use glide (https://github.com/Masterminds/glide) to get the correct versions of the dependencies.
glide install
go install .

go get tries to use github.com/urfave/cli at HEAD, which has broken compatibility with what's in use here.


Thank you!  Site is now fully online

Thank you for all your help @xoxys !  My website is now fully set up, thanks to Geekdocs:

Deployed site: https://pycon-redux.com/
Source: https://github.com/jamesbraza/pycon-redux

Cool! Thanks for your feedback.


Remove obsolete DateTime conversions

#780 @nickcam @HaoK @muratg @Eilon
Katana used DateTime for all of its fields/properties. We've since converted everything to use DateTimeOffset as it more accurately preserves things like time zone. However, we forgot to remove a few conversions like the ones on this PR. It wasn't a compiler break because of the implicit conversion from DateTime to DateTimeOffset, but we were loosing information in the downgrade.

Hi @Tratcher, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

:shipit:


Logout Button and Sign In Screen Issue Fix

ADDED: Logout button
FIXED: Sign In screen: autocomplete issue

Ah that is a good point. Maybe we make those so they are not buttons. Since a button should be something clickable.


Integrate social auth library to authenticate user's with Keycloak

As a user, I want to create an account and authenticate into the prototype using Keycloak.
Designs and Mockups

The user should be able to initiate the Keycloak login/registration process via a button on the prototype homepage.
After the user authenticates with Keycloak, the user should be presented with a welcome message on the prototype homepage.

Acceptance Criteria:

[ ] If it's the first time the user has authenticated with Keycloak via the prototype, a user account should be created for the user in the prototype.
[ ] If it's not the first time the user has authenticated with Keycloak via the prototype, the user's existing prototype account should be updated to match the information received from Keycloak.

Out of Scope

Keycloak registration process fields (additional fields such as DOB or postal address)
Logout process initiated from the prototype (the user can still logout via Keycloak)
Administrative and staff role assignment in the prototype based on data from Keycloak

Closing in favor of https://github.com/mitodl/hq/issues/934


Add corner_radius parameter for window and input box

This pull request adds the configuration parameter corner_radius for both the main application window as well as the input text field.
Minimal yofi.config:
corner_radius = "20"

[input_text]
corner_radius = "15 5 0 0"

The corner radius can be specified using one, two or four values with the same behavior as the CSS border-radius property (one value applies to all corners, two to opposite ones, and four to each corner separately in the order top-left, top-right, bottom-right, bottom-left).
The default behavior (no rounded corners for the application window, fully rounded ones for the input box) remains unchanged.
Resolves #6 and resolves #41.

Thanks for your contribution!  Hopefully would release this within this/next week

Awesome! Also, thanks for your review!


Fix SwitchReactor's onUntriggeredSubmit

Turns out onTriggeredSubmit and onUntriggeredSubmit both forward to onTriggered. Awkward. :sweat_smile:
CCing @primetoxinz: Looks related to the issue you guys discussed in gitter.

Thanks, @rothso!


[CELEBORN-256][HELM] Improve master/worker statefulset security context

What changes were proposed in this pull request?
Improve helm values, helps users configure custom security context for master/worker statefulsets.
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

Please fill a JIRA ticket

Thanks, merged to main for 0.3.0


Out of order blocks

Out of order blocks
How should we handle out of order blocks as they arrive. This also affects querying state.
Discussion

Yeah nice I think this makes sense for BBB.

I wonder though if this might end up giving false positives in the case that we start receiving blocks via gossip in an unordered manner? E.g. an insertion might correctly specify its parent, but because it's not in the table yet it gets 0 :thinking:

It makes me wonder if we should instead store the full parent CA in each block (rather than the parent ID)? That way we don't have to work out the ID like this, and can kinda support this case where we may not get all blocks in order?

Haven't fully thought through how this might affect the state querying though... I guess if you try to query a block that has a gap in the chain of parents, I guess you'd have to make sure that you only return None in the case that the search made it back to the BBB (i.e. a block whose parent addr is 0), otherwise error? Curious to get your thoughts anyways.

Originally posted by @mitchmindtree in https://github.com/essential-contributions/essential-node/pull/127#discussion_r1827122753

Yeh I wasn't totally happy with this but I think it's more of a problem with how we handle out of order blocks. If we made block parent nullable you'd have the same problem, you'd get None instead of 0. Maybe in the db it could be nullable but not in the type.

We could store the parent hash but I guess then we double the amount of hashes in the db.

I think we might have to have a table like orphaned that lists the ids of blocks with their expected parent hash then when the parent block comes in we replace null with the parent id or something.

As for query yeh you really can't query an orphaned branch. Maybe we can't consider blocks finalized until they aren't in the orphaned table their parent is finalized. That way you'd only have to get back to the parent instead of the BBB?

The other option would be to just have a completely separate table pending_blocks to insert out of order blocks while they wait for their parent. This might make more sense as they should really be kept out of the system. You don't want to validate a block without a parent as that's a DOS vector. I'm leaning more towards this option now that I think about it so then you could consider all blocks in the actual block table to have parents.

closing as dup of #145


BatchQueue job-collection breaks when batch_token is None

(tl;dr: Rare bug; very disruptive and requires manual recovery; minimal fix should be easy.)
For context, a BatchJob model instance is created when there's a new Spacer job to be run through AWS Batch: feature extraction, classifier training, or image classification.
On September 28, from 9:47 AM to 1:07 PM, 36 of the BatchJob instances which were created during this period (21 classification, 15 extraction) were left with a batch_token of None.
This was problematic for the periodic job-collection task:
def collect_job(self) -> Optional[JobReturnMsg]:
    batch_client = boto3.client(
        ...
    )
    ...

    for job in BatchJob.objects.exclude(status='SUCCEEDED').\
            exclude(status='FAILED'):
        resp = batch_client.describe_jobs(jobs=[job.batch_token])
        ...

Since when job.batch_token was None, the describe_jobs() call would crash with an error like this, as seen in the Celery logs:
Traceback (most recent call last):
...
  File ".../coralnet/project/vision_backend/queues.py", line 108, in collect_job
    resp = batch_client.describe_jobs(jobs=[job.batch_token])
...
  File ".../site-packages/botocore/validate.py", line 297, in serialize_to_request
    raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter jobs[0], value: None, type: <class 'NoneType'>, valid types: <class 'str'>

And upon crashing, the job-collection task doesn't get the chance to try collecting the rest of the jobs in the queue, even the jobs with valid batch_tokens.
As a result, most classification, extract, and train jobs were blocked up indefinitely. Every few hours, a few jobs would trickle through, since the order of the jobs returned by BatchJobs.objects... isn't guaranteed to be always the same. But overall, things were very stuck until I manually marked these 36 jobs as 'failed'.
Google Group thread on the stuck queue: https://groups.google.com/g/coralnet-users/c/7BSazee3jrY
How batch_token became None
Here's the code that creates the BatchJob and later sets the batch_token, in vision_backend/queues.py:
class BatchQueue(BaseQueue):

    ...

    def submit_job(self, job_msg: JobMsg):

        batch_client = boto3.client(
            ...
        )

        ...

        batch_job = BatchJob(job_token=self.get_job_name(job_msg))
        batch_job.save()

        ...

        resp = batch_client.submit_job(
            jobQueue=settings.BATCH_QUEUE,
            jobName=str(batch_job.pk),
            ...
        )
        batch_job.batch_token = resp['jobId']
        batch_job.save()

So, the BatchJob is initially created, and then it calls submit_job() on the Boto client, then it sets the batch_token from that Boto call. Basically, if something goes wrong with Boto's submit_job(), then the batch_token ends up as None.

If Boto's submit_job() actually completed, but returned a resp['jobId'] of None, then I'd expect the submit-job task to finish without errors, and I'd expect the log to include a line saying that the task finished. However, I didn't see such a log line for any of the None batch_token jobs.

If Boto's submit_job() crashed with an error, then I'd expect the log to include a traceback. However, I didn't see such a traceback for any of the None batch_token jobs.

So I conclude that, for the None batch_token jobs, the task hanged and the process got terminated during the Boto submit_job() call.

This is supported by the fact that there were AWS service issues in our region, during the interval that the None batch_token jobs were made (again, September 28, from 9:47 AM to 1:07 PM):

(As seen at: https://health.aws.amazon.com/health/status )
And also, when scrolling through the AWS Batch dashboard, I saw that many CoralNet BatchJob IDs (corresponding to 'Name' in the following screenshots) created during this interval had 0, 2, or even 3 corresponding AWS Batch jobs. They're supposed to be a 1-to-1 correspondence.

From the CoralNet job-submission code, I see no possible way that we'd create a BatchJob and then call submit_job() for it 2 or 3 times. So I think somewhere in the workings of submit_job(), Boto has some logic which makes it retry the AWS Batch job creation if needed. The fact that it created duplicate jobs probably means the AWS service was struggling.
What to do about it
In BatchQueue.collect_job(), before passing the batch_token to Batch.Client.describe_jobs(), first check if batch_token is None. If so, then at minimum, mark the job as failed and abort without proceeding to describe_jobs(). Ideally also make sure the job is retried by submitting to AWS Batch again, but the logic for doing so may or may not have to be unique for each job type (feature extract, train, classify).

There's a wrinkle to this that I missed at first. Again, the code:
class BatchQueue(BaseQueue):

    ...

    def submit_job(self, job_msg: JobMsg):

        batch_client = boto3.client(
            ...
        )

        ...

        batch_job = BatchJob(job_token=self.get_job_name(job_msg))
        batch_job.save()

        ...

        resp = batch_client.submit_job(
            jobQueue=settings.BATCH_QUEUE,
            jobName=str(batch_job.pk),
            ...
        )
        batch_job.batch_token = resp['jobId']
        batch_job.save()

batch_job has already been saved to the database with no batch_token, while it's waiting for batch_client.submit_job(). While this is happening, collect_jobs() runs every 60 seconds, so it's quite possible to collect during the short window when this batch_job has no batch_token, even during normal operation.
To confirm this, I'm currently looking at the past day's worth of celery-worker logs, and there were 8 ParamValidationErrors during this time. Meanwhile, there aren't any no-batch-token BatchJobs to fix. They probably just got unlucky with the timing of batch_client.submit_job() relative to collect_jobs(), and the subsequent run of collect_jobs() had no issues.
So if we immediately clean up the job when a ParamValidationError is detected, that could be a premature cleanup which ends up slowing down some sources. I think the easiest way to address this would be wrapping the above code in a transaction. That way, batch_job won't be visible to other threads (including any threads running collect_job()) while it doesn't have a batch_token yet.


node-gyp rebuild fail

I've just tried to install this on Ubuntu 14.04 and I'm constantly getting this error when in run npm install:
npm ERR! Linux 4.4.0-64-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--verbose"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-v8-clone package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-v8-clone
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-v8-clone
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR!     /root/HarborJS/npm-debug.log

Any ideas?

+1 , same happend to me, this is because of "docker.io" module, please consider to move to https://github.com/apocas/dockerode , docker.io npm module is not been supported anymore


Disabled options are still able to be selected.

Describe the bug
You are still able to select an option that would normally be impossible. (with the mouse)
To Reproduce
Steps to reproduce the behavior:
type this, or anything in which you would NOT want an option to be selected, then turn on the include responses with failed conditions. When you run it, select to option (with the mouse) which would normally be impossible. It shouldn't run, but it does.
Nathan: what's the problem?

nothing [if problem == false)
=> move_on
Mouse can select anything no matter what
=> go_to_thing

List steps to see error
See error, etc

Expected behavior
A clear and concise description of what you expected to happen.
The option should not be selectable.
Screenshots
If applicable, add screenshots to help explain your problem.

Is there a setting to disable mouse input with it? Is that what you mean?

No, just that disallowed items will no longer be focusable or clickable in the example balloon.


jQuery.type() has been deprecated and can easily be replaced with vanilla typeof. Slick broken with jQuery 4!

short description of the bug / issue, provide more detail below.
Slick uses $.type() aka jQuery.type() - See https://api.jquery.com/jQuery.type/

Here are the two lines in Slick code where it is used:
https://github.com/search?q=repo%3Akenwheeler%2Fslick %24.type&type=code
jQuery.type() has been deprecated in jQuery 3,3 and removed in jQuery 4 - so Slick is broken.
There's a super simple replacement in Vanilla JS:
typeof value
This is the CoPilot answer:

Since jQuery.type() is deprecated in jQuery 4, you can use the native JavaScript typeof operator as a replacement. Here's how you can do it:
// Using jQuery.type()
var type = jQuery.type(value); // Deprecated in jQuery 4

// Using native JavaScript typeof
var type = typeof value;

The typeof operator returns a string indicating the type of the unevaluated operand. It's a straightforward and efficient way to get the type of a variable in JavaScript.
Would you like more examples or further assistance with jQuery 4?

====================================================================
[  paste your jsfiddle link here  ]
TODO
====================================================================
Steps to reproduce the problem
Try to use Slick with jQuery 4
====================================================================
What is the expected behaviour?
Slick works
====================================================================
What is observed behaviour?
Slick is broken
====================================================================
More Details

Which browsers/versions does it happen on? All
Which jQuery/Slick version are you using? 4
Did this work before? In jQuery 3

#494 #3283

Here's the MR to fix this: https://github.com/kenwheeler/slick/pull/4221


(#566) test case cleanups

#566
Changes include:

Remove anAuthorizedUser as it was confusing.
Updated signIn method. By default, it'll log in as an employee.
Some cleanups in test files.

@pankaj-ag done with the feedback.
Assigning no-role will make sense. For example, if we want to check something that is not accessible if a person is not an employee, we won't be able to test it if we assign the employee role to every user.


LANTERN-802: Created a new webscraper and test file for Zoobook Systems

Pull requests into this repository require the following checks to be completed by the submitter and reviewers.
Submitter:

[x] Administrative tasks are complete.

This pull request describes why these changes were made.
The JIRA ticket links to this PR.
The JIRA ticket for this PR is: LANTERN-802

[x] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

[x] Code review has been performed.

Code diff has been done and checked to ensure only expected code is being committed.
A linter for the language has been run.

Primary Reviewer:

[ ] Code works.

Code has been run locally and the basic functionality affected by the PR has been checked.
Edge cases have been checked to ensure behavior is as expected.

[ ] Code review has been performed.

Code is maintainable, reusable, efficient, and correct.
Code accomplishes the tasks purpose.
Code follows style guidance appropriate for the language, including passing linter checks.
Code is well commented (which does not mean verbosely commented).

[ ] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

Merger:
Prior to merging, ensure that all checks have been completed. Delete the branch after the merge
is complete.

@rishi-salunkhe-mettle Reviewed and Approved, please assign within Mettles for Github PR Reviewer approval.


Fix startTime and endTime in RepoComparisonGraph

This fixes two problems:
1.) Before this change, RepoComparisonGraph instances require a not-null startTime and endTime being passed to them via constructor.
Since there are circumstances (eg. when no data is available and no startTime, endTime were specified) where either startTime or endTime or both are null, this requirement cannot always be satisfied.
2.) When startTime or endTime are not specified and at least one commit is found, startTime and endTime were updated, but not passed to the resulting RepoComparisonGraph instance.
Todo:

[x] Test changes

Tested it locally and it seems to work


libpq-fe.h not found

Hi
I have this error:
/Packages/CPostgreSQL-1.0.0/module.modulemap:8:12: error: header '/usr/include/postgresql/libpq-fe.h' not found

On ubuntu 16.04 I have installed:
apt-get install postgresql postgresql-client postgresql-contrib

What have I forgotten?

I fix it 😀
I changed:
apt-get install postgresql postgresql-client postgresql-contrib

by
apt-get install postgresql postgresql-client postgresql-contrib libpq-dev

I updated the Readme in #25 to clarify this. Thanks @TofPlay for the update.

after successfully running "apt-get install postgresql postgresql-client postgresql-contrib libpq-dev" which does install /usr/include/postgresql/libpq-fe.h, the following docker command fails (error follows)
docker build -t swift-on-ecs-prebuilt --build-arg SWIFT_VERSION=3.0-RELEASE .
/vapor/Packages/CPostgreSQL-1.0.0/module.modulemap:8:12: error: header '/usr/include/postgresql/libpq-fe.h' not found
apparently the above solution no longer works. anyone have anything that does?

Wait a second. Running apt-get install libpq-dev on the host system will not have any effect on the Docker build. You need to install the packages in the build containers with a RUN command.

can you elaborate a bit for someone who is new to Vapor, Docker and SPM? i’ve been mostly doing client-side swift.

On Jul 26, 2018, at 10:03 PM, Zsolt Váradi<EMAIL_ADDRESS>wrote:
Wait a second. Running apt-get install libpq-dev on the host system will not have any effect on the Docker build. You need to install the packages in the build containers with a RUN command.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/vapor-community/postgresql/issues/24#issuecomment-408312253, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhi08rpqr6XN6PEpJwEloXA9EW1HN_qks5uKp81gaJpZM4LDbw5.


Lua scripts with comments are not working with RedisScript.fromResource() and RedisScript.fromFile()

RedisScript.fromResource() and RedisScript.fromFile() removes line breaks from the lua script, which are necessary for comments to work.

Can you share a script? I successfully use LUA with comments (multi and single line) in it without any problems.


[Whisper] verbose_json responseFormat should return correct type

Describe the bug
When I use responseType verbose_json, I get a typescript error. The request returns segments, which is not present in the response types
To Reproduce
const { data: { segments } } = await this.openAiClient.createTranslation( // TypeScript throws an error here
  readStream as unknown as File, // voice file
  'whisper-1', // model
  undefined, // prompt
  'verbose_json', // reponseType. This means another response type should used
  0.2, // temperature
);

Code snippets
No response
OS
macOs
Node version
Node v18.14.0
Library version
openai v3.2.1

The code provided does not seem to be this SDK; the bug may be present in another library you're using.
Our upcoming v4 of this library has support for this format, though it currently isn't typed: https://github.com/openai/openai-node/blob/v4/src/resources/audio/transcriptions.ts#L54
This should be fixed by https://github.com/openai/openai-openapi/pull/58


Using Transaction.hashForSignature that uses BCC signature algorithm

I did changes that permit to call the Transaction.hashForSignature method that uses BCC signature algorithm. So now, when you use a Wallet object with its sendCoins methods, you really build a BCC transaction.
I did tests in regtest mode, and my transactions were well accepted by a Bitcoin ABC full-node.

Great work, but I ran mvn compile and got errors when trying to compile a859287, af39039, and 5c179be .  I get errors like:
method org.bitcoincashj.core.Transaction.hashForSignature(int,org.bitcoincashj.script.Script,int) is not applicable
Is this what you got when you compiled?  I do not seem able to do any kind of mvn exec since I cannot compile those commits.

For now, you have to build using -Dmaven.test.skip=true (e. g. mvn package -Dmaven.test.skip=true), as stated in woodywang README.md file. I also break unit tests added by woodywang, because I changed the hasForSignature method he added to remove the last parameter that was finally not needed.
We need to correct that!

Hi @bgoetzmann , I checked the changes and found
long amount = this.inputs.get(inputIndex).getValue().value;
in Transaction.hashForSignature method. But getValue() may return null if I construct a TransactionInput object by previous Tx hash and vout index directly. We haven't a setter for the value field. So it doesn't support to build and sign transaction offline.


RTC_WDT, IWDT, TWDT (IDFGH-7850)

Is your feature request related to a problem? Please describe.
Hello,
i see the
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/wdts.html
for IWDT, TWDT
Interrupt Watchdog Timer (IWDT)
Task Watchdog Timer (TWDT)
and i see the
https://github.com/espressif/esp-idf/blob/master/components/esp_hw_support/include/rtc_wdt.h
for RTC_WDT
Describe the solution you'd like
A clear and concise description of the relation of IWDT, TWDT to RTC_WDT
do we have 3 Watchdogs ?
or just 2 and one is a higher Level API of the other.

@franz-ms-muc Agreed. The WDTs is a common area of confusion for users. I'll leave this issue open until the WDT docs are modified. In the mean time, I'll leave some notes here regarding the watchdog timers:
Watchdog Timer Hardware
It is important to separate out the underlying hardware timers from the SW watchdog features themselves. On the ESP32, there are the three following hardware timers used to implement watchdog related features.

MWDT0 (part of Timer Group 0)
MWDT1 (part of Timer Group 1)
RWDT (part of the RTC module)

All three watchdog timers are essentially the same in design (and almost identical register interface), including features such as different timeout stages, and various timeout actions (such as interrupt, CPU reset, system reset etc). The only difference is that the MWDTs are in the digital clock domain (driven by the APB clock), while the RWDT is in the RTC clock domain (IIRC it's driven by the RTC Fast clock).
Why do we need an RWDT? Because in light/deep sleep, the digital clock domain is gated/powered-down. But there can be scenarios where we still require a watchdog timer while sleeping, thus the RWDT is in the RTC clock domain for this purpose.
See the Technical Reference Manual for more details about the hardware watchdog timers.
IDF Software Watchdog Features
A watchdog is essentially just a timer to ensure that a particular "something" (i.e., event/condition/scenario) is met/occurs within a given period, else a timeout error will be triggered. IDF watchdog timers watch two particular "things"

Ensure that interrupts are never disabled/prevented from running for too long (the Interrupt Watchdog Timer, or IWDT)
Ensure that tasks don't occupy the CPU for too long (the Task Watchdog Timer, or TWDT)

IWDT
The IWDT checks if OS tick interrupt is able to run within a given period. If the OS tick interrupt doesn't run for an extended period of time, this is indicative of...

The interrupts were either disabled for too long thus preventing the OS tick interrupt from running
There was another ISR that took too long to execute, thus preventing the OS tick interrupt form running

The IWDT uses the MWDT1 as its underlying hardware timer
TWDT
The TWDT checks that a the FreeRTOS Idle tasks (which have the lowest priority) are able to run within a given period. If the Idle tasks are unable to run for an extended period of time, this is indicative of:

A higher priority task being stuck in an infinite loop and never blocking
A higher priority task taking too long to execute

The TWDT uses the MWDT0 as its underlying hardware timer
RWDT
As for the RWDT hardware timer, this is just used as a general purpose watchdog timer in times where the IWDT/TWDT are disabled, in order guard against particular sections of code getting stuck. For example,

The RWDT is used during system startup as the IWDT or TWDT will not have been configured at that stage.
The RWDT is used to guard against the sleeping process getting stuck (as the IWDT/TWDT will be disabled during sleep).

The RWDT isn't used by our users very often. It's more of an internal API, but there is still an API exposed publicly incase users need an extra watchdog for their own purposes.

Hi,
I have a very strange scenario.  I have IWDT and TWDT enabled by default and my system hangs after a few days. The RWDT is disabled. This started at version > 4.0.
Maybe the system is restarting due to panic. However, this would not go into download mode and would not stop. In fact, I've already validated that it's not in download mode and there was no power-on or brown out.
I already turned off coredump and put the panic handler in IRAM, nothing solved. I really don't know what the problem is, it seems like the CPU just stops.
To maintain operation I want to start RWDT in user software since I can't update the bootloader remotely.
Apparently it worked, but I would like to validate if it is correct. I want it to restart the whole system after 60 seconds (to take time for longer operations).
My code is:
    rtc_wdt_protect_off();  // Disable RTC WDT write protection
    rtc_wdt_disable();
    rtc_wdt_set_length_of_reset_signal(RTC_WDT_SYS_RESET_SIG, RTC_WDT_LENGTH_3_2us);
    rtc_wdt_set_stage(RTC_WDT_STAGE0, RTC_WDT_STAGE_ACTION_RESET_SYSTEM);
    rtc_wdt_set_time(RTC_WDT_STAGE0, 60000);
    rtc_wdt_enable();      // Start the RTC WDT timer
    rtc_wdt_protect_on();  // Enable RTC WDT write protection

And the main task constantly call:
rtc_wdt_feed();

An interesting thing: in my research I saw that the ESP32 only goes into download mode when it is restarted by power-on, brown out and RTC Watchdog. However, I forced RTC Watchdog to restart the system but it didn't go into download mode, even with GPIO0 low. I'm using ESP32 v3.

@Dazza0 check this issue https://github.com/espressif/esp-idf/issues/10110.
In my tests the CPU does not reset with the RTC WDT in RTC_WDT_STAGE_ACTION_RESET_SYSTEM mode. Also, there is no printout of the stack trace or registers during the crash.
So I changed it to RTC_WDT_STAGE_ACTION_RESET_RTC. Now the WTD is working, however, I believe there is no message when starting. RTC restarts together.
I couldn't find the source. However, I found it very strange not to restart with RTC_WDT_STAGE_ACTION_RESET_SYSTEM.

@brunohpg
The full stack trace and register printout is done in the panic handler. But on a system reset triggered by a watchdog, the hardware will automatically save the last PC of each CPU, this then gets printed on the next boot up. Look for something like the following in the post reset boot:
W (84) boot.esp32: WDT reset info: PRO CPU PC=0x4008440f
W (90) boot.esp32: WDT reset info: APP CPU PC=0x40084407

@Dazza0 check here: https://github.com/espressif/esp-idf/issues/10110#issuecomment-1363885862
As I said, I think RTC_WDT_STAGE_ACTION_RESET_RTC do not print PC.
It'll be printed only with RTC_WDT_STAGE_ACTION_RESET_SYSTEM. But with RTC_WDT_STAGE_ACTION_RESET_SYSTEM, the system do not reset!

Closes https://github.com/espressif/esp-idf/commit/8d558a0e


Add reasonable cli output

I removed the debug output, dhcp.js was producing. But I liked it to see what the server/client is actual doing. I think exposing a state event to show the process, the server/client is in, would make sense.
If we have this, a reasonable cli output should be made. Maybe with several verbosity levels.

I like the ideia 👍

I propose the following format:
$ dhcpd --verbose --foo --bar
Received DHCPDISCOVER from 12-34-56-78-90-98
Send DHCPOFFER to 12-34-56-78-90-98
    - address: <IP_ADDRESS>
    - netmask: <IP_ADDRESS>
    - router: <IP_ADDRESS>
Received DHCPREQUEST from 12-34-56-78-90-98
Send DHCPACK to 12-34-56-78-90-98
    - address: <IP_ADDRESS>
    - netmask: <IP_ADDRESS>
    - router: <IP_ADDRESS>
Active Leases: 17

In non-verbose mode, I would output nothing at all, since it's a daemon. But #14 should come.
On the client side it's ok to simply print the config for the moment. This can be analyzed with AWK or something and applied to the local system if wanted.


Bad problem.

I want to change where the freking thing installs. As small as it may be I want to choose where to put it.(windows) Thank you!

Yes I understand, I will try to add this choice in a future release.
Please see the new beta meanwhile. More information here https://github.com/Aluxian/Facebook-Messenger-Desktop/issues/458


Add sytle customization docs page

I think giving people the tools they need to customize is the way to resolve style preference issues. My hope is that people contribute to this page and we get a cookbook of styling ideas. I'm hoping @buyology's idea in  #792 will be added here!
Will add images when I figure out the workflow for getting the links to work on github.

Great!


[CANARY] Disable test retries

IMHO we cannot keep on hiding problems by "retrying tests" until it works.
This is a doomed approach.
I perfectly understand how painful it is to go and debug these flakyness / concurrency issues, and that it is much easier to ignore the problem - but we have to solve these - they are definitely indicative of deep quality issues and the only way to do so is to make it as obvious as possible instead of hiding it under the retry-carpet.
This is a canary PR that will very likely keep failing for some time - until we fix ALL these issues.
I will rebase it against main daily, and eventually we should get it green and stable.
Finally note that this canary is usually AHEAD of main - using commits from pending PRs fixing flakyness

Of course, please do not restart any of these manually.
It should be green on the first try immediately after push.

Green again, but #3225 is still a clear issue before we can consider merging this.

08/09/2024:

TestLogsWithForegroundContainers
TestIPFSComposeUp

Run: https://github.com/containerd/nerdctl/actions/runs/10323534574/job/28581121980
The logs one is perplexing, but far from being the only log problem in CI. We should really have a look at logs overall.
The IPFS one is also happening often - use of closed network connection may suggest low quality code / failure to handle errors? IPFS overall has been very flaky so same here, a serious rewrite might be in order.

Closing in favor of #3305


Help for adding more items

Can you give me some pointers of how I can proceed to add more items to the carousel?

If you'll figure out the bug, please fill free to create pull request.


Missing a section in navbar.

The navbar for smaller dimensions has the open source section but the navbar in larger dimensions is missing this.

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊
You can also check our CONTRIBUTING.md for guidelines on contributing to this project.

You can remove it

Hello @sharmi4590! Your issue #224 has been closed. Thank you for your contribution!


Comments addition

Current coverage is 62.39%

Merging #73 into master will decrease coverage by -1.64% as of 8b0a0dc

@@            master     #73   diff @@
======================================
  Files           49      49
  Stmts          923     952    +29
  Branches       151     159     +8
  Methods          0       0
======================================
+ Hit            591     594     +3
- Partial         32      33     +1
- Missed         300     325    +25

Review entire Coverage Diff as of 8b0a0dc

Powered by Codecov. Updated on successful CI builds.

Moved towards #68


Fix fetchFirstCommit({ owner, repo, sha }) so the sha option starts l…

…isting commits from specified SHA or branch.

Thank you


Add mouseCursor parameter to Chips

Part of https://github.com/flutter/flutter/issues/58192
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

I made the tests and Chip only support hovered, focused and disabled material states as per the documentation I added to match and rely the InkWell behavior. Once https://github.com/flutter/flutter/issues/128289 is resolved, it would be easier to support selected too (or it might have to be done as the same time as https://github.com/flutter/flutter/issues/128289)

Thank you for the review, I'd just want to clarify something

Overall, I would lean toward migrating _RawChipState away from MaterialStateMixin; I bet it'd reduce complexity since InkWell is already using a states controller.

I agree with you. But do you mean you'd prefer those changes to be made in this PR or are you fine splitting the work and have another PR to resolve https://github.com/flutter/flutter/issues/128289 ? I'd lean more towards splitting it, especially since https://github.com/flutter/flutter/pull/128507 got reverted in https://github.com/flutter/flutter/pull/128607

I agree with you. But do you mean you'd prefer those changes to be made in this PR or are you fine splitting the work and having another PR to resolve #128289 ? I'd lean more towards splitting it, especially since #128507 got reverted in #128607

Splitting is usually better as it makes changes easier to track and, as you pointed, balances the risk of Google testing failure or the risk of a revert .
So when possible, land first the less risky part (here adding parameters), then land riskier part (here refactoring that might break some internal Google tests).

I'd lean more towards splitting it, especially since #128507 got reverted in #128607

I didn't know about this, thanks!
I agree with Bruno's conclusion: It'd probably be best to minimize the risk of this addition being reverted by saving the refactor for a future PR 👍


Latest release references dist/cookies-eu-banner.js which doesn't exist.

The main parameter in package.json refers to dist/cookies-eu-banner.js, which isn't included in the release itself, and as such hasn't been working properly for us unless we manually run npm run build in the downloaded node module.
Release 1.2.10 Included the dist/ folder and works fine as a result. Was there a specific reason it was removed and included in .gitignore?
Would it be easier to point main to src/cookies-eu-banner.js instead?

You right, I've just released the 1.2.14 which should fix that :)

@Alex-D same issue with the latest release 1.2.15.

Should be fixed in 1.2.16.
Sorry again ^^'

It works great now! Thanks.


Training time differences

Hi,
Thank you for your great repo, I highly appreciate it.
I have updated efficientdet-pytorch repo from previous (August 2020) version. Updated timm and torch from 1.4 to 1.7.
When running efficientdet_d1, I noticed training loop takes about twice the time. More specifically, backbone forward takes twice the time.
I noticed efficientnet_b1 works with SiLU activation instead of Swishme in previous version. Could that be the main reason for the time difference? Is there something else?
I work with one GPU, without parallelism, model EMA or mixed precision.
Thank you!

@Asifzm I'm moving this to discussions because it's not a bug
There have been quite a few changes to effdet and pytorch in that timespan. I've noticed a number of hardware and version specific performance regressions in PyTorch, esp 1.7. I'd try it in different releases, the cuda 10.2 variants of 1.7 will be closer to 1.4, the 11.x may have some specific performance issues with your exact card. You can also try 1.8 and NGC containers, I usually train on NGC containers... 20.12 and 21.02 both seem pretty good.
In terms of this codebase, I made a number of changes in the summer that impact performance, some gained speed, but others lost some speed in exchange for better loss stability and results.
You can try experimenting with --jit-loss to enable jit scripting the loss fn for some speed gain, but it can blow up memory usage on the GPU.
You can also revert back to older loss fn with --legacy-focal, it has different throughput/memory behaviour, usually a bit faster, but it's a bit less numerically stable than the current one
And finally, you can try --torchscript to train with the whole model + bench torchscripted, I often find this improves the overall throughput.
The SiLU activation change should be an overall performance gain for PyTorch 1.7/1.8.


⚠ Bofrost.at has degraded performance

In 8218524, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2715 ms

Resolved: Bofrost.at performance has improved in 92fe47a after 20 minutes.


Issue with the array defualt value mapping in Ballerina to OAS generations

Description:
$Subject
https://github.com/wso2-enterprise/internal-support-ballerina/issues/505
PR: https://github.com/ballerina-platform/openapi-tools/pull/1571

Close this with the favour of https://github.com/ballerina-platform/openapi-tools/pull/1572


Incorrect minification in CSS calc()

This line of code:
font-size: calc(20px + 2.77778vw)
is currently being minimized to this:
font-size:calc(20px+2.77778vw)
But that isn't valid CSS anymore. Whitespaces should not be removed.

Please report the bug to https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port. Or you may try updating the version of CSSmin in composer.json.

and for sake of tracking, post issue link once you're done with bug report there

I added this one a couple of months ago, seems applicable?


Help with "Triggering an update"

I am constantly updating the swiper with new data, and having redraw issues, so I am trying to use the "Triggering an update" watching the property. This is not working, and wanted some assistance.
My swiper gets the data filtered on a route controller, which is passed via the component.
//swiper-component.hbs

 {{#swiper-container class="item-carousel" loop=true centered=true slidesPerView=4 registerAs=itemSwiper updateFor=categoryItems}}
    {{#each categoryItems as |item|}}
    {{#swiper-slide}}
        <div class="item-cell item d-flex justify-content-center align-items-center text-center" onclick={{action onSelect item}}>
          {{item.title}}
        </div>
      {{/swiper-slide}}
    {{/each}}
  {{/swiper-container}}

The swiper does not redraw when the data changes. Any assistance would be great. Thanks

Are you adding more categoryItems or are the contents of a single item changing?
If it is just the title that changes, you should not need the updateFor.
My guess would be that you listen to changes on a container-object (categoryItems) which is not triggering changes, as it does not change. An example: If you are using a: Ember.A() and then call a.pushObject({foo: 'bar'}); multiple times, an observer like Ember.observer('a', () => console.log(123)) will not trigger, as you did not change the array itself, but only its properties (i.e contents). If you want to get notified when elements are added/removed, you need to observe the arrays length-attribute Ember.observer('a.length', () => console.log(123)). That's something unrelated to this addon. You should really check out and play a little bit with Ember.Observable
As with #43 it's really hard to help without further information. Either a working example (a minimal project that reproduces your issue), or at least, providing information about the versions of ember, this plugin and so on, would really help.

For the time being, I'll close this. If you have further information I'm happy to reopen the issue.


Adds storage of the overlap matrix on calculation

Please check to make sure that pyscf isn't added back into requirements after merge. It is strange that I don't need to merge master back into your pull request even though I made later commit.


Shareable configuration

Expected Behavior
Mergify should be able to be pointed to a configuration hosted somewhere else, using it as a base, similar to what, for instance Renovate does.
This is particularly handy when someone has many repositories needing the same (base) configuration.
Actual Behavior
As far as I know, the same configuration should get copied and pasted into every repository.
Proposal
These are some ideas of what it could look like, but better ways might be concocted.
# Imports the content of the URI, using it as a base
from: '<some URI>'

Alternatively:
# Includes rules from somewhere else, possibly with multiple sources.

import_pull_request_rules:
   -  '<some URI>'
   -  '<some other URI>'

import_queue_rules:
   -  '<some URI>'
   -  '<some other URI>'

Hi @DanySK
This is an excellent idea and is already on our roadmap. :)

Thanks! :pray:
Is the roadmap public? :eyes:
I'd like to follow the progress!


feat(drawer): adds drawer component

fixes https://github.com/patternfly/patternfly-next/issues/1786
refactored this so that it's a component, and it can be used outside of the context of the page component.

Deploy preview for pf-next ready!
Built with commit fdb00eba2cfe25171bf498c0e36dcb17b2959753
https://deploy-preview-2069--pf-next.netlify.com

@mcoker is this drawer component also have the capability to push content over? if so, it was mentioned that the drop shadow doesn't make as much sense in that use case since it's not hovering and is pushing. what do you recommend?

@LHinson it does. Initially we discussed leaving that feature out as we didn't want to support it with the notification drawer yet since pushing the content over would make the main content area very narrow in certain viewports and we would need to reconsider our responsive breakpoints to support that. However after looking at the TopologyView component, I refactored this drawer to support that feature, since that is how they use the drawer in that component. I just made note in the Drawer documentation that the inline variation (pushes the content over) isn't supported for use in the page component where the drawer is displayed relative to the main content area.
That's a little background for that feature, and it looks like there is a drop-shadow in the TopologyView component.
Do we want to remove the shadow all together for the inline variation and encourage that change on TopologyView? Or maybe disable the drop-shadow by default for the inline variation, and offer a modifier to add the drop-shadow? Or leave it as it is, and add a modifier to disable the box-shadow (either just for the inline variation, or for the default variation, too)?