Draw a target line across the screen

Hi,
Thank you for an amazing library.  I have a pwa app, and it works great.  The issue I currently have is that after making the canvas responsive by setting
#barcode-scanner video, canvas {
width: 100%;
height: auto;
}
my screen height is longer then my width, I lost the barcode canvas shape, and its confusing to users.
I saw people mentioning but there is no concrete example on how to draw a target line across the screen to make it more intuitive for the user.  Is it possible?  I installed version 0.12.1 from npm.
Can someone please advise?
Thank you in advance for your help.

@ericblade, is my question doesn’t makes sense?  Can you clarify?

You could just place an HTML element over the top of the canvas, I think?  Or you could draw something using the canvas, as many of the examples do with barcode detection lines.

Thank you for reply, I did browse around for examples, but most of them try barcode boundary detection, which I think is an overkill for me.  I just need to point the user to the region.
Can you please point to an example you referring to?
Cheers, Alex
On Dec 22, 2020, at 1:29 PM, Eric Blade<EMAIL_ADDRESS>wrote:

You could just place an HTML element over the top of the canvas, I think? Or you could draw something using the canvas, as many of the examples do with barcode detection lines.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fserratus%2FquaggaJS%2Fissues%2F452%23issuecomment-749707338&data=04|01||d24124daa5be445231d908d8a6a7931d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637442585944477789|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=M215kd0CCyClkb5oIotkxPcwHzDK9SiLUGC8YyOCvvk%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFPPBG6LAAFCJKWSQM7QONLSWDQR7ANCNFSM4U6RXSNQ&data=04|01||d24124daa5be445231d908d8a6a7931d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637442585944487781|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=lzpVmiytyCWUeoiiLS2BQXEXYWrz1BhtFiig7cIxOzE%3D&reserved=0.

@ericblade thank you for your help.
I ended up, absolute positioning the line over the canvas.
For those who may find it useful, solution I came up with below
----- CSS
#barcode-scanner video, canvas {
  width: 100%;
  height: auto;
}

#barcode-scanner video.drawingBuffer, canvas.drawingBuffer {
  display: none;
}

.line{
  width: var(--scan-width);
  height: var(--scan-height);
  border-bottom: 10px double lime;
  position: absolute;
}

---HTML

    <video src=""></video>
    <canvas class="drawingBuffer"></canvas>

--Typescript
var loc = this.elService.getOffset(document.getElementById('barcode-scanner'));
var width = this.elService.elementWidth(document.getElementById('barcode-scanner'));
var height = this.elService.elementHeight(document.getElementById('barcode-scanner'));

@ViewChild('drawLine') container: ElementRef;

this.container.nativeElement.style.setProperty('--scan-top', (loc.top+width/8) + "px")
this.container.nativeElement.style.setProperty('--scan-left', loc.left + "px")
this.container.nativeElement.style.setProperty('--scan-width', width - 50 + "px")
this.container.nativeElement.style.setProperty('--scan-height', height  / 12 + "px")

-- Service
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class ElementService {

  constructor() { }

  elementHeight(el) {
    var w = window,
      d = document,
      e = d.documentElement,
      g = el[0],
      y = w.innerHeight || e.clientHeight || g.clientHeight;
    return y;
  }

  elementWidth(el) {
    var w = window,
      d = document,
      e = d.documentElement,
      g = el[0],
      x = w.innerWidth || e.clientWidth || g.clientWidth;
    return x;
  }

  getOffset(el) {
    var _x = 0;
    var _y = 0;
    while (el && !isNaN(el.offsetLeft) && !isNaN(el.offsetTop)) {
      _x += el.offsetLeft - el.scrollLeft;
      _y += el.offsetTop - el.scrollTop;
      el = el.offsetParent;
    }
    return { top: _y, left: _x };
  }

  vhTOpx(value) {
    var w = window,
      d = document,
      e = d.documentElement,
      g = d.getElementsByTagName('body')[0],
      x = w.innerWidth || e.clientWidth || g.clientWidth,
      y = w.innerHeight || e.clientHeight || g.clientHeight;

    var result = (y * value) / 100;
    return result;
  }

  bodyHeight() {
    var w = window,
      d = document,
      e = d.documentElement,
      g = d.getElementsByTagName('body')[0],
      y = w.innerHeight || e.clientHeight || g.clientHeight;
    return y;
  }

  bodyWidth() {
    var w = window,
      d = document,
      e = d.documentElement,
      g = d.getElementsByTagName('body')[0],
      x = w.innerWidth || e.clientWidth || g.clientWidth;
    return x;
  }
}


How to use AddStaticPath with gres packed?

1. What version of Go and system type/arch are you using?
go version go1.14.6 linux/amd64
2. What version of GoFrame are you using?
v1.13.2
3. Can this issue be reproduced with the latest release?
I packed my create-react-app build dist to boot folder,then I want to user s.AddStaticPath("/admin", "./frontend/admin/build") to add static path,
In gres.Dump(), I can find it as list
2020-08-08T01:53:26+00:00   0.00B frontend
2020-08-08T01:53:26+00:00   0.00B frontend/admin
2020-08-08T01:53:26+00:00   0.00B frontend/admin/build
2020-08-08T01:53:26+00:00   0.00B frontend/admin/build/
2020-08-08T01:08:43+00:00   1.20K frontend/admin/build/asset-manifest.json
2020-08-08T01:08:40+00:00   4.19K frontend/admin/build/favicon.ico
2020-08-08T01:08:43+00:00   2.68K frontend/admin/build/index.html
........

but cannot use in router define,
AddStaticPath failed: cannot find file/folder "./frontend/admin/build"

How to solve it?

1.gf pack frontend/admin/build boot/resource.go -n boot
2.gf build main.go


Fix ordering of signature modifiers to be in metadata order

A recent fix in the beta of S.R.Metadata signature decoder returns the IL syntactic order instead of the metadata order we need for doc id generation. This will defer the name generation until we have all the modifiers.
Fixes #236

LGTM :+1:


feat(learn): migrate instructions from adnode boilerplate

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Related to: https://github.com/freeCodeCamp/freeCodeCamp/issues/39720
Boilerplate PR: https://github.com/freeCodeCamp/boilerplate-advancednode/pull/15
I tried as much as possible to not change unrelated content, but I also took the opportunity to change the instructions with previously discussed versioning additions, and formatting to use GitHub Flavoured MD.
Separate Issue: Husky needs to be configured to not format (search for) changes within backticks. If tests fail, this will be why. Also, might be worthwhile (especially once we migrate to mdx) to change the prettier/lint config to do the same.

@RandellDawson Thanks, for that. It is much clearer.

@moT01 I believe this PR combined with the boilerplate PR referenced in the PR body are good to go.  We can merge this and then merge the boilerplate once these changes hit production.


Update linux-support-perf.md

Fix spelling mistake.

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks


Support hackney versions >= 1.6 but < 2.0

This simplifies the required hackney version, at the same time,
adds support for the newly released 1.9.0 version.

Hackney releases a string of patch releases that broke ExAws and other libraries. I will consider permitting an additional ~> 1.9 clause but only the enumerated 1.6 versions are known to be safe.

Hackney released a string of patch releases that broke ExAws and other libraries. I will consider permitting an additional ~> 1.9 clause but only the enumerated 1.6 versions are known to be safe.

Oh! Got it. Let me create another PR. Thanks!


Hints for possible Exceptions

Is it possible add Exceptions hints for public APIs?
For example:

Hi @doggy8088
Yes, of course. Partially, they already exist.
Primarily, giving information regarding ArgumentNullException and NotSupportedException which are also tested for.
            // Act & Assert
            await Assert.ThrowsAsync<ArgumentNullException>(() => model.GenerateContent(prompt));

Do you have a wish list of improvements? ;-)

For GenerateContent method, I don't know how to show it on my LINQPad query.

Hmm, it looks like the existing XMLDoc is not picked up properly. I have to investigate...
Sorry for the lack of description.

Related: https://github.com/mscraftsman/generative-ai/issues/21
I think this issue has been resolved.

Great, thanks for following up and checking.


On network creation, reset mangle rule

When creating a non encrypted overlay network,
make sure no encryption related mangle rule from
stale network is on the way.

Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

@aboch could you pls explain the impact of this hard timeout ?

Will this be activated only if there is a rule and there is no traffic seen for the time interval of hard-timeout (or) is it a strict removal of the rule even if there is existing traffic in it ?
How and when will these rules be reinstalled by the overlay driver ?

@mavenugo
This is a strict removal of the rule.
In normal conditions, these rules are replaced after 3 x rotation time, and would be left over when the daemon shutdown.
But I am realizing now there are some corner cases which need more attention.
I decided to not take care of the stale states for now.

@aboch thanks. I prefer your current change as well.
LGTM


Expose execution caching status in the UI

Currently the UI does not show that a task execution is memoized. It is just absent from execution details if the execution was skipped because of cache.
Depends on #138

Blocked on https://github.com/lyft/flyte/issues/71 and https://github.com/lyft/flyte/issues/138.
I am working on both of those now

Removed label blocked because both of the blocking issues are resolved. Please let me know if that's not accurate

Implemented by lyft/flyteconsole#91
Available in flyteconsole v0.10.0


typo fixed in REVIEW_GUIDELINES.md

What this PR does / why we need it:
Fixes small typo and grammatical mistakes in REVIEW_GUIDELINES.md. This PR improves the quality of Documentation.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

@iamrajiv thanks for the PR, please sign the DCO

@cpanato how to sign DCO since I have made this PR and commit directly not by git bash shell

@cpanato how to sign DCO since I have made this PR and commit directly not by git bash shell so how to amend the commit

@iamrajiv you can do this git commit --amend --signoff and the push again

/assign
/ok-to-test
/lgtm


How to connect to my server on Ogario! :)

Hey Megabyte!
I want to know how to connect to my server with this extension! :)
http://cdn.ogario.ovh/v3/ogario.v3.user.js
Is the Ogario V3, every time I enter with my server, the link is modified, I tried to put in the console of agar.io connect (ws ....) and also core.connect (ws // ...)

delete this
// Check location
if (location.host == "agar.io" && location.pathname == "/") {
    location.href = "http://agar.io/ogario" + location.hash;
    return;
}

then connect as normal http://agar.io/?ip=IP:PORT

@systemroot  Thanks


Support accessing percpu kernel data

There's a helper to access percpu data now: https://github.com/torvalds/linux/blob/0aa099a312b6323495a23d758009eb7fc04a7617/include/uapi/linux/bpf.h#L4489
However, it's not so simple to use. IIUC, there needs to be BTF ID to the data in question
in the right register when the helper is called. libbpf does these fixups and they look
somewhat complicated. So before we can support this we'll need to have libbpf do
our loading for us.

I think we should be unblocked on this. We should be able to emit a __ksym extern from codegen and then have libbpf relocate it for us.
Following  also makes sense to me, as it stays consistent within bpftrace and is also familiar to kernel folks. eg
For API, I think we've got two obvious options:
per_cpu(kaddr("percpu_symbol"), 5);
this_cpu(kaddr("percpu_symbol");

or
per_cpu("percpu_symbol", 5);
this_cpu("percpu_symbol");

Option 1 follows existing kptr (https://bpftrace.org/docs/master.html#functions-kptr) pattern. But possibly unnecessarily verbose, as we'll have to require the literal kaddr(..) call in the first param. Since we need to generate an extern with the symbol name in codegen.
Option 2 departs a bit from kptr pattern but is more terse and probably more obvious.
I'd vote option 2.
cc @viktormalik

I like Option 2 and also the more explicit wording per_cpu_kptr. However, instead of two functions what about one function and then a builtin e.g. this_cpu or current_cpu?
Also is there no such thing as a user space pointer specific to a CPU (asking for a friend) ?

I like Option 2 and also the more explicit wording per_cpu_kptr. However, instead of two functions what about one function and then a builtin e.g. this_cpu or current_cpu?

So something like this?
per_cpu("percpu_symbol", this_cpu);
per_cpu("percpu_symbol", 5);

ie an overload on the second param?

Also is there no such thing as a user space pointer specific to a CPU (asking for a friend) ?

There are userspace thread locals, but I'm not sure what the implementation is and if it differs between different standard libraries. Should probably look into that as well.

We already have the cpu builtin which does what this_cpu should do, right?
In terms of syntax, I also prefer the longer single-function variant, either percpu_kptr or per_cpu_kptr. I'd stick with one function but would consider making the second parameter optional:
percpu_kptr("percpu_symbol", 5);
percpu_kptr("percpu_symbol");        # implicitly chooses the current cpu

Also Clang has the percpu BTF tag which (IIUC) it should add to BTF entries for the percpu variables so we could even do the percpu access transparently. The problem is that we still need the other approach as most distros compile kernels with GCC which doesn't support BTF tags.

Optional second param makes sense. Consistent with other helpers we have. Long term it would be great to inject percpu access when we have the BTF information.

Ok, let me take this one.


The Review Agree button

User story
As a reviewer, clicking on "agree" with a review prevents them from drafting and submitiing a review. This should not happen, a reviewer should be able to submit a review when they agree.
Describe the solution you'd like in Hypha

remove this limitation
Also, is it possible to restrict the "Agree" to only work with "No" reviews? We don't really have a flow for agreeing with yes or maybes.

Priority

High (keeping you from completing day-to-day tasks)

Affected roles

Staff
Applicants

Go to this submission on test: https://test-apply.hypha.app/apply/submissions/227/
Scroll down to review section on far right hand corner:
Image here:

I do not think this is a bug. This is how it was supposed to work. A reviewer could submit a review by writing their own agreeing with someone else's. In Hypha it's called an "opinion".
Hypha counts an opinion as a review, so a review plus an opinion is counted as 2 reviews.
Do OTF want to rebuild this feature so reviewers both can summit a review and have opinions on other reviews for each submission?
Whats is the use case for a reviewer submitting both an opinion and a review for a submission?

@frjo Yes, OTF want to rebuild this feature so reviewers both can summit a review and have opinions on other reviews for each submission
The user interface (UI) misleads users/reviewers into thinking they can do both. There is not rationale for this restriction.  Removing this limitation would give reviewers the option to do both, this works for other funders as well.

What benefits is there with an "opinion" if the reviewer also write a proper review. What does it contribute?
Could we instead make it clear in the UI that reviewer can do one or the other?


Parameterize Sync Timeout

This PR introduces sync_timeout as a config option that allows an operator to control the duration of time that a node will sync before shutting down.

bors r+


[Device Support Request] Xfinity XHK1-UE Keypad

Is your feature request related to a problem? Please describe.
I have ZHA hooked up to a Sonoff Zigbee Bridge. I am unable to find my my Xfinity keypad when trying to add a device
Describe the solution you'd like
I would love for ZHA to support this keypad like Zigbee2Mqtt does.
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.
The Device doesn't appear when trying to add it. I put the keypad into pairing mode, and I put ZHA into search mode but no connection was made.
Additional context
I found information about this device on this link:
https://old.reddit.com/r/homeassistant/comments/k1hg4w/physical_zigbee_alarm_keypad_integrated_into_home/
The poster mentioned what he did to get it to work with Zigbee2MQTT
Thanks.

Keypads (IAS ACE) devices aren't supported by ZHA in HA yet. I am working on support for them but I haven't spent much time on it lately. I'll try to pick this back up soon.

Keypads (IAS ACE) devices aren't supported by ZHA in HA yet. I am working on support for them but I haven't spent much time on it lately. I'll try to pick this back up soon.

I have a variety of Iris zigbee keypads (Centralite, Iris, and Xfinity keypads are supposedly all the same basic hardware), and I'd be happy to pull whatever info is needed to get support for these added at the same time. If there is somewhere else that makes more sense for me to "follow," please let me know, and I'll gather whatever info will help.
As a side note, for my use case, the chime, alarm, and panic buttons are actually more useful than the keypad itself.

I have a variety of Iris zigbee keypads (Centralite, Iris, and Xfinity keypads are supposedly all the same basic hardware), and I'd be happy to pull whatever info is needed to get support for these added at the same time. If there is somewhere else that makes more sense for me to "follow," please let me know, and I'll gather whatever info will help.
As a side note, for my use case, the chime, alarm, and panic buttons are actually more useful than the keypad itself.

Hello, love to see this coming to ZHA  too :)

FYI, looks like dmulcahey is working on alarm control panel support to ZHA for Home Assistant core -> https://github.com/home-assistant/core/pull/49080
Btw, see zha-device-handlers discussion about Centralite 3400-G which is a similar or even the same rebranded keypad -> https://github.com/zigpy/zha-device-handlers/issues/838
Also see the discussion about Centralite 3405-L / Lowes Iris Keypad V2 which too is similar to it as well -> https://github.com/zigpy/zha-device-handlers/issues/87
PS: There is also a broader zigpy discussion about Zigbee IAS and ACE (for "Alarm Control Panel" support) here -> https://github.com/zigpy/zigpy/issues/419

FYI, looks like dmulcahey is working on alarm control panel support to ZHA for Home Assistant core -> home-assistant/core#49080
Btw, see zha-device-handlers discussion about Centralite 3400-G which is a similar or even the same rebranded keypad -> #838
Also see the discussion about Centralite 3405-L / Lowes Iris Keypad V2 which too is similar to it as well -> #87
PS: There is also a broader zigpy discussion about Zigbee IAS and ACE (for "Alarm Control Panel" support) here -> zigpy/zigpy#419

Thanks a lot. Unfortunately, I'm not too familiar with decoding what is going on at the link you provided. Does this mean its already working at the moment, or might work soon? Thanks

I'm not too familiar with decoding what is going on at the link you provided. Does this mean its already working at the moment, or might work soon?

It is not working yet but when the pull request https://github.com/home-assistant/core/pull/49080 gets merged (if it is merged) into Home Assistant core then ZHA in the next release will after that have initial support for generic Zigbee alarm control panel keypads. However, that in turn does not mean that all Zigbee alarm control panel keypads (Zigbee IAS ACE devices) will fully work from day-1 and there is where zha-device-handlers quirks comes in to the picture as some individual models might still need custom tweaks to fully work.

FYI; Home Assistant 2021.5 (planned for release May 5, 2021) Beta release notes: "ZHA now has support for alarm control panels".
https://rc.home-assistant.io/blog/2021/04/28/release-20215/ -> https://github.com/home-assistant/core/pull/49080

FYI; Home Assistant 2021.5 (planned for release May 5, 2021) Beta release notes: "ZHA now has support for alarm control panels".
https://rc.home-assistant.io/blog/2021/04/28/release-20215/ -> home-assistant/core#49080

Nice! Looking forward to it. Thanks for the notice.

Looks like this from my notes would help OP pair his keypad with ZHA:
To reset Xfinity keypads do the following:

Remove the cover and batteries
While keeping the tamper/pairing button pressed, insert batteries and then release the tamper/pairing button
It should make the pairing LED start flashing
Press the tamper/pairing button 5 times to reset keypad.

To pair it after resetting it, you need to remove the batteries again and then just reinstall. The green light by the tamper/pairing button should start flashing indicating it is ready to pair.

Is there a way to delay the arming?

Is there a way to delay the arming?

Feature request for ZHA as a 10-second delay before arming is probably wanted by default on all alarm control panels as standard?
I understand that the industry standard on the commercial security alarm system is to beep for 10-seconds to warn before arming.

@Hedda I'm having a pretty hacky automation to use this keypad as an extension of the builtin manual alarm control panel.
When you press a mode on the keypad and enter 4 digits, a message will be published to MQTT
{"action":"arm_day_zones","action_code":"1234","action_zone":23,"battery":100,"battery_low":null,"contact":null,"linkquality":78,"occupancy":true,"presence":null,"tamper":null,"temperature":25,"voltage":5800}

This could be used as the trigger of entering the arm mode of HA alarm(though you need a mapping between the Xfinity arm mode and HA arm home, e.g., arm_day_zones => arm_home).
When the HA alarm entered the arm mode, you can  then send a confirming message to MQTT topic zigbee2mqtt/[DEVICE_FRIENDLY_NAME/set with this payload to inform the keypad that the the alarm mode has entered.
{
    "arm_mode": {
    "transaction": 99, // Transaction number (take this value from the (dis)arm attempt property `action_transaction`)
    "mode": "arm_all_zones" // Mode "arm_all_zones", "disarm" or "exit_delay" (take this value from the (dis)arm attempt property `action`)
    }
}

Though I don't know what the transaction mean, it seems to decide if a chime will be played.
Similarly, while the alarm is armed, entering 4 digits will trigger an MQTT message and you can use it as the automation trigger in HA to disarm the alarm. If the passcode entered is wrong, you can trigger the HA manual alarm and do whatever fancy alarm you want.

@Hedda I'm having a pretty hacky automation to use this keypad as an extension of the builtin manual alarm control panel.
When you press a mode on the keypad and enter 4 digits, a message will be published to MQTT
{"action":"arm_day_zones","action_code":"1234","action_zone":23,"battery":100,"battery_low":null,"contact":null,"linkquality":78,"occupancy":true,"presence":null,"tamper":null,"temperature":25,"voltage":5800}

This could be used as the trigger of entering the arm mode of HA alarm(though you need a mapping between the Xfinity arm mode and HA arm home, e.g., arm_day_zones => arm_home).
When the HA alarm entered the arm mode, you can then send a confirming message to MQTT topic zigbee2mqtt/[DEVICE_FRIENDLY_NAME/set with this payload to inform the keypad that the the alarm mode has entered.
{
    "arm_mode": {
    "transaction": 99, // Transaction number (take this value from the (dis)arm attempt property `action_transaction`)
    "mode": "arm_all_zones" // Mode "arm_all_zones", "disarm" or "exit_delay" (take this value from the (dis)arm attempt property `action`)
    }
}

Though I don't know what the transaction mean, it seems to decide if a chime will be played.
Similarly, while the alarm is armed, entering 4 digits will trigger an MQTT message and you can use it as the automation trigger in HA to disarm the alarm. If the passcode entered is wrong, you can trigger the HA manual alarm and do whatever fancy alarm you want.

Jup I'm doing the same. Altough I moved from zha to z2m. In zha when pressing one of the zone buttons they stay lit when entering the code to arm. In z2m this doesn't happen. You wouldn't know how they do that in zha?

@thecobra666 No I haven't used this keypad with ZHA as I knew certain features are missing. Btw do you know the meaning of transaction in the message? According to the official page it should be something like an action identifier, but I don't see it in the MQTT box I received. Btw I'm using Zigbee2Mqtt as HA addon.

Normally the transaction is to confirm the "ask to arm" back to the keypad
to set it to the required arm status.
You select the zone, enter the code. That mqtt message should have the
transaction ID in it. (It doesn't). Then you have to send that ID back to
the keypad and the selected arm zone. Then the keypad should be armed.
If I do not send the transaction ID at all, it doesn't work. So I just send
99. Would you know how to stop the keypad from beeping after using the
entry or exit delay? The only way I'm able to do this is using the disarm
action. That only works for the entry delay of course.
Met vriendelijke groeten,
Shane Vandewalle
Fotografie events, trouws, modelshoots
www.shanevandewalle.be
+32498043823
Voor al uw telefonie oplossingen contacteer www.maf.team
Op za 19 jun. 2021 09:00 schreef Hao Peng @.***>:

@thecobra666 https://github.com/thecobra666 No I haven't used this
keypad with ZHA as I knew certain features are missing. Btw do you know the
meaning of transaction in the message? According to the official page
https://www.zigbee2mqtt.io/devices/URC4450BC0-X-R.html#disarming-from-the-keypad
it should be something like an action identifier, but I don't see it in the
MQTT box I received. Btw I'm using Zigbee2Mqtt as HA addon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zigpy/zha-device-handlers/issues/692#issuecomment-864366644,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQP7AASZV4KEET22EBSWH2LTTQ6AVANCNFSM4VQ4NWLQ
.

@thecobra666 You can set the alarm in in_alarm mode. Of course before that you have to use either arming_stay, arming_night or arming_away.
I still can't see transaction id in the reply, and I also plan to send an arbitrary value 99.
Another question is that I don't understand the different between arm_day_zones and arming_stay then in_alarm. They both seem to achieve the same state.

@thecobra666 You can set the alarm in in_alarm mode. Of course before that you have to use either arming_stay, arming_night or arming_away.
I still can't see transaction id in the reply, and I also plan to send an arbitrary value 99.
Another question is that I don't understand the different between arm_day_zones and arming_stay then in_alarm. They both seem to achieve the same state.

Yes I know but what I was saving is that in z2m when pressing the zone button, no mqtt message with that zone is send. That only happens when the code is entered. In zha they light up the zone which was pressed before the code gets entered.
I would like to know how they intercept that.

I recently acquired a small lot of the Xfinity XHK1-UE keypads on eBay, and I have a few more than I need. I've tried to use them with ZHA, but it has become apparent to me that there are still a few quirks (pun intended) to be ironed out before these keypads are useful.
I'd be more than willing to donate a free keypad to anyone who can get these working. Just send me an email (see my profile) with your address, and I'll mail a free keypad to you. However, don't bother asking for one unless you are already experienced with Zigbee/zigpy/ZHA and can contribute a usable change to the codebase.
Currently, I cannot get arming and disarming to work from the physical keypad (only the UI card). And the battery percentage is "unknown". And, there's a binary sensor that I assumed was the tamper button, but it always remains "off" even if I push the tamper button. So, the only thing that works is the temperature sensor.

Note that when you set arm_mode with transaction, that is treated as a reply to the code entered, and triggers the "chime". You then need to set arm_mode again without a transaction, this changes the state of the lights to whatever you send.
For requests like arm_all_zones, I think you set with transaction and mode arm_all_zones, then set without transaction and mode exit_delay, then 30 seconds later set mode arm_all_zones (without transaction). I'm not sure where arming_away fits in.


Dev session multi rooms

Sessions can have multiple rooms (as discussed with Anna). This changes the DB model etc and the sched screen.
TODO: room assignment in session edit tab will need a new component

i think obsolete at this point @balen ?


Reduce number of processes on travis to 2

Reduce the number of processes in travis environment to 2 as current setup is CPU bound and travis provides just two CPUs (see https://docs.travis-ci.com/user/reference/overview/#Virtualisation-Environment-vs-Operating-System).
Using more processes results only in higher memory consumption with the risk to hit the 4GB limit of travis containers.
fixes https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26063

Thanks!


MySQL Adapter getPrimaryKey error Undefined index

Notice Error: Undefined index: constraint_name in [vendor/robmorgan/phinx/src/Phinx/Dd/Adapter/MySQL.php, line 699]
Notice Error: Undefined index: column_name in [vendor/robmorgan/phinx/src/Phinx/Dd/Adapter/MySQL.php, line 700]

Issue already fixed in this version. Was using old version of phinx


Set c_api_binop_methods Cython compiler directive to True

The change described here appears to be the cause of the errors reported in #271.  The documentation notes that one way to address this is to restore the old arithmetic operator behavior by setting the c_api_binop_methods compiler directive to True.  This PR makes this change.  I've confirmed locally that it addresses the issue.
Note that this directive requires Cython >= 0.29.20, which was released on 2020-06-10; I updated the pyproject.toml and requirements-dev.txt files accordingly.

thanks for tracking this down @spencerkclark !

For sure.  Thanks for the quick review and merge!

@jswhit latest release was from Sep 2022, it would be nice to get a new one with this fix.


Correction for raw affiliation Deutsches Zentrum für Neurodegenerative Erkrankungen e.V. (DZNE) and Institute for Community Medicine / University of Greifswald, Greifswald  Germany

Correction needed for raw affiliation Deutsches Zentrum für Neurodegenerative Erkrankungen e.V. (DZNE) and Institute for Community Medicine / University of Greifswald, Greifswald  Germany
raw_affiliation_name: Deutsches Zentrum für Neurodegenerative Erkrankungen e.V. (DZNE) and Institute for Community Medicine / University of Greifswald, Greifswald  Germany
new_rors: 043j0f473;025vngs54
previous_rors: 043j0f473;00r1edq15
works_examples: W4390201410;W4390201603;W4390200762;W4390200688
contact: a252327a64968674dd024641b39f9b1a:57c7210d3d1afb0076808581a4c38474423751cac558 @ uni-greifswald.de

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


installation fails with the following error: Could not load kernel modules plat_eq3ccu2 and eq3_char_loop.

After I followed the procedure to install piVCCU on my RaspberryPi 3 i get the following error when the service tries to start:
Could not load kernel modules plat_eq3ccu2 and eq3_char_loop.
the corresponding modprobe in the start script gives:
modprobe: WARNING: Module plat_eq3ccu2 not found in directory /lib/modules/4.9.67-v7+
modprobe: WARNING: Module eq3_char_loop not found in directory /lib/modules/4.9.67-v7+
What did I do wrong?
I have the HM-MOD-RPI-PCB board (it works, tested it as a device in FHEM on the same RPi)
Kind regards,
EsO

Can you please Provider the output of "sudo pivccu-info"?

The output is as follows:
piVCCU version: 2.29.23-16
Kernel modules: Not available
Raw UART dev:   Not available
Rasp.Pi3 UART:  Assigned to GPIO pins
Board serial:   Unknown
lxc doesn't exist

Can you please describe how you installed piVCCU?
The pivccu deb file has a dependency to lxc which Sees to be not install es on your system and the module deb has a dependency to the kernel package with Version 4.9.59 and you have 4.9.67 on your system.

I followed the procedure on
https://github.com/alexreinert/piVCCU/blob/master/docs/setup/raspberrypi.md
which means that I used the apt way of installing it. The edits in steps 3 and 4 were in place already from my Hardware test and FW update of the GPIO board (to 1.4.1)
I noted that i was unable to uninstall the dhcpcd5 package as it was not installed (Iguess Stretch uses a different one) but I guess that this is not the issue.
before i installed this I had run an sudo rpi-update which bumps me to the latest kernel release.

Please downgrade to the latest provides official kernel deb using
sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel
and ensure, that all necessary package are installed using
sudo apt install lxc bridge-utils systemd
After that steps you need reboot.
It could be possible that you have to reinstall the module package after that reboot using
sudo apt-get install --reinstall pivccu-modules-raspberrypi
and reboot again.

Looks better now:
pi@zberry:~ $ sudo pivccu-info
piVCCU version: 2.29.23-16
Kernel modules: Available
Raw UART dev:   Available
Rasp.Pi3 UART:  Assigned to GPIO pins
Board serial:   OEQ0607687
State:          RUNNING
PID:            662
IP:             <IP_ADDRESS>
IP:             2003:e5:abde:7500:688b:32ff:fe9d:a989
CPU use:        5.72 seconds
BlkIO use:      7.52 MiB
Link:           vethpivccu
TX bytes:      5.89 KiB
RX bytes:      41.91 KiB
Total bytes:   47.81 KiB
I assume that this means that I should refrain from using rpi-update, correct?
I also now have two interfaces. eth0 with a static dhcp adress and the bridge br0 with a static ip. does this hurt?
Thank you for your quick reply!
I will start toying around with the new CCU tomorrow ;-)

Yes, you should update your kernel only using the apt way. I will provide updates module package for New kernel debs.
Regarding the interfaces: Normally you should just have an address on br0. Can you please post your /etc/network/interfaces and the output of ifconfig?


Can't install

   Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing caouecs/laravel4-lang (dev-master 8cd5048)
    Downloading: Connecting...    Failed to download caouecs/laravel4-lang from dist: The "https://api.github.com/repos/caouecs/Laravel4-lang/zipball/8cd50480137307b620d574804289f800e6b50246" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source

maybe you have to change the canonical setting on packagist?
https://packagist.org/packages/caouecs/laravel4-lang
It says https://github.com/caouecs/Laravel4-lang

Download from repo works though ... but it should also work from the dist / zipball

bump

Hello,
sorry but I tried, and I don't have any problem : "caouecs/laravel4-lang": "~2.0"

did you install from source or from dist?

GitHub will make redirects in one of the next releases: https://developer.github.com/changes/2015-04-17-preview-repository-redirects/

Still I think the composer repo should be fixed. We currently can not install our projects properly :-(

I'm sorry but I don't have your problem, so I can't help to fix it

It looks like it started working now. Can not reproduce it in a new project so I belive composer update will be enough.
Thank you.


[13-1.12.2] Quest Book not working

Opens Wynncraft 2.0.3's new quest book

This is because Wynntils has dropped support for 1.12.2


Error: BrowserModule has already been loaded

Hi JayChase,
I am using lazy loaded to load module then I am getting below error when run app :
Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
I find out that you imported BrowserModule in SwiperModule. I think BrowserModule  should import once in rootModule and other modules just import CommonModule.
Please help me to review and correct me if anything wrong.
Thanks

Thanks for spotting that, I've removed the import in<EMAIL_ADDRESS>I will do a full release once I've finished testing.


Prefer seq_mems to comb_mems all over

This PR edits gen_exp.py and gen_ntt_pipeline.py, the last remaining files that used the eDSL to create combinational memories, so that they use sequential memories instead.
Closes #2062. As expected, the fix was easy.
The changes to the .py files are straightforward. There is a largish diff because we are expect-testing the Calyx files generated (where you'll see changed lines of Calyx) and the results of simulation (where you'll see slightly elevated cycle counts).

Requesting a review from @KabirSamsi since you may be in the business of comb-to-seq conversion yourself!

Looks all good on my end! All tests seem to pass fine as well.


Use less broken advanced example

JSFiddle is being JSfiddle, it's not displaying the original example.

Addresses #78

I've confirmed the example works on Firefox and Chrome.
With a package.json under demo, this could easily run directly from the git repo. stackblitz.com/fork/github/hrynko/vue-pdf-embed/tree/master/demo
See vite.new/vue , vite.new , vite.new/vanilla-ts and vite.new/vue-ts

I see your point, but the JSFiddle example is not broken. It still works in some environments. Thus, I would keep both examples, so that the one can choose the preferred editor.

I can confirm the JSFiddle Advanced example is now working again in Firefox and Chrome. Stackblitz Classic's WebContainers are a good runtime, but it is not a good editor for Vue projects. Stackblitz CloudFlow is good for running and editing, but requires a special git repo and is not usable in incognito.

Thanks, I appreciate it 👍


[client tooling] Tool to sync local state to Libra state at a certain height, execute a transaction, view the state

This would be useful for local testing by clients and Libra administrators. It is also related to https://github.com/libra/libra/issues/4803: supporting read-only Move calls.

cc: @msmouse this sounds like backup&restore (sync to a certain height) + db bootstrapper (execute a txn and view the state)

The tools already exists if we are talking about a DB that's behind the target version -- you just recover additional transactions in replay mode on top of the existing db, and use the db-bootstrapper.
There's no tooling to go back in history though.

@runtian-zhou and I discussed this today and he is going to follow up to figure out how we can make it easier to put these tools together

CC @runtian-zhou
The transaction-replay tool is what we needed here. This is done now.


Impossible to start Keybase after install

Hello,
I'm having this error at Keybase startup just after installation on macOS, Ventura 13.5.2:

my log id: 3a0597371271621472b31e1c
I'm not sure this has been reported yet as I didn't found any similar recent issue.

Which keybase did you install? (keybase --version gives the number.)

Have you tried installing 6.2.8 @nhoway?


Test workingness of timestamp comparison in JsonldSpider

I strongly suspect that the timestamp comparison is not working in its current state, and because of that the entire sitemap is being crawled on each harvest. Ensuring that the timestamp comparison function is working may cut down significantly on unneccessary traffic.
Related:

#23
#34

Relevant docs are here and describe filtering based on a static value. This could be useful if we want to set the lastmod_filter to the last time we successfully harvested the site.
It would be much harder and more resource intensive, but perhaps more useful to be able to get this value from the database. However, in the case of redirects, the database would have to store the pre-redirect URL which it does not at the moment. The pre-redirect URL could be used in a query to potentially find the last time it was updated and whether the lastmod value has changed since it was stored.

At the very least, lastmod_filter should be set to the last successful harvest date and time.

Tested and working. lastmod_filter can be set to any date and time handled by dateparser. I set "lastmod_filter": "two years ago" in instance/nodes/mnTestOPENTOPO/settings.json and it requested only 71 of the 790 or so datasets.


python scripts/dream.py   error

ImportError: dlopen(/Users/jc/miniforge3/envs/invokeai/lib/python3.9/site-packages/greenlet/_greenlet.cpython-39-darwin.so, 0x0002): tried: '/Users/jc/miniforge3/envs/invokeai/lib/python3.9/site-packages/greenlet/_greenlet.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

Try creating a new environment using arm from the start. Switching your environment to use arm once you have some packages installed for x86 seems to give problems.

This will clean up the conda environment for a fresh install. Do not remove ldm if you are using it for another distribution! I included it in case you have a leftover environment from an earlier InvokeAI install.
conda deactivate
conda env remove -n invokeai
conda env remove -n ldm
conda clean --all --yes

Tried the above. When done it still says ldm.

@Cyx-0, please let us know if, after trying the troubleshooting suggested, you still have this problem.
@Coreusa, it's not clear what your problem is. Can you please elaborate?

@psychedelicious The docs states this:

Now refer to what's stated above

@Coreusa I think you are using an old version of the repo. Please run git pull from the invokeai folder and try the steps again.
If this does not work, please open a new issue and fill out the details requested in the new issue form.

No response, closing


RuntimeError: Invalid PM2.5 header

Following this guide https://learn.adafruit.com/pm25-air-quality-sensor/python-and-circuitpython with minor adjustments I keep running into this error...
"Traceback (most recent call last):
File "code.py", line 190, in
File "/lib/adafruit_pm25/init.py", line 83, in read
RuntimeError: Invalid PM2.5 header"
I am using a Teensy4.1 instead of the Feather to control the WiFi Module, Temp sensor, and PM25 Sensor. I am using the UART connection method. What will happen is it will run for a random amount of time, sometimes 5 hours, sometimes 30 minutes before running into this error. I'm unsure how to fix the problem without just looping a reset but that does not solve the problem.
Thanks,
W

Have you tried wrapping the code in a function to protect it, allowing it to try again if it runs into an error up to a specified retry limit? UART has a tendency to occasionally just glitch out, and trying again a few times is a valid solution to add robustness to your code. It might solve your problem as I'm not sure if there's a better way around that kind of comms glitch.

def read_pm25(pm25_sensor):
    read_tries = 0
    read_attempt_limit = 5

    while read_tries < read_attempt_limit:
        try:
            particles = pm25_sensor.read()
            break
        except RuntimeError:
            print("RuntimeError while reading pm25, trying again. Attempt: ", read_tries)
            read_tries += 1
            time.sleep(0.1)
    if read_tries >= read_attempt_limit:
        # We tried too many times and it didn't work. Break the program to alert the user there's an error
        raise RuntimeError
    return particles

pm25_sensor = PM25_UART(uart, reset_pin)

This lets it try again after sleeping for a small period of time, hopefully long enough that comms work again. If it fails repeated it still raises an error so you don't miss larger issues, like a physical wire disconnecting.
#9 indicates that there is a larger bug somewhere and #10 has foundations to implement it, however in the interim 'try again' might be a functional solution.  Please let me know if this doesn't help though, I have this code running on my microcontroller that uses the UART plantower's sensor so I think it should work.

Hello,
Thank you very much for this! I will definitely try it out, I did not figure it could be the actual connection method, Still new to CircuitPython and Arduinos in general.
I will update you if anything new comes up.
Best,
W

Wanted to check back in, does the code seem more stable with this protection in place?

Hello, I appreciate you checking in. At this moment the code is still hanging, but it is not always the header problem. Sometimes its a connection issue. So Ive been adding more Try, Except checks in my code.
I also was interested in knowing if its better to put up the setup code stuff like pm25 = PM25_UART(uart, reset_pin) in the While loop with the try checks.
I am monitoring it on MU atm to see what problems arise. Usually my Checks will reload the program but something is causing the whole thing to break at random intervals.

What is the uptime you've been getting before an error? Additionally could you post a sample of your code, and a selection of the errors you receive with the full stacktrace for the error?
For the connection errors are you sure your wiring is solid? I'm trying to figure out if the issue is with this Adafruit_CircuitPython_PM25 library, and if so what changes can be done to mitigate the issue and where the issue is.

Hello, I am monitoring my Serial monitor now looking for the most common error. And the uptime is all over the place. Could be hours, could be a few minutes. Here is my code.
`import time
import board
import busio
from digitalio import DigitalInOut, Direction, Pull
from adafruit_esp32spi import adafruit_esp32spi, adafruit_esp32spi_wifimanager
from adafruit_io.adafruit_io import IO_HTTP
from simpleio import map_range
from adafruit_pm25.uart import PM25_UART
from adafruit_bme280 import basic as adafruit_bme280
import supervisor
import gc
gc.enable()
#microcontroller.on_next_reset(microcontroller.RunMode.NORMAL)
Uncomment below for PMSA003I Air Quality Breakout
from adafruit_pm25.i2c import PM25_I2C
import adafruit_bme280
Configure Sensor
Return environmental sensor readings in degrees Celsius
USE_CELSIUS = True
Interval the sensor publishes to Adafruit IO, in minutes
PUBLISH_INTERVAL = 10
WiFi
Get wifi details and more from a secrets.py file
try:
from secrets import secrets
except ImportError:
print("WiFi secrets are kept in secrets.py, please add them there!")
raise
AirLift FeatherWing
esp32_cs = DigitalInOut(board.D5)
esp32_ready = DigitalInOut(board.D9)
esp32_reset = DigitalInOut(board.D6)
esp32_gpio0 = DigitalInOut(board.D10)
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
esp = adafruit_esp32spi.ESP_SPIcontrol(
spi, esp32_cs, esp32_ready, esp32_reset, esp32_gpio0
)
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(esp, secrets, status_pixel=None, attempts=4)
Connect to a PM2.5 sensor over UART
reset_pin = DigitalInOut(board.D16)
reset_pin.direction = Direction.OUTPUT
#reset_pin.value = False
uart = busio.UART(board.TX3, board.RX3, baudrate=9600)
pm25 = PM25_UART(uart, reset_pin)
Create i2c object
i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
Connect to a BME280 over I2C
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
Uncomment below for PMSA003I Air Quality Breakout
pm25 = PM25_I2C(i2c, reset_pin)
Uncomment below for BME680
import adafruit_bme680
bme_sensor = adafruit_bme680.Adafruit_BME680_I2C(i2c)
Sensor Functions
def calculate_aqi(pm_sensor_reading):
"""Returns a calculated air quality index (AQI)
and category as a tuple.
NOTE: The AQI returned by this function should ideally be measured
using the 24-hour concentration average. Calculating a AQI without
averaging will result in higher AQI values than expected.
:param float pm_sensor_reading: Particulate matter sensor value.
"""
# Check sensor reading using EPA breakpoint (Clow-Chigh)
try:
    if 0.0 <= pm_sensor_reading <= 12.0:
        # AQI calculation using EPA breakpoints (Ilow-IHigh)
        aqi_val = map_range(int(pm_sensor_reading), 0, 12, 0, 50)
        aqi_cat = "Good"
    elif 12.1 <= pm_sensor_reading <= 35.4:
        aqi_val = map_range(int(pm_sensor_reading), 12, 35, 51, 100)
        aqi_cat = "Moderate"
    elif 35.5 <= pm_sensor_reading <= 55.4:
        aqi_val = map_range(int(pm_sensor_reading), 36, 55, 101, 150)
        aqi_cat = "Unhealthy for Sensitive Groups"
    elif 55.5 <= pm_sensor_reading <= 150.4:
        aqi_val = map_range(int(pm_sensor_reading), 56, 150, 151, 200)
        aqi_cat = "Unhealthy"
    elif 150.5 <= pm_sensor_reading <= 250.4:
        aqi_val = map_range(int(pm_sensor_reading), 151, 250, 201, 300)
        aqi_cat = "Very Unhealthy"
    elif 250.5 <= pm_sensor_reading <= 350.4:
        aqi_val = map_range(int(pm_sensor_reading), 251, 350, 301, 400)
        aqi_cat = "Hazardous"
    elif 350.5 <= pm_sensor_reading <= 500.4:
        aqi_val = map_range(int(pm_sensor_reading), 351, 500, 401, 500)
        aqi_cat = "Hazardous"
    else:
        print("Invalid PM2.5 concentration")
        aqi_val = -1
        aqi_cat = None
    return aqi_val, aqi_cat
except (ValueError, RuntimeError, ConnectionError, OSError) as e:
        print("Unable to read from sensor, retrying...")
        supervisor.reload()

def sample_aq_sensor():
"""Samples PM2.5 sensor
over a 2.3 second sample rate.
"""
try:
    aq_reading = 0
    aq_samples = []

    read_tries = 0
    read_attempt_limit = 5

    # initial timestamp
    time_start = time.monotonic()
    # sample pm2.5 sensor over 2.3 sec sample rate
    while (time.monotonic() - time_start) <= 2.3:
        try:
            aqdata = pm25.read()
            aq_samples.append(aqdata["pm25 env"])
            break
        except RuntimeError:
            print("RuntimeError while reading pm25, trying again. Attempt: ", read_tries)
            read_tries += 1
            time.sleep(0.1)
    if read_tries >= read_attempt_limit:
        raise RuntimeError
        # pm sensor output rate of 1s
        time.sleep(3)
    # average sample reading / # samples
    try:
        for sample in range(len(aq_samples)):
            aq_reading += aq_samples[sample]
        aq_reading = aq_reading / len(aq_samples)
        aq_samples = []
        return aq_reading
    except (ValueError, RuntimeError, ConnectionError, OSError) as e:
            print("Unable to read from sensor, retrying...")
            supervisor.reload()
except (ValueError, RuntimeError, ConnectionError, OSError) as e:
        print("Unable to read from sensor, retrying...")
        supervisor.reload()

def read_bme(is_celsius=False):
"""Returns temperature and humidity
from BME280/BME680 environmental sensor, as a tuple.
:param bool is_celsius: Returns temperature in degrees celsius
                        if True, otherwise fahrenheit.
"""
try:
    humid = bme280.humidity
    temp = bme280.temperature
    if not is_celsius:
        temp = temp * 1.8 + 32
    return temp, humid
except (ValueError, RuntimeError, ConnectionError, OSError) as e:
    print("Failed to fetch time, retrying\n", e)
    supervisor.reload()

Create an instance of the Adafruit IO HTTP client
io = IO_HTTP(secrets["aio_user"], secrets["aio_key"], wifi)
Describes feeds used to hold Adafruit IO data
feed_aqi = io.get_feed("airquality-sensors.aqi")
feed_aqi_category = io.get_feed("airquality-sensors.category")
feed_humidity = io.get_feed("airquality-sensors.humidity")
feed_temperature = io.get_feed("airquality-sensors.temperature")
Set up location metadata from secrets.py file
location_metadata = {
"lat": secrets["latitude"],
"lon": secrets["longitude"],
"ele": secrets["elevation"],
}
elapsed_minutes = 0
prv_mins = 0
while True:
try:
print("Fetching time...")
cur_time = io.receive_time()
print("Time fetched OK!")
# Hourly reset
if cur_time.tm_min == 0:
prv_mins = 0
except (ValueError, RuntimeError, ConnectionError, OSError) as e:
print("Failed to fetch time, retrying\n", e)
supervisor.reload()
try:
    if cur_time.tm_min >= prv_mins:
        print("%d min elapsed.." % elapsed_minutes)
        prv_mins = cur_time.tm_min
        elapsed_minutes += 1
except (ValueError, RuntimeError, ConnectionError, OSError) as e:
    print("Failed to fetch time, retrying\n", e)
    supervisor.reload()
try:
    if elapsed_minutes >= PUBLISH_INTERVAL:
        print("Sampling AQI...")
        aqi_reading = sample_aq_sensor()
        aqi, aqi_category = calculate_aqi(aqi_reading)
        # aqdata = pm25.read()
        # sampleaqi = aqdata["pm25 env"]
        # aqi, aqi_category = calculate_aqi(sampleaqi)
        print("AQI: %d" % aqi)
        print("Category: %s" % aqi_category)

        # temp and humidity
        print("Sampling environmental sensor...")
        temperature, humidity = read_bme(USE_CELSIUS)
        print("Temperature: %0.1f F" % temperature)
        print("Humidity: %0.1f %%" % humidity)

        # Publish all values to Adafruit IO
        print("Publishing to Adafruit IO...")
        io.send_data(feed_aqi["key"], str(aqi), location_metadata)
        io.send_data(feed_aqi_category["key"], aqi_category)
        io.send_data(feed_temperature["key"], str(temperature))
        io.send_data(feed_humidity["key"], str(humidity))
        print("Published!")
        elapsed_minutes = 0
except (ValueError, RuntimeError, ConnectionError, OSError) as e:
    print("Failed to send data to IO, retrying\n", e)
    supervisor.reload()
    # Reset timer
time.sleep(30)`

So ive noticed it mainly hangs up when getting to the "Sampling AQI" section. It will just not run the code afterwards or raise an error. Im pretty sure my wiring is solid but soon im going to actually solder all of this on a board. Is there a way to implement a timeout?

Before you solder things in place, I'd suggest removing the other peripheral sensors and trying just running this program stripped down for just the PM2.5 sensor and that sensor alone. It strikes me as odd that the aqi section is only occasionally hanging. it's easier to divide the problem up into smaller things to try this way.
Additionally the error could be a power issue, where with all of the sensors on the microcontroller draw just enough power that the comms are on the edge of working. If removing all of the other sensors and running this for a while doesn't solve the problem then we can be more confident that the issue has to do with the communication protocol

Okay thank you for the suggestion. I will try that and you saying that reminds me that the Teensy4.1 runs at a high freq and draws a lot of power for it. I might also try reducing the clock rate on and seeing if that helps too!

How is it running with fewer sensors attached?

So I just moved so I am just now setting up the sensor again. (Sorry about how long this is taking). Ive noticed that its the same for the most part. Still hangs on the "Sampling AQI" part which if i removed that function and just went with the basic read then it would be the header problem. I am going to rewire everything again just in case something got loose during the move.

Still hangs on the "Sampling AQI" part which if i removed that function and just went with the basic read then it would be the header problem.

Is this with the other sensors removed? If this is related to a power issue, and the other sensors are connected then even if the code isn't calling it the power draw could still be an issue.

Just wanted to check again and see if better wiring and fewer peripherals drawing power helped increase the stability. I haven't been able to replicate this hanging but I'm using a metro esp32-s2

Hello, I just now soldered a lot of the components onto a breakout board and it seems to be running well so far. It will always hangout within 24hrs so ill be sure to give an update tomorrow.

How has it been running? Is it stable or is the bug persistent?

Still running into the same bug I believe. Sometimes it is hard to detect exactly what is going wrong.

When reading the serial monitor it will show me my errors until (And this happens most of the time when i leave it overnight) it will actually disconnect from my computer and stop running.
Im trying to see if my computers ports are causing an incorrect power supply problem so im using an external 5v/1amp power brick to power the Teensy which powers the rest of the electronics.

Its weird to me that it will run for lets say 12hrs then randomly just completely brick itself. If it was a power issue I would assume that it would stop earlier. It could also just be at a certain point all the components are drawing too much power and the Teensy bricks.

Update. It has been running for 24hrs which is the longest it has ever gone. I created a boot.py file and added
import board
import supervisor
import microcontroller

microcontroller.cpu.frequency = 150000000
microcontroller.on_next_reset(microcontroller.RunMode.NORMAL)

supervisor.enable_autoreload()

What might be happening is whenever the MCU hard crashes/resets due to some type of failure (Still unsure if its due to the PM sensor) it is not booting back properly with the correct configurations. Basically I have still not figured out what the problem is but I am making it restart (Is my guess to what I did).

Hey I wanted to check back in on this and see if this has been stable, or if you've narrowed in on if the issue with with the PM2.5 sensor or not.
Hope the project has been going well and been collecting informative data this past month!

So yes and no. It runs for longer than a day but still crashes. When it crashes i cant see any reports and it does not reset/reboot.
Do you know of a way to log crash reports/ collect logs?
Thanks for reaching out again, ive been quite busy with other projects and apologize.

Hmm.
Boy this is a bunch of open ended questions that this opens up haha, let's start working through them.
First, do you think the PM2.5 sensor is the issue? If not it might be best to close this and migrate the discussion someone more apt (and where folks more familiar with the 'more likely core issue' are).
Next what version of circuit python are you running on the Teensy4.1?
I don't know about crash report/logs (that's an aspect of circuit python I need to get a better handle on) but you could do the inverse--make 'success' logs:
Are you writing to the sd card at any point? It might help to write to the SD card a lot:

Make a "I'm Starting Now" write so when you review the SD cards data you can see when the board reboots
Before each sensor read so you know what it was about to do
After each sensor read so you know it succeeded
Before each wireless transmission so you know it was about to send data
After each wireless transmission so you know it succeeded

With each of these writes, it'll be helpful to add some extra info, like gc.mem_free() so we can also track the memory in case there's a memory leak in your code.
Basically this will create a ton of data so you're very aware of where the program was when it broke, and over time you can see if it's consistently at that location when it broke or in the event that it breaks at inconsistent locations it might be an entirely different issue than we're zeroing in on.
I still have a suspicion what you're experiencing is a power supply issue and you're experiencing a brownout that resets your board (I had a similar issue on one of my boards-long uptime, random crash that I couldn't pinpoint) but this might help you identify if the error is consistently in the same location, and give you an idea of the state of the board before it crashed.

Thank you for the suggestion. I will implement that and look into it. Im running the latest stable curcuitpython build

My setup has a few more peripherals on it. The base micro is an Adafruit Metro ESP32-S2, with a BME280, SGP40, and an SCD40 on the i2c bus, with the Serial PM2.5 sensor you have on the serial pin. It used to have an Adafruit MiCS-5524 Gas Sensor Breakout on an analog pin as well.
The code loop sampled every sensor at 1 Hz and if a data queue was full, it was post the sensor values in the queue to a home server waiting for the data.
It would inconsistently hit a random error and hard crash. I had uptime on the order of weeks to months prior to a crash, but I had a similar sensor node design that used a Adafruit ESP32-S2 Feather, the BME280, SGP40, and an i2c PM2.5 sensor setup outside that never crashed. The two microcontrollers were running the same control loop so I was sure the hard crash on the Metro wasn't related to the code.
Recently I redesigned the hardware housing for the Metro so I could mount the sensors on the wall (since I liked the data it was receiving) and choose to remove the Adafruit MiCS-5524 Gas Sensor. Since that hardware redesign I haven't experienced a crash and it's matching the uptime of the Feather board. I had been suspicious that the Adafruit MiCS-5524 Gas Sensor was putting me over my power budget for a while and I think now that I've removed it I was probably right.
Looking at your board setup I know the Teensy4.1 draws and uses a lot of power, I know anything that uses wifi uses a lot of power, and writing to an SD card can consume a lot of power. Depending on what's going on in the code it might be trying to read from the serial bus after it's just used a lot of power, and unable to send data at the correct voltages because of that. The intermittency of your issues, the number of power consuming parts you have connected to the board, combined with how hard it's been to pinpoint the source of the problem makes me think you're experiencing a power issue like I did. But that could be my own recency bias because it was the problem I recently solved.
Regardless of the source issue, over logging might help to start narrowing down some variables. Make sure you also include timestamps with it so we can get a sense of how much time has passed between each type of behavior, that'll be a huge help too.

How has added logging gone over the past couple of weeks? Has it helped focus on a region that's causing an issue, or is it inconsistent?

Just going to reach out once more to see if you've been able to log more information, or if you've removed peripherals for more stable power. The closest I ever got to 'reliably' reproducing the error (I say 'reliably' due to it's intermittences, and the part of the code which broke would change)  was when I overloaded my board with too many peripherals and started occasionally browning it out. Since removing the Adafruit MiCS-5524 Gas Sensor from my setup I haven't had it crash in months.


framework to be used by RAG for pipeline

There is a lot of emphasis given to haystack being focused on RAG. Does it also have a good story for supporting more generalized agentic patterns?

There is a lot of emphasis given to haystack being focused on RAG. Does it also have a good story for supporting more generalized agentic patterns?

@erikerlandson, well, since Haystack supports building arbitrary graphs of operators (similarly to Langgraph), it can potentially implement many of the agentic patterns. However, as you say, the main focus is on RAG. Since the decision here solely considers our RAG implementation, features and capabilities not directly related to RAG should mostly be out of scope.

I believe that agentic should not be totally out of scope; mainly because soon enough the focus is going to shift to agentic, and it would be undesirable (IMO) to be in a position of wanting to add a separate framework for agentic, or having to switch to a new framework altogether.

@erikerlandson, I agree. Since Haystack provides the functionality to build arbitrarily complex pipelines, it is possible to extend our RAG architecture to introduce nodes for tools, reasoning and agentic actions.

@jwm4, sure, I will edit the document to include the alternative you proposed.
As for the dependencies, I have already added this earlier today. To the best of my understanding, there seem to be no problems with the dependencies, therefore I added this discussion to the 'Why' section rather than to the risks. Do you think it would be better to move it under 'Risks'?

Oh, I missed it under "Why".   Sorry!  I am fine with it there.  I do think there is a tail risk that new dependencies get added that are more problematic.  If that happens we have the following options:

Pin to the old version that doesn't have that dependency.  That's often OK for a while, but eventually we're likely to run into updates that we need (e.g., critical fixes, compatibility with new vectordbs, etc.).
Fork the project to avoid the problematic dependencies.
Move off of Haystack completely.

Any of these could be viable depending on the circumstances.  Furthermore, since Haystack hasn't added any dependencies that we'd consider very problematic so far, the likelihood that they will in the future seems minimal.  I'd still like this noted under Risks though for reference if you don't mind.

@instructlab/oversight-committee -- Can someone take a look at this and see if it is ready to approve and merge?  If it is not, can we get some guidance about what would be needed to get it approved?

As an oversight committee member I approve this. Please fix the markdown/spellcheck errors and then we can merge this as a the way forward.


Update SystemRootPath value for downloadable plugin and store it in p…

…ersistent
area to set the LD_LIBRARY_PATH dynamically.

Changes look good


Cant run the Example because of a Assertion Error

Hey guys sorry to bother you, but I wanted to use this API as Part of my Master Thesis. I installed everything with Conda but can't even run the example code, because of that error:

I can't find a Solution, hope you can help, thanks !

I have the same issue. Is there a specific version of gym that we're supposed to use?

I don't know. With the conda install, all version conflicts should be solved, or am I mistaken? I didn't find a solution online, and I tried every OS; everywhere the same error. I am using Malmo now, but it is a lot slower than Marlo. :/ If you find a solution to the problem, please post it here.

Found the fix. Install gym=0.19. You might run into some issues after that, lmk if you do.

Yeah that fix worked THANKS ! I run in that Problem with the Multiagent Example.

do you have the same Issue ?
I can now run the Single Agent Example without Problems !

Ok Solved the Issue with the help of issue #76.


Not working with apolo gateway > 0.20.0

Hi,
I was wondering if you could provide a tip, to make this project work with the latest version of federation.
I traced the error, to the following:
  "devDependencies": {
    "@apollo/federation": "0.20.7",
    "@apollo/gateway": "0.20.0",
...
}

The version above is the latest combination I could get working.
if you update  to "@apollo/gateway": "0.20.1", or any version above, the unit tests fail.
any idea?
Thank you

Sorry about the problem, also - thanks for the debugging :)
I will take a look in the morning.

Interestingly enough, Apollo published a "tiny" "patch" release https://github.com/apollographql/federation/compare/@apollo/gateway@0.20.0<EMAIL_ADDRESS>that contained work of 15 contributors, 505 changed files with 115,022 additions and 2,003 deletions.
It incidentally also changed a lot of publicly exposed API.
I was able to massage the code in this package into the new API (using try/catch so it worked for both older and newer versions...), but then hit a wall with some cryptic wasm errors (apparently apollo started using that, and it's probably smart, but I have no idea how to debug an error that looks like this):

I published an alpha version that should work, it explicitly relies on the gateway 0.20.0. My only worry is (and the reason why I did not just fixed version of apollo dependencies from the beginning) possible mismatch of different graphql versions. I preferred to have all the apollo/graphql stuff being peerDependency, but with such an interesting backward-compatibility behavior from Apollo that's probably not the way to go anymore :)
If you'd be so kind to try this version<EMAIL_ADDRESS>and let me know if it worked, I'd appreciate that!

Thank you so much for the prompt fix, it works for my "simple" use cases.
Will report any issue I can find. I didn't get to that deepness of debugging, but definitely interesting -
from what I can see happening in the apollo repo - the gateway will soon be in rust.
If I may - I would add the following to the readme.
The challenge

Testing federated GraphQL models is challenging:

    By definition, federated schemas are composed from remote graphql instances
    Setting up and shutting down all these instances as part of a CI/CD pipeline can proove complex and unreliable.
    Furthermore, data must be easy to mock in order to bring consistent testing

What does this project bring

    The ability to start the gateway and its sub-domains as part of a single process
    The ability to easily mock graphql responses


Upgrad axios to latest version

Hi,
the version of axios that you are using has a vulnerability which is coming up in our project. Could you please release a new version with the dependency updated?
Best regards,
Christian

Hi Christian,
The new version with fixed vulnerability has been released.
Best regards,
Yusmen

PR #35 should fix this

Hello Christian,
New release with version bump of axios to 0.26.0 is released.
Best regards,
Ivan


Flyway import of Postgres native data dump issue

Hi,
I've been playing around with Flyway for database migrations and came across an interesting error with processing a native Postgres data dump.
Flyway command line versions (linux)
3.2.1
4.0.3
5.0.2
[edit]  Issue occurs on Flyway Migrate step of a .sql file containing native Postgres data dump
I have a ~3 MB data-only dump file, the contents of which I can't disclose at the moment.  About 5,000 lines in, there's a copy from stdin statement for ~430 records that includes some HTML + JSTL markup language within.  Immediately following this statement, Flyway appears to skip reading ~8500 lines and continue processing the file.
Surprisingly, since the sections where Flyway stops and restarts reading the file end on valid statements, no errors get thrown!  The issue was initially caught by developers when they found expected data was missing from a handful of tables.  The behavior of Flyway was finally caught by logging all SQL statements on Postgres side.
pseudo sql
-- Table 1
disable triggers on table1
copy table1 from stdin;
enable triggers on table1
-- Table 2
disable triggers on table2
copy table2 from stdin;
enable triggers on table2
-- Repeat
Actual Processing mid file
disable triggers on table1
copy table1 from stdin;
(note enable trigger on table1 doesn't get run)
(skip 8500 lines)
disable triggers on tableXXX
copy tableXXX from stdin;
Notes on bad behavior
Everything else in the file appears to be processed normally.  Since no errors were thrown from Flyway, it has been difficult to ascertain what the precise issue is.  Suspect it has something to do with Flyway parsing statements and getting hung up on some of the additional markup language which may contain reserved sql words and symbols ( semicolon would be a good candidate )
Expected behavior
Reading and executing all statements in file just as if it was imported via Postgres command line.  The Postgres native import of the same works and was used to ensure the SQL statements within the file were valid.

Please provide the smallest possible SQL migration file that we can run to reproduce the issue.

Haven't found exactly what it is to produce a minimal file.  Also have yet to receive verification on what contents I can share (potentially proprietary info).
Is there a place we could drop off the contents that would not be public?

Can't you just cut back the statements and the data to the bare minimum that is causing the error and anonymize the data to ensure no proprietary info is leaked?
Private support channels are available to Flyway Pro and Enterprise customers if you prefer to go down that option.

Got approvals from both my company and 3rd party vendor.
 Please cut it back to the smallest subset that reproducibly demonstrates the error.

We suspect it had something to do with some of the HTML – JSTL markup in or around a copy from stdin for a “blc_sc_fld” table.  The really odd part is how it would skip from the enable triggers + copy from stdin on “blc_sc_fld” table all the way down to a enable triggers for “blc_sndbx_property” table and just continue (skips several thousand lines).
We don’t know precisely what is causing this behavior.  If we isolate the copy from stdin’s to individual files, everything goes smoothly.  It’s when they are together in one file that causes the issue.
Thanks,
Barry Rodgers
Information Systems
O'Reilly Auto Parts
(417) 862-2674 Ext. 6175
From: Axel Fontaine<EMAIL_ADDRESS>Sent: Monday, February 26, 2018 8:47 AM
To: flyway/flyway<EMAIL_ADDRESS>Cc: Barry Rodgers<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [flyway/flyway] Flyway import of Postgres native data dump issue (#1876)
The SQL file you provided is 36734 lines. Please cut it back to the smallest subset that reproducibly demonstrates the error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://imsva91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3A%2F%2Fgithub.com%2Fflyway%2Fflyway%2Fissues%2F1876%23issuecomment-368526243&umid=6EEE0E2D-661E-F105-BCA2-5A66C8836A7B&auth=25994e11723456f59f881b7e4162635112e7401d-481a6b471c0a0f87895f0b23cedcc0d243403061, or mute the threadhttps://imsva91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAhHQOeH29JpHiLrEgPE6_3Gpqd5Xu9n9ks5tYsPogaJpZM4RI4ER&umid=6EEE0E2D-661E-F105-BCA2-5A66C8836A7B&auth=25994e11723456f59f881b7e4162635112e7401d-26270abc9d5626bd9680df3a38bae7e0828f8a67.
Stop, Look, and Think. This email is from an external source.
The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, business-confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

It turned out to be the ' characters that were tripping up the parser.


Retrieving JsonObject instead of Object

Hi Zakjan hope you're doing well. I want to know why you are retrieving objects instead of, for example, JsonObject from Gson library!
Regards

Hi, using objects from other libraries would add potentially unwanted dependencies. By returning Object the dependencies are just Jackson and ANTLR runtime. Hope this helps.


Browser is blur :-(

Hello, I love this extension and very useful but the browser preview is blur
Can I able to fix this issue?

Potential dup of https://github.com/auchenberg/vscode-browser-preview/issues/92


CASM-3758, CASM-3710: (IUF) Add images needed by IUF to CSM

The following images need to be present in Nexus for IUF to be functional.
Summary and Scope
This commit adds two new container images to the CSM manifest.
Issues and Related PRs

Resolves CASM-3710 and CASM-3758

Testing
Test description:
Tested by building CSM.
Risks and Mitigations
This should be relatively low risk as it is adding new images but not changing versions of any existing images.
Pull Request Checklist

[X] Version number(s) incremented, if applicable
[X] Copyrights updated
[X] License file intact
[X] Target branch correct
[X] CHANGELOG.md updated
[X] Testing is appropriate and complete, if applicable
[X] HPC Product Announcement prepared, if applicable

The build failure seems to be unrelated to this change:
Error parsing manifest for image: loading manifest for target platform: reading manifest sha256:83a3783e6f9eae6641045264c49bff001698c6a030cd866070f382dd932dcac0 in artifactory.algol60.net/csm-docker/stable/docker.io/alpine/git: manifest unknown: The named manifest is not known to the registry."

Happy to wait to merge this until the build issue is figured out.


Properly handle all navigation (record/page) inside modal flows

Some record/page navigation in modals doesn't open the new view in the modal itself:

Record viewers
Calendar block click on event
Geometry block click on even
Others to be found

We need to keep the modal flow inside the modal itself

Fixed

Calender
Geometry
Chart -> open record -> add new -> create page doesn't show, only on page resize
Organizer

@katrinDY there was no code changes

Found this:


Fix a few internals tests

The internals tests for chacha, poly1305 and siphash were erroneously
made conditional on if mdc2 was enabled.  Corrected to depend on the
correct algorithms being enabled instead.

Checklist

[x] tests are added or updated

Merged.  e41e5d1e73c878261560e4b122cf309a0ecb42b8


tests: Some errors in standard library doesn't implement xerrors.Wrapper

strconv.NumError as an exmaple: we need to write following code for unittest:
e := &strconv.NumError{}
ok := errors.As(err, &e)
if ok {
	assert.True(t, errors.Is(e.Err, tt.err))
} else {
	assert.True(t, errors.Is(err, tt.err))
}

After go 1.14 released, we can change them into:
assert.True(t, errors.Is(err, tt.err))

go 1.14 has been released, due to #113 , we will fix this after go 1.15

Fixed in #445


return HTTPResponse in upstream mode

Steps to reproduce the problem:

init upstream mode

config = proxy.ProxyConfig(
        cadir=os.path.expanduser('./'),
        port=9077,
        mode='upstream',
        upstream_server=("http", ("<IP_ADDRESS>", 9977))
    )
    server = proxy.ProxyServer(config)

return HTTPResponse in request

def request(context, flow):
     resp = HTTPResponse(
                "HTTP/1.1", 200, "OK",
                Headers(Content_Type="text/html"),
                "helloworld")
            msg.reply(resp)

use curl to get response

curl "http://www.google.com" -x "http://<IP_ADDRESS>:9077" -k
helloworld

curl "https://www.google.com" -x "http://<IP_ADDRESS>:9077" -k
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

What is the expected behavior?
return helloworld
What went wrong?
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Any other comments?

Mitmproxy Version:
Operating System:

I think you have an  error in your inline script. In upstream mode, you can also see CONNECT requests in the proxy. CONNECT requests must not be answered with a response body, so you still have the response on the wire when curl tries to establish TLS.
from mitmproxy.models import HTTPResponse, Headers

def request(context, flow):
	if flow.request.method != "CONNECT":
		resp = HTTPResponse(
		"HTTP/1.1", 200, "OK",
		Headers(Content_Type="text/html"),
		"helloworld"
		)
		flow.reply(resp)


As a Developer, I want to improve variable naming in script.js file for better readability[Issue-8]

Refactored core logic JS file by changing variable names to meaningful names.
Efforts have been made to an extent where functionality-related refactoring is excluded.
Changed variables include variables like colors, cars, myFunction(), etc.
Some indentation changes are visible as js file was formatted using Prettier, following standard JS formatting rules.

Its Fixed in the latest commit

Thanks @AbhiBajpaishek


Renaming cluster role and role binding per convention

for consistency

@0xbliang  - should also change file names yeah?

@0xbliang - should also change file names yeah?

The file arcdata-deployer.yaml is named after sa-arcdata-deployer, which follows the naming convention thus wasn’t changed.


Prompt user to save unsaved changes

If a user adds content to a table then quits- the user should be prompted to save unsaved changes to a file.

In the above image, changes to the table are not saved to file after editing.

mdtt provides the -i option for modifying files, which enables "in-place" editing similar to sed. Indeed, typical editors often alert users to unsaved changes if they attempt to quit without saving. However, if mdtt were to offer such a feature without requiring any specific option, it might inadvertently lead users to expect that in-place file editing is possible by default.
Since mdtt is primarily designed to seamlessly integrate with stdout and stdin, focusing on printing rather than editing files, I've decided not to include prompts about discarding unsaved changes. However, I might consider adding this feature if it seems useful or if there's some interest. 😊


use prepare script for husky install

Description
I think the prepare script is husky's recommended usage and it makes installing this package via github (pointing at a branch or commit) actually possible (because the postinstall hook always fails without husky installed in the repo I'm trying to test changes in).
Checklist

[x] My changes follow the contributing guidelines of this project.
[x] I have performed a self-review of my code.

Coverage remained the same at 95.132% when pulling a86b5128bc8a0fc9a3eea4c4e1a529ceb0c73560 on JaKXz:jakxz/package-prepare into b5d0d564016b396b3d56f8bf2efe0f1ce28f214a on graphql-markdown:main.


Fix http-zipkin-transporter npm package constant.js bug

This is fixed as of the most recent version v1.0.7 https://github.com/rudouglas/zipkin-transport-newrelic


Update CLI release workflow

We don't do releases/ branch
On the other hand we do stable/2.2.x branch
Also uses more explicit tag and branch names. I think it's better in release flow, so that you don't accidentally push anything extra.
Other minor changes

Thing I'm not sure about is how do we maintain stable/2.x branch:

Should we do git push +stable/2.2.x:stable/2.x (i.e. force push to replace branch)?
Or should we do the merge?
Or should we do git merge -s ours to avoid conflicts but maintain history and pull'ability of the branch?

Thing I'm not sure about is how do we maintain stable/2.x branch:

We cherry-pick commits normally.

Thing I'm not sure about is how do we maintain stable/2.x branch:

We cherry-pick commits normally.

We cherry-pick to 2.1.x and 2.2.x. But 2.x should point to one of those branches. We never do the release from that branch so it makes no sense for it to diverge from 2.2.x (or whatever current minor version is for that major one).


UI redesign: stream members panel

This is a big task, which could be decomposed to multiple issues.
This is also related to https://github.com/zulip/zulip/issues/21285 and might want to wait for https://github.com/zulip/zulip/issues/21798, since it uses the same icon (search).
As a part of redesign we want to update styles for the right panel. Here are overall images for the reference:

Materials
Figma frame with all the states:

Icon files:
caret-down - custom icon
caret-right - custom icon
more-vertical - custom icon
search-small small version of the Search icon in the 16x16 frame

Search icon - https://ionic.io/ionicons search filled icon
Clear(remove) icon - https://feathericons.com/?query=close, stroke width 1.5 (outlined)

We've been asked to use the current way of Zulip icon supply (converts them to a custom font) if it possible to achieve the precise result from the design
Details
List items
All list items are using the same font as the current Zulip font Source Sans 3
Background is transparent in normal state and border-radius: 4px;
hover in light theme background: #FFFFFF; dark theme background: rgba(255, 255, 255, 0.1);
Icons
Icon usually are size of 16px and placed in the center of the container they are in. Container is usually their hover area.

Usually Icon has 50% transparency in the normal state and 100% in hover state, while the color is the same. But in the implementation you can just set hsla() color. Like this:
normal color: hsla(216, 43%, 20%, 1)
hover color: hsla(216, 43%, 20%, 0.5);
user status icons are just rectangles 8x8 with rounded corners of 4px radius. Offline user has inbound stroke, you can implement that with box-shadow: inset 0px 0px 0px 1px hsla(0, 0%, 40%, 1). Keep in mind that colors for status icons are different in dark and light theme.
Counters
Numbers in counters has font-variant: small-caps;
Counter in cubgroup counting number of memebers and subgroup doesn't have more icon, while a user list item might have more icon and a counter of unread messages from such user:

Colors and opacity
There might be confusion about the opacity of borders, backgrounds and actual colors. Sometimes it might be useful to squash opacity in a color, but lets make it visible in code by using hsla() and sometimes you do want to have opacity css property. In the design if a special state is shown some properties of that are probably different.
For example when a search field inside the list is focused the whole container of users should be highlighted with background: hsla(0, 0%, 100%, 0.7) for the light theme and background: hsla(0, 0%, 100%, 0.05)  for the dark theme (like active Stream will be), and don't forget about 4px border radius.

The color scheme changes could be worked on at this point.
Other parts should wait:

The alignment parts of this issue are currently blocked on https://github.com/zulip/zulip/issues/21285 / https://github.com/zulip/zulip/pull/20072, but
As mentioned in the issue description, let's to hold off on search bar changes until https://github.com/zulip/zulip/issues/21798.

The hover is the same on all items (same as in streams topic):
List items
There are number of left side bar items but they behave similar:

border-radius: 4px;
In the light theme, hover background is white; in the dark theme hover background is hsla(0, 0%, 100%, 0.1):

when selected font-weight: 700;:

The keyboard focus - default browser keyboard focus ring

Great, thanks!

@terpimost Does this issue need to be updated to match your current ideas for the left sidebar?

Yes, I wouldn't touch this issue until the left side bar prototype is finished and agreed on with Tim/You/People in chat

Hi Alya, I would like to take up this project. Where can I get the Figma style guide?

@hdtouch101 I'm workin on the prototype of this issue. As soon as it's done Alya would coordinate a right person for this.

Closing this issue, as much of the redesign has been completed, and the rest is being tracked in newer issues (and we can file additional small issues if needed).


bugfix/revised-parent-id-datatype

PR Overview
This PR will address the following Issue/Feature: Issue #121
This PR will result in the following new package version: v0.16.0

The changing datatype of the revised_parent_issue_id field from int to string will result in a breaking change. There is no impact on incremental models, so no full refresh is required. But we should categorize this as a breaking change.
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

🚨 Breaking Changes: Bug Fixes 🚨

The following fields in the below mentioned models have been converted to a string datatype (previously integer) to ensure classic Jira projects may link issues to epics. If you are referencing these fields downstream, be sure to make any changes to account for the new datatype.

revised_parent_issue_id field within the int_jira__issue_type_parents model
parent_issue_id field within the jira__issue_enhanced model

Under the Hood

Included auto-releaser GitHub Actions workflow to automate future releases.
Updated the maintainer PR template to resemble the most up to date format.
Updated field and issue_field_history seed files to ensure we have an updated test case to capture the epic-link scenario for classic Jira environments.

PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:

[X] dbt run –full-refresh && dbt test
[X] dbt run (if incremental models are present) && dbt test

Before marking this PR as "ready for review" the following have been applied:

[X] The appropriate issue has been linked, tagged, and properly assigned
[X] All necessary documentation and version upgrades have been applied
[X] docs were regenerated (unless this PR does not include any code or yml updates)
[ ] BuildKite integration tests are passing
[X] Detailed validation steps have been provided below

Detailed Validation
Please share any and all of your validation steps:

Please see the corresponding Height ticket for a link to the Hex validation doc.
If you had to summarize this PR in an emoji, which would it be?

🧶

My remaining question is that in other packages, we preferred to cast in the source package rather than in the downstream joins, so we only had to cast once. Do we not do this in this case because the intermediate models get a bit complicated and this was more straightforward or another reason?

Great question @fivetran-catfritz! You are correct that I would prefer we typically cast the fields as string in the staging models. However, I did not take the approach here as it was a more straightforward approach and when exploring casting the upstream fields as strings I found that this PR would have quite a larger fingerprint and cause significantly more breaking changes (with little to no value). Because of this I decided taking the direct approach was the more efficient way to go about addressing this issue for both us and the end user. In this case the end user only has to be concerned about the revised_parent_issue_id being changed to a string datatype. If we were to cast the fields (particularly the issue_id field) upstream it would involve more models and fields that would be breaking.
Let me know if you have any other questions!


[WIP] Supporting OSD Topology Spread Constraints

Description
This PR is about supporting Topology Spread Constraints that will allow OSDs to evenly distribute across the required topology domain.
Signed-off-by: Kesavan Vellalore Thiruvenkadasamy<EMAIL_ADDRESS>

Something else to consider: naturally this should stay as WIP until we start working on OCS 4.7. However, OCS 4.7 still needs to run on OCP 4.6, which will not have the fix that we need to make TSCs viable. Can we somehow perform a check to see if the required setting is correctly configured?

Something else to consider: OCS 4.6 still needs to run on OCP 4.5, which will not have the fix that we need to make TSCs viable. Can we somehow perform a check to see if the required setting is correctly configured?

Don't just make a hard split between the code paths like that, they need mix more. In particular, you're ignoring the PreparePlacement entirely in the "old" code path.

Now the PreparePlacement has been integrated into the "old" code path and the fallback to main OSD placement is handled in OCS code base as well.

/ok-to-test

/test ocs-operator-ci

/test ocs-operator-ci

Looks like there's a valid CI failure. :(

Looks like there's a valid CI failure. :(

Recent commit to master had changes in storagecluster_controller_test.go which lead to import conflicts with my changes and that has been fixed now. Thanks for the extended support :)

/lgtm


Automatic Heroku deploys not working for users follow up actions

What
Actions from our recent Heroku incident review.
https://docs.google.com/document/d/1Nsm4DVnJAMXEl1l0JucCKeHFZyb2JQfeHkceq3okB0U/edit#
Why
These are actions to be taken to: fix the underlying root cause; for preventative measures; and for any other improvements.
Who needs to work on this
Team members who are assign to the actions.
Who needs to review this
DM/PM + team
Done when

[ ] Clarifying how support is divided up between Design System team and Prototype Kit team during an incident ([Laurence de Bruxelles] - 08/11/22 no longer relevant
[ ] Discuss ways for Design System team members to message Prototype Kit team members ([Izabela Podralska] -08/11/22  no longer relevant
[x] Add an epic to investigate other hosting methods to the project backlog ([Joe Lanman] - 08/11/22 done
[ ] Create a ticket to investigate how users are currently deploying their prototypes ([Joe Lanman] - 08/11/22 no longer relevant

Description updated with notes on 08/11/22. Done when actions mostly superseded by other work items.


JSS not being updated

Using JSSImporter 0.5.1 with AutoPkgr 1.4.2 and AutoPkg 1.0.2
This used to work, but now no longer does.
I get:
Error in com.github.jss-recipes.jss.MicrosoftWord: Processor: JSSImporter: Error: _str_ returned non-string (type Error)
Running JSS 9.99.0-t1494340586
Any ideas how to fix this?
Thanks, James.

Hi James,
Based on that information, I don't know what's going on.
I would try it putting your entire output from running autopkg run -vvvv MicrosoftWord.jss here and even better into the AutoPkg or JamfNation channels on the Macadmins slack.


Loading new images freezes game

What is your question?
I'm making an expurgation cover with my vocals, and I've re-coded the entire thing in this engine, only problem is that when the first stop sign appears, it freezes the game for a sec. It's pretty annoying to have to restart the song every time so that it doesn't freeze, and sometimes when it does freeze the popup text will bug and won't go away.
https://user-images.githubusercontent.com/73810550/145472015-34044513-431e-4773-bb20-a565c6bd6616.mp4
Here's a video of the freeze and the text glitching.
The sprites are currently in shared, would moving the images to preload help at all? If so how would I make the game search in preload for them instead of shared?

If you are using FlxSprite instead of the given BGSprite function when making a stage you should be able to specify the library where the asset is in, for example:
var e:FlxSprite = new FlxSprite(x, y);
e.frames = Paths.getSparrowAtlas('folder', 'library');
and in library you can use the folder that the asset is in, and you can put preload
and if you are using BGSprite I guess you can use the same method like
var a:BGSprite = new BGSprite(Paths.getSparrowAtlas('folder', 'library'));
I hope this helps

If you are using FlxSprite instead of the given BGSprite function when making a stage you should be able to specify the library where the asset is in, for example: var e:FlxSprite = new FlxSprite(x, y); e.frames = Paths.getSparrowAtlas('folder', 'library'); and in library you can use the folder that the asset is in, and you can put preload and if you are using BGSprite I guess you can use the same method like var a:BGSprite = new BGSprite(Paths.getSparrowAtlas('folder', 'library')); I hope this helps

The code works, however it's still freezing unfortunately.
Thanks for the help

You have to spawn the sign beforehand, if you want to hide the sprite set its alpha to 0.000001 instead of making it invisible, making it invisible will prevent it from loading earlier.


Bump hashicorp vault to 1.4.0.

Replaces #296.
Signed-off-by: Dan Lorenc<EMAIL_ADDRESS>
Summary

Ticket Link

Fixes
Release Note

Thanks, updated!


Using a SD2PSX Memory Card for PS1 Exploits: FreePSXBoot + Unirom for 7002

Using an SD2PSX memory card for PS1 exploits: FreePSXBoot + Unirom I did it for 7002 and it doesn't work, any ideas? I did everything that is in the video.
When I go into the menu and select Memorycard I don't get the green loading bar it just stays frozen in memory card menu

I looked up that device.  The webpage explicitly says "Launch FreePSXBoot with Unirom or Tonyhax" so it should work.  It sounds like you have some troubleshooting to do.
Regarding this project, did you check that you downloaded the right file (not just for your system model but the right memory card slot)?
Did you try creating virtual PS1 memory cards and confirm the device can be used to load and save game progress?
Do said saves show up in the system's memory card browser?  Can you delete and copy to another card as if using original hardware?
Can you load burnt discs using a swap trick?  The UniROM boot disc can also be used to install the exploit.
Also, saying "I did everything that is in the video" doesn't really help.  What video?
Note, I'm not a dev, just someone who likes this project and found the info (mostly) intuitive.


Re-add seccomp profile to operator deployment

What type of PR is this?
/kind bug
What this PR does / why we need it:
We now re-use the same seccomp profile for the deployments which we were
using for the operator DaemonSet.
Which issue(s) this PR fixes:

Fixes https://github.com/kubernetes-sigs/security-profiles-operator/issues/201
Special notes for your reviewer:
Does this PR introduce a user-facing change?

None

/test pull-security-profiles-operator-test-e2e

/test pull-security-profiles-operator-test-e2e

/lgtm

/lgtm

/test pull-security-profiles-operator-test-e2e

/test pull-security-profiles-operator-test-e2e

/lgtm

@JAORMX @hasheddan may I get another LGTM for this one?

/lgtm

@JAORMX @hasheddan may I get another LGTM for this one?