Export 'src/index' instead of 'lib/Animated'

:wink:

I believe this is intentional due to our build process.

@browniefed Oh my bad. But it should still be changed to lib/index.js instead of lib/Animated.js, right?
Is there a way to let the React Native Packager handle the building?


Compatibility with Code Server?

Any chance this extension can be made compatible with Code Server?
-mike

I don't see why not, will look into it some more when I've got time :)

Hmm I'm not too knowledgeable on Code Server so I'll ask you what you're hoping for. My understanding is that there's a few ways to use Code server:

Remote SSH / tunnel - in which you're essentially running on a remote machine but using the web UI. Uses the file system of the remote machine
Github codespaces (and its cousins) - in which you're running entirely in-browser with no actual file system except the "virtual" one containing the workspace

For the first case the extension works fine, for the second case it can't work since it needs access to the phpstan binary. Theoretically you can hack that in by including it in version control but I'm not sure if that's really a valid workflow, and I'm not sure whether you can even run such heavy programs in such an environment. Is there another setup I'm missing?
I'd basically say that this extension is close in architecture to the ESLint and Prettier extensions. If those don't run somewhere (which they don't in the case github codespaces and they do in the case of remote-ssh) then this extension probably can't be made to run there either.

I don't know the answers to your questions, but I know someone who might. I will direct them here...
thanks,
-mike

@SanderRonde,
The problem is that being an open source version of vs code, code-server cannot access Microsoft's marketplace due to licensing issues... however, it can technically use all vs code extensions - if they're published in the open source marketplace (Open VSX Registry) or the extensions can be installed manually on code-server using the .vsix file.
So, @SanderRonde, can you help us out by...

making a .vsix file for phpstan that we can download and manually install on code-server?
publishing phpstan to the Open VSX Registry so everyone using code-server can use phpstan?

WDYT?
Thanks.
SAL
ref https://www.perplexity.ai/search/to-make-a-vs-code-extension-av-cROTaB6MS5KNUk9uW0ysEw
ref https://coder.com/docs/code-server/FAQ#how-do-i-install-an-extension-manually

Ahhh I completely misunderstood you then. Yes of course I can do that, I'll upload it to the Open VSX Registry

Done: https://open-vsx.org/extension/SanderRonde/phpstan-vscode


python3Packages.praw: 7.4.0 -> 7.5.0

Motivation for this change
Update to latest upstream release 7.5.0
Change log: https://github.com/praw-dev/praw/releases/tag/v7.5.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 145907 run on x86_64-linux 1

6 packages built:

giara
home-assistant
python38Packages.praw
python38Packages.sopel
python39Packages.praw
python39Packages.sopel


Generate two .xml files

Hi. I have the next problem: jest-allure generate two .xml files, one of them has an empty , but second is fulfilled.
In my package.json file i use
"jest": { "setupTestFrameworkScriptFile": "./jest.setup.js" }
In jest.setup.js i used
const { registerAllureReporter } = require("jest-allure/dist/setup")
registerAllureReporter();
In file ./node-modules/jest-allure/src/setup.ts
I noticed that you are using registerAllureReporter() in the end of code
. I think it generate .xml second time.
I resolved my issue by the next direction:
In jest.setup.js I just require file ./jest-allure/dist/setup
require("jest-allure/dist/setup") and dont use registerAllureReporter(),
I think, you need to correct example with "setupTestFrameworkScriptFile"

@Strandol you're right, nice catch!
I'll update readme soon.

I have the similar problem, thanks for the post.
And I have another question related to it, how to specify the result folder if using const { registerAllureReporter } = require("jest-allure/dist/setup") in jest.setup.js?

Readme updated.
@stevelibuzz basically, you just need to add clean import:
import "jest-allure/dist/setup";


Create Link from code behind

I want create a Link (to be added into a ModernTab)
Link link1 = new Link();
link.DisplayName= "Step 1"
link.Source =  new Uri("/Pages/Workflow/WF_Step1.xaml", UriKind.Relative);
The Link is correctly displayed in the left sided list but the source is not visible. If I add it in the xaml it works fine.
Can you help me, please?
Armando

Try adding it as an absolute Uri
link.Source = new Uri("pack://application:,,,/Path/For/Your/Page.xaml");
I didn't test, so maybe it's useless... but it's a thing to try

Thanks


No way to return to all people from group view in People module

Hello @dokterbob Please clear the filter or click to root item (Groups) of navigation menu.

@andreysavihin Thanks for the super quick reply. I think this is a UX issue; I've had to search for this to no avail for more time than it took me to file this issue, which means that the UI could me more obvious about this.
What do you reckon?

Hello @dokterbob. Thanks for your opinion. We are already in progress with some changes in the UI/UX and will take this issue into consideration.


HDFS-16716. Improve appendToFile command: support appending on file w…

HDFS client DistributedFileSystem#append supports appending to a file with optional create flags.
However, appendToFile command only supports the default create flag APPEND so that append on EC file without NEW_BLOCK create flag is not supported.
Thus, it's necessary to improve appendToFile command by adding option -n for it. Option -n represents that use NEW_BLOCK create flag while appending file.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 52s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
15m  6s

Maven dependency ordering for branch

-1 :x:
mvninstall
7m 43s
/branch-mvninstall-root.txt
root in trunk failed.

+1 :green_heart:
compile
23m 23s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
compile
21m 20s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
checkstyle
4m 18s

trunk passed

+1 :green_heart:
mvnsite
3m 56s

trunk passed

+1 :green_heart:
javadoc
3m  5s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
2m 29s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
6m 16s

trunk passed

+1 :green_heart:
shadedclient
23m 47s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 33s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
2m  3s

the patch passed

+1 :green_heart:
compile
24m 48s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javac
24m 48s

the patch passed

+1 :green_heart:
compile
22m 17s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
javac
22m 17s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-0 :warning:
checkstyle
4m 24s
/results-checkstyle-root.txt
root: The patch generated 6 new + 92 unchanged - 0 fixed = 98 total (was 92)

+1 :green_heart:
mvnsite
3m 50s

the patch passed

-1 :x:
javadoc
1m 37s
/results-javadoc-javadoc-hadoop-common-project_hadoop-common-jdkPrivateBuild-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>.txt
hadoop-common-project_hadoop-common-jdkPrivateBuild-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS> with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS> generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)

+1 :green_heart:
javadoc
2m 23s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
6m 51s

the patch passed

+1 :green_heart:
shadedclient
26m 16s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
19m  6s
/patch-unit-hadoop-common-project_hadoop-common.txt
hadoop-common in the patch passed.

+1 :green_heart:
unit
2m 55s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
1m 12s

The patch does not generate ASF License warnings.

233m 25s

Reason
Tests

Failed junit tests
hadoop.fs.TestHarFileSystem

hadoop.fs.TestFilterFileSystem

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4696/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/4696

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 8a85f4794c2a 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / caa3fb8cd27409b488ad8f4ec24f768ad2784882

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS> /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4696/1/testReport/

Max. process+thread count
3032 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4696/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


[Event Request] table 36 "Sales Header" "VAT Registration No."

The event was labeled with "ships-in-future-update" but unfortunately I did not get it yet...
https://github.com/microsoft/ALAppExtensions/issues/6274

Hi @Schnieringer , should be there. Please check again, at least latest 16.x
    field(70; "VAT Registration No."; Text[20])
    {
        Caption = 'VAT Registration No.';

        trigger OnValidate()
        var
            Customer: Record Customer;
            VATRegistrationLog: Record "VAT Registration Log";
            VATRegistrationNoFormat: Record "VAT Registration No. Format";
            VATRegNoSrvConfig: Record "VAT Reg. No. Srv Config";
            VATRegistrationLogMgt: Codeunit "VAT Registration Log Mgt.";
            ResultRecRef: RecordRef;
            ApplicableCountryCode: Code[10];
            IsHandled: Boolean;
        begin
            IsHandled := false;
            OnBeforeValidateVATRegistrationNo(Rec, IsHandled);
            if IsHandled then
                exit;

            "VAT Registration No." := UpperCase("VAT Registration No.");
            if "VAT Registration No." = xRec."VAT Registration No." then
                exit;

@RomanZanizdra
Yes, it exists, I found it. Thanks for the hint. I close the issue.


Right-clicking causes a crash

I run a server with mohist-1.20.1-517-server. I have both geckolib-forge-1.20.1-4.4 and EpicFight-20.6.3 on the client and server. when I right click with the weapon, everything works fine on the server, but the client pops up with the following prompt and can no longer access the server. The server doesn't have any error messages either.

I'm not sure why this is being reported here. This is either a Mohist issue or an EpicFight issue.
If it does not happen in a regular forge server, it's a Mohist issue.
If it happens in a regular forge server, report it to Epic Fight.
Is there anything in particular that makes you think this is related to geckolib? The error seems network related...

I’m sorry to bother you again. I understand what you are saying, that you don’t think it’s a Geckolib problem. But after my tests, after removing Geckolib, everything works fine on both the server and the client, and pressing the right mouse button doesn't bring up that error. So I have reason to wonder if there is a feature in Geckolib that is incompatible with epic battles or the server that is causing the problem.
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送
发件人: @.>
发送时间: 2024年1月20日 20:46
收件人: @.>
抄送: @.>; @.>
主题: Re: [bernie-g/geckolib] Right-clicking causes a crash (Issue #535)
I'm not sure why this is being reported here. This is either a Mohist issue or an EpicFight issue.
If it does not happen in a regular forge server, it's a Mohist issue.
If it happens in a regular forge server, report it to Epic Fight.
Is there anything in particular that makes you think this is related to geckolib? The error seems network related...
―
Reply to this email directly, view it on GitHubhttps://github.com/bernie-g/geckolib/issues/535#issuecomment-1902085455, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFPPAT3WWU73MSS6K7XLDS3YPO4AVAVCNFSM6AAAAABCDFFNT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGA4DKNBVGU.
You are receiving this because you authored the thread.Message ID: @.***>

Provide the latest.log from the client that crashed then


show more log variables: User-Agent, X-Forwarded-For and Referer for verbose logging

when setting up a proxy service like nginx/traefik, we want to make sure some useful headers(such as User-Agent, X-Forwarded-For and Referer) are config correctly by checking the verbose logging, for example:
# start whoami in verbose mode
$ ./whoami --port 1024 --verbose

curl -H "Referer: http://example.com" -H "X-Forwarded-For:<IP_ADDRESS>"  http://localhost:1024/api

here is the log example from whoami and nginx:
nginx-whoami-1  | 2023/08/06 15:25:00 <IP_ADDRESS>:44140 - - [06/Aug/2023:15:25:00 +0000] "GET /api HTTP/1.0" - -
nginx           | <IP_ADDRESS> - - [06/Aug/2023:15:25:00 +0000] "GET /whoami/api HTTP/1.1" 200 324 "http://example.com" "curl/7.88.1" "<IP_ADDRESS>"

with this change, we should see whoami output logs like:
2023/08/06 23:21:53 <IP_ADDRESS>:58551 - - [06/Aug/2023:23:21:53 +0800] "GET /api HTTP/1.1" "http://example.com" "curl/7.88.1" "<IP_ADDRESS>"

without User-Agent, X-Forwarded-For and Referer:
curl -A "" http://localhost:1024/api

will get logs like:
2023/08/06 23:21:53 <IP_ADDRESS>:58550 - - [06/Aug/2023:23:21:53 +0800] "GET /api HTTP/1.1" "-" "-" "-"

Hello,
whoami already displays all headers.
I recommend using access logs inside the proxy instead of the verbose mode of whoami.
Also, the code doesn't follow our standard.

Hi @ldez , thx for feedback.
actually I just replaced the original "- -" in the log printing with their actual value and plus "X-Forwarded-For" value. since the nginx exposes that value in log printing, too.
sorry for the messy codes, I just wished to keep them as simple as possible. I cleanup the codes in this commit:
https://github.com/traefik/whoami/commit/6a8887d0c5b1d995c511dd0c5eda044365f3ff69?diff=split


Make SelectedKey parameter two-way binding in BitNav component

Developer should change the value of Selectedkey parameter from outside.

after investigation, it seems this feature is not a valid one, I'm closing it.


trialized notebook

Should I rebase my branch after outstanding PRs on main are merged?

Thanks @CBroz1.  Once those pull requests on datajoint:main are merged, please pull from datajoint:main and you may need to rebase or perhaps it would resolve easily.  But we can merge this pull request prior to the datajoint:main pull requests.
Also, just noticed that you may have to resolve conflicts on this pull request with datajoint:event.

Option 2 sounds good to me.  Thanks.

Hi @CBroz1, since #50 isn't yet merged, when you have a chance do you mind resolving conflicts with this pull request (and removing test_export.py) so that we can get these changes merged into datajoint:event and then datajoint:main?

@kabilar - This is now fast-forwarded to include dev from PR #55 as well as updates to element-electrode-localization. While the latter isn't finalized, I think we're okay to put this out as a 'dev' branch


cloudwatch_logs properties aren't populated causing CloudWatch Tracer logs to not work

Hi all
When you look at Traces in AWS CloudWatch, the Log section looks like this:

But if you click through to "View in CloudWatch Logs Insights` then apply the correct log-group it finds the appropriate logs, meaning the tracing header is being correctly set.
The X-Ray docs show that there is an aws field in the protocol of which only the xray part of this is filled in currently.
After investigation the aws field I see there are two fields cloudwatch_logs that are not populated. Luckily I know that an ECS instance has access to the ECS_CONTAINER_METADATA_URI_V4 endpoint.
When called from within an ECS instance in Far-gate, this responds with JSON in the following structure
{
    "Networks": [{
        ...
        "PrivateDNSName": "ip-10-0-157-102.eu-west-2.compute.internal",
        ...
    }],
    "LogOptions": {
        "awslogs-group": "..."
        "awslogs-region": "....",
        "awslogs-stream": "...."
    }
}

This endpoint includes enough information to fill in the cloudwatch_logs.group_name field via the awslogs-group field. I put together a branch here doing this.
cloudwatch_logs however requires two fields. log_group and arn. The problem is that whilst ECS_CONTAINER_METADATA_URI_V4 contains the awslogs-group, it does not contain the arn. It is very likely to be the same as the Labels['com.amazonaws.ecs.cluster'], which I use to calculate it in my branch which is successful.

However, my method for calculating the ARN from the cluster's ARN wouldn't if the logs were in a different account or region as the cluster. So I'm able to fill the Cloudwatch logs correctly with the logs, but this wouldn't work for some scenarios. One of two actions would fix this issue:

Could the ECS_CONTAINER_METADATA_URI_V4 endpoint be updated to pass through the full ARN of the target log so it could be passed via X-Ray and used in CloudWatch Traces?

Could the CloudWatch front-end be updated to handle only the log_group by itself? The front-end attempts to read a log-group by name if the arn isn't provided, or use the arn if it is.

Many thanks
Tom

👍 to the fact that this is missing, from my perspective it just needs to be added to the Ruby SDK.
This is for example present in the JAVA SDK: https://github.com/aws/aws-xray-sdk-java/blob/398ec0542964b4d9b38c901385eda4d98da07cd4/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/AWSXRayRecorder.java#L508-L510
And is allowing a seamless relation between logs and traces:

I drafted this PR, taking example on how it was done for EC2:
https://github.com/aws/aws-xray-sdk-ruby/pull/93
Let's see what the X-Ray / ECS teams have to say about it

The change has been release in v0.15.0. https://github.com/aws/aws-xray-sdk-ruby/releases/tag/0.15.0


Fix type in url from last commit + script cleanup

The protocol part of the url used in the SoapUI paths contained a typo. This PR fixes this.
There are also some scripting cleanups resulting in a cleaner "vagrant up" feedback. Only one error remains now.
vagrant up now builds a working vm.

Can one of the admins verify this patch?


Upgrade expo sdk to 45

Release note is there: https://blog.expo.dev/expo-sdk-45-f4e332954a68?gi=40ab484980ad

Should test against node 18 as well (next lts)


Somewhere hard to understand

I am confused about this  in HeroDefaultAnimatorViewContext .swift
// duration is 0.2 @ 0 to 0.375 @ 500
defaultDuration = 0.208 + Double(movePoints.clamp(0, 500)) / 3000

After checking Duration and easing, I still cannot figure out what does the magic number 0.208, 3000 mean.
Could you please give some tips? How is the default animation duration determined?
Thanks a lot.

movePoints is the distance the object moves. It is clamped to 0...500. When it is over 500 I just use 500 as the value. 500/3000 is 0.16666667. That plus 0.208 is around 0.375. So when the object moves 500+ points the duration is 0.375. When the object moves 0 points, the duration is 0.208.

Thanks for answering. But I still have two questions.
Why is 3000?
And when the movement is 0, why there is still a non-zero duration?

When the movement is zero, it might be animating opacity, cornerRadius
etc.. therefore we still need a duration. Also for short movement, making
it too fast won't provide a good user experience.
It is 3000, because I want to map 0...500 to 0.208...0.375. With that, I
need a value of 3000 since 500/(0.375-0.208) ~= 3000. To be exact, I was
thinking about mapping 0...500 to 0.2...0.375. That would need a magic
divider of 2,857.14.
On Tue, Jan 24, 2017 at 9:33 PM PhilCai<EMAIL_ADDRESS>wrote:

Thanks for answering. But I still have two questions.
Why is 3000?
And when the movement is 0, why there is still a non-zero duration?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lkzhao/Hero/issues/55#issuecomment-275003019, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADNEajptZ_QHEmAneazlPbDcGvllLPM2ks5rVrRhgaJpZM4LsIGa
.

It helps, thanks again!


Multiple cookies in Set-Cookie header at one response

Context
After signing in, in the mock server, I want to send both Authorization cookie and CSRFToken cookie - at one response.
In addition, I want it also to be stated down that these two cookies will be saved (in the documentation).
Current Behavior
Only the first cookie in the examples array is sent.
Expected Behavior
Multiple cookies should be registered in the mock server, just like any other real server.
Proper documentation should tell about more than one cookie.
Possible Solution(s)
Ability to define multiple cookies in the same header can be done as follows:
examples: ['Authorization: my cookie value here ....', 'CSRFToken: cookie value here']

or,
example: 'Authorization: my cookie here, CSRFToken: my cookie here' // one string

@razb-viola could you please provide the following:

example spec to reproduce the issue
command used to start up Prism (i.e. prism mock ...)
example request you're sending the mock server to reproduce the issue
response gotten from your sample request
expected response from your sample request

@chohmann this is a typical headers response:
responses:
        "201":
          description: Signed in validated successfully
          headers:
            Set-Cookie:
              schema:
                type: string
                example: Authorization=Bearer token; Path=/; HttpOnly

Now how can I set Refresh token cookie as well? in the same response. I can only send one cookie not multiple.

@chohmann you ask things that already mentioned here. Could you please just tell me how to set it work the right way instead?

@razb-viola I'm sorry, but we are unable to proceed without the information requested from @chohmann above.  We will be closing this issue out but feel free to open a new issue when you're able to provide that information.

Hi guys I am trying to register 2 cookies in the same response header - what actually happens is that only one cookie is registered (the first one but never the second one).
Lets answer your questions one by one:

FULL example spec to reproduce the issue
command used to start up Prism (i.e. prism mock ...)
example request you're sending the mock server to reproduce the issue
response gotten from your sample request
expected response from your sample request

Answers:

What do you mean by full? my OAS spec is around 3k of lines. I have provided the exact part that is relevant. The part that I am sending the 200 status code response with the Set-Cookie header is just the only needed part, believe me.
Just as you said, I use: prism mock ./path/to/oas.yaml
The Content-Type header is application/json, but it doesn't matter to mention this, since there is no problem with the request because the first cookie is registered.
Set-Cookie header with the value of the first cookie only.
Set-Cookie header with the value of BOTH cookies.

**
This is the updated spec, with two cookies but only the accessToken will be saved in the browser's cookies:
responses:
        "201":
          description: Signed in validated successfully
          headers:
            Set-Cookie:
              schema:
                type: string
                examples:
                - accessToken=token; Path=/; HttpOnly // only this will be registered.
                - refreshToken=token; Path=/; HttpOnly

You know what? leave my issue, try by yourself, if you able to send 2 cookies on the same response - just tell me how.

@razb-viola thank you for providing most of the details we asked for. Prism is designed to only return one example value (either the first or whichever you configure in your request using the prefer header). We think in order to achieve what you're looking for, you'd have to combine both cookie values in one example:
responses:
  "201":
    description: Signed in validated successfully
    headers:
      Set-Cookie:
        schema:
          type: string
          examples:
          - accessToken=token; Path=/; HttpOnly; refreshToken=token; Path=/; HttpOnly

I have tried this and it doesn't work. Only the first cookie will be saved.

I'm facing the same issue here. I need several cookies to be set and only one is being set, even when combined in one long string. Is this issue being considered or should we try other tool? Like setting cookies is not a super edge case scenario.


[WIP] use pypi versions of dependencies

Removes git dependencies, enabling packaging of this project on pypi. This PR is currently broken until funlib.evaluate gets added to pypi.

@d-v-b our problem is that the published version of daisy is no longer valid.
funlib.evaluate and lsd are not published in pypi
@cmalinmayor  can you please make a new release of daisy
@funkey or @pattonw  can you please release funlib.evaluate and lsd

lsd is on pypi. Unfortunately the name of lsd was taken so you have to use pip install lsds.
I published a minor update to daisy. I don't think there were any breaking changes in there, mostly just performance tweaks and process cleanup. but both v1.0 and v1.1 should both be valid.
funlib.evaluate is a bit more problematic. It depends on graph_tool which is a nuisance to install and is not available on pypi.

@pattonw  is graph_tool a mandatory dependency. seams not to be used

Needed:

[X]  LSDS
[ ] funlib.evaluate

[ ] graph_tool ( check if needed )
[ ] relase

[ ] funlib.persistence

[ ] fix N5 order
[ ] merge https://github.com/funkelab/funlib.persistence/pull/4
[ ] publish

[X] Daisy

See https://github.com/janelia-cellmap/dacapo/pull/212
funlib.evaluate removed as a dependency by removing IoU metric not previously used for evaluation.


Running on bridge multiple compose error

I can't make it worked with using nginx-proxy in compose.
version: '2'
services:
  nginx-proxy:
    image: jwilder/nginx-proxy
    container_name: nginx-proxy
    ports:
      - "80:80"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /home/al/nginx-proxy/503.html:/usr/share/nginx/html/503.html
      - /home/al/nginx-proxy/nginx.tmpl:/app/nginx.tmpl
    network_mode: "bridge"

and for example gogs/gogs:
version: '2'
services:
  gogs:
    image: gogs/gogs
    ports:
      - "10080:3000"
      - "10022:22"
    environment:
      - VIRTUAL_HOST = "git.mywebsite.io,git.mywebsite.com"
      - VIRTUAL_PORT = 3000
    volumes:
      - "/home/al/gogs:/data"
    network_mode: "bridge"

when i check with docker network inspect bridge i see my 2 containers
[
    {
        "Name": "bridge",
        "Id": "b6c5166d0bc741827ed43813aca418170cf58190baca1ba61bb908c501eaeea9",
        "Scope": "local",
        "Driver": "bridge",
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "<IP_ADDRESS>/16",
                    "Gateway": "<IP_ADDRESS>"
                }
            ]
        },
        "Containers": {
            "8938372dddbd6f77eecb46714eb32d4eaa5d9fbd1a57b02b7df85e2288118260": {
                "Name": "gogs_gogs_1",
                "EndpointID": "72a0f97a89462202902bb7c483078df78d50e3b3f5d73da66b7b173f5be5898a",
                "MacAddress": "02:42:ac:11:00:03",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": ""
            },
            "b0798eb6803c2b2ac3c707b905b7932553dd56c8f057130b8636d277a06c7154": {
                "Name": "nginx-proxy",
                "EndpointID": "7f8a7e97af03d2fba066de28ca8be2c9f37e47b8c410897d5ff2d586f0f3a0cd",
                "MacAddress": "02:42:ac:11:00:02",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.bridge.default_bridge": "true",
            "com.docker.network.bridge.enable_icc": "true",
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.bridge.host_binding_ipv4": "<IP_ADDRESS>",
            "com.docker.network.bridge.name": "docker0",
            "com.docker.network.driver.mtu": "1500"
        }
    }
]

And it's worked well with multiple docker run ...  but my compose project not working ...
Any idea ??

In you gogs config, you have spaces and quotes which are probably causing the string comparison to fail:
Try changing:
environment:
      - VIRTUAL_HOST = "git.mywebsite.io,git.mywebsite.com"
      - VIRTUAL_PORT = 3000

to
environment:
      - VIRTUAL_HOST=git.mywebsite.io,git.mywebsite.com
      - VIRTUAL_PORT=3000

I have the same problem and no spaces/quotes in my configs. Any ideas?


Add-VSDynamoDBTableAttributeDefinition?

Hi Nate,
I'm hoping you have a minute to help me with creating some attributes for a dynamodb table? I am struggling with how to do it.
I want these properties for my table:
        AttributeDefinitions:           -             AttributeName: key             AttributeType: S           -             AttributeName: eventTime             AttributeType: S                             KeySchema:             -              AttributeName: key              KeyType: HASH            -              AttributeName: eventTime              KeyType: RANGE         ProvisionedThroughput:            ReadCapacityUnits: 1            WriteCapacityUnits: 1
I thought I could do this, but it doesn't seem to work when I vaporize
        -AttributeDefinitions ( Add-VSDynamoDBTableAttributeDefinition `
                                   -AttributeName key,eventTime -AttributeType S,S ) `
        -KeySchema ( Add-VSDynamoDBTableKeySchema `
                        -AttributeName key,eventTime -KeyType HASH,RANGE ) `
        -ProvisionedThroughput 1,1

Cheers, Richard

Hey Richard,
The way to think about it is that a DynamoDB Table AttributeDefinition is a single object with two properties; AttributeName and AttributeType. In PowerShell, you would need to create 2 AttributeDefinition objects for this to match, which means a call to Add-VSDynamoDBTableAttributeDefinition for each attribute.
Here are a couple ways you can accomplish this to create the DynamoDBTable you're looking for:
Option 1 (cleaner view): Store AttributeDefinitions and KeySchemas in variables
$dyDbAttDefs = @()
$dyDbKeySchemas = @()
$dyDbAttDefs += @("key","eventTime") | ForEach-Object {Add-VSDynamoDBTableAttributeDefinition -AttributeName $_ -AttributeType S}
$dyDbKeySchemas += Add-VSDynamoDBTableKeySchema -AttributeName key -KeyType HASH
$dyDbKeySchemas += Add-VSDynamoDBTableKeySchema -AttributeName eventTime -KeyType RANGE
$newVSDynamoDBTableSplat = @{
    ProvisionedThroughput = (Add-VSDynamoDBTableProvisionedThroughput -ReadCapacityUnits 1 -WriteCapacityUnits 1)
    KeySchema             = $dyDbKeySchemas
    AttributeDefinitions  = $dyDbAttDefs
    LogicalId             = "MyDynamoDB"
}
New-VSDynamoDBTable @newVSDynamoDBTableSplat

Option 2: One-liner
New-VSDynamoDBTable -LogicalId "MyDynamoDB" -AttributeDefinitions (Add-VSDynamoDBTableAttributeDefinition -AttributeName key -AttributeType S),(Add-VSDynamoDBTableAttributeDefinition -AttributeName eventTime -AttributeType S) -KeySchema (Add-VSDynamoDBTableKeySchema -AttributeName key -KeyType HASH),(Add-VSDynamoDBTableKeySchema -AttributeName eventTime -KeyType RANGE) -ProvisionedThroughput (Add-VSDynamoDBTableProvisionedThroughput -ReadCapacityUnits 1 -WriteCapacityUnits 1)

Never mind Nate.  I think my issues are partially related to having extra spaces in my editor, and then my script failing between parameters.
To resolve the issue, I stored the attributes in their own variables then entered like this:
-AttributeDefinitions ($attr1, $attr2)
but then it was failing on the extra spaces... ie it would not get to the next parameter.
Cheers. Terrific software.

Thanks Nate. I missed your reply. Will read it now 👍

Thanks again. I was trying to accomplish the one liner method. I appreciate your taking the time to show me the splatting method too.

I'm glad you're liking VaporShell!! Happy to help whenever it's needed!
Not sure if you have pre-existing CloudFormation templates spun up prior to using VaporShell, but I'm currently working on adding functionality to reverse-engineer an existing CloudFormation template into a VaporShell script that would create it. Should hopefully have it released with the next version pretty soon!

currently working on adding functionality to reverse-engineer an existing CloudFormation template into a VaporShell script that would create it

That sounds great.
I am trying to bring in my templates as I go. I only have a few. I'm finding it easiest to look at the original serverless yml files, and then try to replicate into my vaporshell script. At the same time, learning git, and reorganizing my development environment, so plenty on board.
I also was looking recently at sam local (and docker), but I think I will just concentrate on scripts to build & teardown on aws as needed.

Gotcha, that makes sense!
If you'd like to follow along with the progress of that add'l functionality, I've created Issue #28 to track that. Feel free to subscribe to updates there to follow along if you'd like!


Config.py discovering fix

!test

:+1:

!test

Refer to this link for build results (access rights to CI server needed):
http://jenkins.2gis.local/job/vmmaster.staging.regression/279/
Test PASSed.


[Action] Tesla Workers Hold Union Drive in Fremont

https://www.sfchronicle.com/business/article/Tesla-labor-officials-spar-over-Fremont-factory-12985453.php
@organizejs Should Tesla count as tech?

hmm not really sure. are there other articles?


Barebone model for LangPack (bug 1122255)

https://bugzilla.mozilla.org/show_bug.cgi?id=1122255

No Version/File model, keeping it simple - I don't think we need to deal with old versions so I don't see why we would have a model for them

No soft-deletion

Re-uses from_upload() static method and FileUpload in order to be compatible with existing submit API

Only accepts a single language and a single Firefox OS version. Might change that depending on the discussions regarding those topics.

So far so good. Great start.

r+ from me. I saw some "FIXME"s so if there's more I'm happy to re-review but this is great so far.

@robhudson please take a second look - there are 2 FIXME left, but I don't know what to do about those yet. Everything else should be working and tested.


Cache miss on Windows despite a successful cache-write

In this run (in the Cache cabal store we had a cache miss on Windows
Run actions/cache@v3
  with:
    path: C:\sr
    key: cache-dependencies-pu4Aevoo_v1-Windows-8.10-42dc9d1d9517c36cc29f25d6a45c30c05b6faa6e98e7f7b96cb256858a8d7694
    restore-keys: cache-dependencies-pu4Aevoo_v1-Windows-8.10
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    lookup-only: false
  env:
    CACHE_VERSION: pu4Aevoo_v1
Cache not found for input keys: cache-dependencies-pu4Aevoo_v1-Windows-8.10-42dc9d1d9517c36cc29f25d6a45c30c05b6faa6e98e7f7b96cb256858a8d7694, cache-dependencies-pu4Aevoo_v1-Windows-8.10

Despite the fact that the cache was successfully saved in this run (in the Post Cache cabal store step):
Post job cleanup.
"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/io-sim/io-sim --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
Cache Size: ~19 MB (19879266 B)
Cache saved successfully
Cache saved with key: cache-dependencies-pu4Aevoo_v1-Windows-8.10-42dc9d1d9517c36cc29f25d6a45c30c05b6faa6e98e7f7b96cb256858a8d7694

This is Windows specific, on Ubuntu and MacOS cache can be retrieved.

We have 15 jobs each is caching between 50MB to 100MB, so it does not exceed the the 10GB cache limit.

Noticing the same problem:

The cache key exists:

@coot Although it's poorly documented, setting enableCrossOsArchive: true seemed to fix it. I'm not sure why recently this became necessary because it seems like previously it just worked.

Thanks @chase this indeed made it work.  There's certainly something wrong, since we only use Windows machines in GitHub Actions.

Unfortunately it did not help for the dolibarr project.

I have the same issue - using latest v4: all windows fails: https://github.com/gimlichael/Cuemon/actions/runs/9216088354/job/25416675986

Okay, my work-around for now is to have both Linux and Windows run and create caches.
Then I use:
        restore-keys: |
          dotnet-restore-

And this seems to work for now. In my humble opinion, enableCrossOsArchive does not work as intended.

It broke again, so I followed more closely the docs: here and here.  Check this PR.


Encoding incorrect for image content

Using M.E.A.I. and passing something like this:
var imageContent = new ImageContent(File.ReadAllBytes(), "image/jpeg");

Should work, but throws an exception. That's because other providers accept the data-uri format, but Ollama does not. The AbstracationsMapper should convert to pure Base64 rather then data-uri encoding it.

For working example:
https://github.com/dotnet/extensions/... (MEAI)

Yes, byte arrays won't work currently, I fixed that this weekend but did not push. Give me a few minutes.

Thank you!!!


[curl]Disable to export Curl::curl targets when build tool feature

Related issue https://github.com/microsoft/vcpkg/issues/8700
Curl export targets Curl:libcurl normally, and export target Curl::curl when build tool feature. The library and executable targets are inconsistent , also Curl:curl doesn’t export correctly.
we build ‘tool’ as a feature, I considered that executable targets Curl:curl doesn't need here. so I disable it here.
Failures:
CMake Error at F:/VCPKG/src/installed/x86-windows/share/curl/CURLTargets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.
Targets Defined: CURL::libcurl
Targets not yet defined: CURL::cur
Call Stack (most recent call first):
F:/VCPKG/src/installed/x86-windows/share/curl/CURLConfig.cmake:35 (include)
F:/VCPKG/src/installed/x86-windows/share/curl/vcpkg-cmake-wrapper.cmake:5 (_find_package)
F:/VCPKG/src/scripts/buildsystems/vcpkg.cmake:218 (include)
CMakeLists.txt:60 (find_package)
All features test pass on x86-windows.

/azp run


Release 2.1.46

[ ] PEX_INHERIT_PATH+default shebangs don't interact well with virtualenvs #1344
[ ] Pex interpreter cache is not upgrade / downgrade safe. #1176
[ ] Decouple PEX runtime interpreter selection from buildtime interpreter selection. #1020
[ ] Provide a better resolve error message for a Platform DistributionTarget when --resolve-local-platforms. #1070
[ ] Remove PEX_PYTHON_PATH from build time interpreter selection. #1075

Split off from "Release 2.1.45 #1389" to make way for the #1396 bdist_all fix.


[HDBDD] Entity association to another entity association not working

The example below when we have an entity association to another entity association is not working.
namespace test;
@Schema : ‘DBADMIN’

  context test {
     entity  Orders{
        key Id               : String(32);
        CustomerName         : String(500);
        Country              : association to test.Country { City };
    };

    entity Country {
        key Id              : String(32);
        City                : association to test.City { Id };
    };

    entity City {
        key Id              : String(32);
        Name                : String(32);
    };
  }

This issue is closed as the project is no longer maintained


"fuse" script like gtest

Googletest ships a script that can fuse all the implementation files and headers together, which makes it very convenient.
Wonder glog can provide one too.
https://github.com/google/googletest/blob/master/googletest/scripts/fuse_gtest_files.py

What for?


Replace CAIP property names in the parser with high-level names (assetId, chainId, etc)

Overview
We use CAIP vernacular in our parsing logic, including on transactions, transfers, fees etc.
Rename these to their more generic equivalents.
References and additional details
E.g. https://github.com/shapeshift/unchained/blob/650ce054bf30e923c858a01f2096d4322f8419f6/node/packages/client/src/types.ts#L7
This will be a multi-PR process:

unchained: Add additional types alongside existing types: (https://github.com/shapeshift/unchained/pull/404)
lib: Add additional types alongside existing types: https://github.com/shapeshift/lib/pull/587
web: Update logic to point to new property names
lib/packages/unchained-client: Remove deprecated properties

Acceptance Criteria
We no longer use CAIP vernacular in unchained transaction parser.
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

https://github.com/shapeshift/lib/pull/605
https://github.com/shapeshift/lib/pull/606
https://github.com/shapeshift/lib/pull/607


Update LAB_AK_03_Lab1_Ex2_Azure_Defender.md

updated steps to match current UI
Related Issue
Link related Github Issue 🢂 Fixes # . (Include issue number after #)
Checklist
Mark completed with "x" between brackets, "[x]", or checking the box once the PR is created:

[x ] Has related GitHub Issue 💥 Create Issue 📝
[x ] Tested it
[ x] Read the PR collaboration guide 👓 Collaboration Guide 📝

Changes proposed in this pull request:

@awillslo I want to reword this a little before merging. And it resolves issue #235.

thank you @KenMAG

A lot of new UI changes have happened, so I rewrote these. Merging today.


Fix Azure Deploy Button 500

Motivation
https://github.com/Kentico/cloud-sample-app-net/issues/98
Checklist

[X] Code follows coding conventions held in this repo
[ ] Automated tests have been added
[X] Tests are passing
[ ] Docs have been updated (if applicable)
[X] Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test
Test running site via Azure Deploy button.

works ok ;) thx


Integrate JointJS Visualizer with Custom Electric Circuit Shapes

Since #44 has gotten quite beefy for a single PR. Especially with the recent local addition of elk (Thanks @brollb). As suggested in #62, the first step is to consider adding a non-interactive visualizer with custom electric circuit shapes which serves as the basis for additional integrations.

May be this could be done in #58 and additional changes may have to come after that.


Vet clinic database: query multiple tables

Project requirements
In this PR I made the following:

Created a table named owners with the following columns:

id: integer (set it as autoincremented PRIMARY KEY)
full_name: string
age: integer

Created a table named species with the following columns:

id: integer (set it as autoincremented PRIMARY KEY)
name: string

Modify animals table:

Make sure that id is set as autoincremented PRIMARY KEY
Remove column species
Add column species_id which is a foreign key referencing -species table
Add column owner_id which is a foreign key referencing the owners table

All these queries are in the schema.sql file.
Insert Data and Update Foreign Keys
Insert the following data into the owners table:

Sam Smith 34 years old.
Jennifer Orwell 19 years old.
Bob 45 years old.
Melody Pond 77 years old.
Dean Winchester 14 years old.
Jodie Whittaker 38 years old.

Insert the following data into the species table:

Pokemon
Digimon

Modify your inserted animals so it includes the species_id value:

If the name ends in "mon" it will be Digimon
All other animals are Pokemon

Modify your inserted animals to include owner information (owner_id):

Sam Smith owns Agumon.
Jennifer Orwell owns Gabumon and Pikachu.
Bob owns Devimon and Plantmon.
Melody Pond owns Charmander, Squirtle, and Blossom.
Dean Winchester owns Angemon and Boarmon.

All these insertions and modifications are in the data.sql file.

Queries

Write queries (using JOIN) to answer the following questions:

What animals belong to Melody Pond?

List of all animals that are pokemon (their type is Pokemon).

List all owners and their animals, remember to include those that don't own any animal.

How many animals are there per species?

List all Digimon owned by Jennifer Orwell.

List all animals owned by Dean Winchester that haven't tried to escape.

Who owns the most animals?

All these queries are in the queries.sql file.

Thank you for the feedback @ShadyShawkat.


Container start fails

When using the container version, within Visual Studio code in MAC M2, the following error shows:
An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory? Check the log at /home/vscode/.cache/pre-commit/pre-commit.log [18551 ms] postCreateCommand failed with exit code 1. Skipping any further user-provided commands.

Did you do a git clone when opening it up? Or did you perhaps download the zip and open it up that way?
You could remove "pre-commit install" from devcontainer.json:
https://github.com/pamelafox/simple-fastapi-container/blob/main/.devcontainer/devcontainer.json#L45
That command assumes you're in a git repo, as it sets up pre-commit hooks.

Hi,
Yeah, I was guessing it is pre-commit.
I did a clone, which is why I thought it should work.
I removed pre-commit and it works.
Cheers!


Update release pipeline to use the latest versions of python-semantic-release

Issue description / feature objectives
https://python-semantic-release.readthedocs.io/en/latest/ behaviour has changed significantly. Update workflows such that given update will upload github releases and pypi releases.
This is required to move to pydantic 2.0 e.g. in PR #1533
Caveats / Assumptions

will need to be end to end tested with a fork into a 'test' pypi repo

Completion Criteria

Demonstrated in isolation in a test repo
One successful release completed.

Closed by #1564


vite-ssr error

after pnpm update
ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies
.
└─┬ vite-ssr 0.16.0
├── ✕ unmet peer<EMAIL_ADDRESS>found 3.1.0
├── ✕ unmet peer react@^17: found 18.2.0
└── ✕ unmet peer<EMAIL_ADDRESS>found 3.1.4
Failed to resolve entry for package "vite-ssr". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "vite-ssr". The package may have incorrect main/module/exports specified in its package.json.

I have same error

Same

Update vite-ssr to latest version will resolve :
"vite-ssr": "^0.16.0",

Update vite-ssr to latest version will resolve :
"vite-ssr": "^0.16.0",

When trying to up it to that version this is the error message I received when doing a fresh install. Did you run into this too @devglrd?


[SDK BUG] ForegroundWorkHandler and XboxGameBarForegroundWorker not found

In the advanced samples provided ForegroundWorkHandler and XboxGameBarForegroundWorker classes are not found. Were they removed from the nuget package perhaps?

Hi Razzile,
Very sorry about this.  We made a mistake here.  We do our releases as a triplet: Game Bar, NuPkg, and Samples update. However, last minute we decided to hold back this update due to issues in the new flow for this XboxGameBarForegroundWorker API. Unfortunately this samples update still got merged into master.  Our apologies. We'll back this PR out and all these updates should be back soon!
I'll resolve this issue once we've backed out the PR.
Thanks,
Ben

The change has been reverted. Closing this.


No field for entering Cost information on meal form.

The cost info is tied directly to the cook. That way if people from different units collaborate on a meal, they can each enter their costs.
How it stands right now it's not ideal, though, b/c the user is forced to enter the value in cents. Until I fix that, I'll leave this issue open.
This is

Oh, that is what "Bill" means?
So, if Tamao enters the whole bill and I enter nothing, am I going to get charged down the road? Or is "Bill" rolled up to Units?

Yes, bill is the meal cost.
That's correct - only the cook will have their individual balance adjusted. However, the report page aggregates the balance of all the residents of a unit and displays that in addition to each resident's balance.
One reason we can't have bills tied merely to units is that Alicia pays separately from the other residents of Unit S.


Don't show crossed out link in Pipeline auth page

Rancher versions: 2.0 master 4/16
Steps to Reproduce:

Setup Rancher but do not authenticate using Github
Crate a cluster and go to the Pipeline auth page

Results: Greyed out/crossed out link shows up because we aren't already authenticated.  Please remove the crossed lined across the text.    We normally just hide the link.

Version - 2.0 master 4/17
Verified fixed


[WIP] Get index from members and show on members list

Still needed to fix two issues:

The account index info is intermittent, sometimes it shows undefined
We are showing the index key, not the actual value

Restarting on new branch


ticdc lag is more than 10m after inject pdleader network partition to all

What did you do?
inject pdleader network partition
http://perf.pingcap.net:3000/d/WOw1JWmVk/ha-test-case-detail?orgId=1&refresh=10s&var-case_id=2731539
What did you expect to see?
ticdc lag is less than 30s

What did you see instead?
ticdc lag is more than 10m after inject pdleader network partition
Versions of the cluster
git hash：5252420517ce5497ed053aa6322fdb2a33f898e1
current status of DM cluster (execute query-status <task-name> in dmctl)
No response

/remove-area dm
/area ticdc
/assign overvenus

/severity major

/unassign @overvenus
/assign @asddongmen

This issue is seen when testing with 6.5 nightly build.

bash-5.1# /cdc version
Release Version: v6.5.0-nightly
Git Commit Hash: 2ab025eb9de3ae76d13db953f00bb170d50ef9a8
Git Branch: heads/refs/tags/v6.5.0-nightly

This issue is mitigated by https://github.com/pingcap/tiflow/pull/9661, so I change its severity to moderate.

/remove-label affects-7.5

The daily HA test results from the past year indicate that the lag consistently remains within 1 minute. This meets our RPO goal, leading me to close this issue.


[WIP] Update package & getGeocodedData method

Hello,
I change some package in composer.json and adapte methode getGeocodedData in GecoderProvider.
However, I need some advise please in order to update it.

Thanks, Geocoder has been bumped to 3.x in #134 but will only be part of the 2.x version.


chore: Update so NodeClassNotReady is returned when NodeClass is failing

Fixes #N/A
Description
This change updates our code so that we intentionally delete a NodeClaim when we know that the NodeClass is in a False state. This ensures that we retry the NodeClaim as quickly as possible by rescheduling it to another NodePool that has a NodeClaim that is ready.
How was this change tested?
make presubmit
/karpenter snapshot
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

4 of 5 (80.0%)  changed or added relevant lines in 2 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.06%) to 79.208%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/cloudprovider/cloudprovider.go
3
4
75.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/providers/launchtemplate/launchtemplate.go
2
82.51%

Totals

Change from base Build<PHONE_NUMBER>0:
-0.06%

Covered Lines:
5958

Relevant Lines:
7522

💛  - Coveralls


Create proper technical structure for documentation and publish it on Read The Docs

Documentation is now hosted over at https://folio-migration-tools.readthedocs.io/

Now we just need to write it...


[bug]: CRITICAL! Unable to process chain reorg / too many witness items to fit into max message size

Background
lnd does not process new blocks.
lnd:
2022-11-01 12:02:54.658 [ERR] LNWL: Unable to process chain reorg: unable to get block<PHONE_NUMBER>00000000070742427fa10ec3c66d006160155a704d9f56d090a3ea: MsgTx.BtcDecode: too many witness items to fit into max message size [count 500003, max 500000]

bitcoind:
2022-11-01T10:44:23Z UpdateTip: new best=000000000000000000070742427fa10ec3c66d006160155a704d9f56d090a3ea height=761249 version=0x20a00000 log2_work=93.818550 tx=776743287 date='2022-11-01T10:44:19Z' progress=1.000000 cache=21.2MiB(82459txo)

My bitcoind knows about block height 761255, but lnd and mempool.space are stuck at 761248.

lnd v0.15.3-beta
bitcoind v23

https://twitter.com/c_otto83/status/1587400648366202880

Possibly related?
https://twitter.com/wasabiwallet/status/1586648312811294723
tx d465033214fd2309dcce5a90c45fcaa788aa4394ee36debe07aad8d8a37907d2

On it.

Same here.
2022-11-01 11:10:13.912 [ERR] LNWL: Unable to process chain reorg: unable to get block<PHONE_NUMBER>00000000070742427fa10ec3c66d006160155a704d9f56d090a3ea: MsgTx.BtcDecode: too many witness items to fit into max message size [count 500003, max 500000]
lnd@indomitusbtc:~$ lncli getinfo | grep synced
"synced_to_chain": false,
"synced_to_graph": true,

I'm pretty sure all (recent) lnd installations are affected by this.

btcd issue: https://github.com/btcsuite/btcd/issues/1906

😬

https://twitter.com/brqgoo/status/1587397646125260802?t=4Dn-tAdekbGilSd7TCXeKA&s=19
?

I'm guessing this is a btcd issue? Everything seems to be fine on bitcoin

Yes, the btcd issue is linked above.

also got hte same bug, running lnd-15.3 and bitcoin-22.0:

Hi,
My all nodes are in a state:
l getinfo|grep synced
    "synced_to_chain": false,
    "synced_to_graph": true,

Fixed by https://github.com/lightningnetwork/lnd/pull/7098, release binaries and docker images for v0.15.4-beta are going to be available soon (building right now).

I'm guessing this is a btcd issue? Everything seems to be fine on bitcoin

no, i`m running bitcoin core v22.0 and having the same issue.

I'm running neutrino, and not seeing the issue:
walter@fluffy:~$ lncli  getinfo | grep synced
    "synced_to_chain": true,
    "synced_to_graph": true,
walter@fluffy:~$ lncli  getinfo | grep block
    "block_height": 761264,
    "block_hash": "000000000000000000072cabab0aac7c6b00db0664b82edc77d3252634fcba8a",

Fixed version is available here: https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta

I bumped to 0.15.4, it fixed the issue. (our own build)

Would it be possible to modify lnd so that it skips validation on blocks received from the chain backend? Just reading about Eclair's exposure to this class of bugs: https://github.com/ACINQ/eclair/pull/2473#discussion_r1011530186


Cast stream to List

This is in preparation for HttpClientResponse implementing
Stream.  It is a forwards-compatible change that
should be a no-op for existing usages.
https://github.com/dart-lang/sdk/issues/36900

/cc @kevmoo


Empty Entity extraction results from Llama 3.1 8B

Description
Hey guys,
I'm trying out the repo with the same structure as the DeepSeek example with local llama 3.1 8B as both the best and cheap model. The problem is, I get empty dictionaries from the entity extraction results. I thought it was a token context problem, so I even reduced the max token size down to 4096 and even 1024 with the same outcome, so they were probably not the cause. I need your help to figure out why this is not working with llama 3.1 8B, so far I'm thinking the cause could be a combination of these:

Model capabilities: Llama 3.1 8B might not be as capable as GPT-4 in understanding and following complex instructions for entity extraction.
Prompt format: The entity extraction prompt might be optimized for GPT-4 and not suitable for Llama 3.1 8B.

I can confirm that this works with either GPT-4 or DeepSeek-v2 chat. Do we need some kind of prompt format specifically for smaller models?
Error output:
Below is the error that I got with llama 3.1 8B:
DEBUG:nano-graphrag:Entity extraction results: [({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {}), ({}, {})]
INFO:nano-graphrag:Inserting 0 vectors to entities
Traceback (most recent call last):
  File "/Users/tiliu/Documents/nano-graphrag/examples/using_ollama_as_llm.py", line 103, in <module>
    insert(text=text)
  File "/Users/tiliu/Documents/nano-graphrag/examples/using_ollama_as_llm.py", line 95, in insert
    rag.insert(text)
  File "/Users/tiliu/Documents/nano-graphrag/nano_graphrag/graphrag.py", line 145, in insert
    return loop.run_until_complete(self.ainsert(string_or_strings))
  File "/opt/homebrew/Caskroom/miniconda/base/envs/nano-graphrag/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/Users/tiliu/Documents/nano-graphrag/nano_graphrag/graphrag.py", line 226, in ainsert
    self.chunk_entity_relation_graph = await extract_entities(
  File "/Users/tiliu/Documents/nano-graphrag/nano_graphrag/_op.py", line 335, in extract_entities
    await entity_vdb.upsert(data_for_vdb)
  File "/Users/tiliu/Documents/nano-graphrag/nano_graphrag/_storage.py", line 108, in upsert
    embeddings = np.concatenate(embeddings_list)
ValueError: need at least one array to concatenate

Code to reproduce the error:
import os
import logging
from ollama import AsyncClient
from nano_graphrag import GraphRAG, QueryParam
from nano_graphrag.base import BaseKVStorage
from nano_graphrag._utils import compute_args_hash

logging.basicConfig(level=logging.WARNING)
logging.getLogger("nano-graphrag").setLevel(logging.DEBUG)

os.environ["OPENAI_API_KEY"] = "sk-......"
OLLAMA_MODEL = "llama3.1"
WORKING_DIR = "./nano_graphrag_cache_ollama_TEST"

async def ollama_model_if_cache(
    prompt: str, system_prompt: str = None, history_messages: list = [], **kwargs
) -> str:
    messages = []
    if system_prompt:
        messages.append({"role": "system", "content": system_prompt})

    # Get the cached response if having-------------------
    hashing_kv: BaseKVStorage = kwargs.pop("hashing_kv", None)
    messages.extend(history_messages)
    messages.append({"role": "user", "content": prompt})
    if hashing_kv is not None:
        args_hash = compute_args_hash(OLLAMA_MODEL, messages)
        if_cache_return = await hashing_kv.get_by_id(args_hash)
        if if_cache_return is not None:
            return if_cache_return["return"]
    # -----------------------------------------------------

    client = AsyncClient()
    response = await client.chat(model=OLLAMA_MODEL, messages=messages)
    content = response['message']['content']

    # Cache the response if having-------------------
    if hashing_kv is not None:
        await hashing_kv.upsert(
            {args_hash: {"return": content, "model": OLLAMA_MODEL}}
        )
    # -----------------------------------------------------
    return content

def remove_if_exist(file):
    if os.path.exists(file):
        os.remove(file)

def load_files(file_directory: str) -> list[str]:
    file_paths = [os.path.join(file_directory, file) for file in os.listdir(file_directory)]
    contents = []
    for file_path in file_paths:
        if os.path.exists(file_path):
            with open(file_path, 'r', encoding='utf-8-sig') as file:
                contents.append(file.read().strip())
        else:
            print(f"Warning: File not found - {file_path}")
    return contents

def query(query: str, param: QueryParam):
    rag = GraphRAG(
        working_dir=WORKING_DIR,
        best_model_func=ollama_model_if_cache,
        cheap_model_func=ollama_model_if_cache,
        best_model_max_token_size=4096,
        best_model_max_async=8,
        cheap_model_max_token_size=4096,
        cheap_model_max_async=8,
    )
    print(rag.query(query=query, param=param))

def insert(text: str | list[str]):
    from time import time
    remove_if_exist(f"{WORKING_DIR}/milvus_lite.db")
    remove_if_exist(f"{WORKING_DIR}/kv_store_full_docs.json")
    remove_if_exist(f"{WORKING_DIR}/kv_store_text_chunks.json")
    remove_if_exist(f"{WORKING_DIR}/kv_store_community_reports.json")
    remove_if_exist(f"{WORKING_DIR}/graph_chunk_entity_relation.graphml")
    rag = GraphRAG(
        working_dir=WORKING_DIR,
        enable_llm_cache=True,
        best_model_func=ollama_model_if_cache,
        cheap_model_func=ollama_model_if_cache,
        best_model_max_token_size=1024,
        best_model_max_async=2,
        cheap_model_max_token_size=1024,
        cheap_model_max_async=2,
    )
    start = time()
    rag.insert(text)
    print("indexing time:", time() - start)

if __name__ == "__main__":
    with open("./tests/mock_data.txt", encoding="utf-8-sig") as f:
        text = f.read()
    insert(text=text)
    # query(
    #     query="What are the main themes in these documents?",
    #     param=QueryParam(mode="global"),
    # )

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

Yeah, I agree with you on the specific prompts for smaller models.
Many developers have said that smaller models like qwen2-7B have troubles on extracting entities and relations, I added a FAQ.md to claim this problem.


get ready for grunt v1.0.0

Fixes https://github.com/gruntjs/grunt-docs/blob/master/Blog-2016-02-11-Grunt-1.0.0-rc1-released.md#peer-dependencies

Hey @israelroldan, @chuckmo or @andrewrjones can you accept this? No one can use this plugin if they upgraded grunt to > 1.

@steveoh Thanks for your contribution!

Maybe you should release a new version with that change. The old package.json is cached somewhere (not locally) for some reason.

Please release a new version with that change to accept grunt > 0.4. The old package.json is cached somewhere (not locally) for some reason.


Example with errors

Wrong class/event names. Did you mean CoreDragDropManager and TargetRequested?
Could you provide example how to pass Drag & Drop handling to existed control? I want to use this like global filter(only storage files) and if all ok, delegate handling to specified control.

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

ID: ecd7b484-8ea4-49d5-1dd1-88e8a68badfa
Version Independent ID: f217ad9e-ae5d-ad3a-b814-1906bf18341b
Content: CoreDragDropManager Class (Windows.ApplicationModel.DataTransfer.DragDrop.Core) - Windows UWP applications
Content Source: winrt-api-build/xml/Windows.ApplicationModel.DataTransfer.DragDrop.Core/CoreDragDropManager.xml
Product: uwp
Technology: winrt-reference
GitHub Login: @mcleanbyron
Microsoft Alias: mcleans

Thanks for submitting your feedback and we apologize for the delayed response. I see that updates have not been made since the creation of this Issue, so I went ahead and created an internal work item to resolve this doc bug. The timeline for this may vary, so I will go ahead and close this and circle back when the changes are live.
We have moved to a new feedback system, and I want to ensure that we don't lose access to the feedback in our open issues. Though the Issue will be marked as Closed, we will monitor any replies that come afterwards so treat this like an open Issue. Many thanks.


Provide a dev shell per Java version

Merging because CI doesn't run on PRs against PR branches 🤔


Use media name and not mid to find audio/video

Can't depend on audio/video being a mid name

@sepfy with this change I can use libpeer against Pion!
Thanks again for the amazing library. Excited to use it a lot now :)

Thanks for contribution!


Integrated terminal displays invisible underscores

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.58.1
OS Version: Fedora 34

Steps to Reproduce:

Integrated terminal fontSize: 14
Open terminal, type an underscore

I found https://github.com/microsoft/vscode/issues/35901 and apparently this was once fixed, but I'm having this issue now.

Eeeh, dupe of https://github.com/microsoft/vscode/issues/123077


association_defaults.tags required to be string

Description
var.association_defaults type requires it to be a map of strings. However, .tags is also valid key for the map and its value suppose to be map itself. When setting it to map, terraform input variables validation fails

[x] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]: 1.4

Terraform version:
Terraform v1.9.5
on linux_amd64

Provider version(s):

provider registry.terraform.io/alekc/kubectl v2.0.4
provider registry.terraform.io/fastly/fastly v5.13.0
provider registry.terraform.io/hashicorp/aws v5.65.0
provider registry.terraform.io/hashicorp/cloudinit v2.3.4
provider registry.terraform.io/hashicorp/helm v2.15.0
provider registry.terraform.io/hashicorp/kubernetes v2.32.0
provider registry.terraform.io/hashicorp/null v3.2.2
provider registry.terraform.io/hashicorp/time v0.11.2
provider registry.terraform.io/hashicorp/tls v4.0.5

Reproduction Code [Required]
module "external_secrets_pod_identity" {
  source  = "terraform-aws-modules/eks-pod-identity/aws"
  version = "~> 1.2"

  name = "test"

  attach_aws_lb_controller_policy = true

  # Pod Identity Associations
  association_defaults = {
    namespace       = "my-namespace"
    service_account = "my-service-account"
    tags = {"foo": "bar"}
  }

  associations = {
    one = {
      cluster_name = "my-cluster-name"
    }
  }
}

Steps to reproduce the behavior:
terraform plan
Expected behavior
plan shows no errors
Actual behavior
Error
The given value is not suitable for module.external_secrets_pod_identity.var.association_defaults declared at
│ .terraform/modules/external_secrets_pod_identity/variables.tf:79,1-32: element "tags": string required.

Additional context
Seems like a trivial fix to allow var.association_defaults to have map(any). Or define variable type specifying each allowed key and value type, something like this:
variable "association_defaults" {
  description = "Default values used across all Pod Identity associations created unless a more specific value is provided"
  type        = object({
    cluster_name = optional(string)
    namespace = optional(string)
    service_account = optional(string)
    tags = optional(map(string))
  })

  default     = null
}

I think the issue is in the code you provided. This:
tags = {"foo": "bar"}

should be:
tags = {foo = "bar"}

Same issue with suggested syntax

ohhhhhh, yes this https://github.com/terraform-aws-modules/terraform-aws-eks-pod-identity/blob/28131749c4a5ccef66072238af410ff79a6d1f1e/variables.tf#L81 should be map(any)
Feel free to open a PR and I'll merge it

would you consider changing the type to object with defined properties?

no, not at this time - we are still getting a feel for those and what value they provide. we only have them on one module so far and its been a bit of a pain - not sure I am seeing the benefits of those yet


Download button auto-buys FL first

Description:
This could be tricky, and should probably only happen for large files and/or certain ratio thresholds.
Implementation:

[ ] Check if page is Non-VIP non-FL
[ ] Clone & replace/add DL button
[ ] Then: Run built-in FL purchase function on click.
[ ] Auto-confirm it, somehow.
[ ] Then: Run built-in DL function

Links:
/f/t/39912

This should be doable now that ratio delta warnings are baked into M+. Instead of disabling the download when the highest ratio warning is triggered, run the auto-buy.


Fix socket path to be /run/php7.0-fpm.sock rather than /run/php/php7.0-fpm.sock

If kept in /run/php, an extra mkdir for /run/php is required before launching.

Don't we have to change the PHP-FPM configuration at the same time then?

The php-fpm configuration is set to launch on /run/php7.0-fpm.sock already, so this was pointing to the wrong place.


[nmstate-1.3] nm: Fix activation retry

Using time.sleep(5) will not process the MainLoop of NM library which
will cause checkpoint expire during time.sleep().
Use Glib timer will fix this problem.
Integration test case created to create 32 veth in single transaction, the
test case is marked as slow as it takes 10 seconds to finish.

Wait PR #2128


rubyfmt: 0.8.1 -> 0.10.0

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Thanks for reviewing!

Any reason to keep this in draft?

I was trying to fix the build on x86_64-darwin, but it doesn't seems possible with the current SDKs, so I marked it as broken.


Fix:Updated navlinks, Now changes color on hover

Issue  📐

**I Ayush Raj have worked for #322 **

Guidelines 🔐
I accept the fact that i have followed the guidelines and have not copied the codes from around the internet

[x] Contribution Guidelines
[x] Code of Conduct

Issue to be closed 🛅

**My pull request closes #322 **

Screenshots 📷
Here are the pictures of changes that i have made 🔽

Yes sir, Sure.
Let me do this

It was nice working on this project. Will keep contributing to this wonderful project.
Thank You so Much @IAmTamal


Proposal: deprecate Koa support in v4

I've heard that our Koa support is a bit iffy, and we currently have no-one maintaining it, so I'm proposing that we remove Koa support and instead recommend people use koa-connect or similar. Native Koa support would be better, but with no-one to maintain it, it's a burden.
If anyone wants to step up to maintain the native Koa support in PostGraphQL please do so soon! Otherwise v4 is the perfect time for us to deprecate Koa support such that we can remove it in v5.
Please weigh in below.

I've heard that our Koa support is a bit iffy
Are there open issues we can link here? I haven't come across problems yet

@alexFaunt perhaps you can chime in here?

When i tried it with Koa I had a few issues, but wrapping with koa-connect everything worked fine.
To be honest, I can't remember what went wrong, so it may have been me miss-using it, if I get a chance I can start from scratch again to see if I hit issues - time permitting though!
Either way the koa support that is currently in the lib doesn't interfere with koa-connect so no urgent reason to remove it

Can confirm that postgraphql does not work great with Koa (e.g. on error you get
Error:  Can't set headers after they are sent.

); koa-connect seems to solve this.

Guess I hadn't managed to hit an unhandled error. Moved over to koa-connect

Note - we are using this with koa without issue -
https://github.com/fervorous/fervor/blob/master/src/server/server.js#L35

 Deprecate koa support (or fix it!)

im using koa withoout issue as well /shrug

I think I'll just denote koa support as experimental rather than remove it 👍

Koa marked as experimental - it won't be removed, but issues with it will not be treated with the same severity as issues in express/etc.

As a corp. sponsor and user of Koa V2 .. I'd say .. No. :)  Although it doesn't have to have level 1 support I guess as long as there is someway to get it done .. maybe "we" could look at a koa-postgraphile module that does the wrapping .. seems like there are quite a few of those out there..

I’ll take a look at this tomorrow; I was under the impression that it mostly worked but that error handling was the issue.

I did start looking into this; more to come hopefully Friday.

So I think the reason is that the express body parser and the koa body parser don't work well together - the koa one consumes the body but the express one doesn't check for that and tries to decode it again, resulting in a hang.

So basically, it works for people who don't add bodyParser middleware before PostGraphile, and doesn't (always) work for those that do.

This should fix it: https://github.com/graphile/postgraphile/pull/780

Awesome1  Do I still need to use the koi-connect middleware to get this to work (I am assuming yes since the call sig for a Express & Koa middleware are quite different) ??

Theoretically no. I definitely want it to work without that. It works for me without it, but I've barely tested it - I'll be releasing a demo project soon showing usage.

I'll give it a try probably this afternoon (EDT) as well but the above is awesome -- 1st class Koa citizen! :)
Oh and yes, I was for sure using the Koa body parser ahead of postgraphile since we have other routes we need to handle too .. So very interesting!

Have added a few more fixes; now no more headers warnings (that's what I was getting when I used PostGraphile with Koa) and also the server-sent events now work so schema watching in GraphiQL is live in the Koa version too 👍
https://github.com/graphile/postgraphile/pull/780
https://github.com/graphile/postgraphile/pull/781
https://github.com/graphile/postgraphile/pull/782
I'm still deeming Koa support experimental; but it's suddenly a lot lot better 🎉

Woohoo!  As soon as I can pull a version with this in it (rc2?) I will give it a whirl.  And yes, I think a set of Koa tests would be a fine idea.  I'll pop it on my to do list for myself or my team ..

It'll be in RC2, yeah. There's lots more stuff required in RC2 though, so it'll probably not be until next week or maybe the week after 😞

I'm finding GraphiQL static assets hanging with koa, but very intermittently. When I use koa-graphiql as a replacement all is good, but it doesn't load schema docs generated by PostGraphile. Everything else (main /graphql endpoint) is working well. Maybe the fixes that were applied didn't touch GraphiQL parts at all?

Are you able to figure out how to reproduce it? I think it’s an issue with send interacting with Koa. GraphiQL assets serving is changing soon anyway, so this might go away...

it's stably reproducible for me, I just set PostGraphile middleware on /graphiql path and open it in Safari. Most of the time it hangs (just blank page and loading progress never ends), although when I hit "refresh" when it's hanging it loads ok.

Any idea what resource is hanging? Is it the graphiql endpoint itself or the css/js? If you can reliably reproduce it then digging further in devtools would be great.
Are you using any koa middlewares before postgraphile? Does removing them solve/reduce the issue?

Basically every second load of /graphiql in any browser stalls for me. Literally I'm going to /graphiql and it loads, I reload it and it stalls, I reload it again and it loads again.
Removing all other middleware doesn't make any difference. I'm on "koa": "^2.5.3" and "postgraphile": "^4.0.1". Devtools screenshots attached.
Stalled one:

Every second one is loading well:

Cool; so it's definitely the resources. I think it's an interaction with send. I've already got a branch locally that removes send so I think this'll be fixed in 4.1.0 👍


Fix the runApp() usage during jaspr create my_web_app

Creating a new jaspr web app with the pub executable creates an application with initial errors.
The following line does not properly build or compile.
runApp(() => App(), id: 'output');

But works properly when changed to
runApp(App());

P.S. Thank you for making this package.

Thanks

Published in v0.1.1


Support for HTML

There should be a way to prettify the error messages in html form. So that one can use it as a middleware for express.

Would this be enough:
$ npm install pretty-error renderkid domutils

then:
PrettyError = require 'pretty-error'
renderkidTools = require 'renderkid/lib/tools'
DomUtils = require 'domutils'

pe = new PrettyError

errorObject = new Error "error message"
shortDomNotation = pe.getObject errorObject
errorDom = renderkidTools.objectToDom errorObject
errorHtml = DomUtils.getOuterHTML errorDom

console.log errorHtml

The output would be:
<pretty-error>
  <header>
    <title>
      ...

Will this output a pretty version of the stacktrace on the browser?

Just the HTML without any CSS, so you'd need to write some CSS to make it look pretty.
If you want to use the console's theme in the browser, there are two ways to do that:

You can simply write pretty-error's theme in css for the browser, manually.
You could write a function that takes prettyError._renderer._styles (which is the object that handles the stylesheet rules in RenderKid), and converts it to pure CSS rules. Most of RenderKid's css can be directly converted to CSS. The bullet points are implemented differently though, so you'll have to come up with a way to convert RenderKid's bullet property to a browser-readable CSS property.

The second way is automatic, but I think it's an overkill. I'd recommend just rewriting PrettyError's CSS rules by hand.

I'm closing this issue since it hasn't been active for a while.

Not the right reason to close the issu .

No problem. Let me know if my explanation in this comment was useful. I'll be happy to help with implementing a separate HTML converter for pretty-error.

Can you reopen this.
It would be good if it returned pure html with inline css styling just like https://github.com/benbria/exception-formatter does.
That way we can use the output directly in a website.


build: update actions to node16

node12 GitHub Actions are now deprecated, and we can port to node16 without any problems.

Otherwise looks good to me


Filter is broken when sweeping low frequencies.

Open one of the examples, move the mouse fast. As you are moving the mouse fast near the low end of the frequency setting, the filter "blows up" and produces a very nasty artifact/pop. I suggest setting your speakers low when testing to avoid potentially hurting them:
https://p5js.org/reference/#/p5.Filter
https://p5js.org/examples/sound-filter-lowpass.html
This happens in the example with the mouse but you can also get the same behavior passing an oscillator to the filter freq and setting the base filter freq to a low value.

Confirmed to also happen here:
https://daniloprates.github.io/redux-synth/ (found this from another post here, its a bit old so no audio context start on chrome, it works on firefox where the filter displays same behavior - put the filter LFO on full depth, filter freq slider on low value.
Also confirmed to happen on any filter type, not just the lowpass.


[Backport - Liberty] MaaS: Swift time-sync validation and alarming

Backport for Swift time-sync validation and alarming
Cherry picked and amended to exclude venvs from check.
Connects rcbops/u-suk-dev#1217

recheck_all

recheck_all

recheck_all


Manage command exited automatically if any host is valid

 letsencrypt-cli manage --days-valid 30 --account-key /root/account_key.pem --key-directory /etc/letsencrypt/live --webroot-path /var/www/acme-challenge example1.com example2.com
2016-10-17 15:27:47 +0800: Certificate '/etc/letsencrypt/live/example1.com/cert.pem' valid until 2016-12-27.

In my command I input 2 host but it exited automatically when the first one is valid.
Able to happen in newest version (0.4.1)

It's correct, ONE certificated for two hostnames

Got it, thank you


Cleanup Dockerfile

Description:

Reduce COPY layers
Make sure that pip respect the constraints of home-assistant

The copy layer change is not very nice for development since now we have to reinstall all pip dependencies on every single small code change somewhere in the source :/

Oh sure! Didn't catch that, but for a production image it's okay oc.


Add mermaid support

Is your feature request related to a problem? Please describe.
Graphviz requires system dependencies. This could prevent users getting a good experience with Burr.
Describe the solution you'd like
Mermaid diagrams I believe require less to get working.
Jupyter support.
Thing to figure out:

you still need something to render the mermaid markdown programmatically if someone wants to create a png.
github can natively render the mermaid markdown -> so png might not be required (for this initial implementation).
I believe npm has a CLI that would be installed to work here - and would require someone to install it for things to work..

Describe alternatives you've considered
N/A
Additional context
Feedback from a user.

Other notes:

Mermaid in a markdown block (```mermaid) will render on GitHub, but not in other
AFAIK, there's no way to render Mermaid from Python. You need to have access to Javascript, which seems like a more burdensome dependency (random example found on Medium)
While Graphviz has Python bindings, Mermaid doesn't and would require manually handling strings (see Haystack's code)
From my experience (with Haystack at least), rendering Mermaid is significantly slower than rendering graphviz in a notebook


error: unknown type name 'ucontext_t'

 crypto/async/async.o crypto/async/async.c
In file included from crypto/async/arch/../async_local.h:30,
                 from crypto/async/arch/async_null.c:11:
crypto/async/arch/../arch/async_posix.h:32:5: error: unknown type name 'ucontext_t'
   32 |     ucontext_t fibre;
      |     ^~~~~~~~~~

openssl not working uclibc now?
I am using buildroot to compile

Looks like it doesn't know about this type. Try running Configure with no-async

@mattcaswell thank you, it's work!


Font metrics of some glyphs exceed maximum values

This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:

The font used (DejaVuSans-Bold.ttf, application/octet-stream, 2020-08-18 12:38:25 +0000, 693876 bytes)
The font used (DejaVuSans) (DejaVuSans.ttf, application/octet-stream, 2020-08-18 12:39:47 +0000, 741536 bytes)

Reported in version: 2.0.15
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2020-08-18 12:36:04 +0000,  wrote:

miny and maxy returned by TTF_GlyphMetrics in some cases exceed the values returned by TTF_FontDescent and TTF_FontAscent.
The height returned by TTF_SizeUTF8 in some cases exceeds the one returned by TTF_FontHeight.
This should not happen, right?
DejaVuSans size 12:
TTF_FontDescent = -2; but TTF_GlyphMetrics('p') miny = -3
TTF_FontHeight = 14; but TTF_SizeUTF8('p') = 15
DejaVuSans-Bold size 14:
TTF_FontAscent = 13; but TTF_GlyphMetrics('Ö') maxy = 14
TTF_FontHeight = 17; but TTF_SizeUTF8('Ö')=18

On 2020-08-18 12:38:25 +0000,  wrote:

Created attachment 4441
The font used

On 2020-08-18 12:39:47 +0000,  wrote:

Created attachment 4442
The font used (DejaVuSans)

On 2020-08-18 18:46:34 +0000, Sylvain wrote:

I think this is ok. otherwise you would have the rendered text/letter truncated, which would be worse.
you may want to check the latest head/dev version: https://hg.libsdl.org/SDL_ttf/

On 2020-08-19 03:26:01 +0000,  wrote:

This is problematic mainly because it makes it cumbersome to determine where the baseline is for aligning the text properly. Currently I'm checking the metrics of every glyph in the rendered string one by one and making adjustments based on that, and I'm not even sure if it's reliable.
I did check the latest dev version and at first glance it seemed to behave the same.

On 2020-08-19 12:27:58 +0000, Sylvain wrote:

This is what is done in SDL_ttf latest version for rendering a string: you need to check all the glyphs first to make sure the glyph won't be outside the surface. (there was issues in the bug tracker called negative y/x with same problem detected)
The other option would be to crop you character.

On 2020-08-20 11:35:36 +0000,  wrote:

So, just to make sure, this pseudocode is the correct way to do it?
ascent = TTF_FontAscent(font);
descent = TTF_FontDescent(font);
for (i = 0; i < unicode_string.length(); ++i) {
if (TTF_GlyphMetrics(font, unicode_string[i], NULL, NULL, &miny, &maxy, NULL) == 0) {
if (ascent < maxy)
ascent = maxy;
if (descent > miny)
descent = miny;
}
}
return ascent, descent;

On 2020-08-20 13:00:44 +0000, Sylvain wrote:

The internal code is here:
https://hg.libsdl.org/SDL_ttf/file/72b8861dbc01/SDL_ttf.c#l2716
https://hg.libsdl.org/SDL_ttf/file/72b8861dbc01/SDL_ttf.c#l2736
for miny/maxy
TTF_SizeUTF8
I think it's easier to call TTF_SizeUTF8() for you case !
(and event easier to call TTF_RenderUTF8())

On 2020-08-20 13:49:13 +0000,  wrote:

But TTF_SizeUTF8() or TTF_RenderUTF8() only give me the size. I want to align two strings side by side so their baseline is on the same height. Their size alone doesn't give me enough information because I don't know if it expanded upwards (ascent) or downwards (descent).

On 2020-08-20 14:17:14 +0000, Sylvain wrote:

ok make sense!
About your code: I am not 100% sure about it.
It probably only involves miny/maxy/ascent/descent.
you may only need to compare ascent with miny.
find the min of all miny glyphs.
if (miny < 0) new_ascent = ascent + abs(miny)

On 2020-08-20 16:35:52 +0000,  wrote:

I think there should be a function that tells you where the baseline in the rendered string is. My current method doesn't give me confidence, since (ascent-descent==height) is not always true, and it really feels like a hack.

I am also seeing this issue with the same font. Note this from the TTF_SizeText documentation:

The height returned in h is the same as you can get using 3.3.10 TTF_FontHeight

This is true that the glyph can exceed font height. So it's better to be able to display then than to truncate them.
Eventually we should add a function to tell were the baseline is...


Warn possible NullReferenceException

I am marking this as a duplicate of #96. @ElemarJR if you would like to reopen it let us know what you had in mind.


[AST] Stop using PointerIntPair for SIL params/results

The differentiability bit pushed the size of SILParameterInfo and SILResultInfo from 8 bytes to 16 bytes. Given that the low bits of the PointerIntPair are full and given that we do not want to over-align types, the PointerIntPair is not saving space anymore. Let's simplify these two data structures to make debugging easier (and the speed of debug builds slightly faster). In theory, release builds will also benefit due to fewer masking operations to extract the pointer or the low bits, but this will probably be "in the noise" for benchmarks.
Note: this change is techinically not NFC because it fixes the SILResultInfo equality comparison function to check differentiability.

@swift-ci please smoke test

Hi @jckarter and @rjmccall – Any chance we can bless using the high-byte on x86-64 and arm64 platforms to pack data structures more efficiently?

It would be nice to have a BigPointerIntPair that used the high byte on 64-bit platforms but was an int32_t; int8_t pair on 32-bit (or 64-bit platforms that don't want to guarantee they'll give up the high byte).


initial set of avn service docs

Initial set of avn service docs

Solve #219 #220 #221 #222 #223 #224 #225 #226 #227 #233 #234 #257 #259

Hi @anelook and @lornajane, the avn service is our big monster, I would like an initial feedback on the current content and structure. Is it too much for a page? should we divide it better?
Thanks!

(sorry I pressed the wrong button there!)
This is definitely a huge task, and of course the sooner we start the sooner it'll be done, so I'm impressed already!
Are you intending to get all of avn service * into one pull request? For avn account I grouped commands together rather than having purely an alphabetical list, in case people wanted to do a thing that they didn't already know the command name for.
What are you using as the basis for when to go into a subpage or not? I think we might need to do more subpages for this command that has so much at the top level that the page is really, really long.

Are you intending to get all of avn service * into one pull request? Nope, I started documenting... and added a bit too much in one go :D
As of now I created a subpage only when there were multiple subcommands (connector is the example) but I agree I'll subdivide the content per area, for example, all the avn service acl* will go into a separate file.

Rebased! Should be ready for the final check before merging into main

Replaced by #332


Driving events based on file change

As far as I can tell, there's no way to act upon a change in the file upload element. The files property doesn't set notify, so binding isn't possible, and there are no listeners defined on the upload element.
The only way I see to get the files is by an external user-driven event, or by polling the element. Can we add support for binding in any way, either through notify or listeners?

I would like to second Will's request. Also if possible, I would like to see a more comprehensive demonstration of this component.

Added in PR #2 - kudos to Dylan! 👍
I've also added information about the new event to the demo page and added a link to MDN which explains how to actually upload files from a file upload field.


readme: add TiKV logo and CNCF announcement

Signed-off-by: lilin90<EMAIL_ADDRESS>
What have you changed? (mandatory)
Add the TiKV logo and CNCF announcement.
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
I'll update https://github.com/tikv/tikv/wiki later.
Refer to a related PR or issue link (optional)

https://github.com/tikv/tikv/pull/3795
https://github.com/tikv/tikv/pull/3811

LGTM

@queenypingcap I updated the TiKV logo, PTAL again. Thanks!

LGTM. Thanks!

@queenypingcap After my new commit, the previous approving review is dismissed automatically, so I need your new approving review :)


[23.11] wireshark: 4.0.12 -> 4.0.14

Description of changes
https://nvd.nist.gov/vuln/detail/CVE-2024-2955
https://www.wireshark.org/security/wnpa-sec-2024-06.html
See  #304008 for unstable.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 304010 run on x86_64-linux 1

32 packages built:

compactor
credslayer
credslayer.dist
dbmonster
haka
hfinger
hfinger.dist
ostinato
python310Packages.dissect
python310Packages.dissect-cobaltstrike
python310Packages.dissect-cobaltstrike.dist
python310Packages.dissect.dist
python310Packages.manuf
python310Packages.manuf.dist
python310Packages.pyshark
python310Packages.pyshark.dist
python311Packages.dissect
python311Packages.dissect-cobaltstrike
python311Packages.dissect-cobaltstrike.dist
python311Packages.dissect.dist
python311Packages.manuf
python311Packages.manuf.dist
python311Packages.pyshark
python311Packages.pyshark.dist
qtwirediff
termshark
tshark (wireshark-cli)
tshark.dev (wireshark-cli.dev)
wifite2
wifite2.dist
wireshark (wireshark-qt)
wireshark.dev (wireshark-qt.dev)


Adding Windows network metrics

New branch for the network metrics. Sorry for the mess in the other branch.

NOTE: I've modified the file in order to fix a little error.


docs: improve comprehension curve

Describe the problem
As much as I like sveltekit, I find the official docs not very comprehensive, even after months of sveltekit usage I have to spend some time in the docs instead of having that one-to-go function, options, example document. Especially for newcomers this is hard.
Describe the proposed solution

One thing that would help already is proper syntax highlighting for  TS, ex: https://kit.svelte.dev/docs/load#layout-data.

Another big improvement would be an API docs format, where one can see at a glance all the options for a method, maybe with a Side-Split of Text / Code

Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

Not sure I understand what you mean about proper syntax highlighting — what's not highlighted correctly here?

(Note that I've switched the docs into TypeScript mode in the bottom left.)
The https://kit.svelte.dev/docs/modules and https://kit.svelte.dev/docs/types pages provide all the API details. Can you give an example of something that isn't properly documented?

Thank you for your message Rich

I agree that the documentation is reference complete. By more comprehensive, I meant rather that the docs could be visually clearer and better structured to allow finding all associated informations at a glance  like, for example the way appwrite's docs are structured:
https://appwrite.io/docs/client/functions?sdk=web-default#functionsListExecutions

Syntax highlighting: My apologies, you're right. My darkmode extension overwrote the native dark mode of the docs resulting in TS not being highlighted.