docs: Kubernetes v1.11: need to update the method to figure out MountPropagation setting

MountPropagation no longer exists in the ps aux|grep kube for v1.11, but the feature seems enabled by detecting it directly through a testing pod with MountPropagation: Bidirectional.
e.g.
apiVersion: v1
kind: Pod
metadata:
  name: pod-mount-test
spec:
  containers:
  - image: busybox
    imagePullPolicy: IfNotPresent
    name: test
    args: ["/bin/sh", "-c", "sleep<PHONE_NUMBER>"]
    volumeMounts:
    - name: mountpoint
      mountPath: /mnt/tmp
      mountPropagation: Bidirectional
    securityContext:
      privileged: true
  volumes:
  - name: mountpoint
    hostPath:
        path: /mnt/tmp

So this no longer applied: https://github.com/rancher/longhorn/tree/v0.3-rc#check-if-your-setup-satisfied-csi-requirement
We need to figure out another way to let the user know if mount propagation is enabled.
At least we can run a test daemonset based on above the yaml. It's better to be a simple script that user can run and validate. And better to be done outside of Longhorn.

@LLParse Script merged to longhorn main repo.

Done.


How to propagate expected packet loss to OPUS encoder?

According to OPUS documentation FEC is only used by the encoder:

the feature must be enabled via the OPUS_SET_INBAND_FEC CTL(which baresip does)
the encoder must be told to expect loss via the OPUS_SET_PACKET_LOSS_PERC CTL(which baresip does not)

Does baresip have a possibility to update OPUS encoder with a number of lost packets dynamically?

It looks like OPUS_SET_PACKET_LOSS_PERC is never called at all.

I did have a good look around the implementation when I was adding multistream capability and that’s my recollection too.
In fact here’s a post I wrote up...
https://github.com/alfredh/baresip/issues/237
It would be great if this control were fully implemented but I’m not sure exactly what would need to be modified to make this work.
From my experience the current jitter buffer in baresip needs some attention.

As alfredh mentioned in #237 the work is really in the testing rather than the implementation.
I cobbled together support for OPUS_SET_PACKET_LOSS_PERC in https://github.com/snblitz/baresip
However, i did run into some stuff that confused me.  I decided, at least for now, to force the opus encoder to listen to the "my side" configuration and ignore the opus related inband configuration coming from the other side.

@snblitz , did you manage to see FEC packets in your traffic after the change?

So, I've enabled inband fec on both sides and set the expected packet loss to 50%.
Then I've simulated packet loss with tc qdisc add dev eth0 root netem loss 20%.
The sound quality is the same with and without inband fec.
Any ideas?
P.S. Frame duration is more than 10ms.

the audio encoder api looks like this:
/** Audio Codec parameters */
struct auenc_param {
	uint32_t ptime;    /**< Packet time in [ms]       */
	uint32_t bitrate;  /**< Wanted bitrate in [bit/s] */
};

struct auenc_state;
struct audec_state;
struct aucodec;

typedef int (auenc_update_h)(struct auenc_state **aesp,
			     const struct aucodec *ac,
			     struct auenc_param *prm, const char *fmtp);
typedef int (auenc_encode_h)(struct auenc_state *aes,
			     uint8_t *buf, size_t *len,
			     int fmt, const void *sampv, size_t sampc);

so there is no way to configure the expected packet loss.
it is probably better to fix this in the opus module,
and set OPUS_SET_PACKET_LOSS_PERC to a sane value (5% - 10%)
in case FEC is enabled.
you can also add an opus config item in case you want to control it.

please notice that a patch/PR is welcome if you want to create it and test it.
for now I am closing the issue, as it is not a defect.
you can also add the feature to the Roadmap if you wish.

@alfredh , thank you I see it is quite complicated.
I've added the config to opus setting packet loss to a non-zero value but I still see no difference in sound quality. So I don't think I'm ready to create a patch...


Sessions > Start: Start a session by selecting the car and the badge

@mahdibenromdhane
Could you merge with master-qa?
Thanks.

@mahdibenromdhane
Could you merge with master-qa?
Thanks.

Done :)

Violation of rule #30 ;-)
30 Keep your branch or pull request up to date with master-qa on daily basis

Violation of rule #30 ;-)
30 Keep your branch or pull request up to date with master-qa on daily basis

Done :)

@mahdibenromdhane just one remark I haven't yet checked, could you tell me if when the roaming is active you cannot select a Roaming user at all as well as the corresponding roaming badges?
This should be blocked in the backend also.
Let me know.

@mahdibenromdhane just one remark I haven't yet checked, could you tell me if when the roaming is active you cannot select a Roaming user at all as well as the corresponding roaming badges?
This should be blocked in the backend also.
Let me know.

This use case is not handled, I will fix it and push it

This use case is not handled, I will fix it and push it

Thanks a lot!
I think we have the same kind of issue but for the Filters.
Just double check in all the lists that every filters/asssignment... is filtered using the org filter value/es

This use case is not handled, I will fix it and push it

Thanks a lot!
I think we have the same kind of issue but for the Filters.
Just double check in all the lists that every filters/asssignment... is filtered using the org filter value/es

Ok i will double check the other cases.

I assigned a car to myself that was already created by someone else as my default car.
As in screenshot, the car does not appear to be assigned as a default car in the table.
After refresh, the car still is noted as not default in the list. When editing the car, the default checkbox is still checked.

@WillyLellouch Just fixed this bug few hours ago :)
Fix will be deployed tonight.

@LucasBrazi06 is it still a requirement to disable the car field if there is no car to assign ?

is it still a requirement to disable the car field if there is no car to assign ?

Yes, the car is not mandatory ;-)

Works as intended :

User field only appears for Admin, Basic users always starts session for themselves
If there is a default car or a default badge they are automatically added, if none of the cars or none of the badges are default the fields stay empty
Roaming Users cannot be selected
Car is displayed in session pop-up

Does not work as intended :

Car field is not disabled if there is no car to select
Car does not appear in the Charging Sessions list / Connector details
There is no migration task that sets the default tag when only one badge is assigned to a user or it is not running

As of last version of master-qa, I can no longer see the car I chose in the session pop-up

Disregard the previous comment it was my mistake

Car field is not disabled if there is no car to select
What do you mean by not disabled?
Normally we do not disable the field.

Car does not appear in the Charging Sessions list / Connector details
It was not required for a first release but we can add it.
Could you open an issue and assign it to Mahdi?
Thanks.

There is no migration task that sets the default tag when only one badge is assigned to a user or it is not running
Yes there is one called SetDefaultTagToUserTask.
You can check with Mahdi also if we need to run this task again.

@LucasBrazi06
For the migration task OK I missed it I'll test it
I'll also open a new issue for the second point

The migration task is also working properly.
Everything good on my end if the car field is not an issue.

Since there doesn't seem to be anymore issues here, I'll close the issue

Since there doesn't seem to be anymore issues here, I'll close the issue


Editor User assign/create user

Only can create user with reviewer role.
Only can assing user with reviewer role.

UPDATE: Editor can also create a user with section editor role, if section editor is not registered on the system.


How to download an artifact published in one pipeline to another pipeline in the same project?

Required Information
Type: Question (or Bug?)
Task Name: DownloadPipelineArtifactV2
Environment
Azure Pipelines

Agent - Hosted, windows-2019

Issue Description
I have 2 pipelines, both defined as YAML, in the same project.  The first pipeline builds and tests the code and publishes some Python source distribution and wheel archives.  The second pipeline's job is to build some HTML docs. To do that it first needs to download the wheel archive published by the latest build in the master branch of the first pipeline.
The first pipeline has this publish task in its YAML:
    - publish: $(Build.SourcesDirectory)/dist
      displayName: Publish distribution archives to Pipeline Workspace
      artifact: 'Distribution archives'

The publishing works fine and I see a whl file appear under Artifacts/Distribution  archives in the UI for a build.
The second pipeline has this step to download the whl file:
    - task: DownloadPipelineArtifact@2
      displayName: Download built distribution
      inputs:
        source: 'specific'
        project: '$(System.TeamProjectId)'
        pipeline: 288
        runVersion: 'latestFromBranch'
        runBranch: 'master'
        artifactName: 'Distribution archives'
        itemPattern: '*.whl'

I got the 288 value for pipeline from the value of definitionId in the URL for the list of builds under the first pipeline (https://dev.azure.com/<org>/<project>/_build?definitionId=288&_a=summary)
But the second pipeline fails with this error:
##[error]No builds currently exist in the build definition supplied.
What am I doing wrong please? The docs at https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-pipeline-artifact?view=azure-devops seem to be out of date (e.g., the project values are wrong in the examples).  I'm also not clear whether I should even be using this task as opposed to DownloadBuildArtifacts@0 instead, and I don't mind switching to that task if necessary.
Task logs
2020-01-15T14:45:25.3085847Z ##[debug]Evaluating condition for step: 'Download built distribution'
2020-01-15T14:45:25.3086413Z ##[debug]Evaluating: SucceededNode()
2020-01-15T14:45:25.3086488Z ##[debug]Evaluating SucceededNode:
2020-01-15T14:45:25.3086640Z ##[debug]=> True
2020-01-15T14:45:25.3086804Z ##[debug]Result: True
2020-01-15T14:45:25.3086973Z ##[section]Starting: Download built distribution
2020-01-15T14:45:25.3194004Z ==============================================================================
2020-01-15T14:45:25.3194061Z Task         : Download Pipeline Artifacts
2020-01-15T14:45:25.3194096Z Description  : Download build and pipeline artifacts
2020-01-15T14:45:25.3194828Z Version      : 2.2.0
2020-01-15T14:45:25.3194887Z Author       : Microsoft Corporation
2020-01-15T14:45:25.3194919Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-pipeline-artifact
2020-01-15T14:45:25.3194951Z ==============================================================================
2020-01-15T14:45:26.4494546Z ##[error]No builds currently exist in the build definition supplied.
2020-01-15T14:45:26.4501625Z ##[debug]Processed: ##vso[task.logissue type=error;]No builds currently exist in the build definition supplied.
2020-01-15T14:45:26.4502090Z ##[debug]Processed: ##vso[task.complete result=Failed;]
2020-01-15T14:45:26.4627917Z ##[debug]   at Agent.Plugins.PipelineArtifact.DownloadPipelineArtifactTaskV2_0_0.GetPipelineIdAsync(AgentTaskPluginExecutionContext context, String pipelineDefinition, String pipelineVersionToDownload, String project, String[] tagFilters, String branchName)
   at Agent.Plugins.PipelineArtifact.DownloadPipelineArtifactTaskV2_0_0.ProcessCommandInternalAsync(AgentTaskPluginExecutionContext context, CancellationToken token)
   at Agent.PluginHost.Program.Main(String[] args)
2020-01-15T14:45:26.4719823Z ##[section]Finishing: Download built distribution

Hi @cacti77 - please use DownloadPipelineArtifactV2 task. And it looks like you are able to download from a particular build, is this still an issue?

For future reference my YAML ended up looking equivalent to this:
    - task: DownloadPipelineArtifact@2
      displayName: Download built distribution
      inputs:
        source: 'specific'
        project: '$(System.TeamProjectId)'
        pipeline: 288
        runVersion: 'latestFromBranch'
        runBranch: 'refs/heads/master'
        allowPartiallySucceededBuilds: true
        artifactName: 'Distribution archives'
        itemPattern: '*.whl

@fadnavistanmay - yes I can do what I want now, thanks, but it's up to you/Microsoft to decide whether to use this same issue to update the docs at https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-pipeline-artifact?view=azure-devops . E.g, The YAML snippet at the top doesn't list all the arguments below it, including allowPartiallySucceededBuilds.

Thanks. I'll work on updating the docs. cc - @samuelkoppes

On a related question, is it possible to use the same strategy to download an artifact produced by a different project but within the same organization?

On a related question, is it possible to use the same strategy to download an artifact produced by a different project but within the same organization?

Yes, just change the project Id in the yaml above.
You can use az devops command line to list the project ids in your Azure DevOps organisation.

On a related question, is it possible to use the same strategy to download an artifact produced by a different project but within the same organization?

Yes, just change the project Id in the yaml above.
You can use az devops command line to list the project ids in your Azure DevOps organisation.

Hi!
Is there any way to download an artefact published in another organisation, but under the same Azure Active Directory?
Thanks!


Lab5 - Stringer

Fixes #250
Review of colleague's PR #
Changes proposed in this PR:

Add fmt.stringer functionality
Test fmt.stringer implementation

Codecov Report

Merging #251 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #251   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          11     12    +1
  Lines         174    178    +4
=====================================
+ Hits          174    178    +4

Impacted Files
Coverage Δ

05_stringer/CameronSchafer/main.go
100% <100%> (ø)

03_letters/CameronSchafer/letters.go
100% <100%> (ø)

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 504f37a...2758c8f. Read the comment docs.

Hey, your latest commit c25afb shouldn't be in there; you're meant to have others code in your branch.
You can do
git reset --hard HEAD~1
then
git rebase upstream/master to update your branch before merging

I'd say take a look at the golang github wiki on review comments:
https://github.com/golang/go/wiki/CodeReviewComments
and also the wiki on table driven tests:
https://github.com/golang/go/wiki/TableDrivenTests


fix(logger): gsub got passed nil, because msg wasn't passed properly

fixes #465
msg wasn't passed to message_args properly, leading to nil pointer dereference.

Hey @SimonYde, thanks for that. I pushed a fix before I saw your PR. Closing via https://github.com/epwalsh/obsidian.nvim/commit/28ddc4c120c6ef2109d56435130791d2ac7bb102.


[BUG]: Android Kotlin version mismatch

Version
^6.4.1
What platforms are you having the problem on?
Android
System Version
React Native
On what device are you experiencing the issue?
Real device, Simulator
Architecture
Old architecture
What happened?

Task :react-native-video:compileReleaseKotlin FAILED
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/builder/.gradle/caches/transforms-3/113c75e423850f09a3a96afbb04140d6/transformed/jetified-kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/builder/.gradle/caches/transforms-3/113c75e423850f09a3a96afbb04140d6/transformed/jetified-kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/builder/.gradle/caches/transforms-3/113c75e423850f09a3a96afbb04140d6/transformed/jetified-kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/builder/.gradle/caches/transforms-3/46c2d7941a38979bf7d7f7ec3d090515/transformed/jetified-kotlin-stdlib-common-1.9.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/builder/.gradle/caches/transforms-3/87bfc0762e08f5de7559bcbc54306d9d/transformed/jetified-okio-jvm-3.6.0.jar!/META-INF/okio.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/builder/clone/node_modules/react-native-video/android/src/main/java/com/brentvatne/common/api/BufferConfig.kt: (40, 14): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/builder/.gradle/caches/transforms-3/113c75e423850f09a3a96afbb04140d6/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/jvm/JvmStatic.class
e: /Users/builder/clone/node_modules/react-native-video/android/src/main/java/com/brentvatne/common/api/BufferConfig.kt: (43, 22): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/builder/.gradle/caches/transforms-3/113c75e423850f09a3a96afbb04140d6/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/builder/clone/node_modules/react-native-video/android/src/main/java/com/brentvatne/common/api/BufferConfig.kt: (44, 22): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/builder/.gradle/caches/transforms-3/113c75e423850f09a3a96afbb04140d6/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
...
...
...

What went wrong:
Execution failed for task ':react-native-video:compileReleaseKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

Reproduction
Just trying to compile for release the application

you can try

./gradlew clean and try build again
or if it will not work - bump your kotlin version to 1.8 or 1.9

I have the same problem, is there any way to solve it?

@h-dung-95
try set compileSdkVersion & targetSdkVersion (in build.gradle) to 34 and kotlinVersion to 1.9.0

@KrzysztofMoch

try set compileSdkVersion & targetSdkVersion (in build.gradle) to 34 and kotlinVersion to 1.9.0

After setting these and also adding classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"  statement inside dependencies in my build.gradle file, things are working fine for me now in my React Native project
Thanks!


Request for guidance on preprocessing PDB files for model input

Hello,
I have come across your fascinating GitHub repository on protein structure pre-training, and I am excited to explore its potential for my own research. I noticed that the provided data is in HDF5 format, and there is no preprocessing code available for PDB files. I would like to use my own PDB files for inference with your model, but I am unsure how to preprocess them to match the expected input format.
Would you be able to provide some guidance or share a sample preprocessing script for converting PDB files to the required HDF5 format? This would greatly help me and other researchers who are interested in utilizing your work for various applications.
Thank you for your time and for sharing your valuable work with the community. I am looking forward to your response and any assistance you can provide.

Hi! Thanks for your interst in our work!
Only in the Fold3D dataset we use HDF5 format for storing proteins, following the original dataset in IEConv. I don't have the preprocessing code for converting PDB files to HDF5 format, either.
For EC and GO datasets, we still use pdb files as default storage format. The codes for loading pdb files can be found in the docs of TorchProtein. I suggest to check the documents and tutorials on TorchProtein before using this repo.
Though for Fold3D dataset we only provide HDF5 format dataset, it would be no problem to run the GearNet_IEConv model on PDB format data. You just need to load the dataset with the load_pdbs() method and then feed it into the model as usual. Our dataset module will transform these files into data.Protein objects.
Hope this can help.

Hi! Thanks for your interst in our work!
Only in the Fold3D dataset we use HDF5 format for storing proteins, following the original dataset in IEConv. I don't have the preprocessing code for converting PDB files to HDF5 format, either.
For EC and GO datasets, we still use pdb files as default storage format. The codes for loading pdb files can be found in the docs of TorchProtein. I suggest to check the documents and tutorials on TorchProtein before using this repo.
Though for Fold3D dataset we only provide HDF5 format dataset, it would be no problem to run the GearNet_IEConv model on PDB format data. You just need to load the dataset with the load_pdbs() method and then feed it into the model as usual. Our dataset module will transform these files into data.Protein objects.
Hope this can help.


本地dev编译问题

node_modules/mongodb/mongodb.d.ts:3309:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
Type '{ (): void; (chunk: Buffer): void; (callback: Callback<void | GridFSFile>): void; (chunk: Buffer, callback: Callback<void | GridFSFile>):
void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<...>): void; }' is not assignable to type '{ (cb?: (() => void) | undefined): this; (chunk: any, cb?: (() => void) | undefined): this; (chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; }'.
Type 'void' is not assignable to type 'this'.
'this' could be instantiated with an arbitrary type which could be unrelated to 'void'.
3309     end(): void;
~~~
node_modules/mongodb/mongodb.d.ts:3310:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
Type '{ (): void; (chunk: Buffer): void; (callback: Callback<void | GridFSFile>): void; (chunk: Buffer, callback: Callback<void | GridFSFile>):
void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<...>): void; }' is not assignable to type '{ (cb?: (() => void) | undefined): this; (chunk: any, cb?: (() => void) | undefined): this; (chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; }'.
3310     end(chunk: Buffer): void;
~~~
node_modules/mongodb/mongodb.d.ts:3311:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
Type '{ (): void; (chunk: Buffer): void; (callback: Callback<void | GridFSFile>): void; (chunk: Buffer, callback: Callback<void | GridFSFile>):
void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<...>): void; }' is not assignable to type '{ (cb?: (() => void) | undefined): this; (chunk: any, cb?: (() => void) | undefined): this; (chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; }'.
3311     end(callback: Callback<GridFSFile | void>): void;
~~~
node_modules/mongodb/mongodb.d.ts:3312:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
Type '{ (): void; (chunk: Buffer): void; (callback: Callback<void | GridFSFile>): void; (chunk: Buffer, callback: Callback<void | GridFSFile>):
void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<...>): void; }' is not assignable to type '{ (cb?: (() => void) | undefined): this; (chunk: any, cb?: (() => void) | undefined): this; (chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; }'.
3312     end(chunk: Buffer, callback: Callback<GridFSFile | void>): void;
~~~
node_modules/mongodb/mongodb.d.ts:3313:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
Type '{ (): void; (chunk: Buffer): void; (callback: Callback<void | GridFSFile>): void; (chunk: Buffer, callback: Callback<void | GridFSFile>):
void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<...>): void; }' is not assignable to type '{ (cb?: (() => void) | undefined): this; (chunk: any, cb?: (() => void) | undefined): this; (chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; }'.
3313     end(chunk: Buffer, encoding: BufferEncoding): void;
~~~
node_modules/mongodb/mongodb.d.ts:3314:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
Type '{ (): void; (chunk: Buffer): void; (callback: Callback<void | GridFSFile>): void; (chunk: Buffer, callback: Callback<void | GridFSFile>):
void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<...>): void; }' is not assignable to type '{ (cb?: (() => void) | undefined): this; (chunk: any, cb?: (() => void) | undefined): this; (chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; }'.
3314     end(chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback<GridFSFile | void>): void;
src/processors/helper/helper.service.akismet.ts:34:19 - error TS2709: Cannot use namespace 'akismet' as a type.
34   private client: akismet
~~~~~~~
src/processors/helper/helper.service.akismet.ts:44:27 - error TS2339: Property 'client' does not exist on type 'typeof import("akismet-api")'.                                                                                smet-api")'.
44     this.client = akismet.client({
~~~~~~

请问这是什么情况呢有点蒙圈了

用 yarn 安装依赖
不要升级 mongodb 或 mongoose 依赖
检查 tsconfig.json 的 skipLibCheck 选项


[release-4.10] OCPBUGS-1037: Change base images to remove setLocale warning

Whenever jenkins jobs and commands are run, logs are filled with below warning:
# podman run -it --entrypoint /bin/bash registry.redhat.io/openshift4/ose-jenkins-agent-base:v4.10.0-202207291908.p0.gc5b7159.assembly.stream
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) <---

Changing the base image solves the problem.
Bug https://issues.redhat.com/browse/OCPBUGS-1037
Signed-off-by: divyansh42<EMAIL_ADDRESS>

/assign @coreydaley @akram

/jira refresh

/jira refresh
/backport-risk-assessed
/approve

/hold

I think that we should keep the images as they were, pointing to 4.10 and see if you can just install the glibc language package and see if that fixes the issue.

/label backport-risk-assessed

/assign @jitendar-singh
for cherry-pick-approved
/assign @akram
for lgtm

/hold cancel

/jira refresh

/label cherry-pick-approved
/lgtm

/cherry-pick-approved

/label cherry-pick-approved


More visibility into service-managed transparent data encryption

The TDE overview documentation and azure portal for both specify "To enable encryption, go to each database," but "going" to each database in the portal for an Azure SQL Managed Instance shows no "transparent data encryption" menu item.  I can easily run SQL in each db to turn encryption on, but how do I check its progress and status? Encryption status with traditional certificates can be established querying sys.dm_database_encryption_keys.  What is the corresponding check for service-managed TDE?

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

ID: a44a0e0d-f0a8-fe91-8ae5-a901e103f89e
Version Independent ID: 834b8bc9-d661-0204-9ece-1f370067ec96
Content: Transparent data encryption - Azure SQL Database & SQL Managed Instance & Azure Synapse Analytics
Content Source: articles/azure-sql/database/transparent-data-encryption-tde-overview.md
Service: sql-database
Sub-service: security
GitHub Login: @jaszymas
Microsoft Alias: jaszymas

@KitLemmonds Thank you for bringing this documentation gap to our attention. Let me review what we do currently have and investigate what is actually required to implement the TDE functionality, as you have indicated with Managed Instance.

@jaszymas Can this be reviewed to identify any updates that are required here. I was going to walk through this with a Managed Instance but I do not have access to one at the moment to review this. Thank you!

#reassign:shohamMSFT

@KitLemmonds For service-managed keys in Azure SQL, you can use the same sys.dm_database_encryption_keys to get information about the encryption state of a database and its associated database encryption keys.

@VanMSFT Please go ahead and close this issue.

#please-close


Unable to fetch inapp products for Xamarin Android using Plugin.InAppBilling package

Hi,
I've entered an issue in StackOverflow and also wanted to post here for visibility purposes. For some reason I never get my in-app products from my Play Console account. I've entered more details here:
https://stackoverflow.com/questions/65332635/unable-to-fetch-inapp-products-for-xamarin-android-using-plugin-inappbilling-pac/65358616#65358616

Hmmm which version of the plugin are you using?

@jamesmontemagno  4.0.1.-beta

Hmmmm, the code looks correct on my end..
var skuDetailsParams = SkuDetailsParams.NewBuilder()
                .SetType(skuType)
                .SetSkusList(productIds)
                .Build();

var skuDetailsResult = await BillingClient.QuerySkuDetailsAsync(skuDetailsParams);

Are your IAP active and are you in alpha/beta track?

I agree, I think the fault is not in your code, but rather something missing on my end. My IAP's are published and active and my app is published to Internal Testing (they got rid of the Alpha/Beta concept). I'll keep investigating and read up on some more docs to see if I missed something. I'll keep this issue up to date.

I am pretty sure you need to do "closed testing"

@jamesmontemagno  ok I will try that out and report back with my results. Thanks for your time and input. It's a great library.

seems to hit the same.
in google docs stated that you may upload to any track including internal . so do i . inapps functionality appeared in google play console. but getproductinfoasync returns null till i found this thread, (only) uploaded binaries to closed track .. and occasionally getproductinfoasync starts working.
using ver 2.0.0
thank you

This was the fix. I pushed my app to Closed Testing (Alpha) and I received my in-app products. 👍 Thanks @jamesmontemagno !!
I'll keep an eye out for what @ish-1313  mentioned and see if I get the same behavior.

SOrry to reopen this.
I'm trying to use the GetProductInfoAsync(0 method.
Got the latest great stable version 4.0.2 installed in Xamarin Forms solution in each proj.
Create a simple method in my billing service:
`        public async Task GetLocalizedPrice(string prodId)
{
var billing = CrossInAppBilling.Current;
try
{
var connected = await billing.ConnectAsync(true);
            string[] prodIds = new string[] { prodId };
            var productfound = await billing.GetProductInfoAsync(ItemType.Subscription, prodIds);
            InAppBillingProduct product = productfound.First();

            return product.LocalizedPrice;
        }
        catch
        {
            return string.Empty;
        }
    }

`
All other functionality works well. I can check and restore purchases and make a purchase.
Need to retrieve InAppBillingProduct info as I have different non-std pricing for different countries.
When the GetProductInfoAsync() method is called, the service just hangs, nothing else happens. Never goes further.
And yes, checked prodIDs etc. I'm only passing in one at a time.
This is targeting the Apple App Store.
Not got to the PlayStore just yet.
Any guidance?
Thanks

SOrry to reopen this.
I'm trying to use the GetProductInfoAsync(0 method.
Got the latest great stable version 4.0.2 installed in Xamarin Forms solution in each proj.
Create a simple method in my billing service:
`        public async Task GetLocalizedPrice(string prodId)
{
var billing = CrossInAppBilling.Current;
try
{
var connected = await billing.ConnectAsync(true);
            string[] prodIds = new string[] { prodId };
            var productfound = await billing.GetProductInfoAsync(ItemType.Subscription, prodIds);
            InAppBillingProduct product = productfound.First();

            return product.LocalizedPrice;
        }
        catch
        {
            return string.Empty;
        }
    }

`
All other functionality works well. I can check and restore purchases and make a purchase.
Need to retrieve InAppBillingProduct info as I have different non-std pricing for different countries.
When the GetProductInfoAsync() method is called, the service just hangs, nothing else happens. Never goes further.
And yes, checked prodIDs etc. I'm only passing in one at a time.
This is targeting the Apple App Store.
Not got to the PlayStore just yet.
Any guidance?
Thanks


Very low validation acuuracy with ImageDataGanarator and flow_from_directory

I am trying to train a 3D resnet-50 with stereo data, i.e. the input of the network is two RGB images (2,224,224,3) concatenated according to the depth axe to get 6 grayscale images (6,224,224,1). Since I am training my network on a large database, I used ImageDataGenerator flow_from_directory method to get labels from folders. My data are 22390 pairs divided into 2239 classes (10 images per class).
I have split them manually into 0.8 for training and 0.2 for validation through taking the two middle images from each class to the validation set. I did not use shuffling during the training because I have to take the right corresponding inputs of the stereo pairs from the two directories. My problem is that during the training, the accuracy of the training was increasing and the loss was decreasing which is good. In fact, the validation accuracy was very low (around 0.001) and there is no improvement. Also the valisation loss is very high and still oscillating into very high values!!
I wonder if that is due to:

My data which contains a large number of classes with few images per class?
The fact that I am not shuffling the data before or during the split?
Other reason.

Here is my code:
  import numpy as np
  from keras_preprocessing.image import ImageDataGenerator
  from resnet3d import Resnet3DBuilder
  import keras

  data_path_l='.\TRAIN\left\'
  data_path_r='.\TRAIN\right\'
  test_data_path_l ='.\TEST\left\'
  test_data_path_r='.\TEST\right\'
 num_classes=2239
 batch_size=32
 epochs=500
 train_images=17912
val_images=4478

input_imgen = ImageDataGenerator()
def generate_generator_multiple(generator,dir1, dir2, batch_size):
       genX1 = generator.flow_from_directory(directory=dir1,target_size=(224,224)
                                     color_mode="rgb",
                                      batch_size=batch_size,
                                      class_mode="categorical",
                                      shuffle=False)

     genX2 = generator.flow_from_directory(directory=dir2,target_size=(224,224),
                                      color_mode="rgb",
                                      batch_size=batch_size,
                                      class_mode="categorical",
                                      shuffle=False)

      while True:
             X1i = genX1.next()
             X2i = genX2.next()
             Xsum = np.concatenate((X1i[0],X2i[0]), axis=3)
             Xsum = np.expand_dims(Xsum, axis=1)
             Xsum=np.swapaxes(Xsum,4,1)
             yield Xsum, X2i[1]  #Yield both images and their mutual label

def validation_generate_generator_multiple(generator,dir1, dir2, batch_size):
      val_genX1 = generator.flow_from_directory(directory=dir1,target_size=(224,224),
                                      color_mode="rgb",
                                      batch_size=batch_size,
                                      class_mode="categorical",
                                      shuffle=False)

      val_genX2 = generator.flow_from_directory(directory=dir2,target_size=(224,224),
                                      color_mode="rgb",
                                      batch_size=batch_size,
                                      class_mode="categorical",
                                      shuffle=False)

      while True:
             X1i = val_genX1.next()
             X2i = val_genX2.next()
             Xsum = np.concatenate((X1i[0],X2i[0]), axis=3)
             Xsum = np.expand_dims(Xsum, axis=1)
            Xsum=np.swapaxes(Xsum,4,1)
            yield Xsum, X2i[1]  #Yield both images and their mutual label

inputgenerator=generate_generator_multiple(generator=input_imgen,
                                       dir1=data_path_l,
                                       dir2=data_path_r,
                                       batch_size=batch_size)

validation_inputgenerator= validation_generate_generator_multiple(generator=input_imgen,
                                       dir1=test_data_path_l,
                                       dir2=test_data_path_r,
                                       batch_size=batch_size)

model=Resnet3DBuilder.build_resnet_50((6,224,224,1), num_classes)
model.compile(loss='categorical_crossentropy',
                        optimizer='adam',
                        metrics=['accuracy'])
 history=model.fit_generator(inputgenerator,
                    steps_per_epoch= train_images // batch_size,
                    validation_data = validation_inputgenerator,
                    validation_steps = val_images// batch_size,
                    epochs = epochs,
                    shuffle=False)
model.save('resnet3D_6sample_lr.h5')`

and here is a part from the training process
Epoch 153/500
559/559 [==============================] - 1927s 3s/step -
 loss: 1.1738 - acc: 0.9620 - val_loss: 12.9716 - val_acc: 0.0038

Epoch 154/500
559/559 [==============================] - 1929s 3s/step -
loss: 1.1810 - acc: 0.9594 - val_loss: 12.4732 - val_acc: 0.0065

Epoch 155/500
559/559 [==============================] - 2161s 4s/step -
loss: 1.1146 - acc: 0.9681 - val_loss: 11.9151 - val_acc: 0.0076

Epoch 156/500
559/559 [==============================] - 2165s 4s/step -
loss: 1.0637 - acc: 0.9734 - val_loss: 10.2526 - val_acc: 0.0135

Epoch 157/500
559/559 [==============================] - 2192s 4s/step -
loss: 1.0324 - acc: 0.9745 - val_loss: 9.6518 - val_acc: 0.0148

Epoch 158/500
559/559 [==============================] - 1921s 3s/step -
loss: 1.1294 - acc: 0.9516 - val_loss: 11.7690 - val_acc: 0.0090

Epoch 159/500
559/559 [==============================] - 1504s 3s/step -
loss: 1.1739 - acc: 0.9520 - val_loss: 11.2503 - val_acc: 0.0090

Epoch 160/500
559/559 [==============================] - 2139s 4s/step -
loss: 1.0292 - acc: 0.9732 - val_loss: 11.8762 - val_acc: 0.0106

Epoch 161/500
559/559 [==============================] - 1835s 3s/step -
loss: 1.0494 - acc: 0.9671 - val_loss: 10.1109 - val_acc: 0.0151

Epoch 162/500
559/559 [==============================] - 1583s 3s/step -
loss: 0.9970 - acc: 0.9737 - val_loss: 12.5503 - val_acc: 0.0049

I have the same issue, I train VGG16 with 90% accuracy but on the same data ResNet always give 0.001 validation accuracy. I gave the training input as both training and validation and accuracy is still 0.001.


Unique prefix for options and functions

WordPress Plugin Directory requires all functions and options to
use a unique prefix to avoid collision with core or other plugins.
No upgrade code, so notify users in update message.
Removed generic 'Tipsy' string in favor of the blog's own name.
Could use author name, but would require more logic for pages
without a given author or multi-author pages.
Use esc_html to escape user input.

Looks good to me!


Add label "Current" in Open Recent list of projects

I'd like to know what is the project that is currently opened in the list of "Open Recent". Maybe we could add a label that says "Current" or something like that.

Several times I've tried to open a different project, but I accidentally keep open the same one because I don't actually remember the name of the projects. I think adding this could help to solve this problem.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


udhcpc client doesn't maintain leases

Overview
If using udhcpc with pipework and docker, leases are not maintained because udhcpc was invoked with the -q option which causes it to exit after obtaining a lease.  This can cause containers to be unreachable by hostname once the lease runs out if your using a dynamic DNS server.
Workaround
Changing the pipework script at line 324 to read:
ip netns exec "$NSPID" "$DHCP_CLIENT" -i "$CONTAINER_IFNAME" \

Fixes this problem and multiple udhcpc processes are visible in ps once this change has been made.
Long-term fix
I'm not sure the above workaround is an elegant enough fix to this problem, I believe the -q option was added to avoid having a bunch of udhcpc clients hanging around trying to obtain IP addresses for long-dead containers.
In my case, the containers I want to give DHCP addresses to are ones that I want to be running all the time but this might not be the case with other peoples systems.
I'm unclear on the best way to fix this - perhaps an option to the script to skip the -q flag to udhcpc and the kill operation on dhclient would be the way to go?  I also noticed a -q being set for dhcpcd but on my debian box this flag is undefined.
Happy to have a go at putting together a PR to implement if this is acceptable, otherwise hope this information can help out anyone else struggling with this.

In my deployment, I'm using unique macs for containers, large private address block, and long-term (5-year) leases  on dhcp server. Of course, it is an ugly hack, but that is the way to live with that and be able to safely suspend/restart containers :)

Indeed, I was using -q to avoid lingering DHCP clients; but it means that leases don't get renewed.
Another possibility would be to keep the DHCP client up and running, and then:

either clean them up manually;
or add a watcher process, so that the DHCP client detects if it's the only one using that network namespace, and goes away if that's the case.

Isn't this the same issue with dhclient, since https://github.com/jpetazzo/pipework/blob/master/pipework#L353 kills the dhclient, thus preventing renewal?
In a general sense, since each of these maintains their own leases database (e.g. dhclient in /var/lib/dhclient/dhclient.leases), what happens when I run 2 containers, and dhclient for each? Will they trounce each other? Why not?

@jpetazzo how about an option to keep dhcp alive after? It is easier to do with the dhcp option, since the default for udhcpc is to background itself, so you can just add -f to DHCP_OPTIONS. It is harder for dhclient and udhcpc since pipework expressly has the option -q or kill <pid> on it. It would require a command-line option.
I think it is reasonable. I would expect if someone wants to run pipework in some kind of wrapper, and then take responsibility for managing (and killing) dhcp clients, let it be their issue?

I created a PR that allows a user to override the elimination of the dhcp process. If you call it with dhclient, then it works like now. But if you call it with dhclient-f, then it does dhclient remaining. A process outside pipework has to take responsibility for cleaning up processes later so they don't hang around (e.g. the pipework container).
See https://github.com/jpetazzo/pipework/pull/186

This is addressed by #186. Thanks a lot @deitch for the contribution!

Pleasure. We all help each other. OK, it is your job (you work at Docker), and for me just a side-effect of a client gig, but still, all good! :-)
Your blog articles are interesting. Gotta follow you on twitter.


Will the script stop if the user disconnects ?

Will the script stop if the user disconnects ?
Is there a way to listen for user dis/connect

seems that the script doesn't stop when the client is disconnected

[Take a look(http://stackoverflow.com/questions/28850986/how-can-i-stop-a-server-sent-event-script-from-running-when-the-user-closes-the)?]

The PHP script should be killed as soon as the connection socket closes.


Kaolin with Google Colab

Hi,
Since Kaolin on windows is not supported and I do not have a linux machine, I decided to use Colab to setup Kaolin.
I was successful in following the setup instructions without any error.
However, when i try to print the version of Kaolin, it says the following
kal.__version__

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-27-0eb511c760b2> in <module>()
----> 1 kal.__version__

AttributeError: module 'kaolin' has no attribute '__version__'

Please have a look at my notebook here to see my workflow https://github.com/christinezuzart/kaolin_tests/blob/master/Kaolin_V3.ipynb

Hi,
I got Kaolin to install on colab (py3, GPU) with:
!pip install git+https://github.com/NVIDIAGameWorks/kaolin import kaolin as kal print(kal.__version__)

0.1.0

I did not try anything further, hope this helps.

That worked.Thanks !!!!

@aweinmann : can you explain what does the commad does, and why it works after this command?


WIP: Paired stats in dc

Current coverage is 84.25% (diff: 67.22%)

Merging #113 into master will decrease coverage by 0.92%

@@             master       #113   diff @@
==========================================
  Files            12         13     +1
  Lines          1849       1893    +44
  Methods           0          0
  Messages          0          0
  Branches        343        347     +4
==========================================
+ Hits           1575       1595    +20
- Misses          155        178    +23
- Partials        119        120     +1

Powered by Codecov. Last update 023b229...663abc2


Typescript and Javascript Language Features Unresponsive

Issue Type: Bug
It is subtitled as a performance issue.
Activation: 7661ms
Profile: 311.00ms
Everything else starts up in 11ms or less. This is the one build in extension that makes my startup times longer than 15 seconds.
VS Code version: Code - Insiders 1.49.0-insider (bd08768fd310d34cdd4423a53e5f3ca77340fea5, 2020-08-14T05:56:40.601Z)
OS version: Windows_NT x64 10.0.19041

System Info

Item
Value

CPUs
AMD Ryzen 5 3600 6-Core Processor               (12 x 3600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.95GB (10.50GB free)

Process Argv
--crash-reporter-id 7df2a94c-bb03-4b44-b11c-c5550c3d8d0a

Screen Reader
no

VM
0%

Extensions: none

Can you please collect a profile of this. See these instructions

@jrieken Any advice on how a user can easily profile the startup of an extension?

F1 > Show Running Extensions
Select "Start Extension Host Profile" in editor toolbar
(trigger TS activation, e.g open a file)
Stop profiling (see status bar), save and share the profile with us

Closing as we need a profile to investigate this. @PocketNachos If you are still seeing this issue, please follow @jrieken's instructions to try collecting the profile.
To trigger the TS activation, start VS Code with all JavaScript and TypeScript files closed and then open any js/ts file


Cant see combo points for feral druids / rogue class

Description

Version Number
1.3.105
Steps to Reproduce

Step 1
Step 2
Step 3
Step 4

Expected Behavior

Actual Behavior

Only DiabolicUI Enabled

Additional Information

Error Log

Please read this.
https://github.com/cogwerkz/DiabolicUI/wiki/Frequently-Asked-Questions


Tr/help fixes

PR Type
Enhancement, Documentation

Description

Improved the PR Help tool functionality:

Fixed snippet indexing to start from 1 for better user experience
Enhanced logging for clearer answer output display

Updated Doc-helper AI instructions in pr_help_prompts.toml:

Added more detailed guidelines for generating concise answers
Clarified priority of main PR-Agent tools (describe, review, improve)
Improved Pydantic model definition and naming

These changes aim to enhance the overall user experience and clarity of the PR Help feature

Changes walkthrough 📝
Relevant filesEnhancement

pr_help_message.pyImprove snippet indexing and logging in PR Help tool

pr_agent/tools/pr_help_message.py
Fixed indexing in snippet display, now starting from 1 instead of 0  Updated logging to improve readability of the answer output

+2/-2

Documentation

pr_help_prompts.tomlEnhance Doc-helper AI instructions and model definition

pr_agent/settings/pr_help_prompts.toml
Added more detailed instructions for the Doc-helper AI  Clarified the priority of main PR-Agent tools  Updated the Pydantic model name from 'doc_help' to 'DocHelper'

+9/-4

💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

/help "My team often creates pull requests (PRs) from a combined branch that has already reviewed branches for production deployment. In these cases, executing auto-triggered tasks on such PRs is often unnecessary, as they may involve extensive code changes and place significant load on the pr-agent service.
So, I suggest adding an option to selectively disable auto-triggered tasks on specific pull requests. This feature would allow teams to optimize their workflow and reduce unnecessary processing load. I have implemented and utilized this feature in our pr-agent codebase.
For example, this can be implemented by adding a flag to the PR title or at the end of the PR description. When this flag is present, pr-agent will not automatically perform a review. However, if needed, users can still trigger a review manually by entering a command in a comment after the PR is created.
"

/help "i want to add a flag to the PR title or at the end of the PR description. When this flag is present, pr-agent will not automatically perform a review. However, if needed, users can still trigger a review manually by entering a command in a comment after the PR is created."

/help
"add a flag to the PR title or at the end of the PR description. When this flag is present, pr-agent will not run automatically"

/improve

/help

/improve

/improve

/improve


Add the support of the BZMPOP command

Search before asking

[X] I had searched in the issues and found no similar issues.

Motivation
This issue considers to support bzmpop, bzmpopmax, bzpopmin commands.
And the implementation should process a timeout argument.
Solution

[ ] bzmpop
[ ] bzmpopmax
[ ] bzpopmin

Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

@infdahai Would you like to do this?

I can accept this task for now. Because I want to implement all commands from zset.

I want to participate in the task, can i contact you through wechat or other ways?

@git-hulk please invite him to wechat groups. Mabye you can search the TimerCB funcs in the codebase to learn how to add the event to the loop.

Please follow the WeChat Official Account at the bottom of README.md, then join the WeChat group via the guidance.
But we encourage everyone to discuss the proposal or solution via GitHub Discussion instead of a private channel.

Ok, I'm already in the group and i'll look into the code. I’m new in here, may i'll have many questions, lol.

I think it's bzpopmax rather than bzmpopmax.

I think it's bzpopmax rather than bzmpopmax.

fixed

Note: As an ASF community, we do not endorse any discussion on some private channels like wechat group.
We prefer public available discussion like GitHub issues, discussions and ASF mailing lists. Feel free to post your questions on these platform.

Ok, i'm just a little shy. I'll post my question if i cannot overcome it.

I‘ve already finish the code, and have tested it manually.
I'm now trying to add some go tests but i'm not very familiar with go and go test.
I want to know how to run single test for zset, i tried several ways but it didn't work.   :(

I‘ve already finish the code, and have tested it manually. I'm now trying to add some go tests but i'm not very familiar with go and go test. I want to know how to run single test for zset, i tried several ways but it didn't work. :(

Hi @Yangsx-1, You can reach me on Slack if you need help.

I‘ve already finish the code, and have tested it manually.
I'm now trying to add some go tests but i'm not very familiar with go and go test.
I want to know how to run single test for zset, i tried several ways but it didn't work.   :(

Try something like ./x.py test go <build-dir> -run <match-str>.
And you can refer to go test --help for more information about the -run option.

Ok, I'll try it first. I'll contact you if i have some problems later @git-hulk


Add an option to specify supported image features to allow

I haven't tested other image features yet, but opening up supported features to cli options may open door to allow unsupported features slip in, and we have to validate the the cli passed supported features.
/assign @cofyc

hi, @JrCs
Not all image format 2 features can be turned on without causing problems.
For example, we cannot turn on exclusive-lock feature for now (and object-map, fast-diff, journaling which require exclusive-lock), because exclusive lock and advisory lock cannot work together. (See https://github.com/kubernetes/examples/blob/master/staging/persistent-volume-provisioning/README.md#ceph-rbd and https://github.com/kubernetes/kubernetes/pull/45805).
Kubernetes pre-1.9, we use advisory lock to lock images on the node.
If we are going to support more image format 2 features, we need to take care these issues (e.g. allow some features when we know it's safe to use). Otherwise, user may run into problems.

Ok, thanks @cofyc for the informations.
Why can we not turn on exclusive-lock now ? For me it's include in kernel 4.12.x and above ?

@JrCs we don't need exclusive lock - it doesn't live well with advisory lock, and rbd can use attach/detach controller to fend off multi attach now.

resolved, thanks everyone


How to randomize the seed value in API call?

I'm doing an API call however when I leave the seed value empty, I'm getting an error. How can I randomize it?

with version 0.2.9 and above, you can set seed to -1 for random seed at all generations

👍


cannot register an userdata function with movable only arguments

the code below fails to compile with sol. please note the Handler::add() function which takes its argument by value (which will move it, as expected)
#include <sol.hpp>
#include <memory>
#include <vector>
#include <iostream>

struct ResourceImpl {
	int something = 10;
};

struct Resource {
	std::unique_ptr<ResourceImpl> impl;
	Resource(): impl{std::make_unique<ResourceImpl>()} {}
	Resource(Resource &&) = default;
};

struct Handler {
	std::vector<Resource> resources;
	void add(Resource resource) { resources.push_back(std::move(resource)); }
	void print() {
		for( auto && resource : resources ) {
			std::cout << resource.impl->something << ", ";
		}
		std::cout << std::endl;
	}
};

struct Factory {
	Resource create(int value) {
		Resource result;
		result.impl->something = value;
		return result;
	}
};

int main()
{
	Factory factory;
	Handler handler;
	handler.add(factory.create(10));
	handler.add(factory.create(20));
	handler.print();
	// C++ code works properly

	auto lua = sol::state{};
	lua.new_usertype<Resource>("Resource");
	lua.new_usertype<Factory>("Factory",
		"create",&Factory::create);
	lua.new_usertype<Handler>("Handler",
		"add",&Handler::add,
		"print",&Handler::print);
	lua.script("factory = Factory.new()");
	lua.script("handler = Handler.new()");
	lua.script("handler:add(factory:create(100))");
	lua.script("handler:add(factory:create(200))");
	lua.script("handler:print()");
}

generates the following error messages:
In file included from D:\diego\progs\c++\lib\sol2/sol/function_types.hpp:25:0,
                 from D:\diego\progs\c++\lib\sol2/sol/function.hpp:28,
                 from D:\diego\progs\c++\lib\sol2/sol/stack_proxy.hpp:26,
                 from D:\diego\progs\c++\lib\sol2/sol/variadic_args.hpp:26,
                 from D:\diego\progs\c++\lib\sol2/sol/object.hpp:28,
                 from D:\diego\progs\c++\lib\sol2/sol/proxy.hpp:26,
                 from D:\diego\progs\c++\lib\sol2/sol/table_core.hpp:25,
                 from D:\diego\progs\c++\lib\sol2/sol/table.hpp:25,
                 from D:\diego\progs\c++\lib\sol2/sol/state_view.hpp:26,
                 from D:\diego\progs\c++\lib\sol2/sol/state.hpp:25,
                 from D:\diego\progs\c++\lib\sol2/sol.hpp:25,
                 from userdata.cpp:1:
D:\diego\progs\c++\lib\sol2/sol/function_types_core.hpp: In instantiation of 'void sol::function_detail::functor<T, Func, std::enable_if_t<std::is_member_function_pointer<Func>::value> >::call(sol::types<void>, Args&& ...) [with Args = {Resource&}; T = Handler; Func = void (Handler::*)(Resource); std::enable_if_t<std::is_member_function_pointer<Func>::value> = void]':
D:\diego\progs\c++\lib\sol2/sol/function_types_core.hpp:305:76:   required from 'decltype(auto) sol::function_detail::functor<T, Func, std::enable_if_t<std::is_member_function_pointer<Func>::value> >::operator()(Args&& ...) [with Args = {Resource&}; T = Handler; Func = void (Handler::*)(Resource); std::enable_if_t<std::is_member_function_pointer<Func>::value> = void]'
D:\diego\progs\c++\lib\sol2/sol/stack.hpp:89:7:   required from 'void sol::stack::stack_detail::call(sol::types<void>, sol::types<Args ...>, std::index_sequence<I ...>, lua_State*, int, Fx&&, FxArgs&& ...) [with bool checkargs = false; long long unsigned int ...I = {0ull}; Args = {Resource}; Fx = sol::function_detail::functor<Handler, void (Handler::*)(Resource), void>&; FxArgs = {}; std::index_sequence<I ...> = std::integer_sequence<long long unsigned int, 0ull>; lua_State = lua_State]'
D:\diego\progs\c++\lib\sol2/sol/stack.hpp:129:35:   required from 'void sol::stack::call(sol::types<void>, sol::types<Args ...>, lua_State*, int, Fx&&, FxArgs&& ...) [with bool check_args = false; Args = {Resource}; Fx = sol::function_detail::functor<Handler, void (Handler::*)(Resource), void>&; FxArgs = {}; lua_State = lua_State]'
D:\diego\progs\c++\lib\sol2/sol/stack.hpp:149:21:   required from 'int sol::stack::call_into_lua(sol::types<void>, sol::types<Args ...>, lua_State*, int, Fx&&, FxArgs&& ...) [with int additionalpop = 1; bool check_args = false; Args = {Resource}; Fx = sol::function_detail::functor<Handler, void (Handler::*)(Resource), void>&; FxArgs = {}; lua_State = lua_State]'
D:\diego\progs\c++\lib\sol2/sol/function_types_usertype.hpp:47:39:   required from 'int sol::function_detail::usertype_function_core<Tp, Function>::operator()(sol::types<Ret ...>, sol::types<Args ...>, sol::index_value<Start>, lua_State*) [with Ret = {void}; Args = {Resource}; long long unsigned int Start = 2ull; Tp = Handler; Function = void (Handler::*)(Resource); sol::index_value<Start> = std::integral_constant<long long unsigned int, 2ull>; lua_State = lua_State]'
D:\diego\progs\c++\lib\sol2/sol/function_types_usertype.hpp:64:43:   required from 'int sol::function_detail::usertype_function<Tp, Function>::prelude(lua_State*) [with Tp = Handler; Function = void (Handler::*)(Resource); lua_State = lua_State]'
D:\diego\progs\c++\lib\sol2/sol/function_types_usertype.hpp:68:23:   required from 'int sol::function_detail::usertype_function<Tp, Function>::operator()(lua_State*) [with Tp = Handler; Function = void (Handler::*)(Resource); lua_State = lua_State]'
userdata.cpp:57:1:   required from here
D:\diego\progs\c++\lib\sol2/sol/function_types_core.hpp:294:29: error: use of deleted function 'Resource::Resource(const Resource&)'
         (member.*invocation)(std::forward<Args>(args)...);
                             ^
userdata.cpp:10:8: note: 'Resource::Resource(const Resource&)' is implicitly declared as deleted because 'Resource' declares a move constructor or move assignment operator
 struct Resource {
        ^

is this a bug or is there a strong reason to not accept movable only arguments in userdata functions?

BIKESHED
Usertypes are retrieved from lua as T&, a non-const reference. Lua has no concept of moving things. Remember, the only strong types available at the border of your functions are the ones provided from the C++ function signature. So, you have your add function --
We get a type from Lua, as a Resource, because that's what the C++ function asks for. The Sol system will carry it through as Resource& until it gets to the function call's border, because that's what is stored in lua: a reference to the type. The problem is now: how does Sol figure out that you want it to be moved? We could check std::is_move_constructible and std::is_copy_constructible, and if the first is true and the second is false, force a move. But then what happens to the original memory? How do we know for sure the user wanted to move it?
This is a dangerous default if the user continues to use the type that was automatically "moved from". It's also incredibly hard to implement. There's no true way to track lifetime guarantees through lua, so this sounds like a bunch of subtle bugs waiting to happen, e.g.:
void my_c_function ( Data d ) {
    // ...
}

// Bind to lua using Sol

result = compute( 12, 24, 800 )
my_c_function( result ) -- we just gutted result
some_other_stuff( result ) -- may crash, or maybe certain things are still 'valid' inside the moved-out object. who knows?

Someone passes a type to a function, it's move only, and they made the C++ programmer error of taking a Resource instead of a Resouce&. Suddenly, the Sol system would gut the variable and people would file issues about "resources disappearing"...
Again, I'm not SURE what the right semantics are here. This is just my gut feeling.

I honestly thin you have good points, so if you believe your rationale is strong enough to prevent movable types as function arguments, can you perhaps put an static_assert against movable only types in order to make the error messages more descriptive?
(it took me a while to figure out what was the real cause of my issues)


You Have Good  members than my Org

What would you like to share?
https://github.com/VasudevJaiswal
Additional information
Thank you

@eddiejaoude I was made admin to this organisation, what do I do now to this organisation?

I'm supporting this issue. You are not giving value to the open-source community and taking some people to join this org. in the wrong way.

What would you like to share?
https://github.com/VasudevJaiswal
Additional information
Thank you

Thank you bro

@VasudevJaiswal  Just so you know people can see the edits you make 🧠

nice.
What's your motivation @VasudevJaiswal?
Why are you building a community, and what makes "good members" join your org.?


:registered: Use gp name for page title

:rocket: deployment of profiles-pr-111 in nhsuk-dev succeeded (http://profiles-pr-111.dev.c2s.nhschoices.net)

:rocket: deployment of profiles-pr-111 in nhsuk-dev succeeded (http://profiles-pr-111.dev.c2s.nhschoices.net)


www/caddy: Add buttons to guide users, conditionally hide subdomain tab, simplify forms

For a first time user, the UI of the Caddy plugin can look a bit intimidating on the domain landing page in Reverse Proxy.
This PR tries to improve it without adding too much trickery, keeping it simple so it won't break in the future.

Two buttons are added, that will programmatically change tabs and trigger add dialogues.
Step 1: Add Domain -> The tab is changed to the domain tab, and the add domain button is clicked automatically
Step 2: Add Upstream -> Same, but the add handler button is clicked
These buttons guide first time users intuitively.

Subdomains are in their own Tab now, uncluttering the UI on the main domain page. This puts the normal domains into clear focus, which should be the primary entry point for anybody.
As soon as a wildcard domain is added, and the apply key is pressed, the subdomain tab appears. It disappears when no wildcard domain is left.
This visibility change prevents too much focus on subdomains, since normal configurations don't need them.

@fichtner I would like to merge this, since it improves the user experience a lot. Could you take a look at it?

Merged, thanks!


Add documentation and usage examples

Documentation will appear in version 3.0.0. Examples will come later. No time for now. Closing.


Cloudron installation

Describe the feature you'd like
Create a BookStack Cloudron package that will allow it to be installed in 1-click
Describe the benefits this feature would bring to BookStack users
This app has been often requested by the Cloudron community - https://forum.cloudron.io/topic/1182/bookstack-knowledge-management-application
Additional context
Cloudron is a platform for installing and managing self-hosted apps like BookStack.

Girish from Cloudron.io here. First off, thanks a lot for BookStack. We have seen BookStack requested a lot by our community. The initial package was contributed by one of our customers (msbt, not sure what his id is on GitHub). The source code of the package is at https://git.cloudron.io/cloudron/bookstack-app . We also have automated selenium tests (which is part of our auto-update mechanism to verify new updates) at https://git.cloudron.io/cloudron/bookstack-app/tree/master/test. I have also opened a PR to get Cloudron listed as an installation mechanism - https://github.com/BookStackApp/website/pull/45
I wasn't sure what the best way to talk to you guys was since I didn't see a forum, so I opened an issue.  Thanks again for BookStack.

Hi @gramakri,
Sorry for my very very late response.
Just had a play about with BookStack on your demo cauldron instance, Seems like a really cool system. Thank you and @msbt for adding support there.
I'll review the docs PR soon. Had a quick look. To be totally honest, I'm very wary about linking out to anything commercial, or even any "service providers" in general, within our official docs.  I'll have a think about how I want to position it. Will likely be a link listed under "Other hosting options" or something like that.
Since you'be already created a package, and therefore addressed the topic of the issue, I'll close this off.

@ssddanbrown Listing it under "Other hosting options" is totally fine by me. I can edit the PR accordingly.


Update access control config name to unique ones

Background:
Configs like AZURE_CLIENT_ID, API_BASE, is commonly used in backend APIs.
To package them in one docker image and enable different configurations for different components requires unique configs for each component.
Solution:
Add a common prefix "RBAC_" to all access control configs

All access control related contents are moved under access_control folder.
x-registry-requestor will be used to pass username to downstream APIs in header.
numpy dependency removed.

Tested in Local UI + SQL Registry. with all functions.


remove legacy manifest scaffolding

This scaffolding was related to the legacy/monorepo manifest generation and can be removed

/retest


Deloitte project frontend

A frontend to accompany an MVP for a Deloitte usecase.

Use case description:

the user uploads a file (image or pdf) or types in text

user clicks Enter to start searching

the website sends requests to the backend

backend returns pdf documents.

display a preview of the document (or the title)

if the user clicks on the PDF send another request to the backend that fetches this pdf entirely

download this pdf and display in a separate window

Endpoint documentation

Link to feature: https://jinaai.productboard.com/feature-board/planning/features/7569743


Show current Steam name when creating Games

If a player is on Steam, display their current Steam name under their user name in the table when creating a game.

implemented 3f937113ee46029f1b56c1b5ca01592bb1b6b4ef
SO COOL

Wrong implementation. gg
The alt_name should not be stored in DB. It should be populated every time a Player object is instantiated.

It doesn't get any better than this:
55e508dcf386116656e51bf22b6dad2d535dd22c
0d36f7e7d390fb06fb4e0aaef7f49fad0bf72364
probably


Support for cppvsdbg

How much work is it to support cppvsdbg, and is it on the backlog?

You can already add your debugger to the list of debuggers. Let us know if cppvsdbg works

This is a setting you can set

Hi, sorry for the late reply, I have been away on vacation. I have tested adding cppvsdbg in the list, this is the error message that I got:
"The current debugger does provide a memory read API. Cannot add a memory view"

There is your answer. You should file an issue with the cpptools people (Microsoft) who created that debugger. Memory read/write APIs are optional and it should be relatively easy for them to add.


Intero recompiles all modules on every startup.

I'm attempting to use Intero with a fairly large project of around 250 modules.
One issue that I'm repeatedly running into is the long startup time for an Intero session (several minutes).
It may be that I'm invoking Intero in the wrong way, but no matter how I invoke it, Intero seems to want to recompile all modules on every startup. Is there any way to get Intero to reload previously-compiled modules instead of recompiling them every time?
Reproduction Steps
For simplicity, I'll reproduce this with a smaller project:
$ git clone https://github.com/jonathanknowles/distributed-process-experiment
$ cd distributed-process-experiment

To start off with, let's build the project:
$ stack setup
$ stack build

Next, let's build Intero:
$ stack build intero

Now, let's start Intero, taking care to specify that it should use compiled code, rather than interpreted code:
$ stack ghci distributed-process-experiment:lib --with-ghc intero --ghc-options "-fobject-code"
Configuring GHCi with the following packages: distributed-process-experiment
Intero 0.1.20 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

[ 1 of 10] Compiling Time             ( /private/jsk/projects/distributed-process-experiment/source/library/Time.hs, /private/jsk/projects/distributed-process-experiment/.stack-work/odir/Time.o )
[ 2 of 10] Compiling Process          ( /private/jsk/projects/distributed-process-experiment/source/library/Process.hs, /private/jsk/projects/distributed-process-experiment/.stack-work/odir/Process.o )
...
[10 of 10] Compiling Startup          ( /private/jsk/projects/distributed-process-experiment/source/library/Startup.hs, /private/jsk/projects/distributed-process-experiment/.stack-work/odir/Startup.o )
Ok, modules loaded: CLI, Config, Context, Master, Message, Pretty, Process, Slave, Startup, Time.
Collecting type info for 10 module(s) ...
Prelude CLI Config Context Master Message Pretty Process Slave Startup Time> :quit
Leaving GHCi.

Intero has recompiled the modules on first run. How about the second run? Let's try again:
$ stack ghci distributed-process-experiment:lib --with-ghc intero --ghc-options "-fobject-code"
Configuring GHCi with the following packages: distributed-process-experiment
Intero 0.1.20 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

[ 1 of 10] Compiling Time             ( /private/jsk/projects/distributed-process-experiment/source/library/Time.hs, /private/jsk/projects/distributed-process-experiment/.stack-work/odir/Time.o ) [flags changed]
[ 2 of 10] Compiling Process          ( /private/jsk/projects/distributed-process-experiment/source/library/Process.hs, /private/jsk/projects/distributed-process-experiment/.stack-work/odir/Process.o ) [flags changed]
...
[10 of 10] Compiling Startup          ( /private/jsk/projects/distributed-process-experiment/source/library/Startup.hs, /private/jsk/projects/distributed-process-experiment/.stack-work/odir/Startup.o ) [flags changed]
Ok, modules loaded: CLI, Config, Context, Master, Message, Pretty, Process, Slave, Startup, Time.
Collecting type info for 10 module(s) ...
Prelude CLI Config Context Master Message Pretty Process Slave Startup Time> :quit
Leaving GHCi.

On the second run, Intero still recompiles all the modules, claiming flags changed for every single module.
Questions

Is this behaviour by design?
Is there a way to persuade Intero to reload previously-compiled modules, rather than recompiling everything from scratch each time? Ideally, it would be able to detect objects built during the stack build phase.

Apologies if I am invoking intero in completely the wrong way, or if I've overlooked something obvious. :)
Thanks in advance!

This normal and expected. Intero is normally run for long periods of time (e.g. Days) in an Emacs pipe, so restarting is rare but expensive. On a 200-300 module project, that hurts, indeed. But it just takes a minute or two.


Fix public key output

Content of host public keys is broken:
https://github.com/aptituz/puppet-openssh/blob/master/manifests/hostkey.pp#L62
Should be replaced by only using $rsa_pub.

Fixed.


Sync is not working because of issues in spotify-client on RPI with missing support of armhf

Hey good evening. Very nice project, which i want to use for my kinds streaming spotify-playlists via a tonie-figure. I have done the following steps:

Install the spotify client via "raspotify" (https://github.com/dtcooper/raspotify), because of issues like "Das Laden der konfigurierten Datei »non-free/binary-armhf/Packages« wird übersprungen, da das Depot »http://repository.spotify.com stable InRelease« die Architektur »armhf« nicht unterstützt." if i wanted to install it through your step "sudo apt-get install -y spotify-client".
Install was working fine with an easy-install method:
curl -sL https://dtcooper.github.io/raspotify/install.sh | sh

I must change your link for the repository-clone to get it installed - because it has changed

git clone https://github.com/maximilianvoss/spotify-toniebox-sync.git
ln -sf $PWD/spotify-toniebox-sync/bin/sp /usr/local/bin
ln -sf $PWD/spotify-toniebox-sync/bin/stream_recorder.pl /usr/local/bin/

I found all the codes I need for the property-files and generated the refreshToken

I did the mapping for the daemon in the properties, and started the daemon after installing maven on my RPI and bulding a jar with all dependencies.

Can you help me please on the issue regarding spotify - i guess the client is not working the same as the one you suggested and also the double-check of ? Thanks, Erik.

Hi Erik,
my apologies for the very late reply - was not really observing the Github notifications.
If I'm not mistaken the issue is that Spotify is not running natively on RaspberryPi. Let me investigate on this and maybe we can make it work somehow.
Keep posted.
Max


How to set default open file .env

Hello,
After install this extension, but when open it is not type file is: "Environment Varible"
it auto is "shellscript"
How to set default?

My setting:

I'm also having a problem like this: https://github.com/mikestead/vscode-dotenv/issues/26

Thanks for the report. This extension hasn't changed in a long time, and I can't reproduce it with my install in latest vscode.
Do you have any extensions related to shell scripting that could be overriding this? If it's not that then it must be a breaking change to vscode itself, although I can't spot anything obvious.


[Docs] Fix the wrong implementation documents

Fixes #1058
Motivation
The implementation documents are wrong and might make users confused.
Modifications

Replace the legacy implementation of Kafka offset with the way from KoP 2.8.0.
Explain why Kafka group cannot be managed via pulsar-admin.

Documentation
Need to update docs?

[ ] doc-required
[ ] no-need-doc
[x] doc

@Huanli-Meng PTAL


Do you support the call of SAP's RFC function?

Do you support the call of SAP's RFC function?

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


Changed FlowLayout to BlazeLayout in Group Routes code example in README

Just helping keep the docs up to date :)

Thanks.


Allow renaming properties in migrations

Fixes #2574. @tgoyne @bdash

We talked about this briefly today and I mentioned a couple of issues with the current approach:

The "deleted" properties are accessible on objects from the new version within the migration block.
Renaming a property then later introducing a new property with the old name doesn't look like it'll work.
Renaming the same property multiple times over the lifetime of a schema doesn't look like it'll work.

1: The "deleted" properties are accessible on objects from the new version within the migration block.

This can be addressed by renaming the columns of deleted properties to a unique ID at the start of the migration, and maintain a map of names/uuids to use in the renaming operation.

2: Renaming a property then later introducing a new property with the old name doesn't look like it'll work.

I think it's necessary to remove all new schema validation altogether because of this, and other multi-version schema change scenarios.

3: Renaming the same property multiple times over the lifetime of a schema doesn't look like it'll work.

How about falling back to looking up the property by name in the new Realm? This would allow the following scenarios:
// v0
class A: Object {
  dynamic var p1 = 0
}
// v1
class A: Object {
  dynamic var p2 = 0
}

I'd like to get feedback on those changes before implementing them /cc @bdash @tgoyne.
Overall, a "simple" operation like renaming a property is complicated by not tracking intermediate schema changes. Other migration operations are also blocked on this design decision.

Latest feedback and issues from @bdash have now been addressed, so this is once again ready for review @tgoyne @bdash

I've beefed up the tests and fixed some update issues in the process, so this is ready for yet another round...

It'd be great to get this in the next release. Let me know if you have any concerns over this @tgoyne @bdash

The error when a property is left with a name that does not appear in the final schema is misleading and confusing (it says that a migration is required, when a migration has just run).

The error when a property is left with a name that does not appear in the final schema is misleading and confusing (it says that a migration is required, when a migration has just run).

Fixed. Now says "Renamed property '...' is not in the latest model.".

👍


Add version: Erlang.ErlangOTP version <IP_ADDRESS>

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/115452&drop=dogfoodAlpha

@wingetbot run


Custom collectors for prometheus.exporter.mssql

Request
I would like to write custom collectors for prometheus.exporter.mssql component. Ideally in a similiar way as in original sql_exporter. For example
prometheus.exporter.mssql "LABEL" {
  connection_string = "CONNECTION_STRING"
  collector_files = "*.collector.yml"
  collectors = ["mssql_*"]
}

or write them explicitly in config.
Use case
I need to write custom collectors for mssql.


Convert audio files to spectrograms to incentivize their creation

Most major platforms for audio recordings (xeno-canto, eBird etc) render them as spectrograms, which are widely used in the community to learn and identify bird calls and songs. There are severals open source libraries to generate spectrograms and I expect displaying them instead of a giant audio icon would encourage more iNat users to share them. Right now all my audio recordings go to eBird/Macaulay Library but I'd love to start uploading them here too.

The staff usually want people to create feature requests on the forum, rather than on github. There's already an open topic for this request here, which you can comment on and/or vote for: https://forum.inaturalist.org/t/automatically-add-a-spectrogram-view-to-observations-with-sounds/3579

Posted there, thanks.


PDF generation not working in v1.7.4

Today I downloaded v1.7.4. While generating the PDF an error occurred and no PDF was generated.
I had to downgrade to v1.7.3, where I was able to generate the PDF.
I promise I will add more detail to this issue, I'm in a rush but I wanted the community to know about the problem.
AsciidocFX is a great product, thanks @rahmanusta.

Hi, thanks for reporting. Could you please share a sample document to check the issue?

Hi, I've downloaded v1.7.4 again to try triggering the issue again, but luckily everything works now.
The 1.7.4 release from two days ago fixed the issue I had went the 1.7.4 from 6 days ago.
Thanks!


✨ Introduce create-only bit in downsync API

Summary
This PR introduces the API changes for a feature whereby a user can mark a workload object for propagation in "create-only" mode (#2336).
I plan to update the binding controller and generic transport controller in later PRs.
This feature can not be completed until a release of this repo is made, then changes are made in https://github.com/kubestellar/ocm-transport-plugin (https://github.com/kubestellar/ocm-transport-plugin/issues/34) using this new API, then a release of that repo, then this repo is updated to use that release.
Related issue(s)
This addresses part of #2336.

/cc @vMaroon
/cc @waltforme
/cc @pdettori
/cc @cwiklik
/cc @nirrozenbaum

@vMaroon: I see that the transition plan was not obvious. I have pushed a revision that includes an explicit outline of the plan. That should address the points you raised above.

A little more detail on the problem: this repo (ks/ks) is tested together with the latest release of ks/OTP --- which does not implement the new wrapping method. So we have to break it into multiple steps, where each step does not break the other repo and building creates a system that works end-to-end (at least for the older functionality).

Thanks @MikeSpreitzer that makes more sense.
There is 1 concern in the "unresolved" comment then good to go from my side.

/lgtm

/approve


⚠ Bofrost.be has degraded performance

In 443eba9, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1326 ms

Resolved: Bofrost.be performance has improved in 5cb4add.


Flexible install_command. Do not assume internet acces.

Currently chef-provisioning assume we have internet access to install chef. It would be super awesome if we could customize the install_command coming from here https://github.com/chef/chef-provisioning/blob/master/lib/chef/provisioning/convergence_strategy/install_sh.rb#L44

Additionally, README.md includes a convergence option to work around this, install_sh_url, but it doesn't actually work.   The install_sh convergence strategy uses mixlib/install, which ignores the option entirely.

It looks like install_sh_url last worked in v1.2.1.  Versions v1.3.0 and above moved to mixlib/install.

I'm also hitting this.

Ran into this today.


Improve the measure module due to the integration

API: move "interval" from Group to Measure
API: introduce "ID" tag type
Test: add skywalking style mock data

Signed-off-by: Gao Hongtao<EMAIL_ADDRESS>

@lujiajing1126 the new measure mocking data could be as a reference how to implement the OAP storage plugin.


Correct the spelling of CocoaPods in README

This pull requests corrects the spelling of CocoaPods 🤓
https://github.com/CocoaPods/shared_resources/tree/master/media
One day I’ll make a bot that looks through the READMEs of all Pods, looks to see if it uses “Cocoapods” and PRs “CocoaPods” :D— Ørta (@orta) February 10, 2016

Hi @ReadmeCritic, thanks for the pull request. Before we can merge it, we need you to sign our Contributor License Agreement. You can do so electronically here: http://opensource.box.com/cla
Once you have signed, just add a comment to this pull request saying, "CLA signed". Thanks!

CLA signed

Verified that @ReadmeCritic has just signed the CLA. Thanks, and we look forward to your contribution.


FancyZones: shift / mouse button to activate zones not working unless move mouse after press

Microsoft PowerToys version
0.67.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
FancyZones
Steps to reproduce

Have "Hold Shift key to activate zones while dragging" and "Use a non-primary mouse button to toggle zone activation" selected in settings:

Move window with mouse.

Stop moving window when in desired zone.

Use shift or non-primary mouse button to activate zones, only get light blue and zones do not activate. If I release the button now, the window does not snap as it did previously.

I need to move the window AFTER shift/mouse button to get dark blue zone activation and have the window snap.

This is a change, I am not sure if it is intended. My previous muscle memory with this is I drag the window, stop, left click and expect it just to snap, but it doesn't. I get I can have it work if I change so I do the shift / left click before I stop moving the mouse, but at least for me, this is a negative change as it's one extra action now I need to remember to do (or need to remember to hold down the button before I stop dragging). If it is intentional, OK, but maybe it's not intentional- I don't see the value in shift/button showing the light grey zones but not working
✔ Expected Behavior
Zones activate (dark blue) so that when shift / non-primary mouse button is released, the window snaps.  This was the previous behavior.

❌ Actual Behavior
Zones appear in light blue and when shift / non-primary mouse button is released, the window does not snap. After use of shift / mouse button it is necessary to further move the mouse, BEFORE releasing the button- then the zones activate.

Other Software
No response

I am having the very same issue! Sorry I didn't see this, I don't know how to join my ticket here. 😬

Thanks for the comment. Here is the bug report zip.
One other thing I did do was close all software including everything in my system tray and any services I thought might possibly have an interaction, but same behaviour. So as far as I am aware I wasn't able to find an interaction.
I have four monitors but behaviour is the same if I remove three and am just using my laptop screen.
PowerToysReport_2023-02-07-11-12-09.zip

@SeraphimaZykova it took me a minute too, but it's totally reproducible. Check the both checkboxes as shown, then first move a window, then right-click, but do not move the mouse one pixel. Expectation is that the underlying zones is actually selected immediately.

Closing this issue because another similar one has been already marked as in progress. Thank you!
/dup https://github.com/microsoft/PowerToys/issues/24326

@SeraphimaZykova It seems that there has been a regression and this bug is back after I updated to v0.79.0 (I hadn't updated in a while, so I am not sure when it returned).
I am leaving a comment on both primary issues reported for this.


Minor fix for star-tree creation logs

Codecov Report

Merging #4215 into master will decrease coverage by 0.23%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #4215      +/-   ##
============================================
- Coverage     67.35%   67.12%   -0.24%
  Complexity       20       20
============================================
  Files          1036     1036
  Lines         51535    51536       +1
  Branches       7220     7220
============================================
- Hits          34712    34593     -119
- Misses        14438    14573     +135
+ Partials       2385     2370      -15

Impacted Files
Coverage Δ
Complexity Δ

...ore/startree/v2/builder/BaseSingleTreeBuilder.java
95.26% <100%> (+0.02%)
0 <0> (ø)
:arrow_down:

...apache/pinot/common/metrics/ValidationMetrics.java
20.28% <0%> (-59.43%)
0% <0%> (ø)

...ller/validation/OfflineSegmentIntervalChecker.java
32.46% <0%> (-50.65%)
0% <0%> (ø)

...r/validation/RealtimeSegmentValidationManager.java
43.33% <0%> (-41.67%)
0% <0%> (ø)

...e/operator/dociditerators/SortedDocIdIterator.java
55.55% <0%> (-8.34%)
0% <0%> (ø)

...he/pinot/controller/util/SegmentIntervalUtils.java
0% <0%> (-7.15%)
0% <0%> (ø)

.../impl/dictionary/LongOffHeapMutableDictionary.java
87.27% <0%> (-5.46%)
0% <0%> (ø)

.../org/apache/pinot/transport/netty/NettyServer.java
80.8% <0%> (-3.04%)
0% <0%> (ø)

...org/apache/pinot/common/metrics/MetricsHelper.java
72.5% <0%> (-2.5%)
0% <0%> (ø)

...inot/core/operator/docidsets/AndBlockDocIdSet.java
55.55% <0%> (-2.09%)
0% <0%> (ø)

... and 17 more

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 3e6733f...b27799e. Read the comment docs.


track.type(3) error

track.type(0),(1), and (2) all work fine but type (3) returns:
"The provided value 'saw' is not a valid enum value of type OscillatorType."

Good catch! Fixed.


Move scigraph util to ontobio; better handling of ontobio objects; set owlsim limits

This is the companion PR for https://github.com/biolink/ontobio/pull/588

[x] Move scigraph_util and biomodel data style classes to ontobio
[x] #380
[ ] Remove biolink yaml configuration and set ontobios config via a .env file
[ ] Improve how we're creating ontobio objects to fix some of my hacky singleton work

Going to come back to 3 and 4 in another PR

note that the tests will fail until biolink/ontobio#588 is merged and put on pypi

@dustine32 would it be possible to push a new release of ontobio? I'll need it to get these tests to pass

@kshefchek Oh yes, for sure I will make an ontobio release today!

@kshefchek Just released ontobio-2.7.11!


[FEATURE] Add ruff formatter instead of black

Is your feature request related to a problem? Please describe.
Ruff recently added a formatter of its own, it could be a good addition given we already use ruff.
Describe the solution you'd like
Run ruff format instead of black as part of pre-commit if it makes sense.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
There is a FAQ.

@plaguss don't forget the labels ;)


Define XCTestClosure typealias

I believe the following type alias can improve the readability of the code, what do you think?

I like it! Could we brainstorm some additional names, tough? In the context of the XCTest framework, XCTestClosure could refer to any closure, so I feel it's ambiguous. Maybe XCTTestMethodClosure? Or something else?

Of course!
I choose XCTestClosure because I tend to favor shorter names. Initially I was thinking in XCTestCaseClosure, but I also like XCTestMethodClosure.
Let me know which one you prefer and I will make the change.

Personally I like XCTestCaseClosure -- in theory these don't have to be methods, after all.

@modocache I changed it to XCTestCaseClosure

@swift-ci please smoke test and merge

@swift-ci please test

There was some problem with the merge?

@swift-ci Please test

Thanks guys, this does look good!