Add a way to run tasks from the command line

description
Add the ability to run tasks from the code command. Here's a related stack overflow question. Here's an example use case of this flag
To do this , you'll have to create a task.ts, then run the task from the main.js

Some tool exist:
https://github.com/cmccandless/vstask
But would be useful to have this out-of-the-box, I often find myself launching a full-blown remote vscode session (launch takes awhile, as opposed to local session) only for running a simple task.

Some tool exist:
https://github.com/cmccandless/vstask
But would be useful to have this out-of-the-box, I often find myself launching a full-blown remote vscode session (launch takes awhile, as opposed to local session) only for running a simple task.


Installation problem

Cant install on Ubuntu Please help
mohsin@mohsin-HP-Pavilion-15-Notebook-PC:~/hcxdumptool-master$ make install
cc -O3 -Wall -Wextra -std=gnu99  -o hcxdumptool hcxdumptool.c -lpthread
make: cc: Command not found
Makefile:29: recipe for target 'build' failed
make: *** [build] Error 127

Your error message is: "make: cc: Command not found", which tells you that you are missing the C compiler. That is a configuration error of UBUNTU. Check your configuration/environment and/or install build-essential.
sudo apt-get install build-essential
Then try again.
read more here:
https://stackoverflow.com/questions/22557029/c-compiler-not-found-ubuntu
https://github.com/jwilm/alacritty/issues/1440

Cant install on Ubuntu Please help
mohsin@mohsin-HP-Pavilion-15-Notebook-PC:~/hcxdumptool-master$ make install
cc -O3 -Wall -Wextra -std=gnu99  -o hcxdumptool hcxdumptool.c -lpthread
make: cc: Command not found
Makefile:29: recipe for target 'build' failed
make: *** [build] Error 127

or just , sudo apt install gcc

root@kali:~/hcxdumptool# make install
cc -O3 -Wall -Wextra -std=gnu99  -o hcxpioff hcxpioff.c
cc -O3 -Wall -Wextra -std=gnu99  -o hcxdumptool hcxdumptool.c
install -m 0755 -D hcxpioff /usr/local/bin/hcxpioff
install -m 0755 -D hcxdumptool /usr/local/bin/hcxdumptool
rm -f hcxpioff
rm -f hcxdumptool
rm -f *.o *~


V0.17.1 version installation reported an error. Networkx, scikit image related

安装时候，报错，问一下怎么处理？ v0.17.1
error: networkx 2.2 is installed but networkx>=2.8 is required by {'scikit-image'}

During installation, an error was reported. How can I handle it? v0.17.1
error: networkx 2.2 is installed but networkx>=2.8 is required by {'scikit-image'}

Hello,
I got the same error and just updating networkx to 2.8 did not work because during the setup process networkx==2.2 is reinstalled. Where you able to fix it  ?


Added platform to the config with auto-detect as fallback

auto detect device platform / os

@cyrinux , works, but with no config, it would not autodetect,  but it will not remove a value if its defined and there is no config.
So during my test all works but not the autodetect

Thanks for the test, will try on my side are you using ?

@cyrinux
python --version Python 3.6.8 (virtend-netbox

@KivraChristoffer I forgot to remove a condition, it should be ok with this last fix, I test on my side and its good.

Would you like me to do the tests again ?
Den tors 31 mars 2022 19:55Cyril Levis @.***> skrev:

@KivraChristoffer https://github.com/KivraChristoffer I forgot to
remove a condition, it should be ok with this last fix, I test on my side
and its good.
—
Reply to this email directly, view it on GitHub
https://github.com/Solvik/netbox-agent/pull/216#issuecomment-1084927019,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AR6PJMRSZA6FT3ML7VV6QU3VCXRJ7ANCNFSM5SFWSXIA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Would you like me to do the tests again ? Den tors 31 mars 2022 19:55Cyril Levis @.> skrev:
…
@KivraChristoffer https://github.com/KivraChristoffer I forgot to remove a condition, it should be ok with this last fix, I test on my side and its good. — Reply to this email directly, view it on GitHub <#216 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6PJMRSZA6FT3ML7VV6QU3VCXRJ7ANCNFSM5SFWSXIA . You are receiving this because you were mentioned.Message ID: @.>

Yes please ;-)

Would you like me to do the tests again ? Den tors 31 mars 2022 19:55Cyril Levis @.> skrev:
…
@KivraChristoffer https://github.com/KivraChristoffer I forgot to remove a condition, it should be ok with this last fix, I test on my side and its good. — Reply to this email directly, view it on GitHub <#216 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6PJMRSZA6FT3ML7VV6QU3VCXRJ7ANCNFSM5SFWSXIA . You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>
Yes please ;-)

allt worked good,
automated found this:
CentOS Linux 8.2.2004 Core
CentOS Linux 8.2.2004 Core

Thanks, I will merge this and try to do a release soon.
Bug reports and new features appreciate 😺

Thanks, I will merge this and try to do a release soon. Bug reports and new features appreciate smiley_cat

We have 2 others comming.
1 where is a raidcard dont have any disks attached.
2 report in diskspace ( mainly vm's )


MessageHandler now UserCertificateValidator in GlobalNamespace

Updated to codegen 0.9.0 for Beat Saber 1.16.0
Changed hook UserMessageHandler_ValidateCertificateChainInternal to UserCertificateValidator_ValidateCertificateChainInternal
Hook is now in GlobalNamespace instead of the MasterServer Namespace
Please check if this works, once the MasterServer is updated.

Eh, you know what? Ill just PR this in. It appears to work.
If we need to go back and figure things out if there is more, we can do so later.


Ripple effect offsetted by scroll

Problem description
The ripple effect is off when you click the button when the page is partially scrolled down.
Edit: Slow motion (accidental) GIF:

Link to minimal working code that reproduces the issue
http://www.material-ui.com/#/components/raised-button
Versions

Material-UI: 0.18.0
React: 15.5.4
Browser: Google Chrome 56.0.2924.87 (64-bit)

Do you have a video or a screenshot? I'm not sure to understand what's the issue. Thanks.

I have this thingie I made.

That's really strange, I can't reproduce it with Version 58.0.3029.81. Any luck with the version of the next branch?

I'm using macOS Sierra, if that helps

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it.
Still, we will accept PR fixes until v1-beta takes over the master branch.

Yep, it's fixed.


Add pythainlp.util.morse

Add pythainlp.util.morse to encoder and decoder Morse code (Thai and English) for time traveler, historian, and Interested people.
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[ ] Passed code styles and structures
[ ] Passed code linting checks and unit test

Hello @wannaphong! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file pythainlp/util/morse.py:

Line 13:8: E231 missing whitespace after ':'
Line 122:17: E261 at least two spaces before inline comment
Line 122:18: E262 inline comment should start with '# '
Line 127:33: E231 missing whitespace after ','
Line 129:43: E231 missing whitespace after ','
Line 132:38: E252 missing whitespace around parameter equals
Line 132:39: E252 missing whitespace around parameter equals
Line 170:44: E252 missing whitespace around parameter equals
Line 170:45: E252 missing whitespace around parameter equals

coverage: 85.512% (+0.03%) from 85.478%
when pulling 0fd8bd8645ff9f210d35737318f6c5782838a409 on add-thai-morse
into 3b6daf05d9b9cae7608da1d4073c86817bcfa716 on dev.

Morse code from https://web.archive.org/web/20180118141549/http://www.thaitelecomkm.org/TTE/topic/attach/Morse_Codes/index.php


[py2py3] Migration at level scr/python/A/B/C - slice 1

Our purpose is to continue with the gradual migration. Since is it not possible anymore to do so at the src/python/A/B level, we have to tackle the migration in smaller units,  namely src/python/A/B/C .
Some maybe unnecessary information
A detailed plan of the migration at this depth is available at the dmwm mkdocs detailed plan page, with summary information on top. Every entry on this list can be migrated safely if all the previous entries are already migrated if the value of the column "gradual migration?" is True. If it is False, then that module has to be migrated at the same time with all the other entries that have 0.
If we split at src/python/A/B/C level, then the unsafe portion of the migration is way shorter, see slide 12 at the CMS Fall20 O&C week DMWM presentation.
Impact of the new feature
We start migrating the first bulk of migration units at src/python/A/B/C level. The number of migrated units is such that the changes amount to about 100 lines (+ and -) in scr/python/ (not including test/python, bin, etc.).
Is your feature request related to a problem? Please describe.
The end goal is to have WMCore py2 and py3 compatible.
Describe the solution you'd like
Run futurize on the first bulk of units and then apply the necessary manual changes.

#10057 has been merged, despite github had some problem automatically closing it. I close this issue manually.

#10057 has been merged, despite github had some problem automatically closing it. I close this issue manually.


Install script to  get (optional ) version number as an input

Users who uses
  curl -fsSL "https://git.io/fhe9X" | sh

have no control over which version is installed as this scipt pull latest release. This is good for many cases, however we need to have an option to provide version number of specific release as an input to this script. If no version is provided, then latest will be used, as is today

@gilv Done in #96


[WIP] Adding code examples in comments

I've added just 2 code examples so far. For camelize and camelizeCustom functions.
Could you tell me if the examples are fine or should I change them?
To solve: #25

@CristhianMotoche They look good. Thanks! :)


Integrate f-divergence to DPO (Follow up)

Updated based on previous PR: https://github.com/huggingface/trl/pull/1339
Main actions: solve conflicts and merge the dev branch with main branch

Is this PR still a WIP ? @1485840691
cc @kashif

Is this PR still a WIP ? @1485840691 cc @kashif

Yes, but it is almost done. I am trying to fix any errors encountered during the build. Then wait for any reviews on the code.

Thanks for the review. Please inform me if there is anything to do from my side. If everything is OK,  please help merge the repo to the main branch. Thanks
@kashif @younesbelkada

evaluation_strategy is deprecated, replaced by eval_strategy. Fix here: #1771


clean up container_dashboard_service

Was in here fixing the rollup queries and saw this.
main goal for this change is to remove the unneeded if check. Which will remove an unneeded select count(*) from metrics query.
Didn't bother running the numbers because it is negligible/trivial.

@zeari
@miq-bot add_label providers/containers


Return names in the technology-native format

For example:
/api/v1/[workspace_id]/filter/skew?type=npm-project-deps
returns package names that are not in npm notation:
"name": "atomist::slack-messages"
should be @atomist/slack-messages
Similarly with other dependency name notation.

Agree, this looks odd. @slimslenderslacks, @cdupuis we need to discuss name escaping at all levels.

Correct current URL for this is
/api/v1/[workspace_id]/drift?type=npm-project-deps
It does still exhibit the problem


When change the language, changes retrorun and retroarch too

When change the language, changes retrorun and retroarch (32 and 64) too

Retroarch language codes:
RETRO_LANGUAGE_ENGLISH             = 0,
RETRO_LANGUAGE_JAPANESE            = 1,
RETRO_LANGUAGE_FRENCH              = 2,
RETRO_LANGUAGE_SPANISH             = 3,
RETRO_LANGUAGE_GERMAN              = 4,
RETRO_LANGUAGE_ITALIAN             = 5,
RETRO_LANGUAGE_DUTCH               = 6,
RETRO_LANGUAGE_PORTUGUESE_BRAZIL   = 7,
RETRO_LANGUAGE_PORTUGUESE_PORTUGAL = 8,
RETRO_LANGUAGE_RUSSIAN             = 9,
RETRO_LANGUAGE_KOREAN              = 10,
RETRO_LANGUAGE_CHINESE_TRADITIONAL = 11,
RETRO_LANGUAGE_CHINESE_SIMPLIFIED  = 12,
RETRO_LANGUAGE_ESPERANTO           = 13,
RETRO_LANGUAGE_POLISH              = 14,
RETRO_LANGUAGE_VIETNAMESE          = 15,
RETRO_LANGUAGE_ARABIC              = 16,
RETRO_LANGUAGE_GREEK               = 17,
RETRO_LANGUAGE_TURKISH             = 18,
RETRO_LANGUAGE_SLOVAK              = 19,
RETRO_LANGUAGE_PERSIAN             = 20,
RETRO_LANGUAGE_HEBREW              = 21,
RETRO_LANGUAGE_ASTURIAN            = 22,
RETRO_LANGUAGE_FINNISH             = 23,

Retorarch config file on RetroOz:
~/.config/retroarch/retroarch.cfg
~/.config/retroarch32/retroarch.cfg
Property "user_language".cd


no trace of a "forced closed" channel in lnd via lncli

Background
I "forced closed" a lightning channel 12 days ago from my lnd 0.11 node, which was opened by a third party 6 weeks ago.
The command "lncli closechannel --funding_txid xxx --output_index 0 --force" replied with a "closing_txid". The closing txid was confirmed within an hour according a bitcoin blockchain explorer.
The commands "lncli closedchannels, list channels, pendingchannels" have no trace of the channel I forced closed.
The balance of the channel on my side is still missing from the wallet.
The log file of lnd shows traces of the history of the forced closed channel. See attached the log file "grep'ed" with the channel point of the forced closed channel. It suggests that lnd continues to attempt to settle the force closed channel and  is aware of the status of this forced closed channel.
nohupae914.txt
Your environment

version of lnd "version": "0.11.99-beta commit=v0.11.0-beta-305-gd26001a69a27aa025c7db497315c2aaf89444f21"
which operating system ubuntu 16.04
version of bitcoind "version": 200000,

Steps to reproduce
force close a channel
Expected behaviour
The lifecycle of the forced channels should be fully traceable at all times via lncli in the channel history of lnd, with clear indication of the time delay (time lock?) within which the user may expect the settlement of the forced closed channel.
Actual behaviour
There is no info available via lncli on the status of forced closed channel from when it is forced closed until it is settled and on the delay that the user may expect to recover her/his balance of the forced closed channel.

This is definitely not the expected behavior. The channel should stay in the lncli pendingchannels until it's fully resolved and should then move to lncli closedchannels. From the logs it looks like it's still being worked on. Can you please try to upgrade lnd to v0.12.1-beta and check lncli pendingchannels again?

If you look at the channel on-chain, it seems to have been resolved already. Since you force closed, then your funds took the delayed path: https://blockstream.info/tx/89ac71b4af3ef8e6b3113d9f9a980e092ced8513249c2ebc49fc535d20de2c47?input:0&expand.

@guggero & @wpaulino: Thanks for your feedback, indeed the force closure of the channel was resolved in @ block 677850 (2021-04-05 11:23:24 GMT +2).
No material anymore in the node to further check if the issue reported is resolved by an upgrade.
Will do at the next opportunity and will report.

Okay, good to know it looks to be resolved.
Closing for now, feel free to reopen if it happens again.


Error: connect ENOTSOCK on OSX

When working on OSX, the following src/test/runTest.js fails to run:
import * as path from "path";

import { runTests } from "@vscode/test-electron";

async function main() {
    try {
        const extensionDevelopmentPath = path.resolve(__dirname, "../../../");
        const extensionTestsPath = path.resolve(__dirname, "./suite/index");

        await runTests({ extensionDevelopmentPath, extensionTestsPath });
    } catch (err) {
        console.error("Failed to run tests");
        process.exit(1);
    }
}

main();

The output is:
> node ./out/src/test/runTest.js

Downloading VS Code 1.71.2 from https://update.code.visualstudio.com/1.71.2/darwin-arm64/stable
Downloading VS Code [==============================] 100%
Downloaded VS Code into /Users/user/repo/.vscode-test/vscode-darwin-arm64-1.71.2

Downloaded VS Code into /Users/user/repo/.vscode-test/vscode-darwin-arm64-1.71.2
objc[9681]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x25077db50) and /Users/user/repo/.vscode-test/vscode-darwin-arm64-1.71.2/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x114095348). One of the two will be used. Which one is undefined.
WARNING: IPC handle "/Users/user/repo/.vscode-test/user-data/1.71.2-main.sock" is longer than 103 chars, try a shorter --user-data-dir
[main 2022-09-26T23:07:44.247Z] Error: connect ENOTSOCK /Users/user/repo/.vscode-test/user-data/1.71.2-main.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
Exit code:   1
Failed to run tests

Alright, this was the solution for me:
async function createTempDir() {
    return new Promise<string>((resolve, reject) => {
        tmp.dir((err, dir) => {
            if (err) {
                return reject(err);
            }
            resolve(dir);
        });
    });
}

Then, on runTests({: launchArgs: ["--user-data-dir", await createTempDir()]

Just to clarify:
// Download VS Code, unzip it and run the integration test
    await runTests({
      extensionDevelopmentPath,
      extensionTestsPath,
      launchArgs: ["--user-data-dir", tmpDir],
    });

You can follow these instructions to create tmpDir.


[Bug] [Module Name] 启动docker容器报错

Search before asking

[X] I had searched in the issues and found no similar issues.

Operating system information
Linux
Python version information

=3.11

DB-GPT version
main
Related scenes

[ ] Chat Data
[ ] Chat Excel
[ ] Chat DB
[ ] Chat Knowledge
[ ] Model Management
[ ] Dashboard
[ ] Plugins

Installation Information

[ ] Installation From Source

[X] Docker Installation

[ ] Docker Compose Installation

[ ] Cluster Installation

[ ] AutoDL Image

[ ] Other

Device information
A100 80G
Models information
LLM: chatglm2-6b
What happened
容器启动时报错：
ERROR Error starting worker manager: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/app/models/chatglm2-6b'. Use repo_type argument if needed.
以下是我的docker容器启动命令：
docker run --ipc host --gpus all -d \

-p 5000:5000 \
-e LOCAL_DB_TYPE=sqlite \
-e LOCAL_DB_PATH=data/default_sqlite.db \
-e LLM_MODEL=chatglm2-6b \
-e LANGUAGE=zh \
-v /home/tianjian04/text2vec:/app/models \
--name dbgpt \
eosphorosai/dbgpt

What you expected to happen
正常启动
How to reproduce
ok
Additional context
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Search before asking

[x]  I had searched in the issues and found no similar issues.

Operating system information
Linux
Python version information

=3.11

DB-GPT version
main
Related scenes

[ ]  Chat Data
[ ]  Chat Excel
[ ]  Chat DB
[ ]  Chat Knowledge
[ ]  Model Management
[ ]  Dashboard
[ ]  Plugins

Installation Information

[ ]  Installation From Source
[x]  Docker Installation
[ ]  Docker Compose Installation
[ ]  Cluster Installation
[ ]  AutoDL Image
[ ]  Other

Device information
A100 80G
Models information
LLM: chatglm2-6b
What happened
容器启动时报错： ERROR Error starting worker manager: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/app/models/chatglm2-6b'. Use repo_type argument if needed.
以下是我的docker容器启动命令： docker run --ipc host --gpus all -d \

-p 5000:5000 \
-e LOCAL_DB_TYPE=sqlite \
-e LOCAL_DB_PATH=data/default_sqlite.db \
-e LLM_MODEL=chatglm2-6b \
-e LANGUAGE=zh \
-v /home/tianjian04/text2vec:/app/models \
--name dbgpt \
eosphorosai/dbgpt

What you expected to happen
正常启动
How to reproduce
ok
Additional context
No response
Are you willing to submit PR?

[ ]  Yes I am willing to submit a PR!

-v /home/tianjian04/text2vec:/app/models \   mount的local地址不对，指定把text2vex model和chatglm2-6b模型都下载的/home/tianjian04/models 里面，然后指定-v /home/tianjian04/models:/app/models


Fix OpenMP batched version

OpenMP batched version has a bug, it seems GPU does not have the updated data and does nothing.

Current version works with -gpu=managed for NVHPC/21.3. TODO: check with Clang and Cray compilers.


Warning : Native Component for 'AirMap' does not Exist

Hi @abhishekpandeykr did you ever resolve this issue? I'm encountering the same error message preventing the Maps component from correctly displaying

@aleksdao Please refer this, this worked for me
https://github.com/airbnb/react-native-maps/issues/1127


Extend PebbleTemplate to allow rendering of single blocks

I have recently adopted Pebble for rendering html views in an enterprise application, and thought it could be useful for emails as well. It seems sensible to describe subject, text and html body in the same template, but this would require rendering them as separate blocks.
This PR extends PebbleTemplate and PebbleTemplateImpl with a new evaluateBlock() method that allows rendering of single blocks, similar to the Twig renderBlock() method.
Happy to improve this if I have missed an easier way!

Thank you for the fixes!


Expose Lithops wait_dur_sec to speed up tests

Set to a smaller value for tests so they complete faster.
This is related to https://github.com/lithops-cloud/lithops/issues/1292, but doesn't need any changes to Lithops. It's possible that there are more improvements to be made, but this already helps speed up the tests.

The tests running on ubuntu-latest Python 3.9 went from 13m52s to 8m49s. Others showed significant improvements too.
(I also noticed that ubuntu-latest Python 3.12 is a lot slower than 3.9 - almost 2x - would be good to look into it.)

Hi @tomwhite,
While running the cubed tests recently, I noticed a few details that could help improve their performance:
Firstly, regarding your observation about tests running 2x slower in Python 3.12, I found that this slowdown is caused by the codedev plugin. In my fork, I modified the workflow to run codedev only on Ubuntu 3.9. This change resulted in a 2x reduction in test time for Python 3.12.
      - name: Run tests
        run: |
          if [ "$RUNNER_OS" == "Linux" ] && [ "${{ matrix.python-version }}" == "3.9" ]; then
            pytest -v --cov=cubed --cov-report=term-missing --cov-fail-under=90
          else
            pytest -v
          fi

Secondly, in Lithops, there is a configuration parameter that allows you to disable the module_manager module. This module analyzes the code (in this case, the cubed code), checks the dependencies, and packages and transfers them to the cloud if they are not present in the remote runtime. For localhost tests, this module_manager is unnecessary since all dependencies are already in the local environment, so there is no need to transfer anything. You can disable it in your utils.py file by setting:
LITHOPS_LOCAL_CONFIG = {
    "lithops": {
        "backend": "localhost",
        "storage": "localhost",
        "monitoring_interval": 0.1,
        "include_modules": None
    }
}

The overhead of the module_manager is probably negligible for a single map, but in your tests, where you run tens of maps, it starts to accumulate. For example, by disabling it, you can save approximately 30 seconds in the Ubuntu and macOS tests, and around 2 minutes in the Windows tests.
In summary, with these two minor changes, the tests can run in approximately 8 minutes instead of the current 17 minutes.

Thanks for helping speed up the Cubed tests @JosepSampe!
I found this issue about the slow down in Python 3.12: https://github.com/nedbat/coveragepy/issues/1665. It looks like you can now set COVERAGE_CORE=sysmon to make it run at a similar speed on 3.12. Would you be interested in doing a PR to fix that in Cubed?
Regarding module_manager, would that be a useful change to Lithops generally? I.e. never analyse the code when running on localhost.

Regarding module_manager, would that be a useful change to Lithops generally? I.e. never analyse the code when running on localhost.

I've been thinking about this, but right now I'm not sure if all the use cases will align with yours. For example, in the Lithops tests, I need this activated to ensure the module_manager is working properly. Additionally, if you set a runtime different from the interpreter you use to invoke the Lithops script, such as a container image, this needs to be activated as well. But in any case, I will check if it is feasible and ensure it won't break any existing code from other users.

Regarding module_manager, would that be a useful change to Lithops generally? I.e. never analyse the code when running on localhost.

I've been thinking about this, but right now I'm not sure if all the use cases will align with yours. For example, in the Lithops tests, I need this activated to ensure the module_manager is working properly. Additionally, if you set a runtime different from the interpreter you use to invoke the Lithops script, such as a container image, this needs to be activated as well. But in any case, I will check if it is feasible and ensure it won't break any existing code from other users.

+1 sounds good.


Failed to add cover art when downloading in wav format

Savify version: v2.0.10
Python version: 3.9.0
Operating System: Windows 10

Description
I tried to download song in wav format, but I got "Reason: Failed to add cover art." error.
I know that "Tags and cover art will only be applied to songs downloaded in mp3 format.", but the wav file is unplayable. Is there any way to disable the art cover? Or is the wav art cover support comming soon?
What I Did

   ┎───────────┒      /$$$$$$                       /$$  /$$$$$$
   ┃(((((((((((┃     /$$__  $$                     |__/ /$$__  $$
   ┃(((((((((((┃    | $$  \__/  /$$$$$$  /$$    /$$ /$$| $$  \__//$$   /$$
   ┃(((((((((((┃    |  $$$$$$  |____  $$|  $$  /$$/| $$| $$$$   | $$  | $$
   ┃(((((((((((┃     \____  $$  /$$$$$$$ \  $$/$$/ | $$| $$_/   | $$  | $$
╭━━┛(((((((((((┗━━╮  /$$  \ $$ /$$__  $$  \  $$$/  | $$| $$     | $$  | $$
 ╲(((((((((((((((╱  |  $$$$$$/|  $$$$$$$   \  $/   | $$| $$     |  $$$$$$$
   ╲(((((((((((╱     \______/  \_______/    \_/    |__/|__/      \____  $$
     ╲(((((((╱                                                   /$$  | $$
       ╲(((╱                                                    |  $$$$$$/
         V                                                       \______/ v2.0.10
                 Copyright (c) 2018-2020 Laurence Rawlings

[DEBUG] [download] Downloading playlist: 2 Chainz - We Own It (Fast & Furious) (AUDIO)
[DEBUG] [youtube:search] query "2 Chainz - We Own It (Fast & Furious) (AUDIO)": Downloading page 1
[DEBUG] [youtube:search] playlist 2 Chainz - We Own It (Fast & Furious) (AUDIO): Downloading 1 videos
[DEBUG] [download] Downloading video 1 of 1
[DEBUG] [youtube] tYQ1Okyi3g4: Downloading webpage
[DEBUG] [youtube] Downloading just video tYQ1Okyi3g4 because of --no-playlist
[DEBUG] [download] Destination: C:\Users\xxx\AppData\Roaming\Savify\temp\64c8cd69-2e68-11eb-ad4c-e09467e0cacb.webm
[download]   0.0% of 3.49MiB at 200.98KiB/s ETA 00:17
[download]   0.1% of 3.49MiB at 602.95KiB/s ETA 00:05
[download]   0.2% of 3.49MiB at  1.37MiB/s ETA 00:03
[download]   0.4% of 3.49MiB at  2.45MiB/s ETA 00:01
[download]   0.9% of 3.49MiB at  1.05MiB/s ETA 00:03
[download]   1.8% of 3.49MiB at  1.54MiB/s ETA 00:02
[download]   3.6% of 3.49MiB at  1.59MiB/s ETA 00:02
[download]   7.1% of 3.49MiB at  1.74MiB/s ETA 00:01
[download]  14.3% of 3.49MiB at  2.03MiB/s ETA 00:01
[download]  28.6% of 3.49MiB at  2.35MiB/s ETA 00:01
[download]  57.3% of 3.49MiB at  2.49MiB/s ETA 00:00
[download] 100.0% of 3.49MiB at  2.57MiB/s ETA 00:00
[download] 100% of 3.49MiB in 00:01
[DEBUG] [ffmpeg] Destination: C:\Users\xxx\AppData\Roaming\Savify\temp\64c8cd69-2e68-11eb-ad4c-e09467e0cacb.wav
[DEBUG] Deleting original file C:\Users\xxx\AppData\Roaming\Savify\temp\64c8cd69-2e68-11eb-ad4c-e09467e0cacb.webm (pass -k to keep)
[DEBUG] [download] Finished downloading playlist: 2 Chainz - We Own It (Fast & Furious) (AUDIO)

Download Finished!
Completed 0/1 tracks in 5.9495s

Failed Tracks:

Track: We Own It (Fast & Furious)
Reason: Failed to add cover art.

C:\Users\xxx\Desktop\savify>

Thanks

Cover art is now skipped for all file formats that are not mp3.

Cover art is now skipped for all file formats that are not mp3.


reduce transfers between host and gpus.

The host is responsible for splitting the batch and each GPU gets only the data it will work on (as opposed to the entire batch).
This also probably has the benefit of saving some memory on the GPU side.

ok, thx, that's fixed.

I tested this, and I observe no measurable change with a range of models (Xception, ResNet50, VGG16) and a range of GPU count (2, 4, 8). We're consistently the same speed, actually 1ms slower per batch a lot of the time (which could be noise).
Under which conditions did you observe a speed up?

I have 3D data with 128x128x128 float cubes and batch size of 128. Which amounts to about 1 Gbyte per batch. If you're testing with 2d data you might want to rescale your images to 1450x1450 and increase the stride on the first Conv to have reasonably sized feature maps.

oh, and this is a 4 GPU setup.

Can you post:

a demo model (standalone script, data randomly generated with numpy)
timing you're observing with and without this PR
memory usage you're observing with and without this PR

I will try to repro with your script with various GPUs

Upon further investigation, it seems the speed-up I observed was probably related to something else like maybe disk caching, I'm not too sure. I did dig a bit further into whether the mod was following my intuition, and it is not quite right. As François mentioned there is a slight drop in performance that is consistent with what I observe in the GPU profiler (see image of profiler on modded version). The original version shows a full batch transfer to all GPUs (sorry I lost that view), after which each GPU extracts what it needs (1/4 batch on my 4 GPU setup). My modded version transfers the whole batch to GPU0, then transfers 1/4 batch to GPU0 again. GPUs 1 to 3 get their batch data from GPU0 (see image). I will close this PR, as it doesn't improve things. Also to put things in context, one full batch (1Gbytes in my case) takes up to half a second to transfer to gpus, so the potential gain if we do this right would be about 150-200ms per batch.


fix infinite loop in SRL grounder

Happened when the predicate and the theme were both properties.
Now this is checked for.
closes #1032

There was already an obscure (bad) system for dealing with the grounding tests.  It probably needs to be revisited, but maybe not just now.  I have a small update to this PR so that it works the old way.

On second thought, I think the grounding tests may be revived sooner rather than later if it works to use the updated processors which has the fast loading vectors.  This fix is good if/when eidos is ready for it.


Awake Updates - NEWKONA_11272024

PowerToys Awake now has the option to retry icon setup.

Would love someone to test build and test this. I am blocked on building PowerToys right now because of #36134.

@htcfreek - packages are only updated for Awake. Where do I need to list updated packages?

I'll take a look at those package version mismatches.

Hi @dend , I've merged main, fixed NOTICE.md and reverted the CsWinRT upgrade. Any reason you needed that upgrade? That one upgrades WinRT dll which means we need to make sure every project is pulling in the right version of the dll and every module needs to be tested. That upgrade should be a different PR because of that. Hope this makes sense.

/azp run

@dend i updated the spell check as FYI

/azp run

@dend merge when ready


[tests-only] [full-ci] Bump commit ids for tests

Description

bump the commit ids for tests to the latest
delete the expected-failures file for EOS. We don't test EOS in CI here in owncloud/ocis and the content of it gets out-of-date and useless.

How Has This Been Tested?
CI
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[x] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

On owncloud storage: https://drone.owncloud.com/owncloud/ocis/5944/27/7
runsh: Total unexpected failed scenarios throughout the test run:
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:196
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:218
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:240
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:262
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:283
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:305
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:327
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:349
apiShareCreateSpecialToShares1/createShareReceivedInMultipleWays.feature:370
runsh: There were no unexpected success.

And the same on OCIS storage: https://drone.owncloud.com/owncloud/ocis/5944/28/6
Those are new scenarios. It needs someone to look at the fails and see if they fit with an existing issue, or if a new issue needs to be raised.

this PR can be merged. I will rebase my PR #2281 after it is merged


Cannot click dropdown menu button using DOM method click()

Bug report
Current Behavior
Cannot open dropdown menu by querying the button and call click()
Expected behavior
Should open the menu.
Reproducible example

Go to: https://www.radix-ui.com/primitives/docs/components/dropdown-menu
Open browser console
Run:

document.querySelector('button[aria-label="Customise options"]').click()

This works for Popover.

Any workaround on this?


Nested unquote-splicing

It seems that expression ,@,@x is ignored
(define x '(1 2 3))
(define y '(11 22 33))
(define l '(x y))

``(,@,@l ,@,@l)

it should evaluate to:
(quasiquote ((unquote-splicing x y) (unquote-splicing x y)))

BiwaScheme returns:
(quasiquote ((unquote-splicing (unquote-splicing l)) (unquote-splicing (unquote-splicing l))))

You should eval this and get:
(1 2 3 11 22 33)

But BiwaScheme return error:
unquote-splicing(,@) must be inside quasiquote(`) []

@yhara before you start working on a fix, I suggest readig this article:

Quasiquotation in Lips by Alan Bawden

@jcubic Oh thank you!


Middleware for specific route

How can I make a middleware that works for a specific route? Is there a configuration on nuxt.config.js?

Hi @jvbianchi! You can set route specific middleware like this: middleware docs
<script>
export default {
  middleware: 'authenticated'
}
</script>


Adding new community configuration management policies (cnf)

This PR intends to add 4 configuration management policies:

Install performance addon operator
Install ptp operator
Install sr-iov network operator
Label nodes

This effort is included in the task of automating the installation and configuration of CNF operators with ACM and OpenShift. Detailed information can be found in this repository: https://github.com/alosadagrande/acm-cnf

can you resolve the conflicts? we updated the table to use markdown table instead

Will review in the morning


Fix zero hash

This PR fixes #60.
By convention zero sized trees often define their root hash to be SHA256(""), but this is not reconstructible by any means, nor used in any consistency proof (all non zero trees are by definition consistent with a zero sized tree). So don't try to verify the correctness of this hash.

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

Comparison is base (2f4a6a7) 55.76% compared to head (c404f80) 55.99%.

:exclamation: Current head c404f80 differs from pull request most recent head daa0b02. Consider uploading reports for the commit daa0b02 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   55.76%   55.99%   +0.23%
==========================================
  Files           8        8
  Lines         755      759       +4
==========================================
+ Hits          421      425       +4
  Misses        265      265
  Partials       69       69

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


H7102 Smart Tower Fan

Thanks for the great work here!
I was able to get an API key and setup via docker. My device was recognized however the controls are unavailable. I'm guessing this is because your library does not currently support fans or my fan specifically.
Happy to provide whatever needed to get this model to work. I'm a software developer intimately familiar with REST APIs, just don't know Rust :\
Logs:

[2024-01-08T06:29:23 INFO  govee::commands::serve] Starting service. version 2024.01.07-ac926c47
[2024-01-08T06:29:23 INFO  govee::commands::serve] Querying platform API for device list
[2024-01-08T06:29:24 INFO  govee::commands::serve] Querying undocumented API for device + room list
[2024-01-08T06:29:25 INFO  govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted.
[2024-01-08T06:29:25 INFO  govee::commands::serve] Starting LAN discovery
[2024-01-08T06:29:25 INFO  govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2024-01-08T06:29:29 INFO  govee::commands::serve] Devices returned from Govee's APIs
[2024-01-08T06:29:29 INFO  govee::commands::serve] Master Thermometer (7E:BD:18:1F:6C:F3:38:44) sku=H5179
[2024-01-08T06:29:29 INFO  govee::commands::serve]   Platform API: devices.types.thermometer. supports_rgb=false supports_brightness=false
[2024-01-08T06:29:29 INFO  govee::commands::serve]                 color_temp=None segment_rgb=None
[2024-01-08T06:29:29 INFO  govee::commands::serve]   Undoc: room=None supports_iot=false ble_only=true
[2024-01-08T06:29:29 INFO  govee::commands::serve]
[2024-01-08T06:29:29 INFO  govee::commands::serve] Upper Stairs (48:1A:A4:C1:38:87:7D:5E) sku=H6110
[2024-01-08T06:29:29 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=false supports_brightness=false
[2024-01-08T06:29:29 INFO  govee::commands::serve]                 color_temp=None segment_rgb=None
[2024-01-08T06:29:29 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2024-01-08T06:29:29 INFO  govee::commands::serve]
[2024-01-08T06:29:29 INFO  govee::commands::serve] Smart Tower Fan (13:62:D4:AD:FC:BB:44:DE) sku=H7102
[2024-01-08T06:29:29 INFO  govee::commands::serve]   Platform API: devices.types.fan. supports_rgb=false supports_brightness=false
[2024-01-08T06:29:29 INFO  govee::commands::serve]                 color_temp=None segment_rgb=None
[2024-01-08T06:29:29 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2024-01-08T06:29:29 INFO  govee::commands::serve]
[2024-01-08T06:29:29 INFO  govee::service::http] http server addr is <IP_ADDRESS>:8056
[2024-01-08T06:29:35 INFO  govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.
[2024-01-08T06:29:49 INFO  govee::commands::serve] requesting update via IoT MQTT Upper Stairs (48:1A:A4:C1:38:87:7D:5E) None
[2024-01-08T06:29:49 INFO  govee::commands::serve] requesting update via IoT MQTT Smart Tower Fan (13:62:D4:AD:FC:BB:44:DE) None
[2024-01-08T06:30:10 INFO  govee::service::hass] Home Assistant status changed: online
[2024-01-08T06:34:34 ERROR govee::service::iot] Decoding IoT Packet: govee::service::iot::start_iot_client::{{closure}}::{{closure}}::Packet missing field state at line 1 column 179. Input: {"proType":0,"msg":"{"transaction":"u_1704720875251","sku":"H6110","device":"48:1A:A4:C1:38:87:7D:5E","cmdVersion":0,"type":0,"cmd":"online","data":"{}"}"} {"proType":0,"msg":"{"transaction":"u_1704720875251","sku":"H6110","device":"48:1A:A4:C1:38:87:7D:5E","cmdVersion":0,"type":0,"cmd":"online","data":"{}"}"}

Device:

Please share the output from:
$ docker run --rm ghcr.io/wez/govee2mqtt /app/govee http-control --api-key $GOVEE_API_KEY --id 13:62:D4:AD:FC:BB:44:DE info

$ docker run --rm ghcr.io/wez/govee2mqtt /app/govee http-control --api-key $GOVEE_API_KEY --id 13:62:D4:AD:FC:BB:44:DE status

Info:
HttpDeviceInfo {
    sku: "H7102",
    device: "13:62:D4:AD:FC:BB:44:DE",
    device_name: "Smart Tower Fan",
    device_type: Fan,
    capabilities: [
        DeviceCapability {
            kind: OnOff,
            instance: "powerSwitch",
            parameters: Some(
                Enum {
                    options: [
                        EnumOption {
                            name: "on",
                            value: Number(1),
                            extras: {},
                        },
                        EnumOption {
                            name: "off",
                            value: Number(0),
                            extras: {},
                        },
                    ],
                },
            ),
            alarm_type: None,
            event_state: None,
        },
        DeviceCapability {
            kind: Toggle,
            instance: "oscillationToggle",
            parameters: Some(
                Enum {
                    options: [
                        EnumOption {
                            name: "on",
                            value: Number(1),
                            extras: {},
                        },
                        EnumOption {
                            name: "off",
                            value: Number(0),
                            extras: {},
                        },
                    ],
                },
            ),
            alarm_type: None,
            event_state: None,
        },
        DeviceCapability {
            kind: WorkMode,
            instance: "workMode",
            parameters: Some(
                Struct {
                    fields: [
                        StructField {
                            field_name: "workMode",
                            field_type: Enum {
                                options: [
                                    EnumOption {
                                        name: "Normal",
                                        value: Number(1),
                                        extras: {},
                                    },
                                    EnumOption {
                                        name: "Custom",
                                        value: Number(2),
                                        extras: {},
                                    },
                                    EnumOption {
                                        name: "Auto",
                                        value: Number(3),
                                        extras: {},
                                    },
                                    EnumOption {
                                        name: "Sleep",
                                        value: Number(5),
                                        extras: {},
                                    },
                                    EnumOption {
                                        name: "Nature",
                                        value: Number(6),
                                        extras: {},
                                    },
                                ],
                            },
                            default_value: None,
                            required: true,
                        },
                        StructField {
                            field_name: "modeValue",
                            field_type: Enum {
                                options: [
                                    EnumOption {
                                        name: "Normal",
                                        value: Null,
                                        extras: {
                                            "options": Array [
                                                Object {
                                                    "value": Number(1),
                                                },
                                                Object {
                                                    "value": Number(2),
                                                },
                                                Object {
                                                    "value": Number(3),
                                                },
                                                Object {
                                                    "value": Number(4),
                                                },
                                                Object {
                                                    "value": Number(5),
                                                },
                                                Object {
                                                    "value": Number(6),
                                                },
                                                Object {
                                                    "value": Number(7),
                                                },
                                                Object {
                                                    "value": Number(8),
                                                },
                                            ],
                                        },
                                    },
                                    EnumOption {
                                        name: "Custom",
                                        value: Null,
                                        extras: {
                                            "defaultValue": Number(0),
                                        },
                                    },
                                    EnumOption {
                                        name: "Auto",
                                        value: Null,
                                        extras: {
                                            "defaultValue": Number(0),
                                        },
                                    },
                                    EnumOption {
                                        name: "Sleep",
                                        value: Null,
                                        extras: {
                                            "defaultValue": Number(0),
                                        },
                                    },
                                    EnumOption {
                                        name: "Nature",
                                        value: Null,
                                        extras: {
                                            "defaultValue": Number(0),
                                        },
                                    },
                                ],
                            },
                            default_value: None,
                            required: true,
                        },
                    ],
                },
            ),
            alarm_type: None,
            event_state: None,
        },
    ],
}

Status:
HttpDeviceState {
    sku: "H7102",
    device: "13:62:D4:AD:FC:BB:44:DE",
    capabilities: [
        DeviceCapabilityState {
            kind: Online,
            instance: "online",
            state: Object {
                "value": Bool(true),
            },
        },
        DeviceCapabilityState {
            kind: OnOff,
            instance: "powerSwitch",
            state: Object {
                "value": Number(0),
            },
        },
        DeviceCapabilityState {
            kind: Toggle,
            instance: "oscillationToggle",
            state: Object {
                "value": Number(1),
            },
        },
        DeviceCapabilityState {
            kind: WorkMode,
            instance: "workMode",
            state: Object {
                "value": Object {
                    "modeValue": Number(1),
                    "workMode": Number(3),
                },
            },
        },
    ],
}

Thanks; the metadata looks similar to that of a humidifier and I'm currently working through supporting that.
I'll review once that's done; the tricky part in this is mapping the metadata to the hass entities without too many assumptions.

Great, thanks for the quick response and work for the community!
Happy to help further if there's something I can do.

The challenge here is that workMode is a bit kooky.  It represents a mode with five states, where each mode state has a corresponding parameter value.  One of the modes (Normal) has defined inputs, but the others are unspecified.
There's no metadata to describe these values, and no documentation to describe what the metadata actually means.
The Govee docs are on the surface good, but when you dig deeper, there's so much that is undefined or unspecified.
For my humidifer, in auto mode, the mode parameter value controls the target humidity. The input range for that is not specified at all in the metadata, and I'm having to reverse engineer it by packet sniffing.
It's not good.
In terms of mapping this into hass, the auto/target humidity maps into the hass humidifier entity, but the other values do not. They need to have separate input entities of the appropriate type created for them.
I suspect that a similar situation will apply to the fan.
The simplest case for exposing this stuff is to ignore the native home assistant entity types and just export select and number entities; that's probably what I'll do once I'm done working through this.
Then a second pass can be to figure out how to smoosh it into the fan entity.

I see, thanks for extrapolating a bit. I'm really just looking for the ability to turn it on and off as I have a temperature sensor near it that would allow me to simulate the auto mode built into the app with an HA automation.
Obviously a complete mapping of functionality is better, but IMHO partial (if possible) would be better than the nothing sandwich it currently is for my model. Sounds like this might be your plan with the select and number entities prior to a second fan entity.
For a proper fan entity, I could probably do some packet sniffing here if given some guidance on filters, etc. I've used Wireshark in the past to sniff traffic.
Let me know your thoughts. Really appreciate your work here.

Thanks @wez.
I just followed your instructions and I'm able to turn the fan on and off correctly now!
Here's how it reports in HA:

The Normal mode parameter stuff is missing from the UI; did HASS log anything about it?  There should be a number entity being registered for it to let you set that level.

No entity for that:

Didn't see anything off in HA logs.

Not trying to overstep here. Just adding context for H7111 fan.
The "parameters" in the pic showed up after Wez made changes for the humidifier.
Auto, custom, fanspeed (speed options: 1-8), nature, sleep, and storm (storm is called turbo in govee app) are the available modes.

OK, so it looks like the parameter values aren't being populated. Would be good to get the output from this, and then try changing the mode/parameters in the Govee app and trying it again to see whether and how the data changes:
$ docker run --rm ghcr.io/wez/govee2mqtt /app/govee http-control --api-key $GOVEE_API_KEY --id 13:62:D4:AD:FC:BB:44:DE status

(but replace that id with the id for your device)
so that we can see if they are being reported reasonably by the platform API.
For my humidifier, I had to essentially ignore the state data from the Platform API; while the metadata is useful for figuring out what to call the entities, I had to parse packets from the IoT API to determine the values.

Ok here we go. The only option available for me to run these commands wouldn't let me copy so screenshots it is.
First 3 are fan off, sleep mode, nature mode

Then we have
Nature mode, custom mode, normal speed 8

In the latest addon update, I've made a change that will make a point of polling the state from the platform API for devices where we don't know for sure how to interpret the data from the IoT API.  That might make these devices start to do something more useful.
What I'd appreciate, if/when you have the time, is mapping the values from the app to the values you see in the state.
For example, for my humidifier, the target humidity value is encoded as 128 + percentage, and since the device has a min humidity value of 40 that means that 168 is the smallest value for that particular mode.
I don't know if any of the parameters for fans are quite the same, but perhaps there are more meaningful labels for the options/modes in the app than are reported in the app metadata?
It would be great also to capture the IoT packets that go along with the modes; you can see those by running the debug level set to govee::service::iot=debug,info.

fan is off
[2024-01-10T09:41:39 DEBUG govee::service::iot] Packet { sku: Some("H7111"), device: Some("12:A8:D4:AD:FC:43:1F:A8"), cmd: Some("status"), msg: None, state: StateUpdate { on_off: Some(0), brightness: None, color: None, color_temperature_kelvin: None, sku: None, device: None }, op: Some(OpData { command: [Generic([AA, 12, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, B8]), NotifyHumidifierTimer { on: false }, NotifyHumidifierManualMode { param: 4 }, Generic([AA, 05, 02, 00, 08, 00, 3C, 00, 3C, 05, 00, 3C, 00, 3C, 01, FF, FF, FF, FF, A1]), Generic([AA, 05, 03, 05, 0A, 3C, 08, 0B, 86, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 1A]), NotifyHumidifierMode { mode: 5, param: 0 }, Generic([AA, 08, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, A2]), Generic([AA, 1F, 01, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, B5]), Generic([AA, 16, 00, FF, FF, FF, FF, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, BC])], mode_value: [], sleep_value: [], wakeup_value: [], timer_value: [] }) } [2024-01-10T09:41:39 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {     kind: Toggle,     instance: "oscillationToggle",     state: Object {         "value": Number(0),     }, }
sleep mode
[2024-01-10T09:42:06 DEBUG govee::service::iot] Packet { sku: Some("H7111"), device: Some("12:A8:D4:AD:FC:43:1F:A8"), cmd: Some("status"), msg: None, state: StateUpdate { on_off: Some(1), brightness: None, color: None, color_temperature_kelvin: None, sku: None, device: None }, op: Some(OpData { command: [Generic([AA, 12, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, B8]), NotifyHumidifierTimer { on: false }, NotifyHumidifierManualMode { param: 4 }, Generic([AA, 05, 02, 00, 08, 00, 3C, 00, 3C, 05, 00, 3C, 00, 3C, 01, FF, FF, FF, FF, A1]), Generic([AA, 05, 03, 05, 0A, 3C, 08, 0B, 86, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 1A]), NotifyHumidifierMode { mode: 5, param: 0 }, Generic([AA, 08, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, A2]), Generic([AA, 1F, 01, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, B5]), Generic([AA, 16, 00, FF, FF, FF, FF, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, BC])], mode_value: [], sleep_value: [], wakeup_value: [], timer_value: [] }) } [2024-01-10T09:42:06 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {     kind: Toggle,     instance: "oscillationToggle",     state: Object {         "value": Number(0),     }, }
nature mode
[2024-01-10T09:42:45 DEBUG govee::service::iot] Packet { sku: Some("H7111"), device: Some("12:A8:D4:AD:FC:43:1F:A8"), cmd: Some("ptReal"), msg: None, state: StateUpdate { on_off: None, brightness: None, color: None, color_temperature_kelvin: None, sku: None, device: None }, op: Some(OpData { command: [Generic([AA, 05, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, A9]), NotifyHumidifierMode { mode: 6, param: 0 }], mode_value: [], sleep_value: [], wakeup_value: [], timer_value: [] }) } [2024-01-10T09:42:45 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {     kind: Toggle,     instance: "oscillationToggle",     state: Object {         "value": Number(0),     }, }
turbo mode
[2024-01-10T09:43:37 DEBUG govee::service::iot] Packet { sku: Some("H7111"), device: Some("12:A8:D4:AD:FC:43:1F:A8"), cmd: Some("ptReal"), msg: None, state: StateUpdate { on_off: None, brightness: None, color: None, color_temperature_kelvin: None, sku: None, device: None }, op: Some(OpData { command: [Generic([AA, 05, 07, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, A8]), NotifyHumidifierMode { mode: 7, param: 0 }, Generic([AA, 1F, 01, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, B5])], mode_value: [], sleep_value: [], wakeup_value: [], timer_value: [] }) } [2024-01-10T09:43:37 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {     kind: Toggle,     instance: "oscillationToggle",     state: Object {         "value": Number(0),     }, }
normal, speed 8
[2024-01-10T09:44:12 DEBUG govee::service::iot] Packet { sku: Some("H7111"), device: Some("12:A8:D4:AD:FC:43:1F:A8"), cmd: Some("ptReal"), msg: None, state: StateUpdate { on_off: None, brightness: None, color: None, color_temperature_kelvin: None, sku: None, device: None }, op: Some(OpData { command: [NotifyHumidifierManualMode { param: 8 }, NotifyHumidifierMode { mode: 1, param: 0 }], mode_value: [], sleep_value: [], wakeup_value: [], timer_value: [] }) } [2024-01-10T09:44:12 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {     kind: Toggle,     instance: "oscillationToggle",     state: Object {         "value": Number(0),     }, }
normal, speed 1
[2024-01-10T09:44:58 DEBUG govee::service::iot] Packet { sku: Some("H7111"), device: Some("12:A8:D4:AD:FC:43:1F:A8"), cmd: Some("ptReal"), msg: None, state: StateUpdate { on_off: None, brightness: None, color: None, color_temperature_kelvin: None, sku: None, device: None }, op: Some(OpData { command: [NotifyHumidifierManualMode { param: 1 }, NotifyHumidifierMode { mode: 1, param: 0 }], mode_value: [], sleep_value: [], wakeup_value: [], timer_value: [] }) } [2024-01-10T09:44:58 WARN  govee::hass_mqtt::switch] CapabilitySwitch::notify_state: Do something with DeviceCapabilityState {     kind: Toggle,     instance: "oscillationToggle",     state: Object {         "value": Number(0),     }, }

Let me know if you need anything else for the fans.
Next up for me will be the purifier and a question about the H5082 dual plug, which is only giving a master on/off switch that toggles both sides of the plug together. The actual device allows independent control of each side.

@sdaltons1 please open a separate issue for each device so that it is easier for me to keep track of things

Hi Wez. The new request platform API state thing is awesome.
Here's what it pulls for the h7111 fan. I guess at this point I'm just wondering if it would be possible to have the modes display on the main device screen, like you did for the humidifier. That or a speed slider would also be good. If not, no worries.
{   "meta": {     "capabilities": [       {         "alarmType": null,         "eventState": null,         "instance": "powerSwitch",         "parameters": {           "dataType": "ENUM",           "options": [             {               "name": "on",               "value": 1             },             {               "name": "off",               "value": 0             }           ]         },         "type": "devices.capabilities.on_off"       },       {         "alarmType": null,         "eventState": null,         "instance": "oscillationToggle",         "parameters": {           "dataType": "ENUM",           "options": [             {               "name": "on",               "value": 1             },             {               "name": "off",               "value": 0             }           ]         },         "type": "devices.capabilities.toggle"       },       {         "alarmType": null,         "eventState": null,         "instance": "workMode",         "parameters": {           "dataType": "STRUCT",           "fields": [             {               "dataType": "ENUM",               "defaultValue": null,               "fieldName": "workMode",               "options": [                 {                   "name": "FanSpeed",                   "value": 1                 },                 {                   "name": "Custom",                   "value": 2                 },                 {                   "name": "Auto",                   "value": 3                 },                 {                   "name": "Sleep",                   "value": 5                 },                 {                   "name": "Nature",                   "value": 6                 },                 {                   "name": "Storm",                   "value": 7                 }               ],               "required": true             },             {               "dataType": "ENUM",               "defaultValue": null,               "fieldName": "modeValue",               "options": [                 {                   "name": "FanSpeed",                   "options": [                     {                       "value": 1                     },                     {                       "value": 2                     },                     {                       "value": 3                     },                     {                       "value": 4                     },                     {                       "value": 5                     },                     {                       "value": 6                     },                     {                       "value": 7                     },                     {                       "value": 8                     }                   ],                   "value": null                 },                 {                   "defaultValue": 0,                   "name": "Custom",                   "value": null                 },                 {                   "defaultValue": 0,                   "name": "Auto",                   "value": null                 },                 {                   "defaultValue": 0,                   "name": "Sleep",                   "value": null                 },                 {                   "defaultValue": 0,                   "name": "Nature",                   "value": null                 },                 {                   "defaultValue": 0,                   "name": "Storm",                   "value": null                 }               ],               "required": true             }           ]         },         "type": "devices.capabilities.work_mode"       }     ],     "device": "12:A8:D4:AD:FC:43:1F:A8",     "deviceName": "Smart Floor Fan",     "sku": "H7111",     "type": "devices.types.fan"   },   "state": {     "capabilities": [       {         "instance": "online",         "state": {           "value": true         },         "type": "devices.capabilities.online"       },       {         "instance": "powerSwitch",         "state": {           "value": 0         },         "type": "devices.capabilities.on_off"       },       {         "instance": "oscillationToggle",         "state": {           "value": 0         },         "type": "devices.capabilities.toggle"       },       {         "instance": "workMode",         "state": {           "value": {             "modeValue": 8,             "workMode": 6           }         },         "type": "devices.capabilities.work_mode"       }     ],     "device": "12:A8:D4:AD:FC:43:1F:A8",     "sku": "H7111"   } }

@wwelles I'd love for you to try the latest version and let me know how it is working for you

Assuming I'm using the correct build (latest docker container at time of writing), here's what I get:

Both the power switch and the oscillation work correctly, but nothing regarding the fan levels. Not sure if you were expecting anything there though.

I don't think you're on the latest bits, run this to be sure: docker compose up -d --pull=always

Ah you're right, I ran a similar command to get the latest container, here's what I have now:

Most everything works as you'd expect. One minor exception would be the Activate Normal Preset 1 through 8 buttons control the fan speed.

Those Normal preset buttons should be fixed in the latest version. I recommend deleting the device and restarting govee2mqtt to clear them out.

Yep, that did the trick, thank you!

Great, then I think we can close this!

Hey @wez,
I saw this was closed today and I can create a new issue if needed, but is it possible to have this as a fan entity where speed control is possible?

please file a new issue!


Moving self-signed cert instructions to docs

Moving this content into docs from its original location https://github.com/OfficeDev/generator-office/blob/master/src/docs/ssl.md We reference this a lot from the docs so makes sense to move.

OPS Build status updates of commit af68f11:
:clock10: Preparing: average preparing time is 44 sec(s)

OPS Build status updates of commit af68f11:
:clock10: Incremental building: average incremental building time is 29 sec(s)

OPS Build status updates of commit af68f11:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/images/ssl-chrome-devtool.png
:white_check_mark:Succeeded

docs/images/ssl-chrome-error.png
:white_check_mark:Succeeded

docs/images/ssl-chrome-getcert.png
:white_check_mark:Succeeded

docs/images/ssl-chrome-good.png
:white_check_mark:Succeeded

docs/images/ssl-edge-error.png
:white_check_mark:Succeeded

docs/images/ssl-ie-04.png
:white_check_mark:Succeeded

docs/images/ssl-ie-05.png
:white_check_mark:Succeeded

docs/images/ssl-keychain-01.png
:white_check_mark:Succeeded

docs/images/ssl-keychain-02.png
:white_check_mark:Succeeded

docs/testing/add-self-signed-certificate-as-trusted-root-certificate.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fix for PRelu and elementwise operations

1. Problem with elementwise: it not always raise IndexError. For example I got something like this:
tensorflow.python.framework.errors_impl.InvalidArgumentError: dim 1 not in the interval [-1, 0]. for '{{node 756/ExpandDims}} = ExpandDims[T=DT_FLOAT, Tdim=DT_INT32](756_const1/Const, 756/ExpandDims/dim)' with input shapes: [], [] and with computed input tensors: input[1] = <1>.

I can't really say why, but I think this is the same problem that you got with convert_elementwise_add (there is already an except on IndexError and ValueError, which allows you to use Lambda in case of an unknown error).
2. Problem with PRelu:
Sometimes PRelu is used on tensor(vector) of few dimensions than the usual 4-dimensional. For example if we use PRelu on vector of shape (12,), there can't be shared_axes=[1,2] or [2,3]. I think it is not a totally general solution, but it can help someone with problem as described here https://github.com/nerox8664/onnx2keras/issues/84 (IndexError: list assignment index out of range)

Hello @Andredance.
Thank you for your pull request!


Backport 2806 ASF

Bluemix users are complaining that they cannot search for a simple number string, i.e:
"number" : "3".
This PR includes the necessary backport fix from ASF and the relevant tests.

+1 other than the silly python import.


Check go1.14.3 in virustotal

What version of Go are you using (go version)?
go1.14.3
Does this issue reproduce with the latest release?
yes
What did you do?
I've downloaded official last release of go for linux https://dl.google.com/go/go1.14.3.linux-amd64.tar.gz from https://golang.org/dl/.
And uploaded it to VirusTotal https://www.virustotal.com/gui/file/1c39eac4ae95781b066c144c58e45d6859652247f7515f0d2cba7be7d57d2226/detection.
What did you expect to see?
Message "No engines detected this file".
What did you see instead?
Is see message "One engine detected this file":
BitDefenderTheta (antivirus): Gen:NN.Mirai.34122.

It can be mistake, but I think better to double check it.

Happens so often we have a FAQ about this: https://golang.org/doc/faq#virus
If the checksum is fine the binary you downloaded is fine.
I suggest reporting the issue to the antivirus vendor. Closing here.


Add continuous integration and also auto deploy to gh pages

Based on this: https://quarto.org/docs/publishing/github-pages.html


Implementation of Matrix Sorting

🚀 Matrix_Sorting
Matrix sorting aims to sort the elements of the given matrix without affecting the matrix structure.
The algorithm takes as input a 2D array of elements and sorts it in the desired order. The elements are present in the desired order once the algorithm stops. Example below:
Input : matrix[][] = { {5, 7, 4},
{8, 3, 1},
{2, 6, 9} }
Output : 1 2 3
4 5 6
7 8 9
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
It has a time complexity of O(n√nlog√n) and hence takes lesser time than existing  algorithms of an unsorted matrix with time complexity of O(n2) algorithms.
Pitch
I would like to add Matrix Sorting Algorithm in the Data Structure section. It will make the code more efficient and easy to implement by reducing the time complexity.
Assignees:
C:
C++ : @GrayFlash
JAVA: @nutanaarohi123
Python: @rohangawhade

I would like to work on this issue in JAVA and C++. Kindly assign this task as a part of Hakincodes 2020. @Kajol-Kumari @SKAUL05 @atarax665 @iamrajiv

Please label this issue as CH20.

@nutanaarohi123 Can't assign for multiple languages.
Which one do u want

I would like to work on this using python.

@SKAUL05 can u assign me JAVA

@nutanaarohi123 Can't assign for multiple languages.
Which one do u want

I would like to work on this issue in JAVA.

I can C++, if possible to assign me

I would like to work on this issue in C language.

@SKAUL05  I made a pr for cpp implementation #829

We are logging the scores for the Contributor's Hack 2020. If you have one or more than one PR merged during the program, make sure to fill this form


Bot lets endermen kill it

AltoClef might sometimes randomly look at endermen. This will cause the endermen to attempt to kill the player. There should be a check, if a enderman hits you, the bot fights back, but it should let the normal endermen be alone.

Gotcha. I originally made the bot consider any "angry" endermen enemies and force field them away. The problem with that is that enderman frequently get "angry" at the ender dragon, and the bot should leave those endermen alone, to not provoke them.
I'm not sure if there is a way for the client to "know" which entity specifically attacked them, but I'll look into that later. Would also fix my issue with zombie piglins, as the bot ignores them completely.

Couldn't you get the target from MobEntity#getTarget(), and then just compare it against the player object and if it's the same, then attack?


"workbench.settings.openDefaultKeybindings": false doesn't work with useSplitJSON

VSCode Version: 1.51.1
OS Version: Darwin x64 19.6.0

Steps to Reproduce:

Use these workbench settings:

    "workbench.settings.openDefaultSettings": false,
    "workbench.settings.openDefaultKeybindings": false,
    "workbench.settings.useSplitJSON": true,
    "workbench.settings.editor": "json",

Open settings. I expect to get a split json window, and the default user settings should not be opened.

The "default user settings" is still visible:

Does this issue occur when all extensions are disabled?: Yes

By definition, the "split json" editor shows the default settings, and also that mode is deprecated


Update Private Kernel Circuit WASM/CBinds for modified public input structs

Fixed in https://github.com/AztecProtocol/aztec3-packages/pull/304


pull request for e2e test at 11/28/2016 20:26:04

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


This is a portfolio website, please merge my PR under hackoberfest2022

Good work. I am merging your PR.
Do give us a star by hitting the star button of this repo!


Batch with prepared queries

Whenever I'm trying to use prepared queries in a batch, I get this error:
Exception in Error.php line 123:
Server error: java.lang.IndexOutOfBoundsException: index: 28, length: 749941 (expected: range(0, 137))

Here's what I'm executing:
$batchRequest = new Cassandra\Request\Batch(null, null, [
        'names_for_values' => true,
 ]);
$preparedData = $connection->prepare('INSERT INTO table (qid, rid, value, tsr, tsa)
VALUES (:qid,:rid,:value,:tsr,:tsa)');

$values = [
    'qid' => '1',
    'rid' => '1',
    'value' => '55',
    'tsr' =><PHONE_NUMBER>000,
    'tsa' =><PHONE_NUMBER>000,
];

$batchRequest->appendQueryId($preparedData['id'],
            Cassandra\Request\Request::strictTypeValues($values, $preparedData['metadata']['columns']));

$connection->syncRequest($batchRequest);

Am I missing something or is there an issue?

Have you  tried to use a general request?

Yeah, with normal queries it works as expected. I tried to debug the issue, but I don't quite understand the details yet of the protocol

I tried this, and can confirm 'Server error: java.lang.IndexOutOfBoundsException' occurs when using "names_for_values = true" for batch requests.

@steambao The code is strictly obey the protocol.  It seems like a bug of Cassandra.
Can you have a try to find a way to avoid this problem?

Had a look today. Besides turning off names for values, not sure how or why the error. Looks according to spec as far as I can tell.

This used to work in v0.5.2 (https://packagist.org/packages/duoshuo/php-cassandra)... and if i revert back to this version the request works fine. Any ideas of what changed since then to cause the bug?

This became broken in commit 79a046de17a983b9f43cdfb21b8ac31fb2109ebe. It works in 8268f9af0ed9d4faf5a1c71a79680ec345e98c93

Line Request:122 causes the exception, (tested in cassandra enviroments 2.1.2 and 2.1.4). It makes no sense because the code looks correct according to specification.

I wonder if binary value could be affected by string case (ie. upper or lower)?

Hi, we have the same issue, but it does not work in v0.5.2 too: it looks like it works but in fact "names_for_values" is ignore in v0.5.2 so if you give the args in the good orders, it works.. But if you force names_for_values the same error occurs:
Caught exception: Server error: java.lang.IndexOutOfBoundsException: index: 241, length: 681061 (expected: range(0, 409))

In fact names_for_values never worked for batch queries, I tested several version and all returns the same error

Hi, all.
It seems to be a bug of Cassandra.
So, the best solution is to throw exception when use NAMES_FOR_VALUES flag in batch request.
see https://github.com/duoshuo/php-cassandra/commit/e8f94d2da2a7848aa2199d6fefac9292b339bca6


check_extra7102 - missing public IPs

check_extra7102 in Line 36 tries to get all public IPs. However, it is only getting the elastic IPs. This is also documented in the used describe-addresses reference .
The solution is to use describe-network-interfaces instead and filter for the PublicIPs. I usually use the following command:
aws ec2  describe-network-interfaces --query "NetworkInterfaces[*].Association.PublicIp"

Hi @as-km, Thanks for your comment. I have been looking at your command and the one that is used in Prowler and I see the following as you mention:
In Prowler aws ec2 describe-addresses --query 'Addresses[*].PublicIp'. In doc describe-addresses: Describes the specified Elastic IP addresses or all of your Elastic IP addresses. (Console EC2 / Network & Security / Elastic IPs). I see that includes all Elastic IPs including those not associated.
Your suggestion aws ec2  describe-network-interfaces --query "NetworkInterfaces[*].Association.PublicIp". In doc  describe-network-interfaces: Describes one or more of your network interfaces. (Console EC2 / Network & Security / Network Interfaces). I see that includes all Elastic and Public IPs that are associated.
That means that probably usage of describe-network-interfaces may make Prowler more accurate for used interfaces. Would you mind to send a fix to branch 2.4? If you can't, please let me know. Thanks again!


timeline of tasks disapeared

obsidian version in v1.7.5 and obsidian-tasks-calendar-wrapper is latest


Config file not read

I followed the instructions for setting this up on PFSense however i am using OPNSense which is pretty much the same thing. It works flawlessly if i run it in command line. However if i try to set it up as a service following the instructions on the read me. all i get is the help file and then
udp-proxy-2020: error: unexpected argument start
udp-proxy-2020.conf
change the port and add --interface {dev-name} as many times as needed.
udp_vars="--port 47584 --interface em0,ovpns2<EMAIL_ADDRESS>Any ideas, it is working brilliantly for what i want if i run it directly I just can't get the service to start properly.

I copied the wrong file into each folder, i've got that bit right. now but when i type udp-proxy-2020 start it doesn't start just says is not running.

I assume you are typing service udp-proxy-2020 start ?
Have you looked in /var/log/udp-proxy-2020.log for any errors?

if i type
root@fw1:/var/log # service udp-proxy-2020 start
root@fw1:/var/log # service udp-proxy-2020 status
udp-proxy-2020 is not running.
root@fw1:/var/log # service udp-proxy-2020 stop
Unable to kill udp_proxy_2020.  Missing pid file?
root@fw1:/var/log #

does /usr/local/bin/udp-proxy-2020 exist?  Is the binary executable?

Oh, well umm.
No, not it didn't.. now it does..
Can you tell i'm tired.. it's been a very long day
root@fw1:/usr/local/bin # service udp-proxy-2020 start
root@fw1:/usr/local/bin # service udp-proxy-2020 status
udp-proxy-2020 is running (783
Thank you for the ultra quick response and this is a brilliant bit of software solves a problem for me so very my appreciate your work.


Streamlining and updating dependencies

Introduces some minor changes for compatibility and easier usage:

Updates acsploit.py to be able to use newer versions of the cmd2 package
Introduces requirements.in file for pip-tool support
Streamlines requirements

Furthermore, I'm currently working on packaging acsploit so it can be used by PyPI.
Would you be interested in adopting this?

LGTM!
@MW-OP We're definitely interested in the idea of putting ACsploit on PyPI. Could you say a bit more about what you're thinking that would look like and what you've been using/looking to use ACsploit for in general?

Sure, I'm using ACsploit for security testing purposes.
Mostly it is restructuring so it is possible to build a python wheel. After that an automated build process must be implemented. Than you need to push the repo to PyPi with some kind of versioning.


TASK [win10 : Install git] failed

Hi Chris,
firstly... thanks for all the hard work in giving life to Detection Lab. Completely impressive.
My first attempt at a build went pretty seamlessly... until this point (as below) during the ansible build of the VM's

Operating System Version: Ubuntu 20.04.1 LTS
Deploying via: ESXi
Vagrant Version (if applicable): ?

Please verify that you are building from an updated Master branch before filing an issue: Y
Description of the issue:
sooo close....
PLAY RECAP ****************************************************************************************************************************
<IP_ADDRESS>              : ok=25   changed=22   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
<IP_ADDRESS>              : ok=5    changed=4    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
<IP_ADDRESS>              : ok=37   changed=23   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
<IP_ADDRESS>              : ok=42   changed=25   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
.109 is win10
Link to Gist Containing Build Logs:
https://gist.github.com/enarcee/8ad1fd193c88ef5075327d47aee417a8
Let me know if you need any other logs
I am unclear if the build exited out on the error or completed with a single error.
appreciate any guidance you can offer.
Cheers. Nick

Hey @enarcee - looks like maybe a transient network issue? You can rerun that specific task via ansible-playbook -v detectionlab.yml --tags "win10" --start-at-task="Install git"

@enarcee were you able to get things working?

Closing due to inactivity


Type hints in code.

CleanCode: Use type hints in code and ad  a support for linteres as mypy to enable static type checking. It's a common modern python pratice.

at some point we will enforce typings = at the moment is not a priority


How to realize OIT(Order-independent Transparent)?

Is your feature request related to a problem? Please describe.
How to realize OIT with filament?
There is a bug in the rendering of crossed transparent objects
Describe the solution you'd like
None of the blending sets could solve the problem when translucent objects cross each other.
TwoPassOneside/TwoPassTwosides also can't work!
OS and backend
Is this feature OS/backend specific? If so, explain why.

Duplicate of issue #2838.


Government fee validation

Consensus changes: rejects blocks with incorrect government fee or with fee sent to wrong address (for the heights when government fee is enabled).

Rejection works properly as I was mining an alt chain on purpose.


[design] Text editors should handle the Tab key and provide Ctrl+Tab to move to the next View.

If I am typing in a text editor I would like to use all the available keys that can help me in its editing and not be worried if when I look at the screen I am already typing in another View after all. In Windows, the TextBox with multiple lines has this behavior, that is, I have to type Ctrl + Tab to move to the next control. Gui.cs already provides Shift + Tab to move to the previous control. Another example is the Tab control which when pressed opens the next Tab. Now a mandatory rule is Views that are justified in having to really need the Tab key to have to code Ctrl + Tab to allow moving to the next control. Or even better is that we are not too worried about forgetting it is in TopLevel's ProcessKey that we consider by default the two alternatives to move to the next View that would be Tab and Ctrl + Tab. That said, I think that a View cannot take hold of both of these alternatives or there can never be an alternative to moving to the next control. Excuse the long will but I would like to put my point of view.

@tig please teach me how to put the label on the issue. Thank you.

@migueldeicaza would have to give you rights to do that.

Then okay. As the other time you asked me to put a label I thought I could do that. So it's not worth it :-)

In Windows, the TextBox with multiple lines has this behavior, that is, I have to type Ctrl + Tab to move to the next control.

This is not true. I just tried 3 examples:

ConEmu's Environment Dialog:

My own MCE Controller's Command's dialog:

Outlook's Contact editor

In all cases, tab tabs through ALL controls in the form. And shift-tab reverses through ALL controls. Even multi-line text controls. To put a tab in the control you must use
In both Outlook and ConEmu ctrl-tab moves moves between dialog screens.
If a Windows multi-line edit box has "AcceptTab" turned on (https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.primitives.textboxbase.acceptstab?view=netcore-3.1).
Given how important using the keyboard for navigation is for console GUI apps, I really believe in the tenets expressed in the contributors guide:
User Experience Tenets
Terminal.Gui, as a UI framework, heavily influences how console graphical user interfaces (GUIs) work. We use the following tenets to guide us:

NOTE: Like all tenets, these are up for debate. If you disagree, have questions, or suggestions about these tenets and guideliens submit an Issue using the design tag.

Honor What's Come Before. The Mac and Windows OS's have well established GUI idioms that are mostly consistent. We adhere to these versus inventing new ways for users to do things. For example, Terminal.Gui adopts the ctrl/command-c, ctrl/command-v, and ctrl/command-x keyboard shortcuts for cut, copy, and paste versus defining new shortcuts.
Consistency Matters. Common UI idioms should be consistent across the GUI framework. For example, ctrl/command-q quits/exits all modal views. See Issue #456 as a counter example that should be fixed.
Honor the OS, but Work Everywhere. Terminal.Gui is cross-platform, but we support taking advantage of a platform's unique advantages. For example the Windows Console API is richer than the Unix API in terms of keyboard handling. Thus, in Windows pressing the alt key in a Terminal.Gui app will activate the MenuBar, but in Unix the user has to press the full hotkey (e.g. alt-f) or F9.
Keyboard first, Mouse also. Users use consoles primarily with the keyboard; Terminal.Gui is optimized for getting stuff done without using the mouse. However, as a GUI framework, the mouse is essential, thus we strive to ensure that everything also works via the mouse.

If we follow those tenets then the way we address this is by adding a OPTION to TextView that allows apps that DO want to accept tabs to do so. But we make the default be tab moves to next control.
Note that in UIs where the ONLY control is TextView (or HexView) the default behavior should be "tab inserts a tab"

@tig try in the Outlook's contact editor write a note, on the rigtth of the Addresses, and press Tab to see what happens. Really now the multiline of the TextBox is no longer working like this but it used to be. When I refer to editors I mean those who are truly an editor of great texts where you use them for a long time to record events, stories, etc ...
Like TextView for example. As for ConEmu, I don't use it so I can't comment. As for the suggestion to add to Views the option of how to use the Tab key, I fully agree and that is to follow the main tenets.


⚠ Bofrost.ch has degraded performance

In 58b25d1, Bofrost.ch (https://www.bofrost.ch) experienced degraded performance:

HTTP code: 200
Response time: 1608 ms

Resolved: Bofrost.ch performance has improved in 2251657 after 311 days, 22 hours, 5 minutes.


command to comment out / uncomment a block of code

Are there command to comment out/ uncomment a block of code?
I just begin to learn emacs, from googling, c-c c-c seems to be the hotkey for cc-mode. But seems it does not work for go-mode.

You want comment-dwim, or the more manual comment-region and uncomment-region. comment-dwim is bound to M-; by default.

Thanks! That's what I wanted.


Codelense reference not found when variable is in list

Very nice plugin I was surprised about the references popping up this morning. It makes Terraform life a lot easier!
One reference it couldn't find is in the below. The address_space for a Azure VNET is a list. Once I remove the list the reference is detected.
File 1:
resource "azurerm_virtual_network" "vnet" {
name                = "${var.PREFIX}-VNET"
address_space       = ["${var.vnet}"]
location            = "${azurerm_resource_group.resourcegroupvnet.location}"
resource_group_name = "${azurerm_resource_group.resourcegroupvnet.name}"
}
File 2:
variable "vnet" {
description = ""
default     = "<IP_ADDRESS>/24"
}

thanks for giving me a repro-case, I will try and fix this over the weekend.

I cannot reproduce this, I added the two files as stated (just copy-pasted and the reference is correctly detected for me):

I tried it in VS Code Insiders and it worked. So I reinstalled the extension on my normal VS Code and now it works fine. thanks for the quick response.

thanks for verifying.


Azure Monitor Logs ingestion

This PR is create a new client library for azure-monitor-ingestion client library. This is the first preview of the library that enables sending custom logs to Azure Monitor.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-monitor-ingestion


[QA] Potential security risk warning

Deployed ocis master 2020-12-11 13:30h via hetzner-deploy/make_ocis_test.sh -> ocis/deployments/examples/ocis_traefik/

After accepting the self signed cert from traeffik
while the blue login page loads, a warnign is shown:

Can this be avoided? Is this due to the self signed cert?

cc @C0rby

cc @C0rby

Yeah, Firefox is displaying this warning for self-signed certificates but it should disappear when you accepted the cert.

Yeah, Firefox is displaying this warning for self-signed certificates but it should disappear when you accepted the cert.

When a valid certificate is used the warning is not shown so I don't think there is anything to do here.

When a valid certificate is used the warning is not shown so I don't think there is anything to do here.

When a valid certificate is used the warning is not shown so I don't think there is anything to do here.

Thanks for the input!

When a valid certificate is used the warning is not shown so I don't think there is anything to do here.

Thanks for the input!


[FEATURE] Dark theme

Is your feature request related to a problem? Please describe.
I want to add an option for dark theme on landing page of website

We already have a similar issue #20
I am closing this issue.


Stop possible underrun when processing a string

Calling String::utf8("Unicode String", -1) assumes that the string will be NULL terminated. However, the length parameter is always used to find the end of the string.  So there is the chance the character before th start of the string is read.
Making the pointer NULL in the case where it's out of range, still allows the following to work as expected
while (ptrtmp != ptrtmp_limit && *ptrtmp)

Thanks!


Let's compare ourselves to alternatives...

.NET
https://github.com/mathnet/mathnet-symbolics

Is most popular .NET computer algebra library
Written in F# (less code to maintain but harder for outsiders to contribute)
Has sec, csc, asec, acsc, hyperbolic and abs nodes plus some special functions but no factorials (ha)
Separates ComplexInfinity from Undefined
Can output MathML but splits simplify, collapse and expand into 3 separate modules (bruh)
No limits nor arbitrary-precision arithmetic

https://github.com/dharmatech/Symbolism

Supports boolean algebra but can't parse expressions from string
Only algebra, no calculus
No arbitrary-precision arithmetic and separates floating-points from fractions
Doesn't even have an arccosine function (https://github.com/dharmatech/Symbolism/issues/12)
Has more stars and watchers but less NuGet downloads (lol)

https://github.com/sympy/sympy

Most popular open-source computer algebra library but is Python so no type safety
This is our dream to reach

JavaScript and friends
https://github.com/davidedc/Algebrite

Has integration, summation, product, erf.. but no limits (ha)
CoffeeScript? Not TypeScript -1
Availability of functions is not bad

https://github.com/aantthony/javascript-cas

Is dead
Is GPL

https://github.com/MatthewJA/Coffeequate

Is dead
Very basic, no trig
Symbolic constants need to be prepended by a backslash (no one wants that)

https://github.com/nicolewhite/algebra.js

A waste of 1.3k stars
No trig again
Has summation though

https://github.com/jiggzson/nerdamer

Can do limits, differentiation, calculus and even trig integral functions
Fake arbitrary precision (aka only double precision but shows 100 digits so asin(1)*2 is only correct to ~15 digits)
Availability of functions is not bad

There are probably more out there...

Nice!
You compiled a long list.
SymPy I guess is half-way, the goal is WolframAlpha. For example, recently I wanted to see how SymPy solves a trigonometric equation and guess what? It couldn't solve it. I think SymPy is rather a mess of genious mathematical ideas mixed into something that works sometimes. Of course, we're still far from that, but it might be not the finish-line for us :).
I think we can indeed surpass Math.Net, even if it's so popular and etc. We can integrate things way faster than big boys.
Thank you for the list again, mb we will add some more to it.

sec, csc, asec, acsc

useless functions.  Why not have asin, acos, atan, acot as inverse functions?

Supports boolean algebra but can't parse expressions from string

We also support it, isn't it? @WhiteBlackGoose

Has more stars and watchers but less NuGet downloads (lol)

Nuget downloads also come from CI systems so its hard to judge how many people use the library

https://github.com/sympy/sympy

Actually we noticed that sympy cannot solve 4-th degree polynoms with non-numeric constants and trigonometric equations like
sin(2x + 2) + sin(x + 1) - a

Also I think we gotta dig deeper into our alternative's simplification algorithms, because even though I've been working on it since AM's start, it seems to suck 😢

C# 9 will come with Visual Studio 16.7 and with the and, or, not patterns, records, and covariant returns I'll refactor AngouriMath into a much cleaner state.

In what way you want to refactor it?

From Discord

So I've been thinking of replacing Pattern objects with C# Patterns because they are type-unsafe and replacing Entity.Children with properties that match the functions, e.g. Logf as a class has Base and Num as properties

They exist because someone was so stupid to suggest sin^-1(x) mean other than power.

Just wait till you see https://en.wikipedia.org/wiki/Versine

Nuget downloads also come from CI systems so its hard to judge how many people use the library

Stars and watchers also don't translate to actual uses. People could leave a star then go onto other projects to star. There doesn't seem to be a better metric to use.

Stars and watchers also don't translate to actual uses. People could leave a star then go onto other projects to star. There doesn't seem to be a better metric to use.

Of course, we do not judge by any of those numbers, but they enourage us to keep working on AM.

Why not have asin, acos, atan, acot as inverse functions and write 1/sin 1/cos and etc?

@WhiteBlackGoose Why did we skip sec and csc but kept cot? cot(x) = 1/tan(x) so there is an inconsistency here.

We don't have a separate node for sec and csc, but so far I don't see the reason we should have it. It's not hard to implement them though

But cot falls into the same bucket as sec and csc in that they are inverses of tan, cos, sin respectively so why did we keep cot as a node?

Not really the same "bucket". Tan and cot are opposite on the triangle but symmetric. The same way sin and cos are. While sec and csc are way more rarely used & are inverted (as ^(-1)) of sine and cosine, so I didn't think we really need them

Well, cot, sec and csc are grouped together in almost all results in https://www.google.com.hk/search?sxsrf=ALeKk02Dx9VrJJlM3TQ7UWB55MqEtwYGHA%3A1596606585051&source=hp&ei=eUgqX7lzluv5Bt6TncgB&q=is+cot+more+used+than+sec&btnK=Google+Search

When we say "trigonometric functions", we either mean the 3-function group (sin, cos, tan) or the 6-function group (sin, cos, tan, cot, sec, csc). The 3-function group is taught in basic Trigonometry classes and are the group present in basic calculators. The 6-function group is taught in basic Calculus classes and are the group used in Wikipedia, on the Windows calculator, Wolfram Alpha, etc.
I have never heard of the 4-function group (sin, cos, tan, cot) excluding sec and csc until now. If we use the definition of trig functions in basic Trigonometry classes, we would not simplify 1/sin, 1/cos and 1/tan. If we use the definition of trig functions in basic Calculus classes, we would simplify 1/sin, 1/cos, 1/tan to csc, sec and cot respectively. However, with our current definition, we would see 1/sin, 1/cos and cot respectively. This is confusing behaviour and we should pick a side.

I see where you came from, and yes, I'm surely more used to what you call "4-function group". But I think we still can add secant and cosecant as nodes

I am just afraid that existance ofmany trigonometrc functions will complicate trigonometric solver and simlificator

https://github.com/axkr/symja_android_library this might be also worth consideration

Ewwwwww GPL

https://github.com/axkr/symja_android_library this might be also worth consideration

Cannot solve 2^x + 4^x + c, bruh


⚠ DesiTorrents has degraded performance

In d8f9849, DesiTorrents ($DST) experienced degraded performance:

HTTP code: 200
Response time: 4220 ms

Resolved: DesiTorrents performance has improved in e1a845b.


Invalid characters after opening files

Version confirmation

[X] Confirm

Following prerequisites

[X] Confirm

Neovim version
NVIM v0.8.3
Operating system/version
Windows Subsystem Linux - Ubuntu 22.04 LTS
Terminal name/version
wsl terminal
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
HTTPS (use_ssh = false)
How to reproduce the issue
正常clone repo
用nvim打开任何一个文件
Expected behavior
没有乱码
Actual behavior

Additional information
No response

Have you used other editor open file? or use nvim --clean. Is this problem caused by nvimdots?

No. I didn't use other editors to open it. Use nvim --clean doesn't have this issue. I also used AstroNvim before, no issue either.

@ladevan Does "invalid characters" refer to ggggggggggggey on the first line?
How did you open this file (via telescope/nvim-tree or directly via command line parameters)? Additionally, what is your $TERM environment variable?
Besides that, uploading a minimal file that could reproduce this issue can help us better identify the problem :)

@Jint-lzxy Yes, it's those ggggggg on the first line and 0000/0000/0000\ in the command line in the bottom.
I opened the file directly via command line. my $TERM is xterm-256color
I uploaded one file, but basically any file from myside will cause this issue.
remap_win_alt.txt
however, there is no issue if using AstroNvim, e.g.. I don't know what's wrong.

I tried to use Windows Terminal app, there is no issue now.
It looks like it's related to the wsl terminal I use. Any idea what would be the root cause?