An issue to test magic eight ball responses

Want to get an 🎱 's opinion?
Just write a comment, starting with 🎱 (:8ball:)!
Ask and you shall receive! 🧙

🎱 Should I add tests to this repo?

🎱 Would this work with node18?

🎱 Would this work with node18?

🎱 Will anyone notice that I deleted a previous comment?

🎱 Do snails have tails?


"connect" and "disconect" events

Hey, guys. In the process of developing my application I had a problem. It seems that the events "connect" and "disconect" described in the code are never called by provider, so there is no direct way to track connection and disconnection of wallet (only if you use event accountsChanged, which doesn't help the situation much).

The private method onConnect() is never called, so the connectFlag is left undefined, which breaks isConnected() method.
For this reason the method isConnected() does not work, always returning undefined value (although according to the type description, a Boolean variable is expected in the output).

Also, because of this problem, it is impossible to track whether a wallet is initially connected to app without calling the "mina.requestAccounts()" method, which is undesirable in many cases.

Why not determine the connection status directly through window.mina.requestAccounts?


unmi V2 pro printing 'r' before actual receipt text

I am using a Sunmi V2 Pro device which has an integrated printer.
I am using your ESC POS library to print receipts and having the following issue.
Only on these sunmi devices, there is a preceding 'r' printed before the 1st character.

Oh I think your device is similar to one of mine: Its not a real ESC POS printer. Its a "copy".
Please try this plugin instead: https://github.com/paystory-de/cordova-plugin-iposprinter
Or maybe your printer manufacturer have a custom API implementation.
Its a bit complicated sometimes.
Seems that only this "integrated" printers are affected by this.
If we're using real POS Printers we never had issues with that.
But the integrated also prints two new lines instead of one.
Dont know why the translation is not working so good.
Let me know if its work with IPosPrinterService plugin above.


Use relative paths to allow for importing

Hello,
In order to import this plugin into the backend plugin, there's a few import paths that I'm looking to change to relative paths.
I'd be happy to discuss it if there are concerns.

Thanks!


ProviderOperation to restrict access to use Firewall tab in Cosmos DB

Hello,
In order to restrict access to a user from using Firewall tab to add or remove IPs of selected networks for IP  restrictions, which ProviderOperation would be better to create a role to deny access and assign it to specific user so that they cannot be able to modify the IPs in firewall tab for Cosmos DB. I do not see any ProviderOperation related to Firewall for Cosmos DB.
Thanks
Chaitanya Alladi.

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

ID: 5d6fa068-69da-7a32-6479-1145f14f2ed2
Version Independent ID: 952c3241-3f4c-b319-6457-02701b24d46d
Content: Azure Cosmos DB firewall support & IP access control
Content Source: articles/cosmos-db/firewall-support.md
Service: cosmos-db
GitHub Login: @SnehaGunda
Microsoft Alias: sngun

@chaitualladi Are asking or are you making a recommendation about the Azure Portal to enforce user access control to the firewall settings? I interpret this GitHub issue as stating there is no way to protect the firewall settings configured in the Azure Portal. Please correct me if I am wrong. I am seeking clarity so that I can take the next steps.
Thank you,
Mike

@Mike-Ubezzi-MSFT i'm trying to provision a Cosmos DB to my customer but i do not want to give my customer the privileges to modify or add any firewall settings. So if i give them just read access at account level, that might affect them from creating collections i believe. So i just want to know if there is way that i can disable the firewall tab alone by creating a role with respective provideroperation of firewall for cosmos. I just want the firewall change access to be just with my team, who provisions it.

@chaitualladi There is no way to hide the firewall tab, and as you have mentioned, setting the account to read-only will disable the user from making any firewall changes but, it will also disable their ability to accomplish other tasks, such as creating new collections, etc.
Something to think about. If the user has read-only in the Azure Portal, it doesn't mean that they can't create new collections programmatically. This might be an option for you?!

@Mike-Ubezzi-MSFT Thanks Mike, i will try provisioning and check the possibility as you suggested.


ADBDEV-4940-81: Add assertion to return from GetReqdRelationalProps.

Add assertion to return from GetReqdRelationalProps.
The GetReqdRelationalProps method can return NULL because it returns
dynamic_cast which can return NULL, so I added assertion.

There is only one assertion, so change description from plural to singular

There is only one assertion, so change description from plural to singular

changed


Double-check STM memory ranges

[ ] F0
[ ] F1
[ ] F2
[x] https://github.com/probe-rs/probe-rs/pull/2552
[ ] F4
[ ] F7
[ ] G0
[ ] G4
[ ] H5
[ ] H7
[ ] H7RS
[ ] L0
[ ] L1
[ ] L5
[ ] U0
[ ] U5
[ ] WB
[ ] WBA
[ ] WL

STM packs are rather low quality, they tend to have multiple incorrect/missing values. We should go through all of them and track here which ones have been checked. Pack updates then need to be reviewed more carefully to not regress the corrected families.
Please avoid overlapping work. If you want to work on a family and can't finish in a few hours, make sure to drop a comment here.
Helpful links:

https://gist.github.com/Dirbaio/f86a015fb276312d57ece70e303a1db2 - correct flash/sram sizes, but may not include extra memory regions, like CCM

https://gist.github.com/Dirbaio/f86a015fb276312d57ece70e303a1db2 - correct flash/sram sizes, but may not include extra memory regions, like CCM

this is NOT always correct either :smiling_face_with_tear: . The data comes from stm32-data, see https://github.com/embassy-rs/stm32-data/issues/301


Feature Request: Add folder support for metadata_path config

Discussion here: https://github.com/meisnate12/Plex-Meta-Manager/discussions/357

its already added to develop lol

Having some issues getting this working. I set the folder path the same way it was setup for my asset_directory: path
I wasn't sure if it would automatically dig through subdirectories or not (it would be cool if it could). The file I'm trying to access is at config/shows/quickfixes/______.yml
config.yml
libraries:
  Shows:
    metadata_path:
      - folder: config/shows

meta.log
[2021-08-14 01:39:52,575] [plex_meta_manager.py:111]  [INFO]     |           Version: 1.11.3-beta5                                                                    |
[2021-08-14 01:39:52,575] [util.py:184]               [INFO]     |====================================================================================================|
[2021-08-14 01:39:54,804] [config.py:339]             [INFO]     | Connecting to Shows Library...                                                                     |
[2021-08-14 01:39:54,833] [meta.py:19]                [INFO]     | Loading Metadata Folder: config/shows                                                              |
[2021-08-14 01:39:54,834] [util.py:137]               [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "/modules/meta.py", line 47, in __init__
                                                                 |     content = open(path, encoding="utf-8")
                                                                 | IsADirectoryError: [Errno 21] Is a directory: 'config/shows'
                                                                 |
[2021-08-14 01:39:54,834] [plex.py:265]               [ERROR]    | YAML Error: [Errno 21] Is a directory: 'config/shows'
[2021-08-14 01:39:54,834] [plex.py:268]               [INFO]     |
[2021-08-14 01:39:54,835] [util.py:137]               [DEBUG]    | Traceback (most recent call last):
                                                                 |   File "/modules/config.py", line 410, in __init__
                                                                 |     library = Plex(self, params)
                                                                 |   File "/modules/plex.py", line 269, in __init__
                                                                 |     raise Failed("Metadata File Error: No valid metadata files found")
                                                                 | modules.util.Failed: Metadata File Error: No valid metadata files found
                                                                 |
[2021-08-14 01:39:54,835] [util.py:134]               [ERROR]    | Metadata File Error: No valid metadata files found
[2021-08-14 01:39:54,835] [config.py:416]             [INFO]     | Shows Library Connection Failed
[2021-08-14 01:39:54,835] [util.py:184]               [INFO]     |====================================================================================================|
[2021-08-14 01:39:54,836] [util.py:137]               [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "//plex_meta_manager.py", line 122, in start
                                                                 |     config = Config(default_dir, config_path=config_path, is_test=is_test,
                                                                 |   File "/modules/config.py", line 495, in __init__
                                                                 |     raise Failed("Plex Error: No Plex libraries were connected to")
                                                                 | modules.util.Failed: Plex Error: No Plex libraries were connected to
                                                                 |
[2021-08-14 01:39:54,836] [plex_meta_manager.py:128]  [CRITICAL] | Plex Error: No Plex libraries were connected to
[2021-08-14 01:39:54,836] [plex_meta_manager.py:129]  [INFO]     |
[2021-08-14 01:39:54,836] [util.py:184]               [INFO]     |====================================================================================================|
[2021-08-14 01:39:54,836] [util.py:188]               [INFO]     |                                            Finished Run                                            |
[2021-08-14 01:39:54,836] [util.py:188]               [INFO]     |                                         Run Time: 0:00:02                                          |
[2021-08-14 01:39:54,836] [util.py:192]               [INFO]     |====================================================================================================|

And here's my second attempt:
config.yml
libraries:
  Shows:
    metadata_path:
      - folder: config/shows/quickfixes

meta.log
[2021-08-14 01:45:35,297] [plex_meta_manager.py:111]  [INFO]     |           Version: 1.11.3-beta5                                                                    |
[2021-08-14 01:45:35,297] [util.py:184]               [INFO]     |====================================================================================================|
[2021-08-14 01:45:37,971] [config.py:339]             [INFO]     | Connecting to Shows Library...                                                                     |
[2021-08-14 01:45:37,994] [meta.py:19]                [INFO]     | Loading Metadata Folder: config/shows/quickfixes                                                   |
[2021-08-14 01:45:37,995] [util.py:137]               [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "/modules/meta.py", line 47, in __init__
                                                                 |     content = open(path, encoding="utf-8")
                                                                 | IsADirectoryError: [Errno 21] Is a directory: 'config/shows/quickfixes'
                                                                 |
[2021-08-14 01:45:37,995] [plex.py:265]               [ERROR]    | YAML Error: [Errno 21] Is a directory: 'config/shows/quickfixes'
[2021-08-14 01:45:37,995] [plex.py:268]               [INFO]     |
[2021-08-14 01:45:37,996] [util.py:137]               [DEBUG]    | Traceback (most recent call last):
                                                                 |   File "/modules/config.py", line 410, in __init__
                                                                 |     library = Plex(self, params)
                                                                 |   File "/modules/plex.py", line 269, in __init__
                                                                 |     raise Failed("Metadata File Error: No valid metadata files found")
                                                                 | modules.util.Failed: Metadata File Error: No valid metadata files found
                                                                 |
[2021-08-14 01:45:37,996] [util.py:134]               [ERROR]    | Metadata File Error: No valid metadata files found
[2021-08-14 01:45:37,996] [config.py:416]             [INFO]     | Shows Library Connection Failed
[2021-08-14 01:45:37,996] [util.py:184]               [INFO]     |====================================================================================================|
[2021-08-14 01:45:37,996] [util.py:137]               [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "//plex_meta_manager.py", line 122, in start
                                                                 |     config = Config(default_dir, config_path=config_path, is_test=is_test,
                                                                 |   File "/modules/config.py", line 495, in __init__
                                                                 |     raise Failed("Plex Error: No Plex libraries were connected to")
                                                                 | modules.util.Failed: Plex Error: No Plex libraries were connected to
                                                                 |
[2021-08-14 01:45:37,996] [plex_meta_manager.py:128]  [CRITICAL] | Plex Error: No Plex libraries were connected to
[2021-08-14 01:45:37,997] [plex_meta_manager.py:129]  [INFO]     |
[2021-08-14 01:45:37,997] [util.py:184]               [INFO]     |====================================================================================================|
[2021-08-14 01:45:37,997] [util.py:188]               [INFO]     |                                            Finished Run                                            |
[2021-08-14 01:45:37,997] [util.py:188]               [INFO]     |                                         Run Time: 0:00:02                                          |
[2021-08-14 01:45:37,997] [util.py:192]               [INFO]     |====================================================================================================|

I also tried changing - folder: to - directory: based on the error message. That just said this, which made me think that wasn't the issue.
| Metadata File Error: No valid metadata files found                                                 |

should have this fixed


validator-improvements CSH-5678: Add several validator checks on icon…

…s, doc-media and properties.
Check if icons have SVG or PNG format;
check if PNG files are transparent;
check that a component has only one doc-media directive;
check media-properties control type for doc-media properties

How's this?


Add back an empty file to xwalk_{core,shared}_library/src

This is a regression introduced in 4b928d3 ("[Android] Rewrite
generate_xwalk_core_library.py"), where we stopped adding README.md to
the src/ in the projects we create and just left src/ as an empty
directory.
That works fine when calling app-tools and passing the
xwalk_app_template directory to it, but not when using a zipped
version, as app-tools does not create the empty directory and the build
fails like this:
/Users/fbalestr/Devel/adt/sdk/tools/ant/build.xml:597: The following error occurred while executing this line:
/Users/fbalestr/Devel/adt/sdk/tools/ant/build.xml:649: The following error occurred while executing this line:
/Users/fbalestr/Devel/adt/sdk/tools/ant/build.xml:655: /private/var/folders/rv/6r78mqbs5cl8zysfzz_1vmp40000gp/T/NsLBXU/org.foo.bar/prj/android/xwalk_core_library/src does not exist.

BUG=XWALK-7332

@lincsoon @darktears @heke123

lgtm


⚠ ESPN has degraded performance

In 5292b58, ESPN (https://espn.com) experienced degraded performance:

HTTP code: 200
Response time: 6056 ms

Resolved: ESPN performance has improved in 5c252cb.


Simple interface throws warning, generates wrong code

First of all, thank you all for your great work!
I tried to process a simple interface:
interface bus_if;
    logic out;
    modport master(output out);
endinterface

module bus_master (bus_if.master bus, input logic din);
    assign bus.out = din;
endmodule

module top (input logic din);
    bus_if bus();
    bus_master m0(bus, din);
endmodule

In the stage Generating RTLIL representation for module \bus_master'.` I get the warning:
Warning: Identifier \bus.out' is implicitly declared.`
The output that is written by Yosys is not correct, bus is inout and there is no output for bus.out.
/* Generated by Yosys 0.33+65 (git sha1 3319fdc46, g++ 12.2.0-14 -fPIC -Os) */

module bus_if();
endmodule

module bus_master(bus, din);
  inout bus;
  wire bus;
  wire \bus.out ;
  input din;
  wire din;
  assign \bus.out  = din;
endmodule

module top(din);
  input din;
  wire din;
endmodule

@mole99 , the plugin does not support SystemVerilog interfaces. Surelog (the parser) does. But a critical piece is missing here.

Yosys obviously does not support them either. The plugin should transform them into modules/structs.

I see, thanks for the clarification! Yes, Yosys does not support them, that's why it would be great if synlig does one day :D


when adding too much section titles, the toc function is mess up

environment：
hexo: 3.7.1
hexo-cli: 1.1.0
os: Windows_NT 10.0.17134 win32 x64
http_parser: 2.8.0
node: 8.12.0
v8: 6.2.414.66
uv: 1.19.2
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.32.0
napi: 3
openssl: 1.0.2p
icu: 60.1
unicode: 10.0
cldr: 32.0
tz: 2017c
chrome: 70.0.3538.67
theme version: lasted commitment 13 May 2018

about 56 section titles ( include h1 to h4) i'm using, when i adding the fiftyth section, these peoblem came out. Any soultuion?
please see the problem article link https://www.silenttwice.com/44.html

Sorry, I have no idea why it happens too...


Implement Finalize() function

This is the first one of a series of PR that I intend to submit in order to reduce the gap between this repository and a separate fork I've been using until now and that has diverged from this one over time. My intention is to reach feature parity with that fork and start using this one as the canonical go-yara package.

Awesome, thank you in advance! BTW, I am working on the Scanner API, so I expect to release a go-yara 1.1 (or 2.0, depending on whether I add breaking changes) in the next few days.

I've implemented the Scanner API in https://github.com/plusvic/go-yara/blob/master/scanner.go. You can take ideas from there or copy the code altogether. That was one of the PR I was planning to submit.

I think this should be solved by applying PR #33. I had a similar issue in the past and the problem was that the Compiler wasn't being explicitly destroyed in the Compile function. This specific commit worked for me:
https://github.com/hillu/go-yara/commit/0babae5f5200ac8a07a5606824ae70d629c0e0f9

I have integrated the last change in bc03d0a3e173a743d8ae247719817fcbd838c496. Closing this PR. Thank you!


Simplify pypi publish workflow trigger.

PYPI action wasn't triggering.  This part of the 1.0.5 release.

@supermarkion @SpacemanPaul this won't work! This workflow takes wheels from the other workflow and only runs if testing and packaging was successful. What was probably wrong in there before is branch condition, you want to push from develop not from py-publish

@supermarkion @SpacemanPaul this won't work! This workflow takes wheels from the other workflow and only runs if testing and packaging was successful. What was probably wrong in there before is branch condition, you want to push from develop not from py-publish

Hi, @Kirill888 . Thanks a lot for your information. We will check it.


Expose main lwt promise

Naboris.listen encapsulates the Lwt_main.runing of the promise.  There should be a function to get the raw promise allowing the user to manage his own top level Lwt_main.run
Something like Naboris.listen_promise: int serverConfig -> 'a Lwt

in 0.0.7 Naboris.listen was renamed to Naboris.listenAndWaitForever and there is a new Naboris.listen which returns an lwt promise


Try and replace custom dev-server with webpack-dev-server

Originally, back in the day, we came up with our own dev-server implementation because webpack-dev-server because at that time, it was lacking some features, like the error-overlay.
Since then, it hs improved significantly, and I'm not aware of any particular noteworthy advantage of your custom devserver over webpack's.
So I'll look into this a bit more, and if there really is no advantage left, I will work out a PR to switch the template to webpack-dev-server.
This will remove the maintainance burden for the dev server from this template and also makes it more approachable for people already familiar with webpack-dev-server.
TODO

[x] Check feature parity (sucess!)
[x] change webpack config and package.json scripts to use webpack-dev-server
[x] Test this setup.
[x] remove dead code.
[x] review and close PRs / notify contributors of those PRs that may still target the now removed dev-server code.
[ ] Review & test

#  I'm a rookie, and I follow a video to learn to do app, and I edit and modify the dev-server.js in the video. I don't have this document. What do I do?

I don't know what you are told to change, so I can't say what that means with the new dev server.


[Feature Request] Creation Fish Shell colors

Would it be possible to add a new color config which can be used in fish shell?
You could generate the fish_variables file which looks like:
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR fish_color_autosuggestion:64DF85
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:00BF32
SETUVAR fish_color_comment:5C9900
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:8EEB00
SETUVAR fish_color_error:60B9CE
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:04819E
SETUVAR fish_color_quote:206676
SETUVAR fish_color_redirection:7CB02C
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline

Should be easy, yes.

Very nice! Have big thanks!

Would be very nice to have it!

I sadly don't have the time to mess around with fish currently. It's very easy to add a template file to pywal.
Here's an example template file:
# Shell variables
# Generated by 'wal'
wallpaper="{wallpaper}"

# Special
background='{background}'
foreground='{foreground}'
cursor='{cursor}'

# Colors
color0='{color0}'
color1='{color1}'
color2='{color2}'
color3='{color3}'
color4='{color4}'
color5='{color5}'
color6='{color6}'
color7='{color7}'
color8='{color8}'
color9='{color9}'
color10='{color10}'
color11='{color11}'
color12='{color12}'
color13='{color13}'
color14='{color14}'
color15='{color15}'

All you need to do is use the color markers ({color1} etc) and create a file in pywal/templates. Good luck! If you need any help I'm here.

For anyone too lazy to write their own template, here's mine, saved under ~/.config/wal/templates/colors.fish:
# set fish_color_normal normal
set fish_color_normal {foreground.strip}
# set fish_color_command 005fd7
set fish_color_command {color2.strip}
# set fish_color_param 00afff
set fish_color_param {color1.strip}
# set fish_color_redirection 00afff
set fish_color_redirection $fish_color_param
# set fish_color_comment 990000
set fish_color_comment {color8.strip}
set fish_color_error ff0000
# set fish_color_escape 00a6b2
set fish_color_escape {color5.strip}
# set fish_color_operator 00a6b2
set fish_color_operator $fish_color_escape
set fish_color_end {color4.strip}
set fish_color_quote {color6.strip}
set fish_color_autosuggestion 555 brblack
set fish_color_user brgreen
# set fish_color_host normal
set fish_color_host $fish_color_normal
set fish_color_valid_path --underline
set fish_color_cwd green
set fish_color_cwd_root red
set fish_color_match --background=brblue
set fish_color_search_match bryellow --background=brblack
set fish_color_selection white --bold --background=brblack
set fish_color_cancel -r
set fish_pager_color_prefix white --bold --underline
set fish_pager_color_completion
# set fish_pager_color_description B3A06D yellow
set fish_pager_color_description $fish_color_quote yellow
set fish_pager_color_progress brwhite --background=cyan
set fish_color_history_current --bold

Commented lines are defaults that have been changed. Because they are universal variables, resetting them can be a pain, so I've left the defaults in the file for reference. Also note that some variables haven't been changed and still hold their default values.
Then in config.fish, I simply source ~/.cache/wal/colors.fish.

@ForgottenUmbrella Nice, could you add it to the templates directory ?

My template isn't guaranteed to produce readable results (in fact I have encountered text that is too dark multiple times), which can be problematic since it makes reverting difficult. I'd like to hold off on adding it until improvements have been made to improve readability.

My template isn't guaranteed to produce readable results (in fact I have encountered text that is too dark multiple times), which can be problematic since it makes reverting difficult. I'd like to hold off on adding it until improvements have been made to improve readability.

I would appreciate it if you would like to share the improved version!

@mirthestam I never got around to improving it myself, but check out @mysy00 's pull request #568 if you can't wait for it to be merged.

It changes nothing for me. After source .cache/wal/colors.fish nothing happens ):


Build improvements

This is a continuation of #1017, which Jenkins refuses to pull from. This PR does a number of things.
Builds should be far faster on Linux through dynamic linking of the terrier and test binaries.

This is because we do dynamic linking on Linux now. On macOS, the linker is remarkably fast and we can get by with static linking just fine. This is good, because we can't actually do dynamic linking on macOS without seemingly unfixable warning spam.

Builds should "just work" work on the latest version of mac OS

This was a pain to troubleshoot, but builds work flawlessly on the dev machine with tests passing.

Clang tooling (tidy and format) are found automatically on more Linux distributions

At least on Arch, clang-tidy and clang-format were never found automatically. This was a huge pet-peeve of mine, so I figured I'd fix it while touching so much build stuff.

We now statically link spdlog

This reverts the explicit template instantiation pull request and imports (in header only form) the fmt library. This should be a net-improvement in build speed--especially with ccache and/or --but more importantly, it lets us use  ccache, and, later, with the ability to just install the spdlog binaries.

We now use spdlog version 1.7.0 instead of 1.0.0

spdlog is now faster, more stable, and more powerful. (See, for example, the features added in 1.3.0.)

We now pull in an up-to-date version of CMake on Linux machines

By using pip to manage CMake for us instead of apt, we get to use new CMake versions and features. As a nice bonus, we get CMake version/feature consistency on both Mac and Linux, so we don't have to ever think about about build differences due to CMake versions. (Not that that was ever much of a concern.)

We now delegate dependency management for spdlog to CMake

Removes ~14,000 lines of code from the repository. Uses the "new" FetchContent CMake feature for idiomatic management of dependencies. Currently configured to pull spdlog 1.7.0 from the official repository.

This is probably ready for review, JIT bug aside.

If there's a breakage, how hard would it be to rollback?


Update eslint-plugin-html

Migration to v4
https://github.com/BenoitZugmeyer/eslint-plugin-html/#migration-to-v4

Can be closed as this already done


terminal customization problem

failed in trailing commas,windows terminal is using the default settings, go to line 52,and column 24-error
whenever trying to change the background image.
whats the solution of this.

We cannot help you with settings errors if you do not share your settings file.

This is the problem

Because this is JSON you must use \\ or / instead of \. It is because \ is an “escape character”.

Maybe this would be a common mistake on Windows, since default Windows path format is different. A better error message would be helplful, maybe even some special check about specifically this mistake...


Add Mailing List banner

Adds the mailing list banner for mobile and desktop and implements sending the data to MailChimp
Main styling done by @ILikeTeaALot, adjustments then made for mobile.
Checked on iPhone sizes, Samsung A50 and kinda works on iPad.
Closes #17.

Ready for review!

Whoops! Don't review, as code refactors are needed (lots of duplicate code between the desktop and mobile mailing lists)


Defenitely a new, unrelated, and incomprehensible PR title her

Apparently i can skip this PR too.

Closed, please reopen it later.

Closed, please reopen it later.


About Training

When i want to train your ENet on my device, i run with following command:
python main.py -m train --save-dir ./camvid_model/ --name ENet --dataset camvid --dataset-dir CamVid/  --with-unlabeled  --imshow-batch
But I meet the followed problems.
Traceback (most recent call last):
File "main.py", line 291, in
loaders, w_class, class_encoding = load_dataset(dataset)
File "main.py", line 110, in load_dataset
color_labels = utils.batch_transform(labels, label_to_rgb)
File "/home/amax/linrui/PyTorch-ENet-master/utils.py", line 21, in batch_transform
transf_slices = [transform(tensor) for tensor in torch.unbind(batch)]
File "/usr/local/lib/python2.7/dist-packages/torchvision/transforms/transforms.py", line 49, in call
img = t(img)
File "/home/amax/linrui/PyTorch-ENet-master/transforms.py", line 91, in call
color_tensor[channel].masked_fill_(mask, color_value)
RuntimeError: expand(torch.ByteTensor{[3, 360, 480]}, size=[360, 480]): the number of sizes provided (2) must be greater or equal to the number of dimensions in the tensor (3)
The label.size() is [B,3,H,W], And how to translate to [B,classnumber,H,W].  I didn't find in your code?
Thank you

The CamVid labels from the authors of SegNet already come with the class numbers instead of RGB color. The label should be of dimension [H, W]. Note also that this is what the loss function expects to get as the label as described here.
So, unless you're not using the CamVid dataset from SegNet you wouldn't need to go from [3,H,W] to [classnumber,H,W].

3Q~ I will download the CamVid dataset from SegNet again and try to run your code.
林瑞
Lin Rui
哈尔滨工业大学（深圳）
Harbin Institute of Technology(Shen Zhen)
计算机科学与技术
Computer Science and Technology
<EMAIL_ADDRESS>TEL:18126254216
------------------ 原始邮件 ------------------
发件人: "David<EMAIL_ADDRESS>发送时间: 2019年4月28日(星期天) 凌晨1:33
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [davidtvs/PyTorch-ENet] About Training (#25)
The CamVid labels from the authors of SegNet already come with the class numbers instead of RGB color. The label should be of dimension [H, W]. Note also that this is what the loss function expects to get as the label as described here.
So, unless you're not using the CamVid dataset from SegNet you wouldn't need to go from [3,H,W] to [classnumber,H,W].
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

3Q~ I will download the CamVid dataset from SegNet again and try to run your code.

I meet the same problem.But I'm using the CityScapes dataset,when I choose the 'test',the image size() is [B,3,H,W],so I can't continue to run. I don't know how to do ,can you help me ? Thank you

Hi. I am trying to use other dataset so do i need to translate from [3,h,w] to [classnumber, h, w]? and could you tell me how to do that?

@xxxxxxxiao you need to convert from [3,h,w] to [h,w], this is what the loss function expects. Each pixel is 0≤targets[i]≤C−1, where C is the number of classes.
As to how you make the conversion, I would start with the following:
from PIL import Image
import numpy as np

img = np.array(Image.open("path"))
color_to_class = [(50, 50, 50), ...]
target = np.zeros(img.shape[:-1])
for c, color in enumerate(color_to_class):
    target = np.any(img == color, axis=-1) * c


[Feature Request] add Flow support

Adding static type checking to js would be beneficial for large app development.

@chenzhekl
To be honest with you, there probably won't be any official Flow support in electron-vue unless vue brings greater support in vue-cli@3 that was mentioned at VUECONF 2017's keynote. I haven't seen any official announcement of that, but I do know vue is leading more towards TypeScript. Going to close this for now, but will keep in mind for the future.
Have you tried manually adding this into your project? This article should provide enough direction if you are interested. https://alligator.io/vuejs/components-flow/


Make error handling easier (separate exceptions for JSON and non-JSON responses)

After a bit of experience with the current error handling in Grac, we found another problem: Currently, the same exception (Grac::Exception::ClientException) is raised when both an error response is valid JSON and when it's any other format, like an HTML page from a load balancer indicating a 503. exception.body contains the parsed JSON (mostly a Hash) in one case and a string with the plain response in the other case.
That makes error handling harder - instead of only checking the error message in the response body, we also have to check that the response body could be parsed as JSON at all, so our error handling often looks like this:
begin
  client.path('/v1/foo').post(foo: 'bar')
rescue Grac::Exception::ClientException => e
  unless e.body.kind_of?(Hash)
    raise e
  end
  case e.body['code']
  when 'invalid_parameters'
      # [...]
  else
    raise e
  end
end

We're going to solve this by raising a different exception that doesn't inherit from ClientException. We'll name it ErrorWithInvalidContent and it's going to inherit directly from StandardError.
With this, there's no need to catch the ErrorWithInvalidContent, we can treat it as a common exception and let our standard exception handling deal with it.
With this change, the code above will look like this (the type check for .body is no longer necessary):
begin
  client.path('/v1/foo').post(foo: 'bar')
rescue Grac::Exception::ClientException => e
  case e.body['code']
  when 'invalid_parameters'
      # [...]
  else
    raise e
  end
end

This change would technically change Grac's API, but with 1 star on GitHub, there shouldn't be too many outside users affected by it.

Fixed by #14.


LSP-ruff on Windows: How to Set Python Interpreter Path

I am using LSP and LSP-ruff packages in Sublime Text on Windows and encounter the following issues:
When I open Sublime Text, LSP-ruff fails to start with the error:

Questions:

How can I specify the absolute path to a Python interpreter in LSP-ruff.sublime-settings to ensure LSP-ruff can find it?
What settings should I add in LSP-Ruff.sublime-settings to enable LSP-ruff to provide code completions in Sublime Text?

Thank you for any guidance on configuring these settings!

This should be fixed in the latest version of lsp-utils dependency. Try restarting ST to trigger the update.

This should be fixed in the latest version of lsp-utils dependency. Try restarting ST to trigger the update.

Doesn't work i tried restarting it several times.

Try explicitly triggering update with "Package Control: Satisfy dependencies" (or "Package Control: Upgrade Package") form the command palette.

@rchl Thanks a lot this fixed the issue! Last question, can i configure LSP-ruff to provide code completions in Sublime Text?

No, ruff is a linter, it doesn't provide code intelligence. Try LSP-pyright for that.


Improve code coverage for pinot-common

Description
This adds some tests for uncovered lines in pinot/common/function and updates .codecov.yml to ignore all generated files in pinot/common/request. This works towards the goal of getting coverage for pinot-common up to 75%.

Codecov Report

Merging #5986 into master will decrease coverage by 22.65%.
The diff coverage is 50.34%.

@@             Coverage Diff             @@
##           master    #5986       +/-   ##
===========================================
- Coverage   66.44%   43.79%   -22.66%
===========================================
  Files        1075     1195      +120
  Lines       54773    63018     +8245
  Branches     8168     9659     +1491
===========================================
- Hits        36396    27599     -8797
- Misses      15700    32976    +17276
+ Partials     2677     2443      -234

Flag
Coverage Δ

#integration
43.79% <50.34%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ot/broker/broker/AllowAllAccessControlFactory.java
100.00% <ø> (ø)

.../helix/BrokerUserDefinedMessageHandlerFactory.java
52.83% <0.00%> (-13.84%)
:arrow_down:

...org/apache/pinot/broker/queryquota/HitCounter.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...che/pinot/broker/queryquota/MaxHitRateTracker.java
0.00% <0.00%> (ø)

...ache/pinot/broker/queryquota/QueryQuotaEntity.java
0.00% <0.00%> (-50.00%)
:arrow_down:

...ava/org/apache/pinot/client/AbstractResultSet.java
26.66% <0.00%> (-30.48%)
:arrow_down:

.../main/java/org/apache/pinot/client/Connection.java
22.22% <0.00%> (-26.62%)
:arrow_down:

.../org/apache/pinot/client/ResultTableResultSet.java
24.00% <0.00%> (-10.29%)
:arrow_down:

...apache/pinot/common/function/FunctionRegistry.java
78.78% <ø> (ø)

...rg/apache/pinot/common/function/FunctionUtils.java
94.44% <ø> (ø)

... and 1115 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8900ebb...1a307eb. Read the comment docs.

This coverage report doesn’t seem correct. It reports drops in coverage for files I haven’t touched?


[WIP] Implementing run function logic in library

Aims to close #13.

Could you please add an .mli file for api_watch_diff?

Sure @NathanReb! I will start working on it right away.


Fix typo in managed cleanup script log message

Description of the change:
Fix minor typo in log message: CustomResourceDefination --> CustomResourceDefinition
Motivation for the change:
This script is now documented in the RHACM docs, so we should have it as polished as possible.

Thanks, this looks good. I don't have permission to merge 😂  @TheRealHaoLiu @gurnben would you like to review & merge

I don't know, I think the typo adds character but I guess we can let it in!  😆


release activities for <IP_ADDRESS>

<IP_ADDRESS> has been released. Should we close this, @korydraughn?

Good catch. Closing.


Remove version: 8x8.VirtualOfficeDesktop version <IP_ADDRESS>

Consolidating into 8x8.Work. Related to: #135119
Microsoft Reviewers: Open in CodeFlow

Sequence contains no elements

https://github.com/microsoft/winget-pkgs/issues/133371

(Automated response - build 655.)

Automatic Validation ended with:

2024-01-25T02:04:48.0857424Z Processing manifest: manifests\8\8x8\VirtualOfficeDesktop\<IP_ADDRESS>
2024-01-25T02:04:48.0868428Z -----------------------------------------------------
2024-01-25T02:04:48.0872853Z Status: Started
2024-01-25T02:04:48.0881186Z Manifest file is Deleted
2024-01-25T02:04:48.3315002Z Status: Completed
2024-01-25T02:04:48.3326180Z ##[error] Result: Failed
2024-01-25T02:04:48.3378426Z ##[error] Sequence contains no elements
2024-01-25T02:04:48.3938516Z ##[error]Manifest Validation Failed

(Automated response - build 655.)

URL: https://vod-updates.8x8.com/ga/work-64-msi-v8.8.4-3.msi
Status Code: 200
(Automated message - build 656)


Update GH Actions to align to new guidelines

Description
This PR changes the dramatic set-output::stuff to the new >> $GITHUB_OUTPUT, in order to remove deprecation warnings and align to new GH Actions format. This also updates retrieve-build-matrix custom action to latest version of @actions/core.

Many many thanks, @QcFe !

@QcFe Since you are playing with GH Actions, it might be worth to bump a few actions, to remove also the warnings about the deprecated node version (and probably also the remaining ones about save-state)...

/deploy-staging

/merge


[Question]: Multiple questions and answers about the python api failed

Describe your problem
Here's my code:

I found no assistant.get_prologue(). create_session() generates an opening that is not a custom opening in the front-end chat configuration, but instead becomes a Hi! I am your assistant, can I help you? Most importantly, you can only do a few Q&A sessions and then report an error:

What's your code version? Maybe you could just copy the 'modules/session.py' in github

@ZxnSnowy If your issue isn't resolved, please re-open it.


minetest: 5.7.0 -> 5.8.0, cleanup

Description of changes

https://blog.minetest.net/2023/12/04/5.8.0-released/
irrlichtmt: 1.9.0mt10 -> 1.9.0mt13

Use finalAttrs
Touch support is now unconditional

minetest: 5.7.0 -> 5.8.0, cleanup

Inline the generic builder, since we don't build multiple versions
anymore
Remove unused patches, flags, and overrides
Remove minetest_game, it has been debundled
Use finalAttrs
Use lib.cmake*
Add a top-level attribute for the touch variant
Define the server- and client-only variants through overrides in
all-packages.nix
Move the *_5 aliases to top-level/aliases.nix
General cleanup

Closes NixOS#273207
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@GrahamcOfBorg build minetestclient minetestserver minetest-touch

Result of nixpkgs-review run on x86_64-linux 1

6 packages built:

irrlichtmt
irrlichtmt.dev
minetest
minetest-touch
minetestclient
minetestserver

Thanks for the cleanup! :heart:


gifv file with imgur link not playing on mobile

When you click on a thumbnail of gifv file on mobile. It 'tries' to play it if it's imgur but it can't. It doesn't seem to be able to resize too. So I think it's better to either make it work or go to the outgoing link if it's mobile.

Plus, I found out it's not just gifv file on imgur, it happens on youtube thumbnail too (not always but pretty often).

Actually I'm just going to remove the video light box for non-youtube and vimeo links, since they're not well supported by Embedly and FitVids.

Nice!


Explain how to pre-create a filter

I just wanted to find out if something like this was possible:
effect = drawing.defs().filter(function(add) {
// ...
})

drawing.rect().filter(effect)

and turns out it is, cool! (Thanks for that :) )
I think it'd be cool to add this to the documentation, as I think that it is a rather common use case, and it's more efficient to just do .filter(effect) instead of recreating the same filter over and over. (Maybe it should even be shown as the prefered way?)
(This is an issue not a pull request because I don't really know where it's best to add this.)

as far as im aware there are multiple ways to create a filter element.
you can use the standard way
image.filter(function(add){
    //filter stuff goes here
    var color = add.flood('black');
    var offset = add.offset(x,y).in(color);
    var blur = add.gaussianBlur(3).in(offset);
    var merge = add.merge(blur,filter.source);
})

or you can create a filter that is not attached to any element
var filter = new SVG.Filter(function(add){
    //filter stuff goes here
    var color = add.flood('black');
    var offset = add.offset(x,y).in(color);
    var blur = add.gaussianBlur(3).in(offset);
    var merge = add.merge(blur,filter.source);
})

//or you could add it here
var color = filter.flood('black');
var offset = filter.offset(x,y).in(color);
var blur = filter.gaussianBlur(3).in(offset);
var merge = filter.merge(blur,filter.source);

also when you call the rect.filter(myFilter) it will add myFilter to the the defs section of the svg

Thanks - the new SVG.Filter way is more elegant than my drawing.defs way.
However: This bug is about adding this information to the documentation

This is no bug. Also this is the standard way of creating objects in
svg.js. I thought about it as basic knowledge but feel free to add that to
the documentation! :)
Marian<EMAIL_ADDRESS>schrieb am Mo., 22.02.2016, 10:09:

Thanks - the new SVG.Filter way is more elegant than my drawing.defs way.
However: This bug is about adding this information to the documentation
—
Reply to this email directly or view it on GitHub
https://github.com/wout/svg.filter.js/issues/5#issuecomment-187081828.


Support writing features using filter aggregation

Description
Previously, when writing a feature using filter aggregation, we failed with EndRunException: Failed to parse aggregation.. due to missing logic parsing the result. This PR adds the parsing logic.
Testing done:

added unit tests
end-to-end testing.

Detector with filter aggregation:
{
    "name": "Second-Test-Detector-4",
    "description": "ok rate",
    "time_field": "snapshotAt",
    "indices": [
        "lse20-*"
    ],
    "feature_attributes": [
        {
            "feature_id": "deny_max",
            "feature_name": "deny max",
            "feature_enabled": true,
            "importance": 1,
            "aggregation_query": {
                "t_shirts": {
                    "filter": {
                        "bool": {
                            "should": [
                                {
                                    "term": {
                                        "issueType": "foo"
                                    }
                                },
                                {
                                    "term": {
                                        "issueType": "bar"
                                    }
                                }
                            ],
                            "minimum_should_match": "1",
                            "boost": 1
                        }
                    },
                    "aggs": {
                        "impactUniqueAccounts": {
                            "cardinality": {
                                "field": "account"
                            }
                        }
                    }
                }
            }
        }
    ],
    "window_delay": {
        "period": {
            "interval": 10,
            "unit": "SECONDS"
        }
    },
    "detection_interval": {
        "period": {
            "interval": 1,
            "unit": "MINUTES"
        }
    },
    "ui_metadata": {
        "aabb": {
            "ab": "bb"
        }
    },
    "schema_version": 2
}

Signed-off-by: Kaituo Li<EMAIL_ADDRESS>Issues Resolved
[List any issues this PR will resolve]
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #425 (6779aef) into main (31a0dbe) will decrease coverage by 0.02%.
The diff coverage is 71.42%.

@@             Coverage Diff              @@
##               main     #425      +/-   ##
============================================
- Coverage     77.56%   77.53%   -0.03%
+ Complexity     4107     4102       -5
============================================
  Files           296      296
  Lines         17655    17662       +7
  Branches       1876     1879       +3
============================================
+ Hits          13694    13695       +1
- Misses         3057     3063       +6
  Partials        904      904

Flag
Coverage Δ

plugin
77.53% <71.42%> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...a/org/opensearch/ad/feature/AbstractRetriever.java
85.71% <71.42%> (-3.58%)
:arrow_down:

...port/SearchAnomalyDetectorInfoTransportAction.java
55.55% <0.00%> (-6.67%)
:arrow_down:

...ansport/handler/AnomalyResultBulkIndexHandler.java
67.74% <0.00%> (-3.23%)
:arrow_down:

...va/org/opensearch/ad/feature/SearchFeatureDao.java
84.56% <0.00%> (-2.08%)
:arrow_down:

...in/java/org/opensearch/ad/model/AnomalyResult.java
81.60% <0.00%> (-1.34%)
:arrow_down:

...java/org/opensearch/ad/task/ADBatchTaskRunner.java
81.45% <0.00%> (-0.31%)
:arrow_down:

...opensearch/ad/indices/AnomalyDetectionIndices.java
72.09% <0.00%> (-0.19%)
:arrow_down:

...ain/java/org/opensearch/ad/task/ADTaskManager.java
76.37% <0.00%> (+0.67%)
:arrow_up:

...ain/java/org/opensearch/ad/model/ModelProfile.java
72.72% <0.00%> (+1.81%)
:arrow_up:

.../java/org/opensearch/ad/AnomalyDetectorRunner.java
43.52% <0.00%> (+5.88%)
:arrow_up:

Is there a linked issue to why this is added? Is this targeted for 1.3 or can it wait for 1.4/2.0?

Is there a linked issue to why this is added? Is this targeted for 1.3 or can it wait for 1.4/2.0?

No issue linked.  We can wait for 1.4/2.0.


Shows total memory usage

Now the header bar shows the total memory used by all containers

Thanks for the PR -- there's a few issues with this change, please see the comments added to the diff.
Also, there may be some confusion as to whether the "total" memory usage means all reserved/limit memory by containers or all allocated; though, this an issue that can be resolved in subsequent features/PRs.

Hi!
I fixed all the things you suggested. Thanks for the code review.

I thought about the issue with the meaning of "total" memory usage.
We could change the text to combined memory usage. That would take the double meaning away. On the other hand all I do is write a number with a unity, so I don't think no change needs to be made.
Suggestions are, as always, welcome.

Great; thank you for the updates! I've merged https://github.com/bcicen/ctop/commit/712d7a5f59f06d117e8463165b32d7b75be76d2b into a feature branch for now and will merge along with some widget refactoring in the next major release.


refactor: use sdk provided filesystem util, deprecate aeproject util implementation

closes #474

getFileSystem as exposed by the sdk is async so this will need to be a breaking change or some workaround...

getFileSystem as exposed by the sdk is async so this will need to be a breaking change or some workaround...

did you ask @davidyuk why it is async? 🤔

I've used non-blocking file access api, this way nodes process may request multiple files at once

I made this PR breaking and will gather some more breaking changes eventually for an upcoming v5

released in https://github.com/aeternity/aeproject/releases/tag/v5.0.0


Unresolved conflict in tests/__init__.py

There is an unresolved conflict in tests/__init__.py, relating to test files for nakamura import.

Yes, I noticed that. It is already solved in the nakamura_matchformat branch (the imports are removed), which we would like to merge in develop very soon.


Addressed Brakeman's Mass Assignment warning by removing attr_accessible

@matthewd @Fryguy please review

:+1:


feat: add X button to clear search bar

What type of PR is this? (check all applicable)

[x] 🍕 Feature
[ ] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Description

Adds an "X" button that clears the search bar.
Related Tickets & Documents

closes #345
Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[ ] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

The deploy previews were blocked because this was a fork. You can open PRs locally in the repo @Deadreyo


Bump cert-manager API version v1alpha2 -> v1

cert-manager is deprecating all alpha and beta API versions in the next release (v1.4) (see cert-manager#4021) and will be removing them in v1.6.
It might make sense to bump the API versions used in this project from v1alpha2 -> v1

https://github.com/knative/docs/pull/3670
Potentially closed by the above PR

Potentially closed by the above PR

Apologies, I shouldn't have mentioned this issue in that PR- this is a separate issue.


Error with transpose

What happened?
Hello,
in xarray 0.20.1, I am getting the following error
ds = xr.Dataset({"foo": (("x", "y", "z"), [[[42]]]), "bar": (("y", "z"), [[24]])})
ds.transpose("y", "z", "x")
868 """Depending on the setting of missing_dims, drop any dimensions from supplied_dims that
    869 are not present in dims.
    870
   (...)
    875 missing_dims : {"raise", "warn", "ignore"}
    876 """
    878 if missing_dims == "raise":
--> 879     supplied_dims_set = {val for val in supplied_dims if val is not ...}
    880     invalid = supplied_dims_set - set(dims)
    881     if invalid:

TypeError: unhashable type: 'list'

What did you expect to happen?
The expected result is
ds.transpose("y", "z", "x")

<xarray.Dataset>
Dimensions:  (x: 1, y: 1, z: 1)
Dimensions without coordinates: x, y, z
Data variables:
    foo      (y, z, x) int64 42
    bar      (y, z) int64 24

Minimal Complete Verifiable Example
No response
Relevant log output
No response
Anything else we need to know?
 I upgraded to 2022.03.0
I am still getting the error
Python 3.9.12 (main, Apr  5 2022, 06:56:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xarray as xr
>>> xr.__version__
'2022.3.0'
>>> ds = xr.Dataset({"foo": (("x", "y", "z"), [[[42]]]), "bar": (("y", "z"), [[24]])})
>>> ds.transpose(['y','z','y'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/dataset.py", line 4650, in transpose
    _ = list(infix_dims(dims, self.dims, missing_dims))
  File "/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py", line 786, in infix_dims
    existing_dims = drop_missing_dims(dims_supplied, dims_all, missing_dims)
  File "/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py", line 874, in drop_missing_dims
    supplied_dims_set = {val for val in supplied_dims if val is not ...}
  File "/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py", line 874, in <setcomp>
    supplied_dims_set = {val for val in supplied_dims if val is not ...}
TypeError: unhashable type: 'list'

ds.transpose(['y','z','y'])

Ah... Reemove the list here and try ds.transpose("y", "z", x") (no list) which is what you have in the first post.

Oh... I am so sorry about this. This works as expected now.
It's weird that using list seemed to have worked at some point. Thanks a lot for your help


fix off by one error in mask rcnn

The image that I was developing with masked the off by one error. Other images do not.

@benhoff , LGTM. Thanks!


Struggling to get VMEC to run on MacOS

I am trying to install the Python VMEC extension for Mac, but keep getting an error related to _f2py_runtime_library. The main error seems to be:
CMake Error at /private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/skbuild/resources/cmake/FindF2PY.cmake:92 (add_library):
        No SOURCES given to target: _f2py_runtime_library

But I thought f2py was a numpy thing (which I do have installed) so I'm not sure what I could do here. Any ideas?
Here's the full output:
Processing /Users/gabrielbirnbaum/VMEC2000
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: f90wrap in /Users/gabrielbirnbaum/opt/miniconda3/lib/python3.9/site-packages (from vmec==0.0.4) (0.2.7)
Requirement already satisfied: numpy>=1.13 in /Users/gabrielbirnbaum/opt/miniconda3/lib/python3.9/site-packages (from f90wrap->vmec==0.0.4) (1.23.1)
Building wheels for collected packages: vmec
  Building wheel for vmec (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for vmec (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [92 lines of output]
      Not searching for unused variables given on the command line.
      -- The C compiler identification is AppleClang <IP_ADDRESS>60021
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/clang - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is AppleClang <IP_ADDRESS>60021
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/clang - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /Users/gabrielbirnbaum/VMEC2000/_cmake_test_compile/build
      -- NETCDF_INC_PATH is /usr/local/include
      -- NETCDF_I value is /usr/local/include/netcdf.inc
      -- NETCDF_F value is /usr/local/lib/libnetcdff.dylib
      -- NETCDF_C value is /opt/local/lib/libnetcdf.dylib
      -- Using netcdf
      -- scalapack_lib is /usr/local/lib/libscalapack.dylib
      -- updated scalapack_lib is /usr/local/lib/libscalapack.dylib
      -- vmec linked libraries are /usr/local/lib/libnetcdff.dylib;/opt/local/lib/libnetcdf.dylib;/usr/local/lib/libscalapack.dylib;/opt/local/lib/libopenblas.dylib;/opt/local/lib/libopenblas.dylib;/opt/local/lib/libopenblas.dylib
      -- Compile definitions for preprocessor are MPI_OPT;MACOSX;NETCDF;MRC
      -- fortran_src_files is /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/runvmec.f;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/reinit.f90;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/cleanup.f90;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/vmec_input.f;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/read_wout_mod.f90
      -- preprocess_fortran arguments: fpp_files, followed by /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/runvmec.f;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/reinit.f90;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/cleanup.f90;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/vmec_input.f;/Users/gabrielbirnbaum/VMEC2000/python/fortran_src/read_wout_mod.f90
      -- Got fortran file: /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/runvmec.f
      -- Output name: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/runvmec_fpp.f
      -- Got fortran file: /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/reinit.f90
      -- Output name: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/reinit_fpp.f90
      -- Got fortran file: /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/cleanup.f90
      -- Output name: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/cleanup_fpp.f90
      -- Got fortran file: /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/vmec_input.f
      -- Output name: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/vmec_input_fpp.f
      -- Got fortran file: /Users/gabrielbirnbaum/VMEC2000/python/fortran_src/read_wout_mod.f90
      -- Output name: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/read_wout_mod_fpp.f90
      -- fpp_files is /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/runvmec_fpp.f;/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/reinit_fpp.f90;/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/cleanup_fpp.f90;/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/vmec_input_fpp.f;/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/read_wout_mod_fpp.f90
      -- Python exten suffix expansion: .cpython-39-darwin.so
      -- f90_wrap_output_files: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/f90wrap_toplevel.f90/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/f90wrap_read_wout_mod.f90/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/f90wrap_vmec_input.f90
      -- f2py_module_name: _vmec
      -- generated_module_name: /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build/python/_vmec.cpython-39-darwin.so
      -- Configuring done
      CMake Error at /private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/skbuild/resources/cmake/FindF2PY.cmake:92 (add_library):
        No SOURCES given to target: _f2py_runtime_library
      Call Stack (most recent call first):
        python/CMakeLists.txt:10 (find_package)

      CMake Generate step failed.  Build files cannot be regenerated correctly.
        File "/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 637, in setup
          env = cmkr.configure(
        File "/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 328, in configure
          raise SKBuildError(
      system.platform is darwin

      --------------------------------------------------------------------------------
      -- Trying "Ninja" generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying "Ninja" generator - success
      --------------------------------------------------------------------------------

      Configuring Project
        Working directory:
          /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build
        Command:
          cmake /Users/gabrielbirnbaum/VMEC2000 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.1 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPython3_EXECUTABLE:FILEPATH=/Users/gabrielbirnbaum/opt/miniconda3/bin/python -DPython3_INCLUDE_DIR:PATH=/Users/gabrielbirnbaum/opt/miniconda3/include/python3.9 -DPython3_LIBRARY:PATH=/Users/gabrielbirnbaum/opt/miniconda3/lib/libpython3.9.dylib -DPython3_NumPy_INCLUDE_DIRS:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/numpy/core/include -DPython_EXECUTABLE:FILEPATH=/Users/gabrielbirnbaum/opt/miniconda3/bin/python -DPython_INCLUDE_DIR:PATH=/Users/gabrielbirnbaum/opt/miniconda3/include/python3.9 -DPython_LIBRARY:PATH=/Users/gabrielbirnbaum/opt/miniconda3/lib/libpython3.9.dylib -DPython_NumPy_INCLUDE_DIRS:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/numpy/core/include -DPYTHON_EXECUTABLE:FILEPATH=/Users/gabrielbirnbaum/opt/miniconda3/bin/python -DPYTHON_INCLUDE_DIR:PATH=/Users/gabrielbirnbaum/opt/miniconda3/include/python3.9 -DPYTHON_LIBRARY:PATH=/Users/gabrielbirnbaum/opt/miniconda3/lib/libpython3.9.dylib -DPYTHON_NumPy_INCLUDE_DIRS:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang -DCMAKE_Fortran_COMPILER=mpif90 -DNETCDF_INC_PATH=/usr/local/include -DNETCDF_LIB_PATH=/usr/local/Cellar -DBLA_VENDOR=OpenBLAS -DSCALAPACK_LIB_NAME=mkl_scalapack_lp64 -DBLACS_LIB_NAME=mkl_blacs_mpich_lp64 -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.16 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64

      Traceback (most recent call last):

      An error occurred while configuring with CMake.
        Command:
          cmake /Users/gabrielbirnbaum/VMEC2000 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.1 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPython3_EXECUTABLE:FILEPATH=/Users/gabrielbirnbaum/opt/miniconda3/bin/python -DPython3_INCLUDE_DIR:PATH=/Users/gabrielbirnbaum/opt/miniconda3/include/python3.9 -DPython3_LIBRARY:PATH=/Users/gabrielbirnbaum/opt/miniconda3/lib/libpython3.9.dylib -DPython3_NumPy_INCLUDE_DIRS:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/numpy/core/include -DPython_EXECUTABLE:FILEPATH=/Users/gabrielbirnbaum/opt/miniconda3/bin/python -DPython_INCLUDE_DIR:PATH=/Users/gabrielbirnbaum/opt/miniconda3/include/python3.9 -DPython_LIBRARY:PATH=/Users/gabrielbirnbaum/opt/miniconda3/lib/libpython3.9.dylib -DPython_NumPy_INCLUDE_DIRS:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/numpy/core/include -DPYTHON_EXECUTABLE:FILEPATH=/Users/gabrielbirnbaum/opt/miniconda3/bin/python -DPYTHON_INCLUDE_DIR:PATH=/Users/gabrielbirnbaum/opt/miniconda3/include/python3.9 -DPYTHON_LIBRARY:PATH=/Users/gabrielbirnbaum/opt/miniconda3/lib/libpython3.9.dylib -DPYTHON_NumPy_INCLUDE_DIRS:PATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/private/var/folders/w9/y85j6mld4459qyg6n1qphmvm0000gn/T/pip-build-env-1gcs_583/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang -DCMAKE_Fortran_COMPILER=mpif90 -DNETCDF_INC_PATH=/usr/local/include -DNETCDF_LIB_PATH=/usr/local/Cellar -DBLA_VENDOR=OpenBLAS -DSCALAPACK_LIB_NAME=mkl_scalapack_lp64 -DBLACS_LIB_NAME=mkl_blacs_mpich_lp64 -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.16 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64
        Source directory:
          /Users/gabrielbirnbaum/VMEC2000
        Working directory:
          /Users/gabrielbirnbaum/VMEC2000/_skbuild/macosx-10.16-x86_64-3.9/cmake-build
      Please see CMake's output for more information.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vmec
Failed to build vmec
ERROR: Could not build wheels for vmec, which is required to install pyproject.toml-based projects

I have also run into this same issue. Has this been resolved @killah-t-cell ?


Python dlib module has no image_window attribute?

Hi! Thanks for making a Python API for dlib -- I'm excited to try it out (once I get it working)!
I compiled the examples today and tried to run train_object_detector.py but it gave the following error:
File "train_object_detector.py", line 95, in <module>
    win_det = dlib.image_window()
AttributeError: 'module' object has no attribute 'image_window'

I get the same error from the Python interpreter:
$ python
Python 2.7.9 (default, Jan 18 2015, 00:53:20)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dlib
>>> window = dlib.image_window()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'image_window'
>>>

I'm on OS X 10.10.2. Any help you can offer would be greatly appreciated.

Deleted examples build and recompiled, and now I can't recreate the error. Not quite through the woods but I don't think this is an issue anymore.

Sweet :)

Same issue, recompiled several times and still can't find solution. OS X 10.10.2

What error did you get?

Hi,
thank you for quick reaction!
I don't get any errors. But if I use pydoc on compiled package, there is no class image_window.
array
cca_outputs
fhog_object_detector
full_object_detection
matrix
pair
point
points
range
ranges
rangess
ranking_pair
ranking_pairs
rectangle
rectangles
rgb_pixel
segmenter_params
segmenter_test
segmenter_type
shape_predictor
shape_predictor_training_options
simple_object_detector
simple_object_detector_training_options
simple_test_results
sparse_ranking_pair
sparse_ranking_pairs
sparse_vector
sparse_vectors
sparse_vectorss
svm_c_trainer_histogram_intersection
svm_c_trainer_linear
svm_c_trainer_radial_basis
svm_c_trainer_sparse_histogram_intersection
svm_c_trainer_sparse_linear
svm_c_trainer_sparse_radial_basis
svm_rank_trainer
svm_rank_trainer_sparse
vector
vectors
vectorss
I'm using commands from python_examples/compile_dlib_python_module.bat.
Thanks!

Those warnings about not having symbols are fine.  The issue is probably that it didn't find libx11 on your machine, which is required to use the GUI components.  When you initially ran the script it should have output a message saying that it didn't find X11 and that you need to install XQuartz.  If you do that then it should work.

Thanks! Installing libx11 solved problem.

@davisking
My computer system is windows7, have the same error.
How should I do it?
Thanks!

You don't need X11 on windows, unless you are trying to compile in something like cygwin.

@davisking
How do I solve this problem?
.....

http://dlib.net/faq.html#Itdoesn'twork

i use "conda install -c menpo dlib=18.18"  in windows 7 64+py27
and tried to run face_landmark_detection.py but it gave the following error:
`---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
D:\Users\e069383\Desktop\notebook\py\face_landmark_detection.py in ()
65 detector = dlib.get_frontal_face_detector()
66 predictor = dlib.shape_predictor(predictor_path)
---> 67 win = dlib.image_window()
68
69 for f in glob.glob(os.path.join(faces_folder_path, "*.jpg")):
AttributeError: 'module' object has no attribute 'image_window'
`

menpo must have disabled it for some reason.  I would download dlib from
the dlib website and use that version.

i use "conda install -c conda-forge dlib=19.0"
in windows 7 64 py27  can work

hi, I have been trying to run face detection file in python on ubuntu. but there is the following error -
Traceback (most recent call last):
File "/home/divya/proj/detect.py", line 9, in
face_detector = dlib.get_frontal_face_detector()
AttributeError: 'module' object has no attribute 'get_frontal_face_detector'
please help!

I have libx11-dev installed on my machine, but I am still getting the same error. Anything else I might check?

The compile process prints messages telling you what it's doing.  It will announce if it found X11 or not.

It does find libx11.so

All dependencies installed (X11, Boost, Boos.Python, ..)
(opencv) jorgher@jorgher-Lenovo-G575: conda install -c menpo dlib
(opencv) jorgher@jorgher-Lenovo-G575:~/Documents/dlib/python_examples$ python face_detector.py ../examples/faces/*.jpg
Traceback (most recent call last):
File "face_detector.py", line 52, in
win = dlib.image_window()
AttributeError: module 'dlib' has no attribute 'image_window'
pls help

I meet the same problem,and I follow some instruction,but I meet new problem,it is:Illegal instruction (core dumped).
How can I solve it?

the with me

import dlib
import skimage
impface_detector = dlib.get_frontal_face_detector()
face_detector = dlib.get_frontal_face_detector()
win = dlib.image_window()
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'dlib' has no attribute 'image_window'

on ubuntu  pls help if someone did before

Install X11 and recompile dlib.  When you compile dlib it prints messages
about this that tell you exactly what to do.

on ubuntu . I forget to run the commond on dlib root: python setup.py install

I installed xquartz on my mac. I also reinstalled dlib, but still I am getting
AttributeError: module 'dlib' has no attribute 'image_window'
Anything else I should be beside install xquartz?

That should be all. Make sure you really are recompiling dlib.  Delete everything and redownload.

yes, rebuild c++ from scratch, then python setup.py install inside my conda env. Finally, it's running. conda install -c menpo dlib does not work.


[Fix] Improvement to Entity.destroy

Fixes https://github.com/playcanvas/engine/issues/3954

when the child is removed from the array, clear the parent as well, before calling destroy, to avoid it from trying to remove it from the array again
use pop instead of shift, which is faster, and we don't really care about the order of children destruction.

Could there be logic that depends on still being parented when destroyed?

Could there be logic that depends on still being parented when destroyed?

I would hope not, but this is hard to find out.


Update hostInCertificate when server respond with routed server

Upon connection, when the server respond with a rerouted server, the driver change the p.host to the routedServer and the p.port to the routedPort. However, the hostInCertificate is not updated.
When encrypt is true and trustservercertificate is false, the driver tries to validate the server certificate. This fails if hostInCertificate was not updated to the routedServer since there is a mismatch between the server certificate being validated (i.e., the certificate in the rerouted server) and the host name the driver provides to be used during certificate validation (i.e., the original server the client wants to connect to).
This change makes sure the hostInCertificate is updated when the server respond with a rerouted server, but ONLY IF the client did not provide the hostNameInCertificate in their connection string.

Fix for issue #482


Moving development to oh-distro-private

Previously Pat and us folks in Edinburgh discussed moving back to private development.
I have just set oh-distro to be read only. Please move your pull requests and branches to:
https://github.com/openhumanoids/oh-distro-private
The working assumption is to push master of private to public occasionally.

Why read only?  Does that mean we cannot accept public pull requests or open issues?

Sorry, I did this to push development back over to private. (I was just trying to encourage folks to move back over)
Would it be better to accept all outstanding issues here? fine by me


执行一键包报错

Expecting value: line 1 column 1 (char 0)
提供webui截屏如下：

视频中指出说话人ID目前不需要进行改动：

补充带有控制台的截图

查下系统代理问题，局域网区段不要代理

@fatinghenji  I have spent 3 entire weeks trying to find a way to clone correclty voices and I still did not get good results, I am so tired of it. I am contacting you because I saw you had old comments under old issues, you haev probably found better ways since then? Could you save me from my misery and direct me towards a method, a repo, a tutorial or anything that helps get to the point where I can actually clone a voice thats looks similar to the cloned voice please?  Help my soul lol. Really.


Update to rust-2015-04-02

Along the way, this also removes the ability to specify [[lib]] targets while
getting warnings. While we're at it remove nearly all unstable features that
Cargo is depending on as well!
r? @huonw

Pushed a few updates, thanks for taking a look @huonw!

@bors r+

:pushpin: Commit 80fe0e6 has been approved by huonw

:hourglass: Testing commit 80fe0e6 with merge d71f748...

:sunny: Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-32, cargo-win-64


Feature: Adding title and labels to the file and folder render

Looks like the settings say you can use title. But you cannot. I also wanted to use the first label to create a subfolder.

+1, on wanting to use Labels (or at least the 1st Label) as Folders. This is a huge use-case for me, which is missing.


[AMQ-8391] Convert web to use shared JAAS realm with messaging layer

Confirmed locally that this works w/ the Jetty 11 fix in #1094

Thanks ! I will take a look later tonight/tomorrow my time.

Replaced by #1100


[VQC-CHALLENGE] [CQTech] [Oct 27th]

Team members

Mohamed Messaoud Louamri @mmlouamri
Nacer eddine Belaloui @Belaloui
Taha Rouabah @Taha-Rouabah

Submission summary

Depth: 5
Iterations: 100 with early stoppage
Shots: 200
Batch size: 10

Additional comments
We are not sure if we should include the .ipynb in the submission as it contains the detailed solution and everyone could read it. If it is necessary, we can push the notebook of course.

Hi! Yes, please include the .ipynb file so we can verify the accuracy and add you to the leaderboard. As a next step, your team is encouraged to take on the quantum kernel estimator challenge which, in the end, will determine the overall winner.

Hi! Yes, please include the .ipynb file so we can verify the accuracy and add you to the leaderboard. As a next step, your team is encouraged to take on the quantum kernel estimator challenge which, in the end, will determine the overall winner.

As per kernel estimator README, we've now accounted for a way to review submissions privately. You can still push your code, or we can review your notebook from your Lab account directly.  If it's the latter, let me know which account I should look under. Thanks!


Move common injection to their corresponding class

@larioj We need this to be part of the common library.

Thanks for the review @takirala


Build cleanups

Just a few cleanups from having this package run in our CI:

don't need anything build-time from rospy, so let's remove this
add all deps to package.xml
clean up python install with the 'standard' ROS1 way http://docs.ros.org/en/jade/api/catkin/html/howto/format2/installing_python.html

If you end up merging this, I would appreciate if you tag a 'release' on your repo, so that we can build from a tag. Cheers!

Since monitor is a node, can you put it in a nodes/ folder instead?
Can you also update the link in the README to point to the renamed file?
Thanks for these fixups!

@paulbovbel Merged finally and tagged a release: v0.1.0.


Fix OpenGL convert linear to srgb with additive lighting

For issue: #90259
With this change, color will more match vulkan with 1 additive lighting active.
Multiple additive lightings still look brighter cause it use blending func between pass

The original version of lighting with shadows actually used linear for the first light. However, the problem with that PR (and this PR) is that the color of lights will flicker when objects/lights move. If an object moves into a position where it touches multiple lights, suddenly the light color will change drastically.
We felt that it was best for light colors to remain stable over time, even if sRGB lighting doesn't look as nice as proper linear lighting

Could we have a project setting to control the light blending behavior when using the Compatibility rendering method? This could be called something like Prefer Linear Blending which is disabled by default to preserve the existing behavior.
Many demo projects look quite different when you switch to the Compatibility rendering method, and I'd like to prevent this without needing to use a script to adjust the light color (which needs a @tool script to be visible in the editor viewport).

This commit doesn't change how the engine use sRGB or linear. For now with additive lighting, the output color will be:
frag_color.rgb = linear_to_srgb(emission + ambient_light + normal_light) + linear_to_srgb(additive_light_color);
that cause it look brighter. I think it should be:
frag_color.rgb = linear_to_srgb(emission + ambient_light  + normal_light + additive_light_color);

@Calinou, Ok i see it, light may flicker in case multiple additive omni lights active.

I think it is important to understand that we don't intend for the compatibility renderer to look the same as the RD based renderers. That's not a design goal. So sacrificing performance and usability in order to meet that goal is not going to happen.
The problem with this PR is that light colors will be unstable in motion. They will flicker all the time and users find light flickering totally unacceptable.

Could we have a project setting to control the light blending behavior when using the Compatibility rendering method?

Maybe. It is technically feasible, but it will make the code way more complex than it already is and will likely break easily as it won't be a heavily tested codepath. In my opinion, we would better serve users by finding ways to encourage them to edit their games using the same settings that they ship with (i.e. use the compatibility when making their game, not just when shipping)

@clayjohn , ok, thank you. I will closed this PR.


Use regex to match wildcard

Fixes the issue where any words matching a list file name would get replaced.

Fixes the issue where any words matching a list file name would get replaced.

I don't know how to add issue at your github, can you add wildcards "in order" checkbox when read the "file".


duplicate target percentage

It shows duplicate hp percentage on target frame. I have tried to fix it but couldnt find a way to solve this. Here is the screenshot

fixed issue #30

have you tried disabling other addons? This is most likely becuase you have an internal addon conflict going on.

yeah you are right tried to disable some of them and found out that automate conflicting this.

Good thing you solved your issue though! 👍


Deleting shader!

When you load the vertex and fragment shader you try to delete them but they never(Until you close the window) are going to be deleted because they need to be detached first from the program.
Source: Stackoverflow

This is true, but should be an easy fix. Before this line, simply append:
glDetachShader(program, vertex);
glDetachShader(program, fragment);

This must be done since deleting a shader doesn't automatically detach it from the program (as described here).
I could create a pull request if it would be appreciated.


Update Composer dependencies (2021-03-15-00-06)

Visual regression test passed!
View the visual regression test report


better error message when an initializer sometimes writes a field

Consider:
Class Foo {
  Object f;
  @Initializer
  void init() {
    if (someCond()) {
      return;
    }
    f = new Object();
  }
}

For this code, we give an error message saying that init() does not initialize f, but it's a bit confusing since the method does write f.

Added a bit more info to the docs, here: https://github.com/uber/NullAway/wiki/Error-Messages
But probably still worth it to add the "along all control-flow paths" language to the error message itself. Will take on this if you are not already working on a fix.


Demangler: add a new API for the demangler which enables bump-pointer allocation of demangling nodes.

Instead of a global demangleSymbolAsNode, which returns a reference-counted NodePointer, there is now a Context class which owns the nodes.
So now demangleSymbolAsNode is a member of Context and the returned NodePointer is alive as long as the Context is alive.
This is still a NFC: the new ABI still maps to the old functions.
The purpose of this change is to let lldb adapt to the new API and then we can switch to the new implementation.

@swift-ci Please smoke test and merge

How will this affect our C demangling API? (LLDB isn't the only consumer of our demangling functions.)


Inference from management console not working on Kubernetes

Description
I'm hosting DJL Serving and the management console using bin\serving.bat on Kubernetes which forwards incoming traffic from port 8443 (https) to the inference_address and management_address.
When making an inference request from the UI, the inference_address' port number is appended to my hostname (e.g. https://mydomain.com:8080) causing the request to fail. Is this a bug or am I missing some configuration?
My config.properties:
inference_address=http://<IP_ADDRESS>:8080
management_address=http://<IP_ADDRESS>:8080
cors_allowed_origin=https://mydomain.com
cors_allowed_methods=*
cors_allowed_headers=*

Making a curl from a terminal works as expected: curl https://mydomain.com/predictions/my_model -T image.jpg
Expected Behavior
When I try to run inference from the management console the request should be sent to https://mydomain.com/predictions/my_model/
Error Message
The request is sent to https://mydomain.com:8080/predictions/my_model/ ending with a request timeout.
How to Reproduce?
Steps to reproduce
Download https://publish.djl.ai/djl-serving/serving-0.22.1.zip and run serving-0.22.1\bin\serving.bat from a Debian-slim-container with JDK installed.
What have you tried to solve it?

@EvenAR
I don't think DJLServing works for this use case today. DJLServing allows management and inference listen on different port. Currently console will query the management API to get inference port. However, if you map the port, this behavior will break.
I think there is a few thing we can do:

If management port and inference port are the same, instead of using DJLServing port, we can use the mapped port (current port by browser)
If they are different, we can add a config page in console and let user input the inference port

Are you interested to contribute to this improvement?


Added Virtual Environments to .gitignore

Since the gitignore did not have any folders for virtual environments ignored by default, I have added the some most used ones.
These have been taken from github's default python .gitignore.

Thanks @xypnox!


Added set_email_verified optional boolean on user-password migrating

Your stytch account must be allowed to use this option tho

https://github.com/stytchauth/stytch-node/pull/295
I know it's been a long time since this PR was opened, but we have finally decided to make knowledge of this feature public. I'm going to close out this PR now.

excellent thank you


[MANX-274][dotnet] Remove unused code from MergedDateTimeParser

Remove unused if statement from Japanese MergeDateTimeParser class

Closing because the class was refactored and this is no longer needed.


SimpleLBPolicy has no effect?

@fleeto commented on Tue Aug 01 2017
I'm trying to eject a pod which will return a status code of 500.
There are 4 pods in the deployment, 3 of them will return 500, the other 1 will return 200.
I'd create the default route-rule for a service named "svc-frontend":
type: route-rule
name: frontend-default
spec:
  destination: svc-frontend.default.svc.cluster.local
  precedence: 1
  route:
  - tags:
      version: "1"

And then create a CircuitBreaker:
type: destination-policy
name: httperror
spec:
  destination: svc-frontend.default.svc.cluster.local
  policy:
  - tags:
      version: "1"
    circuitBreaker:
      simpleCb:
        httpConsecutiveErrors: 1
        httpDetectionInterval: 5m
        sleepWindow: 1m
        httpMaxEjectionPercent: 100
    loadBalancing:
      name: RANDOM

According to the document, when I'm accessing the service, I will see a little response of  500, and then I will get only 200,  But I still get 500 constantly( about 75%).
What's wrong with my configuration?
istioctl version:

Version: 0.1.6
GitRevision: dab2033
GitBranch: release-0.1
User: jenkins@ubuntu-16-04-build-12ac793f80be71
GolangVersion: go1.8.1
KubeInjectHub: docker.io/istio
KubeInjectTag: 0.1

apiserver version:

Version: 0.1.6
GitRevision: dab2033
GitBranch: release-0.1
User: jenkins@ubuntu-16-04-build-12ac793f80be71
GolangVersion: go1.8.1

@jhaals commented on Wed Aug 09 2017
Stumbled on the same thing, any takers?

@kyessenov commented on Wed Aug 09 2017
Let me try to reproduce it.

Please add assignees

rshriram@ are you working on this issue?
ETA?

Yes. just assigned it to myself. monday

@rshriram  is this fixed? is it critical for 0.2?

Issue moved to istio/istio #1461 via ZenHub


Baby hero update

Initial commit for medium scale Hero tests.

Approving & merging per DASH Community Call this morning 8/24/2022


GH-34382: [C++] Support more types in run_end_encode and run_end_decode functions

Closes: #34382

@zeroshade

@dinimar you asked what was needed to add more types in the issue and after almost 600 lines... here it is :)

@felipecrv Luckily, I didn't start working on this issue. Didn't think it will take so much knowledge about the project)

CI failure seems unrelated.


Using wasmtime-dotnet in Azure Functions errors with 'image not found'

Hi all!
I have tried to use wasmtime-dotnet in an Azure Function.
For now, I am running this locally on macOS.
It fails when calling the HTTP-triggered function:
Executed 'RunWasm' (Failed, Id=f2ddeb26-1bdc-4f7c-a22c-85315832c10f)
System.Private.CoreLib: Exception while executing function: RunWasm. Wasmtime.Dotnet: Unable to load shared library 'wasmtime' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libwasmtime, 1): image not found.

As we can see, the runtimes are present in the bin folder:

Any ideas on what could be the issue?
You can see the repro here:
https://github.com/ChristianWeyer/azure-functions-wasmtime-repro
Thanks,
-Christian

I tried it on my Mac, it does work unmodified (only fixing that gcd.wat needs to be copied to the output directory)

Ohhh, nice!
Well... no.... ;-) Interesting to get this sorted out on my machine then.
Thanks for the update @christophwille !

This is now solved - I had to upgrade to the latest Azure Functions Core Tools on macOS.
Thanks for the hint @christophwille.


fix: support ethers web3 type

name: "Pull request"
about: A new pull request
New Pull Request
Checklist

[ ] I am not disclosing a vulnerability.
[ ] My code is conform the code style
[ ] I have made corresponding changes to the documentation
[ ] I have updated Typescript definitions when needed

Issue Description

Related issue: #FILL_THIS_OUT
Solution Description

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


add machine readable output flag to odo component delete

What is the purpose of this change? What does it change?
add machine readable output flag toodo component delete
Was the change discussed in an issue?
#1383
How to test changes?
Try odo component delete  command with -o json flag and validate exit code is 0 and not asking for user inputs

:white_check_mark: odo build 2098 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/96ad70510b by @syamgk)

we have https://github.com/redhat-developer/odo/issues/1260 to follow up with unit tests

:white_check_mark: odo build 2100 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/f33a983b87 by @syamgk)

/test e2e-core

/refresh

:white_check_mark: odo build 2156 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/c0c2970ef3 by @syamgk)

:white_check_mark: odo build 2180 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/ba03175b78 by @syamgk)

This is an important change. Can somebody take this ?

@amitkrout currently the issue is not part of the sprint and also moved to medium priority. Also due to the new workflow alot of machine readable output needs refresh hence closing this as of now. we can revisit this issue later.


Add more tests

[x] ~For custom columns with DB storage driver~ Fixed: #122
[ ] For Telescope
[x] ~For conflicting routes~ #114 conflicting routes are unsupported
[ ] For Horizon?
[ ] For queues
[ ] Application events
[ ] Tenant aware commands

Irrelevant, codebase is mostly rewritten.


Bump vitest from 0.20.x to 0.27.x for Vite 4 compat

Part of the vite 4 support #660
Vitest has vite 4 support since 0.25
All 87 tests still pass.

Hmm.. is there a possibility that the breaking tests are not related to this PR?

the 2 cloudflare tests are related to a missing token. Ignore those. If the rest work then we are good.


sh: switch to LALRPOP?

I would vastly prefer to use something like LALRPOP or pest instead of nom, but right now neither support arbitrary bytes as input.  There is this issue for LALRPOP and this one for pest that deal with that problem, but I'm not sure if it's fine to just say that invalid UTF-8 paths can't be given directly as arguments for now (they'd still work if a glob was given where the expanded part was invalid UTF-8).  Switching to either LALRPOP or pest should help improve the error messages and make it simpler to fix some of the current parsing issues.
As a side note, this is actually the same issue that prevented me from just using pest in the first place.

I think it's OK to say that "invalid UTF-8 paths can't be given directly" for now and use LALRPOP or pest (pest looks good since it uses PGE for parsing). Then, let's explain our usages to the pest/LALRPOP authors and push the implementation of the "matching bytes" feature.

So, I ended up rewriting the parser without a library using iterators (retrieved from OsStr) directly.  Currently we use EncodeWide on Windows and std::slice::Iter<u8> on Unix.  While I haven't tested on Windows yet, I believe this solution should let the parser function on Windows.  We still need to figure out how to deal with forking on Windows (e.g. for subshells), but it should be possible to at least enable some sort of shell script checker on all platforms now.
I imagine the performance can be vastly improved as I just did a simple port from nom.  If this proves too difficult, we can switch to LALRPOP/Pest at a later date (once they at least support parsing u8 streams).
The rewritten parser is in the sh-parser branch.  The REPL doesn't support multi-line inputs right now, but for the most part things seem to function better than before.

BTW the code from sh-parser has now been added to master.

OK, good. Let's use the handwritten parser first and consider LALRPOP/Pest later (if we cannot handle it properly).