text:
EchoService.echo now becomes public, because right now there is no wa…

EchoService.echo now becomes public, because right now there is no way to check weather if socket is connected or not"

I modified the service to include a getter for the EchoService.echo instance instead of just making it public (since "setting" it will break the service). I also added a "connected" getter which should work for all connector types (based on docs), but I have not yet had time to test either, so please update to the latest published version(s) to check them and let me know

chancezeus, thank you for modification. I agree that making EchoService.echo public is not a good idea.
I added new PR https://github.com/chancezeus/angular-laravel-echo/pull/7 where I suggest to add observer for connection state

authors: chancezeus qialex

repo: chancezeus/angular-laravel-echo


text:
Fixed an issue with incorrect dependent updates on none changesets with updateInternalDependents: "always"

This PR adds a pair of failing tests, showcasing the issue described in #947.
When updateInternalDependents:'always' is set then transitive dependencies of devDependencies should not be part of the release plan, howevever they currently are.
I believe the root cause of this issue is somewhere around this logic. There needs to be some way of stripping out dependencies of devDependencies from the release plan. I've tried and failed to work out how to do that with small adjustments, but I hope these tests can serve as a useful starting point for an actual fix.

UPDATE: fixes #947

I've pushed out a fix for this here - still need to recheck some other things though before I can land this.

Fixes and extra tests all look good to me. Thank you for taking this over @Andarist!

source: gharchive/pull-request

authors: Andarist BPScott

repo: changesets/changesets

license: MIT

license_type: permissive

license_source: github-api


text:
feat: add map_activations_fn param in ConceptMatcher

This PR adds an optional param map_activations_fn which can be used to modify the extracted activations in ConceptMatcher to allow things like SAEs.

https://github.com/huggingface/transformers/pull/31172 this commit breaks the Jacobian calculation in GPT2, not sure why

repo: chanind/linear-relational


text:
Seems to break my app, what am I doing wrong?

Disclaimer - noobie trying to learn, be gentle!
I'm running React & Meteor and experimenting around. Trying to create an editor that uses Medium-Editor (and love the idea of props vs state to control the content) hence giving this a shot.
main.js

import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import Body from './components/emailEditor/body'

import App from './components/app';

const routes = (
    <Router history={browserHistory}>
        <Route path="/" component={App}>
             <IndexRoute component={Body}/>
        </Route>
    </Router>
);

Meteor.startup(() => {
    ReactDOM.render(routes, document.querySelector('.app-mounter'));
});

./components/emailEditor/body.js
import React, { Component } from 'react';

class Body extends Component {
    render() {
        return (

body

        );
    }
}

export default Body;

That works fine - Renders 'body' on the page as expected.
I have installed this with npm install react-medium-editor-es6 --save
Now, the moment I import this (even without actually making use of the imported component, the app breaks - console goes mental being unable to load any script).
import React, { Component } from 'react';
import MediumEditor from 'react-medium-editor-es6';

class Body extends Component {
    render() {
        return (

body

        );
    }
}

export default Body;

What am I missing?
Thanks in advance to anyone who can help!

Hey @HemalR,
I haven't worked with Meteor in a while. I am not sure how Meteor handles transpiling. Have you added a way to tell Meteor that this package is using es6 syntax and not es5 (as instructed in readme ? My guess is that meteor loads npm modules assuming they're using CommonJS modules, and fails when it find ES6 modules used in this package.
You can always verify this by copy-pasting https://github.com/channikhabra/react-medium-editor-es6/blob/master/src/editor.js file in your code, and importing that.

Thanks for the help!
Apologies for the delayed gratitude - was offline for a few days.
Ended up getting a related meteor specific package working (mainly because I'm a noobie and wasn't able to figure this out :/ ). Will need to give it a whack just to understand how it works.
Thanks again!

source: gharchive/issue

authors: HemalR channikhabra


text:
Fix output in curl command download for point annotations

In the curl command for point annotation download, we still say local.mrc the extension here should be the same as object being downloaded.  For example, for annotations it should be local.ndjson.

extra context from Manasa: It doesn't prevent them from downloading the right thing, but if they use that command, it will save it locally with the wrong extension

repo: chanzuckerberg/cryoet-data-portal


text:
Add some new React lint rules

This PR adds a couple more React lint rules:

no-useless-key [sc-224556]
no-create-ref-in-function-component [sc-224557]

Thanks for the suggestions 👍

repo: chanzuckerberg/frontend-libs


text:
Pin Python dependencies

We've been having intermittent issues with our build process lately, and pinning our python dependencies will be one step towards more consistent, repeatable builds.  I'll cover the plugin requirements in a separate PR.

Looks good to me! My only question is: are the specified versions here ever going to change?

That's a good question, @klai95!  We have Dependabot enabled on this repository, which is configured so that we'll receive alerts and an automatic pull request when security vulnerabilities are found with any of our packages.
For non-critical updates, though, we'd update versions as needed: I'd imagine we'll do this periodically if required for a new dependency that requires other dependencies to be upgraded, or if a new release has a particular feature we want, but otherwise it's not necessary to have the latest version.

repo: chanzuckerberg/napari-hub


text:
Prod bucket should be named cellxgene-dataset-submissions without env specification at the end

We need to change the bucket name so that the prod bucket doesn't have -prod in its name. PR already created.

@metakuni just approve the PR pls

repo: chanzuckerberg/single-cell-data-portal


text:
test: 5455 connect PR rdev to e2e tests

Reason for Change

#TICKET_NUMBER
If the reason for this PR's code changes are not clear in the issue, state value/impact

Changes

add
remove
modify

Testing steps

Either list QA steps or reasoning you feel QA is unnecessary
Describe how you made sure to know that your changes worked. Should allow someone else to go verify your code without in depth knowledge.
"Unit tested only", "tested in rdev by a, b, c, verifying feature worked by... ", "manually ran pipeline locally with these results: ..."

Notes for Reviewer

Closing this PR to open a new one to make sure seeding works


text:
feat: add deployed_version endpoint

#582
Adds a deployed_version endpoint.

I will add a test, but note that it won't guarantee the endpoint to work since it's environment/infra dependent.

Can this be merged?

authors: ebezzi metakuni

repo: chanzuckerberg/single-cell-explorer


text:
[fix] download.sh

Fix download.sh by specifying .zip and fixing the path to the checksums
file.
This broke with our changes to support releasing to the registry and
this should fix #215.
Test Plan

[x] acceptance tests
[x] reproduce the problem with: curl https://raw.githubusercontent.com/chanzuckerberg/terraform-provider-snowflake/master/download.sh | bash -s -- -d -b $HOME/.terraform.d/plugins v0.13.2  and test the fix with curl https://raw.githubusercontent.com/chanzuckerberg/terraform-provider-snowflake/ryanking/update_download.sh/download.sh | bash -s -- -d -b $HOME/.terraform.d/plugins v0.13.2

References

Fixes #215

Codecov Report

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

@@           Coverage Diff           @@
##           master     #216   +/-   ##
=======================================
  Coverage   65.90%   65.90%
=======================================
  Files          50       50
  Lines        3693     3693
=======================================
  Hits         2434     2434
  Misses        933      933
  Partials      326      326

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 73e443e...93fb18e. Read the comment docs.

authors: codecov-commenter ryanking


text:
[doc] Update docs

This pull request includes several changes across multiple documentation files, primarily focusing on updating URLs and adding new content. The most important changes include updating GitHub links to reflect the new repository owner, adding new sections for Fourier Transform, Jax Lax, and Linear Algebra functions, and removing outdated content from the constants documentation.
URL Updates:

Updated GitHub URLs from chaoming0625 to chaobrain in multiple documentation files, including SECURITY.md, docs/advanced_tutorials/combining_and_defining.ipynb, docs/advanced_tutorials/mechanism.ipynb, docs/index.rst, docs/mathematical_functions/array_creation.ipynb, docs/mathematical_functions/customize_functions.ipynb, and docs/mathematical_functions/numpy_functions.ipynb. [1] [2] [3] [4] [5] [6] [7]

New Sections Added:

Added a new section for Fourier Transform functions in docs/mathematical_functions/fft_functions.ipynb.
Added a new section for Jax Lax functions in docs/mathematical_functions/lax_functions.ipynb.
Added a new section for Linear Algebra functions in docs/mathematical_functions/linalg_functions.ipynb.

Content Removal:

Removed outdated content from docs/apis/brainunit.constants.rst, including sections on mathematical constants, physical constants, and the constants database. [1] [2]

Minor Code Adjustments:

Adjusted execution counts and code blocks in docs/advanced_tutorials/combining_and_defining.ipynb to ensure proper execution and output display. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Excellent.

repo: chaobrain/brainunit


text:
按照步骤，环境和组件都装成功了，但是启动显示报错，找不到mmcv?

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Traceback (most recent call last):
File "D:\AI\ComfyUI\nodes.py", line 1879, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\AI\ComfyUI\custom_nodes\ComfyUI-MuseTalk_init.py", line 1, in
from .nodes import NODE_CLASS_MAPPINGS
File "D:\AI\ComfyUI\custom_nodes\ComfyUI-MuseTalk\nodes.py", line 26, in
from musetalk.utils.preprocessing import get_landmark_and_bbox,read_imgs,coord_placeholder
File "D:\AI\ComfyUI/custom_nodes/ComfyUI-MuseTalk\musetalk\utils\preprocessing.py", line 10, in
from mmpose.apis import inference_topdown, init_model
File "D:\AI\ComfyUI.ext\Lib\site-packages\mmpose_init_.py", line 2, in
import mmcv
ModuleNotFoundError: No module named 'mmcv'
Cannot import D:\AI\ComfyUI\custom_nodes\ComfyUI-MuseTalk module for custom nodes: No module named 'mmcv'

Did you have installed mmcv successfully?

sane here,  tried manually pip install mmcv, but build wheel error

repo: chaojie/ComfyUI-MuseTalk


text:
thread '' panicked at 'Send through channel failed: SendError { .. }', src/jsonrpc.rs:74:22

From https://cloud-native.slack.com/archives/C0193VAV272/p1704451321246929.
Here's the full log: https://gist.github.com/see-quick/6e34e37b559ab86169b251cd96210e69.
Any ideas? @STRRL @cwen0

I don't know if this helps but I have also provide io chaos logs from chaosctl  i.e.
chaosctl debug iochaos kafka-io-chaos-1 -n myproject
[Chaos]: kafka-io-chaos-1

[Pod]: my-cluster-kafka-1

	1. [Mount Information]

	overlay / overlay rw,context="system_u:object_r:container_file_t:s0:c9,c27",relatime,lowerdir=/var/lib/containers/storage/overlay/l/OZIDHLDAGIC4KTZHOFTEQESV2O:/var/lib/containers/storage/overlay/l/JG7YDVM6DFLQDLKGAJ6ALKIWDV:/var/lib/containers/storage/overlay/l/CVJUDOMREVACDMEQAHIAMNPGCM:/var/lib/containers/storage/overlay/l/L3MRMXXM6YCBX4AE5YT7FFI6TR:/var/lib/containers/storage/overlay/l/O6V4GIDP64A2HC25KGAY73K7JY:/var/lib/containers/storage/overlay/l/VRFOZN7LBI4GXBCTUR2ZV24HKH:/var/lib/containers/storage/overlay/l/52LBZZAAC3IP5TFBDSJ3SVRQM2:/var/lib/containers/storage/overlay/l/NGPGPJWVAQ4S2NLWWMVVZCUOVA:/var/lib/containers/storage/overlay/l/U3JACMCT7MRFVEIMM7XRLA3RSV:/var/lib/containers/storage/overlay/l/UWIDC3OWGWQ5ANK7GBSJFKBN4L:/var/lib/containers/storage/overlay/l/7QGITXUY7NKVZRWKUMBYB5MB3N:/var/lib/containers/storage/overlay/l/LZPQGVVH443WIMXVEUGIKACGXE:/var/lib/containers/storage/overlay/l/BXPCBLIS5M3O3ZRBX27XZGXFXJ:/var/lib/containers/storage/overlay/l/PYDWG5KI3LZKVDBFKNVPVFOR5I:/var/lib/containers/storage/overlay/l/FFGBP4F5EILLBUI53C7FCIJXK5:/var/lib/containers/storage/overlay/l/PDON37QKW5SIVIMVMKDGYH75K6:/var/lib/containers/storage/overlay/l/XWBNUDDBICIEOYZWFTZG6Z6UOI:/var/lib/containers/storage/overlay/l/CGVL5BRZXNHZ3L7UJBEDFQNCRF:/var/lib/containers/storage/overlay/l/XYVQTA3OUO6MBA25CQALVOQK5W,upperdir=/var/lib/containers/storage/overlay/ae38c4f416d8a7eacaae19e92a74ab4cd30d8034d3ab5a180098d605e12d1bb4/diff,workdir=/var/lib/containers/storage/overlay/ae38c4f416d8a7eacaae19e92a74ab4cd30d8034d3ab5a180098d605e12d1bb4/work,volatile 0 0
	proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
	tmpfs /dev tmpfs rw,context="system_u:object_r:container_file_t:s0:c9,c27",nosuid,size=65536k,mode=755,inode64 0 0
	devpts /dev/pts devpts rw,context="system_u:object_r:container_file_t:s0:c9,c27",nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 0 0
	mqueue /dev/mqueue mqueue rw,seclabel,nosuid,nodev,noexec,relatime 0 0
	sysfs /sys sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 0
	cgroup /sys/fs/cgroup cgroup2 ro,seclabel,nosuid,nodev,noexec,relatime 0 0
	shm /dev/shm tmpfs rw,context="system_u:object_r:container_file_t:s0:c9,c27",nosuid,nodev,noexec,relatime,size=65536k,inode64 0 0
	tmpfs /etc/resolv.conf tmpfs rw,seclabel,nosuid,nodev,noexec,size=3272884k,nr_inodes=819200,mode=755,inode64 0 0
	tmpfs /etc/hostname tmpfs rw,seclabel,nosuid,nodev,size=3272884k,nr_inodes=819200,mode=755,inode64 0 0
	tmpfs /run/.containerenv tmpfs rw,seclabel,nosuid,nodev,size=3272884k,nr_inodes=819200,mode=755,inode64 0 0
	tmpfs /etc/passwd tmpfs rw,seclabel,nosuid,nodev,noexec,size=3272884k,nr_inodes=819200,mode=755,inode64 0 0
	tmpfs /tmp tmpfs rw,seclabel,relatime,size=5120k,inode64 0 0
	/dev/vda4 /etc/hosts xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
	/dev/vda4 /dev/termination-log xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
	tmpfs /run/secrets tmpfs rw,seclabel,nosuid,nodev,size=3272884k,nr_inodes=819200,mode=755,inode64 0 0
	tmpfs /opt/kafka/cluster-ca-certs tmpfs ro,seclabel,relatime,size=15213440k,inode64 0 0
	tmpfs /opt/kafka/broker-certs tmpfs ro,seclabel,relatime,size=15213440k,inode64 0 0
	tmpfs /opt/kafka/client-ca-certs tmpfs ro,seclabel,relatime,size=15213440k,inode64 0 0
	/dev/vda4 /opt/kafka/custom-config xfs ro,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota 0 0
	tmpfs /var/opt/kafka tmpfs rw,seclabel,relatime,size=4k,inode64 0 0
	/dev/vdc /var/lib/kafka/data-0 ext4 rw,seclabel,relatime 0 0
	tmpfs /run/secrets/kubernetes.io/serviceaccount tmpfs ro,seclabel,relatime,size=15213440k,inode64 0 0
	proc /proc/bus proc ro,nosuid,nodev,noexec,relatime 0 0
	proc /proc/fs proc ro,nosuid,nodev,noexec,relatime 0 0
	proc /proc/irq proc ro,nosuid,nodev,noexec,relatime 0 0
	proc /proc/sys proc ro,nosuid,nodev,noexec,relatime 0 0
	proc /proc/sysrq-trigger proc ro,nosuid,nodev,noexec,relatime 0 0
	tmpfs /proc/acpi tmpfs ro,context="system_u:object_r:container_file_t:s0:c9,c27",relatime,inode64 0 0
	tmpfs /proc/kcore tmpfs rw,context="system_u:object_r:container_file_t:s0:c9,c27",nosuid,size=65536k,mode=755,inode64 0 0
	tmpfs /proc/keys tmpfs rw,context="system_u:object_r:container_file_t:s0:c9,c27",nosuid,size=65536k,mode=755,inode64 0 0
	tmpfs /proc/timer_list tmpfs rw,context="system_u:object_r:container_file_t:s0:c9,c27",nosuid,size=65536k,mode=755,inode64 0 0
	tmpfs /proc/scsi tmpfs ro,context="system_u:object_r:container_file_t:s0:c9,c27",relatime,inode64 0 0
	tmpfs /sys/firmware tmpfs ro,context="system_u:object_r:container_file_t:s0:c9,c27",relatime,inode64 0 0

	2. [podiochaos]

	{
	  "VolumeMountPath": "/var/lib/kafka",
	  "Container": "kafka",
	  "Actions": [
	    {
	      "Type": "fault",
	      "path": "/var/lib/kafka/data/*",
	      "percent": 50,
	      "Faults": [
	        {
	          "errno": 5,
	          "weight": 1
	        }
	      ],
	      "Latency": "100ms"
	    },
	    {
	      "Type": "fault",
	      "path": "/var/lib/kafka/data*/*",
	      "percent": 50,
	      "Faults": [
	        {
	          "errno": 5,
	          "weight": 1
	        }
	      ],
	      "Latency": "100ms"
	    },
	    {
	      "Type": "fault",
	      "path": "/var/lib/kafka/data*/*",
	      "percent": 50,
	      "Faults": [
	        {
	          "errno": 5,
	          "weight": 1
	        }
	      ],
	      "Latency": "100ms"
	    },
	    {
	      "Type": "latency",
	      "path": "/var/lib/kafka/data*/*",
	      "percent": 50,
	      "Faults": [
	        {
	          "errno": 0,
	          "weight": 1
	        }
	      ],
	      "Latency": "100ms"
	    }
	  ]
	}

SendErr is likely caused by receiver being dropped (child thread exit), we should ignore this err (just report a warning), which is not important.

authors: Hexilee g1eny0ung see-quick

repo: chaos-mesh/toda


text:
Umbrella Issue: Review of Released Metics

Metrics Review 2022
The common working group will be reviewing these released metrics during 2022. We will review for quality, context, and grammar. Following the guidelines developed for the release checklist, we expect most of these will fall under item 3 in the metrics revision checklist, with changes constituting only spelling, grammar, or clarity edits. https://handbook.chaoss.community/community-handbook/community-initiatives/metrics/releases#revising-existing-metrics:
If substantial changes are made to the metric, it will need to go through the full review process. The working group should determine if a metric has been edited to an extent that requires the full review
Types of metric changes that do not require full review:

Grammar or spelling fixes (not including metric name)
Updates to sections References and Contributors
Three new additions are listed below

We will also add the following to each metric:

Data statement (focused on privacy concerns. Now part of the metrics template at the top of the implementation section)
Add a last reviewed date to each metric reviewed. Make a note that this date is part of a recurring review. Indicate if we did grammar/clarity edits, or put the metric through a full review. This will vary by metric.
Add known synonyms to the metric

Metrics to review:

[ ] Organizational Diversity
[ ] Contributor Location
[ ] Contributors
[ ] Bot Activity
[ ] Types of Contributions
[ ] Programming Language Distribution
[ ] Technical Fork
[ ] Clones
[ ] Activity Dates and Times
[ ] Time to Close
[ ] Time to First Response
[ ] Burstiness
[ ] Review Cycle Duration within a Change Request
[ ] Collaboration Platforms
[ ] Event Locations

These are the checklist items to address in each metrics review: Put these in each issue for all of the metrics above and put that issue number / link above next to the checklist item.
Content Quality

[ ] Required headings are filled in, including Questions.
[ ] Description provides context to metric
[ ] Objectives list sample uses for the metric and desired outcomes
[ ] If any, DEI uses of the metric are included Objectives
[ ] Review for inclusive naming
[ ] Optional headings that have no content were removed
[ ] Contributors section lists those contributors that want to be named
[ ] The name of the metric is the same in (1) metric heading, (2) metric file name, (3) focus area, (4) metrics spreadsheet, (5) “review issue”, (6) translation issue, and (7) website

Technical Requirements

[ ] Message in the metric markdown file that the metric will be part of the next regular release is at top of page and the links are correct (this is in the metric template) (If necessary)
[ ] Metric file name is the full metric name and only contains lower case letters and hyphens (“-”) for spaces
[ ] Images are included using markdown and absolute links (as described in the metrics template) (absolute links are required for the website. Relative links break all the time.)
[ ] Images have at least one empty line above and below them
[ ] Ensure images are placed in image folder and followed naming convention
[ ] If a new focus area is created, ensure focus area is added to wg repo readme and focus area folder readme
[ ] Within the focus area, add the metric in the table and provide the link to the metric and metric question
[ ] Ensure tables within metric are converted as images and placed in the image folder (both original MD and screenshotted PNG format) and follow the naming convention
[ ] No HTML code in the metrics markdown file

Doing a little repo cleanup today and I'm going to close this, as we are updating all metrics to the new template and doing a refresh of them all in the process.

authors: ElizabethN germonprez

repo: chaoss/wg-metrics-development


text:
🛑 Silky.Network - it is down

In 011c291, Silky.Network - it (https://it-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 77 ms

Resolved: Silky.Network - it is back up in f22e1cb after 7 minutes.

repo: chaotic-aur/chaotic-uptimes


text:
🛑 Silky.Network - za is down

In f960da9, Silky.Network - za (https://jnb-za-mirror.silky.network) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Silky.Network - za is back up in 64b964b after 44 minutes.


text:
🛑 Silky.Network - us-ca is down

In 641e197, Silky.Network - us-ca (https://us-ca-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 48 ms

Resolved: Silky.Network - us-ca is back up in 78ca7a6.


text:
Suggestion: Splitting into .s files?

Would it be possible to have something similar to uncc but simply splitting the ELF into assembly files? It would be very helpful for decompilation projects so that the ELF can be built from them. This way, a project can also continuously verify that their code matches the original perfectly.

It would be a great feature, although I'm currently working on something else.

Another solution would be to implement code diffing for individual object files, but in the end it would be nice to have both.

authors: OndrikB chaoticgd

repo: chaoticgd/ccc


text:
RS485 not working in charge control C board

Hi,
I have an issue with RS485 connection in board. When I am connecting IMD with the board and trying to read register value through everest, it is showing checksum value doesn't match but same thing is working in pc. I am attaching the screenshort of the error coming, can you tell me is it problem in accessing the port or we have to set something in our code.
Thank You

Hi,
Thank you for the reply, it is false in the config file.

So, if you change it to true and restart the EVerest stack, is the issue then gone?

Yeah, thank you issue is gone.

authors: VishuAVL mhei

repo: chargebyte/everest-chargebyte


text:
是不是本地持久化不支持？

很好的处理了request的问题，业务功能的cookie尽量还是用wxStorage吧

@melunar 持久化是根据 cookie 的 maxAge 和 expires 来决定是否需要保存到 storage 里面的，和浏览器的 cookie 机制基本保持一致


text:
This VS microsoft version

Hi, do you have a recommendation whether to use this extensions versus the microsoft terraform extension?
I saw that you work for MS. Did you work on MS's terraform ADO extension?
BTW, this extension's TerraformInstall task and the one from MS have identical names and having both extensions causes a conflict.

Hey @gjcampbell, to be honest i was not aware of the other extension. It looks like that was created only a few months ago. I would recommend evaluating which suites your needs best. It appears that the other supports deployments to other cloud providers than azure. If you need to deploy to AWS or Google, that may be a good reason to use the other.
As a side note, I am trying to work on transitioning this extension to a microsoft dev team. I am hoping this transition will happen before the end of the year. If that is successful then this should have a full time dev team. I would imagine these would eventually be converged after that point.
Hopefully that helps. Let me know if you have any other questions.

authors: charleszipp gjcampbell


text:
[Question] Re-raising errors and BLE001

Not sure if this is the right place to ask since this is a check from flake8-blind-except, but:
Using this check is a bit hard in some cases without ignoring it, for example when we want to report an exception and explicitly re-raise it:
try:
    return handler(request)
except Exception as e:
    sentry_sdk.capture_exception(e)
    raise

In my opinion catching Exception should be ok as long as you re-raise it 🤔

Some discussion here about this being a good idea: https://github.com/PyCQA/flake8-bugbear/issues/174

It has been implemented here.
We could use the same approach.

Yeah I just didn't feel it was worth the complexity vs. the common case right now vs. some other things I need to get done. You're very welcome to work on it if you'd like, @JonathanPlasse!

repo: charliermarsh/ruff


text:
How to submit a pull request from your forked repo?

Add ## How to submit a pull request from your forked repo? to README with appropriate instructions.
Please also add instructions that they reference the issue that they are fixing by including a hyperlink to the issue.

I can take this one.

👀

Hey @TammyTee you mind adding some hyperlinks to github documentation on the subject?

@binarymason All set!

authors: TammyTee binarymason

repo: charlottejuniordevs/faq


text:
Feature: Are we able to render Images?

Thanks, Was waiting for such a beauty a long time ago.
These people managed to render an image in a terminal with rust:
https://github.com/atanunq/viu
Is it possible to add an image rendering feature to lipgloss?
Thanks.

That's a good idea. We've had our eyes on viu and viuer for some time. No timeline as to when we'd be be able to get this feature in, but I believe it does make sense here.
In the meantime, have a look at imgcat for image rendering.

I'll try to read lipgloss to see how it works, maybe I could put some energy on this matter after learning lipgloss

authors: meowgorithm unikzforce

repo: charmbracelet/lipgloss


text:
MIT license for PDFs generated

Documentation Is:

[ ] Missing or needed?
[ ] Confusing
[X] Not sure?

Please Explain in Detail...
I am using Chart.js to generate dashboards with analytics for clients. One of those clients asked to add functionality to export a PDF of such a dashboard to distribute. Does that PDF need to include a copy (or part of) the MIT license included in this project (chart.js)? I understand that it should be included in the codebase, but I am specifically referring to the generated PDFs which might be distributed/printed/sold.
My apologies if this is not the place to ask this! My first thoughts were StackOverflow, but I felt like it didn’t quite belong there. So feel free to move this if need be! 😊
Your Proposal for Changes
It’d be nice if we could add some examples of allowed use cases with caveats (if any) in the docs.
Example
No response

@bramvbilsen AFAIK Chart.js is not producing any PDF. You can export the chart in PNG or JPG therefore I think you you are using another lib to create the PDF. If MIT license is needed also for images add to PDF, you can use the license published in teh repo, I guess.

@stockiNail I understand that Chart.js itself does not generate PDFs, but the charts might end up in a PDF (or image format). But at its core, the charts, wherever they end up, are still created with Chart.js. I do not know if that makes any difference?
As the generated media is not part of the software anymore and the MIT license states the following:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

I believe the created charts can be used without any mention of the license/notice/chart.js.
But I wanted to confirm this :)

I have no background in law so I am not totally sure but I don't think you have to include it in your pdf, a lot of sites also use chart.js and don't have the licence listed on the site.
Afaik there have never been an incident because chart.js was used and no license reference was provided

My understanding is that you do not need to include the license for chart.js since the PDF contains no code. The canvas -> image process is done by the browser via getImageData which I don't think causes licensing problems.
The styling of the charts produced is an artifact of the supplied data and configuration which is outside the scope of the chartjs project and thus the licensing

@etimberg I was under the same impression! Thank you all for your takes on this.

authors: LeeLenaleee bramvbilsen etimberg stockiNail


text:
Remove padding from first and last bar

Expected behavior
I need remove left padding from first element and right from last one
Current behavior
I have paddings

Reproducible sample
https://www.chartjs.org/dist/master/chart.umd.js
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
4
Browser name and version
No response
Link to your project
No response

This is not a bug, for these kind of questions please head over to Stack overflow


text:
Bar chart not displaying data after updating to version 2.5.0

The title explains the issue, here is some code :

Dreams by Category

            <?php
            $options = array(
                "type" => "bar",
                "data" => getCategories(),
                "hoverSingular" => "1 dream under \$label has been shared (\$percent)",
                "hoverPlural" => "\$value dreams under \$label have been shared (\$percent)",
                "dataHREF" => "categoryDreams.php?categoryID=\$id"
            );
            echo createChart($options);
            ?>

function addChart(options) {
    var dataHREF = options.dataHREF;
    var name = options.name;
    var canvas = options.canvas;
    var type = options.type;
    var data = options.data;
    var hoverSingular = options.hoverSingular;
    var hoverPlural = options.hoverPlural;
    var isDarkTheme = options.darkTheme;

    var bgColor = options.bgColor;
    var hoverBGColor = options.hoverBGColor;

    var options = "";
    switch (type) {
        case "bar":
            options = getBarOptions(hoverSingular, hoverPlural, darkTheme)
            break;
        case "pie":
            options = getPieOptions(hoverSingular, hoverPlural)
            break;
    }
    createChartsFunctionArray.push(function () {
        if (typeof charts[name] !== 'undefined') {
            charts[name].destroy();
        }
        charts[name] = new Chart(canvas, {
            type: type,
            data: getChartData(data, bgColor, hoverBGColor),
            options: options
        });
    });
    createCharts();

    canvas.on("click", function (event) {
        chart = charts[name];
        var activePoint = chart.getElementAtEvent(event);
        var activePoints = chart.getElementsAtEvent(event);
        if (activePoint.length > 0) { /* Clicked in data */
            var dataset = activePoint[0]._datasetIndex;
            var clickedElementindex = activePoints[0]["_index"];
            var label = chart.data.labels[clickedElementindex];
            var value = chart.data.datasets[dataset].data[clickedElementindex];

            window.location = dataHREF[label];
        }
    });

}

function getBarOptions(hoverSingular, hoverPlural, isDarkTheme) {
    var gridLines = {
        color: "rgb(220, 220, 220)",
        zeroLineColor: "rgb(220, 220, 220)"
    }
    var ticks = {
        autoSkip: false,
        fontColor: "rgb(100, 100, 100)",
        beginAtZero: true,
        stepSize: 1
    }

    return {
        legend: false,
        tooltips: {
            callbacks: {
                label: function (tooltipItem, data) {
                    //get the concerned dataset
                    var dataset = data.datasets[tooltipItem.datasetIndex];
                    var label = data.labels[tooltipItem.index];

                    //calculate the total of this data set
                    var total = dataset.data.reduce(function (previousValue, currentValue, currentIndex, array) {
                        return previousValue + currentValue;
                    });
                    //get the current items value
                    var currentValue = dataset.data[tooltipItem.index];
                    //calculate the precentage based on the total and current item, also this does a rough rounding to give a whole number
                    var precentage = Math.floor(((currentValue / total) * 100) + 0.5);

                    labelFormat = "";

                    if (dataset.data[tooltipItem.index] == 1) {
                        labelFormat = hoverSingular;
                    }
                    else {
                        labelFormat = hoverPlural;
                    }

                    if (labelFormat == "" || labelFormat == null) {
                        return label + " : " + dataset.data[tooltipItem.index] + " (" + precentage + "%)";
                    }

                    labelFormatCopy = labelFormat;
                    labelFormatCopy = labelFormatCopy.replace("$label", label);
                    labelFormatCopy = labelFormatCopy.replace("$value", dataset.data[tooltipItem.index]);
                    labelFormatCopy = labelFormatCopy.replace("$percent", precentage + "%");

                    return labelFormatCopy;
                }
            },
            enabled: false,
            custom: function (tooltip) {
                var $tooltip = $('#tooltip-infoMessage');

                // Hide if no tooltip
                if (!tooltip) {
                    $tooltip.hide();
                    $('html,body').css('cursor', 'default');
                    return;
                }

                if (tooltip.body) {
                    var innerHtml = [
                        (tooltip.body[0].lines || []).join('\n')
                    ];
                    $tooltip.html(innerHtml.join('\n').replace(/,/g, ', '));
                }
                else {
                    $tooltip.hide();
                    $('html,body').css('cursor', 'default');
                    return;
                }

                $('html,body').css('cursor', 'pointer');

                $tooltip.attr("target", "#mouse");
                $tooltip.show();

                positionTooltips();
            }
        },
        scales: {
            xAxes: [{
                gridLines,
                ticks
            }],
            yAxes: [{
                gridLines,
                ticks
            }]
        }
    }
};

@Frog8fly could you put this in a fiddle so that we can debug?

@etimberg I will do that. I noticed that in getBarOptions function, if I return {}; at the beginning, the chart works. Something in the options is causing problems now that it is updated to 2.5.0.

@etimberg I will try to narrow down exactly which lines of code causes the chart to not show data.

@etimberg  Ok, removing the scales object at the end of the return inside the getBarOptions causes the chart to display the data.

Not sure why that is...

My bad, I posted comments earlier that were mistaken.

@etimberg I discovered the error. "legend:false". Removing that from the return statement inside getBarOptions fixes the chart. How can I disable the legend now?

@Frog8fly I think that's already fixed.
Have you tried
options: {
  legend: {
    display: false
  }
}

Closing as resolved

Hi,how to show the value of data on the top of bar?I found some code like 'this.chart1.Series[0].IsValueShownAsLabel = true;' but is not supported by chart.js 2.x . Please show me a way to show it in chart.js 2.x . Thanks!

authors: Frog8fly ensleep etimberg


text:
user to complete the chart

hello
i need to make a line chart where the user complete the last point then take an action depending on it.
so any ideas?
thanks

Please ask questions on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js

authors: mrashrafmohamed simonbrunel


text:
Change ticks.mode to scale.distribution

Fix ticks.mode behavior when ticks.source is auto: the lookup table is now built from the data and not from the ticks, so data (and ticks) are correctly distributed along the scale. Rename the option to distribution (more explicit than mode) and since this option applies from now on the data, it seems better to have it under scale instead scale.ticks.
@benmccann

lgtm

thank you for this!!

authors: benmccann simonbrunel


text:
Allow dynamic bubble chart point styles

Bubble charts did not allow setting the pointStyle attribute when updating a dataset.

Since I was modifying the update of the bubble chart and rewriting the associated doc, I added this feature the same PR.

Works for me.  I'm not concerned about how it gets in, as long as I get to use it.

Sounds good, would you mind to checkout my feature branch and test the associated PR?

It's working with my use-cases.

Implemented in #4671


text:
Setting resizeDelay to non-zero value gives "Cannot read properties of undefined (reading 'left')" on clipArea error

Using chart.js@4.40 and chartjs-plugin-annotation@3.0.1, an error is generated "Cannot read properties of undefined (reading 'left') on clipArea" when the resizeDelay option is set to non-zero.
JSFiddle: here (or just copy and paste this into a new fiddle)
<div>
  <canvas id="myChart"></canvas>
</div>

<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation@3.0.1"></script>

<script>
  const ctx = document.getElementById('myChart');

  new Chart(ctx, {
    type: 'bar',
    data: {
      labels: [1, 2, 3, 4, 5, 6],

      datasets: [{
        label: '# of Votes',
        data: [12, 19, 3, 5, 2, 3],
        borderWidth: 1
      }]
    },
    options: {
      scales: {
        y: {
          beginAtZero: true
        }
      },
      resizeDelay: 100,
      annotation: {
        annotations: {
          box1: {
            // Indicates the type of annotation
            type: 'box',
            xMin: 1,
            xMax: 2,
            yMin: 8,
            yMax: 10,
            backgroundColor: 'rgba(255, 99, 132, 0.25)'
          }
        }
      }
    }
  });
</script>

If you comment and uncomment line 28, resizeDelay: 100, the JSFiddle shows "script error" appear when resizeDelay is set.
The error appears to be in the Draw function
https://github.com/chartjs/chartjs-plugin-annotation/blob/193e4ceba18c4d242e8e7d30bcc2ee78b135894f/src/annotation.js#L151-L167
Where clipArea(ctx, chartArea) is called but chartArea is not yet defined, hence the chart.js helper at
https://github.com/chartjs/Chart.js/blob/master/src/helpers/helpers.canvas.ts#L327
fails.
My guess at a possible solution could be to only draw if ctx and chartArea are defined?
alternatively, it may be one for the maintainers of chartJS to fix for all users of plugin helprs. It only seems to affect chartjs-plugin-annotation however, not other plugins we're currently using such as chartjs-plugin-zoom

@edwardmjackson thank you for issue. I have tried your code both in JSFiddle and Codepen but I don't have any issue, both enabling and disabling resizeDelay.
You can see my codepen https://codepen.io/stockinail/pen/YzdELbx.
Anyway I see that the box annotation looks like to be configured in the wrong place, in chart options. The annotation plugin options must be located in the "plugins" node of chart options.
If I have done something wrong for reproducing your issue, let me know.

This is very curious. I reproduced at work, which is using Chrome. At home, Firefox (at least v 117.0.1) doesn't have the same issue though. The Chrome build is Version 116.0.5845.188 (64-bit) on Windows.
Hopefully this ScreenToGif works to show what I'm seeing.

uhmm... It's really weird. I have tried with Chrome Version 117.0.5938.88 (Official Build)  (and before with FF 117.0.1) and no issue doing the same things you showed me in the img.
Let me take time (I'm very busy on other stuff in this period) to try reproducing the issue.

I was able to reproduce it. JSFiddle + Chrome. With FF works and on Codepen works on both browser.
Anyway, let me report here the exception:
Uncaught TypeError: Cannot read properties of undefined (reading 'left')
    at Object.Ie [as clipArea] (chart.js@4.4.0:19:18340)
    at Jt (chartjs-plugin-annotation@3.0.1:7:33797)
    at Object.beforeDraw (chartjs-plugin-annotation@3.0.1:7:33031)
    at d (chart.js@4.4.0:13:1113)
    at sn._notify (chart.js@4.4.0:19:82974)
    at sn.notify (chart.js@4.4.0:19:82795)
    at An.notifyPlugins (chart.js@4.4.0:19:101789)
    at An.draw (chart.js@4.4.0:19:97016)
    at An.render (chart.js@4.4.0:19:96791)
    at An._resize (chart.js@4.4.0:19:91846)

authors: edwardmjackson stockiNail

repo: chartjs/chartjs-plugin-annotation

license: mit

license_source: bigquery


text:
Site just showing "Cannot GET /" after setup

Could anyone help point me in the right direction

@Jegard Sounds like you might be trying to navigate to localhost:8080 directly. You shouldn't need to. Use your normal dev environment url. The dev server is only used to serve assets.

authors: Jegard chasegiunta

repo: chasegiunta/craft-vue

license: Unlicense


text:
~[Installing] go get install deprecation

Deprecation of 'go get' for installing executables
@see https://go.dev/doc/go-get-install-deprecation and https://github.com/golang/go/issues/40276
close #649
An other TODO will be to make the deprecation in the CICD and Makefile :

https://github.com/cheat/cheat/blob/7fe0fed32bfbe15a2647d04d31e3cb7f860deeaa/.github/workflows/build.yml#L24
https://github.com/cheat/cheat/blob/768d55e5d4738131cdcb097004d5de45e762db4e/Makefile#L118
https://github.com/cheat/cheat/blob/768d55e5d4738131cdcb097004d5de45e762db4e/Makefile#L143

But I got no time to make tests around today...
... Let's me know if you want me to do this simple change or if your preference goes to keep the CI/CD well maintained by yourself :thinking:

The pagination is awful (made it directly from GitHub for a quick fix...) : I can redo this less poorly later if needed ☹

@Rom1deTroyes
Thanks very much for your PR, and for your other comments regarding go install.
I ended up overhauling the documentation surrounding installation, and created an INSTALLING.md file:
https://github.com/cheat/cheat/blob/master/INSTALLING.md
As such, I'll close this PR without merging, but thanks for your time in putting it together.
Regarding your other remarks regarding go install.
That was a really good catch. I tried to make the proposed go install changes in the CI configuration and Makefile, but interestingly, it failed because other dependencies would fail to install. As best as I can tell, the root cause of the problem is that I'm not the only Go author that was caught unaware of the go install/module behavior changes:
https://github.com/boyter/scc/issues/270
That being the case, I'll continue to use go get -u for installing external packages, because it works even though it's incorrect. Once this gets sorted out upstream, I'll make the corresponding changes to this project as well.
Thanks again for your help.

repo: cheat/cheat


text:
Vertical alignment on notifications is off

Just barely, but still a tiny bit off:

My bad. I think I did something funky with line height here. Ensure you test with multiple lines of text as well when fixing this.

Fixed in #253

authors: ScopeyNZ robbieaverill

repo: chec/ui-library


text:
replace load_current_value with hab status

Currently the hab_service resource uses the Habitat supervisor's API to get the service state. In Habitat 0.22.0, a new hab sup status command that will report the status of the given service names. At this time, the output is not super friendly for machine consumption. Chiefly, there are  two problems:

The output uses color escape sequences that can make parsing problematic
The output is an English sentence that means we have to use a regular expression to get the data we want

It is preferable that the output report the service name / fully qualified Habitat package identifier with its current state as two separate fields in a string that has a stable API so we don't have to update the load_current_value method again later.
Once this issue is resolved, we should use hab sup status to get the status of services in the supervisor.

I'd actually prefer to stick to the endpoint. Parsing out shellouts is problematic and probably slower.

repo: chef-cookbooks/habitat


text:
generate an effortless report for investigative purposes

This is a fact-finding mission to investigate how to create project rules that match effortless client runs and effortless InSpec nodes.

Run effortless for Client Runs and InSpec and store the JSON report in the Automate repo for future testing.
With the effortless Client Run report test if project rules can be created to match only effortless nodes. See if this can be done with effortless InSpec reports also.
Estimate how much work in changing ingestion for the ingest-service, compliance-service, and nodemanager-service to separate Solo runs from non-Solo runs.

q: do you know if theres a way to determine if a node is an effortless node?
a (from vj):

only by the fact that the chef-server on it will be localhost
which really means it could also be any chef solo run
there’s no way to differentiate between effortless and chef solo afaik
from the inspec report you would only see that it doesn’t have any chef server info/additional info on it

More information about decerning if the Chef Client Run is an effortless run or not
https://docs.google.com/document/d/1PAcw5nAXpywtyo6iql1UYpmb0rt2jYyb4aNAI8lLKds/edit?usp=sharing

I created an effortless CCR example here https://github.com/chef/automate/compare/lancewf/effortless_ccr_example.
I am able to create project ingestion rules to match only Chef Solo runs. If the user creates a rule that matches the "Chef Server" = "localhost".
I am investigating how to change the environment for an effortless infra run.

I have confirmed that the effortless InSpect report's environment field exists and can be changed. There are no other fields in the report that are used for IAMv2 project filtering. There is no way to target only Effortless InSpect reports without changes to InSpec.
Attached is the effortless InSpect report.
https://app.zenhub.com/files/179318179/11501592-d522-46f6-83fa-ae789e05df88/download

Recommendations
Write up documentation on ways to match only Effortless Infra nodes.
Consider making updates to Chef Solo to add the chef-tag field to its config file.
Also, consider making updates to InSpec to add the chef-tag field in the "Automate Reporter" section of the config file (https://www.inspec.io/docs/reference/reporters/).
If we add this field to Effortless Infra and Effortless InSpec then users can create projects to match this field.

authors: lancewf susanev

repo: chef/automate


text:
Adding node status from new control index in control List API

:nut_and_bolt: Description: What code changed, and why?
Added the node status to point it to the new control index. Node status in the control items API is from new control index now.

:chains: Related Resources
https://chefio.atlassian.net/browse/STALWART-171
:+1: Definition of Done
The new control index structure now can handle the filters at the node level to support the filtering from the UI side.
:athletic_shoe: How to Build and Test the Change

Rebuild compliance service using rebuild components/compliance-service
Add some data from hab using chef_load_compliance_scans -D1 -N20 -M20 -T20
The API can used to fetch the data

curl --location --request POST 'https://a2-dev.test/api/v0/compliance/reporting/controls' \
--header 'api-token: ${get_admin_token}' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/json' \
--data-raw '{
    "filters": [
        {
            "type": "start_time",
            "values": [
                "2022-07-06T00:00:00Z"
            ]
        },
        {
            "type": "end_time",
            "values": [
                "2022-07-11T23:59:59Z"
            ]
        }
    ]
}'

:white_check_mark: Checklist
All PRs must tick these:

[X] I have read the CONTRIBUTING document.
[X] All commits signed-off for the Developer Certification of Origin.

With occasional exceptions, all PRs from Progress employees must tick these:

[X] Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
[X] Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
[X] Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
[X] Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
[X] Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

[X] Tests added/updated? (all new code needs new tests)
[X] Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.
:camera: Screenshots, if applicable

Are string_tags the control tags?

@kalroy Yes string tags are control tags

please add one or two lines of descriptions to the new methods/functions created about what that method is doing.

Added comments.


text:
Newer versions of chef-dk are not published on rubygems

Description
https://rubygems.org/gems/chef-dk - there is no version 2

Are there any reasons not to upload it to rubygems anymore?
Any change to get it to rubygems again?

I'm not using the chefdk package, but rvm setup. I've several reasons for it:

I use the latest versions of inspec and test-kitchen etc
I have different gemset setups for different chef versions etc

I would really like to see it back on rubygems

ChefDK 2.0 hasn't been released yet so not sure what you're looking for.

Though it looks like we did miss ChefDK 1.4 on there, which should be fixed. The joys of out-of-cycle releases.

Hm, okay. There are git tags with version 2, this was the reason for my confusion

@artem-sidorenko We do continuous builds for every commit which get tagged and put in the current repositories. Once we have a build we're happy with, we'll promote it to stable which is the "release". At that point we push that version to Rubygems and other such things.

@coderanger makes sense, thanks for explanation

should I keep it open as a reminder for 1.4 version on rubygems?

No, that's already tracked elsewhere. 1.4 was a slightly manual release because we just couldn't get 2.0 to behavior in time for ChefConf.

authors: artem-sidorenko coderanger

repo: chef/chef-dk


text:
Add ChefZero::Dist to abstract branding details to a single location

Related to chef/chef's #8376 design proposal to set brands in a single location for easy patching by community distributions.
Description

Add a dist.rb file defining the PRODUCT and CLIENT constants to be used in outputs.
Replace occurences of chef-zero and Chef-Zero by their constant counterparts.
add a require "chef_zero/dist.rb" to files updated on point above

Related Issue
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] All commits have been signed-off for the Developer Certificate of Origin.

@stevendanna do I need to redo the last change on my side and force push to sign it to avoid the check problem or could it be left as-is ?

@Tensibai can you make sure all the commits have the DCO sign off?

To be extra complete, changes in rspec.rb and socketless_server_map.rb does change the output text/exception text to what was coherent in my mind, there's a possibility this breaks someone tests out there.

@tas50 any update on when this will get merged?

authors: Tensibai ramereth tas50

repo: chef/chef-zero


text:
apt_repository resource generates bad source list files

Description
apt_repository resource will generate source list file as the following :
deb      'uri' distribution components

The quotes around the uri are not necessary, apt will ignore them but not apt-file (binary use to search for file in packages).
Apt-file will log an error : W: Don't know how to handle "http
See example of valid source lists : https://wiki.debian.org/SourcesList
See manpage of sources.list : https://manpages.debian.org/jessie/apt/sources.list.5.en.html
From what I have read, spaces (if this is the reason of such quotes) should be escaped with %20 or something like that
Chef Version
Master : https://github.com/chef/chef/blob/master/lib/chef/provider/apt_repository.rb#L233
Platform Version
Ubuntu / Debian as it is apt specific
Replication Case
Create a simple cookbook doing an apt_repository. The example in the doc is good enough : https://docs.chef.io/resource_apt_repository.html

Any feedback on that? Is that legit for you guys?
cc : @thommay @lamont-granquist  (as you worked on the related function)

This would be a good issue for someone to jump in on. It looks like we can just escape the URI and avoid the quoting.

Hi there,
Note that apt-file binary won't complain about the double quote on "newer" version. It will still complain on single quote. So the bug could partially fix itself : https://github.com/chef/chef/blob/master/lib/chef/provider/apt_repository.rb#L325
The real failure would be having a uri with single quote.
Test I just made on my debian 9 :
$ cat /etc/apt/sources.list
[...]
deb "http://ftp.ca.debian.org/debian/" stretch-backports main contrib

$ sudo apt-file update
(no error)

---

cat /etc/apt/sources.list
[...]
deb 'http://ftp.ca.debian.org/debian/' stretch-backports main contrib

$ sudo apt-file update
E: The method driver /usr/lib/apt/methods/'http could not be found.
N: Is the package apt-transport-'http installed?
$ dpkg -l apt-file
ii  apt-file 3.1.4  all  search for files within Debian packages (command-line interface)

repo: chef/chef


text:
"Remove failed: No such file or directory" installing chef in place

@tas50 asked that I open this issue. I'm seeing this output on CentOS 7 systems where I installed Chef 16.0.275 in place over 16.0.257.
https://gist.github.com/jtimberman/20e3683d8cc1c425542f483605644706

I tried to reproduce this one with installs in a few different ways and I'm not able to get the same errors. I'm going to close this one out at this point.


text:
Perform promotions via build objects

/cc @chef/engineering-services

:+1: Also love the fact that you don't need to mention the channels in the command anymore.

authors: schisamo sersut

repo: chef/lita-artifactory


text:
remove hashrockets syntax

Signed-off-by: Lamont Granquist lamont@scriptkiddie.org

@tas50 approvage

repo: chef/mixlib-cli


text:
Implementation of “capture_output” functionality.

Merge preliminary capture output work.

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

repo: chef/opscode-pushy-client


text:
✨ 增加ipv6地址判断

新增 is/ipv6.js, 判断是否是ipv6
新增对应单元测试

感谢分享，测试用例很完善，太棒了~

authors: chenbimo lgldlk

repo: chenbimo/yidash


text:
🛑 Homepage is down

In 29b9dd5, Homepage (https://larrychen.tech) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Homepage is back up in 94a14d6.

repo: chendachao/uptime


text:
Question:怎么查看tensorflow的c++接口安装在哪里

Question on: https://github.com/chenggroup/chenggroup.github.io/tree/master/_wiki/软件安装/deepmd-kit_installation_51.md#整合运行库与头文件

如何查看tensorflow的c++接口安装在哪里

如何查看tensorflow的c++接口安装在哪里

根据这份文档里的说明，是从编译目录（上一步所在的目录）把C++接口复制到tensorflow_root下，即这里所定义的/some/workspace/tensorflow_root

ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package @._bazel_rules_closure//closure': java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz, https://github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz] to /gpfs1/home/nc/hpc2/.cache/bazel/_bazel_hpc2.nc/63c7f906a6d51cd9e5ec891281eeb194/external/io_bazel_rules_closure/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz: All mirrors are down: [Unknown host: github.com, Unknown host: mirror.tensorflow.org]
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package @._bazel_rules_closure//closure': java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz, https://github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz] to /gpfs1/home/nc/hpc2/.cache/bazel/_bazel_hpc2.nc/63c7f906a6d51cd9e5ec891281eeb194/external/io_bazel_rules_closure/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz: All mirrors are down: [Unknown host: github.com, Unknown host: mirror.tensorflow.org]
INFO: Elapsed time: 12.045s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
请问您知道这个是怎么回事吗？这个是我在执行bazel build -c opt --verbose_failures //tensorflow:libtensorflow_cc.so时出现的
------------------ 原始邮件 ------------------
发件人:                                                                                "chenggroup/chenggroup.github.io"                                                                                @.>;
发送时间: 2022年1月14日(星期五) 晚上9:21
@.>;
@.@.>;
主题: Re: [chenggroup/chenggroup.github.io] Question:怎么查看tensorflow的c++接口安装在哪里 (Issue #100)
如何查看tensorflow的c++接口安装在哪里
根据这份文档里的说明，是从编译目录（上一步所在的目录）把C++接口复制到tensorflow_root下，即这里所定义的/some/workspace/tensorflow_root
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package @._bazel_rules_closure//closure': java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz, https://github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz] to /gpfs1/home/nc/hpc2/.cache/bazel/_bazel_hpc2.nc/63c7f906a6d51cd9e5ec891281eeb194/external/io_bazel_rules_closure/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz: All mirrors are down: [Unknown host: github.com, Unknown host: mirror.tensorflow.org]
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package @._bazel_rules_closure//closure': java.io.IOException: Error downloading [http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz, https://github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz] to /gpfs1/home/nc/hpc2/.cache/bazel/_bazel_hpc2.nc/63c7f906a6d51cd9e5ec891281eeb194/external/io_bazel_rules_closure/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz: All mirrors are down: [Unknown host: github.com, Unknown host: mirror.tensorflow.org]
INFO: Elapsed time: 12.045s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
请问您知道这个是怎么回事吗？这个是我在执行bazel build -c opt --verbose_failures //tensorflow:libtensorflow_cc.so时出现的
------------------ 原始邮件 ------------------
发件人:                                                                                "chenggroup/chenggroup.github.io"                                                                                @.>;
发送时间: 2022年1月14日(星期五) 晚上9:21
@.>;
@.@.>;
主题: Re: [chenggroup/chenggroup.github.io] Question:怎么查看tensorflow的c++接口安装在哪里 (Issue #100)
如何查看tensorflow的c++接口安装在哪里
根据这份文档里的说明，是从编译目录（上一步所在的目录）把C++接口复制到tensorflow_root下，即这里所定义的/some/workspace/tensorflow_root
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

根据报错信息，应当是github访问超时。


text:
Current positions is undefined at first render

A bit nitty gritty, but it confused me when trying react-motion for the first time. I tried to do a similar thing as in this demo, but I used === instead (which doesn't eval as true for undefined and null, but == does).

now at first render you check if there are any values and set your initial value if you want one.

kind of
  endValue(...args) {
    if (!args.length) {
      return {val: 0};
    }
    return {val: this.state.get('shouldClose') ? 0 : 1};
  },

// ...
      <Spring endValue={this.endValue}>

Humm, == is used (and always used) for null and undefined check at once, and nowhere else. I'd like to keep it this way. Can you just change the comment to undefined?

This does bring an issue that I've been thinking about. People keep asking how to do animation at mounting. This is the way to do it but it's not obvious enough. Maybe I will release the initialValue prop after all.

initial value is the great idea. I was thinking about adding it right 1 hour ago =)

@nkbt Yep, I realized that. Just confusing that the demo explicitly said that the argument is supposed to be null.
@chenglou I agree on the initialValue prop, that would probably be easier to understand.

Oh sorry, didn't see you updated the PR. Thanks!

authors: chenglou nkbt peterssonjesper

repo: chenglou/react-motion


text:
🛑 tt is down

In 03de349, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 504
Response time: 10276 ms

Resolved: tt is back up in 854a4d5.

repo: chenhaonanniubi/upptime


text:
🛑 tt is down

In 5dbcfeb, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 504
Response time: 10190 ms

Resolved: tt is back up in c2033b1.


text:
🛑 tt is down

In a9063d3, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3943 ms

Resolved: tt is back up in 91ebc5b after 10 minutes.


text:
列表循环两遍

作者你好，我不知道为什么这个插件默认循环两个列表（我只循换了一个默认的data数组），但是列表循环了两遍，正常来说是循换一个列表，然后让这个列表里面的数据自己滚动，请问这个怎么改呢？

那请问怎么把这克隆的一份去掉呢  我不需要这块


text:
🛑 Desgrabador gratuito is down

In bd32bf4, Desgrabador gratuito (https://chequeabot.chequeado.com/desgrabador/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Desgrabador gratuito is back up in a9007df.

repo: chequeado/status


text:
Running problem

Hello, I have a question, I want to ask you. I use Pycharm to run your project, but report an error in the main.py file, prompt: ModuleNotFoundError: No module named '_jsonnet'. I guess the main reason because import _jsonnet  # noqa.
Can you tell me a solution? Thank you very much.

Hi, this may be an issue in the Python environment, can I check if you managed to run the setup.sh like in the Colab Notebook?

Sorry I don't have experience running the scripts on windows, so it may be better to run them using a linux environment instead as it is more widely supported. I saw that windows partially supports the linux environment with WSL but it may be an experimental feature.

Thank you for your patience

repo: chiayewken/Span-ASTE


text:
To use the shift+? from executing another function

Hi Guys,
I want to use shift+? for executing my external functionality. but its by default opens your help menu.
How can I avoid to open the default help menu which you provide?
I tried to disable the cheatsheet setting but still its not working.
Please guide me for the above issue
Thanks in advance

I don't think there's an explicit test case for this, so it's possible that it's not working.  Can you create a fiddler or something so I can ensure everything is configured correctly?

Thanks for your response chieff.
Will create one sample and sent it over to you. right now for solving my purpose I have used some other character to open my help menu

repo: chieffancypants/angular-hotkeys


text:
Cheatsheet close icon

The close icon for cheatsheet appears wrong....is there a fonts file I am missing?

It's a web server issue, nothing worng with this project.
On my wamp server I had absolutely no Content-Type header in the response, so I added the following to my .htaccess:
AddType 'application/javascript; charset=UTF-8' js

AH brilliant, will give that a go, thank you!

Worked perfectly thank you!

authors: DrogoNevets rinu


text:
mousetrap belongs in bower.json dependencies, not devDependencies

If mousetrap is not in dependencies, then each bower user of this library is required to have their own explicit dependency on mousetrap.  Please move this from devDependencies to dependencies.

angular-hotkeys/build/angular-hotkeys.js and its minified version already contain the Mousetrap library, so users have no need of a separate dependency. The only time you'd need the separate Mousetrap library is if you are doing development work on angular-hotkeys itself, i.e. it's a devDependency.

authors: aramando erikdonohoo


text:
文字方向检测模型用了什么训练图片数据

想问下文字方向检测模型用了什么训练图片数据，用了多少图片训练的？

当初大部分都是算法合成的数据，保证文字占比超过40%。最后一个版本会公布tensorflow2.0上的训练代码

当初大部分都是算法合成的数据，保证文字占比超过40%。最后一个版本会公布tensorflow2.0上的训练代码

请问，models->ocr->chinese->ocr.cfg显示，最后一层的输出是11316个feature，请问这个表示什么意思呢，是n个frame长度分别为m编码吗（n*m=11316）？请问有训练样本和训练相关的代码吗？

authors: piaobuliao wenlihaoyu yuxx0128

repo: chineseocr/chineseocr


text:
Feature/add-database-tables

For this milestone :
The database ERD was created and reviewed as a team effort.

I proceeded to create the migration to build the scheme with active records.

Devise was installed and the configured , then i created the views.

Good to merge


text:
Global hdlin variable hazard: hdlin_interface_port_downto true

Source: ahb_lite_bus.sv
https://spdocs.synopsys.com/dow_retrieve/qsc-t/dg/dcolh/T-2022.03/dcolh/Default.htm#manpages/synn/ELAB.htm#ELAB-123
https://solvnetplus.synopsys.com/s/article/How-Does-Elaboration-Represent-Arrays-of-Interfaces-1576165809529
Two options:

Configuring our synth environment with: hdlin_interface_port_downto true
Global impact to all RTL file read.
Not acceptable.

Change the port ordering in ahb_lite_bus.sv.
See modified RTL here. Trial in progress:
ahb_lite_bus.sv.tar.gz

Code change provided resolved the ELAB-123 Error.

repo: chipsalliance/caliptra-rtl


text:
systemverilog-plugin: add support for custom type with multiranges inside struct/union

Fixes: https://github.com/chipsalliance/yosys-f4pga-plugins/issues/467
This PR adds support for custom type with multirange inside struct/union. Hierarchical (using dot) access is still restricted to single range.
yosys-systemverilog run: https://github.com/antmicro/yosys-systemverilog/actions/runs/4477563172
UHDM-integration-tests: https://github.com/chipsalliance/UHDM-integration-tests/pull/718

I'm not quite sure if this belongs to the scope of this PR; However, it seems that here:
https://github.com/antmicro/yosys-f4pga-plugins/blob/kr/union_custom_type_multirange/systemverilog-plugin/UhdmAst.cc#L675
The object pointed by right is cloned, and the old pointer is overwritten, which means there's a memory leak.
That specific line isn't modified here, but It's related so I thought it was worth mentioning.

New yosys-systemverilog run: https://github.com/antmicro/yosys-systemverilog/actions/runs/4540552775

authors: kamilrakoczy wsipak


text:
bot with firefox

Hi the boot don't work with firefox?

Don't work in firefox here...

I havent tested it in firefox and dont have any plans for now to check for cross compatibility, you can just use chrome

authors: chithakumar13 parangolo rafaelsaidbc

license: ISC


text:
Pingback without express

It's a bit hard to figure out, how to use pingback without express.
Could you give an example on how to do that?

You can use the middleware without express, since express middleware is like any other function that takes a callback.
var Pingback = require('pingback')
  , http = require('http');

var ping = Pingback.middleware(function(source, target) {
  console.log('Successful ping from: ' + source.href);
});

http.Server(function(req, res) {
  ping(req, res, function(err) {
    if (err) console.log(err);
  });
});

Thank you.

authors: chjj pvorb

repo: chjj/node-pingback


text:
Multiple subscription

Hello,
I would need to subscribe to different topic in the same program.
What I would need to know is how I should do it.
Should I created multiple client in the same program?
 static async Task Main()
        {
            await cliente.ManageMQTTClient(MQTTconfig,MQTTconfig.Topic1).ConfigureAwait(false);
            await cliente.ManageMQTTClient(MQTTconfig,MQTTconfig.Topic2).ConfigureAwait(false);
            Thread.Sleep(-1);
        }

Could I suscribed to multiple topics?
  public async Task ManageMQTTClient(<...>)
        {
            try
            {
                IMqttClientOptions options = new MqttClientOptionsBuilder()
                            .WithTcpServer(MQTTconfig.Servidor)
                            .WithClientId(MQTTconfig.Cliente)
                            .WithCredentials(MQTTconfig.Username, MQTTconfig.Password)
                            .WithCommunicationTimeout(System.TimeSpan.FromSeconds(600))
                            .WithCleanSession(false)
                            .WithKeepAlivePeriod(System.TimeSpan.FromSeconds(60))
                            .Build();

                IMqttClient mqttClient = new MqttFactory().CreateMqttClient();
                mqttClient.UseDisconnectedHandler(async e =>
                {
                    await Task.Delay(TimeSpan.FromSeconds(60));
                    try
                    {
                        await mqttClient.ConnectAsync(options);
                        if (mqttClient.IsConnected)
                            Console.WriteLine("Reconexion establecida con éxito");
                    }
                });
                mqttClient.UseApplicationMessageReceivedHandler(async e =>
                {
                    <...>
                });

                await mqttClient.ConnectAsync(options);
                if (mqttClient.IsConnected)
                {
                    try
                    {
                        await mqttClient.SubscribeAsync(new TopicFilterBuilder()
                            .WithTopic(topic1)
			                 .WithTopic(topic2)
                            .WithExactlyOnceQoS()
                            .Build());
                    }
                }
            }
        }

Currently I'm testing it with the first approach I mentioned, but all the time I got the message used in UseDisconnectedHandler

What do you mean by that: Currently I'm testing it with the first approach I mentioned, but all the time I got the message used in UseDisconnectedHandler?

Currently I'm using this:
static async Task Main()
{
await cliente.ManageMQTTClient(MQTTconfig,MQTTconfig.Topic1).ConfigureAwait(false);
await cliente.ManageMQTTClient(MQTTconfig,MQTTconfig.Topic2).ConfigureAwait(false);
Thread.Sleep(-1);
}
But all the time it looks like the client reconnect all the time, because I have the following message (trace):
"Reconexion establecida con éxito"
So I'm not sure if this could be due I have 2 client connected to two different topics in the same program

So I'm not sure if this could be due I have 2 client connected to two different topics in the same program

I guess that's the problem exactly. As far as I know, your code should work properly if you use different client id paramaters, meaning: Add a string called clientId as parameter to the function ManageMQTTClient like this ManageMQTTClient(MQTTconfig config, string topic, string clientId) and fill it differently in both calls:
static async Task Main()
{
    await cliente.ManageMQTTClient(MQTTconfig,MQTTconfig.Topic1, "Id1").ConfigureAwait(false);
    await cliente.ManageMQTTClient(MQTTconfig,MQTTconfig.Topic2, "Id2").ConfigureAwait(false);
    Thread.Sleep(-1);
}

However, it should be possible to subscribe to multiple topics with one client (I didn't test this yet, however).

That was the problem.
If both of them have the same clientId one of them disconnect when the other connect. So using different names solved the problem

However, it should be possible to subscribe to multiple topics with one client (I didn't test this yet).

Just for people who might be looking to subscribe on multiple topic from a single client
List<TopicFilter> topicFilters = new List<TopicFilter>();             TopicFilter topicFilter = new TopicFilter();             topicFilter.Topic = "hello/world/receive1";             topicFilters.Add(topicFilter);             topicFilter = new TopicFilter();             topicFilter.Topic = "hello/world/receive2";             topicFilters.Add(topicFilter);             topicFilter = new TopicFilter();             topicFilter.Topic = "hello/world/receive3";             topicFilters.Add(topicFilter);             await mqttClient.SubscribeAsync( topicFilters.ToArray());`

authors: SeppPenner det-iot pramodsingh


text:
hide input field on mobile and open calendar with open() doesn't work?

My end goal is to hide input fields on both desktop and mobile and use a calendar icon to open the calendar.
When on desktop, I hide the input field and when the calendar icon is clicked, it opens up the calendar. But there is an additional input field when displayed on mobile. I can hide the 2nd input field on mobile too but calling open() on the Flatpickr instance doesn't open the calendar on mobile anymore. What's the proper way to do open the calendar without the input field on mobile? Thanks!

Hello,
open() on mobile devices works only on Android, and even then with a hack.
I found no way to progamatically display the native picker without the user explicitly focusing on it.
(.focus() and .click() didn't do anything either).

Thanks for the reply. In that case, it is probably better for me to set disableMobile to true. But here comes another question, is there an easy way to position the calendar in the center of the screen?

@theonlypippo Its definitely possible.
The picker is absolutely positioned.
You could add an onOpen hook, then set top, left, right and any other values yourself.

authors: chmln theonlypippo

repo: chmln/flatpickr


text:
RFP - Fuze Desktop for Windows

Checklist

[x] The package I am requesting does not already exist on https://chocolatey.org/packages;
[x] There is no open issue for this package;
[x] The issue title starts 'RFP - ';
[x] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL : https://www.fuze.com/
Direct download URL for the software / installer : https://api.fuzemeeting.com/v1/launch/pc_download
Software summary / short description: Enterprise cloud communication and collaboration platform. Supports instant messaging, voice calls, and audio/video conferencing.

I thought this was already a package but can't seem to see it listed!


text:
[Note?] Add .extension to valid suffixes

As the title suggest, adding the .extension suffix as a valid suffix (along with .portable and .install).
Or perhaps change the validation message to something like The .extension` suffix have been used, please make sure that the package is an extension of chocolatey or another package
It's nothing major, it's just that it is annoying as it currently is.

Yes, there are a few more valid suffixes that are known. We should definitely be sure all of them are allowed.

what are the other suffixes?
I found one other .template (excluding .app and .commandline as they shouldn't be used anymore).

authors: AdmiringWorm ferventcoder

repo: chocolatey/package-validator


text:
DeltaMonitor not cleared on backtracks

Perhaps my understanding of DeltaMonitor is incorrect but I did not expect the following code to throw an error with the latest develop branch.
public static void main(String[] args) {
    Solver s = new Solver();
    final IntVar i = VF.enumerated("i", -2, 2, s);
    final IntVar j = VF.enumerated("j", -2, 2, s);
    // Does nothing, just observes the values removed from variables i and j.
    Propagator p1 = new Propagator(new IntVar[]{i, j}, PropagatorPriority.UNARY, false) {

        private final IIntDeltaMonitor iD = i.monitorDelta(aCause);
        private final IIntDeltaMonitor jD = j.monitorDelta(aCause);

        @Override
        public void propagate(int evtmask) throws ContradictionException {
            iD.freeze();
            iD.forEachRemVal((IntProcedure) x -> {
                System.out.println("Delta monitor for variable says that the value " + x + " is removed from variable i");
                if (i.contains(x)) {
                    throw new Error("Delta monitor lied to me.");
                }
            });
            iD.unfreeze();
            jD.freeze();
            jD.forEachRemVal((IntProcedure) x -> {
                System.out.println("Delta monitor for variable says that the value " + x + " is removed from variable j");
                if (j.contains(x)) {
                    throw new Error("Delta monitor lied to me.");
                }
            });
            jD.unfreeze();
        }

        @Override
        public ESat isEntailed() {
            return ESat.TRUE;
        }
    };
    // if j == 1 then i != 1.
    Propagator p2 = new Propagator(new IntVar[]{i, j}, PropagatorPriority.UNARY, false) {

        @Override
        public void propagate(int evtmask) throws ContradictionException {
            if (j.isInstantiatedTo(1)) {
                i.removeValue(1, aCause);
            }
        }

        @Override
        public ESat isEntailed() {
            return ESat.TRUE;
        }
    };
    Chatterbox.showDecisions(s);
    Chatterbox.showSolutions(s);
    s.post(new Constraint("Constraint", p1, p2));
    s.findAllSolutions();
}

The above code will print:
...[L]j  ==  -2 (0) //i = {-2,-1,0,1,2} j = {-2,-1,0,1,2}
Delta monitor for variable says that the value -1 is removed from variable j
Delta monitor for variable says that the value 0 is removed from variable j
Delta monitor for variable says that the value 1 is removed from variable j
Delta monitor for variable says that the value 2 is removed from variable j
....[L]i  ==  -2 (0) //i = {-2,-1,0,1,2} j = -2
Delta monitor for variable says that the value -1 is removed from variable i
Delta monitor for variable says that the value 0 is removed from variable i
Delta monitor for variable says that the value 1 is removed from variable i
Delta monitor for variable says that the value 2 is removed from variable i
Delta monitor for variable says that the value -1 is removed from variable j
Delta monitor for variable says that the value 0 is removed from variable j
Delta monitor for variable says that the value 1 is removed from variable j
Delta monitor for variable says that the value 2 is removed from variable j
- Solution #1 found. 1 Solutions, Resolution 0.112s, 3 Nodes (26.9 n/s), 0 Backtracks, 0 Fails, 0 Restarts
	i = -2 j = -2 .
....[R]i  ==  -2 (1) //i = {-2,-1,0,1,2} j = -2
Delta monitor for variable says that the value -2 is removed from variable i
.....[L]i  ==  -1 (0) //i = {-1,0,1,2} j = -2
Delta monitor for variable says that the value 0 is removed from variable i
Delta monitor for variable says that the value 1 is removed from variable i
Delta monitor for variable says that the value 2 is removed from variable i
- Solution #2 found. 2 Solutions, Resolution 0.138s, 5 Nodes (36.2 n/s), 1 Backtracks, 0 Fails, 0 Restarts
	i = -1 j = -2 .
.....[R]i  ==  -1 (1) //i = {-1,0,1,2} j = -2
Delta monitor for variable says that the value -1 is removed from variable i
......[L]i  ==  0 (0) //i = {0,1,2} j = -2
Delta monitor for variable says that the value 1 is removed from variable i
Delta monitor for variable says that the value 2 is removed from variable i
- Solution #3 found. 3 Solutions, Resolution 0.142s, 7 Nodes (49.4 n/s), 2 Backtracks, 0 Fails, 0 Restarts
	i = 0 j = -2 .
......[R]i  ==  0 (1) //i = {0,1,2} j = -2
Delta monitor for variable says that the value 0 is removed from variable i
.......[L]i  ==  1 (0) //i = {1,2} j = -2
Delta monitor for variable says that the value 2 is removed from variable i
- Solution #4 found. 4 Solutions, Resolution 0.150s, 9 Nodes (60.1 n/s), 3 Backtracks, 0 Fails, 0 Restarts
	i = 1 j = -2 .
.......[R]i  ==  1 (1) //i = {1,2} j = -2
Delta monitor for variable says that the value 1 is removed from variable i
- Solution #5 found. 5 Solutions, Resolution 0.151s, 10 Nodes (66.3 n/s), 4 Backtracks, 0 Fails, 0 Restarts
	i = 2 j = -2 .
...[R]j  ==  -2 (1) //i = {-2,-1,0,1,2} j = {-2,-1,0,1,2}
Delta monitor for variable says that the value 1 is removed from variable i
Exception in thread "main" java.lang.Error: Delta monitor lied to me.
	at org.clafer.choco.constraint.propagator.PropReifyEqualXY$3.lambda$propagate$7ffb7347$1(PropReifyEqualXY.java:132)
	at org.clafer.choco.constraint.propagator.PropReifyEqualXY$3$$Lambda$4/511754216.execute(Unknown Source)
	at org.chocosolver.solver.variables.delta.monitor.EnumDeltaMonitor.forEachRemVal(EnumDeltaMonitor.java:93)
	at org.clafer.choco.constraint.propagator.PropReifyEqualXY$3.propagate(PropReifyEqualXY.java:129)
	at org.chocosolver.solver.propagation.hardcoded.SevenQueuesPropagatorEngine.propagate(SevenQueuesPropagatorEngine.java:190)
	at org.chocosolver.solver.search.loop.SearchLoop.downBranch(SearchLoop.java:407)
	at org.chocosolver.solver.search.loop.SearchLoop.downRightBranch(SearchLoop.java:397)
	at org.chocosolver.solver.search.loop.SearchLoop.loop(SearchLoop.java:288)
	at org.chocosolver.solver.search.loop.SearchLoop.launch(SearchLoop.java:193)
	at org.chocosolver.solver.Solver.solve(Solver.java:891)
	at org.chocosolver.solver.Solver.findAllSolutions(Solver.java:767)
	at org.clafer.choco.constraint.propagator.PropReifyEqualXY.main(PropReifyEqualXY.java:169)

Your usage of delta monitor is incorrect:
Delta monitors are used for incremental propagation only:

The third argument in the propagator super constructor should be "true"
The method propagate(int e) will be called ONCE (further propagations will be incremental). It should not use the deltamonitors but UNFREEZE them at the end (in order to initialize the datastructure).
You must then override the propagate(int vIdx, int e) method that is called whenever vars[vIdx] has changed. Then you can use the deltamonitor of that variable as you did (freeze, use, unfreeze).

See PropEqualX_Y or PropInverseChannelAC for an example.
Actually, delta monitors are not used that much...

My bad, thanks.

I made the 3 changes you suggested and I still get the exact same error, see updated code snippet below:
public static void main(String[] args) {
    Solver s = new Solver();
    final IntVar i = VF.enumerated("i", -2, 2, s);
    final IntVar j = VF.enumerated("j", -2, 2, s);
    // Does nothing, just observes the values removed from variables i and j.
    Propagator p1 = new Propagator(new IntVar[]{i, j}, PropagatorPriority.UNARY, true) {

        private final IIntDeltaMonitor iD = i.monitorDelta(aCause);
        private final IIntDeltaMonitor jD = j.monitorDelta(aCause);

        @Override
        public void propagate(int evtmask) throws ContradictionException {
            iD.unfreeze();
            jD.unfreeze();
        }

        @Override
        public void propagate(int idxVarInProp, int mask) throws ContradictionException {
            iD.freeze();
            iD.forEachRemVal((IntProcedure) x -> {
                System.out.println("Delta monitor for variable says that the value " + x + " is removed from variable i");
                if (i.contains(x)) {
                    throw new Error("Delta monitor lied to me.");
                }
            });
            iD.unfreeze();
            jD.freeze();
            jD.forEachRemVal((IntProcedure) x -> {
                System.out.println("Delta monitor for variable says that the value " + x + " is removed from variable j");
                if (j.contains(x)) {
                    throw new Error("Delta monitor lied to me.");
                }
            });
            jD.unfreeze();
        }

        @Override
        public ESat isEntailed() {
            return ESat.TRUE;
        }
    };
    // if j == 1 then i != 1.
    Propagator p2 = new Propagator(new IntVar[]{i, j}, PropagatorPriority.UNARY, false) {

        @Override
        public void propagate(int evtmask) throws ContradictionException {
            if (j.isInstantiatedTo(1)) {
                i.removeValue(1, aCause);
            }
        }

        @Override
        public ESat isEntailed() {
            return ESat.TRUE;
        }
    };
    Chatterbox.showDecisions(s);
    Chatterbox.showSolutions(s);
    s.post(new Constraint("Constraint", p1, p2));
    s.findAllSolutions();
}

Actually, delta monitors are not used that much...

There are 20 propagators/views in the choco 3 library that use IIntDeltaMonitor. Quite a few of classes in my own project uses them as well.

Thank you for the bug reporting, I found where this comes from. I'll fix that asap.

Actually, I think your code is not correct either: you should not iterate over removed values of a variable which has not been modified since the last call of the propagator.
In the code of your first propagator, there should be a condition on idxVarInProp.

Finally, I rollback my patch since your code was not correct. I add a error message, though, when delta and deltamonitors are not synchronized (actually, it is an assertion error, but I'm considering moving it to a standard error, even if it may lead to performance issues).

authors: JLiangWaterloo cprudhom jgFages


text:
include date in cache key

This adds the date in the cache key so that we only keep the env cache and package cache around for max 1 day. This will still speed things up a lot but ensures that our scheduled tests get a fresh env each day.
Developers certificate of origin

[x] I certify that this contribution is covered by the MIT license as defined in our LICENSE and adheres to the Developer Certificate of Origin.

Codecov Report

Merging #715 (03259fd) into main (25b3843) will decrease coverage by 25.31%.
The diff coverage is n/a.

Additional details and impacted files

 ERROR asapdiscovery-data/asapdiscovery/data/tests/test_cdd_download.py::test_parse_fluorescence[None-True] - ValueError: Could not fetch test file test_parse_best_cheng_out.csv from /home/runner/work/asapdiscovery/asapdiscovery/asapdiscovery-data/asapdiscovery/data/testing/test_files.yaml
ERROR asapdiscovery-data/asapdiscovery/data/tests/test_cdd_download.py::test_parse_fluorescence[None-False] - ValueError: Could not fetch test file test_parse_best_cheng_out.csv from /home/runner/work/asapdiscovery/asapdiscovery/asapdiscovery-data/asapdiscovery/data/testing/test_files.yaml
ERROR asapdiscovery-data/asapdiscovery/data/tests/test_cdd_download.py::test_parse_fluorescence[cp_values1-True] - ValueError: Could not fetch test file test_parse_best_cheng_out.csv from /home/runner/work/asapdiscovery/asapdiscovery/asapdiscovery-data/asapdiscovery/data/testing/test_files.yaml
ERROR asapdiscovery-data/asapdiscovery/data/tests/test_cdd_download.py::test_parse_fluorescence[cp_values1-False] - ValueError: Could not fetch test file test_parse_best_cheng_out.csv from /home/runner/work/asapdiscovery/asapdiscovery/asapdiscovery-data/asapdiscovery/data/testing/test_files.yaml

Thanks @mikemhenry seems like files might have changed in the bucket. I'll confirm. Changes look good.

Ok yep, files were updated in bucket, I assume by @kaminow. Fixed in #601 so I will go ahead and merge here for now.

yep sorry, I changed a bit of the data processing in #601 so the test files had to change as well

authors: codecov-commenter hmacdope kaminow mikemhenry

repo: choderalab/asapdiscovery


text:
Acceptance/Rejection class

Currently we have a parameter in the MC moves called "acceptance_criteria" which is just a string; this string is used to toggle different criteria (although currently only supporting metropolis-tastings)  We had noted previously this would probably be good to have this be in a separate class to allow for modularity (and enable different routines without having to modify core routines).
This issue is a place holder to revamping this treatment, as we will need to define the API.

Related to this,  @jchodera writes in the  comments on the MC move refactor PR:

I don't like the idea of having a method like self._accept_or_reject() use some object fields (current and previous reduced potential energies) and some arguments (log proposal ratio, PRNG, and method---which is already stored as an object field) to perform the calculations. Especially thinking ahead to perhaps making the acceptance behavior a class, it would make more sense if we just forced everything to be an argument for a mathematics-based computation like the acceptance probability here.
Even better woudl be to have it return the log probability of acceptance, since we could store that during self._update_statistics() in addition to the decision. The statistics of log(Paccept) are valuable in figuring out how bad of an acceptance problem we have, and can even be used to estimate very small acceptance ratios.

repo: choderalab/chiron


text:
TUT 1 - Security Group created for SCC

Please update the image and instructions that the students must use

scc security groups created

authors: ZamaZethu mmhashatsi


text:
Update manifest.toml

changes about artifact-expiry triggered a rebuild
https://gitlab.com/famedly/conduit/-/commit/13ae7a7e4633370941b73c3a65f5969f42756ec1

!testme


text:
Improve UX for Adjust Scheduling tool

Note: We should also update "fast forward" to move forward, I know its currently in parity with DTV but it just doesn't make sense.

Totally agree
On Thu, Apr 11, 2024 at 3:58 PM markdavella @.***>
wrote:

Note: We should also update "fast forward" to move forward, I know its
currently in parity with DTV but it just doesn't make sense.
image.png (view on web)
https://github.com/chrisbenincasa/tunarr/assets/6005331/e4d83f3b-4027-4159-aa8b-d2d5647f9feb
—
Reply to this email directly, view it on GitHub
https://github.com/chrisbenincasa/tunarr/issues/278, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMQRX3FJXFZUW2G2HAIOXDY43TQFAVCNFSM6AAAAABGC5KQB2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTQNBWGU3TENA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Fixed in #311 311

authors: chrisbenincasa markdavella

repo: chrisbenincasa/tunarr

license: Zlib


text:
create own themes

create own themes
directory structure for own themes
ajax for getting the template.tpl

Hi there and nice to see @cdmedia back on track!
(As I'm not javascript-savvy enough, I'd rather try it with words.)
It would be nice to have theme support. A variable in config.js named theme = '' (default empty) could be set to the name of a directory in the newly created directory theme.
The structure of a theme would be a css directory and a file template.tpl. For example the default theme would be a directory css with poole.min.css and style.css in it and a file called template.tpl which includes the things we need for a own template. I'm unclear of how much we can put out of the index.html to the template, the css part in the <head> element? ...
In the config.js the variable would allow a corresponding ajax to get the themes/THEME/template.tpl and var tpl would get the individual themes content.
This would definitively allow more flexibility.
thanks

Resolved in v2.0. https://github.com/chrisdiana/cms.js-themes

authors: chrisdiana maybegeek


text:
Use nightly explicitly when building to riscv

So we can stay on stable for everything else

Can also stop override set nightly for Powdr itself on CI, and add a toolchain file with stable

authors: Schaeff leonardoalt

repo: chriseth/powdr


text:
[ feature ] lock column scroll up, while scaling down nodes ( to prevent feedback loop )

When we use the "resize handle" to reduce the size of an image or prompt node, and the column is not scrolled all the way up, it creates a "feedback loop" that scales down the node, very fast, with just a small mouse movement.
Can the column scrolling be stopped, while we're scaling down the nodes ?
The column scroll could be adjusted only on click up.
While increasing the node size, this does not seem to be necessary ( no feedback loop is created )

Here, I tried to scale down the image just a bit.

But, the column started scrolling up, at the same time.
And the image was resized very fast, with just a small mouse movement, until the column was scrolled all the way up.

I'm having problems resizing text fields and images:

sometimes they won't keep the new size
when I edit a parameter on nodes with both text and widgets, the text field is reset to previous size
sometimes they resize is extreme

https://github.com/user-attachments/assets/6967b6e8-6061-4540-b76a-cea2f66a878e
https://github.com/user-attachments/assets/cf55717c-c6be-4115-aa05-992c12faf1b1

Similas issue when resizing images.
https://github.com/user-attachments/assets/bd32e336-14d6-4aa9-8c5c-b5aeb7867094

yes, resize save has been broken by another fix. Working on it.

should be fixed now

@chrisgoringe Yes, now everything is working great! I only experience extreme resizing with the latest text field at the bottom

Ah, and I see that resizing images is pretty lagging

I also noticed that if you stop dragging up for a second ( while reducing image size ), it will trigger the "click up event", even when you're still pressing down.
Sometimes this also happens when increasing the image size, if I drag too fast.

Consequence of fixing the crazy resize :). But I think I can improve it
On Fri, 18 Oct 2024 at 8:47 PM, LukeG89 @.***> wrote:

Ah, and I see that resizing images is pretty lagging
—
Reply to this email directly, view it on GitHub
https://github.com/chrisgoringe/cg-controller/issues/156#issuecomment-2422003262,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBLMAZH4Q4QHX6XHJ4UBSTZ4DKKPAVCNFSM6AAAAABQDYH7YGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRSGAYDGMRWGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Now resizing seems to work pretty great! This issue can be closed

Yeah, it's working perfectly now.

repo: chrisgoringe/cg-controller


text:
Can't read property of undefined

See https://github.com/chrisgoringe/cg-image-picker/issues/1#issuecomment-1742239232

This happens if you load a workflow with a UE node connected to a Custom Node that isn't installed. That case is now caught (version 2.1)

repo: chrisgoringe/cg-use-everywhere


text:
Loop (456,504,505,480,481,357,425,427,429) with broadcast (503) - not submitting workflow

日志报错：
Error
Loop Detected 456,504,505,480,481,357,425,427,429, 503
Error: Loop Detected 456,504,505,480,481,357,425,427,429, 503
at analyse_graph (http://127.0.0.1:8081/extensions/cg-use-everywhere/use_everywhere.js:73:19)
at async ComfyApp.queuePrompt (http://127.0.0.1:8081/scripts/app.js:1859:16)
浏览器显示
Loop (456,504,505,480,481,357,425,427,429) with broadcast (503) - not submitting workflow

@sunny-token :
How did you resolved it?

authors: hiowenluke sunny-token


text:
Add CVE id handler

Opens the NIST vulnerability database for a given CVE ID.

Thank you for this PR! Can you please add some tests to validate, that this handler works as expected?

@chrishrb added two tests, I hope this is what you meant.

Yes, thanks. Can be merged now 👍

authors: chrishrb reegnz


text:
Connect-CWC doesn't support subdirectories

Connect-CWC appears to stripping the server down to the base domain, ignoring things like protocol and subdirectories. On my (and I'm sure others) default install, our URL will look like this:
_https://automate.mydomain.com/RemoteSupport_
Line 16 of Connect-CWC.ps1 has this:
$Server = ($Server -replace("http.*:\/\/",'') -split '/')[0]
I propose changing it to this:
$Server = $Server -replace("http.*:\/\/",'')
This way, you can force HTTPS while keeping the subdirectory intact. In my testing, even if you had a trailing forward slash at the end, though it would end up doubling it up ("RemoteSupport//"), functions continued to work just fine.

The issue has been resolved. Thanks for raising the issue.
93fcc11

authors: christaylorcodes jackmusick

repo: christaylorcodes/ConnectWiseControlAPI


text:
explore detail

show avatar image and background image

archived in favour of #23

repo: christex-foundation/pipeline