allow use of chaise navbar app

Once the navbar app for GUDMAP/RBK is ready (there are some integration bugs with the jekyll site I'm working out) it would be great to be able to add the navbar to the webapps (ie, boolean search).

@crisaless this is done.. Can you please review and report any problem to @Divyata-Singh .

@vipul-21 please verify this by browsing through the navbar while in boolean search. Try selecting menu at multiple dept.

@hongsudt The navbar is working fine in boolean search. Closing the issue.


vscode default python interpreter is not the terminal python interpreter

The default available/selected interpreter for VSCode itself is /bin/python3.11
The terminal default interpreter is /opt/app-root/bin/python
Because of this, when you install packages with pip install in the terminal (which you have to do), they don't go where vscode is looking for them. This results in pylint using the wrong python which then can't find any of the modules you installed, so all the intellisense things break.

I have found a solution for it, will probably first present them in the context of "Visual Studio / Code Server airgapped" PR here.

The key is: creating a settings.json for User settings in a specific directory.
https://github.com/opendatahub-io/notebooks/commit/8d23be442e7e1b3de6480e2c8b28d05b70c5cc54
Also passing a certain value / writing it into that settings.json
"python.defaultInterpreterPath": "/opt/app-root/bin/python3"


EKS / AKS 2.7.7 Q3 Release testing

The validation procedure follows this guide and test plans

https://confluence.suse.com/display/EN/Test+Plan+-+Kontainer+Engine+2.0
https://confluence.suse.com/display/EN/AKS+v2+Test+Plan

Build Details:
v2.7-10d02ae6827fd549ae0f373be84a5e327999925b-head
aks-operator:v1.1.3-rc1
eks-operator:v1.2.2-rc3


bugfix: structured arrays v2

Alteranative to #22 for clsoing #16
Still segfaults on my box though.

Yay, no more segfaults.

Fixes #16

Coverage remained the same at 95.16% when pulling fa573fca4553c228f2c90854fe49f4b726e9d192 on esc:vh/bugfix/structured_arrays_v2 into dd218b24aa1f76d19a80e69ad7b568915ea884c9 on Blosc:maint-0.7.x.

Oh yeah!


Support for fn -> end in Elixir?

In Elixir, fn always needs and end, similar to do. There are a few cases though...
# no args
fn ->

end

# with args
fn x ->

end

# without the arrow (for multiple heads)
fn

end

Thanks for considering!

I'm open to PRs, I don't personally maintain the elixir queries.

@rspeicher Little help? I have no idea how to do this. Looking at the existing code...
(((do_block "do" @cursor) @endable @indent) (#endwise! "end"))

I could probably get fn end to work, but not sure how to have optional args and ->. Thanks!

@cjbottaro Sorry, I'm not sure either. I haven't gotten to do any Elixir in over a year, and I'm not familiar enough with the Treesitter syntax to expand on it.


magnifying glass icon disappears in nav bar

When I was searching for a study, the magnifying glass icon disappeared from the nav bar although the search bar stayed visible, making it impossible for a user to close the search bar. This persisted after refreshing the page.
However, I opened the OSF in a new tab and the magnifying glass icon appeared as expected in the new window.
On production using chrome.

Good catch -- @brianjgeiger I ask: What is intended functionality here for exiting search? Thanks.

I talked with @mckidwell; this is as intended. She's on the search page, so there is always search capability there. If she were bothered by the behavior, it might be worth examining, but she just thought it wasn't intended.

Perhaps the search icon could sit in front of the text input? Would that
clarify what's going on?
On Tue, Feb 17, 2015 at 5:45 PM, Brian J. Geiger<EMAIL_ADDRESS>wrote:

Closed #1834 https://github.com/CenterForOpenScience/osf.io/issues/1834.
—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/issues/1834#event-237304321
.

That's not a bad idea.


Update dataset interface

@ramppdev this is a draft PR for changing the underlying dataset. I want your feedback on whether I'm on the right direction before finishing/debugging/testing.
Basically I have done two major changes:

Use @cached_property for train_df, dev_df, test_df, which defaults to the current structure, but can be overriden if the user doesn't want to change the original format. I also adapted the datasets already which cannot be downloaded automatically. For those that can, I have no problem with the original format.ee

Change the preprocess_script to instantiate the dataset rather than load the CSVs manually, then rely on the DatasetWrapper and torch.utils.data.DataLoader interfaces for iterating through the data, extracting features, and storing the data

There's probably a few other things to change, but hopefully this would relax the restrictions we have on the "hard" dataset format and rely on the programmatic interface of DatasetWrapper..
So let me know what you think of this new format and whether I've messed up something greatly before I continue!

Ok i have some general questions on the intended functionality to understand it fully:

the goal is to relax the dataset configuration such that the dataframes can be located anywhere + have any format (e.g. txt files for AIBO)? By default the CSVs are expected to be located in {path}/train.csv and so on?
delegate loading and returning the dataframes to the dataset instance during preprocessing such that we do not rely on a fixed format

delegate loading and returning the dataframes to the dataset instance during preprocessing such that we do not rely on a fixed format

Yes, that's the main place where we need our fixed format, right? Ultimately, we also need this for datasets where we don't have (file, label) tuples but rather (segment, label) ones, i.e. a file contains multiple segments each with a different label.

Essentially, yes. We currently force the following format:

all processed {feature_subdir}(s) to be present in {path} alongside all dataframes
dataframes being CSVs with commas as separators etc.
the index_column being relative to feature_subdir
the default audio data being located in {path}/default and the audio having the exact file type specified in the actual CSVs as file endings (we overlay this using file_type when using preprocessed features)

We currently also dont support segments of a file, but we could add a transform to trim this in the future (with the dataclass refactor that could provide this additional information or sth similar).
But this is generally tricky when preprocessing features and the shape changes (e.g., time-based segmentation wont work then).
Our current solution was to just handle this in the dataset download method and crop / extract the segments, but we dont have such a dataset at the moment as an example.

Had to adapt the tests for AIBO to get it working with the new interface, but now it should be ready for review (hopefully for the last time)

Some tests are failing as preprocessing/default should be skipped, just tag me once all are passing and i will review it :)

Some tests are failing as preprocessing/default should be skipped, just tag me once all are passing and i will review it :)

Ready!

If tests past, I will have a final look and merge soon to move on with the other PRs.


Update Knative serving to latest 0.4.1 release

The Istio YAML is identical, since we already have the istio-riff-knative-serving-v0-4-0-patch I figured we might as well keep the v0.4.0/istio.yaml

The Istio YAML is identical, since we already have the istio-riff-knative-serving-v0-4-0-patch I figured we might as well keep the v0.4.0/istio.yaml

I created
https://storage.googleapis.com/projectriff/istio/istio-riff-knative-serving-v0-4-1-patch.yaml for you


Angular 2 component

Please implement Angular 2 component

@Ma3yTa I'll check this when final Angular 2 version will be released.

Any news on this?

@inferpse, @konstrui  We use your plugin in our angular 1.x apps, we have migrated to angular 2.x.  I wrote a module to import JCF into angular 2.x projects.  https://github.com/TrimAgency/angular-jcf-module

@dominiquemiller good job!
@Ma3yTa FYI


clusterqueue_controller panics when workload has no admission

What happened:
We have recently updated kueue to 0.6.2. After some time the kueue manager started crashing with the following panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x18eb046]

goroutine 311 [running]:
sigs.k8s.io/kueue/pkg/controller/core.(*cqWorkloadHandler).requestForWorkloadClusterQueue(0xc0007a8398, 0xc00069b180)
	/workspace/pkg/controller/core/clusterqueue_controller.go:466 +0x106
sigs.k8s.io/kueue/pkg/controller/core.(*cqWorkloadHandler).Generic(0x2b298a0?, {0xc0008284b0?, 0x8?}, {{0x2b50680?, 0xc00069b180?}}, {0x2b3b1f0, 0xc000061900})
	/workspace/pkg/controller/core/clusterqueue_controller.go:457 +0x45
sigs.k8s.io/controller-runtime/pkg/source.(*Channel).Start.func2.1({0x2b298a0?, 0xc0008284b0?}, {0x2b29f90, 0xc0007a8398}, 0xc000c21fb0, {0x2b3b1f0, 0xc000061900})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.0/pkg/source/source.go:133 +0x92
sigs.k8s.io/controller-runtime/pkg/source.(*Channel).Start.func2()
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.0/pkg/source/source.go:134 +0xf2

Upon further inspection we found that there is one workload object that has no status.admission.clusterQueueName:

apiVersion: kueue.x-k8s.io/v1beta1
kind: Workload
metadata:
  creationTimestamp: "2024-05-10T14:00:13Z"
  deletionGracePeriodSeconds: 0
  deletionTimestamp: "2024-05-10T14:00:56Z"
  finalizers:
  - kueue.x-k8s.io/resource-in-use
  generation: 2
  labels:
    kueue.x-k8s.io/job-uid: 1e2d56d7-fd7f-491a-9c21-44f76a590195
  name: job-2ubekr94fbs28fshqol59hnkvn5o75u9m04o7p1dlbfhgebldqh0-1553e
  namespace: jobs
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: Job
    name: 2ubekr94fbs28fshqol59hnkvn5o75u9m04o7p1dlbfhgebldqh0
    uid: 1e2d56d7-fd7f-491a-9c21-44f76a590195
  resourceVersion: "518239260"
  uid: b16437ac-d500-46c8-9688-0a8e3a1e306f
spec:
  active: true
  podSets:
  - count: 1
    name: main
  priority: 0
  priorityClassSource: ""
  queueName: lq
status:
  conditions:
  - lastTransitionTime: "2024-05-10T14:00:44Z"
    message: Quota reserved in ClusterQueue cq
    reason: QuotaReserved
    status: "True"
    type: QuotaReserved
  - lastTransitionTime: "2024-05-10T14:00:44Z"
    message: The workload is admitted
    reason: Admitted
    status: "True"
    type: Admitted
  - lastTransitionTime: "2024-05-10T14:00:56Z"
    message: Job finished successfully
    reason: JobFinished
    status: "True"
    type: Finished

We use kueue by assigning labels to a k8s job as described here: https://kueue.sigs.k8s.io/docs/tasks/run/jobs/
To me it seems like there's a race condition in the controller logic as we had the new version (0.6.2) running for some time until it crashed. We had to scale down the deployment, delete the validating/mutating webhooks so we can manually get rid off the workload. After restarting everything back, it worked for 2-3 hours until the same panic reoccurred.
For completeness, here's our resource flavor, local and cluster queue definitions if those are needed:
---
apiVersion: kueue.x-k8s.io/v1beta1
kind: ResourceFlavor
metadata:
  name: sandboxed
spec:
---
apiVersion: kueue.x-k8s.io/v1beta1
kind: ClusterQueue
metadata:
  name: cq
spec:
  namespaceSelector: {}
  resourceGroups:
  - coveredResources: ["cpu", "memory"]
    flavors:
    - name: sandboxed
      resources:
      - name: "cpu"
        nominalQuota: 1500m
      - name: "memory"
        nominalQuota: 12Gi
---
apiVersion: kueue.x-k8s.io/v1beta1
kind: LocalQueue
metadata:
  namespace: jobs
  name: lq
spec:
  clusterQueue: cq # Point to the ClusterQueue cq

We have deployed everything as specified in the 0.6.2 manifests:
https://github.com/kubernetes-sigs/kueue/releases/download/v0.6.2/manifests.yaml
The deployment's container are using the following images:
manager: registry.k8s.io/kueue/kueue:v0.6.2
kube-rbac-proxy: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0

Environment:

Kubernetes version (use kubectl version):  1.27.7-gke.1121002
Kueue version (use git describe --tags --dirty --always): 0.6.2
Cloud provider or hardware configuration: We're using GKE for our k8s cluster

Thank you for creating this issue!

Could you share which Kueue version you used before upgrading to v0.6.2?
When was the Workload without .status.admission.clusterQueue created? Before upgrading to v0.6.2? Or, After upgraded to v0.6.2?
When did the Workload without .status.admission.clusterQueue finish? Before upgrading to v0.6.2? Or, After upgraded to v0.6.2?

Thank you for the quick reply @tenzen-y!

We used kueue v0.3.0 before that, see the images we had deployed for the manager:

manager: gcr.io/k8s-staging-kueue/kueue:v20230214-v0.3.0-devel-253-g2d3f81a
kube-rbac-proxy: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0

It was created after we updated to 0.6.2. The 0.6.2 kueue had been running for some time when this happened. Also worth pointing out there were also workloads that were fine, they had the .status.admission field being set. This was not the only problematic one, it was just one of the few I had grabbed the YAML output for.
It finished long time after we deployed 0.6.2, the timestamps in the yaml file above indicate it only took ~30 seconds (which matches my expectations, based on the job it was).

For what its worth, I found this recent PR https://github.com/kubernetes-sigs/kueue/pull/2171/ where it looks like a nil check is being added against the .status.admission field if that's of any help (although that's in a different controller)

@trasc sure! Here's a slightly redacted yaml spec, just the values have been substituted. I have dropped themanagedFields for brevity, let me know if you want those too:
apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    batch.kubernetes.io/job-tracking: ""
    kueue.x-k8s.io/queue-name: lq
  creationTimestamp: "2024-05-14T10:26:57Z"
  generation: 2
  labels:
    jobId: 43puiv1uboj90atcjnfflbhc92dd33fbn7kohq5736alneho8a1g
  name: 43puiv1uboj90atcjnfflbhc92dd33fbn7kohq5736alneho8a1g
  namespace: mondoo-job-runner-jobs
  ownerReferences:
  - apiVersion: k8s.mondoo.com/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: SomeKind
    name: 43puiv1uboj90atcjnfflbhc92dd33fbn7kohq5736alneho8a1g
    uid: 0c116262-3e62-4f84-baa7-9449e254f890
  resourceVersion: "522584798"
  uid: 193bd7a6-2806-447c-b48a-58a6360f29ac
spec:
  activeDeadlineSeconds: 7200
  backoffLimit: 0
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  podFailurePolicy:
    rules: null
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 193bd7a6-2806-447c-b48a-58a6360f29ac
  suspend: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        batch.kubernetes.io/controller-uid: 193bd7a6-2806-447c-b48a-58a6360f29ac
        batch.kubernetes.io/job-name: 43puiv1uboj90atcjnfflbhc92dd33fbn7kohq5736alneho8a1g
        controller-uid: 193bd7a6-2806-447c-b48a-58a6360f29ac
        job-name: 43puiv1uboj90atcjnfflbhc92dd33fbn7kohq5736alneho8a1g
    spec:
      automountServiceAccountToken: false
      containers:
      - args:
        - stuff
        command:
        - cmd
        env:
        - name: env
          value: var
        image: img
        imagePullPolicy: Always
        name: name
        resources:
          limits:
            cpu: 250m
            memory: 2000Mi
          requests:
            cpu: 250m
            memory: 2000Mi
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          privileged: false
          readOnlyRootFilesystem: false
          runAsNonRoot: true
          runAsUser: 999
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /config
          name: config
          readOnly: true
      dnsConfig:
        nameservers:
        - <IP_ADDRESS>
        - <IP_ADDRESS>
      dnsPolicy: None
      restartPolicy: Never
      runtimeClassName: gvisor
      schedulerName: default-scheduler
      securityContext:
        runAsNonRoot: true
        runAsUser: 999
      terminationGracePeriodSeconds: 0
      volumes:
      - name: config
        secret:
          defaultMode: 420
          optional: true
          secretName: 43puiv1uboj90atcjnfflbhc92dd33fbn7kohq5736alneho8a1g

Thanks @preslavgerchev , I'll have a deeper look on this.
/assign

Thanks @preslavgerchev , I'll have a deeper look on this.
/assign

Thank you for taking this. I'm suspecting that QuotaReserved brought us breaking change without backward compatibility since we added it recently.

@preslavgerchev is there any chance you still have v1alpha2 kueue CRDs installed, temporary storing a workload as v1aplpha2 will explain losing both the spec.podSets[0].template (which used to be a PodSpec) and status.admission (which used to be stored in spec).
@alculquicondor  have you encountered something like this?

@preslavgerchev is there any chance you still have v1alpha2 kueue CRDs installed, temporary storing a workload as v1aplpha2 will explain losing both the spec.podSets[0].template (which used to be a PodSpec) and status.admission (which used to be stored in spec).

@trasc, as part of our update flow we updated the CRD spec.versions to hold both v1alpha2 and v1beta1. However, we did update the alpha one with storage:false and set storage:true only for the beta1 versions. However, served was still marked as true, maybe that was a problem?
Here's a link to the CRDs as we had them deployed as part of the upgrade
https://gist.github.com/preslavgerchev/9f8ec2840a669133a535a36177d78b7e

@preslavgerchev is there any chance you still have v1alpha2 kueue CRDs installed, temporary storing a workload as v1aplpha2 will explain losing both the spec.podSets[0].template (which used to be a PodSpec) and status.admission (which used to be stored in spec).

@trasc, as part of our update flow we updated the CRD spec.versions to hold both v1alpha2 and v1beta1. However, we did update the alpha one with storage:false and set storage:true only for the beta1 versions. However, served was still marked as true, maybe that was a problem?
Here's a link to the CRDs as we had them deployed as part of the upgrade https://gist.github.com/preslavgerchev/9f8ec2840a669133a535a36177d78b7e

Unfortunately I don't know how to dig dipper in this multiple CRD version scenario, can you remove the v1alpha2 CRD version and check if the issue will reproduce.

Maybe additionally confirm if there is no other old pod of Kueue running. If there is a Pod running v0.2.x, then it might be responding to webhooks and dropping fields.

Yeah, but the webhook wouldn't drop conditions... it doesn't validate names of conditions, IIRC.
We see that the Workload shared by the OP has no podset template or admission fields, which are two things that changed when we released v1beta1

So ... we have wl admitted by the new kueue and the old kueue doing an update and dropping the template and admission .... it could be it.

hi @trasc, sorry for the late reply on this one.
I currently cannot safely drop the v1alpha2 definition from the CRD and update as I worry there might be currently running workloads, which will be defined in the alpha version. If we were to deploy the beta controller, the same problem will occur I believe.
If this is the recommended approach, I will look into first stopping kueue entirely, ensuring there are no workload objects in the cluster and then upgrading.

Hi @preslavgerchev,
Who is creating and managing v1alpha2 Workloads?
The kueue controller manager uses only v1beta1 since v0.3.0.

Hi @preslavgerchev, Who is creating and managing v1alpha2 Workloads? The kueue controller manager uses only v1beta1 since v0.3.0.

That should be the kueue controller. The only way we create jobs is by labelling k8s jobs with the kueue.x-k8s.io/queue-name label. We do not create the Workloads in any way.
When we upgraded, there were no workload objects in the cluster. Which means that the new kueue controller (v0.6.2) had taken a k8s job with that label and created a workload object for it with the missing admission and pod set fields

Maybe additionally confirm if there is no other old pod of Kueue running. If there is a Pod running v0.2.x, then it might be responding to webhooks and dropping fields.

Can confirm, we only had one pod (0.6.2) of the controller manager running

That should be the kueue controller. The only way we create jobs is by labelling k8s jobs with the kueue.x-k8s.io/queue-name label. We do not create the Workloads in any way.

The newer version of kueue controller v0.3+ are only using v1beta1 api, any job integration controller within kueue should be able to recreate the workload associated with a job in case the  podDet template is missing.
If there is no old kueue or custom controller working with v1aplha2 there should be issue dropping the CRD.

@preslavgerchev can you open a support ticket with GKE as well?

/close
Please reopen if the issue persists or you find more data points.


Collect available fee with vyper.js

The vyper.js SDK offers methods to collect available fees, calling this entrypoint:
https://github.com/vyper-protocol/vyper-core/blob/6c801e93d0294f9785383a53971dc7a97e185bf7/programs/vyper-core/src/lib.rs#L55

closed with https://github.com/vyper-protocol/vyper-core/pull/53


Any way to Read parquet records before appending to file

Is there anyway to read the parquet converted record before writing it into parquet file.
My requirement is to create a parquet file directly into azure data lake without storing it locally.

Using the parquets package I've been able to stream out parquet data without saving to a temporary file, it supports node streams.  It will write out the data one row group at a time, though, so you do need enough memory to hold a full row group.  This is a limitation of parquet.

eam out parquet data

can you please provide more insight into the code perspective? It will be very helpful.

Using the parquets package I've been able to stream out parquet data without saving to a temporary file, it supports node streams. It will write out the data one row group at a time, though, so you do need enough memory to hold a full row group. This is a limitation of parquet.

can you please provide more insight into the code perspective? It will be very helpful.


Signed-off-by: William Albertus Dembo<EMAIL_ADDRESS>

Address #59


Only allow publishing of posts that build successfully.

Is your feature request related to a problem? Please describe.
When posts are corrupted, in our case an invalid date format was used for the date frontmatter which led to post branches that did not build correctly, are merged into master all builds are broken going forward requiring developer intervention.
Describe the solution you'd like
Option to prevent publishing a post until post preview is built successfully.

Hmm we're already grabbing repo status checks for preview links, this might not be too difficult to implement.


Ansible vault support

ERROR! ansible-vault requires either the cryptography library (preferred) or pycrypto in order to function.
Need python-crypto/pycrypto package for correct work ansible-vault.

It should work since https://github.com/William-Yeh/docker-ansible/commit/17b0a870d18c2e66bfcbc93b1b5895e094d611b0

Hello, this is still failing using the debian8 tag:
$ docker pull williamyeh/ansible:debian8
debian8: Pulling from williamyeh/ansible
4b105072aa89: Pulling fs layer
276e1aa1557c: Pulling fs layer
276e1aa1557c: Verifying Checksum
276e1aa1557c: Download complete
4b105072aa89: Verifying Checksum
4b105072aa89: Download complete
4b105072aa89: Pull complete
276e1aa1557c: Pull complete
Digest: sha256:e765598e3bed2e1f6992197aa7dc5295fd8b998cb0ce0e576d832a0e1848c3ff
Status: Downloaded newer image for williamyeh/ansible:debian8

$ docker run --rm -it williamyeh/ansible:debian8 ansible-vault encrypt_string asecret
New Vault password:
Confirm New Vault password:
ERROR! ansible-vault requires either the cryptography library (preferred) or pycrypto in order to function.


Update Dashboard components to Carbon X

Summary
This is part of the effort to get dashboard components using Carbon x styling and components. Adding test for Card and Dashboard to bring their coverage out of the red.
Change List (commits, features, bugs, etc)

Card.jsx
Dashboard.jsx
DashboardHeader.jsx

Related Issues

related IBM/carbon-addons-iot-react#306

Acceptance Test (how to verify the PR)

Go trough dashboard and look for regressions and check for console warnings/errors

:tada: This PR is included in version 2.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Get access to JSON schema hover context

I would like to customize the JSON schema hover provider to display more information than the JSON schema definition description of the hovered property . Currently, I need to register a custom HoverProvider and figure out the currently hovered JSON property by manually parsing the highlighted text. I feel like this is reinventing the wheel as the native JSON hover provider has all the necessary contextual information. Would it be possible to have access to that information ? All I really need is the currently matched JSON schema definition.
Keep up the great work !

fyi @aeschli

The JSON language service runs in its own worker thread. Adding APIs to accessing its information at runtime is difficult. Also, we rather not add new API that might be hard to maintain.
But you can use the same library that the JSON language service uses: jsonc-parser. getLocation gives you the property at a given location.


ImportError: cannot import name 'queue' from 'torch._six' (/home/liqi/.local/lib/python3.8/site-packages/torch/_six.py)

或许可以帮我解释一下这个问题吗

可能是python版本的问题吧，你换成python3.6试试，重新创建一个python3.6的环境，在里面配置pytorch

how do you solve this question?

how do you solve this question?

how do you solve this question?

create a new environment by "conda create -n environment_name python==3.6", you can try it.


Remove redirect.target in favour of top-level API

After spending some time with this, the extra maintenance burden isn't worth the nicer API.


ISPN-14994 JGroups 5.2.17.Final

https://issues.redhat.com/browse/ISPN-14994

CI crashed in core... thought that was fixed, rerunning

Thanks @pruivo


[GUI][MAC OS] xION messages too small to read

The xION message font is even smaller than the hover text font. The GUI does not let the user change the text size or zoom in on it, making it hard to read.
Suggestion: Increase display size of text.Message: Enter an amount > 0.
Software Version:
Ion Core version v3.1.01 (64-bit)
downloaded from https://github.com/ioncoincore/ion/releases
Running on Mac OS 10.14

@mdpfeiffer  Thank you for your submission one of your Devs will be looking into this issue

Have opened pull request #130 for this

Text being smaller is better than bigger, especially as there are quite long lines, I would even make it smaller, not bigger, so that more fits.
Beside the point that trying to mint 0 coin produces this message telling you correctly that amount must be bigger than 0 which is more than logical.
Point here is actually not that message, but the one where you really create/mint coins and normally, you will probably copy it to a text editor which shows properly for you.
I would have not merged PR #130

test delete comment


Upgrading to 5.x via home-brew breaks lens

Describe the bug
I'm getting this after upgrading lens to 5.x via brew.

I get this message occasionally after revoking from standby, but closing the app fully and re-opening always fixed the issue, but it doesn't now.
To Reproduce
I guess this could be tricky, I used 4.x via brew, then upgraded to 5.x, then ran into that issue.
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Lens Version: Lens-5.2.3-latest.20210921.1.dmg
OS: macOS Big Sur
Installation method: HomeBrew

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
Your logs go here...

Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
your kubeconfig here

If I remove my kubeconfig the error still occurs, so I assume it does not have anything to do with that.
Additional context
Add any other context about the problem here.

Could you try renaming your /Library/Application Support/Lens folder and then trying to launch lens again?

For me all it took was opening "Activity Monitor" and stopping any running Lens processes. Then Lens launched fine.

Sounds good, could be related to how homebrew does upgrades (which I don't know how since the homebrew is community provided). That not all the processes were stopped before the upgrade.

Could you try renaming your /Library/Application Support/Lens folder and then trying to launch lens again?
I did try that, but that didn't solve the issue.

I ended up uninstalling it and manually downloading and running the .dmg.
I also uninstalled it and re-installed via brew and now it magically works 😅

Yeah that probably is it. If an old process is still around then trying to open lens will start that one and it is certainly trying to communicate on the wrong port.

Closing as this is about an older version of Lens


Performance down when used in parallel

Hi,
I'm using your library in a parallel stream and I have some performance issues: the average duration of a command  is longer in parallel than in sequential.
Here is an example :
List<String> cmds = IntStream.range(0, 10).mapToObj(i -> "echo " + i).collect(Collectors.toList());

ToLongFunction<String> timer = o -> {
	long start = System.currentTimeMillis();
	try (PowerShell ps = PowerShell.open()) {
		ps.executeCommands(o);
	} catch (Exception ex) {
		return -1;
	}
	return System.currentTimeMillis() - start;
};

System.out.println(cmds.stream().mapToLong(timer).average());
System.out.println(cmds.stream().parallel().mapToLong(timer).average());

The problem seems to come from the creation of the executor service in PowerShell#open().
A possible solution would be to put PowerShell in some kind of pool. Therefore, the ExecutorService should be injected instead of beeing creating directly.
Any idea how to solve this problem?

After some digging, I have found that ExecutorService is not the main problem.
A small part of the slowness comes from PowerShell#open() and a big one comes from the first call to PowerShell#executeCommands(String[]). Subsequent calls are really cheaper.

That sounds like something the PowerShell process or the Java process API does on the first command. Usually it's pretty cheap to just leave the PS session open if you need to use it multiple times. Feel free to report back if you find something new, but I'm not interested in further investigating this.


improve the performance of analyzing the flutter repo

Follow up from https://github.com/dart-lang/sdk/issues/32769; we should investigation improving the performance of analyzing the flutter repo (flutter analyze --flutter-repo).
Some changes are in-flight, and will be visible w/ the next roll of the dart sdk.

See the benchmarks here: https://flutter-dashboard.appspot.com/benchmarks.html

(also note a potential performance improvement @jmesserly found - https://github.com/dart-lang/sdk/issues/32814 - though, it wouldn't be necessary after the move to the CFE)

Is this a Beta 4 issue?

I'll add it; the next dart sdk that rolls into flutter will already improve performance enough to close this issue.

After https://github.com/flutter/engine/commit/76cb311d9c33720dcd19274228b39ecdbad8d9af , this looks much closer. Is there more work that will happen for Beta 4?

There are two more optimizations which are not part of this roll, which make Flutter analysis in watch mode 12% and 10% respectively.
https://dart-review.googlesource.com/c/sdk/+/51061
https://dart-review.googlesource.com/c/sdk/+/51160

Very cool. It sounds like we'll be able to close this quite soon.

We're all green https://flutter-dashboard.appspot.com/benchmarks.html with https://github.com/flutter/flutter/pull/16707 .


Add support for PHP 5.6 and 7.0

This has inspiration coming from a variety of places, all of which are open-source

https://github.com/tutumcloud/apache-php (variables_order)
https://github.com/docker-library/php/blob/master/7.0/apache (the apache config file)
https://github.com/GoogleCloudPlatform/php-docker (the php build script)

Note: the php.ini files are the production ini files from https://github.com/php/php-src
The two images use Apache as the host, considering that this is probably what most customers will expect (with .htaccess files, etc.).

cc @fancyremarker, @gib if you'd like to go over this
cc @wcpines, FYI.

This is awesome! Thank you. I am in no position to intelligently review a PHP base image, but if you want me to help in testing this (and a corresponding support article) against some known PHP applications, let me know and I'm happy to help.

That'd be great; thanks @fancyremarker. I'm going to manually to push those images to Quay in a little bit and work on a tutorial update. Once I have that, I'd appreciate your help testing it :)

@cordoval thanks for your feedback; this isn't currently on our immediate roadmap — the main reason we went with Apache here is that it's what most of our customers are using today.
That being said, if Nginx + FPM is what you want, the Google Cloud image I linked above provides exactly that (although one difference is that ours includes a patch for https://bugs.php.net/bug.php?id=71003, but it's a rather easy tweak to the image).
Cheers,

one application php to test this against would be a symfony 3.1.1 app, just saying

Merging this and will open a PR immediately after to update to latest (5.6.24 and 7.0.9).

(Canceled build also.)


2 bugs on the ListView sample

On the listview sample :
1- in landscape mode, the list go over the image when I'm scrolling down (see the attchemnt)
2 - in portrait mode, When I'm at the top of the list (arriving on the screen) this is fine. But there is a light grey overlay that come from the bottom and overlays the list while I'm scrolling down.  ( see the attchemnt)
Tested on Galaxy S (the first one) with Cyanogen, android version 4.1.2

did anyone find solution . no parallax is also not working in my project


Pouakai Zac

Pouakai changes that I have fixed from bugs/features of pouakai. Most of it are FLI changes

Have fun


Rename string(string) to avoid a scope issue

Description
The function
def string(string, **kwargs):

used the same name for the argument as the function.
I slightly improved this by changing the argument to "text" instead.
def string(text, **kwargs):

Key checklist:

[x] No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
[x] All tests pass: $ python run-tests.py --all (or $ nox -s tests)
[x] The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).
Further checks:

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

Does this need a CHANGELOG entry or is it minor enough to leave it out?

Does this rename need a CHANGELOG entry or is it minor enough to leave it out?

Does this rename need a CHANGELOG entry or is it minor enough to leave it out?

It is a change to an internal variable name. No need for a change log entry, it won't break anything


Windspeed convertion error in ukmetoffice Weather module

Hi,
I think that formula which convert mph to m/s in default module Weather is wrong.
MagicMirror Version: v2.13.0
Description: to convert windInMph to metric units (m/s), the value should be divided by 2.23694, not multiplied.
https://github.com/MichMich/MagicMirror/blob/3220702034ec9975c3c86c858124bf2245f0ec30/modules/default/weather/providers/ukmetoffice.js#L214
should be:
return this.windUnits === "metric" ? windInMph / 2.23694 : windInMph;
Actual Results: if windInMph is equal to 8 (and this.windUnits === metric), then result is 17.89552
Expected Results: the expected result is 3.57632
Additional Notes: Google converter

Can this be closed now @Sub028 since the PR got merged?


Add a section with mostly used options to help new users

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
There are too many options in the list to navigate, we need a section with mostly used/important options for new users to get started quickly.
Example: -f 'bv*+ba' -o %(title)s %(uploader)s %(upload_date)s %(ext)s
Provide verbose output that clearly demonstrates the problem

[ ] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

I think a guide in the wiki explaining the basics would be good. This should probably also cover the basics of digital video (i.e. what is a codec, what's is a container, etc.)


CLI doesn't re-set X-Shield-Token or Authorization headers on 3xx redirects

v6.0.0 of Shield introduced an nginx component listening on 443 (SSL) and 80 (unconditional redirect to 443).  This works out okay for the web UI, which processes the redirect before any authn/authz work is done.  It works out less-well for the CLI.
The CLI doesn't have a redirection policy in the http.Client object is using, and by default, net/http doesn't re-set any custom headers on redirect, which means we lose our X-Shield-Token or Authorization headers.  This is fiendishly difficult to debug.  I tried putting gotcha in between, but that didn't seem to exhibit the behavior.  Instead, I had to resort to stuffing an httputil.DumpRequest call into the auth-handling functions to find out that the headers weren't making it.
Options for fix include:

Set X-Shield-Token and Authorization on redirect.  I have code for this and it works.
When creating a backend, figure out how to get a hold of the redirected-to endpoint, if redirected, and then save that in the config file.

Option 1 is quick, simple and best of all, working.  Too bad it's insecure, and permits transmission of credential headers over a cleartext channel.
Options 2 solves this security problem by following the redirect to a final (presumed secure) URL, but may require some not-so-obvious bits of code to pull off.

Here's some code for Option 1: https://github.com/starkandwayne/shield/compare/fix151-option1
and some more for Option 2: https://github.com/starkandwayne/shield/compare/fix151-option2
We can discuss this coming week and pick one; at that point I'll put in an official PR so someone doesn't try to merge both.


feat(cli): Add support for filtering package list by name and namespace

Closes #865
📑 Description
Adds the optional argument <packageName> and optional flag --namespaceto the list cmd.
# shows a list of all Package resources with .Spec.PackageInfo.Name == "quickwit"
glasskube list quickwit

# shows a list of all Package resources in namespace "foo" with .Spec.PackageInfo.Name == "quickwit"
glasskube list quickwit --namespace foo

# shows an error message and calls ExitWithError
glasskube list --kind clusterpackage --namespace default

# shows an error message and calls ExitWithError
glasskube list quickwit --kind clusterpackage

✅ Checks

[x] My code requires changes to the documentation
[ ] I have updated the documentation as required

ℹ Additional Information

The empty list error handling has been replaced with just one single message No <resource> found. for every case. Due to the different options to combine flags, sometimes multiple error messages are valid. It is hard to decide which one takes precedence. A simple single error message is less confusing instead.
Introducing tests for list command. There is some complexity on how the flags interact with each other. Introducing new flags needs changes on retrieval logic and output logic. Some of these locations can be easily overlooked when not tested. Nevertheless, this requires some refactoring to make commands testable with injection of dependencies. So these changes need to be discussed first and are therefore not yet fully implemented.

Commands are created with a constructor, isolating them for testing and injecting necessary mock dependencies

e.g. fake k8s client (not yet fully implemented)

Commands need to return errors instead of exiting directly. Exiting logic could be handled in main calling the root command.

I would request some feedback if tests and changes like this are desired. Since the refactoring takes some effort.

@kosmoz I have made the changes, please have another look if it fits the requirements.
I have removed the tests and the necessary refactoring. I agree with the separate PR. Although I sees some benefit in testing the whole listing command, since introducing new flags or arguments requires changes in 3~4 different functions. It would also cover well for regression.
Unit testing the single functions would also work, but requires more effort to get the same coverage. In case I have time, I will open an issue for contribution though!


Listing orders

First, thanks for making this API available! 🎉
I found that the only endpoint that didn't work for me was:
GET https://trade-service.wealthsimple.com/orders

which returned  {"error"=>"Record not found"}
It seems this endpoint now requires an account_id parameter, like so:
GET https://trade-service.wealthsimple.com/orders?account_id=<ACCOUNT-ID>

(maybe it's not needed if you have a single account, but if you have multiple accounts, this parameter appears to be mandatory)

It appears that the endpoint will return results for the non-registered account, when the account_id parameter is omitted.
In effect,
GET https://trade-service.wealthsimple.com/orders

is equivalent to:
GET https://trade-service.wealthsimple.com/orders?account_id=<NON-REGISTERED-ACCOUNT-ID>

@vlad-pisanov Do you have a non-registered account?

@phuzybuny interesting find! I Both of my accounts are registered. That would explain it.

@vlad-pisanov Thanks for confirming. Looks like the documentation can be updated to clarify the behaviour.


Add mTLS support for upstream servers

The following PR adds support to reverse proxy calls to metrics/logs/traces endpoints using mTLS. The purpose for this to support for example a Loki cluster that is secured via mTLS on an isolated environment. In detail, Loki does not support any native authentication methods on the HTTP layer.

Just one inline comment (repeated though).
Would it make sense to extract the TLSClientConfig initialization (and maybe also the CLI-parameter parsing) to a separate function that can be re-used across the handlers?

Good catch according to our CLI flags we enable upstream TLS only if we provide an upstream CA, thus I wrapped the cert inside the first if block.


[Request] Backup and Restore

Description
Unless I have missed something, at the moment there seems to be no way to backup a snap pack installed jellyseerr and no backup documentation for either snap or docker.
Desired Behavior
Could jellyseerr implement an automated backup and a manual restore function like sonarr and radarr have .
where all configs and db are copied and added to an archive in a backup folder every few days.
Additional Context
No response
Code of Conduct

[X] I agree to follow Overseerr's Code of Conduct

Backing up docker is as easy as just copy pasting the config folder.

Will this include things like jellyseerr user and setings and Sonarr and Radarr settings.

As for snap package, we don't officially support it but it'd be the same thing just copy paste the config folder

Which directory do you mean.

All the settings are in the config folder.
For the snap config folder, it's wherever snap stores it. I'm not sure either I'll update here after I find out in a while

Which directory do you mean.

I think it is /root/snap/overseerr/common

Thanks, i will test that out.

@Fallenbagel
I tested both docker and snap by backing up the db directory and settings file and it worked with out any issues.
It may be worth adding some documentation on this otherwise it's working.

@Fallenbagel
I tested both docker and snap by backing up the db directory and settings file and it worked with out any issues.
It may be worth adding some documentation on this otherwise it's working.

Where was the snap config folders again? Did I quote the right path? (I don't use snap so not really sure myself)

@Fallenbagel
I tested both docker and snap by backing up the db directory and settings file and it worked with out any issues.
It may be worth adding some documentation on this otherwise it's working.

Where was the snap config folders again? Did I quote the right path? (I don't use snap so not really sure)

Your suggestion was right, i tried /root/snap/jellyseerr/common and it worked after i started the service again.

I'd like to re-open the request, because the config folder also contains a cache and logs - both of which I'm not really interested in restoring.

I'd like to re-open the request, because the config folder also contains a cache and logs - both of which I'm not really interested in restoring.

Then don't copy these files? You can just copy the config/db folder and the config/settings.json file

We are currently working on a docs website for Jellyseerr, it will be added there.

We are currently working on a docs website for Jellyseerr, it will be added there.

#848. Once that's in we will have docs 😄


feat(dapp-console-api): insert deployment transaction into db

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#267  👈
#263
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tremarkley and the rest of your teammates on  Graphite


Catch TypeError on PyArrow array instantiation

CATEGORY
Choose one

[x] Bug Fix
[ ] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY
The following (Postgres) query fails with TypeError: an integer is required (got type str):
SELECT json_build_object('test', json_build_array(123456, 'test')) AS data;

This is also raised when columnar data from Presto is in the following format (mixed array data types):
{'TestKey': [123456, 'foo']}

See also: https://github.com/apache/incubator-superset/pull/9096#issuecomment-584449351
NOTE: this is meant to be a temporary fix until the Arrow ticket is resolved.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN
Ensure the following query against Postgres succeeds:
SELECT json_build_object('test', json_build_array(123456, 'test')) AS data;

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS
@john-bodley @serenajiang @nytai @willbarrett @dpgaspar @suddjian

Codecov Report

Merging #9139 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #9139   +/-   ##
======================================
  Coverage    59.1%   59.1%
======================================
  Files         372     372
  Lines       11922   11922
  Branches     2919    2919
======================================
  Hits         7046    7046
  Misses       4694    4694
  Partials      182     182

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 30b7064...a6c7892. Read the comment docs.

Does this result in 123456 being returned as a string?

@serenajiang it results in the entire column value being returned as a JSON string: {"TestKey": [123456, "foo"]}. 123456 is an integer when the JSON is parsed.


Various REST API fixes

Users API
A JSON-ified user's url key should point to this endpoint.
I also noticed that you're using id as a parameter in some of your API methods, thus shadowing the built-in id function (linters will error on this by default), which isn't good but can be fixed pretty easily.
~ $ python -c "print(id)"
<built-in function id>

Comments API

next and prev in api.get_post_comments should redirect to the same nested resource endpoint
the returned resource is comments and not posts

This is now incorporated into the repository. Thanks!


IllegatStateException

"adb shell screenrecord /sdcard/video.mp4" works. Vysor works. However on running scrcpy , I see the device crashing as well. Tried the jar file suggested in the comments above.

And with a lower definition?
scrcpy -m1024

#465


Where can I see NIX wallet logs on Mac

The wallet is showing Loading wallet... since last few hours.
Where can I see logs on my mac os?

~/Library/Application Support/nix will show you the debug file.

@mattt21 its ~/Library/Application Support/Bitcoin
I think at least name should be changed ;)

@devender-yadav the directory is actually ~/Library/Application Support/nix. QT configuration is messing with the last known location for a qt wallet whether its for NIX or Bitcoin, something we are looking into.
https://github.com/NixPlatform/NixCore/blob/master/src/util.cpp#L638


Make error messages part of preupgrade report

Previously workflow errors weren't shown in the
preupgrade report. This patch attempts to solve the
issue by introducing naive one way convertion between
ErrorModel and Report during fetch_report_messages
stage at the end of the workflow run. Database won't be
altered, no new objects added after that convertion.
A follow up may be suggested to refactor existing
errors with "steps needed\hints" information into proper
Report messages.
Closes-Bug: #575

Can one of the admins verify this patch?

I am wondering if it is not easier just to make the conversion of to the report here:
https://github.com/oamg/leapp/blob/a83c46fa8ad7f623c06366960101a0db7fd3b88a/leapp/messaging/__init__.py#L107

I am wondering if it is not easier just to make the conversion of to the report here:
https://github.com/oamg/leapp/blob/a83c46fa8ad7f623c06366960101a0db7fd3b88a/leapp/messaging/__init__.py#L107
This would result in 2 messages with the same content being produced - Error and Report, and I wanted to be minimally invasive. But I can look into that for sure


docs: All next results in docs brings 404

Type: docs
Ionic Version: 2.x
Platform: all
On ionic 2 docs search for scroll or animate.
Click on any result. 404.

Thanks for the issue, I'm going to move this to ionic-site.

This issue was moved to driftyco/ionic-site#457


feat: add script to generate test tokens, update README

Adds a little script to generate headers for usage in /api or scripts. Happy to hear what best practises are in regards to productivity scripts / tools.
I've not thought about the write up much but thought it made sense to write at least something about testing.

[x] update (Authentication vs authentication) after #88 goes in

@Bouncey good to go?

@Bouncey good to go?


Incorrect ${logger:shortName=true} with Generic logger names

Looking at the code, this applies to pretty much any NLog version out there.
Imagine:
public class FileConfigurationService<T> :
    IFileConfigurationService<T>
    where T : class
{
    private static readonly Logger Log =
        LogManager.GetLogger(typeof(FileConfigurationService<T>).FullName);

The LogEventInfo.LoggerName will now be equal to, e.g.

REDACTED.Platform.Impl.Configuration.Impl.FileConfigurationService`1[[REDACTED.Platform.Shared.ObjectModel.Configuration.HotelServiceOnlineCancellationConfiguration, REDACTED.Platform.Shared.ObjectModel, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]]

Which in turns makes ${logger:shortName=true} render to

3, Culture=neutral, PublicKeyToken=null]]

That's even remotely not correct.
Should I tackle this with a PR?

Not sure, but isn't the issue in typeof(FileConfigurationService<T>).FullName?
GetLogger won't alter the name ;)

If we dropped generics altogether:
public class FileConfigurationService
{
private static readonly Logger Log =
LogManager.GetLogger(typeof(FileConfigurationService).FullName);
(or even replace GetLogger() with GetCurrentClassLogger()), that would produce a perfectly reasonable (albeit long-ish) LoggerName of "REDACTED.Platform.Impl.Configuration.Impl.FileConfigurationService". This is something that NLog users are already well used to, but somehow classes being generic break this behavior.

The problem is the Assembly-strong-name that is sometimes are included with FullName. What if you change to Type.ToString?
public class FileConfigurationService<T> :
    IFileConfigurationService<T>
    where T : class
{
    private static readonly Logger Log =
        LogManager.GetLogger(typeof(FileConfigurationService<T>).ToString());

And what happens if you use GetCurrentClassLogger ?
public class FileConfigurationService<T> :
    IFileConfigurationService<T>
    where T : class
{
    private static readonly Logger Log = LogManager.GetCurrentClassLogger();

@304NotModified, @snakefoot I'm hopless at explaining :)
My basic idea is to make it so that ${logger:shortName=true} returns not just

...the part after the trailing dot character

but

...the part between the trailing dot character and either the end of the string, or `, or + characters

because that is presumably what users are expecting. Short Name of

REDACTED.Platform.Impl.Configuration.Impl.FileConfigurationService`1[[REDACTED.Platform.Shared.ObjectModel.Configuration.HotelServiceOnlineCancellationConfiguration, REDACTED.Platform.Shared.ObjectModel, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]]

should be FileConfigurationService (or even HotelServiceOnlineCancellationConfiguration, which is debatable), but decidedly not "the part after the trailing dot character"

GetLogger will accept any string format. So trying to handle all weird inputs will probably generate more overhead than value
The easy solution is just stopping yourself from including the assembly name in the logger-name (Use ToString instead off FullName)
Sent from my Sony Xperia
---- Anton Gogolev wrote ----
@304NotModifiedhttps://github.com/304NotModified, @snakefoothttps://github.com/snakefoot I'm hopless at explaining :)
My basic idea is to make it so that ${logger:shortName=true}https://github.com/NLog/NLog/wiki/Logger-Layout-Renderer#rendering-options returns not just
...the part after the trailing dot character
but
...the part between the trailing dot character and either the end of the string, or `, or + characters
because that is presumably what users are expecting. Short Name of
REDACTED.Platform.Impl.Configuration.Impl.FileConfigurationService`1[[REDACTED.Platform.Shared.ObjectModel.Configuration.HotelServiceOnlineCancellationConfiguration, REDACTED.Platform.Shared.ObjectModel, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]]
should be FileConfigurationService (or even HotelServiceOnlineCancellationConfiguration, which is debatable), but decidedly not "the part after the trailing dot character"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/3127#issuecomment-469617615, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnBOcKhL57ekWQWLhhDGX9tksxgWHks5vTkBkgaJpZM4bAqGg.

I am aware that GetLogger() accepts pretty much anything. NLog itself more or less expects logger name to be a sequence of dot-separated strings. Ostensibly, the most widely used method of obtaining such names is something akin to GetLogger(typeof(...).FullName) or GetCurrentClassLogger(). With this, users are correctly expecting that the shortName=true option will effectively return class name and nothing more.
What I'm saying is that the behaviour of shortName=true option (and only of that option) is inadequate in certain cases: specifically, when used with nested and generic classes. And I'm proposing to fix this behavior, but not by trying to "handle all weird inputs".

Pretty sure GetCurrentClassLogger is doing it correctly. If not then it should be fixed.
Sent from my Sony Xperia
---- Anton Gogolev wrote ----
I am aware that GetLogger() accepts pretty much anything. NLog itself more or less expects logger name to be a sequence of dot-separated strings. Ostensibly, the most widely used method of obtaining such names is something akin to GetLogger(typeof(...).FullName) or GetCurrentClassLogger(). With this, users are correctly expecting that the shortName=true option will effectively return class name and nothing more.
What I'm saying is that the behaviour of shortName=true option (and only of that option) is inadequate in certain cases: specifically, when used with nested and generic classes. And I'm proposing to fix this behavior, but not by trying to "handle all weird inputs".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/3127#issuecomment-469651796, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnCtABizFcNuepfymycvQ8x9EIpdAks5vTloJgaJpZM4bAqGg.

Can actually see that FullName is used by the stack walker logic. Will make a PR to fix this.
But please make a PR with your idea. And if the overhead is non existing. Then let's improve.
Sent from my Sony Xperia
---- Anton Gogolev wrote ----
I am aware that GetLogger() accepts pretty much anything. NLog itself more or less expects logger name to be a sequence of dot-separated strings. Ostensibly, the most widely used method of obtaining such names is something akin to GetLogger(typeof(...).FullName) or GetCurrentClassLogger(). With this, users are correctly expecting that the shortName=true option will effectively return class name and nothing more.
What I'm saying is that the behaviour of shortName=true option (and only of that option) is inadequate in certain cases: specifically, when used with nested and generic classes. And I'm proposing to fix this behavior, but not by trying to "handle all weird inputs".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/3127#issuecomment-469651796, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK-fnCtABizFcNuepfymycvQ8x9EIpdAks5vTloJgaJpZM4bAqGg.

I'm sorry, but garbage in = garbage out.

Created #3157 to remove use of Type.FullName to avoid Assembly-Info to be included in class-name.

Closing this as there is nothing to do for us


Remember cursor positions and opened editors on hot exit

VSCode Version: Code - Insiders 1.8.0-insider (c2418f46d20464a893dc5db6449e9d79766eadc4, 2016-11-07T21:40:57.134Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions:

Extension
Author
Version

vscode-eslint
dbaeumer
1.0.7

python
donjayamanne
0.5.0

tslint
eg2
0.5.39

Steps to Reproduce:

Type something in an editor
Add a second editor side-by-side
Terminate task from task manager
Restart: Side-by-side editor is gone and cursor position in edited file is lost

Also: Currently focused editor tab is lost.

@chrmarti focus and cursor position is expected if you had an untitled file focused due to https://github.com/Microsoft/vscode/issues/14116. I'm not sure if cursor position restore works for text files or not.

It does work if you exit the workbench regularly. I was simulating a crash by terminating the task from the task manager.

This currently works for text files but not untitled files. Closing as a duplicate of https://github.com/Microsoft/vscode/issues/14116 as that's the root cause.


ADS Enhancement - Support Sending Query Results to a File

This PR fixes #86
Description
The change set in this PR is the first iteration to enhance ADS to support sending query results to a file. To enable sending query results to a file, open the command palette and enter "Query Results to File".

As can be seen in the screen shot, the "Query Results to Grid" option allows the user to go back to sending query results to a grid, if they are wanting to no longer send results to a file.
Testing
1. Query Results to File:

Launch ADS
Open the command palette, and select "Query Results to File"
Execute any query
ADS will open an untitled editor that includes both the query results and messages and doesn't mark the editor as needing to be saved for quick closing.

When query results are sent to a file, results appear like this:

2. Query Results to Grid

Launch ADS
Open the command palette, and select "Query Results to Grid"
Execute any query
ADS will send the query results to the grid in the "Results" tab and messages will appear in the "Messages" tab like they have been appearing in ADS.

When query results are sent to a grid, results appear like this:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 193 (4.15%)  changed or added relevant lines in 5 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.1%) to 41.632%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/workbench/contrib/query/browser/queryResultsView.ts
0
7
0.0%

src/sql/workbench/contrib/query/common/queryResultsDisplayStatus.ts
5
15
33.33%

src/sql/workbench/contrib/query/browser/messagesPanelQueryRunnerCallbackHandler.ts
1
15
6.67%

src/sql/workbench/contrib/query/browser/messagePanel.ts
0
18
0.0%

src/sql/workbench/contrib/query/browser/toFileQueryRunnerCallbackHandler.ts
2
138
1.45%

Files with Coverage Reduction
New Missed Lines
%

src/sql/workbench/contrib/query/browser/messagePanel.ts
1
2.82%

src/sql/workbench/contrib/query/browser/queryResultsView.ts
2
0.26%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
27381

Relevant Lines:
59672

💛  - Coveralls

I see the UX to have a output mode toggle.  I think the output mode toggle should be a per-editor window setting like we have in SSMS.  I'd recommend to show something in the status bar when outputting to a file, it probably isn't need to have anything in status bar when outputting to grid IMO since that is default and most common setting.

wanted to bump this up, was searching for a way to out the result to a file and found this PR, thanks for this PR


Remove Windows loader build dependency

On Windows, the loader now has a dependency on the Windows Driver Kit. In order to avoid adding that dependency here, this change includes loader .lib files for building on Windows.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Assessments : disabled override assessment button when assessment hasn't changed

Checklist
General

[x] I tested all changes and their related features with all corresponding user types on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines.

Motivation and Context

Closes https://github.com/ls1intum/Artemis/issues/4592
Description
Override Assessment button is disabled until changes are made.
Steps for Testing

Prerequisites:

1 Instructor

Log in to Artemis
Navigate to Submissions page of a File Upload, Modeling and Programming Exercise
Open Assessment
Verify that the Override Assessment button is initially disabled and is enabled when a change is made in the assessment.

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

tested on ts2

Tested on TS2, and I think I found an unexpected behavior or two.
The PR fixes only the problem of existing assessments. Once there is an assessment, the button is disabled until we change something. And that's only on the first try. If we stay on the same page, no matter how many times we override assessments, it always stays enabled, even if nothing has been changed.
Also, if you watch the attached video when assessing the submission the first time, once you submit the assessment, the "Override Assessment" button is still enabled.
https://user-images.githubusercontent.com/94109535/154118061-4077c4c4-89a2-4d27-bf2c-2ed9c444ad61.mp4

Tested on TS2, and I think I found an unexpected behavior or two. The PR fixes only the problem of existing assessments. Once there is an assessment, the button is disabled until we change something. And that's only on the first try. If we stay on the same page, no matter how many times we override assessments, it always stays enabled, even if nothing has been changed. Also, if you watch the attached video when assessing the submission the first time, once you submit the assessment, the "Override Assessment" button is still enabled.
Untitled.mp4

Thank you very much for your feedback. I am actually aware of these behaviors and the reason the implementation was done this way is the issue itself. There, it was suggested that the already existing implementation of the text exercises was good and it could be reused. The above mentioned behavior can also be implemented if they confirm. @florian-glombik
https://github.com/ls1intum/Artemis/issues/4592

Tested in ts1. The functionality works as the explanation on this PR establishes. The Override Assessment button is disabled by default because no changes are made when you open the first time the Assessment page. However, I noticed that when I made a change and override it, the button is still available.
That can confuse the tutors or instructors because the first thing that comes to your mind is that the change was not overridden.
If this observation was not included to be fixed in this PR, I can approve the first part that is explained in the purpose of this PR.

Tested on TS2, and I think I found an unexpected behavior or two. The PR fixes only the problem of existing assessments. Once there is an assessment, the button is disabled until we change something. And that's only on the first try. If we stay on the same page, no matter how many times we override assessments, it always stays enabled, even if nothing has been changed. Also, if you watch the attached video when assessing the submission the first time, once you submit the assessment, the "Override Assessment" button is still enabled.
Untitled.mp4

Can you please recheck? I have addressed the issues you have mentioned.

@Santia-go I have addressed the issues you have brought up. Can you recheck please?

Tested in ts1. The functionality works as the explanation on this PR establishes. The Override Assessment button is disabled by default because no changes are made when you open the first time the Assessment page. However, I noticed that when I made a change and override it, the button is still available. That can confuse the tutors or instructors because the first thing that comes to your mind is that the change was not overridden. If this observation was not included to be fixed in this PR, I can approve the first part that is explained in the purpose of this PR.

Can you please recheck? I have addressed the issues you have mentioned. @Santia-go

Tested on TS2, and I think I found an unexpected behavior or two. The PR fixes only the problem of existing assessments. Once there is an assessment, the button is disabled until we change something. And that's only on the first try. If we stay on the same page, no matter how many times we override assessments, it always stays enabled, even if nothing has been changed. Also, if you watch the attached video when assessing the submission the first time, once you submit the assessment, the "Override Assessment" button is still enabled.
Untitled.mp4

Can you please recheck? I have addressed the issues you have mentioned. @dveljacic


Only include /etc/smokeping/conf.d/Slaves when mode is master

Only include /etc/smokeping/conf.d/Slaves when mode is master, otherwise that file doesn't exist and smokeping dies with the error:
ERROR: can't open /etc/smokeping/config.d/Slaves: No such file or directory

thanks


Bugfix: useSystemNetMailSettings=false still uses .config settings + feature: PickupDirectoryLocation from nlog.config

Address bug/690, the PickUpDirectory location is exposed in the Mail Target.
However given that the test are using a mock-up for the SMTP class it does not make a lot of sense to create a test for this bug.
@304NotModified the documentation of this property is still pending. I will check the documentation project.

@dnlgmzddr looks good. Can we unit test this?
The documentation is just editing the wiki.

@304NotModified, I'm not sure how to unit test, this feature. However the test cases, are quite simple (all involving useSystemNetMailSettings=false):

If PickUpDirectory is set; the EML file must end up in the directory.
If PickUpDirectory  and smtpServer are null; it must fail.

Never the less, I don't know how to test the first scenario, and the other one is already being partially tested in the existing tests.

The unit test should test "useSystemNetMailSettings=false", so if "useSystemNetMailSettings=false", then I should not use the values of the web.config. Just check the values of the settings.

If PickUpDirectory is set; the EML file must end up in the directory.
If PickUpDirectory and smtpServer are null; it must fail.

Those are not needed, as they test somethings else.

However the test cases, are quite simple

Unit test should be simple :)

Need some help @dnlgmzddr ?

@304NotModified Finally, I do have to adjust the mockups to test the the new scenarios. Let me now if you have any more comments.

Looks very good! Nice work!
Just two code comments, please check them, I think they are important.

@304NotModified I just upload some changes, and documented ISmtpClient , also I added some inline comments expalining the validation regarding this comments (note: it's allowed to have one ...).
Have a nice Sunday.

Current coverage is 70.35%

Branch #939 has no coverage reports uploaded yet.

No diff could be generated. No reports for master found.

Uncovered Suggestions

+0.10% via ...oredConsoleTarget.cs#232...244
+0.09% via ...c/NLog/LogFactory.cs#180...191
+0.09% via ...gingConfiguration.cs#333...343
See 7 more...

Powered by Codecov. Updated on successful CI builds.

Nice work! Thanks! :)

@dnlgmzddr can you update the wiki?
Just add the two new properties, and add "introduced in NLog 4.2"
https://github.com/NLog/NLog/wiki/Mail-target

[ ] update wiki

@304NotModified  The wiki have been updated.

Thanks!


std of simulated mosaics

std for the 2PC plos seems insanely high, and not seeming to improve whatsoever with the number of simulations between 10, 100, and 1000.


Upgrades to CI and CD Workflows

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.99%. Comparing base (9ec6840) to head (7c36cc4).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #78      +/-   ##
==========================================
+ Coverage   97.61%   97.99%   +0.38%
==========================================
  Files          54       55       +1
  Lines         921      947      +26
  Branches       90       91       +1
==========================================
+ Hits          899      928      +29
+ Misses         16       14       -2
+ Partials        6        5       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Broken image link on sponsors page

This is located right before Audience Interests section.
Code

Photo by Dhanish Gajjar

Screenshot

It looks like this issue is already resolved?


What's next when found potentially sandwichable txs ?

subway found 2 potentially sandwichable txs on bitkubchain (https://bkcscan.com/)
so in this chain WETH = KKUB, ETH = KUB
// txhash = 0xdca2e58ab71bf34369387a28e85af6c0ab6f9dc715e441151734ea361f11cac7;
const sandwich = {
	"revenue": "-587897585621957342",
	"optimalSandwichWethIn": "99609375000000000000",
	"userAmountIn": "40000000000000000000", // 40 KUB
	"userMinRecv": "48957699098951839629", // 48.95 KUSDT
	"reserveState": {
		"reserveWeth": "898997512032207955367410",
		"reserveToken": "1112510545004056999410558" },
		"frontrun": { "amountOut": "122883351218649447652", //<PHONE_NUMBER>18649447652
            "newReserveA": "899097121407207955367410", "newReserveB": "1112387661652838349962906" },
		"victim": { "amountOut": "49338443282042384536", // 49.338443282042384536
            "newReserveA": "899137121407207955367410", "newReserveB": "1112338323209556307578370" },
		"backrun": { "amountOut": "99021477414378042658", // 99.021477414378042658
            "newReserveA": "1112461206560774957026022", "newReserveB": "899038099929793577324752" }
	};

// txhash = 0x7c0450660149c8a223738d4e847ad1013f67344bc74f999611f79f66865ee37e;
const sandwich2 = {
    "revenue":"-420718391545396510",
    "optimalSandwichWethIn":"99609375000000000000",
    "userAmountIn":"800000000000000000000", // 800 KKUB
    "userMinRecv":"978026587676590440060", // 895 KUSDT
    "reserveState":{
        "reserveWeth":"899139521064897460269550",
        "reserveToken":"1112341688931425641815072"},
        "frontrun":{"amountOut":"122845297107157114324","newReserveA":"899239130439897460269550","newReserveB":"1112218843634318484700748"},
        "victim":{"amountOut":"985632829950345520614","newReserveA":"900039130439897460269550","newReserveB":"1111233210804368139180134"},
        "backrun":{"amountOut":"99188656608454603490","newReserveA":"1111356056101475296294458","newReserveB":"899939941783289005666060"}
    };

I have a few question ?

why these 2 are sandwichable
what is the amountOut that the bot suggest and how can I do with these numbers ?

For the first one, it's a KUB->KUSDT swap.
The victim is willing to receive a min of 48.95 KUDT for 40 KUB.
First slice: the searcher gets 122.8 KUSDT
"frontrun": { "amountOut": "122883351218649447652", //<PHONE_NUMBER>18649447652
            "newReserveA": "899097121407207955367410", "newReserveB": "1112387661652838349962906" }

Victim swap: the victim receives 49.3 KUSDT (> the min)
"victim": { "amountOut": "49338443282042384536", // 49.338443282042384536
            "newReserveA": "899137121407207955367410", "newReserveB": "1112338323209556307578370" }

Second slice: the searcher sells KUSDT for KUB with profit
"backrun": { "amountOut": "99021477414378042658", // 99.021477414378042658
            "newReserveA": "1112461206560774957026022", "newReserveB": "899038099929793577324752" }

In regards to the amountOut, I think this is calculated in the getUniv2DataGivenIn. And it is basically how much you will get of X with Y supplied.


Bump version

Why are these changes needed?

Bump version to 0.3.2
Minor change in readme

Related issue number

Checks

[x] I've included any doc changes needed for https://autogenhub.github.io/autogen/. See https://autogenhub.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Shall we comment out the banner for the NuGet package and recover the # downloads/month banner for pyautogen? Also comment out the news for AutoGen.NET? They can be moved to a new separate repo for .NET.

Agreed on the nuget package and AutoGen.NET commenting out.

Are we going back to Aug as the date (instead of Oct)?

I am fine either way. The autogen-ai org was created in Aug, and on Oct we moved here.


Multiple Queues BadSignature exception

I have several instances (let's say 2) serving single django app and use single MongoDB broker.
On 1st instance settings
Q_CLUSTER = {"name": "queue1", .....}

and 2nd
Q_CLUSTER = {"name": "queue2", .....}

On the 1st instance I call async_task("my_task", cluster="queue2") , but then on 2nd instance I got error:
[Q] ERROR Failed to push task to queue
...
django.core.signing.BadSignature: Signature "xxxx" does not match

Seems it works if i configure ALT_CLUSTERS: {"queue2": ...} on 1st instance.
Will the 1st instance also serve tasks from "queue2"?
Should I also config ALT_CLUSTERS on  all instances listing the queues on other instances?

Yeah, the name is used for signing, so this is expected behavior. You should indeed use the ALT_CLUSTERS for this.

Will the 1st instance also serve tasks from "queue2"?

No, if you define ALT_CLUSTERS and point the cluster to one queue, then it will not run jobs from the other queue.
You can deploy multiple qclusters instances with the same name. Those will all run jobs from the same queue.

@GDay thanks for explanations.

@GDay I would ask one more question. Looking into the code it is possible to define cluster_name
Q_CLUSTER = {'name': 'common name', 'cluster_name': 'queue1'}

taking into account I would run multiple clusters on different instances, I can do the following on another instance:
Q_CLUSTER = {'name': 'common name', 'cluster_name': 'queue2'}

That configuration allows me to push tasks from instance 1 to 2 and vice versa, since the name is the same. Are there any drawback comparing to use of ALT_CLUSTERS (that will require me to refactor start.sh scripts to start qcluster with different --name queue6 args)?

Not sure I am following. If you run multiple clusters with different queue names, then you need cluster_name.

@GDay yeah I think I got it.


LiteDB not working with ASP.net core

Could you create a LiteDBPlatform for ASP.net core? I would love to use it but don't want to write this part myself.

Hi @DerKnerd, take a look on this thread #219

https://github.com/etuncay/LiteDB-Asp.Net-Core


Waste Reduction Tips:

Making a section where we will be describing how to reduce,Recycling  Waste   :

i want to work on this , by adding some tips about 3R please assign this issue to me under GSSOC extended @GarimaSingh0109


Use a random node for running rake tasks

This will help us avoid single points of failure and flush out configuration problems.

:+1: fftm


unix, windows: set non-block mode in uv_poll_init

R=@bnoordhuis
R=@piscisaureus

CI! https://jenkins-iojs.nodesource.com/view/libuv/job/libuv+any-pr+multi/50/

LGTM if the CI is green (or at least, not redder than it was before) but maybe the commit log can document the motivation for the change.

I added some ratinale to the commit log and fixed the long line. The reds in the build don't look related to this.

LGTM

Landed in b30a3e6, thanks!


raft: give correct offset in unstable test

unstable.entries[i] has raft log position i+unstable.offset
So, this fixes some test cases by giving them correct
offsets.

/cc @xiang90 @heyitsanthony
Thanks.

why does it fix the test? is the test failing?

@xiang90 It wasn't failing. Think it's just wrong initial test case? Won't fail because the term doesn't increase anyway.

lgtm


Add Chico, CA

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>[Insert Unique Subject Line]
Dear Chico City Council,
My name is [your name], and I am a concerned resident of Chico, CA. I am emailing in support of the nation wide initiative to defund police departments in favor of supporting community based public safety measures. This includes an increased budget for social services to fight homelessness, addiction, mental illness, domestic violence, and sexual assault.
This past week, our nation and community have been gripped by protests calling for an end to racism and anti-blackness and a complete overhaul in our approach to criminal justice in America. I am writing to demand real change to the Chico criminal justice system.
The police budget for the city of Chico, CA makes up 48.8% of the city budget, per your city budget proposal online.  There is nothing allocated in the budget to support mental health services. As you all well know, there is a large population of homeless residents. Many of these homeless residents are mentally ill, faced with addiction or have experienced domestic violence that has caused this homelessness. Homelessness is a public health and safety issue, and a reallocation of funds to mental health and addiction services instead of police organizations would greatly reduce the risk of homelessness in Chico. This is just one example of a marginalized group in Chico that would benefit from defunding Chico Police Department.
Research shows that a living wage, access to health services and treatment including mental health services, educational opportunity, and stable housing are far more successful at promoting safe and equitable communities than punitive systems like police or prisons.
In the journal of Sociology of Race and Ethnicity, Phillip McHarris (PhD candidate at Yale focusing on race) argues that we must work towards a reality in which healthcare workers and emergency response teams handle substance abuse, domestic violence, homelessness, or mental health cases. Policies to “improve the police” are not enough, as there’s no evidence that implicit bias training or community relations initiatives help with reducing the abuses of policing (Sources: The Nation, The Atlantic). We need to reimagine public safety to prioritize alternatives to conflict rather than defaulting to violence.
I demand immediate reduction of the police force budget, cancellation of cadet classes, demilitarization of our forces, and reallocation of funds from police to community-led health and safety strategies. We should redirect police funding to efforts that are actually proven to reduce crime, such as affordable housing, shelters, and mental health services.
It is your duty to represent your constituents. I am urging you to revise the Chico, CA recommended operating budget for FY 2020-21, and to increase funds to non-punitive community efforts.
Sincerely,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

Another submission for Chico has been approved for creation of PR.
@swiss528 would you add any language in particular from here to #1013 ? Happy to facilitate synthesis of messages if so.

I'll get on that now. I'll edit them both together (leaving their language and voice in also) and post in the comments here and in that post.

Dear City Councilmembers of Chico,
My name is [YOUR NAME] and I am a resident of Chico, California. I am emailing in support of the nationwide initiative to defund police departments in favor of supporting community based public safety measures. This includes an increased budget for social services to fight homelessness, addiction, mental illness, domestic violence, and sexual assault.
As you know, George Floyd, Ahmaud Arbery, Breonna Taylor, Tony McDade, Atatiana Jefferson, Tamir Rice, Philando Castile, Anthony Hill, Oscar Grant, Eric Garner, Yvette Smith, Desmond Phillips, and so many unnamed others have been killed as a result of deeply-rooted systemic racism and police brutality.
As a result of these events, I ask that the city council review their 2020-2021 budget. Instead of allocating 48.8% ($27 million dollars) of funds towards the Police Force, and only 2% (1.1 million dollars) towards developing our community, I ask you to reallocate funds from the police department to other areas that desperately need it. These areas include community development, mental health treatment, affordable housing, funding for domestic violence shelters, and investing in the Black and Indigenous communities. Homelessness is a public health and safety issue, and a reallocation of funds to mental health and addiction services instead of police organizations would greatly reduce the risk of homelessness in Chico. This is just one example of a marginalized group in Chico that would benefit from defunding Chico Police Department.
Unfortunately, there are no racial demographics in regard to arrest rates or homelessness that are easily accessible to the public. These statistics would make it much easier for the public and for community leaders, including Chico City Council, to see whether there are a disproportionate amount of arrests of Black, Indigenous, Latino, and other marginalized racial groups. It would also help the city of Chico to see whether the proportion of Black people and people of color face homelessness at higher rates. I demand that these numbers be made available to the public or otherwise counted in order to better serve BIPOC communities in Chico. Representation of these groups in Chico’s statistics for any public survey are of utmost importance. If there is no representation, there is no visibility, and if there is no visibility, then individuals belonging to the most marginalized groups will be underserved.
Research shows that a living wage, access to health services and treatment including mental health services, educational opportunity, and stable housing are far more successful at promoting safe and equitable communities than punitive systems like police or prisons.
In the journal of Sociology of Race and Ethnicity, Phillip McHarris (PhD candidate at Yale focusing on race) argues that we must work towards a reality in which healthcare workers and emergency response teams handle substance abuse, domestic violence, homelessness, or mental health cases. Policies to “improve the police” are not enough, as there’s no evidence that implicit bias training or community relations initiatives help with reducing the abuses of policing (Sources: The Nation, The Atlantic). We need to reimagine public safety to prioritize alternatives to conflict rather than defaulting to violence.
I demand immediate reduction of the police force budget, cancellation of cadet classes, demilitarization of our forces, and reallocation of funds from police to community-led health and safety strategies. We should redirect police funding to efforts that are actually proven to reduce crime, such as affordable housing, shelters, and mental health services.
It is your duty to represent your constituents. I am urging you to revise the Chico, CA recommended operating budget for FY 2020-21, and to increase funds to non-punitive community efforts.
This is a small step in light of a national discussion including defunding, disarming, and disbanding police forces. Major cities nationwide are having these discussions and just because Chico isn’t a metropolitan area, does not mean that local Black Lives Matter any less. We should be having these discussions alongside the national narrative. We need to reimagine the systems that keep our community safe.
Thank you for all you do for the City of Chico, and for your consideration.
Sincerely,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

Added Chico here: https://defund12.org/chico


while converting hls to hls when input get stopped for few seconds it shows Error: hls: no URL specified error, after input recived it does not reconnect to it[BUG]

Bug description:

How to reproduce:

Expected behavior:

Errors and logs:

[be sure to surround verbatim log lines with "~~~" lines]

Environment:

OS:
OS version:
TSDuck full version:
Installation type:

Additional information:

Please describe a precise analysis of your problem, including all required information in the template. A long title has never been a valid bug analysis.