remove 5.2 node and change master node build to smoketest

Part 2 of restructuring the aarch64 server resources.
This server has been upgraded from the AWS a1 arm to the new m6g. Build times have been reduced from nearly 3 hours to about 50 mins and should be suitable for PR testing.

Removing Node: https://ci-external.swift.org/computer/ubuntu-18.04-aarch64-02/
Removing Job: https://ci-external.swift.org/job/oss-swift-5.2-RA-linux-ubuntu-18.04-aarch64/
Updating Job: https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-18.04-aarch64/ check build #945 or newer

Thanks.


perf: Directly include subtemplate using section kind instead of condition

https://github.com/mkdocstrings/python/pull/56#issuecomment-1474717870
I was thinking about getting rid of the condition on sections kind, and include the subtemplate directly since their names are equal to the section kinds. But maybe the include instruction costs more, so, would have to actually do some profiling.
{% if docstring_sections %}
  {{ log.debug("Rendering docstring") }}
  {% for section in docstring_sections %}
    {% if config.show_docstring_description and section.kind.value == "text" %}
      {{ section.value|convert_markdown(heading_level, html_id) }}
    {% else %}
      {% include "docstring/" ~ section.kind.value ~ ".html" with context %}
    {% endif %}
  {% endfor %}
{% endif %}

Each subtemplate would then check its config option config.show_docstring_attributes etc.

We'll revisit performance improvements later.


Add Golang client getting started

Upgraded Golang getting started guide.
Structure components (all depends on type of driver):

[x] Quick guide (simple config steps, very vague code steps)
[x] Connection (default, auth)
[x] Query the database  ( read, write, more detailed  code steps)
[x] Process the results (Node, Path, Relationship)
[x] Transaction Management (Automatic, manual, explicit, implicit)
[ ] Concurrent execution

@vpavicic I have updated this based on all the comments.

I think this is good to go now! :D


TakeSeek + until_eof with enum pre asserts

Example:
use binrw::{io::TakeSeekExt, until_eof, BinRead};

fn main() {    let data = std::fs::read("/home/minus/test.bin").unwrap();
    let mut cursor = std::io::Cursor::new(&data);
    let data = Data::read(&mut cursor).unwrap();
    println!("Data: {:?}", data);
}

#[derive(Debug, BinRead)]
#[br(little)]
struct Data {
    v: u8,
    garbage: u8,
    #[br(map_stream = |s| s.take_seek(16), parse_with = |r, e, _:()| until_eof(r, e, (v,)))]
    data: Vec<Thing>,
}

#[derive(Debug, BinRead)]
#[br(little, import(v: u8))]
enum Thing {
    #[br(pre_assert(v == 0x00))]
    Thing0(Thing0),
    #[br(pre_assert(v == 0x01))]
    Thing1(Thing1),
}

#[derive(Debug, BinRead)]
#[br(little)]
struct Thing0 {
    #[br(dbg)]
    val0: u16,
}

#[derive(Debug, BinRead)]
#[br(little)]
pub struct Thing1 {
    #[br(dbg)]
    val1: u16,
}

And I just made a 16byte file to test it with.
(Side question: is there a better way to pass args to the inner part with until eof?)
This results in a panic.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
 ╺━━━━━━━━━━━━━━━━━━━━┅ Backtrace ┅━━━━━━━━━━━━━━━━━━━━╸

 0: Error: no variants matched at 0x10...
   ╭───────────────────────┄ Thing0 ┄────────────────────┄
   ┆
   ┆ 0: Error: failed to fill whole buffer
   ┆           While parsing field 'val0' in Thing0
   ┆     at lsf/src/main.rs:37
   ┆ 1: While parsing field 'self_0' in Thing::Thing0
   ┆     at lsf/src/main.rs:24
   ┆
   ╰─────────────────────────────────────────────────────┄
   ╭───────────────────────┄ Thing1 ┄────────────────────┄
   ┆
   ┆assertion failed: `v == 0x01` at 0x10
   ╰─────────────────────────────────────────────────────┄
    ...While parsing field 'data' in Data
     at lsf/src/main.rs:21

 ╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸

I think the issue is that is_eof looks into EnumErrors but doesn't test if the first is a pre-assert and the second a backtrace with an eof? I don't know if there's a more general proper way.
I reimplemented is_eof locally with the manual check for EnumAssert with [Assert, Backtrace that has an eof error]

Thanks for your report!
I am not sure of the best path forward here since it seems to be an ambiguous failure condition.
In your test case, it seems like EOF condition should be considered for any variant instead of all variants, but then this would be more likely to mask parser bugs in other cases. For example, it could be the case that Thing1 fails due to an error in the middle of parsing, then Thing0 does not have any magic or precondition because it is some fallback, tries to parse, and fails with EOF because it is the wrong variant entirely. In this case you would want the error of Thing1 to be reported but instead it would be silently treated as a successful EOF.
So it seems like there are a few different potential conditions someone might want for a successful EOF and to resolve this it might be necessary to expose a control for the author to decide what they want:

All variants must EOF at the first byte
All variants must EOF (current behaviour)
All variants must either EOF or pre-assertion failure
Any variant can EOF
Something else?

The third option I think would require adding new error variant to discriminate between a pre-assert variant failure and an assertion failure somewhere else (which is fine).


Updating README to match new folder structure

Added a table of contents.
Reorganized the readme so its easier to navigate.
Update the readme with appropriate links.

Hi @NeerajW, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Neeraj Wadhwa). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


p2p did not establish connection after MasterBazaar deployment.

@Shahrizada commented on Wed Mar 28 2018
Mac [master]
"Ready" state of envs became "connecting" while MasterBazaar was deploying and did not return.
debug:
Last login: Wed Mar 28 15:13:08 on ttys002
-bash: nexport: command not found
Shahris-Air:~ shahrizadakarasulu$ p2p debug
Version: 6.3.0-master Build: 6.2.20-165-gd48c26f
Uptime: 4 h 3 m 41 s
Number of gouroutines: 29
Bootstrap nodes information:
<IP_ADDRESS>:6881 Rx: 10652822 Tx: 1096895
Instances information:
Bootstrap nodes:
Hash: swarm-8492bcad-6d79-412e-b0cb-d81c18063166
ID: ad30b181-3267-11e8-8676-060555473160
UDP Port: 61099
Network interfaces: <IP_ADDRESS>
P2P Interface , HW Addr: 06:cc:01:ca:aa:a6, IP: <IP_ADDRESS>
Proxies: No proxies in use
Peers:
Bootstrap nodes:
Hash: swarm-92c0d732-7137-4550-a48e-1bb193dbd3ae
ID: ae4ce6d2-3267-11e8-87e5-060555473160
UDP Port: 59796
Network interfaces: <IP_ADDRESS>
P2P Interface , HW Addr: 06:1b:4f:1d:bc:12, IP: <IP_ADDRESS>
Proxies: No proxies in use
Peers:
Bootstrap nodes:
Hash: swarm-5c330b11-ae57-4da9-aa3b-436177037e9d
ID: ae805f91-3267-11e8-810f-060555473160
UDP Port: 50412
Network interfaces: <IP_ADDRESS>
P2P Interface , HW Addr: 06:16:38:9a:cc:fe, IP: <IP_ADDRESS>
Proxies: No proxies in use
Peers:
Bootstrap nodes:
Hash: swarm-4c0757ea-7322-4e4d-8b44-2f7ae3840df2
ID: b3fa6e28-3267-11e8-85fa-060555473160
UDP Port: 50228
Network interfaces: <IP_ADDRESS>
P2P Interface , HW Addr: 06:dd:48:aa:4b:88, IP: <IP_ADDRESS>
Proxies: No proxies in use
Peers:
Bootstrap nodes:
Hash: swarm-27b93369-fa9b-4332-93d9-1efd00328f76
ID: b53b1bb7-3267-11e8-82dc-060555473160
UDP Port: 65359
Network interfaces: <IP_ADDRESS>
P2P Interface , HW Addr: 06:11:5b:3d:cb:4a, IP: <IP_ADDRESS>
Proxies: No proxies in use
Peers:
Shahris-Air:~ shahrizadakarasulu$

@Shahrizada commented on Wed Mar 28 2018
I have 7 healthy envs. Mostly on cloud peers.
p2p debug after restarting client:
Last login: Wed Mar 28 15:13:36 on ttys003
-bash: nexport: command not found
Shahris-Air:~ shahrizadakarasulu$ p2p debug
Version: 6.3.0-master Build: 6.2.20-165-gd48c26f
Uptime: 0 h 2 m 23 s
Number of gouroutines: 56
Bootstrap nodes information:
<IP_ADDRESS>:6881 Rx: 243025 Tx: 41977
Instances information:
Bootstrap nodes:
Hash: swarm-5c330b11-ae57-4da9-aa3b-436177037e9d
ID: bc9c59d8-326b-11e8-892f-060555473160
UDP Port: 62550
Network interfaces: <IP_ADDRESS>
P2P Interface tap0, HW Addr: 06:86:06:ba:2a:73, IP: <IP_ADDRESS>
Proxies: <IP_ADDRESS>:40622/20033 <IP_ADDRESS>:40622/20029 <IP_ADDRESS>:40622/20032 <IP_ADDRESS>:40622/20033 <IP_ADDRESS>:40622/20037
Peers:
--- 9f1e35bf-3267-11e8-8a36-060555473160 ---
States: Waiting for connection | Unknown
No IP assigned
Endpoints pool: <IP_ADDRESS>:38362 <IP_ADDRESS>:38362 <IP_ADDRESS>:38362 <IP_ADDRESS>:38362 <IP_ADDRESS>:20006
--- End of 9f1e35bf-3267-11e8-8a36-060555473160 ---
Bootstrap nodes:
Hash: swarm-4c0757ea-7322-4e4d-8b44-2f7ae3840df2
ID: c6c59389-326b-11e8-8dbc-060555473160
UDP Port: 57513
Network interfaces: <IP_ADDRESS>
P2P Interface tap1, HW Addr: 06:ac:50:ed:cd:5b, IP: <IP_ADDRESS>
Proxies: <IP_ADDRESS>:40622/20040 <IP_ADDRESS>:40622/20036 <IP_ADDRESS>:40622/20032 <IP_ADDRESS>:40622/20034 <IP_ADDRESS>:40622/20036
Peers:
--- 0665b3f3-326c-11e8-8c6a-060555473160 ---
States: Initializing connection | Initializing connection
No IP assigned
Endpoints pool: <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:41789 <IP_ADDRESS>:20020 <IP_ADDRESS>:20017 <IP_ADDRESS>:20023 <IP_ADDRESS>:20022 <IP_ADDRESS>:20023
--- End of 0665b3f3-326c-11e8-8c6a-060555473160 ---
--- 9f0ef95c-3267-11e8-8132-060555473160 ---
States: Connected | Connected
Network: <IP_ADDRESS> 06:b0:43:8e:b7:e3
Endpoint: <IP_ADDRESS>:42006
All Endpoints: <IP_ADDRESS>:42006 <IP_ADDRESS>:20005
Endpoints pool: <IP_ADDRESS>:42006 <IP_ADDRESS>:42006 <IP_ADDRESS>:42006 <IP_ADDRESS>:42006 <IP_ADDRESS>:20005
--- End of 9f0ef95c-3267-11e8-8132-060555473160 ---
Shahris-Air:~ shahrizadakarasulu$

This is duplicate of https://github.com/subutai-io/control-center/issues/722


docs: release process

Closes #1689

#1817  👈
main

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

Join @Shoeboxam and the rest of your teammates on  Graphite


VUE_PROD_DEVTOOLS is not defined

Reproduction
after upgrade to version 2.0.19 this happens
Steps to reproduce the bug
after version 2.0.19 this error happens
Expected behavior
not error
Actual behavior
version: 2.0.19
Additional information
No response

今天更新我的项目也起不来了，目前是锁定 2.0.18


Tests: Remove -disable-availability-checking from many Concurrency tests

Instead, use the %target-swift-5.1-abi-triple substitution to compile the tests for deployment to the minimum OS versions required for use of _Concurrency APIs.

@swift-ci please test

@swift-ci please test

late lgtm


I --- 02:008366 --:------ 02:008366 22D0<PHONE_NUMBER>A < AssertionError(Support the development of ramses_rf by reporting this packet)

2023-06-25 16:20:20.387 ERROR (MainThread) [ramses_rf.protocol.message] I --- 02:008366 --:------ 02:008366 22D0<PHONE_NUMBER>A < AssertionError(Support the development of ramses_rf by reporting this packet)
seems to return every 15 minutes
configuration:
2x hce80
evotouch
4x honeywell round
2x relais to heatpump
no issue just helping development :-)
packet.log

Thanks - I will look at this packet log, and make changes to the parsers.

BTW, if I parse your packet log:

grep ' RP.* 01:.* 000C ' packet.log | python client.py parse

I get:
16:26:18.417 ||  01:198098 |  18:262143 | RP | zone_devices     | 000F || {'zone_type': '0F', 'domain_id': 'FC', 'device_role': 'appliance_control', 'devices': []}

16:26:21.583 ||  01:198098 |  18:262143 | RP | zone_devices     | 000E || {'zone_type': '0E', 'domain_id': 'FA', 'device_role': 'hotwater_valve', 'devices': []}
16:26:21.783 ||  01:198098 |  18:262143 | RP | zone_devices     | 010E || {'zone_type': '0E', 'domain_id': 'F9', 'device_role': 'heating_valve', 'devices': []}
16:26:22.185 ||  01:198098 |  18:262143 | RP | zone_devices     | 000D || {'zone_type': '0D', 'domain_id': 'FA', 'device_role': 'dhw_sensor', 'devices': []}

16:27:26.251 ||  01:198098 |  18:262143 | RP | zone_devices     | 0004 || {'zone_type': '04', 'zone_idx': '00', 'device_role': 'zone_sensor', 'devices': []}
16:27:24.393 ||  01:198098 |  18:262143 | RP | zone_devices     | 0104 || {'zone_type': '04', 'zone_idx': '01', 'device_role': 'zone_sensor', 'devices': ['34:229417']}
16:26:23.592 ||  01:198098 |  18:262143 | RP | zone_devices     | 0204 || {'zone_type': '04', 'zone_idx': '02', 'device_role': 'zone_sensor', 'devices': ['34:229409']}
16:26:22.789 ||  01:198098 |  18:262143 | RP | zone_devices     | 0304 || {'zone_type': '04', 'zone_idx': '03', 'device_role': 'zone_sensor', 'devices': ['34:229557']}
16:26:24.478 ||  01:198098 |  18:262143 | RP | zone_devices     | 0404 || {'zone_type': '04', 'zone_idx': '04', 'device_role': 'zone_sensor', 'devices': ['34:229561']}

Please implement a known_list - see the wiki for why/how.
The above is consistent with the relays being attached to the master UFH controller (is slightly unusual, but appears to be the case here), but if they are not: then your system is misconfigured?
Also: do you have an OTB for controlling your heatsource?
Don't worry about the missing sensor for zone 0 - it will be the Evo controller, and that's what happens in that case.
Finally, do you have any HVAC kit? Do you have an RFG100?

FYI:
If you have "enforce_known_list": true, then you won't need the block_list.

In addition, the packet you've reported as not parsing, now parses as so:
2023-06-25T16:20:20.387000 ||  02:008366 |            |  I | message_22d0     |  00  || {'zone_idx': '00', 'idx': '00', '_flags': [0, 0, 0, 1, 0, 0, 0, 0], 'cool_mode': False, 'heat_mode': False, 'is_active': True, '_unknown': '000A'}

... and we're done!
(other than you implementing a known_list and working out what happened to your relays.


(app): Add load_state_dict and state_dict

What does this PR do?

This PR introduces an API to reload dynamic component trees.
The current strategy is the following. We collect all the states. On reload, if a component state doesn't have its component, we give the responsibility to its closest parent to resolve it and then the cascade of instantiation is done.
class FlowReload(LightningFlow):

    def run(self):
        if not getattr(self, "w", None):
            self.w = WorkReload()
        self.w.run()

    def on_load_state_dict(self, children_states, extras) -> None:
        self.w = WorkReload()

Fixes #<issue_number>
Does your PR introduce any breaking changes? If yes, please list them.

Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes? (if necessary)
[x] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃
cc @borda

@tchaton, mind checking the remaining comments?


Rewrite entrypoint to Ruby

This PR attempts to rewrite the entrypoint to Ruby so we can get more hands-on and native with Jekyll trying to fix the weird URL issues. Is based on #20 as an experiment.
Resolves #20.
Resolves #21.

What magic is this?


Docker .env file not quite correct

So, I am setting up new instance.
Grabbing the compose file from here: https://get.openziti.io/dock/docker-compose.yml
Under the ziti-controller section it references the ZITI_EDGE_CONTROLLER_PORT port.  Using the env file that it is also pointed to here: https://get.openziti.io/dock/.env
does not have that environment variable defined in the file.  WOuld be good to get it defined with the port number that it needs as well.

I'm working on this for himeose on discourse. I expect I'll update it to make it work for that use case but I also expect we'll be consoladating all these environment variables soon too.


MAINT: changed needed after renaming master branch to main

This is for after @rgommers renames the master branch main.

Can you take this out of Draft @jarrodmillman? I'd like to be able to merge it right after the rename.
I'll do .gitmodules separately, please don't touch it in this PR. It requires a bit more gymnastics to not break things I think.

I'll do .gitmodules separately, please don't touch it in this PR. It requires a bit more gymnastics to not break things I think.

After some checking: I think this'll work without any issues, branch name is not included. Let me go try and see if CI or local updating breaks.

I think this'll work without any issues, branch name is not included. Let me go try and see if CI or local updating breaks.

Tried with the unuran repo - if there's no complaints then let's do all the other ones tomorrow.

CircleCI may have a hiccup: https://support.circleci.com/hc/en-us/articles/360040969693-VCS-Default-Branch-Isn-t-Reflected-on-CircleCI. This just happened on the scipy-sphinx-theme repo. The article claims it will resolve itself. If not, removing and re-adding the CircleCI webhook should fix it.

CircleCI is indeed annoying - it didn't unbreak itself. This is a bit of a pain with our auto-deployed html docs.

Okay, there we go :fingers-crossed:


VC Status (Old 188)

In gitlab by @A-Lawrence on Aug 31, 2015, 01:08
Log whether the CURRENT visiting controllers are visitors within Core (as part of the new VT system).

In gitlab by @A-Lawrence on Jun 19, 2016, 17:33
Removed ~98472 ~137454 ~98476 labels

In gitlab by @A-Lawrence on Aug 21, 2016, 16:34
Milestone removed

In gitlab by @A-Lawrence on Sep 1, 2016, 12:49
mentioned in commit 104440a7d8998e0ba2077db9c0b20d4cea9d7b2c

In gitlab by @A-Lawrence on Sep 2, 2016, 03:46
mentioned in commit 0cfa9d6c27628564489326746774db039ec4fbc7


Add random and randomBetween extensions to Date

It would be nice to have the following additions to DateExtensions

property random to return random date object.
function random(between startDate: Date, and endDate: Date) -> Date {} to return a random date between two dates.

@akuzminskyi sounds good to me :)
could you submit a pull request with the above method please


[iOS build warnings] Replace deprecated completion block

UIActivityViewConroller.completionHandler has been deprecated since iOS 8, when it was replaced by completionWithItemsHandler.
Tested the build using UIExplorer and XCode 8.2 but I've never seen and can't work out how to activate the UIActivityViewController this method relates to, so I haven't tested a real run.

This looks right.
@facebook-github-bot shipit


posenet.py with RTSP as input not display image

Hi! I want to show image as output with input from RTSP by this command (on jetson xavier NX):
posenet.py --network=Pose-ResNet18-Body <my RTSP link> display://0
Code run  normally but not show image

Hi @AnhDai1997, hmm - can you try modifying the posenet.py script so that it creates the videoOutput object before the poseNet object (similar to how detectnet.py does it)
After you modify posenet.py, remember to rerun cmake ../ and sudo make install from your build directory so that your updated script gets installed.


Relax Slots-based engines from Epochs

Just a trivial renaming of EpochData to AuxData in the SimpleSlotWorker to emphasize that Slot based engines are not necessarily based on (or requires) epochs (even though current  ones are).
The "true" purpose of this type is to represent some kind of additional data required by the consensus algorithm to perform its operations.

even though current ones are

We use SimpleSlotWorker at Subspace and don't have epochs, thanks for this :slightly_smiling_face:


List all charts using --all instead of --devel

We are using -foo.0 pre-release semver suffix for some of our stable charts. It's misleading to ask users to use --devel to get these listed since they are not development versions.
How about renaming it to/adding --all?
Output of helm version:
version.BuildInfo{Version:"v3.12.0", GitCommit:"c9f554d75773799f72ceef38c51210f1842a1dea", GitTreeState:"clean", GoVersion:"go1.20.3"}

I am afraid you got this the wrong way round... Honestly, I think the way you are using semver is misleading. As per the semver specification pre-release versions are considered unstable and thus should not be printed with with the --all flag and it is totally reasonable to to ask users to use the --devel flag to list them.

Honestly, I think the way you are using semver is misleading

I'm aware of it but as far as I can think of, it's the only way to solve my use-case (I need version precedence too so build metadata wont work). How is --all different from --devel?

We are using -foo.0 pre-release semver suffix for some of our stable charts. It's misleading to ask users to use --devel to get these listed since they are not development versions.

I agree with @HelenaSeidel, it is misleading to use pre-release semver suffix for non-pre-release ("stable") versions. I'm not seeing a general use-case for --all, since --devel already exists for standard, semver compliant usage.
I don't think Helm should change here, to support this non-standard use-case.

thanks for the feedback. it's not super critical for me either so I can live with it


Vite plugin not detecting changes for .css.ts files imported by other .css.ts files

Describe the bug
In my project, I have two files: theme.css.ts (which uses createGlobalThemeContract and createGlobalTheme) and global.css.ts (which uses globalStyles and imports theme.css.ts). The global.css.ts file is imported in my app.tsx. When I make any changes in global.css.ts, the changes are reflected in the front. However, if I change any value in createGlobalTheme in theme.css.ts, the changes don't reflect in the front until I restart the app.
Interestingly, if I import theme.css.ts directly in app.tsx, the changes are applied.
So I think the problem is that the Vite plugin, for some reason, doesn't catch file changes if they are imported by other .css.ts files.
Reproduction
https://stackblitz.com/edit/vitejs-vite-bwy3de
System Info
System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
    Memory: 4.89 GB / 15.84 GB
Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 4.2.2 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.1.3 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
    Edge: Chromium (126.0.2592.56)
    Internet Explorer: 11.0.19041.4355
npmPackages:
    @vanilla-extract/css: ^1.15.3 => 1.15.3
    @vanilla-extract/vite-plugin: ^4.0.11 => 4.0.11
    vite: ^5.2.0 => 5.3.1

Used Package Manager
yarn
Logs
I don't see any errors in the console

Validations

[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is a minimal reproducible example of the bug.

Seeing the same issue when I created a similar setup in my global styles for my Ladle stories

I've been looking into this, as someone completely new to this codebase, so take my findings with an enormous grain of salt.
Given the file structure that I'm working with in my project:
.ladle
_ theme
_ _ button.css.ts (imports from '../src' & exports static named object with properties that call style)
_ _ index.ts (exports all styles from button.css.ts and other siblings)
_ components.css.ts (imports from index.ts)
_ components.tsx (imports from components.css.ts & ../src)
src
_ components (loads of components, styles, stories, etc)
_ styles (global styles, etc)
Problem space (as described above):
Editing .ladle/theme/button.css.ts doesn't update styles
My findings (many things will be obvious for those who know more than me):

components.css.ts serves as the main file entry point for components.tsx style rendering
All dependencies of components.css.ts for correctly associated as watch files https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/integration/src/compiler.ts#L333
When a change to button.css.ts is saved, the compiler is told to process components.css.ts https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/vite-plugin/src/index.ts#L209
When each dep is iterated through, it is evaluated for cssObjs, cachedCss & cachedClassRegistrations, which a dep may have one or more of. In my case, button.css.ts has all 3
Despite cssObjs seeming to be a trigger for re-transformCss-ing of the dep, this doesn't appear to be carrying through to the rendered component https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/integration/src/compiler.ts#L350
It appears that css generation occurs as expected and reflects updates that were saved and triggered the initial cycle
index.ts doesn't come up as a dep of components.css.ts
If index.ts is skipped and components.css.ts imports button.css.ts directly there is no change in behavior
CSS imports created from deps are serialized https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/integration/src/processVanillaFile.ts#L335
CSS imports and exports for components.css.ts seem to be as expected, showing all dep imports (index.ts is excluded and all deps of index.ts are present). All exports appear to be populated with expected values.

I didn't end up finding the answer yet. I'll probably look into it further tomorrow

Possible solution (untested for possible undesirable side effects):
https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/vite-plugin/src/index.ts#L217
// We have to invalidate the virtual module, not the real one we just transformed
// REPLACE:
// invalidateModule(fileIdToVirtualId(absoluteId));

// WITH:
Array.from(watchFiles).forEach((file) => {
  if (file.endsWith('.css.ts')) {
    invalidateModule(fileIdToVirtualId(file));
  }
});

I think the one interesting thing about index.ts not being considered a dependency of components.css.ts is that if you change the exports in the barrel file, I suspect that those changes wouldn't be reflected


Queues using c

💥 Proposal
(A clear and concise description of what the proposal is.)
I would like to contribute few Queue programs.
Have you read the Contributing Guidelines on Pull Requests ?
(Write your answer here.)
Yes

@ankitapuri Could you pls assign this for me. Can I work on c,c++ and java. If not I will work on c

What programs please specify .


"Unexpected token" error when interpolating a template string that contains <script> tags

Before You File a Bug Report Please Confirm You Have Done The Following...

[X] I have tried restarting my IDE and the issue persists.
[X] I have updated to the latest version of the packages.

What version of ESLint are you using?
8.47.0
What version of eslint-plugin-svelte are you using?
2.32.4
What did you do?

Configuration
module.exports = {
	root: true,
	extends: [
		'eslint:recommended',
		'plugin:@typescript-eslint/recommended',
		'plugin:svelte/recommended',
		'prettier'
	],
	parser: '@typescript-eslint/parser',
	plugins: ['@typescript-eslint'],
	parserOptions: {
		sourceType: 'module',
		ecmaVersion: 2020,
		extraFileExtensions: ['.svelte']
	},
	env: {
		browser: true,
		es2017: true,
		node: true
	},
	overrides: [
		{
			files: ['*.svelte'],
			parser: 'svelte-eslint-parser',
			parserOptions: {
				parser: '@typescript-eslint/parser'
			}
		}
	],
	globals: {
		// workaround for lack of $$Generic support in svelte-eslint-parser.
		// See https://github.com/sveltejs/svelte-eslint-parser/issues/306
		$$Generic: 'readonly'
	}
};

{@html `<script>${'console.log("test")'}</script>`}

What did you expect to happen?
no error
What actually happened?
[1:18]: Parsing error: Unexpected token {
Link to GitHub Repo with Minimal Reproducible Example
https://sveltejs.github.io/eslint-plugin-svelte/playground/#eJyrVkrOT0lVslKqdsgoyc1RSLApTi7KLCixU6lWT87PK87PSdXLyU/XiFEqSS0uiVHSVK+10YcqSahVqgUAz2EWSg==
Additional comments
The component compiles without error in the svelte playground and produces the expected console.log when run locally (though not in the playground for some reason).

Thank you for posting the issue.
However that is a parser issue. Check out https://github.com/sveltejs/svelte-eslint-parser/issues/346 and workarounds.


News posting should has a cooldown

Description

Reproduction

Screenshots

Additional context

https://github.com/space-wizards/space-station-14/pull/18368


Delayed events for detected-speech and detected-end-of-speech.

Problem description

The speech start and end detection, related events are getting called little bit late, i.e. w.r.t. the utterance of speech.
Its delayed approximately around by 2 seconds.
This is noticed in Objective C code.

Events:

(void)addSpeechStartDetectedEventHandler:(nonnull SPXRecognitionEventHandler)eventHandler;
(void)addSpeechEndDetectedEventHandler:(nonnull SPXRecognitionEventHandler)eventHandler;

Example
-(void) registerSpeechEventHandler {
    [_speechRecognizer addSpeechStartDetectedEventHandler:^(SPXRecognizer* recognizer, SPXRecognitionEventArgs* eventArgs) {
        NSLog(@"******* Detected Speech");
    }];

    [_speechRecognizer addSpeechEndDetectedEventHandler:^(SPXRecognizer* recognizer, SPXRecognitionEventArgs* eventArgs) {
        NSLog(@"******* Detected End of Speech");
    }];
}

Scenario

With SPXKeywordRecognizer we are recognising the keyword
and then from SPXSpeechRecognizer, we capture the speech start and end detection event.
These events, we use to send the audio to our System for processing.
As soon as Keyword get recognised, we start recognising speech, for capturing the events.

Requirement of Events

Earlier we were using other third party library, for Keyword recognition and then for detected-speech and detected-end-of-speech event
That third party service, we want to replace with Azure Cognitive speech service.
And these two, detected-speech and detected-end-of-speech events are little late.
Takes more time after utterance of speech, to get raised.

SDK Recognition init details

For keyword recognition: SPXKeywordRecognizer with recognizeOnceAsync
For detected-speech and detected-end-of-speech events: SPXSpeechRecognizer with recognizeOnceAsync

Version

“1.26.0”
Earlier also tried with "1.24.0"
Same behaviour on both version

Log

Yes, Integrated
Error word can be seen just at one line
i.e. SPX_TRACE_ERROR audio_stream_Session.cpp:2207 CalculateResultLatencyInMS(.....): no audio available

Let me know please if you need any more details. Thanks for your timely response.

Definitely updating to 1.26 could help as there have been some fixes around keyword recognition.
Let me know if it still occurs on 1.26.
Does this happen every time or intermittently?
Do you have any code you could share to help us reproduce it if necessary?

Please find required details as

Yes, it still has similar issue on 1.26.
It is reproducible, happens every time.
We can see issue on Objective C "Speech-Samples" project from our site.
Check the "recognizeFromMicrophone" method
By adding below two events.

[speechRecognizer addSpeechStartDetectedEventHandler:^(SPXRecognizer * recognizer, SPXRecognitionEventArgs * eventArgs) {
NSLog(@"detectedSpeech");
}];
[speechRecognizer addSpeechEndDetectedEventHandler:^(SPXRecognizer * recognizer, SPXRecognitionEventArgs * eventArgs) {
NSLog(@"detectedEndOfSpeech");
}];

Notice that, after utterance these events takes around 2.5 seconds, to get raised.

Hi @sagarmahewar,
We are trying to reproduce this on our side without any luck. Are there any changes you have made to the sample? What does the inside of your events look like?
Any code or information you have would be helpful, or if you are comfortable sharing your entire log, that might be helpful as well.

I hope so, you are using same Objective C "Speech-Samples" project.
After uttering Speech, how much time it takes to raise these two events ?
can you give few tries and share details ?

The sample we use is here: https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/objective-c/ios/speech-samples/speech-samples/ViewController.m
For the function titled recognizeFromMicrophone .
We run it on Mac OS and iOS and get the events nearly instantaneously. So there must be something different with either our code or our setup.

Instantaneously, means you get event within, X milli sec, 1 sec or 2 sec....etc ? could you please confirm approximate time from few trials ? Thank you.

Yes we get it within 100 ms most of the time faster

Closing due to lack of activity


bug: batch query uses wrong parallel unit after fragment rescheduling

Describe the bug
After fragment rescheduling, a worker node contains no actor, but later batch query still schedules task to its parallel unit (and not to other correct parallel units), which fails the query.

To Reproduce

Add any log to print parallel_unit_ids here.
Modify risedev.yml and ./risedev d for-ctl

for-ctl:
    steps:
      - use: minio
      - use: meta-node
      - use: compute-node
        port: 5687
        exporter-port: 1222
        parallelism: 1
      - use: compute-node
        port: 5688
        exporter-port: 1223
        parallelism: 1
      - use: compute-node
        port: 5689
        exporter-port: 1224
        parallelism: 1
      - use: frontend
      - use: compactor

Create sources and mv. sql.txt

Reschedule fragment to remove all actors from worker node 1: ./risedev ctl meta reschedule --plan "1-[0]+[1];2-[0];3-[0];4-[0]"

select * from nexmark_q106;

Check frontend.log, find worker node 1's parallel unit is used unexpectedly.

2023-03-17T05:42:12.740589Z  INFO risingwave_frontend::scheduler::distributed::stage: [
    0,
] [
    WorkerNode {
        id: 1,
        r#type: ComputeNode,
        host: Some(
            HostAddress {
                host: "<IP_ADDRESS>",
                port: 5687,
            },
        ),
        state: Running,
        parallel_units: [
            ParallelUnit {
                id: 0,
                worker_node_id: 1,
            },
        ],
    },
]

Expected behavior
Batch query should be scheduled to correct parallel unit.
Additional context
Found here, after we SET visibility_mode=all, hummock's seal_epoch check reveals this issue.

Will this be kind of related to https://github.com/risingwavelabs/risingwave/issues/5446?


ServiceEndpoing start() should consider error scenario

Description:
At the moment, we don't wait till binding is complete to return from start() implementation. Ideally, we should return from the function only when binding is completed.
Also we do not consider the error scenario here, we need to consider that too.
https://github.com/ballerina-lang/ballerina/blob/master/stdlib/ballerina-http/src/main/java/org/ballerinalang/net/http/serviceendpoint/Start.java#L73

Not relevant in the current version 0.975.1


my-posts should have light/dark mode

Context
So we can give a better user experience, we are working on a light/dark mode.
Expected Behavior
We use Tailwind, so we should enable this by having a default light mode and dark mode with the dark: prefix.
You can see how this is done here: https://tailwindcss.com/docs/dark-mode
Current Behavior
By default, we only use a dark theme.
You need to be logged in to view this page.
You can see the feed here: https://www.codu.co/my-posts
Additional info
The background for light mode should be: bg-neutral-100
The text should be: text-neutral-900
The cards should have a background of: bg-white
borders for light mode should be: neutral-100
Don't forget to test with no posts, drafts and published states.
If there are more questions let me know as I'm sure I've missed something!

Hi @NiallJoeMaher, Can I work on the issue?

Absolutely @Shritesh99


Allow related specification of inv src by short name

This is a shot at #302
However, I'm not 100% sure this will be workable. The extremely major problem is that group names are not unique globally, and that's what this is leveraging. But if this solves an immediate need, it might be acceptable.
Demo:
tower-cli node create -W asdf --inventory-source "Alan AWS" -v
*** DETAILS: The workflow_job_template field is given as a name; looking it up.
*** DETAILS: Getting the record. **********************************************
GET http://localhost:8013/api/v1/workflow_job_templates/
Params: {'name': 'asdf'}

*** DETAILS: The inventory_source field is given as a name; looking it up. ****
*** DETAILS: Getting the record. **********************************************
GET http://localhost:8013/api/v1/inventory_sources/
Params: {u'name__startswith': 'Alan AWS'}

*** DETAILS: Checking for an existing record. *********************************
*** DETAILS: Writing the record. **********************************************
POST http://localhost:8013/api/v1/workflow_job_template_nodes/
Data: {'unified_job_template': 10, 'workflow_job_template': 25}

Resource changed.
== ===================== ====================
id workflow_job_template unified_job_template
== ===================== ====================
 1                    25                   10
== ===================== ====================

Note that the workflow schema is fully built on top of these existing utilities, so when you reference something in the workflow schema command, it's doing the same thing as here.

Coverage decreased (-0.01%) to 89.516% when pulling 3a4956fc563fbf60925f36b54f83a6373d7176bd on AlanCoding:inv_src_names into 4fe170e79c19f95e72355fb6106970a96ab82a46 on ansible:master.


streamlit / pandas dependency conflict

The conflict is caused by:
streamlit 1.8.1 depends on pandas>=0.21.0
pygenericspreadsheet 0.0.3 depends on pandas~=1.4.2

remove streamlit


Fail ./installPrerequisites.sh - Could not build Bazel

Hi, I've followed your guide to install tensorflow in jetson tx1. But when executing the installation of prerequisites, bazel fails. You could please help me with the fault, I leave the message from the terminal.
`File src/main/java/com/google/devtools/build/lib/util/CPU.java is read-only; trying to patch anyway
patching file src/main/java/com/google/devtools/build/lib/util/CPU.java
File tools/cpp/cc_configure.bzl is read-only; trying to patch anyway
patching file tools/cpp/cc_configure.bzl
patch: **** malformed patch at line 25: @@ -225,15 +225,16 @@ def _crosstool_content(repository_ctx, cc, cpu_value, darwin):
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh compile /path/to/bazel
🍃  Building Bazel from scratch.......
🍃  Building Bazel with Bazel.
.WARNING: /tmp/bazel_kcSyTBND/out/external/bazel_tools/WORKSPACE:1: Workspace name in /tmp/bazel_kcSyTBND/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions.
ERROR: No toolchain found for cpu 'unknown'. Valid cpus are: [
piii,
armeabi-v7a,
x64_windows_msvc,
s390x,
].
INFO: Elapsed time: 6.046s
ERROR: Could not build Bazel
cp: cannot stat 'output/bazel': No such file or directory`

Hi, Did you figure out this issue? Hitting the same problem.

Hi, Is there any improvement with this issue? Having same problem here.

Hi, I have exactly the same problem too

Hi DetaiLC, I do not remember exact solution but I believe that it is related to cuda version, you should change it into a newer version not the built one with the older versions of jetpack. Also, there is possibility that tx1 is using the version that you installed, you should link your tx1 to the version you install.

@sahinkemal
Thanks for your reply. I will have a try.

@sahinkemal  hey man am really sorry but am very new to all this Jetsonboard and Tensorflow so can you please tell me how to do what you said in above comments.
Thanks


Remove deprecated GN instance type class

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

The deprecated `gn` or `GPU NVIDIA` class of instance types has been removed from the project

/retest-required

Do we still need the GPU tests in tests/unittests/instancetype_test.go? Also scripts/deploy-kubevirt-and-cdi.sh should be adjusted to drop the GPU feature gate.

Apologies thought I had removed these tests already, also missed the FGs being used in #276.


Disable mouse navigation?

I noticed that when I click on a .step element, the presentation jumps right to it. Is there any way to disable this?
I dont want to do .step { pointer-events: none } since my steps contain clickable elements

I will have to look into this in more details, as I don't remember. If this isn't a thing yet, I will be adding this in the refactor for V3 I am currently planning. Couldn't you just do a
.whateversubclass { pointer-events: auto }
on all the ones where you actually need the events and do
.step { pointer-events: none }?
I hope this helps for now, I will have a look at the impress.js code base on this matter as I don't remember how exactly those events are handled.

I will have to look into this in more details, as I don't remember. If this isn't a thing yet, I will be adding this in the refactor for V3 I am currently planning. Couldn't you just do a
.whateversubclass { pointer-events: auto }
on all the ones where you actually need the events and do
.step { pointer-events: none }?
I hope this helps for now, I will have a look at the impress.js code base on this matter as I don't remember how exactly those events are handled.

I have figured out a little workaround:
.step { pointer-events: none }
.step.active { pointer-events: all }

But that is just that, a workaround. Im pretty sure that it would make sense to be able to click on another step (which is not the active one)

I have added this to the todo list for V3.

But that is just that, a workaround.

This is not a workaround, this is how impress is designed to work. You use CSS to make it behave how you want.

I will close this to keep the issues list tidy, but feel free to continue commenting or asking questions.


donejs-cli should use npm binary rather than npm package

Using the npm package means we are using npm version 2.x to install stuff with donejs init even if the user has npm 3.x.  We could use engine-dependencies here but it's possible to have Node 4 with either NPM 2 or 3, and it's also easier to use the npm binary anyways.

donejs-cli issue: https://github.com/donejs/cli/issues/21

This is fixed in donejs-cli 0.6.0-pre.2


Multi-Istio deployments in same k8s cluster

Describe the feature request
After issue #26679 resolved, istiod can be configured to watch a subset of namespaces in a k8s cluster by using meshConfig.discoverySelectors. But for deploying multi-istio in a k8s cluster, there are still some gaps:

namespace controller injects ConfigMap istio-root-ca-cert to namespaces, need to scoping it to the namespaces which are part of mesh managed by one Istio deployment, otherwise, it would override istio-root-ca-cert injected by another Istiod deployment.
mutating/validating webhook should be configured to run on an object based on which Istio deployment manages its namespace.
secrets controller watches all namespaces currently, it should also be configured to avoid trigger XDS push unnecessarily when a Secret doesn't belong to a Istio deployment. This is not mandatory, but better to have.

PR #29802 implemented a DiscoveryNamespacesFilter, which can be reused by namespace controller and secrets controller, but looks like a different set of namespace selectors should be defined, because "discovery - namespaces watched by Istio" and "namespaces in a mesh" are different concept.
Per my understanding, another namespace selector("meshNamespaceSelectors"?) in MeshConfig should be defined and items listed above should be modified accordingly. Please correct me if I misunderstand anything.
Describe alternatives you've considered
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[] Multi Cluster
[ ] Virtual Machine
[X] Multi Control Plane
Additional context

I think you would also need to filter out Istio CRs to avoid cross-contamination. i.e. If I create a service entry with exportTo: ['*'] in a namespace not managed by a given mesh, it shouldn't appear in Envoys for that mesh. Having spoken to @harveyxia, #29802 doesn't ignore Istio resources created in a given namespace.

FYI: https://github.com/istio/istio/pull/41198 has been merged


Code action hijacks the number key.

Describe the bug
After fixing a problem with code actions (like choosing option 1), if you move your cursor away and keep pressing the same number (e.g., 1), it will keep inserting the same fix to the document. It kind of hijacks that key.
Screencast from 11-07-23 17:35:11.webm
Steps to reproduce

Fix a problem with code actions
move your cursor away.
If you press the same key again (for example 1), then it repeats the code.

Expected behavior
The number key should not repeat the code action.
Neovim version (nvim -v)
v0.9.1
lspsaga commit
latest
Terminal name/version
bash

Thank you!


Logging out or invalidating token

What is the best way to perform logout using this code? Thanks.

Deleting the token on the client side is effectively "logging out".


Add auto linting workflow

Added a workflow similar to https://github.com/eunomia-bpf/wasm-bpf/blob/main/.github/workflows/c-cpp-lint.yml, which runs clang-format on all c/cxx sources

https://github.com/eunomia-bpf/eunomia-bpf/blob/master/bpf-loader/.clang-format
what about using this file?

I removed this file


Shared WebGLRenderTarget pool or configuration?

Is your feature request related to a problem?
Related:

https://github.com/mrdoob/three.js/issues/15671

Many passes construct their own render targets, either unconditionally (GaussianBlurPass#L40) or when not otherwise specified (CopyPass#L32-L43). The second behavior is better than the first, but I wonder if we could do even more for supporting different user workflows. Consider:

User A has an unlit 2D application with lots of screenspace effects, and wants to render into an 8-bit sRGB render target to keep precision and performance.
User B has a photorealistic 3D application with both HDR effects (bloom, tone mapping) and additional effects after the tone map, and wants to render into a 16-bit Linear-sRGB render target at least until the tone map, and may or may not want high precision after that.

Describe the solution you'd like
I think the minimum goal would be to allow enough configuration in all passes so that none are incompatible with either of these workflows, as long as you configure every pass correctly and consistently.
Perhaps it would be even better to share render targets — or at least their configuration — somehow?  For example:
import { Pipeline } from 'postprocessing';

// in application code
composer
  .setPipelineOptions( Pipeline.SCENE_LINEAR, { type: HalfFloatType } )
  .setPipelineOptions( Pipeline.DEPTH, { depthPacking: RGBADepthPacking } );

// in FooPass.js::render
this.renderTarget = this.composer.requestRenderTarget( Pipeline.SCENE_LINEAR );
// ...
this.composer.releaseRenderTarget( this.renderTarget );

The API proposal is probably half-baked at this point. I'm not sure how safe it would be to reuse render targets in different passes. But would be interested to hear others thoughts on whether this makes sense, and could make it easier to configure a full pipeline correctly.

Thanks for the input!
This will be addressed by the redesign in v7 which will introduce render pipelines, explicit input/output (uniforms and render targets) for passes and effects as well as a centralized frame buffer manager that will pick up on the explicit IO. These goals are next on the road map, but I'm currently working on bilateral blur for SSAO which doesn't go as smoothly as I had hoped...

I'm not sure how safe it would be to reuse render targets in different passes.

Reusing buffers is indeed tricky since there are so many different settings involved, but it should be possible to at least reuse some buffers across passes. Render targets in effects can probably not be reused across effects because they are required to remain unchanged in the context of the render operation of the outer EffectPass.
I'll open a discussion ticket similar to #82 for feedback once the v7 concepts are done and the ideas are more concrete.


Question: declaratively setting GL parameters?

The documentation is not particularly clear on how to set GL properties via the parameters Deck prop. I understand that this is now the preferred way to set GL properties (as opposed to using onWebGLInitialized).
Using this interface, how do we obtain a gl instance so we can set parameters? For example, I want to pass
parameters: {blendEquation: gl.FUNC_ADD}

but this requires me to get a WebGLRenderingContext instance from the initialization callback.
I wonder if the API can be asynchronous instead and supply a context as a callback parameter, e.g.
<Deck
  parameters={(gl) => ({ blendEquation: gl.FUNC_ADD })}
/>

Yes good question.
luma.gl exports static constants that enable you to use gl constants without access to a gl context.
import GL from 'luma.gl/constants'; // deck/luma v6
import {GL} from 'luma.gl'; // deck/luma v5

  parameters: {
    blendEquation: GL.FUNC_ADD

This should be clarified in the docs, tagging this for tracking.

I see, is GL re-exported from deck.gl at all? It feels awkward to import from luma.gl since it is a dependency of deck.gl rather than a peer dependency of the root project.


Endpoints Explorer only recognizes literal route strings

The Endpoints Explorer window only recognizes literal strings for routes.  For example, the following declaration shows up in the Endpoints Explorer window:
public static class MyEndpoints {
  public static void MapMyEndpoints(this IEndpointRouteBuilder routes) {
    var group = routes.MapGroup("api/test");
    group.MapGet("/{id}", TestGetMethod);
}}

However, the following is invisible to the Endpoints Explorer window:
public static class MyEndpoints {
  private const string ApiBase = "api/Test";
  public static void MapMyEndpoints(this IEndpointRouteBuilder routes) {
    var group = routes.MapGroup(ApiBase);
    group.MapGet($"{ApiBase}/{id}", TestGetMethod);
}}

This can be a significant limitation, since it forces the declaration literal route strings that may be spread across many solution files, and other projects that may consume the API.

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

ID: 26f1374f-556a-35fc-cc42-b8911746db80
Version Independent ID: 26f1374f-556a-35fc-cc42-b8911746db80
Content: Use .http files in Visual Studio 2022
Content Source: aspnetcore/test/http-files.md
Product: aspnet-core
Technology: aspnetcore-test
GitHub Login: @tdykstra
Microsoft Alias: tdykstra

That's not a documentation issue.  You should open this issue  at https://developercommunity.visualstudio.com/VisualStudio

I will do that.  However, I think it is actually something that should be mentioned in the documentation.  Otherwise people will likely waste a lot of time chasing a non-issue.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Rick Anderson @.>
Sent: Saturday, September 9, 2023 3:01:48 PM
To: dotnet/AspNetCore.Docs @.>
Cc: John Holliday @.>; Author @.>
Subject: Re: [dotnet/AspNetCore.Docs] Endpoints Explorer only recognizes literal route strings (Issue #30293)
That's not a documentation issue. You should open this issue at https://developercommunity.visualstudio.com/VisualStudio
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/30293#issuecomment-1712579257, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABIMPXAX5MLW2NDNALYKIADXZS4JZANCNFSM6AAAAAA4RSHHFM.
You are receiving this because you authored the thread.Message ID: @.***>

We have no way to version such content, and we have no way to track the fix for it because it would be internal to the VS team. I agree with Rick. I think problems with VS features generally need to go to that team for resolution.

btw @johnholliday ... I recommend the Report a problem feature in VS. I don't think those community issues generate bug reports.
https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022

@johnholliday  please post links here where you have reported the issue.


add JTAG support to the core

This is the first step to allow debugging the core with tools like GDB by using OpenOCD.
TODO:

[x] add a test in CI that clash can do HDL translation

@cuddlefishie What do you think, is this mergeable?

Yes, I think this should be good to go now :)


Can't upload firmware to arduino Uno Wifi

I'm trying to switch to your version of the WiFiLink library and figured I should update to your firmware first.  When I get to the upload step, I get this return:
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

Using an Arduino Uno WiFi developer edition, I've never done a firmware update before, so possibly I don't have it in the right mode for flashing (I was trying to use the ESP B/L button, holding it while reconnecting).  It wasn't clear from your test setup example how to extrapolate to this board with a built-in chip.

UNO WiFi with WiFi Link firmware

Thanks, I think that worked.
If I use the CheckWiFiLinkFirmwareVersion sketch from the WiFiLink library, it shows 1.1.0, the last tag was 1.0.1, so that's odd.  But I am getting much better behavior in terms of disconnecting and reconnecting a telnet, which was my goal.

I changed the version number in my repositories, because one bug fix required changes on booth sides (firmware and library) and I added a new function WiFi.resetEsp(). (but with Uno WiFi use better Serial1.resetESP()). Everything Uno WiFi related is documented in the Uno WiFi Serial1 project. See examples of Uno WiFi Serial1 library. WiFi Link docs are for common use with any Arduino+esp8266.


Separate x and y speeds for "follow" block

Is your feature request related to a problem? Please describe.
Current block is "enemy follow sprite with speed #", have had some forum requests to allow configuring the x and y speeds separately:
https://forum.makecode.com/t/follow-on-x/2729
https://forum.makecode.com/t/help-duplication-of-characters/2984/17

good candidate for extension?

ooh yes would be perfect as an extension


Documentation - Csi channels (cam0 or cam1?)

Unfortunalaly documentation is a bit lacking.
As a cm4 module is used the second csi interface (cam1) is available.
The cam1 is a 4-channel interface which allows for a higher bandwidth where cam0 is only 2-channel
From the documentation it isn't clear which interface is used.
Could you please update the documentation to provide clarification of which interface is used?
A schematic showing the cm4 pins used would be awesome

I have updated the document, specifically explained this problem in 2.14, and attached the latest test video:https://www.youtube.com/watch?v=aehOawHklGE

@ThomasVon2021 I missed this video in the README, can you add it to the main readme to help others?


profile section

in profile section when we click add photo then nothing happen

Click on edit profile and select an image then save it.


Usage in Node and a way to pass in a Buffer / a Base64 string of image data

Hi, first off, excuse my ignorance, but it looks like this library is aimed at the browser only? Is it possible to use it from Node? When I tried with the latest version, I got a not-a-constructor error. Perhaps I need to use a different way to require the module and the constructor is not the default export?
If this library is usable from Node, I'd like to follow up by inquiring about the possibility of passing a Buffer of image data or a Base64 string of image data to addFrame. Is this something you plan on supporting?

You can convert your Buffer / Base64 to an ImageData object.

Hi, first off, excuse my ignorance, but it looks like this library is aimed at the browser only? Is it possible to use it from Node? When I tried with the latest version, I got a not-a-constructor error. Perhaps I need to use a different way to require the module and the constructor is not the default export?
If this library is usable from Node, I'd like to follow up by inquiring about the possibility of passing a Buffer of image data or a Base64 string of image data to addFrame. Is this something you plan on supporting?

were you able to find the answer to your first question(requiring it correctly)
im experiencing the constructor issue too


WIP (GH-1506) - Specify run-as-command without a run-as user

previously if the run-as-command was specified the run-as user
would always be appended causing the command to fail.
Additionally, there was no way to disable without disabling
other run-as-command option.

This fixes that situation where you want to login as a user
but either:

run a command as that logged in user without sudo
run a command as a different user (run_as)
run a command with sudo but without a run_as user

CLA signed by all contributors.


examples/client: print fatal errors

Codecov Report

Merging #49 (63eea4a) into main (0aa243a) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main      #49   +/-   ##
=======================================
  Coverage   71.38%   71.38%
=======================================
  Files          50       50
  Lines        4410     4410
=======================================
  Hits         3148     3148
  Misses        974      974
  Partials      288      288

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Module not showing up

Hi!
After installing the module and adding the configuration into config.js the calendar doesn't show up. I've tried remove every option, but nothing seems to work.
I can see that the module shows up in the HTML, but it just says "undefined" and the calendar is not showing up on the mirror.
Anyone else had this or similar problem?

Show me the configuration of modules. (If possible, whole config.js)
<EMAIL_ADDRESS>

Thanks for the prompt response.
I added the below into the config.js and this module immediately started working. I overlooked that I had to load the standard calendar into the config.js even though it correctly says so in the ReadMe.
{
module: "calendar",
},


Clarify custom template usage

It's currently unclear how a whim user would customize their webmention-display templates. They certainly could modify the contents of public/ -- but right now all its contents are version-controlled, implying that users should not modify them at all.
We should come up with a method, easy to document, for users to create their own templates, optionally based on Whim-provided defaults. Whim should in any event continue to provide default templates.

Some potential building blocks to a solution:

Remove the default template files from version control, and embed them back into a code library. IIUC, Mojo will always look in designated template directories first and fall back to embedded templates if any are missing.

Provide a generator command that prints a fresh set of template files into a template directory.


Add function for generating the name of the chart with the release name

Currently most charts are using the fullname template (https://github.com/kubernetes/charts/pull/48/files#r77064762) to generate a 24-character names for K8S resources using the release name and name of the chart.
This seems like a good thing to standardise on, and Helm could provide a template function to generate this, or inject a value (in .Release or .Chart?)
Another issue with the template, is that template names are global, so charts should really be namespacing template names (e.g. mariadb.fullname rather than just fullname), otherwise there will be conflicts.

Good idea. Do you have a suggestion for what the function would look like? Would we allow paramterization ({{fullname .Release.Name}}) or do it in a consistently automatic way with no params:{{fullname}}?

I think the parameter it should accept is the override (i.e. the .Values.nameOverride in {{- $name := default "prometheus" .Values.nameOverride -}}). {{.Release.Name}}-{{someName}} should be the standard we impose, so I don't think .Release.Name should be parameterised.

I like the idea of replacing the fullname template with a function. Might want to discuss its format before implementing, though. As I mentioned in the Charts best-practices issue, I've taken to reversing the order in which the application & release names appear.

Is there a way to override a sub chart's fullname function. I'm having conflicts with the mysql sub chart. In my fullname definition I've set chart name first like mysql-myrelease instead of myrelease-mysql. But sometimes it uses the sub chart's fullname function for the entire release and sometimes my parent chart's function. Any way to lock this?

My personal usage of fullname deviates slightly.  Instead of
.Release.name -  .Chart.Name when the name of the release and the chart are the same I drop the name.
Chart - sensu
Release - sensu
The defaults would produce a service named sensu-sensu and in my case I produce sensu

Can we at least create a values.fullnameOverride or something?
There are charts which would be deployed multiple times in a namespace and others once per cluster or once per namespace.
I now have prometheus-prometheus-server... adding the releaseName adds no value in this case, worse, it makes it less readable.

I have been using the following to handle @sander-su use case of dropping the Release name when it matches the chart.
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if ne .Chart.Name .Release.Name -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

I've started adding @sstarcher's conditional to internal charts as well as community ones I maintain.

Sorry,  I am new to golang and helm. I didn't understand the meaning of the following code.
{{- $name := default .Chart.Name .Values.nameOverride -}}
=> is this mean $name would be .Chart.Name by default and allow to be overwritten by .Values.name ?
{{- if ne .Chart.Name .Release.Name -}}
=> Is this mean  if .Chat.Name and .Release.Name is not equal ?
I have spend some time on document especially template doc (https://golang.org/pkg/text/template/)  but in vain.
Thanks for any hint about this.

@previa yes, both of your assumptions are correct

We should definitely add @sstarcher's suggestion to helm create so that this becomes the de-facto for charts moving forward. If anyone wants to take a crack at a PR, please go for it! This is a fantastic feature to get your feet wet with helm. :)

I would suggest instead of strict equality check do something like:
{{- define "foobar.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

So if my chart is called foobar and I release without providing the name: the full name would be release-chart.
But if I release with the name of my-foo or foo or anything with the word of foo, the full name would be the name of the release.
It seems unlikely people would specify release name manually without mentioning the actual application they are releasing. And in this case repeating the chart name would be redundant.
WDYT?

@burdiyan's proposal seems like a reasonable improvement on @sstarcher's original.
👍

Additionally, I'd add an option to override the fullname as the common chart does. See https://github.com/kubernetes/charts/blob/master/incubator/common/templates/_fullname.tpl#L20-L29.


ImageSize and Size Validator behave unexpected in windows with PHP 5.4+

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html

Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7650
User: @razonklnbd
Created On: 2015-12-06T03:12:39Z
Updated At: 2016-02-13T15:33:25Z
Body
Environment -
OS: Windows 10
PHP: 5.4+ [I tested in 5.4, 5.6 & 7.0]
ZF: 2.4.9
Recreate -

create any HTML form to accept at least one image
apply validator on size and image size
submit form through http request

Reason -
at Zend\Validator\File\ImageSize and Zend\Validator\File\Size class isValid method return false due to using "stream_resolve_include_path" function. In my system it only resolves for include paths relative path document. You can locate exactly at line 354 of Zend\Validator\File\ImageSize class

@GeeH Any update of this issue? OR can i make any suggestion to resolve?

@razonklnbd
Suggestions or PRs are always welcome!

we can replace line 354 to 357 with the following -
if(empty($file) || !is_readable($file)){
if (empty($file) || false === stream_resolve_include_path($file)) {
$this->error(self::NOT_READABLE);
return false;
}
}
we don't need to search into include path if we know file exists and readable

Duplicates #77 (See also this PR: #169)


ChatGPT flow laucher issue

2023-04-21.txt

Hi @htq-uet, thanks for the feedback! This looks similar like #24. Do you have answers to the following questions?

Are you running Flow Launcher in standalone mode?
Have you installed the plugin through the Plugin Store or manually?

Marking this issue as stale as there hasn't been any activity on this in a while. Please reopen if you need additional help. Thanks for your contribution!


Update infisical-secrets-check.yml

:white_check_mark: Build POC-dotnet-Dijkstra 1.0.146 completed (commit https://github.com/GuilhermeStracini/POC-dotnet-Dijkstra/commit/fc1d0f161b by @guibranco)


Added Script to Verify Connection Namespaces on DBaaSPolicy

Signed-off-by: Rajan Ravi<EMAIL_ADDRESS>This PR includes,

Test scripts to verify DBaaSPolicy with connection namespace configuration and their exposure based on user role.
DBaaS Suite file refactoring based on functionality

Thanks for the feedback @ikanias, I made the changes and resolved some of the questions. PTAL and let me know.
But in the future can you please consolidate the same kind of review comments if possible.

Yes @mrrajan will try to consolidate similar comments :-)


Debug dropdown not working

This is from today's insiders, I can't even open the dropdown menu. The other dropdowns in the terminal/output/remote explorer appear to work normally.

This appears to work in OSS, wonder if this was already fixed?

I can not reproduce this.
What Repository are you working with?
If you F1 > developer tools > console  are there some errors there?

I just realized that this is caused by the Device Simulator extension, after I disable that and the Python extension (it depends on it) then it works. Wonder why that is happening. Also getting this message based on my local config:

Here are the logs:
-1587661198070.log

So I just installed the extension dependencies (second notification) and the dropdown now appears. It seems like the extension is blocking the dropdown somehow.

That extension is star activated which is a bug on their side.
However the debug dropdown should not be broken when an extension takes an inifinite amount of time to activate.

@misolori great catch anyways. Let me know if you can still repro tomorrow, though I am pretty cerent my fix fixes it.

@misolori great catch anyways. Let me know if you can still repro tomorrow, though I am pretty cerent my fix fixes it.


Discord now autoplays gifs by default

This was an issue on mobile already, but Discords latest update auto plays gifs when Discord is focused.
This can be opted out on a per-user basis but really hurts the functionality of this bot.

Thanks for the report, I don't have any immediate solutions for this in mind. I don't even think it's really possible to do anything about it at this point.


metrics: add svc for metrics and wire serving certs to deployment

@deads2k @sttts we have the secret volume that we don't mount into container... this is fixing this in addition of metrics service that should be used to serve the operator metrics.
pre-requirement: https://github.com/openshift/library-go/pull/88
/hold

/lgtm

just a nit.
lgtm otherwise

@deads2k nit fixed.

/lgtm

/hold cancel


Write chefspec matchers.

Custom matchers are needed for chefspec tests to work.

Thanks for your contribution!

Can I kindly ask for a quick release on this so I can drop my fork and
use the supermarket release?
-Erinn
On 03/02/2016 08:08 AM, Adam Leff wrote:

Merged #18
https://github.com/chef-partners/redhat-subscription-manager-cookbook/pull/18.
—
Reply to this email directly or view it on GitHub
https://github.com/chef-partners/redhat-subscription-manager-cookbook/pull/18#event-574786360.

I'm actually doing it right now :)

v0.5.0 released to the supermarket.


implement gviewnl with only name and language

In https://github.com/KWARC/sTeX/issues/222 we have re-designed the argument of *viewnl to only be name and language. This is implemented in the gviewnl branch of sTeX.
I have started implementing this for the sTeX plugin on the corresponding gviewnl branch, but we need to get view and  mhview to record the same things we recorded in https://github.com/KWARC/sTeX/issues/222
assigning to @angerhang, please come by and discuss this with me.

In https://github.com/KWARC/LaTeXML-Plugin-sTeX/blob/view/lib/LaTeXML/Package/smultiling-mh.sty.ltxml#L91, and various other places where we retrieve the loading information from the signature, we are using \csuse from the etoolbox package.
I think having an etoolbox package for \csuse and \csdef would do exactly what we want. \csdef will just do AssignValue whereas \csuse will simply do LookupValue.
@kohlhase what do you think?

Dear Hang,
you are still on campus? Can we meet today (until 18:30) or tomorrow
afternoon?
Michael
On 01/06/16 16:00, angerhang wrote:

In
https://github.com/KWARC/LaTeXML-Plugin-sTeX/blob/view/lib/LaTeXML/Package/smultiling-mh.sty.ltxml#L91,
and various other places where we retrieve the loading information
from the signature, we are using |\csuse| from the etoolbox package.
I think having an etoolbox package for |\csuse| and |\csdef| would do
exactly what we want. |\csdef| will just do |AssignValue| whereas
|\csuse| will simply do |LookupValue|.
@kohlhase https://github.com/kohlhase what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/KWARC/LaTeXML-Plugin-sTeX/issues/104#issuecomment-223001326,
or mute the thread
https://github.com/notifications/unsubscribe/AD2bovSrC3SLz_4r9ft_8OgEE5yOIJJmks5qHZCYgaJpZM4Ic0Bo.

--
Prof. Dr. Michael Kohlhase,        Office: Research 1, Room 168
Professor of Computer Science  Campus Ring 1,
Jacobs University Bremen           D-28759 Bremen, Germany
tel/fax: +49<PHONE_NUMBER>/-493140  skype: mibein42
<EMAIL_ADDRESS>http://kwarc.info/kohlhase

As a toy example,
\begin{gviewnl}[creators=miko]{setcartprod}{en}

\end{gviewnl}

LaTeXML complains about two unexpected control sequences
Error:unexpected:\else Extra T_CS[\else]
	/Users/Hang/lmh/localmh/MathHub/smglom/sets/source/setcartprod.en.tex#textrange(from=1;0,to=1;47)
	already saw \else for T_CS[\ifx] [3] at /Users/Hang/lmh/localmh/MathHub/smglom/sets/source/setcartprod.en.tex#textrange(from=1;0,to=1;47)
	Next token is T_CS[\ifx]
	In Core::Definition::Conditional[\else] from TeX.pool.ltxml line 505
	 <= Core::Gullet[@0x7fbcd505ca88] <= Core::Stomach[@0x7fbcd5061398] <= Core::Definition::Constructor[\begin{... <= ...

Error:unexpected:\fi Didn't expect a T_CS[\fi] since we seem not to be in a conditional
	/Users/Hang/lmh/localmh/MathHub/smglom/sets/source/setcartprod.en.tex#textrange(from=1;0,to=1;47)
	Next token is T_CS[\ignorespacesandpars]
	In Core::Definition::Conditional[\fi] from TeX.pool.ltxml line 507
	 <= Core::Gullet[@0x7fbcd505ca88] <= Core::Stomach[@0x7fbcd5061398] <= Core::Definition::Constructor[\begin{... <= ...

which results from the RawTeX implementation in smultiling-mh package
\newenvironment{mhviewnl}[3][]{\def\@test{#1}%
  \metasetkeys{mhview}{#1}%
  \if@langfiles\requiremodules{#2}{tex}\else%
    \ifx\mhview@loadsig\@empty%
    \PackageError{smultiling-mh}%
                          {Cannot load view signature}%
                          {please specify the file name via the 'sigpath' and 'sigrepos' keys!}%
    \fi
    \ifx\mhview@sigrepos\@empty%
    \requiremodules{\MathHub{\mh<EMAIL_ADDRESS>    \requiremodules{\MathHub{\mhview<EMAIL_ADDRESS>  \fi% if@langfiles
  \ifx\@test\@empty%
  \begin{mhview}[id=#2.#3,fromext=tex,toext=tex]{\csuse{views@#2@from}}{\csuse{views@#2@to}}\else%
  \begin{mhview}[id=#2.#3,#1,fromext=tex,toext=tex]{\csuse{views@#2@from}}{\csuse{views@#2@to}}\fi%
  \ignorespacesandpars}
{\end{mhview}\ignorespacesandparsafterend}

The first error occurs at the first else expression and the second error occurs at the last fi expression. I am not fluent in TeX, but just based on condition closure, this snippet should be working.


Caret run over closing $ of inline math containing a default LaTeX command inserts an extraneous $

When typing inline math which contains only a command, when typing the second $ a third $ is introduced. This does not seem to happen with nonexisting commands.
\documentclass{article}

\begin{document}
    $\notaproblem$
    $\xi$$
\end{document}

I built from commit db555d2734060ced30e96e96b16671ce0c3f0856 , Related to #15.
[Edit] This issue seems not to appear when using autocomplete, so that's the workaround for now I guess.

I still can..., not sure how that is possible?

Now I can. Just didn't understand the bug report..

Problem
It turns out that the custom LatexTypedHandler (a TypedHandlerDelegate) was not called when a character is typed that closes the completion popup (as is the case here). Somewhere deep down the code of IntelliJ a CharFilter that can filter TypedHandler callbacks prevented our code from being executed. Specifically, the CompletionCharFilter class blocking us, by returning Result.ADD_TO_PREFIX for $ characters.
Solution
Injecting a custom CharFilter that returns Result.HIDE_LOOKUP when $ is typed to force our TypedHandler being executed.


Add special sum without null initial value

Previously count on empty table break in Spark 2.3.
This is because:

Count is rewrite into Sum of count value from coproc.
Sum on empty records in SQL is initialized into null.
Count is not nullable in SQL and thus when rewritten into Sum nullable flag is carried.
Spark's codegen will not guard on null value and only when forced to String (when using show instead of collect) will throw. If return schema is int it will return 0 normally.
Spark 2.3 changed plan of Dataset.show into cast(sum as string) and then NPE encountered.

Now we change Sum into 0 initialized if it is to replace count in TiSpark.

This change is

/run-all-tests

/run-all-tests

LGTM if CI tests are passed

/run-all-tests

/run-all-tests

/run-all-tests


North compass showing random locations

When the north compass is on one hand, the indication showing random locations
MC Version: 1.20.1
Paper Version: 1.20.1-18
I tried to :

Craft the item manually instead of using the /customitem command = same problem
Craft the item manually in survival mode = same problem
I've noticed that the north compass only works when the item has just been crafted and is not yet in the player's inventory.

Ok I just unintentionally drop the compass, and from the moment I got it back, it started working normally, strange 🤔
And that's not all, now when I craft another north compass, the problem is gone.
Throwing the compass away and picking it up again fixes the bug 🤯

Yeah the north compass requires some hacky tricks and thus can get a little weird. The issue is that minecraft doesn't support a north compass per-se, so set a location in the current world that is at 0,-999999999 (very far north) so for all practical purposes it will be north.
If you change world etc, this location needs to be updated, and we are doing that by resetting the location on certain events. So picking it up fixes it :P  What's more interesting is why it needs fixing after crafting, since that was working in 1.19 🤔

Yes, it is strange.. But now, my compass is working perfectly!

I'll see if I can reproduce this somehow, maybe something weird changed between versions that I'm not aware of. Ideally it shouldn't need to be dropped to start working 😅

FWIW I ran into this issue when giving myself the item with commands/creative, but in survival I crafted it and it worked fine. Could be that commands/creative don't give the correct compass for the dimension you're in!


Loading Binary Data w/ 7pre2

Been trying to use the 7pre2 release to take advantage of the color formatting. For very small datasets it works fine but for larger data it appears dalliance is trying to slurp in the whole file into memory.  It fails to render and usually have to kill the browser. Seems worse w/ Chrome.
Anyone experience the same prob ? have work around ?
Thanks
B

Binary data should always be loaded "on demand" (the one exception to this is the index portion of BAM-formatted data -- but that's not usually too big).
   1. Do you have any indication that the problem is due to loading excessive data (rather than, for example, the rendering code getting clogged up -- which might happen if it's forced to render basepair-resolution data in a zoomed-out view).

   2. Do you have an example file you can share that demonstrates this problem?


Add new step feature which allows to snap to specific points in the range

I don't know if it's something you would like to have included, but I've implemented a way to have a stepped slider which snaps to some values.
There is a two new config:

enableStep: which allows to turn on or off the step feature
step: which define the value of each step, if you set minValue = 0, maxValue = 100 and step = 20  it will snap to 0, 20, 40, 60, 80 and 100.

This is great, thank you! And thanks for adding it to the examples project too.

Thanks for merging it!


Another Improper Input Validation in CVSS v2 parsing

During differential fuzzing with github.com/pandatix/go-cvss I discovered that your implementation does not properly handle the case of a CVSS v2 environmental parsing for vectors that does not have environmental metrics defined.
This could be categorized as CWE-20.
In order to be compliant with the first.org specification you must validate vectors that does not have environmental metrics defined.
The following Go code illustrates this issue.
Notice the input vector comes from the specification section 3.3.1 for the CVE-2002-0392.
package main

import (
	"fmt"

	"github.com/goark/go-cvss/v2/metric"
)

func main() {
	raw := "AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C"
	vec, err := metric.NewEnvironmental().Decode(raw)

	fmt.Printf("vec: %v\n", vec)
	fmt.Printf("err: %v\n", err)
}

produces ->
vec:
err: no metrics

metric.Environmental type of CVSSv2 requires Base, Temporal, and Environmental metrics (issue #26).
If Environmental metrics are not defined, use metric.Temporal type.
package main

import (
	"fmt"

	"github.com/goark/go-cvss/v2/metric"
)

func main() {
	raw := "AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C"
	vec, err := metric.NewTemporal().Decode(raw)

	fmt.Printf("vec: %v\n", vec)
	fmt.Printf("err: %v\n", err)
	fmt.Printf("Severity: %v (%v)\n", vec.Severity(), vec.Score())
}

(see https://go.dev/play/p/FI9sWSuGw85)
Or supplement the environmental metrics explicitly.
package main

import (
	"fmt"

	"github.com/goark/go-cvss/v2/metric"
)

func main() {
	raw := "AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C/CDP:ND/TD:ND/CR:ND/IR:ND/AR:ND"
	vec, err := metric.NewEnvironmental().Decode(raw)

	fmt.Printf("vec: %v\n", vec)
	fmt.Printf("err: %v\n", err)
	fmt.Printf("Severity: %v (%v)\n", vec.Severity(), vec.Score())
}

(see https://go.dev/play/p/x9m33VaKuFp)

another code:
package main

import (
	"fmt"

	"github.com/goark/go-cvss/v2/metric"
)

func main() {
	raw := "AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C"
	vec, err := metric.NewEnvironmental().Decode(raw)
	if err == nil {
		fmt.Printf("vector (Environmental): %v\n", vec)
		fmt.Printf("Severity (Environmental): %v (%v)\n", vec.Severity(), vec.Score())
	} else if vec.Temporal.GetError() == nil {
		fmt.Printf("vector (Temporal): %v\n", vec.Temporal)
		fmt.Printf("Severity (Temporal): %v (%v)\n", vec.Temporal.Severity(), vec.Temporal.Score())
	} else if vec.Base.GetError() == nil {
		fmt.Printf("vec (Base): %v\n", vec.Base)
		fmt.Printf("Severity (Base): %v (%v)\n", vec.Base.Severity(), vec.Base.Score())
	} else {
		fmt.Printf("err: %v\n", vec.Base.GetError())
	}
}

(see https://go.dev/play/p/4n8PkrUBsP7)

Ok, thanks for the code snippets and answer.
#26 needed all the metrics of the group (base OR temporal OR environmental) to be defined in the vector in order to be valid (for instance, you can't only have one metric from the temporal group, but needed them all even if other are set to ND).
Nevertheless, let's suppose I have an untrusted input data source (worst case). How could I validate the vectors ? The fact is that I don't know if there will be only Base group defined, Base/Temporal, Base/Environmental or Base/Temporal/Environmental combinations.
That's why I'm using the environmental metrics by default (largest case). If there is no temporal and environmental, I expect the implementation not to parse/consider them as they are not specified in the input and return no error. Moreover, what I don't want is having to deal with :

parse environmental and check if error is "no metric"
if it is, parse temporal and check if error is "no metric"
if it is, parse base
Currently, I have to deal with 3 error sources possibly leading implementers to errors only to parse a string (what is the semantic and order between each ? which error states that the vector is invalid or not ?)

Release v1.6.1:
package main

import (
    "errors"
    "fmt"

    "github.com/goark/go-cvss/cvsserr"
    "github.com/goark/go-cvss/v2/metric"
)

func main() {
    raw := "AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C"
    vec, err := metric.NewEnvironmental().Decode(raw)
    fmt.Printf("err: %v\n", err)
    fmt.Printf("vector: %v\n", vec)
    switch true {
    case errors.Is(err, cvsserr.ErrNoEnvironmentalMetrics):
        fmt.Printf("Severity (Temporal): %v (%v)\n", vec.Temporal.Severity(), vec.Temporal.Score())
    case errors.Is(err, cvsserr.ErrNoTemporalMetrics):
        fmt.Printf("Severity (Base): %v (%v)\n", vec.Base.Severity(), vec.Base.Score())
    default:
        fmt.Printf("Severity (Environmental): %v (%v)\n", vec.Severity(), vec.Score())
    }
}

(see https://go.dev/play/p/QGT6akF3h0s)

This behavior differs between your implementation of CVSS v2 and v3. For instance, the following Go code shows in the same conditions (no environmental metrics defined in the vector despite using an environmental object to decode) you don't raise an issue.
package main

import (
	"fmt"

	"github.com/goark/go-cvss/v3/metric"
)

func main() {
	raw := "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C"
	vec, err := metric.NewEnvironmental().Decode(raw)

	fmt.Printf("vec: %v\n", vec)
	fmt.Printf("err: %v\n", err)
}

produces ->
vec: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C/CR:X/IR:X/AR:X/MAV:X/MAC:X/MPR:X/MUI:X/MS:X/MC:X/MI:X/MA:X
err: <nil>

Elements for Temporal and Environmental metrics are optional in CVSSv3 vector string, so if an element is omitted it will be completed with an X (Not Defined).
A CVSSv2 vector string requires all elements, so omitting an element for each metrics causes an error.
This is the intended behavior.

As specified in the first.org specification :

Section 2.2 :

Since temporal metrics are optional [...]

Section 2.3 :

Since environmental metrics are optional [...]

CVSS v2 vectors does not require all metrics, they require all of a group as soon as one metric of this group is specified (see Table 13). Subsequently, this is not the intended behavior.


Swap in new 'explore by area' icon

Can we give this a try? Instead of something that looks similar to regular search (which could be a bit confusing), this is meant to look more like the new "click-to-explore" icon. I'm not sure about size, but the hand pointers in both icons should be the same.
Hopefully, this SVG is helpful:
rice/src/font/explore-by-area.zip

I think I need the actual explore by area svg. Unless there's a way to transfer a custom icon from one fontello config to another.


Unable to download images

Hi there
I'm unable to download the following either through command line or kitematic.
Kitematic shows this error for sonatype/nexus:oss:
Error pulling image (latest) from docker.io/sebmartin/nexus, Untar re-exec error: write /mnt/sda1/var/lib/docker/graph/_tmp/c49263d2b77338690d2b4316ae992265992f1508ddf75d60ada2d9dda1f1e8a9/tar-data.json.gz: no space left on device: output:
(eom)
For larrycai/docker-openldap both command line and kitematic just hang at around 26%. I'm on OSX Yosemite and jsut installed kitematic.

Oh and I have plenty of space left on the drive

@mononokehime Are you able to pull other images? If so, it could be a problem with that particular image.
Let me know and we can help you from there.

@mononokehime seems like a problem with that particular image. Closing for now. Feel free to reopen any time!

I'm sorry not to have replied. I never really solved the issue but it did go away. I think it was an unclean shutdown of kitematic or docker. I rebooted and everything was ok
All the best
Fergus
On 11 Sep 2015, at 16:46, Michael Chiang<EMAIL_ADDRESS>wrote:
@mononokehime seems like a problem with that particular image. Closing for now. Feel free to reopen any time!
―
Reply to this email directly or view it on GitHub.


Fix ADO basic auth and other bugs

Checkmarx One – Scan Summary & Details – a66ba853-1d2d-4a4d-8adb-6275f69eb884
No New Or Fixed Issues Found


Invalid State

I am getting an Invalid state when following the documentation. Here is what I have for my code:

App.tsx
const auth0 = new Auth0Client({
  domain: import.meta.env.VITE_AUTH0_DOMAIN,
  clientId: import.meta.env.VITE_AUTH0_CLIENT_ID,
  cacheLocation: "localstorage",
  authorizationParams: {
    audience: import.meta.env.VITE_AUTH0_AUDIENCE,
  },
});

const authProvider = Auth0AuthProvider(auth0, {
  loginRedirectUri: import.meta.env.VITE_LOGIN_REDIRECT_URL,
  logoutRedirectUri: import.meta.env.VITE_LOGOUT_REDIRECT_URL,
});

export const App = () => (
  <BrowserRouter>
    <Admin authProvider={authProvider} dashboard={Dashboard}>
      <Resource name="Billing Transactions"></Resource>
    </Admin>
  </BrowserRouter>
);

.env
VITE_AUTH0_DOMAIN="asdfasdf.us.auth0.com"
VITE_AUTH0_CLIENT_ID="asdfasdf"
VITE_AUTH0_AUDIENCE="https://asdfasdf.us.auth0.com/api/v2/"
VITE_LOGIN_REDIRECT_URL="https://mywebsite.com/auth-callback"
VITE_LOGOUT_REDIRECT_URL="https://mywebsite.com"

Auth0 Application URIs
Application Login URI: Blank
Allowed Callback URLs: https://mywebsite.com/auth-callback
Allowed Logout URLs: https://mywebsite.com
Allowed Web Origins: https://mywebsite.com
Allow Cross-Origin Authentication: https://mywebsite.com

There's usually more informations in the response from auth0 in the network tab. Can you check and report here?

I am not sure what I should be looking for in the network tab. All the network requests are in the status of either 200, 302, or 304.
What is interesting is that when I try to log in from Firefox it works, but Chrome is giving me this invalid state.

Please reopen if https://github.com/marmelab/ra-auth-auth0/pull/17 (which should be released in 2.0.1) doesn't fix the issue.


SSL Cert expired

Your SSL certificate expired - see https://paste.sh/. (NET::ERR_CERT_DATE_INVALID)

Oops, it was supposed to be letsencrypt automated, but the self upgrade failed.
Fixed now.


Crashed: com.google.firebase.auth.globalWorkQueue EXC_BAD_ACCESS KERN_INVALID_ADDRESS

[REQUIRED] Step 1: Describe your environment

Xcode version: 11.5
Firebase SDK version: _____
Firebase Component: Auth
Component version: _____
Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem
Crash in live app.
Steps to reproduce:
Can't reproduce during development.
Relevant Code:
N/A
Following is the crash log from crashlytics. I've no clue what this crash is but it keep crashing for quite sometime. Pods are up to date.
Crashed: com.google.firebase.auth.globalWorkQueue
0  MyApp                0x100e4bf30 -[FIRAuthURLPresenter presentURL:UIDelegate:callbackMatcher:completion:] + 78 (FIRAuthURLPresenter.m:78)
1  MyApp                0x100e5af58 __63-[FIRPhoneAuthProvider reCAPTCHAFlowWithUIDelegate:completion:]_block_invoke + 635 (FIRPhoneAuthProvider.m:635)
2  MyApp                0x100e5b628 __59-[FIRPhoneAuthProvider reCAPTCHAURLWithEventID:completion:]_block_invoke + 707 (FIRPhoneAuthProvider.m:707)
3  MyApp                0x100e4d90c __70+[FIRAuthWebUtils fetchAuthDomainWithRequestConfiguration:completion:]_block_invoke + 124 (FIRAuthWebUtils.m:124)
4  MyApp                0x100e44e18 __69-[FIRAuthBackendRPCImplementation postWithRequest:response:callback:]_block_invoke + 1100 (FIRAuthBackend.m:1100)
5  GTMSessionFetcher              0x1014e4eb0 __71-[GTMSessionFetcher invokeFetchCallbacksOnCallbackQueueWithData:error:]_block_invoke + 2500 (GTMSessionFetcher.m:2500)
6  libdispatch.dylib              0x187546ec4 _dispatch_call_block_and_release + 32
7  libdispatch.dylib              0x18754833c _dispatch_client_callout + 20
8  libdispatch.dylib              0x18754e9a8 _dispatch_lane_serial_drain + 900
9  libdispatch.dylib              0x18754f290 _dispatch_lane_invoke + 400
10 libdispatch.dylib              0x187558928 _dispatch_workloop_worker_thread + 584
11 libsystem_pthread.dylib        0x1875af714 _pthread_wqthread + 276
12 libsystem_pthread.dylib        0x1875b59c8 start_wqthread + 8

Can you fill out the SDK version field in the issue template?

Can you fill out the SDK version field in the issue template?
How do I find out SDK version?


[4.0.9] [BUG] select2_multiple breaks with UUID

Bug report
When using a related model with a UUID as primary key, and attempting to insert a select2_multiple field into a CRUD controller, an error comes up in the console and the field isn't displayed properly. The issue doesn't occur when using a regular ID (unsignedBigIncrements) as id. There are no issues creating models (of either type) or saving the relations. The select2_multiple field also appears normal when no results are found for the related model.
Model
public function yearclubs()
{
    return $this->belongsToMany(Yearclub::class)->withTimestamps();
}

Related model
Model:
protected $primaryKey = 'uuid';
public $incrementing = false;

public function users()
{
    return $this->belongsToMany(User::class)->withTimestamps();
}

Migration:
Schema::create('yearclubs', function (Blueprint $table) {
            $table->uuid('uuid')->primary();
            $table->string('name');
            $table->date('founding_date')
                ->default(now());
            $table->timestamps();
        });

Crud controller
[
    'label' => "Yearclub",
    'type' => 'select2_multiple',
    'name' => 'yearclubs',
    'entity' => 'yearclubs',
    'attribute' => 'name',
    'model' => "App\Models\Groups\Yearclub",
    'pivot' => true,
    'tab' => 'Groups',
]

Expected result

Actual result

Result without related models

Error in console:
Uncaught SyntaxError: Invalid or unexpected token edit:2708
Code

Versions
Backpack version 4.0.9
Laravel version 6.2.0
PHP version 7.3.4

Hello @JasperSijgers
I just don't want to let you without response as i have had no time to dig into this issue. I am sorry for that.
Also i am not sure that this is the only field 'breackable' by changing default id.
I will get back to it when possible.
Best,
Pedro

@JasperSijgers
Did a little look at here.
Have you tried also setting the $keyType in model ? I think by default laravel casts it to int.
Best,
Pedro

@JasperSijgers
Did a little look at here.
Have you tried also setting the $keyType in model ? I think by default laravel casts it to int.
Best,
Pedro

Unfortunately that doesn't fix it, but it's probably good practice to set it anyways. Thanks for your suggestion!

@JasperSijgers thanks for letting us know. Excellent bug report, btw.
I personally don't often use UUIDs in my projects - hence the omission. But I agree this should be something Backpack works out-of-the-box with. We'll take a closer look.
Until we have this fixed, there's a workaround here you could implement, basically manually loading the value inside the Update operation.
Cheers!

Update: I just pushed a fix for this, it'll be available with composer update later today, as 4.0.26.
It was just a matter of leaving out the quotes in JS. So when the key was integer, it worked. When it was a string, it didn't.


SQL Connection error

When I attempt to connect to SQL server the following error message is generated:
"Connection error! connect ENOENT localhost - connect ECONNREFUSED <IP_ADDRESS>:3306"
I entered my valid username & password but was still refused access.

I have a similar issue.
Happens only on a new version 2.0.0. When I downgraded to 1.5.3 everything works as expected.
From Postgres server logs it looks like extension doesn't respect username and uses OS provided username.

@UTexas80  @RomanGotsiy Please tell to which database server to connect. MySQL or Postgres ?

Postgres in my case.

@Bajdzis some more info. Hope that helps.
Just after upgrading to 2.0.0 I get the following error on VS Code start:

PostgreSQL Error: error: role "romanhotsiy" does not exist at Connection.parseE (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/node_modules/pg/lib/connection.js:567:11) at Connection.parseMessage (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/node_modules/pg/lib/connection.js:391:17) at Socket. (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/node_modules/pg/lib/connection.js:129:22) at Socket.emit (events.js:182:13) at addChunk (_stream_readable.js:279:12) at readableAddChunk (_stream_readable.js:264:11) at Socket.Readable.push (_stream_readable.js:219:10) at TCP.onread (net.js:636:20)

If I rename user to username (I was looking on changes between 1.5.3 and 2.0.0 and noticed you renamed it but in my saved config it remained as user) in vs code settings database.connections the message disappears.
Althogh, I can't connect to a database. I select one from the dropdown (which gets populated!) but nothing changes.
In dev tools I see the following error:

ERR Cannot read property 'query' of null: TypeError: Cannot read property 'query' of null
at queryPromise.Promise (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/extension/engine/postgresql.js:149:29)
at new Promise ()
at PostgreSQLType.queryPromise (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/extension/engine/postgresql.js:148:16)
at getDatabase.Promise (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/extension/engine/postgresql.js:179:22)
at new Promise ()
at PostgreSQLType.getDatabase (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/extension/engine/postgresql.js:177:16)
at Manager.getDatabase (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/extension/Manager.js:126:35)
at connectPostgreSQL.execution (/Users/romanhotsiy/.vscode/extensions/bajdzis.vscode-database-2.0.0/extension/action/extension.changeDB.js:9:25)
at e._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:485:959)
at e.$executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:486:443)

@RomanGotsiy Thanks for reply. I think the bug is fixed in 2.0.1 version. Could you check if that helped?

MySQL
On Tue, Mar 5, 2019, 12:02 Rafał Budzis<EMAIL_ADDRESS>wrote:

@UTexas80 https://github.com/UTexas80 @RomanGotsiy
https://github.com/RomanGotsiy Please tell to which database server to
connect. MySQL or Postgres ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Bajdzis/vscode-database/issues/63#issuecomment-469763359,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APWzEYdTDWJGWcChc4ocQHKafZIXJA3oks5vTqMFgaJpZM4bcUF6
.

@Bajdzis, So the first issue is fixed. I no longer see the error message.
But the second issue is still here. I can't connect to the database. I see "Database not selected":

Also in VS Code dev tools, I see the following error message:

Looks like this.connection is null here:
https://github.com/Bajdzis/vscode-database/blob/d653a2f33a845669a570a8edb89d99842f26bb08/extension/engine/postgresql.js#L149
I can try to dig in deeper but I'll have to set up dev env for this. Let me know if you don't have time and want me to try.

I think this is a separate issue so you may want to close this and open a new one.

Still persists. I get the error message "Connection error! connect ECONNREFUSED <IP_ADDRESS>:3306" when I attempt to login to MySQL