Why not allow 3 SH Bands?

I see that the viewer only allows 0, 1, or 2 sh level, but my splat looks best with 3. Why are 3 SH bands not possible?

Mainly for simplicity's sake :) The code to render the third band will be the most complex out of all of them. I do tentatively plan on adding the third SH band at some point.... I just need to find the time.


BUG: internal and external dtype mismatch leads to incorrect types in iloc result

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS Monterey 12.4
Modin version (modin.__version__): 5af9832d7fad3d17f05d63908bc377e61542d953
Python version:  3.10.4
Code we can use to reproduce:

import modin.pandas as pd

df1 = pd.DataFrame(['a'])
df2 = pd.DataFrame([2])
df = pd.concat([df1, df2])
print(df.iloc[1:].dtypes)

Describe the problem
In the script above, modin gives me dtype int64, and pandas gives dtype object. The modin frame has two partitions, the first of which internally has object dtype and the second of which has int64 dtype. The modin frame also has the correct overall dtype of object. However, iloc internally gets iloc result from the second partition, which doesn't know about the overall dtypes.
The bug in general is similar to bugs we've had earlier with syncing internal and external row and column labels. I think in dtypes the bugs are not as obvious, so the synchronization isn't usually a problem. I wonder how many other functions have bugs like iloc's here.
For now, I think it's okay to just fix iloc.

This particular reproducer with pd.concat seems to have been fixed by 8f3f38 -- I'm not sure if there's any other form of DataFrame construction that could lead to this bug.

Agreed with @noloerino , it seems like we are getting the right dtype here now, so I am going to go ahead and close this issue.


Black Screen Lockup On Suspend

Please paste the output of the following command here: sudo edit-chroot -all
name: obuntu
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/obuntu...
crouton: version 1-20161129162558~master:5f2f11f9
release: trusty
architecture: amd64
xmethod: xorg
targets: x11,extension
host: version 8872.73.0 (Official Build) stable-channel terra
kernel: Linux localhost 3.18.0-13436-g8b496ef #1 SMP PREEMPT Sat Dec 17 11:05:03 PST 2016 x86_64 x86_64 x86_64 GNU/Linux
freon: yes

Latest xserver-xorg-video-intel ( version 7 in trusty-updates) causes my crouton to lock up with black screen if I suspend my chromebook. Reverting to previous version (6) solves problem. This is an Asus c202 chromebook with OS 55.blahblah.  This may be unique to my setup since nobody else is mentioning anything, so I don't think it's terribly urgent. I removed trusty-updates from my sources.list and expect to be able to run just fine indefinitely.
Hmm. Would it have made a difference if I added the xorg target?
If known, describe the steps to reproduce the issue:
Update Trusty with trusty-updates in sources.list, getting the latest  xserver-xorg-video-intel. Start the crouton. Suspend. Resume. Try to do the four-finger salute to get back into the crouton. Observe The Edge Of Space.

Im also having this issue but it happens with kali-linux rolling and this is with the command line interface only. this started happening after thee most recent update to chrome os.
If I enter the chroot at all and even log out and make sure I unmount all chroots it hangs if the chromebook is put into suspend and when I try to wake it back up just black screen with a solid blue status light and have to hardboot the chromebook to get it back.
name: kali
encrypted: no
Entering /media/removable/crouton-sd/chroots/kali...
crouton: version 1-20161129162558~master:5f2f11f9
release: kali-rolling
architecture: amd64
targets: core,cli-extra
host: version 8872.73.0 (Official Build) stable-channel cyan
kernel: Linux localhost 3.18.0-13436-g8b496ef #1 SMP PREEMPT Sat Dec 17 11:06:39 PST 2016 x86_64 GNU/Linux
freon: yes
Unmounting /media/removable/crouton-sd/chroots/kali...
Im on an acer r11 the cb5-132t-c8zw series.
Proccessor: Intel Celeron N3060
Memory: 4 GB
Storage: 16 GB eMMC

I'm going to leave this open for a while just in case, but in the third iteration of setting this up the problem has disappeared, at least for now. Beats me.

I've heard 'third time's the charm', let's hope the issue was just a glitch.

I have the same problem. However, I was able to SSH the chromebook and run dmesg:
[  450.034708] audit: type=1400 audit(1484414881.660:304): avc:  denied  { ioctl } for  pid=2692 comm="netfilter-queue" path="socket:[64725]" dev="sockfs" ino=64725 ioctlcmd=8910 scontext=u:r:chromeos:s0 tcontext=u:r:chromeos:s0 tclass=unix_dgram_socket permissive=1
[  450.034961] audit: type=1400 audit(1484414881.660:305): avc:  denied  { ioctl } for  pid=2692 comm="netfilter-queue" path="socket:[64727]" dev="sockfs" ino=64727 ioctlcmd=8910 scontext=u:r:chromeos:s0 tcontext=u:r:chromeos:s0 tclass=unix_dgram_socket permissive=1
[  453.034541] audit: type=1400 audit(1484414884.660:306): avc:  denied  { ioctl } for  pid=2692 comm="netfilter-queue" path="socket:[63919]" dev="sockfs" ino=63919 ioctlcmd=8910 scontext=u:r:chromeos:s0 tcontext=u:r:chromeos:s0 tclass=unix_dgram_socket permissive=1
[  470.733660] audit: type=1400 audit(1484414902.359:307): avc:  denied  { write } for  pid=15762 comm="sshd" scontext=u:r:chromeos:s0 tcontext=u:r:chromeos:s0 tclass=key permissive=1
[  470.733682] audit: type=1400 audit(1484414902.359:308): avc:  denied  { link } for  pid=15762 comm="sshd" scontext=u:r:chromeos:s0 tcontext=u:r:chromeos:s0 tclass=key permissive=1
[  470.742781] systemd-logind[15765]: Failed to enable subscription: Launch helper exited with unknown return code 1
[  470.742799] systemd-logind[15765]: Failed to fully start up daemon: Input/output error

Here is my sudo edit-chroot -all:
name: stretch
encrypted: no
crouton: version 1-20161129162558~master:5f2f11f9
release: stretch
architecture: amd64
xmethod: xorg
targets: xfce,keyboard,extension
host: version 8872.76.0 (Official Build) stable-channel lars
kernel: Linux localhost 3.18.0-13437-g2bea612c #1 SMP PREEMPT Fri Jan 6 23:51:59 PST 2017 x86_64 GNU/Linux
freon: yes

The chromebook is an Acer CP5-471.

I'm going to close this issue since it has simply stopped happening. Nothing to see here, folks.


I got a update error afer I modified a file.

Describe the bug
I add a Comments.astro file in component directory, and I modified the [slug].astro. When I commit the files , github give me some error like this:

So I updated the lint.yml like this
    steps:       - name: Check out Git repository         uses: actions/checkout@v3         with:           node-version: 16
Then I recommit the files and it continue to report error:

To Reproduce
Steps to reproduce the behavior:

Go to 'src/pages/post/[slug].astro'
Click on 'edit this file' and make some change on it.
Commit and it report error

Run npm run lint in your local so that you can see where those errors came from.
If it passes, run npm run format to format your code automatically.

FYI: I have updated the Node version and the runner versions of GitHub Actions so the warnings should disappear.
https://github.com/otoyo/astro-notion-blog/pull/193


iOS simulator enhancement for Push activation/deactivation

Currently, when calling realtime.push.activate/deactivate on iOS simulators, the method never returns because Ably Cocoa never completes its callbacks.
This means users had to code around the problem, either by adding a timeout if it were a simulator, or avoiding calling the method at all if it were the simulator. This is annoying and leads to more complex for users.
To fix this, we check for the iOS simulator on the iOS side, and throw and error immediately instead of never completing the future.
Alternative
We could create a random APNs token if running on iOS simulator, so that subscriptions can still be created. However, this might pollute the data, since these device registrations would be for simulators, and completely useless.

Poorly documented. I can't see what value this adds. Actually, I think it makes debugging harder.


Observe "palette" to allow changes when extending component

I've got a PR I can submit that makes the "palette" option observable.  Given the component dictates and expects the structure of this data to conform to a specific pattern, it would seem to me that requiring this data to be fed to the component already "pre-formatted", couples the inner workings of the component to the application.  By observing the property instead, a user can extend the component and dynamically update the palette property with the application specific color palette data.
I have a local workaround but I thought I'd pass along my idea.
didReceiveAttrs(){
    this._super(...arguments);
    const myPalette = this.buildCustomPalette();
    this.$().spectrum('option', 'palette', myPalette);
}),

PR #23 submitted


Dev master vatalik

dev
JIRA

Main JIRA ticket

Code reviewers

[ ] @github_username

Second Level Review

[ ] @github_username

Summary of issue
ToDo
Summary of change
ToDo
Testing approach
ToDo
CHECK LIST

[ ]  СI passed
[ ]  Сode coverage >=95%
[ ]  PR is reviewed manually again (to make sure you have 100% ready code)
[ ]  All reviewers agreed to merge the PR
[ ]  I've checked new feature as logged in and logged out user if needed
[ ]  PR meets all conventions

please, change base branch to dev master)


Enable SourceLink

SourceLink is quite useful for developing dependent applications as it enables users to step into the source code and open definitions of SimSharp through nuget packages. E.g. when opening the definition to a SimSharp class in a dependent project one would then get the code from github instead of getting the decompiled version from the IDE.
I am still quite new to nugets and SourceLink, but I added similar changes that the Newtonsoft repo did when adding this feature (see this pull request).

I am not entirely sure why the unit test fails, it doesn't on my computer. The new warnings seem to stem from compiling an older version of the standard with a newer compiler.

Ok thanks, the test can fail when the processes is suspended for a longer time. It's not the best test, but it's a bit difficult to test parallel processes and giving some guarantee on execution time. I restarted the build. Seems to be working.

Now, I also believe the reason why upgrading from netcoreapp2.1 to net5 failed on appveyor recently. I didn't remember that the build image was declared in the appveyor config 🤦♂. I think we can upgrade to net5 the sample, benchmark, and test projects now (the library should remain net45 and netstandard2.0).
Anyway, I also have only very little experience with nuget and deployment related issues. But I did a little bit of research. This source mentions that we shouldn't add ContinuousIntegrationBuild (deterministic builds) unconditionally:

These should not be enabled during local dev or the debugger won’t be able to find the local source files.

We should do ContinuousIntegrationBuild on appveyor only and then also configure appveyor so that the artifact can be downloaded and be uploaded to nuget for distribution (I was publishing local builds so far). Do you happen to know the condition that we need to check when it's running on appveyor?

Good catch. From the appveyor docs it seems like the flag would be APPVEYOR. I'll add it to the config.

Maybe it would be a good idea to make the realtime unit tests not run on Appveyor. Could e.g. be a global config that checks the APPVEYOR environment flag and skips the test if it is set, using e.g. Xunit.SkippableFact. Can either define something in the PropertyGroup or just have a simple static method.

Would it be possible to publish an updated nuget package so I could see if source link works?

I uploaded it to nuget as prerelease version: https://www.nuget.org/packages/SimSharp/3.4.1-pre1
Also, the build server will from now on produce the nupkg as artifacts (retention period is one month I think): https://ci.appveyor.com/project/abeham/simsharp/build/artifacts
Can you also check the experience of debugging models? E.g. stepping through a process in the debugger? I hope that if you say "Just My Code" it will overstep the Sim# library stuff. Because for me that makes a huge difference. If I hit F10 and the debugger shows me the next line of model code, then that's good. But if your thrown into the Process class and Step() logic then stepping through processes with the debugger is annoying. I am not sure how VS treats this when the pdb is present.

I am having a bit of trouble getting source link to work in VS all together. However, it works well in Rider (which is the C# IDE I actually use). I can't test the Just My Code settings yet.
However, I have two observations. First it seems like the symbol package wasn't uploaded to nuget.org. If you look at e.g. the Newtonsoft.Json page there is a link to download symbols that is not present for SimSharp. Second, there seems to be an issue with the config still. If you look at the checks in the Nuget Package Explorer there are warnings about untracked sources, so maybe we also need the <EmbedUntrackedSources>true</EmbedUntrackedSources> flag in the project file. Also, it seems like <AllowedOutputExtensionsInPackageBuildOutputFolder> might not be necessary if you publish the symbols file to nuget (see this comment).

Okay, I have no idea how this all works, but Newtonsoft.Json produces a .snupkg file and not a symbols.nupkg, because it seems like the .snupkg is an add-on to the regular .nupkg while the .snupkg is an extra. I changed the settings as you mentioned and uploaded 3.4.1-pre2 to nuget.org. Please check that one out.

I also do not fully know how this works, I have been trying to figure out source link for a while now and it all seems a bit like a mess. I hope these things get more standardized because it is not good as it is now.
Anyway, I tested it out and it works great now! I am able to step into the SimSharp code with F11, and if I enable Just My Code it doesn't as expected.
Thanks a lot! <3


D582157 build issue

A developer build has not yet been created for this branch. Click here to go ahead and create the build...


Problems using Shadow component since release 2.11.0

Hello there!!!
Guys, I have been facing an error using the Shadow component.
Previously we had @lightningjs/ui-components in release 2.2.4, however when we updated to latest version we started to get an error in the colsole and our UI navigation breaks.
The error in the console is this:
TypeError: undefined is not an object (evaluating 'v.toString') lightning-inspect.js:633
 Object.defineProperty(ElementCore.prototype, '_colorUl', {
      get: function() {
          return this.__colorUl;
      },
      set: function(v) {
          if (this.__colorUl !== v) {
              val(this, 'colorUl', v.toString(16), "ffffffff"); //Line where error occurs
              this.__colorUl = v;
              checkColors(this);
          }
      }
  });

After investigation we found out that until version 2.10.0 It works fine, but from 2.11.0 we start getting this error, we also tried to update the code and use different values from what we had, but nothing seems to work and the error is still there. This is our code using the Shadow component:
import { Shadow } from '@lightningjs/ui-components'
//ofc it has the whole lightning structure around it, only pasted here the shadow part

Dropshadow: {
        w: 400,
        h: 300,
        type: Shadow,
        style: {
          alpha: 0.6,
          blur: 60,
          color: 0xFF000000,
          offsetY: 44,
          radius: 8,
          spread: 2,
        },
      },

As the error seems related to the color of the component we tried '#000000' and Colors('black').get().
We also analyzed the changes from releases 2.10.0 to 2.11.0 and we saw nothing related to the Shadow component, also none of the changes made us think "could be this or that".
Is there anything we might be missing?
A new approach on the Shadow usage/implementation is necessary on our side?
Thank you for your support.
Best regards

@erautenberg maybe this is related to the 2 issues we discussed on Discord.
@Laerso-nos, can you try the following?:
Change this line from:
https://github.com/rdkcentral/Lightning-UI-Components/blob/c6a4caac3ff0632b8369ff9027eac30dc9a78bd4/packages/%40lightningjs/ui-components/src/mixins/withThemeStyles/utils.js#L631
To:
str = str.replace(new RegExp(`"${alias.prev}":`, 'gi'), `"${alias.curr}":`);

To make it easier, you can change this directly on the distributable to test, located on<EMAIL_ADDRESS>From:
n=n.replaceAll('"'.concat(t.prev,'":'),'"'.concat(t.curr,'":'))

To:
n=n.replace(new RegExp('"'.concat(t.prev,'":'), 'gi'),'"'.concat(t.curr,'":'))

Hello @ricardo-a-alves-alb
Thank you for your support.
With your suggested change it is working fine again.
So now, should we wait a new release on your side to bump the ui-components version on our project?

@ricardo-a-alves-alb Sure, I'll keep an eye on those. Thank you one more time

Solved with release 2.14.3
Closing the issue.


docs: add flex usecase to adopters list

Description

Adds flex to adopter list
References

Review Checklist

[ ] I have clicked on "allow edits by maintainers".
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected

If you haven't done so yet, we would appreciate it if you could star the OpenFGA repository. :)

@flex-seongbok thanks a lot! please sign the CLA so we can merge it. Thanks!


Added documentation entry to warn against self closing row tags

Current coverage is 87.95% (diff: 100%)

Merging #232 into master will not change coverage

@@             master       #232   diff @@
==========================================
  Files            15         15
  Lines           722        722
  Methods         630        630
  Messages          0          0
  Branches         92         92
==========================================
  Hits            635        635
  Misses           87         87
  Partials          0          0

Powered by Codecov. Last update f38c6fe...0745edd

Cool. It is always good to document the limitation. Thanks. Could you maybe copy and paste it to rowTag in the writing options below?

Not positive, but my understanding is that the writer will never be able to encounter this condition when saving out a dataframe? Things would default to <rowTag> </rowTag>. Is this correct?

Oh, yes. I was thinking when someone might want to write out with self-closing tags by kind of an option. Yea, but it sounds less common. LGTM. Let me merge this tomorrow (due to network problem).

Thank you @trheming, merging to master.


Create new users

This will provide intercity users with the option to create new users. The new user will get a email with a link to confirm his account and will be able to set his password in the activation screen.
This wil fix #21
TODO:

[x] Fix onboarding user

I know its a WIP, but couldn't resist to do a review already :dancers:
Can we also add an integration test for this behaviour?

Almost there! Just a few small tweaks left :-)

@brambokdam Thanks!


Refresh CUDA 12 migrator

As the CUDA 12 migrator here is vendored to ensure this builds with the latest CUDA 12 version (it still supports CUDA 12.0+), changes to the CUDA 12 migrator need to be applied manually.
https://github.com/conda-forge/cuda-python-feedstock/blob/72ba70dd877cb4f4c148859ac30aff63cc0fb3cf/.ci_support/migrations/cuda120.yaml#L5-L6
Pull in the latest changes from the CUDA 12 migrator. This fixes some re-rendering issues that would otherwise occur

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please re-render


FT8CN cannot decode contest messages

For some contests such as FT Roundup these days, FT8CN cannot decode the full message that contest need to send, such as
FW1JG BH6BEZ 539 0036

This message is for FT Roundup contest that need to exchange, it will be decoded on WSJT-X:

But it can't be shown on FT8CN, I mean, the message cannot be decoded so that user who use FT8CN mistakenly on contest frequency cannot see what others replied and waste the time of contesters who replied.
I have tested with BD4VPT today, he called CQ on contest frequency, I transmitted reply message for contest to him, although the signal can be heard and shown on spectrum, but still cannot be decoded.
Hope you can deal with this problem, or, make FT8CN fit on contests.
DE BH6BEZ, GL 73!

Ft8cn can't decode any message and no waterfall appears, It was working normally, Can you tell me where the problem is?


HTML style attributes not get saved

Trying to add css atributes in text section.
Catelog->category->Text
But once saved the color attribute not get save and reflected , pls advice

@aimeos

CKEditor 5 doesn't allow custom styles in HTML tags by default. You have to customize CKEditor like described here:
https://aimeos.org/docs/latest/admin/jqadm/customize/#ckeditor


Query regarding D' formula in "4.9 Measuring LD with D'"

Thank you for sharing this wonderful resource!
I have a small query about the formula for the D' in the "4.9 Measuring LD with D'" section. It's currently shown as:
$$
D' = \frac{D}{\mathrm{max}(-p_1 (1-p_1), -q_1 (1-q_1))}, \mathrm{for\ } D < 0
$$
$$
D' = \frac{D}{\mathrm{min}(p_1 (1-p_1), q_1 (1-q_1))}, \mathrm{for\ } D > 0
$$
However, I think it might be:
$$
D' = \frac{D}{\mathrm{max}(-p_1 q_1, -(1-p_1) (1-q_1))}, \mathrm{for\ } D < 0
$$
$$
D' = \frac{D}{\mathrm{min}(p_1 (1-q_1), (1-p_1) q_1)}, \mathrm{for\ } D > 0
$$
Could you kindly verify this?
Thank you for your time and dedication.

Thanks for the catch! I must have mistyped the formula at first and propagated it throughout the module. Just fixed it - and now the LDlink and hand-calculated D' values match almost perfectly, which is a good sanity check.


Port macOS tests from CircleCI got GHA

As was done with the Linux tests, this PR adds macOS tests to our GHA matrix, but leaves them on CircleCI for now. When they run smoothly for a couple of weeks, we can remove them from CircleCI and thus completing the migration for macOS.
cc @seemethere

There are currently three distinct failures:

JPEG library version mismatch: https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081140247#step:9:1518
Insufficient resources on M1 with Python 3.10: https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081140495#step:9:498
Model output mismatches on M1: https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081138470#step:9:1300. This is already being worked on in #7130.

Failure 1. from the comment above probably stems from an environment issue:

"regular":

ld: warning: object file (/Users/runner/work/vision/vision/pytorch/vision/build/temp.macosx-10.9-x86_64-cpython-38/Users/runner/work/vision/vision/pytorch/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.o) was built for newer macOS version (12.0) than being linked (10.9)ld: warning: ld: warning: object file (/Users/runner/work/vision/vision/pytorch/vision/build/temp.macosx-10.9-x86_64-cpython-38/Users/runner/work/vision/vision/pytorch/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.o) was built for newer macOS version (12.0) than being linked (10.9)
https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081139586#step:9:298

M1:

ld: warning: object file (/Users/ec2-user/runner/_work/vision/vision/pytorch/vision/build/temp.macosx-11.1-arm64-cpython-38/Users/ec2-user/runner/_work/vision/vision/pytorch/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.o) was built for newer macOS version (12.0) than being linked (11.1)
https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081140495#step:9:286


bug(COMPONENT): The installation does not seem to work out of the box.

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
I have just installed the latest Angular and Angular material. However when I set up the theme I keep getting this error?
Also, it just seems like there are no typography styles. All this use to work on previous version when out of the box.
Here is the custom theme I am using. And the image is the result. Typography seems to work in components, but no where else.
// Custom Theming for Angular Material
// For more information: https://material.angular.io/guide/theming
@use "@angular/material" as material;

@include material.core();

$app-primary: material.define-palette(material.$purple-palette);
$app-accent: material.define-palette(material.$teal-palette, A200);
$app-warn: material.define-palette(material.$red-palette);
// extra Colors
$custom-success: material.define-palette(material.$green-palette);
$custom-danger: material.define-palette(material.$orange-palette);

$custom-theme: material.define-light-theme(
  (
    color: (
      primary: $app-primary,
      accent: $app-accent,
      warn: $app-warn,
    ),
  )
);

$my-theme: material.define-light-theme((
 color: (
    primary: $app-primary,
    accent: $app-accent,
    warn: $app-warn,
 ),
 typography: material.define-typography-config(),
 density: 0,
));

@include material.all-component-themes($my-theme);

Reproduction
Steps to reproduce:

Basic install

Expected Behavior
Just a normal start.
Actual Behavior
Themes set up not clear.
Environment

Angular: latest just installed
CDK/Material: v15 latest
Browser(s): Chrome
Operating System (e.g. Windows): Windows.

ok ... this seems to work.
@include material.all-component-typographies();
But no where in the documents to be found.


Create user 'cloud' in cloudstack-usage postinstall

Description
This PR creates user 'cloud' in cloudstack-usage postinstall script. This ensures the chown 'cloud:cloud' command (later in the same file) is always performed with no error.
Fixes: #7507

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[X] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[X] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

This PR supersedes https://github.com/apache/cloudstack/pull/7535

@blueorangutan package

@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6147

LGTM - should we do this for EL7/EL8 etc rpms as well @benj-n for consistency?

According to https://github.com/apache/cloudstack/issues/7507#issuecomment-1562443286, the centos7/8 management and usage packages already have the 'cloud' user managed in their %pre phases.

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian Build Failed (tid-6593)

@blueorangutan LLtest

@DaanHoogland a [LL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian Build Failed (tid-6596)

[LL] Trillian Build Failed (tid-6548)

tested on ubuntu20 (and for comparison on rocky8) works as expected

[LL]Trillian test result (tid-6550)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45809 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7559-t6550-kvm-centos7.zip
Smoke tests completed. 105 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_04_rvpc_privategw_static_routes
Failure
323.56
test_privategw_acl.py

test_04_rvpc_network_garbage_collector_nics
Failure
319.79
test_vpc_redundant.py

test_01_redundant_vpc_site2site_vpn
Failure
542.14
test_vpc_vpn.py

test_01_vpc_site2site_vpn_multiple_options
Error
1222.88
test_vpc_vpn.py

test_01_vpc_site2site_vpn
Failure
264.35
test_vpc_vpn.py


Updating Lines and Markers in real time

Question
Hello!
It is possible  to create and update lines and markers in
Realtime update from tick data.
Thanx!
Code example
No response

Genrally my idea is :

I have websocket stream  tick data from Binance
I have hiatorical ohlcv data in my DB
When i run python script i want chart to be shown with histprival data and new data to be updated in live with tick data and my script calcuöates ema lines , and i want to be udated emas in live too.

Tjanx

You can update lines with their update method, but markers will have to be deleted and re-created.
Louis

Thanx!
Can you show a little example of code for line update in  live data updating.
Big thanx


thank you for release code!

I got nice result from InstantID
I want to know how to swap face like this link
https://github.com/InstantID/InstantID/raw/main/assets/compare-b.png
thank you!

Successfully installed, works very well, thank you

I created a conda environment, and then followed the repo / used infer.py
For reference, here is an example environment.yml. CUDA is present on the system.
name: instantID
dependencies:
  - python = 3.11
  - pip
  # - ipykernel # optional, used for jupyter kernel discovery.
  - pip:
    - opencv-python
    - transformers
    - accelerate
    - insightface
    - diffusers
    - onnxruntime


Performance: Use the pool to collect media within albums

Following #362 and #363 I noticed that we could use the existing multiprocessing pool to gather media with albums.
The speed gain is not really obvious. On my gallery with 536 images and 46 videos, I'm having a 13% improvement (compared to actual master). This is not bad, but I'm also using a Samsung SSD 850 Pro 256GB, which can have good performance in multithreaded environment compared to HDD, or even some low end SSD.

How many processes did you use to get the 13%, I guess 2 ?
Not sure if this is worth the additional complexity ...

I used the default, which was 4 on my system.
So yes, it is really more complex. And the gain shouldn't be so obvious on system with slow randow I/O (like HDD), or even on non-cached file.
I just present this as a potential improvement for some use cases.

Same questions as the other PR, is this impacted by the Pillow changes ?

Improvements in Pillow reduced the impact of these changes. And since there are very intrusive, let's close this, and keep it for later reference for the time when everyone has at least 12-core CPU ;)

Thanks for the update!


Upgrade to Strapi v4

This PR upgrades this example repository to use v4 of Strapi.
It is dependent on https://github.com/strapi/strapi/pull/12534 being merged. Without this, media uploads will be lost when the service redeploys or restarts.
After https://github.com/strapi/strapi/pull/12534 is merged:

[ ] Bump version number of strapi to include this change
[ ] Update config/server.js to configure the public directory Strapi stores and serves static assets from as /data/public

Merging this PR and then will do a quick follow-up to update this repo to Strapi 4.1.5.


Announce Radar sponsorship

Our build fails because someone deleted their GitHub profile. 😆
I suggest we get rid of all github-profile usages
https://github.com/maplibre/maplibre.github.io/blob/efdc8eee6229fbba440f79acd4d742a6f840f101/content/news/2022-05-13-maplibre-rs-weekly.md?plain=1#L71

Our build fails because someone deleted their GitHub profile. 😆
I suggest we get rid of all github-user usages
https://github.com/maplibre/maplibre.github.io/blob/efdc8eee6229fbba440f79acd4d742a6f840f101/content/news/2022-05-13-maplibre-rs-weekly.md?plain=1#L71

@wipfli

It happened once in two years, and took few minutes to fix, so it could be an overreaction to remove all of the functioning links because of this rare event.


Simulating the Lorenz system in Matlab

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Simulating the Lorenz system in Matlab
Introduction:
The Lorenz system describes the motion of a fluid between two layers at different temperatures.  Specifically, the fluid is heated uniformly from below and cooled uniformly from above. By rising the temperature difference between the two surfaces , we observe initially a linear temperature gradient, and then the formation of the convection cells. This system uses a Lorenz Attractor which defines a 3-dimensional trajectory by the differential equation.
The Lorenz system is deterministic, which means that if you know the exact starting values of your variables then in theory you can determine their future values as they change with time. Lorenz demonstrated that if you begin this model by choosing some values for x, y, and z, and then do it again with just slightly different values, then you will quickly arrive at fundamentally different results. In real life you can never know the exact value of any physical measurement, although you can get close
Key takeaways:

Basic understanding of the Lorenz system.
Matlab code for simulating Lorenz system.
Applications of the Lorenz system.

References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good afternoon and thank you for submitting your topic suggestion. @florenceakinyi
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

🤔
@florenceakinyi
Thank you for the topic suggestion, however I believe this topic may be a bit outside of our preferred topic areas.
We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
Please feel free to suggest an alternate topic to explore. 🚀


Restructure package and add support for nullable references types

PR closed, adapt changes one by one when necessary instead


streamlit sidebar implementation

Please tell me, is there any way to somehow bring this element to the streamlit sidebar (st.sidebar)? I would be very grateful if you could tell me how to implement this

with st.sidebar:
st_audiorec()


Handling Users' Potentially Bad Network Connections and Implementing Asynchronous Saves to Models

Hi, I'm creating my application with Amplify and it has been great so far.
I have a general question on how a particular save functionality would work.
In my app, I have a Post schema that has views like this (there are more fields, but I simplified it for easy reading):
type Post @model {
  id: ID!
  views: Int!
}

Basically, when a user clicks on my post, I run a function that takes the current post that the user is viewing, save it off as a variable, add 1 to the view, and then save it again. This could be demonstrated as follows:
var newPost = post
newPost.views += 1

Amplify.DataStore.save(newPost) {
             switch $0 {
             case .success:
                     print("saved post with adding 1 new view")

             case .failure(let error):
                     print("an error has occurred")
             }
}

I'm not sure if my worries should be warranted or if Amplify handles this, but with this setup, I am worried that users with bad internet connection could hold up the newPost save. I'll give an example:

There is a post with 10 views.
Joe has bad internet connection. He logs onto the app and views the post, prompting the above code. As Amplify is trying to save the new post so that it has 11 views, many other users view the post and save the post before Joe.
Jared, Bob, and Jill all view the post and save it one by one in order. The post in the cloud now has 13 views and Joe is still trying to save his post with his new view added.
Finally, Joe's internet connection comes through and his post is saved. Only now, since Joe's App's newPost field only had 11 views, the post is now saved with 11 views.
The post went from 10 views -> 13 views -> 11 views.
The post is supposed to now have 14 views, but it only displays 11 views.

Is this something that could happen? I understand that my method of saving these posts is sort of "hackish" but I only started coding with Amplify about a month ago, so it would be great if someone could lend me a hand and point me in the right direction with possibly a better way to do this.
Thank you so much! Please let me know if you'd like me to clarify anything.

Wasn't really using my mind here. This could easily be solved by a subscription to the Model, if anyone else is thinking about this issue!

Hi @enteleca, I'm glad you're enjoying your experience so far.
Like you said, the fact that data is distributed across devices and updates can happen asynchronously, it's really up to you, the developer, to take care of the consistency of your dataset. In your case, the subscription is definitely one way of handling it.
Also, note that the DataStore backend, AppSync, has an auto-merge algorithm that tries to resolve data conflicts when multiple updates happen when offline in different devices and need to be reconciled later. You can customize that behavior if needed. You can read more about that here: https://docs.amplify.aws/lib/datastore/conflict/q/platform/ios
Let me know if that's helpful. Good luck in your project!


What PCS is being used with Lasso?

Hey @sragss @moodlezoup ,

The write-up says Lasso is using Hyrax. Hyrax is actually a scheme from this paper ->
https://eprint.iacr.org/2017/1132.pdf
The same paper introduced a polynomial commitment scheme for multilinear polynomials: Hyrax-PCS.
I am not an expert on naming, but I am told the PCS in that paper is referred to as Hyrax-PCS 😉.
Write-up:
https://github.com/a16z/Lasso/blob/master/EngineeringOverview.md

DotProductProofLog - reading the code makes sense.
But is this Hyrax or just an efficient way to commit to Poly vectors using (bullet-proof / IPA)?
I was directed to another version of Spartan when asking around about Hyrax-PCS:
https://github.com/microsoft/Spartan2/tree/hyrax_pc2/src/provider
[EDIT]
Re-read the Hyrax paper. This all makes sense now.
This issue can be removed.
Thanks!

All correct!


Create helpers for adding new colour/palette

Right now adding a new colour is very cumbersome and there are a lot of steps that one needs to remember. A lot of it could be automatised. Consider doing it.

@maurolepore @jdhoffa you shared such a helper recently for the r2dii.data package if I am correct? Where does it live and do you have any opinions on where should live the helpers solving this issue.

Thanks @jdhoffa ! This is already useful but I think that I would like to add helpers to add colours/aliases potentially. Do you think they could live in r2dii.usethis as well? Or better in the package itself?

I will investigate it @maurolepore. Thanks for your input!


Can you please update to CKEditor 4.5.1?

If not, can you please update to CKEditor 4.4.8?
The team addressed a vulnerability.
Thank you

Thanks for your remind.
I just release ckeditor_rails v4.5.1.
Have fun.


Bootstrap dependency.

First, thank you so much for sharing this and many other respositories.
Second, sorry if a messed up something here with github, because this is my first pull rest.
I would rather ask first for advice, but I was unable to contact you in other way.
In my angular project, I was able to use this directive and component module only after installing bootstrap.
Is it really necessary to install bootstrap afther installing this module?
Do you guys have the same funcionality, based on material menu component?
Many thanks!

Just figure it out that better maintain the bootstrap versions of the demo project, rather than use the lastest versions.

Hey there, thanks for opening this PR! There's no actual dependency on bootstrap, the demo project just uses it. You can customise the menu component that gets added to use it with any framework that you like 😄
It's only documented in the tests right now but I'll add a note to the readme shortly with better instructions


Example doesn't work

Fyi, the example in the README doesn't work (anymore):
https://camo.githubusercontent.com/9b750f46a1528bc5f2a65698f4ca195b85d94b7d/68747470733a2f2f6a64696c6c65656e2e6d652f696e636c756465732f696d672f62756c6d612e706e67

@a3020 - Thanks for the heads up :)


Make homebrew installation the default install technique for OSX, document

What happened (or feature request):
Installation via homebrew is really easy, and it's what people would expect. We should

add the technique to the docs
probably start maintaining https://github.com/drud/homebrew-ddev via PRs instead of just pushing updates.

Technique for installing via homebrew:
brew tap drud/ddev && brew install ddev
Upgrading:  brew upgrade ddev
What you expected to happen:
Version: Please include the output of ddev version and the project's .ddev/config.yaml.
How to reproduce this:
Anything else do we need to know:
Related source links or issues:

This PR was merged. Green light to close the issue? @rickmanelius

Shoot, there's more to be done. It seems there's parallel documentation in the docs directory. It would be nice if we figured out a way to DRY this out. The problem here is that https://github.com/drud/ddev/blob/master/docs/index.md repeats the info, and that's what goes into readthedocs.

@rfay Looks like two small doc PRs that could potentially be reviewed/approved quickly.

Redo fixed in #470


KubePersistentVolumeFillingUp duplicated

The alert is duplicated if the PV is remounted on a different server.
Full set of labels:

Label
Value

Label Alertname
KubePersistentVolumeFillingUp

Label Cluster
c-fragrant-forest-8819

Label Cluster Name
xxx

Label Endpoint
https-metrics

Label Exported Namespace
xxx

Label Instance
<IP_ADDRESS>:10250

Label Job
expose-kubelets-metrics

Label Namespace
cattle-prometheus

Label Node
aks-workers-20615988-vmss000014

Label Persistentvolumeclaim
nginx-php

Label Pod
prometheus-cluster-monitoring-0

Label Prometheus
cattle-prometheus/cluster-monitoring

Label Prometheus From
xxx

Label Service
expose-kubelets-metrics

Label Severity
critical

Label Tenant
t-ja3px4

Actual Behavior

An alert is fired for each host the PV is mounted on

Expected Behavior

Alerts are deduplicated based on PV

Potentially we can build some complex query with metrics kube_persistentvolumeclaim_info and kube_persistentvolume_info to add labels for the underlying PV and storageclass to the KubePersistentVolumeFillingUp alerts.
Note that depending on the exact situation (e.g. PVs provisioned by nfs-client-provisioner), deduplicating on the PV won't be sufficient.


respect Cache-Control policy when no expired date set?

feature? request : respect Cache-Control policy when no expired date set?
:smile_cat: 大神你好

Hi, since the client-managed cache is one of the core concept of Kingfisher, the Cache-Control from response header will not be used.


Hiding elements not working on a element with match height applied to content inside

Doing something like $( '.classname' ).hide(); Is not working when an element inside .classname is targeted by match height.
I guess this has to do with this:
// temporarily must force hidden parents visible
$hiddenParents.css('display', 'block');
Any possible workaround for this?

I think it depends on your setup, the plugin is supposed to revert any changes it applies but there may be some case where it is failing. Can you provide me with a jsfiddle that shows the issue?

Did you resolve this? I need an example if not, thanks.

I have found that items I hide reappear when the browser resizes.
I have a series of items that I need to filter dynamically. Resizing the browser removes style="display: none;" from these items.


run st2 with docker-compose, failed to connect to mongo

rabbitmq/mongo/redis are running OK, but st2 apps  are always restarting.

Operating System: Red Hat 7.7；
I tried to add a centos image to docker-compose file, ping to mongo(container name) is normal.

And I tried to add a debian image to docker-compose file, ping to mongo(container name) failed, ping ip address successed.

database st2 failed to initialize


Incorrect behaviour with component mat-icon which includes a complex translation for the value of its attribute/property/directive

Bug report
Describe the bug
The general issue is still the same as described in #115. The problem still appears if the translation for an attribute of the tag is more complex, like nested translations.
<EMAIL_ADDRESS>works fine.
<EMAIL_ADDRESS>shows error that project is missing translation keys.
To Reproduce
Steps to reproduce the behavior:

Use <mat-icon [matTooltip]="'general.labels.jumpTo' | translate:{value: 'general.goal'|translate}">open_in_new</mat-icon> on the view.
Or even more complex logic like:
<mat-icon [matTooltip]="'general.labels.jumpTo'|translate:                   { 'value': condition ? ('general.goal1'|translate) : ('general.goal2'|translate) }">open_in_new</mat-icon>
Run ngx-translate-lint -p <view_path> -l <keys_file_path>
See error: Key: 'open_in_new' doesn't exist in '<...>.json'

Expected behavior
Linter should ignore string inside <mat-icon>, even if element has complex translation logic for its attributes.

:tada: This issue has been resolved in version 1.20.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Bug]: random string custom charset

Version of the software
0.2.3
Operating system
windows 11 10 7 server 2019
Browser / Native
native
What happened?
Custom charset :<PHONE_NUMBER>abcdef    >>>   Generated string: nd4ot3qk6i9ot344eqn5y4hcdq0nhm9n
I want the string only containing the characters<PHONE_NUMBER> and abcdef
https://i.imgur.com/5hrn7Cd.png
Relevant LoliCode if needed
No response

If you want to use characters from the custom charset you have to use ?c not ?n. This is written in the documentation of the block if you read carefully.


enable --format (shortly -f) option.

I guess current "--format" option does nothing.
For the short name, -F is desirable but used already, so use -f  instead.

Took a look at the docs for --format and it seems very unlikely to contain spaces since it maps to what's typically a symbol passed to cli_name.

Actually had to pull this back out since it collides with https://github.com/chef/chef/blob/d8172e646d9fbf43e57bca5e20d0ac352ba9a66a/lib/chef/application/knife.rb#L104 and ends up popping -F summary onto the chef-solo command when running in bootstrap mode.
Will need to name this something other than --format if you want to keep this in.

Thank you for merging !!


[FEATURE] Support for annotations over the required arg constructor's parameters

At the moment there is no means of setting annotations to the parameters of the constructor generated with @RequiredArgsConstructor. The result it that the developer has to explicitly define the constructor so that the parameters are annotated. While this is fine for a small number of final fields it can be frustrating when it comes to classes with a large number of them. A typical situation is when using org.springframework.boot.context.properties.ConstructorBinding of Spring Boot where each parameter in the constructor must be annotated with @DefaultValue in order to specify fallbacks to missing properties in the resources file. Example:
@Data
@ConstructorBinding
public final class ClientProperties {
    private final Boolean enabled;
    private final Duration callTimeout;
    private final Duration connectTimeout;
    private final Duration readTimeout;
    private final Duration writeTimeout;
    private final Boolean followRedirects;

    public ClientProperties(
            @DefaultValue("true") final Boolean enabled,
            @DefaultValue("0") final Duration callTimeout,
            @DefaultValue("10s") final Duration connectTimeout,
            @DefaultValue("10s") final Duration readTimeout,
            @DefaultValue("10s") final Duration writeTimeout,
            @DefaultValue("true") final Boolean followRedirects
        ) {
            this.enabled = enabled;
            this.callTimeout = callTimeout;
            this.connectTimeout = connectTimeout;
            this.readTimeout = readTimeout;
            this.writeTimeout = writeTimeout;
            this.followRedirects = followRedirects;
            this.logging = logging;
            this.connections = connections;
        }
}

could become
@Data
@ConstructorBinding
@RequiredArgsConstructor(
    onParameters = @__({
        @__({@DefaultValue("true")}),
        @__({@DefaultValue("0")}),
        @__({@DefaultValue("10s")}),
        @__({@DefaultValue("10s")}),
        @__({@DefaultValue("10s")}),
        @__({@DefaultValue("true")})
    }) // This implies that there may be more than one annotations on each parameter
)
public final class ClientProperties {
    private final Boolean enabled;
    private final Duration callTimeout;
    private final Duration connectTimeout;
    private final Duration readTimeout;
    private final Duration writeTimeout;
    private final Boolean followRedirects;
}

You can put annotations on the individual elements and add the fully qualified annotation name to lombok.copyableAnnotations in lombok.config.
This is also called out in the documentation, https://projectlombok.org/features/constructor

Perfect, thank you for the fast response - I shouldn't have missed that!

Already implemented and achievable through lombok.config

What I found is that this works perfectly if the @Target of each annotation includes the ElementType.FIELD. In my case the annotation mentioned only includes the PARAMETER which makes the compiler to complain. I wonder if there's any way to cater for the compilation to succeed and the errors on the editor to be supressed...

Finally found a solution to this problem. THX!!!
And I have another question. I use lombok.copyableannotations to mark the annotations on the fields of the constructor. Why are the annotations of the original fields not removed? I think there should be no need to annotate both the constructor and the field at the same time, or what is the advantage of doing so?


Unmarshal relationships with null data

Greetings,
I am trying to unmarshal a payload that includes relationships with null data like this one:
{
   "data":{
      "type":"movie",
      "id":"1",
      "relationships":{
         "cast":{
            "data":[
               {
                  "type":"cast",
                  "id":"5"
               },
               {
                  "type":"cast",
                  "id":"6"
               }
            ]
         }
      }
   },
   "included":[
      {
         "type":"cast",
         "id":"5",
         "relationships":{
            "person":{
               "data":null
            }
         }
      },
      {
         "type":"cast",
         "id":"6",
         "relationships":{
            "person":{
               "data":{
                  "type":"person",
                  "id":"33"
               }
            }
         }
      },
      {
         "type":"person",
         "id":"33",
         "attributes":{
            "name":"john"
         }
      }
   ]
}

According to the JSON API spec, a resource linkage can be null for empty to-one relationships.
For convenience I've added some code that tries to unmarshal such a payload on the Go playground.
When using jsonapi.UnmarshalPayload or jsonapi.UnmarshalManyPayload to handle payload like the above, the error data is not a jsonapi representation of 'xxx' is returned.
The culprit seems to be this line which receives a nil relationships.Data from this line. A nil check fixed the problem for my case but there might be other areas in the package that are affected so I figured I should report it here.
Thank you

This is a known issue see https://github.com/google/jsonapi/pull/43


[SPARK-18092][ML] Fix column prediction type error

What changes were proposed in this pull request?
Cast column prediction's type to Double in both BinaryClassificationEvaluator and MulticlassClassificationEvaluator
How was this patch tested?
manual tests

Can one of the admins verify this patch?

cc @mengxr

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?


Create a Slack channel for each integrations on our community Slack

done, see https://meilicommunity.slack.com/archives/CP9DVS1RQ/p1609354763033400


Build on FreeBSD 12.2-RELEASE-p3 is broken

Compile log: http://paste.debian.net/plainh/5d93a9c7
Other details:
[nico@hades ~/src/bm]$ uname -apKU
FreeBSD hades.herrhotzenplotz.geek 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 GENERIC  amd64 amd64 1202000 1202000
[nico@hades ~/src/bm]$ cc --version
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
Target: x86_64-unknown-freebsd12.2
Thread model: posix
InstalledDir: /usr/bin
[nico@hades ~/src/bm]$

I have no idea what is going on with the static assert, but the stat errors seem to be related to preprocessor magic before the includes. See: https://www.freebsd.org/cgi/man.cgi?query=stat&apropos=0&sektion=2&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html
EDIT:
It does compile, if I comment out on the top of basm.c:
//#    define _DEFAULT_SOURCE
//#    define _POSIX_C_SOURCE 200112L

Interestingly enough, it doesn't even compile in a Debian Linuxulator environment:
[nico@hades ~/src/bm]$ gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[nico@hades ~/src/bm]$ uname -a
Linux hades.herrhotzenplotz.geek 3.2.0 FreeBSD 12.2-RELEASE-p3 GENERIC x86_64 GNU/Linux
[nico@hades ~/src/bm]$ cc nobuild.c -o build_looniks
[nico@hades ~/src/bm]$ gcc nobuild.c -o build_looniks
[nico@hades ~/src/bm]$ ./build_looniks tools
[INFO] mkdirs build/
[WARN] directory build/ already exists
[INFO] mkdirs build/library
[WARN] directory build/library already exists
[INFO] cc -Wall -Wextra -Wswitch-enum -Wmissing-prototypes -Wconversion -Wno-missing-braces -pedantic -fno-strict-aliasing -ggdb -std=c11 -c src/library/bm.c -o build/library/bm.o
[INFO] cc -Wall -Wextra -Wswitch-enum -Wmissing-prototypes -Wconversion -Wno-missing-braces -pedantic -fno-strict-aliasing -ggdb -std=c11 -c src/library/arena.c -o build/library/arena.o
[INFO] cc -Wall -Wextra -Wswitch-enum -Wmissing-prototypes -Wconversion -Wno-missing-braces -pedantic -fno-strict-aliasing -ggdb -std=c11 -c src/library/basm.c -o build/library/basm.o
src/library/basm.c: In function ‘path_file_exist’:
src/library/basm.c:593:32: error: ‘S_IFMT’ undeclared (first use in this function)
            ((statbuf.st_mode & S_IFMT) == S_IFREG);
                                ^~~~~~
src/library/basm.c:593:32: note: each undeclared identifier is reported only once for each function it appears in
src/library/basm.c:593:43: error: ‘S_IFREG’ undeclared (first use in this function)
            ((statbuf.st_mode & S_IFMT) == S_IFREG);
                                           ^~~~~~~
src/library/basm.c:600:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[ERRO] command exited with exit code 1
[nico@hades ~/src/bm]$

which uses glibc:
[nico@hades ~/src/bm]$ ldd build_looniks
        linux_vdso.so.1 (0x00007ffffffff000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000000801800000)
        /lib64/ld-linux-x86-64.so.2 (0x0000000001021000)
[nico@hades ~/src/bm]$ /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Debian GLIBC 2.24-11+deb9u4) stable release version 2.24, by Roland McGrath et al.
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 6.3.0 20170516.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.
[nico@hades ~/src/bm]$

After messing around in the Linuxulator, I found that:
[nico@hades ~/src/bm]$ git diff
diff --git a/src/library/basm.c b/src/library/basm.c
index a41d23b..c8d1f92 100644
--- a/src/library/basm.c
+++ b/src/library/basm.c
@@ -1,6 +1,8 @@
 #ifndef _WIN32
-#    define _DEFAULT_SOURCE
-#    define _POSIX_C_SOURCE 200112L
+#  ifdef __linux__
+#    define _XOPEN_SOURCE 700
+#    define _ISOC11_SOURCE
+#  endif
 #    include <sys/types.h>
 #    include <sys/stat.h>
 #    include <unistd.h>
[nico@hades ~/src/bm]$

works. I don't like that solution, but it seems to solve the problem, as glibc requires these magic constants to be defined.

@herrhotzenplotz I don't really care about specific constants. Whatever works in the majority of the environments

@rexim turns out, I pasted the wrong diff.
It should have been:
diff --git a/src/library/basm.c b/src/library/basm.c
index a41d23b..a513495 100644
--- a/src/library/basm.c
+++ b/src/library/basm.c
@@ -1,6 +1,8 @@
 #ifndef _WIN32
+#  ifdef __linux__
 #    define _DEFAULT_SOURCE
 #    define _POSIX_C_SOURCE 200112L
+#  endif
 #    include <sys/types.h>
 #    include <sys/stat.h>
 #    include <unistd.h>

This uses the macros as suggested by glibc and solves the problem just fine.


Add collapsability

The ability to collapse nodes should be added to the development branch. Instead of replacing with a database looking icon and "cluster", it should still be the iER with the same look and title as before.

Collapsibility is added for isPartOf relationship and inherits the attribute of its container :D


Possible to do an nph option?

Is it possible to add an nph option to enable scripts that perform their own header processing?

@jum Do you have a specific example CGI script that currently doesn't work? AFAIK you can already set headers from within CGI and they will simply be passed along.

For example the following noh-trace.cgi does work with apache but not with the caddy plugin:
#!/usr/bin/perl -w
nph-trace.cgi, output the traceroute to a host a line at at time.
@.***
use strict;
use warnings;
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
my @spammers = ("<IP_ADDRESS>");
$SIG{"PIPE"} = 'DEFAULT';
my $real_remote = $ENV{'HTTP_X_FORWARDED_FOR'};
if ($real_remote eq '') {
$real_remote = remote_host();
}
if (grep(/^@{[quotemeta($real_remote)]}$/, @spammers)) {
print header(-nph=>1);
print start_html(-title=>"traceroute/tracepath", -BGCOLOR=>"white"),
img({src=>'/img/hannet2.gif'}),
h1("traceroute/tracepath");
print 'Not available', br;
print a({href=>'/'}, 'back to the home page');
print end_html;
exit 0
}
if (param()) {
my $arg = param('addr');
print header(-nph=>1, -expires=>'+5m');
my $v6 = "";
if (param('ipv6') && param('ipv6') eq 'on') {
$v6 = "6";
}
my $cmd = "";
if (param('method') eq 'traceroute') {
$cmd = 'traceroute';
} elsif (param('method') eq 'tracepath') {
$cmd = 'tracepath';
} else {
$cmd = 'traceroute';
}
$cmd .= $v6;
print start_html(-title=>"$cmd to $arg", -BGCOLOR=>"white"),
img({src=>'/img/hannet2.gif'}),
h1("$cmd to $arg"), hr;
if ($arg !~ /^[0-9a-zA-Z.:][0-9a-zA-Z.:-]*$/) {
print "Illegal chars in argument";
} else {
$| = 1;
print "";
system("$cmd $arg 2>&1");
print "";
}
} else {
print header(-nph=>1, -expires=>'+5m');
print start_html(-title=>"traceroute/tracepath", -BGCOLOR=>"white"),
img({src=>'/img/hannet2.gif'}),
h1("traceroute/tracepath");
}
print hr, start_multipart_form;
print "IP Address: ", textfield(-name=>'addr', -size=>64, -maxlength=>255,
-default=>$real_remote);
print submit(-name=>'start', -value=>' Start '), "\n";
my $ipv6 = $real_remote =~ /:/;
print "Method: ", popup_menu(-name=>'method',
-values=>['traceroute', 'tracepath']), "\n";
print checkbox(-name=>'ipv6', -checked=>$ipv6, -label=>'use IPv6'), "\n";
print end_form;
print a({href=>'https://www.han.de/'}, 'back to the HanNet home page');
print end_html;
Am 28. August 2022 03:14:02 GMT-06:00 schrieb Andreas Schneider @.>:
@. Do you have a specific example CGI script that currently doesn't work? AFAIK you can already set headers from within CGI and they will simply be passed along.

--
Reply to this email directly or view it on GitHub:
https://github.com/aksdb/caddy-cgi/issues/7#issuecomment-1229413427
You are receiving this because you were mentioned.
Message ID: @.***>

I don't think this is feasible without a lot of effort. The whole handling of CGI scripts is done as a sub-set of HTTP, so we can't just "pass through" raw responses.
Why would this be necessary, though? The only advantage I can see is that you could write a custom HTTP <status> <text> line. You can still set the status with the Status header, though. All the other headers get passed through already as well.
Aside from that possible problem with the status header, the script you provided works for me:

The script relies on the nph- feature mostly to make the output unbuffered, so you can see the traceroute while it is happening.  As this was an exotic feature 30 years ago when this script was written, there more standard ways to do that now, I will see what I can come up with.
Am 4. September 2022 03:15:28 GMT-06:00 schrieb Andreas Schneider @.***>:

I don't think this is feasible without a lot of effort. The whole handling of CGI scripts is done as a sub-set of HTTP, so we can't just "pass through" raw responses.
Why would this be necessary, though? The only advantage I can see is that you could write a custom HTTP <status> <text> line. You can still set the status with the Status header, though. All the other headers get passed through already as well.
Aside from that possible problem with the status header, the script you provided works for me:

--
Reply to this email directly or view it on GitHub:
https://github.com/aksdb/caddy-cgi/issues/7#issuecomment-1236295356
You are receiving this because you were mentioned.
Message ID: @.***>

That's a valid use-case, I have to admit. I'll look into it once more when I have time. I don't have high hopes for it though. In Go we have control over the outgoing stream by calling Flush() whenever we need to omit the buffer ... but there is no way (that I know of) to disable the buffer completely. Maybe I can rework / extend the CGI handler to flush whenever it read something from stdout of the running executable.
No promises yet. As usual, it's very likely technically possible, but may require too much rework to be worth it.
If (!) it turns out to work the way I expect, then it would likely be an option like "unbuffered" or something. So the header handling will stay the way it is now, but all output from the script would be passed along ASAP. We'll see :slightly_smiling_face:

I have just tested it, and it works nicely. I simply removed the nph options from the perl code and added the unbuffered_output option for this particular script and I can see the trace route steps while they happen. Thank you.


Track recent Julia 0.4 changes

which fixes some bugs on 0.4. Also fix a bug and reduce allocation in formula code.

Coverage increased (+0.03%) to 73.6% when pulling 27f8b5d3bb43041e86d8250d8b09d49d72403640 on track04 into b0908a7c807f835846b49935a3f983f8cb1f2858 on master.

:cake:

Awesome work, Sean.

Definitely! Thanks, Sean.
On Thu, Mar 19, 2015 at 4:11 PM, John Myles White<EMAIL_ADDRESS>wrote:

Awesome work, Sean.
—
Reply to this email directly or view it on GitHub
https://github.com/JuliaStats/DataFrames.jl/pull/784#issuecomment-83744206
.

Thanks :smile:


Update to 0.11.00 phpstan

I think https://github.com/mglaman/phpstan-drupal/commit/eeaca723a3b78924105febf12e89a88ac458b63b fixes it.


recommend juliaup for installation?

I think this would be good. Juliaup is already the recommended way on windows, and while it's in principle still marked as beta for linux/mac, it already works smoothly there too, I've been using juliaup on linux without any problems.

solved in #28


App crashes when passing in an empty Vec<u8>

Report
I'm trying to make an app where I fire and forget a RustRequest, and rust returns DefaultResponse but also responds with a signal. I'm using that signal in a StreamBuilder to rebuild a widget, sort of like a state machine.
Seems to work fine in Web, but android apk seems to fail after a while. App will work fine for some seconds and then crash.
Also what's the best way to debug this?
Steps to Reproduce
Minimal example

Setup on freshly scaffolded flutter app with new Rust In Flutter template.
All default messages, sample functions, sample crate removed
Minimal example implemented in with_request.rs

action.proto
syntax = "proto3";
package action;

message AppAction {
  int32 screen_num = 1;
}

state.proto
syntax = "proto3";
package state;

message ScreenOne {}

message ScreenTwo {}

message AppState {
  oneof state {
    ScreenOne screen_one = 1;
    ScreenTwo screen_two = 2;
  }
}

main.dart

...

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    //Jumpstart the initial screen
    final rustRequest = RustRequest(
      resource: action.ID,
      operation: RustOperation.Read,
      message: action.AppAction(screenNum: 1).writeToBuffer(),
    );

    requestToRust(rustRequest);

    return StreamBuilder<RustSignal>(
        stream: rustBroadcaster.stream.where((rustSignal) {
      return rustSignal.resource == state.ID;
    }), builder: (context, snapshot) {
      if (!snapshot.hasData) {
        return const Center(
          child: CircularProgressIndicator(),
        );
      } else {
        var currentState = state.AppState.fromBuffer(snapshot.data!.message!);

        switch (currentState.whichState()) {

          //Screen Two

          case state.AppState_State.screenTwo:
            return Scaffold(
              body: const Center(child: Text("Screen Two")),
              floatingActionButton: FloatingActionButton(
                onPressed: () {
                  final rustRequest = RustRequest(
                    resource: action.ID,
                    operation: RustOperation.Read,
                    message: action.AppAction(screenNum: 1).writeToBuffer(),
                  );

                  requestToRust(rustRequest);
                },
                tooltip: 'Go To Screen One',
                child: const Icon(Icons.arrow_back_rounded),
              ),
            );

          //Screen One

          case state.AppState_State.screenOne:
          case state.AppState_State.notSet:
          default:
            return Scaffold(
              body: const Center(child: Text("Screen One")),
              floatingActionButton: FloatingActionButton(
                onPressed: () {
                  final rustRequest = RustRequest(
                    resource: action.ID,
                    operation: RustOperation.Read,
                    message: action.AppAction(screenNum: 2).writeToBuffer(),
                  );

                  requestToRust(rustRequest);
                },
                tooltip: 'Go To Screen Two',
                child: const Icon(Icons.arrow_forward_rounded),
              ),
            );
        }
      }
    });
  }
}

...

with_request.rs

...

    let rust_response = match rust_resource {
        // sample_functions::handle_counter_number(rust_request).await,
        messages::action::ID => {
            let message_bytes = rust_request.message.unwrap();
            let request_message =
                messages::action::AppAction::decode(message_bytes.as_slice()).unwrap();

            match request_message.screen_num {
                1 => {
                    let signal_message = AppState {
                        state: Some(ScreenOne(state::ScreenOne {  })),
                    };
                    let rust_signal = RustSignal {
                        resource: state::ID,
                        message: Some(signal_message.encode_to_vec()),
                        blob: None,
                    };
                    send_rust_signal(rust_signal);
                }
                2 => {
                    let signal_message = AppState {
                        state: Some(ScreenTwo(state::ScreenTwo {  })),
                    };
                    let rust_signal = RustSignal {
                        resource: state::ID,
                        message: Some(signal_message.encode_to_vec()),
                        blob: None,
                    };
                    send_rust_signal(rust_signal);
                }
                _ => {}
            }
            RustResponse::default()
        }
        _ => RustResponse::default(),
    };

...

System Information
❯ rustc --version
rustc 1.72.0 (5680fa18f 2023-08-23)

❯ protoc --version
libprotoc 24.2

❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel main, 3.14.0-14.0.pre.332, on Microsoft Windows [Version 10.0.22621.2283], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.3)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.82.2)
[√] Connected device (3 available)
[√] Network resources

• No issues found!

Will inspect this soon, thanks for the report :)

This looks like an issue with zero-copy feature of allo-isolate, Dart VM handler written in Rust. Removing that feature does solve this problem. I will make a PR that fixes this issue to that repository as soon as possible.
// native/hub/Cargo.toml
...
allo-isolate = { version = "0.1.19", features = [] }
...

For the time being, you can use this framework with that feature removed from allo-isolate. Thank you for your patience!

Version 4.2.1 fixed this bug, and I've also confirmed that it works well with your code. Try installing the new version and running rifs template again because the bridge folder inside hub has change a little.
I've also made a PR at allo-isolate that addresses this issue. However, RIF 4.2.1 solves this issue in our own way.

Hellow again @temeddix
The fix seems to work with the minimal example but still breaks in my real app. And I think I know why
            let response_message = messages::reset_action::ResetActionResult {};
            let empty_response = RustResponse {
                successful: true,
                message: Some(response_message.encode_to_vec()),
                blob: None,
            };

I noticed the fix you put in was to send a None instead of a Some(Vec::new()). In my case It seems since I'm sending an encoded struct that is empty, it's just an empty vec?

Yeah, you've got the right point. Right now, allo-isolate crashes when you put in an empty vector. This PR at allo-isolate that I've left solves this issue. If that PR is merged, I will update the template to use the new version of allo-isolate right away. For now, you'll have to temporarily diable the zero-copy feature. 😅

No worries. If allo-isolate gets fixed eventually workarounds are fine for now.
I'm actually just going to send a None there. This issue has made me realize I don't need the ResetActionResult type at all.

No problem :) On the other hand, I will keep this issue open until we have the new version of allo-isolate.

Now allo-isolate 0.1.20 rolled out and it completely fixes the zero-copy bug. I've confirmed that everything works as expected. It's also applied in RIF 4.4.0 template as well. 🎉

Awesome. Glad the issue got uncovered and fixed.

@temeddix
Just had the same issue.
I don't know if you changed that but the default value of RustResponse is an empty vec.
/// Response object that is sent from Rust to Dart.
#[derive(Clone)]
pub struct RustResponse {
    pub successful: bool,
    pub message: Option<Vec<u8>>,
    pub blob: Option<Vec<u8>>,
}

impl Default for RustResponse {
    /// Empty response with the successful value of false.
    fn default() -> RustResponse {
        RustResponse {
            successful: false,
            message: Some(Vec::new()),
            blob: Some(Vec::new()),
        }
    }
}

It's maybe better to have None ?

@temeddix
Just had the same issue.
I don't know if you changed that but the default value of RustResponse is an empty vec.
/// Response object that is sent from Rust to Dart.
#[derive(Clone)]
pub struct RustResponse {
    pub successful: bool,
    pub message: Option<Vec<u8>>,
    pub blob: Option<Vec<u8>>,
}

impl Default for RustResponse {
    /// Empty response with the successful value of false.
    fn default() -> RustResponse {
        RustResponse {
            successful: false,
            message: Some(Vec::new()),
            blob: Some(Vec::new()),
        }
    }
}

It's maybe better to have None ?

You're on an older version. It's been fixed already.


Open Source Status?

Hey I love the Store and I would love to see when I click on a App that it says Open Source or Closed Source. And that it shows if the App has Trackers and Logger.
And may I ask why closed Source Apps will be available in the Store? I can understand that something like 1Password is secure but in the End it is not the best in terms of Security, when the Code is not known...

https://accrescent.app/faq#open-source

Thank you. Does this filtered which is mentioned there, will have checking on Trackers and Logger too?

It can be very subjective what counts as Tracker and what not. Also having "Trackers" does not mean they are used (in GDPR violating ways). And detecting trackers does not work, you would have to rely on developers stating trackers=yes/no. So my guess is No.
I'm not involved in accrescent so this is not a No from the project.
Loggers will be included in every app.

But for example Exodus Privacy or Warden from AuroraOSS can detect Trackers. Okay. I don't think so, because when I look with Warden, then only a few show Logger, the most not.

Closing as duplicate of https://github.com/accrescent/meta/issues/25.
We don't have any plans to attempt to detect "trackers," since as @rusty-snake said, that label is very subjective and is not representative of an app's privacy practices.

Okay I understand thank you


from_pandas fails when given empty dataframe and chunksize

Describe the issue:
Attemping to initialise a dask dataframe from an empty pandas dataframe crashes if the dataframe is empty.
Minimal Complete Verifiable Example:
import pandas as pd
import dask.dataframe as dd

df = pd.DataFrame({"a": []}).pipe(dd.from_pandas, chunksize=10_000)
# throws TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Edit: (you'll need to compute or try to print out the dataframe to actually see the error)
Anything else we need to know?:
It looks like this is being thrown in like 432 of dask_expr/io/io.py:
if nrows == 0:
   locations = [0] * (npartitions + 1)

Since npartitions isn't set at this point (not sure why but seems related to the emptyy dataframe) npartitions is None, so adding to 1 throws an error.
Environment:

Dask version: 2024.7.0 (dask_expr 1.1.7)
Python version: 3.10.11
Operating System: Ubuntu
Install method (conda, pip, source): pip

Yowza that was fast @phofl! I have a specific question but it probably makes more sense to ask on the PR 😁

No worries, happy to help


[DOCS] Minor classref updates.

Correct verb tense in Array.xml
Description and code example for SceneTreeTimer and SceneTree.create_timer()

Thanks!


The lines for methods are completely broken

Problem description
Tree sitter gives wrong lines number for method declaration (both start and end lines). The lines for methods are completely broken for the give file.
Expected parse tree output (optional)

method signature
start line

Bytes not()
91

Bytes and()
100

Bytes or()
110

Bytes xor()
120

Bytes shift()
130

Bytes sshift()
169

etc
Actual parse tree output (optional)

method name
method_info

not
<Node kind=method_declaration, start_point=(77, 4), end_point=(84, 5)>

and
<Node kind=method_declaration, start_point=(86, 4), end_point=(94, 5)>

or
<Node kind=method_declaration, start_point=(96, 4), end_point=(104, 5)>

xor
<Node kind=method_declaration, start_point=(106, 4), end_point=(114, 5)>

shift
<Node kind=method_declaration, start_point=(116, 4), end_point=(153, 5)>

asNumber
<Node kind=method_declaration, start_point=(155, 4), end_point=(181, 5)>

take
<Node kind=method_declaration, start_point=(183, 4), end_point=(186, 5)>

toString
<Node kind=method_declaration, start_point=(188, 4), end_point=(191, 5)>

equals
<Node kind=method_declaration, start_point=(193, 4), end_point=(204, 5)>

hashCode
<Node kind=method_declaration, start_point=(206, 4), end_point=(209, 5)>

BytesOf.zip

Hi,
I have also faced this inconsistency, Do we have any solution to tackle this?
Thanks

Hi @suryakunala. Sorry, I don’t have any solution. I just stopped using java-tree-sitter.

Is this a tree-sitter-java or java-tree-sitter bug? If the latter, this isn't the right repo

It's tree-sitter-java bug

No, the file itself parses fine, this is a bug for probably https://github.com/serenadeai/java-tree-sitter


Fix API request validation

Issue #1130

Added test coverage for None prompt and invalid SamplingParam attribute
Fixed request validation to handle the above cases
Minor refactoring to make the test case a bit more debuggable

Fixed and formatted the code

I'm getting the following error message when running $ pytest tests/async_engine/test_api_server.py. The same test works on main.

        Convenience function.  Connect to *address* (a 2-tuple ``(host,
        port)``) and return the socket object.  Passing the optional
        *timeout* parameter will set the timeout on the socket instance
        before attempting to connect.  If no *timeout* is supplied, the
        global default timeout setting returned by :func:`socket.getdefaulttimeout`
        is used.  If *source_address* is set it must be a tuple of (host, port)
        for the socket to bind as a source address before making the connection.
        An host of '' or port 0 tells the OS to use the default.
        """

        host, port = address
        if host.startswith("["):
            host = host.strip("[]")
        err = None

        # Using the value from allowed_gai_family() in the context of getaddrinfo lets
        # us select whether to work with IPv4 DNS records, IPv6 records, or both.
        # The original create_connection function always returns all records.
        family = allowed_gai_family()

        try:
            host.encode("idna")
        except UnicodeError:
            return six.raise_from(
                LocationParseError(u"'%s', label empty or too long" % host), None
            )

        for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
            af, socktype, proto, canonname, sa = res
            sock = None
            try:
                sock = socket.socket(af, socktype, proto)

                # If provided, set socket level options before connecting.
                _set_socket_options(sock, socket_options)

                if timeout is not socket._GLOBAL_DEFAULT_TIMEOUT:
                    sock.settimeout(timeout)
                if source_address:
                    sock.bind(source_address)
>               sock.connect(sa)
E               ConnectionRefusedError: [Errno 111] Connection refused

../../anaconda3/envs/vllm/lib/python3.10/site-packages/urllib3/util/connection.py:85: ConnectionRefusedError

During handling of the above exception, another exception occurred:

self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f9e7f17a3b0>
method = 'POST', url = '/generate'
body = b'{"prompt": "Hello world", "max_tokens": 100, "temperature": 0, "ignore_eos": true}'
headers = {'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '82', 'Content-Type': 'application/json'}
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
redirect = False, assert_same_host = False
timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None
release_conn = False, chunked = False, body_pos = None
response_kw = {'decode_content': False, 'preload_content': False}
parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/generate', query=None, fragment=None)
destination_scheme = None, conn = None, release_this_conn = True
http_tunnel_required = False, err = None, clean_exit = False

    def urlopen(
        self,
        method,
        url,
        body=None,
        headers=None,
        retries=None,
        redirect=True,
        assert_same_host=True,
        timeout=_Default,
        pool_timeout=None,
        release_conn=None,
        chunked=False,
        body_pos=None,
        **response_kw
    ):
        """
        Get a connection from the pool and perform an HTTP request. This is the
        lowest level call for making a request, so you'll need to specify all
        the raw details.

        .. note::

           More commonly, it's appropriate to use a convenience method provided
           by :class:`.RequestMethods`, such as :meth:`request`.

        .. note::

           `release_conn` will only behave as expected if
           `preload_content=False` because we want to make
           `preload_content=False` the default behaviour someday soon without
           breaking backwards compatibility.

        :param method:
            HTTP request method (such as GET, POST, PUT, etc.)

        :param url:
            The URL to perform the request on.

        :param body:
            Data to send in the request body, either :class:`str`, :class:`bytes`,
            an iterable of :class:`str`/:class:`bytes`, or a file-like object.

        :param headers:
            Dictionary of custom headers to send, such as User-Agent,
            If-None-Match, etc. If None, pool headers are used. If provided,
            these headers completely replace any pool-specific headers.

        :param retries:
            Configure the number of retries to allow before raising a
            :class:`~urllib3.exceptions.MaxRetryError` exception.

            Pass ``None`` to retry until you receive a response. Pass a
            :class:`~urllib3.util.retry.Retry` object for fine-grained control
            over different types of retries.
            Pass an integer number to retry connection errors that many times,
            but no other types of errors. Pass zero to never retry.

            If ``False``, then retries are disabled and any exception is raised
            immediately. Also, instead of raising a MaxRetryError on redirects,
            the redirect response will be returned.

        :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.

        :param redirect:
            If True, automatically handle redirects (status codes 301, 302,
            303, 307, 308). Each redirect counts as a retry. Disabling retries
            will disable redirect, too.

        :param assert_same_host:
            If ``True``, will make sure that the host of the pool requests is
            consistent else will raise HostChangedError. When ``False``, you can
            use the pool on an HTTP proxy and request foreign hosts.

        :param timeout:
            If specified, overrides the default timeout for this one
            request. It may be a float (in seconds) or an instance of
            :class:`urllib3.util.Timeout`.

        :param pool_timeout:
            If set and the pool is set to block=True, then this method will
            block for ``pool_timeout`` seconds and raise EmptyPoolError if no
            connection is available within the time period.

        :param release_conn:
            If False, then the urlopen call will not release the connection
            back into the pool once a response is received (but will release if
            you read the entire contents of the response such as when
            `preload_content=True`). This is useful if you're not preloading
            the response's content immediately. You will need to call
            ``r.release_conn()`` on the response ``r`` to return the connection
            back into the pool. If None, it takes the value of
            ``response_kw.get('preload_content', True)``.

        :param chunked:
            If True, urllib3 will send the body using chunked transfer
            encoding. Otherwise, urllib3 will send the body using the standard
            content-length form. Defaults to False.

        :param int body_pos:
            Position to seek to in file-like body in the event of a retry or
            redirect. Typically this won't need to be set because urllib3 will
            auto-populate the value when needed.

        :param \\**response_kw:
            Additional parameters are passed to
            :meth:`urllib3.response.HTTPResponse.from_httplib`
        """

        parsed_url = parse_url(url)
        destination_scheme = parsed_url.scheme

        if headers is None:
            headers = self.headers

        if not isinstance(retries, Retry):
            retries = Retry.from_int(retries, redirect=redirect, default=self.retries)

        if release_conn is None:
            release_conn = response_kw.get("preload_content", True)

        # Check host
        if assert_same_host and not self.is_same_host(url):
            raise HostChangedError(self, url, retries)

        # Ensure that the URL we're connecting to is properly encoded
        if url.startswith("/"):
            url = six.ensure_str(_encode_target(url))
        else:
            url = six.ensure_str(parsed_url.url)

        conn = None

        # Track whether `conn` needs to be released before
        # returning/raising/recursing. Update this variable if necessary, and
        # leave `release_conn` constant throughout the function. That way, if
        # the function recurses, the original value of `release_conn` will be
        # passed down into the recursive call, and its value will be respected.
        #
        # See issue #651 [1] for details.
        #
        # [1] <https://github.com/urllib3/urllib3/issues/651>
        release_this_conn = release_conn

        http_tunnel_required = connection_requires_http_tunnel(
            self.proxy, self.proxy_config, destination_scheme
        )

        # Merge the proxy headers. Only done when not using HTTP CONNECT. We
        # have to copy the headers dict so we can safely change it without those
        # changes being reflected in anyone else's copy.
        if not http_tunnel_required:
            headers = headers.copy()
            headers.update(self.proxy_headers)

        # Must keep the exception bound to a separate variable or else Python 3
        # complains about UnboundLocalError.
        err = None

        # Keep track of whether we cleanly exited the except block. This
        # ensures we do proper cleanup in finally.
        clean_exit = False

        # Rewind body position, if needed.  Returns Response object.

        :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
        :param stream: (optional) Whether to stream the request content.
        :param timeout: (optional) How long to wait for the server to send
            data before giving up, as a float, or a :ref:`(connect timeout,
            read timeout) <timeouts>` tuple.
        :type timeout: float or tuple or urllib3 Timeout object
        :param verify: (optional) Either a boolean, in which case it controls whether
            we verify the server's TLS certificate, or a string, in which case it
            must be a path to a CA bundle to use
        :param cert: (optional) Any user-provided SSL certificate to be trusted.
        :param proxies: (optional) The proxies dictionary to apply to the request.
        :rtype: requests.Response
        """

        try:
            conn = self.get_connection(request.url, proxies)
        except LocationValueError as e:
            raise InvalidURL(e, request=request)

        self.cert_verify(conn, request.url, verify, cert)
        url = self.request_url(request, proxies)
        self.add_headers(
            request,
            stream=stream,
            timeout=timeout,
            verify=verify,
            cert=cert,
            proxies=proxies,
        )

        chunked = not (request.body is None or "Content-Length" in request.headers)

        if isinstance(timeout, tuple):
            try:
                connect, read = timeout
                timeout = TimeoutSauce(connect=connect, read=read)
            except ValueError:
                raise ValueError(
                    f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, "
                    f"or a single float to set both timeouts to the same value."

        We run both the server and requests in separate processes.

        We test that the server can handle incoming requests, including
        multiple requests at the same time, and that it can handle requests
        being cancelled without crashing.
         Returns Response object.

        :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
        :param stream: (optional) Whether to stream the request content.
        :param timeout: (optional) How long to wait for the server to send
            data before giving up, as a float, or a :ref:`(connect timeout,
            read timeout) <timeouts>` tuple.
        :type timeout: float or tuple or urllib3 Timeout object
        :param verify: (optional) Either a boolean, in which case it controls whether
            we verify the server's TLS certificate, or a string, in which case it
            must be a path to a CA bundle to use
        :param cert: (optional) Any user-provided SSL certificate to be trusted.
        :param proxies: (optional) The proxies dictionary to apply to the request.
        :rtype: requests.Response
        """

        try:
            conn = self.get_connection(request.url, proxies)
        except LocationValueError as e:
            raise InvalidURL(e, request=request)

        self.cert_verify(conn, request.url, verify, cert)
        url = self.request_url(request, proxies)
        self.add_headers(
            request,
            stream=stream,
            timeout=timeout,
            verify=verify,
            cert=cert,
            proxies=proxies,
        )

        chunked = not (request.body is None or "Content-Length" in request.headers)

        if isinstance(timeout, tuple):
            try:
                connect, read = timeout
                timeout = TimeoutSauce(connect=connect, read=read)
            except ValueError:
                raise ValueError(
                    f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, "
                    f"or a single float to set both timeouts to the same value."
                )
        elif isinstance(timeout, TimeoutSauce):
            pass
        else:
            timeout = TimeoutSauce(connect=timeout, read=timeout)

        try:
            resp = conn.urlopen(
                method=request.method,
                url=url,
                body=request.body,
                headers=request.headers,
                redirect=False,
                assert_same_host=False,
                preload_content=False,
                decode_content=False,
                retries=self.max_retries,
                timeout=timeout,
                chunked=chunked,
            )

        except (ProtocolError, OSError) as err:
            raise ConnectionError(err, request=request)

        except MaxRetryError as e:
            if isinstance(e.reason, ConnectTimeoutError):
                # TODO: Remove this in 3.0.0: see #2811
                if not isinstance(e.reason, NewConnectionError):
                    raise ConnectTimeout(e, request=request)

            if isinstance(e.reason, ResponseError):
                raise RetryError(e, request=request)

            if isinstance(e.reason, _ProxyError):
                raise ProxyError(e, request=request)

            if isinstance(e.reason, _SSLError):
                # This branch is for urllib3 v1.22 and later.
                raise SSLError(e, request=request)

>           raise ConnectionError(e, request=request)
E           requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /generate (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e7f17a770>: Failed to establish a new connection: [Errno 111] Connection refused'))

../../anaconda3/envs/vllm/lib/python3.10/site-packages/requests/adapters.py:519: ConnectionError
=============================== warnings summary ===============================
../../anaconda3/envs/vllm/lib/python3.10/site-packages/ray/_private/parameter.py:4
  /home/zhuohan/anaconda3/envs/vllm/lib/python3.10/site-packages/ray/_private/parameter.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
  /home/zhuohan/anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
  /home/zhuohan/anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871
  /home/zhuohan/anaconda3/envs/vllm/lib/python3.10/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../anaconda3/envs/vllm/lib/python3.10/site-packages/ray/tune/logger/tensorboardx.py:41
  /home/zhuohan/anaconda3/envs/vllm/lib/python3.10/site-packages/ray/tune/logger/tensorboardx.py:41: DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`.  (Deprecated NumPy 1.24)
    VALID_NP_HPARAMS = (np.bool8, np.float32, np.float64, np.int32, np.int64)

../../anaconda3/envs/vllm/lib/python3.10/site-packages/ray/tune/logger/tensorboardx.py:169
  /home/zhuohan/anaconda3/envs/vllm/lib/python3.10/site-packages/ray/tune/logger/tensorboardx.py:169: DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`.  (Deprecated NumPy 1.24)
    VALID_NP_HPARAMS = (np.bool8, np.float32, np.float64, np.int32, np.int64)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/async_engine/test_api_server.py::test_api_server - requests.exce...
======================== 1 failed, 11 warnings in 0.34s ========================

Reproduced the difference in test runs here, working on it.

Fixed the test case to let the test API server to run before doing the newly added tests.

@viktor-ferenczi Not sure why but when I run pytest tests/async_engine/test_api_server.py the test just hangs now.

That times runs just fine for me. Rebased the branch to current master.