Sonos frequently turning unavailable

Home Assistant release with the issue:
0.94.4
Last working Home Assistant release (if known):
This is a new install
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io on Raspberry Pi 3B
Component/platform:
https://www.home-assistant.io/components/sonos/
Description of problem:
Sonos is discovered but will turn "unavailable" after a few minutes/hours.
I've been trying Hass.io and Home Assistant for the last couple of weeks and, when I first installed it, I didn't notice anything weird about the Sonos integration (but maybe it was already like that), but once I added a RaspBee shield and deCONZ to the setup and actually started trying to implement some automation, I've noticed the Sonos component constantly shows as "unavailable".
Now it has gone as far as I can't even get it to be discovered anymore. If I remove the Sonos integration through the Web UI and reboot, it will show "Sonos" under Integrations, but without any speakers.
The speakers do work fine and I never had any issues actually using them through the Sonos app or Spotify Connect (they show 98% Wi-Fi signal on the Unifi Controller).
On the logs, I see this:
~ hassio ha logs | grep sonos
2019-06-23 11:20:59 WARNING (SyncWorker_3) [homeassistant.components.sonos.media_player] Failed to initialize '<IP_ADDRESS>'
2019-06-23 11:21:02 WARNING (SyncWorker_3) [homeassistant.components.sonos.media_player] Failed to initialize '<IP_ADDRESS>'

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
None.I haven't added anything on configuration.yaml.
Yesterday I did try to manually assign hosts to it and increase the scan_interval, but it did not help (it did show as available for a couple of hours and then went back to unavailable and can't be discovered anymore):
# Sonos
sonos:
  media_player:
    hosts:
      - <IP_ADDRESS>
      - <IP_ADDRESS>

media_player:
  - platform: sonos
    scan_interval: 30

Traceback (if applicable):

Additional information:
I did find a few posts with people having the same issue, where someone recommended increasing the scan_interval, but people reported it solved for a while and the issue came back.
Let me know if there's anything I should try to help debug this issue.

What is your network setup like, do you have an internal firewall, more than one subnet or something else advanced?

Nothing special.
I'm using a router running DD-WRT serving DHCP and a Unifi as a Wi-Fi hotspot.
Today I've been listening to music on the "Kitchen" Sonos since around 5pm, and it has been unavailable most of the day. But it did capture some moments where it was either playing something or paused (see attached).

I've removed any reference of Sonos from the configuration.yaml file and let HA discover it, and that's what it looks like during half a day, @amelchio :

It's mostly unavailable, with some moments where it is detected (I haven't been playing music this whole time, but the speakers are always available at the Sonos and Spotify apps).

I am sorry, I have no idea. It looks like a connectivity issue but it would be odd to only affect Sonos. Is your Pi wired to the network?

The Raspberry Pi is wired. Sonos is using Wi-Fi.
Now that you mention, some other devices are also showing as Unavailable (but I haven't noticed before since I use Alexa or Hue Switches to control them directly).
Also, Sonos now seems to be more showing more available than unavailable, since I removed any custom entries from configuration.yaml.
Anything else I should try?

Don't tell me that those unavailable things in the ceiling are LIFX bulbs ... since that's the other integration I maintain :-)
I think this is a network issue, not related to any Home Assistant configuration that you can try. A wired connection is a good start since that rules out a number of possible issues.
Could you have an IP conflict by any chance, i.e. another device with the same address as your Hass.io?

Nope. those on the ceiling are Tradfri and Hue bulbs. :)
No IP conflicts, and I have the Sonos speakers and the Hass.io Raspberry Pi on DHCP reservation.
I'll run an Ethernet cable to one of the Sonos and compare it through the day, to rule out any Wi-Fi issues.

It seems the issue is specific to the Sonos integration.
I've had one speaker plugged to internet and becomes unavailable just as frequently as the other one, which is connected through Wi-Fi.
All the other devices see to be always available. You can see on the screenshot below, 3 "Lamp" devices which are zigbee controlled wall outlets (and are always plugged in and connected through Wi-Fi, on the same spot as one of the Sonos).
As I mentioned, some people suggest increasing the scan_interval, but in my case it made it worse--even more frequently unavailable.
Any ideas?

The scan_interval is a red herring, it is not supported with the current Sonos integration.
If you have SSH access to Hass.io, can you try pinging a speaker for a while and confirm that basic connectivity is present?
Also please test Home Assistant 0.95 since it has some changes, though nothing that I think affects this.
The Sonos unavailability code is quite new. I will review it and see if I can find any problems.
(btw, plugging a Sonos will activate its mesh feature so all speakers go through that one speaker)

OK, at least I believe we can discard a connectivity issue.
I've kept pinging one of the Speakers and can confirm that it never timed out. On the History view, it showed as unavailable for about 8 minutes in that period (and I confirmed on Overview that it was indeed unavailable).

(I haven't updated Home Assistant yet)

That is not the IP you listed originally? I don't think the integration handles changing addresses well (but a restart of Home Assistant should fix it).

Sorry, I should have mentioned I did change the IP reservation a few days ago, right after I filled the issue, and rebooted everyone.

(by the way--the reason the other devices were showing as unavailable was simply because the wall switch was off :) so the issue really is only with sonos being unavailable).

It seems some deeper debugging is required. If you will find me on Discord we can arrange a session?

For anyone following this issue, debugging showed that static hosts: configuration actually works.
The discovery instability seems to relate to too short timeouts, I have submitted a PR to fix that.


shell broken after http-server few start/stop

OS: OpenSuSe Linux 42.1 (x86_64) kernel 4.1.26-21
npm: 3.10.3
nodejs: 4.4.5
http-server: 0.9.0

# http-server -c -1 -P http://somesite:8086 --cors
path.js:424
    var path = (i >= 0) ? arguments[i] : process.cwd();
                                                 ^

Error: ENOENT: no such file or directory, uv_cwd
    at Error (native)
    at Object.posix.resolve (path.js:424:50)
    at Function.Module._resolveLookupPaths (module.js:249:17)
    at Function.Module._resolveFilename (module.js:316:31)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/lib/node_modules/http-server/bin/http-server:7:18)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

# bash
... getcwd: cannot access parent directories ...

according to:
http://stackoverflow.com/questions/19936850/nodejs-error-node-js810-var-cwd-process-cwd
The reason maybe following.
I have start http-server from ./dist directory, that was removed and created during grunt:clean task
I hope, that this helps somebody.


Add cherry-pick script

What this PR does / why we need it:
I added a cherry-pick script. This script is stolen from https://github.com/kubernetes/kubernetes/blob/57b406a18afc54c84725488e0ca3d4b4cabd61db/hack/cherry_pick_pull.sh
You can see example PR here: https://github.com/kubeflow/training-operator/pull/2107
Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #
Checklist:

[ ] Docs included if any changes are user facing

@tenzen-y Thanks for this.
Should we try to re-use GitHub actions, like in KServe: https://github.com/kserve/kserve/pull/3653 ?

@tenzen-y Thanks for this. Should we try to re-use GitHub actions, like in KServe: kserve/kserve#3653 ?

Yeah, we could support that command. But we need this script since we sometimes face conflict.
So, we can work on automating cherry-picking by actions as a separate one. @andreyvelich WDYT?

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 35.415%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4378

Relevant Lines:
12362

💛  - Coveralls

@tenzen-y Thanks for this. Should we try to re-use GitHub actions, like in KServe: kserve/kserve#3653 ?

Yeah, we could support that command. But we need this script since we sometimes face git conflict. So, we can work on automating cherry-picking by actions as a separate one. @andreyvelich WDYT?

Doesn't this action allow us to resolve conflicts ?
Also, the Kubernetes script using patch for cherry-picks. Would be easier to just do
git cherry-pick <COMMIT_SHA>

Doesn't this action allow us to resolve conflicts ?

I don't think so. In general, Git conflict has never been automatically resolved.

Also, the Kubernetes script using patch for cherry-picks. Would be easier to just do

This script is useful because creating cherry-pick PR as well.
Actually, https://github.com/kubeflow/training-operator/pull/2107 is automatically created by this script.

@tenzen-y We discussed on the recent Kubeflow Community Call that we want to enable cherry picking plugin for prow: https://docs.prow.k8s.io/docs/components/external-plugins/cherrypicker/.
That should help us to cherry-pick PRs to the release branch.

@tenzen-y We discussed on the recent Kubeflow Community Call that we want to enable cherry picking plugin for prow: https://docs.prow.k8s.io/docs/components/external-plugins/cherrypicker/. That should help us to cherry-pick PRs to the release branch.

@andreyvelich Great to hear! I prefer to enable it in the prow. Please let me know once the cherry-picker is available.
After enabling the cherry-picker, I can close this PR.


Change TrackSimple to Track in PlayHistory object (i.e. when getting recently played tracks)

Spotify returns a fully-fledged track object here so I'm not sure why TrackSimple is used exactly, but by making this choice accessing stuff like the album that the track is from requires an extra API call which can make ratelimits quickly be hit (especially if needed for a lot of tracks at once).

Thank you for your issue @beyonik. Do you by any chance know, which endpoints are also affected that provide Track but is TrackSimple in this library ? Therefore, we might do a PR that handles all issues (also currently, there is #176 regarding Album).


Improvement question : Multi engine capabilities.

Before using all the azure tools for mobile apps (backend, this library, etc) I used other web technologies that allowed me to develop cordova apps and also webapps seamlessly. I did two projects with PouchDb and it worked great in web, android and windows phone. It just uses fallbacks in case the preferred engine is not present.
I know that JsClient uses Sqlite as backend, specially on this line:
 var db = window.sqlitePlugin.openDatabase(...
You guys know this project way more than I do (i'm just starting to read the code). So my question is
Would it be too much work to implement something like AnySql or NodeWebsql as a layer to interact with the database? Even adding engines as "plugins" and do the abstractions "by hand" would be fine.
Offline capabilities are great tool for online webapps as well, since it can be used as cache or anything.
Cheers

Tried to hook Chrome's websql but no luck since there are some statements, like PRAGMA that WebSql does not support. xP Was good try tho xD
 window.sqlitePlugin.openDatabase =  function(options, success, callback )
    {
        var db = openDatabase(options.name , '1.0', 'Offline document storage', 5*1024*1024,
        function(a) {
            console.log('le callback', a);
        });

        console.log('got db', db);

        setTimeout(function(){
            success();
        }, 100);

        return db;

    };

@andreujuanc: MobileServiceSyncContext is designed to be able to work with arbitrary store implementations. https://github.com/Azure/azure-mobile-apps-js-client/blob/2d1f6a42a6063b79e9e7deaba7c2869d07e35ad1/sdk/src/sync/MobileServiceSyncContext.js#L86 defines the initialize method that initializes the sync context with any store implementation you provide.
MobileServiceSqliteStore is a sqlite store based implementation provided out of the box, but you can implement a websql based store and use it. Because of the similarity between the cordova-sqlite-storage plugin and websql API, I'd suggest starting with MobileServiceSqliteStore, modify it to work with WebSql wherever necessary and then refactor MobileServiceSqliteStore.js to share the common parts with websql based store.

Thanks for the answer, really helped me understand the project. Since i cant invest too much time on it, these kind of answers reduces lots of time reading code to understand it deeply.


Generated code not being picked up by the analyzer in IntelliJ

There is an issue that generated code in large projects don't get picked up by the plugin. The fix is to open each fo the generated file and modify it.
Version information

IDEA IU-202.7660.26
2.11.0-260.0.dev
IU-202.7660.26, JRE 11.0.8+10-b944.34x64 JetBrains s.r.o., OS Mac OS X(x86_64) v10.15.6, screens 1920x1080, 1920x1080

@long1eu Is the issue similar to this? https://github.com/dart-lang/sdk/issues/43166

yes, think it's the same

Please close this a a duplicate of #43166, I don't have permissions.


Using in Lazarus/FPC

Hi,
it will be possible to use this bindings (OpenCV 4.5.5) in Lazarus/FPC?
I was trying to compile in Lazarus2.2.0, but without success.
Thanks

Not yet. Too much use of Delphi 10.4+ features.
I will do this work when most of OpenCV will be transferred to Delphi.


Masked input?

Is there a was to mask a IntergerEditor or DecimalEditor?

MaskedEditior does the job

I tried this [MaskedEditor(Mask = "$#.##")]

You need to include jquery.inputmask.js for it.

Are you talking about in the _LayoutHead.cshtml?

I just used the [DisplayFormat("#,##0.00")]

Hi, I have also tried to mask a String field by using MaskedEditor(Mask="(###) ### ####") in my Row.cs. I have also added the following to my cshtml file but I still cannot get the mask to work.
"< script src="~/Scripts/input-mask/jquery.inputmask.js" type="text/javascript">"
When opening the dialog I get the following:

Am I missing something?

#484


Get dockerized backend serving on linux: DevX Friendly version

In my attempts to get the dockerized backend up and running on my linux
machine, I encountered this issue where nginx did not have access to the
shared volume files. It turns out that volumes exposed from a linux host
machine's file system force containers to abide by the host system's ACL.
In an effort to preserve hot-reload functionality while running this
suite of containers, I've left the host-exposed docker volume setup
as-is and instead updated the nginx container to have the same UID and
GID for the nginx user as the host file system. These IDs can now be
modified inside the docker-compose file if needed as well.
test plan:

follow the setup instructions in the markdown file
request http://localhost:9000 once the containers are all up
Observe the behavior matches that of the staging endpoint when
queried: https://staging-api.coordinape.com/api

I tested and it works for me


Snapshot testing fails on DrawerLayoutAndroid when defaultPlatform is set to android

Is this a bug report?
Yes

Have you read the Contributing Guidelines?
Yes
Environment

Environment:
OS: macOS High Sierra 10.13.1
Node: 8.7.0
Yarn: 1.2.1
npm: 5.4.2
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.50.4 => 0.50.4
Target Platform: Android
Steps to Reproduce

(Write your steps here:)

Use the DrawerLayoutAndroid example in App.js of a newly created app
Set jest.haste.defaultPlatform: "android" package.json
yarn run test

Expected Behavior

Snapshot test would render basic example app
Actual Behavior

➜  bugreport yarn run test
yarn run v1.2.1
$ jest
 FAIL  __tests__/App.js
  ✕ renders correctly (292ms)

  ● renders correctly

    TypeError: Cannot read property 'Constants' of undefined

      at Object.<anonymous> (node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js:25:48)
      at Object.get DrawerLayoutAndroid [as DrawerLayoutAndroid] (node_modules/react-native/Libraries/react-native/react-native-implementation.js:25:34)
      at App.render (App.js:33:44)
      at finishClassComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:4205:31)
      at updateClassComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:4182:12)
      at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:4561:16)
      at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6529:16)

Here's the line causing the issue: https://github.com/facebook/react-native/blob/1e8f3b11027fe0a7514b4fc97d0798d3c64bc895/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js#L25
I believe it's because the native modules never load the constants expected, since, well, there are no native modules :) The default jest/haste setup doesn't trigger the error because DrawerLayoutAndroid just renders UnimplementedView on ios.
As for setting android as the platform, I need to for snapshot testing on our app, as we only support web and android in our app.
Reproducible Demo

Here's a snack with the example code running on android: https://snack.expo.io/Bym7626eG
If you use that App.js and the default test with a new react-native project, you can reproduce this with the following jest settings in package.json:
    "jest": {
      "haste": {
        "defaultPlatform": "android",
        "platforms": ["android", "ios", "native"],
        "providesModuleNodeModules": [
          "react-native"
        ]
      },
      "moduleNameMapper": {
        "^React$": "<rootDir>/node_modules/react"
      },
      "modulePathIgnorePatterns": [
        "<rootDir>/node_modules/react-native/Libraries/react-native/"
      ],
      "transform": {
        "^.+\\.js$": "babel-jest",
        "^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/node_modules/react-native/jest/assetFileTransformer.js"
      },
      "transformIgnorePatterns": [
        "node_modules/(?!(jest-)?react-native|react-clone-referenced-element)"
      ],
      "setupFiles": [
        "<rootDir>/node_modules/react-native/jest/setup.js"
      ],
      "testEnvironment": "node"
    }

The following jest mock can avoid this issue:
jest.mock('react-native', function() {
  const reactNative = require.requireActual('react-native')
  reactNative.UIManager.AndroidDrawerLayout = {
    Constants: {
      DrawerPosition: {
        Left: 3,
        Right: 5
      }
    }
  }

  return reactNative
})

Thanks for the mocking hint. The code example did not work for me though. Hence I came up with this, which I am happy to share in case somebody needs it.
jest.mock('DrawerLayoutAndroid', () => {
  const RealComponent = require.requireActual('DrawerLayoutAndroid')
  const React = require('React')
  class DrawerLayoutAndroid extends React.Component {
    render () {
      return React.createElement('DrawerLayoutAndroid', this.props, this.props.children)
    }
  }
  DrawerLayoutAndroid.propTypes = RealComponent.propTypes
  DrawerLayoutAndroid.positions = { Left: 3, Right: 5 }
  return DrawerLayoutAndroid
})

I just put it at the top of my App.test.js for now.


Support for Script on state tile colour

Can we get a script tile ON state colour please? It has off and loading but no on.
Useful to monitor script execution (some have delays and take a while to execute). Will mimic HASS UI.
PS. Thanks for being awesome and sharing this with the HASS community and also supporting it.

Works! Thanks.


Add a label knative.dev/crd-install to CRDs to allow installing CRDs in a separate pass.

Proposed Changes

Label CRDs so that they can be installed first with kubectl -l knative.dev/crd-install=true YAML_FILE

Release Note
- CRDs are now labelled with knative.dev/crd-install=true to allow installing without race conditions or kubectl errors.

Is there a corresponding docs change to describe how to use these labels when installing?

There will be a docs change, which may need to be back-integrated into release-0.5


How to use json_encoder for ModelConfig extra attributes

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
Hi,
After transferring to PydanticV2, I found the json_encoders in model_config is not working for extra fields in the model. However, it is working in V1.
Example Code
def trans_datetime(dt: datetime) -> datetime:
    # Test that the `add_utc_timezone` function works as expected
    return dt.isoformat()

class ConfigBaseModel(BaseModel):
    model_config = ConfigDict(frozen=True, json_encoders={datetime: trans_datetime}, extra="allow")

class TimeInfo(ConfigBaseModel):
    start_time: datetime

InstanceTime = TimeInfo(start_time = xxxx, end_time = xxxx)

# in this case, only the start time will be run json encoder

Python, Pydantic & OS Version
sing python3.11 (3.11.4)
             pydantic version: 2.7.4
        pydantic-core version: 2.18.4
          pydantic-core build: profile=release pgo=true
               python version: 3.11.4 (main, Jun 20 2023, 17:37:48) [Clang 14.0.0 (clang-14<IP_ADDRESS>)]
                     platform: macOS-14.5-arm64-i386-64bit
             related packages: mypy-1.10.0 typing_extensions-4.12.2

Hi @cute149q,
Thanks for the question. We don't offer robust support for json_encoders anymore, see the docs:
This config option is a carryover from v1.
        We originally planned to remove it in v2 but didn't have a 1:1 replacement so we are keeping it for now.
        It is still deprecated and will likely be removed in the future.

I'd recommend using a type annotation in the __pydantic_extra__ specification:
from datetime import datetime
from typing import Annotated, Dict

from pydantic import BaseModel, ConfigDict, PlainSerializer, Field

def trans_datetime(dt: datetime) -> str:
    # Test that the `add_utc_timezone` function works as expected
    return dt.isoformat()

TransDatetime = Annotated[
    datetime,
    PlainSerializer(trans_datetime, when_used='json')
]

class TimeInfo(BaseModel):
    start_time: TransDatetime

    model_config = ConfigDict(frozen=True, json_encoders={datetime: trans_datetime}, extra="allow")
    __pydantic_extra__: Dict[str, TransDatetime] = Field(init=False)

InstanceTime = TimeInfo(start_time=datetime.now(), end_time=datetime.now())
print(InstanceTime.model_dump_json())
#> {"start_time":"2024-06-18T13:00:52.991797","end_time":"2024-06-18T13:00:52.991804"}

Marking as resolved for now, as I don't think we plan to expand support for json_encoders at the moment.

Hi @cute149q,
Thanks for the question. We don't offer robust support for json_encoders anymore, see the docs:
This config option is a carryover from v1.
        We originally planned to remove it in v2 but didn't have a 1:1 replacement so we are keeping it for now.
        It is still deprecated and will likely be removed in the future.

I'd recommend using a type annotation in the __pydantic_extra__ specification:
from datetime import datetime
from typing import Annotated, Dict

from pydantic import BaseModel, ConfigDict, PlainSerializer, Field

def trans_datetime(dt: datetime) -> str:
    # Test that the `add_utc_timezone` function works as expected
    return dt.isoformat()

TransDatetime = Annotated[
    datetime,
    PlainSerializer(trans_datetime, when_used='json')
]

class TimeInfo(BaseModel):
    start_time: TransDatetime

    model_config = ConfigDict(frozen=True, json_encoders={datetime: trans_datetime}, extra="allow")
    __pydantic_extra__: Dict[str, TransDatetime] = Field(init=False)

InstanceTime = TimeInfo(start_time=datetime.now(), end_time=datetime.now())
print(InstanceTime.model_dump_json())
#> {"start_time":"2024-06-18T13:00:52.991797","end_time":"2024-06-18T13:00:52.991804"}

Marking as resolved for now, as I don't think we plan to expand support for json_encoders at the moment.

Hi @sydney-runkle , thanks for the reply. However there is an error occurred if I ran the code.
NameError: Fields must not use names with leading underscores; e.g., use 'pydantic_extra__' instead of 'pydantic_extra'.
Any idea of how to solve this error?


Update to <IP_ADDRESS>

This is with e3sm_diags 2.1.1

I will deploy this minor update once https://github.com/E3SM-Project/e3sm_diags/pull/321 is merged and a new release has been uploaded to the e3sm channel.

I won't merge this until I get the go-ahead from @golaz, @darincomeau and @vanroekel that whatever testing they do worked out okay.  But I don't think they need to approve this PR or anything.


Some problems with reimplementing the training process

I used the FaceForensics dataset to train the Latte XL-2 model. However, I found that the FVD is lower than what is reported in the paper. I want to understand the reason for this discrepancy. I carefully compared the differences in experimental settings and found that the biggest difference is the number of GPU. Due to limited computing resources, I want to know how the number of GPUs influence the results. Below are the details of my experimental settings and FVD comparison results.
Number of  GPU

Paper Reported
Ours

8 A100 80G
2 A100 80G

FVD :

Paper Reported
Ours

34.00
71.01

Here is the training log file.  I use the 220000.pt to calculate FVD.
log.txt

Here (#issue 80 ). And I also find gradient accumulation is not influence the FVD.

I know of others who have tried to retrain Latte on UCF101 to replicate the results. They trained with an 8 80G A100 GPUs for about a week and were able to get FVD results similar to those reported in the paper. I think you can find it in issues.

BTW, I see that your training speed is relatively fast. I would like to know what is your single GPU batchsize?

I use the ema model for test. And the batch size is default 5.

I guess the number of GPUs will influence the result. But i cannot have enough GPUs to verify

You can try it out with model. Also, you might be able to increase the batchsize.

I need to check tomorrow if I'm using 5.

Ok, i will test with model. It need about 5 hours. I will report it in the tomorrow too.

Sorry for late reply. I use the "model" weight to inference. The FVD decreases to 99.78. Any advices?

Did you use the FFS train split to evaluate FVD? If so, continue training and then re-evaluate the FVD.

The batch size I used was also 5 for a single GPU.

I need to check tomorrow if I'm using 5.

I think you might use a gradient checkpoint to increase the batch size of a single GPU. Here is the example (https://github.com/Vchitect/Latte/blob/9ec0fb0fbf0e2f2df754a39e77b783dc68c52443/models/latte_t2v.py#L807).

Ok, let me check it and add it to the origin file  Latte.py. And finally I confirm I should re-train the model?

Did you use the FFS train split to evaluate FVD? If so, continue training and then re-evaluate the FVD.
Yes, I use the dir is "/Data/preprocess_ffs/train/videos/"  in ffs_train.yaml. And evaluate FVD using the data from here

Did you use the FFS train split to evaluate FVD? If so, continue training and then re-evaluate the FVD.

Yes, I use the dir is "/Data/preprocess_ffs/train/videos/"  in ffs_train.yaml. And evaluate FVD using the data from here

Ok, let me check it and add it to the origin file  Latte.py. And finally I confirm I should re-train the model?

You can increase the batch size, resume the model, and continue to train.

Ok, let me check it and add it to the origin file  Latte.py. And finally I confirm I should re-train the model?

You can increase the batch size, resume the model, and continue to train.

Ok. I will be reply with result in 3-4 days in here.

Ok, let me check it and add it to the origin file  Latte.py. And finally I confirm I should re-train the model?

You can increase the batch size, resume the model, and continue to train.

Ok. I will be reply with result in 3-4 days in here.

Hi, Xin. Sorry for late reply. It required huge times to re-train. The gap between your reported in the paper decrease.  Below are the details of FVD comparison results and my experimental log.
FVD :

Paper Reported
Reimpletemtation

34.00
48.629

We also get FVD with different epoch.

Epoch
ema
model

30k
48.629
64.705

28k
52.836
-

It seems that continuing to train can further reduce FVD.
Here  is the training log file.
Other config used in default setting except local_batch_size = 20.  If I want to get closer to the FVD you mentioned in the paper, do I need to continue training and increase the learning rate?

It seems that the FVD value is still decreasing, you can continue to train.


Pulsar Admin: reduce code duplication TopicPoliciesImpl

@AnonHxy When submitting a PR, please provide doc related info in the PR description by ticking the box or labeling a PR directly, so that Bot will recognize the info and then label the PR correctly, or else Bot can not recognize the info and then label the PR with the doc-info-missing label.

/pulsarbot run-failure-checks


Problem with update prices

In google-docs i insert market prices script and do trigger on 5 min, also 3 param is 1 in function but prices don`t update((

@iLifeHack Do you have an example you could link here with edit access to anyone with the link so we can look at it and possibly fix it up?

Sorry but update is working but it very long period, i fink maybe better use CREST scripts its live update can be

are you using the cache breaker?

no

The reason the cache buster variable is there is because it will force a refresh on the data.
If you dont use it google can cache the data also and it wont auto refresh when the sheet is opened.
Try using it and see how you go.

last variable =1 but prices dont updating and with CREST script last var =1 but prices dont updating maybe wrong var?

maybe disable triggers in scripts?


onkeydown and onkeyup invalid cast

Great component, thanks for creating the JS invokes for us!
This issue should be a simple one - I haven't looked at your code to see where to change it. But I'm sure you can whip up a bug fix quickly. The onkeydown and onkeyup have invalid casts between the editor function (KeyboardEvent) and parameter type (KeyboardEventArgs).
Because of this we get a casting error...
     Unhandled exception rendering component: Unable to set property 'onkeydown' on object of type 'BlazorMonaco.Editor.StandaloneCodeEditor'.

The error was: Unable to cast object of type 'Microsoft.AspNetCore.Components.EventCallback`1[Microsoft.AspNetCore.Components.Web.KeyboardEventArgs]' to type 'Microsoft.AspNetCore.Components.EventCallback`1[BlazorMonaco.KeyboardEvent]'.

      System.InvalidOperationException: Unable to set property 'onkeydown' on object of type 'BlazorMonaco.Editor.StandaloneCodeEditor'. The error was: Unable to cast object of type 'Microsoft.AspNetCore.Components.EventCallback`1[Microsoft.AspNetCore.Components.Web.KeyboardEventArgs]' to type 'Microsoft.AspNetCore.Components.EventCallback`1[BlazorMonaco.KeyboardEvent]'.
       ---> System.InvalidCastException: Unable to cast object of type 'Microsoft.AspNetCore.Components.EventCallback`1[Microsoft.AspNetCore.Components.Web.KeyboardEventArgs]' to type 'Microsoft.AspNetCore.Components.EventCallback`1[BlazorMonaco.KeyboardEvent]'.
         at Microsoft.AspNetCore.Components.Reflection.PropertySetter.CallPropertySetter[TTarget,TValue](Action`2 setter, Object target, Object value)
         at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|3_0(Object target, PropertySetter writer, String parameterName, Object value)
         --- End of inner exception stack trace ---
         at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|3_0(Object target, PropertySetter writer, String parameterName, Object value)
         at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)
         at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.SupplyCombinedParameters(ParameterView directAndCascadingParameters)

I need to know when a key is pressed to for use in my application. Thanks again!

Oh, I see - you've created your own parameters to not use the default @onkey____ parameters.
So for anyone else in the future, while you're used to using @onkeyup, etc... Instead just use the OnKeyUp and OnKeyDown parameters that the author created. A bit different than usual use of existing parameters.
    <BlazorMonaco.Editor.StandaloneCodeEditor @ref="_tbCodeEditor"
                                              OnKeyUp="onKeyUp" />

    [JSInvokable]
    void onKeyUp(BlazorMonaco.KeyboardEvent e) {

      Console.WriteLine(e.KeyCode);
   }


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2176 ms

Resolved: Bofrost.at performance has improved in aea700e after 6 minutes.


Implement a more organized development process

Due to the growing amount of coders & amount of TopCoder challenges coming in, I feel that things are getting a little out of control. Moving forward, we should implement a standard development process. My proposal:

Merge laser-ethereum and Mythril repos. This will be done in an upcoming TopCoder challenge;
Set up the Mythril board on waffle.io with a SCRUM-like structure (if it isn't already);
Introduce user stories, sprints and stand-ups (maybe twice weekly) with the core team and someone from TopCoder. Other contributors can join voluntarily.
Bring on a deployment manager who is in charge of creating releases and driving the development process in accordance to the roadmap.

parent of #223

I would just keep on using Trello board for overall planning, using separate GitHub repos and boards there for planning related to these repos (to keep technicalities out of Trello).

What is the timeframe on that challenge? As merging the repositories would help with keeping track of issues (in waffle)
Waffle is using a kanban like setup, which is compatible with scrum (so I guess that is already done).
@birdofpreyru I agree
Good idea, with the upcoming brainstorm for laser we can start building a backlog for laser. For mythril it would be also useful to translate the roadmap into stories and tasks (preferably prioritized)
Can we maybe take on a product owner(/have somebody take up this role)? It seems like "driving the development process in accordance to the roadmap" describes that role.

I would just keep on using Trello board for overall planning, using separate GitHub repos and boards there for planning related to these repos (to keep technicalities out of Trello).

Agreed.

What is the timeframe on that challenge? As merging the repositories would help with keeping track of issues (in waffle)

The merging challenge should run this week I hope.

Can we maybe take on a product owner(/have somebody take up this role)? It seems like "driving the development process in accordance to the roadmap" describes that role.

That's probably this guy. Until we have that person, it'll probably be shared between me, Sergey and the soon-to-be-onboarded "deployment manager".

We have completed all the points listed, so I think this issue can be closed. Further improvements on the process can probably be done/discussed during sprint meetings


Enhancements to Table Plugin

I have several other enhancements I've made to the table plugin that my coworkers have liked. I'm opening this up to a discussion on whether any of the features would be good additions for everyone. A few are still WIP but most seem to be working as expected. Unfortunately, while many of them don't depend on each other, they do affect each other, so it would take a little effort for me to make them all separate PRs. I don't mind doing it, but I'd need to see which things you'd want before trying to untangle them.
Here's the list:

A row numbers column, where the numbers stay fixed even after sorting the other columns
Sticky columns, like Excel Freeze Columns  (WIP)
Two-level Column Headers, allowing you to group columns together with a higher-level header (WIP)
Truncate long text and expand when hovering

Here are some vids:
Row Number column:

Freeze Columns:

Column Grouping/Headers:
adding:
https://user-images.githubusercontent.com/70416691/144466015-9ee07130-493f-4fe7-b0a9-c22e000cce1c.mp4
deleting:
https://user-images.githubusercontent.com/70416691/144466126-822335f9-4273-48b9-a620-388edecd14b8.mp4
Truncating long cells (it's more useful when the text is really really long though):
https://user-images.githubusercontent.com/70416691/144466874-5eded8a0-dd0b-46fc-ae55-a3ae16f24117.mp4
Known issues:

row numbers + two-level column header can result in weird row number location
sticky columns currently requires sticky column widths to be manually set
sticky columns doesn't work with cell bars (background is set to white, which is overridden by cell bars)
truncate might be better as a per-column setting, rather than table-wise (I didn't know how to add to that section when I first added the feature :) )

The codebase on this repo has been moved to the main Apache Superset repo, and consequently the repo is in the process of being archived. See the Superset Improvement Proposal for details: https://github.com/apache/superset/issues/13013 . While all currently open issues and PRs will be closed, we encourage you to reopen this issue on the main repo if it is still relevant.


Update Dockerfile to allow for config overrides

Motivation and Context

Allows for an image created by the Dockerfile to be run with a configuration file that can be passed in when running the container.
Description

This PR does the following:

Adds a startup script used by the container to start the service. This script also copies any configuration passed into the container.
Modified the Dockerfile to copy configuration from the mounted configuration directory to the service's configuration directory.
Added how to run the container image with configuration at runtime for docker and podman

markdown-link-check workflow is having issues. It is marked as failing but have manually verified all 'broken' links are valid.


Drag n Drop error with React 16.5.2

Upon drag, you get error:
invariant.js:42 Uncaught Error: Unable to find node on an unmounted component.
This can be replicated here by updating sample to the version of React listed above:
https://stackblitz.com/edit/react-tag-input-1nelrc?file=index.js

Upon drag, you get error:
invariant.js:42 Uncaught Error: Unable to find node on an unmounted component.
This can be replicated here by updating sample to the version of React listed above:
https://stackblitz.com/edit/react-tag-input-1nelrc?file=index.js

I am also facing same issue

@hashamkm @sendittokeith this issue has been fixed.

Not fixed, I`m facing this issue
React: 16.8.6
React-tag-input: 6.4.0
react-dnd: 7.4.3,
react-dnd-html5-backend: 7.4.0,


How can i disable mouse event in wpf

Question: (Ask your question here)
cant disable mouse event in wpf,
ScottPlot Version: (What NuGet package are you using?)
5.0.37
I used this:
dataCurveChart.UserInputProcessor.IsEnabled = false;

but its not working, i can still interact with the plot with my mouse

A new package was published tonight.
Let me know if it doesn't work as expected!


Update the user dashboard to support content management

As described in #70 the community page functionality is moving more towards discovery / collaborations.  Since every user is now a content creator the dashboard should be main place to manage that.
So should the content creator dashboard be the user dashboard?
This ticket follows the development of the new user dashboard to support resources and goal / topic creation. (and tags / discussions?)

Decision: The actual user "dashboard" the page loaded when you click on the user icon if you are the user should stay the same with the goal of managing the users profile and preferences
This page should be a "Dashboard" along the top menu in addition to About and Community that is the new version of the CC creator panel.
Next step is to design out the "Dashboard" page.  Since all users are creators it should not need to be different based on role just show the best options to the user given the context.

Early render to work off.  Left column are filters for the middle (and the right as that will suggest based off the filters as well).
User can select multiple filters, so if they select a goal and then a tag the tag will filter within the goal.  "x"'s besides the filters will allow them to be removed. Same for text search will filter with other filters, an "x" next to the search term can remove it.

Mostly complete but out of date. New design will be implemented, closing.


commander pro with 1 analog channel and 1 digital channel

I built a 'commander pro'  with Leonardo and 2 channels but one is digital and other one is analog,
I mixed two of examples for this : nonaddressable and commander pro and removed some of fan controller codes
but most of the time my addressable rgb corsair fans don't work correctly while analog rgb fans work just fine, I think maybe I was wrong somewhere in code pls help me about it
when I say not working correctly means sometimes I get correct effect for like 5mins but after that they won't work correctly just flickering red/green! oddly trying find the pattern of it happening but can't figure it looks too random to work correctly

#include <CorsairLightingProtocol.h>
#include <FastLED.h>

#include "SimpleFanController.h"
#include "ThermistorTemperatureController.h"

#define DATA_PIN_CHANNEL_1 2

//for channel 2
#define RED_PIN 9
#define GREEN_PIN 10
#define BLUE_PIN 11

#define TEMP_SENSOR_PIN_1 A4
#define TEMP_SENSOR_PIN_2 A5

#define FAN_UPDATE_RATE 500

CorsairLightingFirmwareStorageEEPROM firmwareStorage;
CorsairLightingFirmware firmware(CORSAIR_COMMANDER_PRO, &firmwareStorage);
ThermistorTemperatureController temperatureController;
FastLEDControllerStorageEEPROM storage;
FastLEDController ledController(&storage);
SimpleFanController fanController(&temperatureController, FAN_UPDATE_RATE, EEPROM_ADDRESS + storage.getEEPROMSize());
CorsairLightingProtocolController cLP(&ledController, &temperatureController, &fanController, &firmware);
CorsairLightingProtocolHID cHID(&cLP);

CRGB ledsChannel1[96];
CRGB ledsChannel2[10];

void setup() {
         CLP::disableBuildInLEDs();
	FastLED.addLeds<WS2812B, DATA_PIN_CHANNEL_1, GRB>(ledsChannel1, 96);
         ledController.addLEDs(0, ledsChannel1, 96);

        pinMode(RED_PIN, OUTPUT);
	pinMode(GREEN_PIN, OUTPUT);
	pinMode(BLUE_PIN, OUTPUT);
  ledController.addLEDs(1, ledsChannel2, 10);
	ledController.onUpdateHook(0, []() {
		// use color of first LED of the first channel
		set4PinLEDs(ledsChannel2[0]);
	});
        temperatureController.addSensor(0, TEMP_SENSOR_PIN_1);
	temperatureController.addSensor(1, TEMP_SENSOR_PIN_2);
}

void loop() {
	cHID.update();
	if (ledController.updateLEDs()) {
		FastLED.show();
	}
}

void set4PinLEDs(const CRGB& color) {
        analogWrite(RED_PIN, color.r);
	analogWrite(GREEN_PIN, color.g);
	analogWrite(BLUE_PIN, color.b);

}

video their odd behavior
https://github.com/Legion2/CorsairLightingProtocol/assets/9435467/8e22f233-1ab7-41f0-9b5d-d5dd03f8b5db

Hi, your schematic and code looks good. Most often flickering comes from not having a common ground, bad wire connections or faulty LEDs.

it seems leonardo is faulty ... after replacing it ...it works with no issue


Simpler code

Hi there, just want to point that this code
px_v = einops.rearrange(
    torch.tensor([1, 0, 0]).repeat([patch_size, patch_size, 1]),
    "h w c -> c h w",
).unsqueeze(0)

can be made much more readable
px_v = einops.repeat(
    torch.tensor([1, 0, 0]),
    "c -> 1 c h w", h=patch_size, w=patch_size,
)

Hi @arogozhnikov ,
Indeed, thanks for the suggestion! I modified the script.


dear, how to do next?

gude@gudedeMac-Pro Inferius-master % ./inferius -d iPad4,4 -f /Users/gude/Desktop/Inferius-master/IPSW/iPad_64bit_11.4.1_15G77_Restore_custom.ipsw -r
Restoring custom IPSW
[1] Verifying custom IPSW...
[2] Checking for device in pwned DFU...
[3] Extracting bootchain...
[4] Signing bootchain...
[5] Sending bootchain...
[6] Saving SHSH blobs...
[7] Restoring...
Traceback (most recent call last):
File "/Users/gude/Desktop/Inferius-master/./inferius", line 150, in
main()
File "/Users/gude/Desktop/Inferius-master/./inferius", line 146, in main
restore_ipsw(api, buildmanifest, custom_ipsw, args.update, tmpdir)
File "/Users/gude/Desktop/Inferius-master/./inferius", line 87, in restore_ipsw
restore.restore(ipsw_path, device.baseband, updating)
File "/Users/gude/Desktop/Inferius-master/utils/restore.py", line 40, in restore
if 'Done: restoring succeeded!' not in futurerestore.stdout:
TypeError: argument of type 'NoneType' is not iterable

@m1stadev I already fixed it in my branch 4 months ago

branch

Dear，what is the problem？ And what should I do next. Thanks very much


NDS-85 Improve print function

https://nicedigital.atlassian.net/browse/NDS-85

@ediblecode hoping this is ready as well


Added Hover feature on login and registration page (added custom class)

Related Issue
Closes: #63
Added custom class for login and registration page
Updated video
https://github.com/apoorvaron/Shorty/assets/99736036/92ab7029-361e-44ac-b775-00a7b3f536b4

@sagarb2003 Take pull then create a PR or update it


Help popup

Having something like the ? popup in magit for neogit, would be really cool. I keep forgetting about keybindings that I rarely use and then I have to look them up in the documentation. Implementing this popup would simplify these steps and also makes neogit easier to learn.

Implemented in 2f84bde08a4564c95d07ded3eb9dcbb94776d5d3

That was fast :D quick heads-up though: The stash popup needs the cursor position from the status buffer to be able to work with "the stash entry under the cursor". For that purpose, I've built some kind of context to pass to the popup, which only the stash popup uses for now. You'd need to pass that context through the help popup to the stash popup for everything to work.
See:
https://github.com/TimUntersberger/neogit/blob/2f84bde08a4564c95d07ded3eb9dcbb94776d5d3/lua/neogit/status.lua#L784-L786
https://github.com/TimUntersberger/neogit/blob/2f84bde08a4564c95d07ded3eb9dcbb94776d5d3/lua/neogit/popups/stash.lua#L91-L93
https://github.com/TimUntersberger/neogit/blob/2f84bde08a4564c95d07ded3eb9dcbb94776d5d3/lua/neogit/popups/stash.lua#L46-L50
https://github.com/TimUntersberger/neogit/blob/2f84bde08a4564c95d07ded3eb9dcbb94776d5d3/lua/neogit/lib/popup/lib.lua#L197-L218


[CH-436] support columns with different nullable type when split for union

Changelog category (leave one):

Bug Fix (user-visible misbehavior in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
This pr supports that when split blocks, they may have differnt nullable types as they may come from two different steams of union.
It fix #436 .

Can one of the admins verify this patch?

The main problem here is that, the 1st block comed into ColumnBuffer could be non-nullable, but the later blocks comes with nullable, and the real final schema shoul be nullable.


2 getter impl's for same field

#[derive(Getters, CopyGetters)]
#[getset(get)]
#[cfg_attr(debug_assertions, derive(Debug))]
pub struct Rank {
    #[getset(get_copy)]
    val: RankValue,
    desc: Desc,
}

emits...
    impl Rank {
        #[inline(always)]
        fn val(&self) -> &RankValue {
            &self.val
        }
        #[inline(always)]
        fn desc(&self) -> &Desc {
            &self.desc
        }
    }
    impl Rank {
        #[inline(always)]
        fn val(&self) -> RankValue {
            self.val
        }
    }

The intention is to have all fields get by ref except for val which should get by Copy (without having to revert to specifying at the field-level for all fields).

I suggest not using struct level #[getset] attrs.


zsh syntax highlighting

It would be cool if you could provide https://github.com/zsh-users/zsh-syntax-highlighting with your fork of oh-my-zsh.

hey can you please elaborate on what this actually gives you? how do you use it?

@taybin any updates on this? thanks.

Hey, sorry. This is useful for highlighting syntax while you type.
So if you're doing a quick:
for file in ls *.c; do; cat $file; done;
the for, do, and done will have the appropriate syntax highlighting while in the terminal window.
That said, I turned it on and while it was neat, I found the colors a little annoying.


Use typings

Caught some bugs when removing the DT typings
Update dev dependencies
Use tap-spec output

Closes #29

Coverage increased (+0.008%) to 95.969% when pulling 6511be65fca6f019db2aaa83bcafa171577b10a0 on update-deps-and-use-typings into f64ded8b9ec10fa2ec90a01b5af5c8708bde3001 on master.


[REQUEST] When training a FP16 model, the ability to set some of the layers to FP32

When training a FP16 model, I wonder if it's possible to set some of the layers to FP32.
I can add .to(torch.float16) and .to(torch.float32) to do the conversion between layers.
So the process will be like:
...
x = f(x)    # x and f(x) are float16
x = x.to(torch.float32)
x = g(x)   # x and g(x) are float32
x = x.to(torch.float16)
x = f(x)   # x and f(x) are float16
...

@BlinkDL, thanks for your question. If I understand correctly, it seems there are two parts to this.
First, when you say f(x) is float16 and g(x) is float32, I believe what you mean is that the weights and bias of f are float16 and the weights and bias of g are float32. One way to achieve this that during model construction, which occurs outside deepspeed, the layers corresponding to f and g constructed with float16 and float32 respectively. Alternatively, one could take a constructed model and modify specific layer weights and biases to the desired dtypes. I think you can prototype this behavior with simple models for testing.
Second, you will need automatic or manual type conversions in both the forward and backward passes for adjacent layers of different types. Your code snippet is an example of such manual type conversions for forward pass. It is not clear to me if autograd could automatically generate the corresponding type casts for the backward pass. amp already provides some of these features, and it might be worth reading this and this.
After these two issues are addressed, we would need to make some changes in DeepSpeed, especially the zero optimizers for full support.
Hope that helps.

I can do first and second manually.
So now it's about DeepSpeed support :)

@BlinkDL, it is great to hear you have (1) and (2) working. For us to understand the required DeepSpeed support, can you share an example that already incorporates (1) and (2)? I expect it will fail in DeepSpeed. The stack trace would be a good hint of where to start the DeepSpeed support. Thanks!


Change the DD tag from env to environment

In our current implementation of this pipeline, we are already sending
the environment parameter in all of our task.
In our DD contrib, we log all the parameters that are passed to a task
as a tag. That said, the environment tag is already set in our case.
If we were to have env then we would have both tags sent to DD for
every metrics/events which duplicated the numbers of that that we
truly want.
DD is clever enough that if a tag already exists, then it won't
duplicate it, so by default we want to log the environment so that if
it doesn't exist, it will create it, else it will use the one that we
pass to the task itself.

@tpalacio @hugobast I would like to get this merged by EOD if possible, thanks!


python312Packages.tencentcloud-sdk-python: 3.0.1213 -> 3.0.1214

Diff: https://github.com/TencentCloud/tencentcloud-sdk-python/compare/refs/tags/3.0.1213...3.0.1214
Changelog: https://github.com/TencentCloud/tencentcloud-sdk-python/blob/3.0.1214/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

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

4 packages built:

python311Packages.tencentcloud-sdk-python
python311Packages.tencentcloud-sdk-python.dist
python312Packages.tencentcloud-sdk-python
python312Packages.tencentcloud-sdk-python.dist


Define initialisms on this page

[Enter feedback here]
There are many initialisms on this page that need to be defined:

RDBC
RDLS
RDGW
RDWeb
RDSH
UPD

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

ID: 200b266e-1c8e-63ef-3853-de91aebd8d04
Version Independent ID: 8884c7fe-32c7-5f10-3fb4-308b951b6b6d
Content: Remote Desktop Services architecture
Content Source: WindowsServerDocs/remote/remote-desktop-services/Desktop-hosting-logical-architecture.md
Service: windows-server
Sub-service: remote
GitHub Login: @robinharwood
Microsoft Alias: wscontent

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Use code coverage tool to generate report and upload to codecov.io

choose a coverage tool to generate report. the milvus project use "lcov" tool, we can refer: https://github.com/milvus-io/milvus/blob/master/scripts/run_cpp_codecov.sh
upload coverage report to codecov.io, we can refer: https://github.com/milvus-io/milvus/blob/master/.github/workflows/main.yaml

Done


move to using podman

Done @jtaleric give it a nod and merge please

test_uperf | Fail | 3 | 00:09:07

!!!  Couldn't read commit file !!!


How can i get current zoom and bounds of box?

How can i get current zoom and bounds of box?

If you're not controlling it, I think you would need to get it from the map itself, which is passed into events. For example
<Map onZoom={map => this.setState({ zoom: map.getZoom() })} />

You can get the current bounding box using map.getBounds()

I’ve made it in this way exactly 😊 Thanks a lot !
Wysłane z aplikacji Poczta dla Windows 10
Od: Braden Kelley
Wysłano: poniedziałek, 13 listopada 2017 21:10
Do: alex3165/react-mapbox-gl
DW: SkylinR; Author
Temat: Re: [alex3165/react-mapbox-gl] How can i get current zoom and boundsof box? (#437)
If you're not controlling it, I think you would need to get it from the map itself, which is passed into events. For example
<Map onZoom={map => this.setState({ zoom: map.getZoom() })} />
You can get the current bounding box using map.getBounds()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks @redbmk for helping 👍


Error installing plugin

This error occurs when trying to install the plugin.
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: y
Finished digital signature check. Installing... !
 !    yarn --non-interactive --mutex=file:C:\Users\<username>\AppData\Local\sfdx\yarn --cache-folder=C:\Users\<username>\AppData\Local\sfdx\yarn exited with code 1
 !    warning sfdx-wry-plugin > sinon > @sinonjs/formatio ><EMAIL_ADDRESS>This package has been deprecated in favour of @sinonjs/samsam
 !    warning sfdx-wry-plugin > @salesforce/command > @salesforce/core > jsonwebtoken ><EMAIL_ADDRESS>This version is no longer maintained. Please upgrade to the latest version.
 !    warning sfdx-wry-plugin > @salesforce/command > @salesforce/core > jsonwebtoken > joi ><EMAIL_ADDRESS>This version is no longer maintained. Please upgrade to the latest version.
 !    warning sfdx-wry-plugin > @salesforce/command > @salesforce/core > jsonwebtoken > joi ><EMAIL_ADDRESS>This version is no longer maintained. Please upgrade to the latest version.
 !    error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "^8.10.0 || >=9.10.0".
 !    error Found incompatible module
 !
Finished digital signature check. Installing... done

I am seeing the same error when installing the plugin. This started happening when I upgraded my sfdx cli version to: sfdx-cli/6.55.1-be0b3dc4c4

This issue seems to be corrected after updating to the latest versionof sfdx: sfdx cli/6.56.0-e3fd846a1f


Automate install of api server with outbit-api-install

Automate for Mac, CentOS, and Debian.

Tested on MacOSX and debian.  Now to test on CenOS.

It worked on CentOS 7.  Might work on 6 without any tweaks and might work on ubuntu if the package names are the same as debian.


README - Android SDK

README should clearly say (in first paragraph) that this is Android SDK, not Android image.

Thanks for the PR @paulvi! 🚀


External Types Library using inferred types from Zod Schema not being declared correctly

Background:
I have a TS node service that uses zod schemas for validation, and types inferred from these, ie:
export type MyType = z.infer<typeof mySchema>;

These types are then exported into a private NPM library, so I can use them across other projects making use of the TS node service.
tsc --emitDeclarationOnly

Problem:
The types, within the TS node service (where they are defined) are working correctly and as expected, however the types exported / imported from the NPM package are incorrect.
Consider the example below...
const mySchema = z.object({
  id: z.string(),
  x: z.number(),
  y: z.number(),
});

export type MyType = z.infer<typeof mySchema>;

Expected:
This is how they are being correctly inferred within the Node Service code
type MyType = {
  id: string;
  x: number;
  y: number;
}

Actual:
This is how they are being imported from the npm package within external code
type MyType = z.infer<z.ZodObject<{
  id: z.ZodString;
  x: z.ZodNumber;
  y: z.ZodNumber;
}>>

Bug:
The exported type definitions should correctly match the inferred types.

How this was solved? Its happening to me

I resolved this by installing zod as a dependency of the project using the inferred types


Saving is taking forever

Type: Bug
I disabled formatOnSave, but pressing Cmd+s will take the editor many seconds to finish saving. To the point where I cannot run unit tests effectively because the editor didn't pick up my changes in between test runs.

Can you also provide the ruby-lsp server version? Or just screenshot this panel:

Thank you. It looks like like something is erroring:
Error processing textDocument/documentLink: /Users/lan.nguyen/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/ruby-lsp-rails-0.3.11/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb:88:in initialize': wrong number of arguments (given 3, expected 5) (ArgumentError)
`
We'll look into it.

I'm a little confused by what's showing in path here:
/Users/lan.nguyen/Desktop/apm_bundle/apps/property/gems/ruby_lsp-property_app/lib/ruby_lsp/property_app/addon.rb:83

Is this is a custom addon you're using?

Ok, after doing some digging, looks like my issue is caused by the ruby-rubocop extension and not ruby-lsp. The errors in the output above are from a custom addon my org has recently started using for test code lens for minitest, and is unrelated. I resolved my issue by simply disabling ruby-rubocop for now


Import export getting only first two columns of imported excel file

I'm trying to import an excel file from admin panel import utility. however, import export is getting only first two columns of the file. here's how my excel file looks like:

here's my admin panel after the file has been imported. Please note that the value mentioned in the opening_date column is the default value provided in the model class.

I've gone through other related issues such as #741 but no working solution is provided

Same question with you! Did it solved?


Provide ARM compatible Docker Images

"For our Supply Chain Execution Project, I want to use the IDS Connector on an ARM based Raspbery Pi 4 B+ 4GB with Raspbian 32 Bit. I can't use the provided docker images. It would be good to provide some ARM images in the future."

The current project does not plan (at the moment) to prebuild arm docker images. If you need one please download the repo and build it yourself.


Cert renewal flags can create unwanted behavior if executed in wrong way

Expected Behavior
a. dapr mtls renew-certificate -k --ca-root-certificate <ca.crt> --issuer-private-key <issuer.key> --issuer-public-certificate <issuer.crt>
b. dapr mtls renew-certificate -k --private-key myprivatekey.key

The flags of the two commands should not be allowed to mix.
~restarting the control plane services in command b should not be allowed.~

Actual Behavior

if this command is executed dapr mtls renew-certificate -k --ca-root-certificate <ca.crt> --private-key private.key , then according to the current implementation it chooses to execute dapr mtls renew-certificate -k --private-key myprivatekey.key since all 3 required parameters are not found for the 1st command.

~if --restart  flag is provided with dapr mtls renew-certificate -k --private-key myprivatekey.key  then it restarts the control plane services.~

Steps to Reproduce the Problem
Run this command -
dapr mtls renew-certificate -k --ca-root-certificate <ca.crt> --private-key private.key
Notice, since it did not find all 3 certs, it is trying to generate new cert using the provided private key.

Release Note

RELEASE NOTE: FIX bug in CLI while using incorrect flags with dapr mtls renew-certificate command

closed by #947


Slight performance improvement by minor changes

Before

After

Hm....  I have tested it and it brokes ddc.vim plugin.

Hm.... I have tested it and it brokes ddc.vim plugin.

It broke ddc.vim like...? Does ddc.vim access private APIs (APIs not in mod.ts are assumed as PRIVATE)

ddc.vim registers plugin manually.  I think it does not work.
  call denops#plugin#register('ddc',
        \ denops#util#join_path(s:root_dir, 'denops', 'ddc', 'app.ts'),
        \ { 'mode': 'skip' })

@Shougo Fixed and force pushed. Could you try again?

@Shougo Fixed (and force pushed). Could you try again?

OH, it works.


Referral program modal in spanish -  missing title!

@mateodaza I think we are missing the translation fields for the referral program.
cc @MohammadPCh @MoeNick

@laurenluz  we did many things for translation:

use English phrases if we don't have the translation
use ChatGPT v4 to translate to Spanish and Catalan
prepare JSON file to natives can approve the translation
so this issue is fixed now and we show the English version if we don't have the translation. and also we translated it and waiting for approval.

@maryjaf pls again take a look

On production:


HEAD_DIM 128byte alignment check

Implementation assumption of HEAD_DIM*sizeof(DTypeKV) % 128 == 0.
Otherwise leads to incorrect output. Also there produce compilation warning:
warning #186-D: pointless comparison of unsigned integer with zero
      for (uint32_t j = 0; j < channel_size_128b_in / 8; ++j) {

PR was submitted by mistake.  Will close it.


What is the most efficient way to return the data for an activity view / RSS feed

How do fe query what changed in the last 24h and the user is allowed to see:

in application?
in SPARQL?

This issue has been inactive for a significant time, so we’re closing it for now. If it’s still relevant, feel free to reopen.


Handle partial messages in TLSProxy

Address a potential test failure when partial messages are received via Proxy socket.
(which might have happened with AppVeyor build #5370).
This is work in progress:
Some tests still fail of fragments are very short.

it happened again in an appveyor build:
https://ci.appveyor.com/project/openssl/openssl/build/master.15909

And here: https://ci.appveyor.com/project/openssl/openssl/build/master.15915
Received server packet
Packet length = 1460
Processing flight 1
 Record 1 (server -> client)
  Content type: HANDSHAKE
  Version: TLS1.2
  Length: 122
  Message type: ServerHello
  Message Length: 118
    Server Version:771
    Session ID Len:32
    Ciphersuite:4865
    Compression Method:0
    Extensions Len:46
 Record 2 (server -> client)
  Content type: CCS
  Version: TLS1.2
  Length: 1
 Record 3 (server -> client)
  Content type: APPLICATION DATA
  Version: TLS1.2
  Length: 23
  Inner content type: HANDSHAKE
  Message type: EncryptedExtensions
  Message Length: 2
    Extensions Len:0
 Record 4 (server -> client)
  Content type: APPLICATION DATA
  Version: TLS1.2
  Length: 1033
  Inner content type: HANDSHAKE
  Message type: Certificate
  Message Length: 1012
    Context:
    Certificate List Len:1008
    Certificate Len:1003
    Extensions Len:0
 Record 5 (server -> client)
  Content type: APPLICATION DATA
  Version: TLS1.2
  Length: 281 (expected), 256 (actual)
Use of uninitialized value within %record_type in concatenation (.) or string at C:\projects\openssl\util\perl/TLSProxy/Record.pm line 124.
  Inner content type:
Forwarded packet length = 1460
Received server packet
Packet length = 83
Processing flight 2
 Record 1 (server -> client)
Use of uninitialized value within %record_type in concatenation (.) or string at C:\projects\openssl\util\perl/TLSProxy/Record.pm line 89.
  Content type:
Use of uninitialized value within %tls_version in concatenation (.) or string at C:\projects\openssl\util\perl/TLSProxy/Record.pm line 90.
  Version:
  Length: 47937 (expected), 78 (actual)
  Inner content type: HANDSHAKE
Use of uninitialized value within %message_type in concatenation (.) or string at C:\projects\openssl\util\perl/TLSProxy/Message.pm line 231.
  Message type:
  Message Length: 14096662
Forwarded packet length = 83

It always happens in the AppVeyor x64 build.
Note the incomplete packet of 1460 bytes.

Here x86 was affected: https://ci.appveyor.com/project/openssl/openssl/build/master.15884

I think the difference between linux and windows is basically that
linux uses jumbo packets on the lo interface,
while windows splits the larger messages up into 1460 byte chunks.
This creates a race condition that makes ~5% of all CI builds fail.

Another failure here: https://ci.appveyor.com/project/openssl/openssl/build/master.15977

Currently this patch seems to work as long as fragments are not smaller than 30 bytes.
Windows seems to cut off TCP fragments at 1460 bytes.
The reason why test failures appear when the fragments are smaller than that,
is that in some tests the callback tries to filter/modify in-flight packets and it is no
longer transparent, that fragmentation has occurred, because I cannot tell for
sure if the current flight is over or there are still packets to come.
Well, I was able to get it a bit better, by looking at if there is a partial frame then
it is more likely that the current flight is not yet complete.  But that is not
a 100% solution, as the packet could be split at exactly a message border.
@levitte, I would be interested in your opinion, is this good enough or
is there a better way how I could find out where the current flight ended.

It happened once again: https://ci.appveyor.com/project/openssl/openssl/build/master.16045
So rebased, and removed WIP for now.

another test failure here: https://ci.appveyor.com/project/openssl/openssl/build/master.16662

Rebased, because of merge conflicts.

Merged to master, 1.1.0 did unfortunately not cherry-pick.
Will send a new PR for 1.1.0 in a moment...

backport to 1.1.0: see #5726


Expanded node with error in OE will cause other connections being made to display error

Expand a node that has an error in OE (for example, try to expand a database that's set to single_user)
Get error as expected, node is now in expanded state with error text (expected)
Make another connection for a completely different server
Connection succeeds, but an error is displayed for the original node expansion error

This seems to be a regression from 1.44 (although there amusingly we have a different bug where the database node is duplicated instead of showing the error node. But that bug at least seems to be gone)

@aasimkhan30 @cheenamalhotra Please triage for July

Fix verified in latest RC build.


Where to find the dist/glify-browser.js ?

Hello there! I was just trying to include Leaflet.glify into my leaflet map, but i cannot find the dist folder or the flify-browser.js file.

For now you have to download the repo and then build it yourself.
@robertleeplummerjr  maybe we can remove the /dist folder from the gitignore?


manuchari

Type of issue
Code doesn't work
Feedback
.......
Page URL
https://learn.microsoft.com/en-us/windows/android/wsa/
Content source URL
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/android/wsa/index.md
Author
manuchari
Document Id
31f9a801-c5b5-94e7-41b9-1b2b4a1d27de

Closing. If this is a legitimate issue, please reopen and include a description of what you mean by the code not working.


Bump postcss-nesting for node 17 compat

fixes this error I saw on my dev machine:
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "12 - 16". Got "17.8.0"
error Found incompatible module.

Thanks!


Remove agate_table from seed nodes

Feature
Remove the agate_table field from parsed nodes (seeds, in particular)
Feature description
The agate_table field has always been a kind of weird thing attached to all parsed nodes, but only really there for seeds. We can't serialize it, so it makes to_dict()/serialize() a bit funky at best, and nodes have to carry along non-serializable data (agate.Table instances). We should just load the csvs at materialization time or something like that.
Who will this benefit?
Me! This will make developing the dataclasses+jsonschema stuff so much more pleasant.

Fixed in #1568


fix spelling error in the readme

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.李括 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Data security: Enhanced Cloud Data Backup facilities

Aspect
Description

Opportunities
 De-risks local data centres and distributes backup to minimise risks associated with disaster recovery

legacy entry

Disruption: set to low as utilizing cloud storage has shown to, in most cases, be as secure if not more secure than on site storage
Impact: set to medium as it can lead to new opportunities


Fixed clipping planes crash

Essentially, the bounding volume for the tile is not yet known, so we can't check it against the clipping plane collection.
@lilleyse

Thanks for the pull request @tfili!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

Was log console.log there because this is something that we originally expected to never happen, or was it just leftover from @kring's refactor?

Talked to @tfili offline, it is okay for it to be undefined.


validateOnChange and validateOnBlur should be exposed props

Affected Components: SQForm, SQFormDialog, SQFormDialogStepper
Formik allows us to specify when we want to validate. SQForm already accepts validateOnMount. I propose one of two things.

SQForm and friends should also accept validateOnChange1 and validateOnBlur2 to allow consumers to have complete control over when validation happens.

Any extra props that SQForm and friends receive can be sent to Formik directly like we do with some of our components that wrap MUI components

I prefer option 2 for two reasons. One, so that we don't have to come back here and make changes to your code base if we want to add something or expose a thing that Formik exposes, and two to avoid having a mountain of props that people will have to sort through in documentation and what not to find what they need.

@20BBrown14 Can you describe the use case or an example of needing to disable validateOnChange and/or validateOnBlur?
These are already enabled by default.

That is true and I didn't realized that. I orginally opened this because I thought it was disabled by default and I wanted to enable it. BUT since it already is enabled there must be something else going on with my work.
To answer your question I can't think of a use case, right now, to disable to them. So we could use this issue to allow any props to be passed to formik or we could just close this and reevaluate if a need is already raised.

That is true and I didn't realized that. I orginally opened this because I thought it was disabled by default and I wanted to enable it. BUT since it already is enabled there must be something else going on with my work.
To answer your question I can't think of a use case, right now, to disable to them. So we could use this issue to allow any props to be passed to formik or we could just close this and reevaluate if a need is raised.

Gotcha.
Let's leave this issue open until you are able to identify the root cause of your issue.
We generally want to avoid the {...rest} API as much as possible. Ideally, our shared components cover the 80% use case to maintain a small easy to use props API. Create a variant component to work for the rare use case(s), the less than 20%.
Creating guard rails to our props API helps maintain consistent UI/UX. If a component is too restrictive, then discussion occurs here and we can update a components props API.
I'm not opposed to using the rest param (opening the floodgates) as long as we've exhausted all other options first.


The result that FormData.fromMap builded on 5.0.3 is different from 3.0.6.

Package
dio
Version
5.0.3
Output of flutter doctor -v
[✓] Flutter (Channel stable, 3.3.6, on macOS 13.0 22A380 darwin-arm, locale zh-Hans-CN)
    • Flutter version 3.3.6 on channel stable at /Users/jiayou/fvm/versions/3.3.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 6928314d50 (5 months ago), 2022-10-25 16:34:41 -0400
    • Engine revision 3ad69d7be3
    • Dart version 2.18.2
    • DevTools version 2.15.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

There is a different result which from FormData.fromMap() between Dio(5.0.3) and Dio(3.0.9).  The result I expected is "spec[]" : "6", but it was "spec": "6" on 5.0.3.
1. Is there any setting that I can get the the result that the same as in 3.0.9?
2. I have noticed that ListFormat.multiCompatible example is the result style I want. But I had put it in the options and nothing new happened.

Dart Version
2.18.2
Steps to Reproduce
Future<void> main(List<String> arguments) async {

  final data = {
    'key1': 'value1',
    'spec': [6],
  };

  Dio dio = Dio();

  await dio.post<Map<String, dynamic>>(
    'https://postman-echo.com/post',
    data: data,
    options: Options(
      contentType: Headers.formUrlEncodedContentType,
      method: 'post',
    )
  ).then((onValue) {
    print('===<Response>---\n$onValue');
  });

}

Run and see the result.
Expected Result
{
    "args": {},
    "data": "",
    "files": {},
    "form": {
        "key1": "value1",
        "spec[]": "6"
    },
    "headers": {
        "x-forwarded-proto": "https",
        "x-forwarded-port": "443",
        "host": "postman-echo.com",
        "x-amzn-trace-id": "Root=1-641d62d2-581890fc6c16023f47191f33",
        "content-length": "24",
        "user-agent": "Dart/2.18 (dart:io)",
        "content-type": "application/x-www-form-urlencoded",
        "accept-encoding": "gzip"
    },
    "json": {
        "key1": "value1",
        "spec[]": "6"
    },
    "url": "https://postman-echo.com/post"
}

Actual Result
{
    "args": {},
    "data": "",
    "files": {},
    "form": {
        "key1": "value1",
        "spec": "6"
    },
    "headers": {
        "x-forwarded-proto": "https",
        "x-forwarded-port": "443",
        "host": "postman-echo.com",
        "x-amzn-trace-id": "Root=1-641d62e6-6d4eb8246a594a63138a64be",
        "content-length": "18",
        "user-agent": "Dart/2.18 (dart:io)",
        "content-type": "application/x-www-form-urlencoded",
        "accept-encoding": "gzip"
    },
    "json": {
        "key1": "value1",
        "spec": "6"
    },
    "url": "https://postman-echo.com/post"
}

The  spec key/value should be "spec[]" : "6", not  "spec": "6"

cc @kuhnroyal

Hello, I had tried to run this code in the Dio 5.1.0, but the probleme seems to be still exist.
Are there any wrong steps  in this code that not return the result I expected?
Future<void> main(List<String> arguments) async {

  final data = {
    'key1': 'value1',
    'spec': [6],
  };

  Dio dio = Dio();

  await dio.post<Map<String, dynamic>>(
    'https://postman-echo.com/post',
    data: data,
    options: Options(
      contentType: Headers.formUrlEncodedContentType,
      method: 'post',
      listFormat: ListFormat.multiCompatible
    )
  ).then((onValue) {
    print('===<Response>---\n$onValue');
  });

}

The result return is
{
    "args": {},
    "data": "",
    "files": {},
    "form": {
        "key1": "value1",
        "spec": "6"
    },
    "headers": {
        "x-forwarded-proto": "https",
        "x-forwarded-port": "443",
        "host": "postman-echo.com",
        "x-amzn-trace-id": "Root=1-642241ed-7dc3857a112a771f44173ca0",
        "content-length": "18",
        "user-agent": "Dart/2.18 (dart:io)",
        "content-type": "application/x-www-form-urlencoded",
        "accept-encoding": "gzip"
    },
    "json": {
        "key1": "value1",
        "spec": "6"
    },
    "url": "https://postman-echo.com/post"
}

I want the correct result about spec is "spec[]": "6", not the "spec": "6".
Can you help me check the code? Thank you very much. @AlexV525 @kuhnroyal

cc @kuhnroyal

Yea this has nothing to do with the recent changes. This is wrong since 4.0.x

Please test with the linked PR.

Please test with the linked PR.

Thanks for your help at first.
But I modified my code in Dio5.1.0 according to your commit changes. Then, run the code below and the result was still not my expect result. Is this data I input not in a right way or something else ? Thanks a lot.
Future<void> main(List<String> arguments) async {

  final data = {
    'key1': 'value1',
    'spec': [6],
  };

  Dio dio = Dio();

  await dio.post<Map<String, dynamic>>(
    'https://postman-echo.com/post',
    data: data,
    options: Options(
      contentType: Headers.formUrlEncodedContentType,
      method: 'post',
      listFormat: ListFormat.multiCompatible
    )
  ).then((onValue) {
    print('===<Response>---\n$onValue');
  });

}

I really want the result contain "spec[]" : "6" , because my project's Dio is from 3.0.6 to 5.x.x, and the server can't resolve the data from my client-side that the result is "spec":"6".

Thanks for your help at first. But I modified my code in Dio5.1.0 according to your commit changes. Then, run the code below and the result was still not my expect result. Is this data I input not in a right way or something else ? Thanks a lot.

Please use the PR's latest commit ref as the dependency rather than copying codes so we can identify the issue better.

Thanks for your help at first. But I modified my code in Dio5.1.0 according to your commit changes. Then, run the code below and the result was still not my expect result. Is this data I input not in a right way or something else ? Thanks a lot.

Please use the PR's latest commit ref as the dependency rather than copying codes so we can identify the issue better.

Thanks for replying.
I'm using the PR's lastest commit ref as the dependency now. I tested it again and found the problem is that the listformat setting in Options not came into effect.
Correct Result
It can bring a correct result if set ListFormat.multiCompatible in FormData.
test('InFormData', () async {

    final data = {
      'key1': 'value1',
      'spec': [6],
    };

    final FormData formData = FormData.fromMap(
      data,
      ListFormat.multiCompatible
    );

    await Dio().post<Map<String, dynamic>>(
        'https://postman-echo.com/post',
        data: formData,
        options: Options(
          contentType: Headers.formUrlEncodedContentType,
          method: 'post',
          listFormat: ListFormat.multiCompatible
        )
    ).then((result) {
      print('===<Response>---\n$result');
      expect(result.toString(), contains('spec[]'));
    });

  });

Uncorrect Result
It will bring a uncorrect result if set  ListFormat.multiCompatible in Option. So I don't think the listview option setting worked.
test('InOption', () async {

    final data = {
      'key1': 'value1',
      'spec': [6],
    };

    await Dio().post<Map<String, dynamic>>(
      'https://postman-echo.com/post',
      data: data,
      options: Options(
        contentType: Headers.formUrlEncodedContentType,
        method: 'post',
        listFormat: ListFormat.multiCompatible
      )
    ).then((result) {
      print('===<Response>---\n$result');
      expect(result.toString(), contains('spec[]'));
    });

  });

Thanks for the reproducible sample. I fixed it and updated the PR. Please test again if that works for you.

Thanks for the reproducible sample. I fixed it and updated the PR. Please test again if that works for you.

Thanks a lot . The problem seems to have been solved.

The problem was even harder, in my case Dio post request always hanged when the form had special symbols needed to be encoded. I got rid of Dio, it was too complicated for my situation and fallback to simple http.  Hanging was really hard to detect, finally did wireshark.

The problem was even harder, in my case Dio post request always hanged when the form had special symbols needed to be encoded.

It would be super helpful if you can share simple special symbols with a minimal code example that can reproduce your issue, rather than digging in your production code that might makes investigation harder.


Webstorm file watchers

Hi,
Can anyone give an example how to setup golint for webstorm? (with file watchers)

Hi Semih, this question is probably better asked on go-nuts. The issue tracker is primarily for filing golint issues.


Different result when search keyword having 2 words and change order.

Describe the bug
When search keyword have 2 words and I change the order it result different result and also consider the first word in search.
To Reproduce
As shown in image if I do search keywords Planet Apes and Apes Planet  it's having different result as well as. It's not searhing for Plant or Apes it's searching for First work of keyword.

Used the sample data for testing purpose to index:
https://docs.meilisearch.com/movies.json

Hello @kalpeshtreesha!
Meilisearch behaves differently depending the order of the words in your query.
There are 3 ranking rules that take into account the position of the word in the query and the main one is words which removes the last query words if there is not enough results returned.

In your case the first query will search for Planet Apes, then Planet if there are not enough results;
where the second query will search for Apes Planet, then Apes if there are not enough results.

However! If you want to change this behavior, we recently released a prototype testable by anyone that uses docker.
To know more about what it is and how to use it please refer to the dedicated discussion.
your feedback would be of great help to know if we are going into the right direction. :pray:

I close this issue due to a lack of answers. Nothing is definitive of course, feel free to ask to re-open if needed 😊


✨ [Node SDK] helpful error messages when await is missing

What are you trying to do?
Relates to #3998.
When calling .build or .publish without awaiting the result, you get an ECONNREFUSED error. The graphql client (or some other component) should be able to catch this and write a nicer error to the user, like "Failed to connect to Dagger engine, you might need to add await to your call".
Why is this important to you?
It's easy to forget the .await call, especially as some calls (e.g all with* calls that just configure the container) do not return a promise.
How are you currently working around this?
Asking in the discord until someone points out (or I realise) that I failed to RTFM 😄

hey @phroggyy 👋
You're totally right. We are currently working on this PR: https://github.com/dagger/dagger/pull/3947 that is handling by @benjaminstrasser. You can have a look at it :)
It should be shipped very soon

@phroggyy
I am currently trying to fully understand what causes an error on your side to make sure #3947 is giving sensible feedback. Could you provide an example, which throws this error?

Hey @phroggyy ! If you're using TS, you should have something like this that let you know that await is unnecessary.

Could you provide an example where you get an error when not using an await please 🙏  ? Many thanks

Close this one. If you feel that we're missing something @phroggyy please reopen this issue


The encoding of ShapeFile field and content reading is the same

The field name is of string type. At present, utf-7 reading is used. The reading code of string type in the field value is user-defined. I wonder whether this can be unified
in DbaseReader：
（123ow）
   _dbaseColumns[i] = new DbaseField
                {
                    ColumnName = Encoding.UTF7.GetString((_br.ReadBytes(11))).Replace("\0", "").Trim()
                    //proposal: ColumnName = _fileEncoding.GetString((_br.ReadBytes(11))).Replace("\0", "").Trim()
                };

At present, this will cause me to read the field garbled，Do you want to unify the coding！

Yes, this line of code can solve my problem. The code I use here is UTF-8. I have tested it in the unit test. Modifying this line of code can solve such problems

Yes, I understand that it solves your problem but I was trying to go a bit further than that and get some better understanding of the problem, and test some other cases. But never mind, the new code still works for the existing test cases so I will just push the change.
Thanks for reporting the problem!

I read a bit about it and found out that the encoding is saved in the optional .cpg File.  So utf-8 is certainly a good default.
When a cpg File is there the encoding should be read from there.
https://gis.stackexchange.com/questions/246535/how-do-i-create-find-cpg-files-after-creating-a-shapefile-in-qgis

I am closing this one. Reading the encoding from the .cpg is a possible enhancement. But if we ever do that it could be a new issue.


build and package for Py 3.7, 3.8, 3.9

Not sure if this is the right way to do it, but this hopefully addresses #709.

I have a feeling this is going to take just a bit more work to get building / working smoothly. Let me get a 3.9 package out this week (which will include your other contributions) then see if I can work through this to produce updates packages for 3.7+ with all the changes.

the change as suggested here will create valid wheels that will install in the various versions of python, but they're unlikely to load or run correctly. Basically, the python interface is not compatible across versions, and the linked DLL name changes with each version. This change will build versioned packages, but put the same binaries in each one.
You can read more here:
https://docs.python.org/3/c-api/stable.html
I'm not sure that I can change the version that I use on the build agent on the fly, so I'm going to change around the pipeline definition to allow the version to be controlled when the pipeline is run. Then I can just trigger runs for any source-compatible versions that we continue to support, one per version. Note that this only applies to the projection, not the tool itself.

I made significant progress here:
https://github.com/microsoft/xlang/tree/benkuhn/version-enhancements
It looks like the task UsePythonVersion@0 in steps-build-projection.yml isn't running (and hasn't been for a long time, we just got lucky on versions). The conditional doesn't seem to be working, but I have confirmed the parameter is set right. Enough debugging for tonight though. I'll try to get back to this later this weekend.

@dlech I have something that seems to be working so far. It's loosely based on what you started here, but ensures that the published artifacts don't step on each other. I'm going to close out this PR, and start a fresh one from my working branch. I'll add you to that.


Increase the maximum slice block size from 32MB to 128MB (#7709)

Increased the maximum slice block size from 32MB to 128MB and added a unit test to validate blockbytes configuration behavior.

Adjusted getopt approach in config unit test to ensure it works correctly on Linux.

(cherry picked from commit b626b472cabfe22e179af2202d4f4276788f453e)

[approve ci autest]


PyPI packaging of SOLikeT

We should make SOLikeT installable via pip when we have a versioned release. This Issue will attempt to keep track of things which need to happend for that.

[x] Remove direct references in setup.cfg. See Bkoopman's comment

Make ccl an optional requirement (will not compile on Windows). More generally, could try to make as many things non-core things as possible optional requirements, so basic likelihoods can be run even if there are incompatibilities breaking obscure components that are not needed.

🤔 at the moment CCL is used in both the clusters and CrossCorrelation likelihoods. Is it likely that our constituency of users who want to unstall on windows is large(er than the one who want to do clusters and/or cross correlations)?

Might be nice for baseline likelihoods to be easily usable, e.g. for MSc or undergraduate student projects (and me of course!).
Ideally CCL might support Windows at some point of course, but not waiting on it.
But more generally, the more critical complex dependencies there are, the more likely it is likely to break/require very regular updates/become non-installable due to package compatibility conflicts (cf. Planck clik perpetual compiling problems...)


Cloudflare omptimisation corrupts MathJax?

I'm using Hugo together with MathJax using the following guide:
https://gohugo.io/content-management/mathematics/
Locally this works, but when I deploy to cloudflare pages the equations are not rendered:
https://projectit.nl/equations/
I think cloudflare optimization is doing something that breaks MathJax.
Is this a know issue?
Here is the markdown used for the equations:
\[
\begin{eqnarray}
\underset{\theta}{\operatorname{argmin}} D_{KL}[p^*(Y|X) || p(Y|X;\theta)] &=& \sum_{(x,y) \in D} p^*(y|x) \cdot \log \frac{p^*(y|x)}{p(y|x,\theta)} \\\\\\
&=&  \sum_{x \in D} p^*(y|x)[\log p^*(y|x) - \log p(y|x,\theta)] \\\\\\
&=&  \sum_{x \in D} p^*(y|x) \log p^*(y|x) - \sum_{x \in D} p^*(y|x) \log p(y|x,\theta) \\\\\\
&=& - \sum_{x \in D} p^*(y|x) \log p(y|x,\theta) \\\\\\
&=& - \sum_{(x,t) \in D} t \cdot \log p(y|x,\theta)
\end{eqnarray}
\]

\[ x^2 \]
\( y^2 \)

https://community.cloudflare.com/t/mathjax-not-working-with-cloudflare-pages/621586

Well, I don't know anything about Hugo myself, but the page that you link to above (https://projectit.nl/equations/) already has the broken delimiters and the inserted <em> tags that are preventing MathJax from working.  It looks like you added some new equations that are being processed, so I'm wondering if you used \\(...\\) and \\[...\\] for those?
I doubt that this has to do with cloud flare optimization.  It has all the hallmarks of Markdown damaging the mathematics.  The page you link to about mathematics in Hugo includes using a "passthrough extension", which would prevent Markdown from damaging the mathematics.  Are you sure that your cloudflare site has that installed and configured the same as your local installation?  Again, I'm not familiar with Hugo, so are you sending Hugo source files to cloudflare, or the final processed files that you have built?  That is, is Hugo running on cloudflare to generate your pages?  If so, I would suspect a configuration difference between your local setup and the one on cloudflare.  It does not look like an optimization issue to me.


Public access modifiers needed for a new input bar

UIScreen.defaultKeyboardHeightForCurrentOrientation is public
InputContainerView.contentHeight and InputContainerView.contentView are public

Codecov Report

Merging #551 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   60.04%   60.04%
=======================================
  Files          87       87
  Lines        3939     3939
=======================================
  Hits         2365     2365
  Misses       1574     1574

Impacted Files
Coverage Δ

...ttoAdditions/Source/Input/InputContainerView.swift
0% <ø> (ø)
:arrow_up:

ChattoAdditions/Source/Common/ScreenMetric.swift
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


ColumnLayout Vaadin8

Hi,
i receive this error on the vadim 8 application screen.
Widgetset 'com.vaadin.v7.Vaadin7WidgetSet' does not contain an implementation for org.vaadin.alump.columnlayout.ColumnLayout. Check the connector's @Connect mapping, the widgetset's GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to
is this a problem of the component ?
i added the 0.3.1 version of the component.
Thanks
Giovanni

You can not use Vaadin7WidgetSet directly, as you need to extend it with additional add-ons you are using. Create your own widgetset inheriting Vaadin7WidgetSet and add-ons you use. Then use this widgetset with your application.
This applies to all already compiled widgetset.

Thanks, i'll try


Fix number of partitions field validation issue

Now user can only input valid digits, and '-' is not allowed in positive-only inputs.

[ ] Breaking change? (if so, please describe the impact and migration path for existing application instances)

What changes did you make? (Give an overview)
Changed the condition to prevent the key-press event in number input boxes: only accept 0~9 and '-'.
Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)

[x] No need to
[x] Manually (please, describe, if necessary)
Tested in the browser manually, and now only 0~9 and '-' can be inputted into the box. At the same time, positive-only boxes (like partition count) do not accept '-' anymore.
[x] Unit checks
[x] Integration checks
[x] Covered by existing automation

Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
[x] My changes generate no new warnings (e.g. Sonar is happy)
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged

Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)

Hey, thanks for the contribution. We'll take a look.

I guess that not only ., but also , should not be allowed and not only for partitions, but for in sync replicas, time to retain data and maximum message size. They all should not accept decimal values.

I guess that not only ., but also , should not be allowed and not only for partitions, but for in sync replicas, time to retain data and maximum message size. They all should not accept decimal values.

If want to achieve the goal "they do not accept decimal values", maybe a new property allowDecimal is needed in the component Input?
By the way, the sign , has already been banned in those components.

Hello, what do I need to do next in this PR? Do I need to ask someone for review? @Haarolean

@Snowfox0618 I will check and do the QA for it today)

@Snowfox0618 thanks for the contribution!


[1.6.0] Add parse_json to the list of custom JMESPath functions

Signed-off-by: Sambhav Kothari<EMAIL_ADDRESS>

Had to merge a PR that added another filter to this section, so could you resolve this minor conflict, please?