Calculating hash for modules downloaded via go mod why fails on first attempt

v0.8.0 removed the requirement to run go mod download, because go mod why downloads all required modules anyway (and doesn't modify go.sum, as go mod download does).
However, for some reason, dirhash.HashDir fails for modules that have been downloaded by go mod why prior:
2021/06/02 08:43:06 generating sbom
2021/06/02 08:43:06 enumerating modules
go: downloading go.uber.org/zap v1.17.0
go: downloading github.com/hashicorp/go-version v1.3.0
go: downloading github.com/go-chi/chi/v5 v5.0.3
go: downloading github.com/spf13/cobra v1.1.3
go: downloading github.com/spf13/viper v1.7.1
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/stretchr/testify v1.7.0
go: downloading github.com/go-resty/resty/v2 v2.6.0
go: downloading github.com/google/uuid v1.2.0
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading go.uber.org/atomic v1.7.0
go: downloading go.uber.org/multierr v1.6.0
go: downloading golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44
go: downloading golang.org/x/text v0.3.3
go: downloading golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
2021/06/02 08:43:17 normalizing module versions
2021/06/02 08:43:17 determining version of main module
2021/06/02 08:43:17 converting main module xxx
2021/06/02 08:43:17 converting module xxx
2021/06/02 08:43:17 converting module<EMAIL_ADDRESS>2021/06/02 08:43:17 generating sbom failed: failed to convert module<EMAIL_ADDRESS>failed to calculate h1 hash: open /pkg/mod/cache/download/cloud.google.com/go/@v/list: no such file or directory

Strangely enough, the file at /pkg/mod/cache/download/cloud.google.com/go/@v/list exists, and so does<EMAIL_ADDRESS>in the module cache. When running cyclonedx-gomod again, it works.

Fixed with 7af0966.


Integrate KCFG into kavm

Work on #283
One of the simplest claims to try is the tests/specs/transactions/pay-spec.k
Steps to reproduce the failure:
git clone git@github.com:runtimeverification/avm-semantics.git
cd avm-semantics
# build the verification definition
make build-avm-verification
# bind the kompiled verification definition to a variable for convenience
export KAVM_VERIFICATION_DEFINITION_DIR=$(realpath .build/usr/lib/kavm/avm-haskell/verification-kompiled)
# install Python deps and the 'kavm' package
poetry -C kavm/ install
# run the prover on a simple spec
# NOTE: make sure to sue the project-local 'kavm', not the one that may have been installed with kup!
poetry -C kavm run kavm kcfg-prove --port 7777 --definition-dir $KAVM_VERIFICATION_DEFINITION_DIR  --claim-id pay tests/specs/transactions/pay-spec.k

For me, the proof fails due to kore-rpc returning ErrorDecidePredicateUnknown and hanging . The output should look something like this:
WARNING 2023-02-10 18:30:40,686 pyk.kcfg.explore - Falling back to manual branch extraction PAY-SPEC.pay.kfcg: b4e020..31f74e
WARNING 2023-02-10 18:31:37,277 pyk.kcfg.explore - Falling back to manual branch extraction PAY-SPEC.pay.kfcg: 51192e..a8b340
WARNING 2023-02-10 18:31:47,360 pyk.kcfg.explore - Falling back to manual branch extraction PAY-SPEC.pay.kfcg: c42624..3c05be
WARNING 2023-02-10 18:32:33,091 pyk.kcfg.explore - Falling back to manual branch extraction PAY-SPEC.pay.kfcg: da4720..7cb808
kore-rpc: DecidePredicateUnknown {action = ErrorDecidePredicateUnknown ...

The resulting KCFG will be written into '.kavm/'. Browse it in the terminal:
poetry -C kavm run kavm kcfg-view --definition-dir $KAVM_VERIFICATION_DEFINITION_DIR  .kavm/1d67cc1f940746e0a20ec219fa85a5b9f2c2296912eb30693cd664db88e8128f.json

The cfg contains many nodes that result from branches that seem to be obviously infeasible. Looking at the configurations suggests that some of them may be over-abstracted, i.e. contain variables instead of previously concrete values.
To verify the same spec with plain KProve, run:
poetry -C kavm run kavm prove --definition-dir $KAVM_VERIFICATION_DEFINITION_DIR tests/specs/transactions/pay-spec.k

That should return #Top.
The implementation of kavm kcfg-prove can be found here: https://github.com/runtimeverification/avm-semantics/blob/bb2a68b99da8b25ecd8db4bd3d98e60cc3a19de1/kavm/src/kavm/main.py#L271

I had to:

Run make plugin-deps first.
Run make -C ./kavm first.

I've added command kavm kcfg-show .... [--node NODE_ID]* for getting more detailed output about each node.
I've also adjusted all the kavm kcfg-* ... commands to take arguments in the same format (spec file, spec module, claim id).

@geo2a I've root-caused the issue I believe.
The frontend, when compiling the definition, turns a rule that says this:
rule <transactions> <transaction> <txID> ID </txID> REST </transaction> REST_TRANSACTIONS </transactions> ...

Into something like this:
`<transactions>`(`_TransactionCellMap_`(`TransactionCellMapItem`(`<txID>`(ID), `<transaction>`(`<txID>`(ID), REST)), REST_TRANSACTIONS)) ...

But when it generates the spec obiligations, we're getting something more like this:
`<transactions>`(`_TransactionCellMap_`(`<transaction>`(`<txID>`(ID), REST)), REST_TRANSACTIONS)) ...

It's actually when it's generating Kore that the main difference is happening. So it could be a problem in our kast-to-kore conversions....
I need to investigate more, but basically, the result is that the rules you expect to match which do transaction lookups are not matching.
I believe I can make a minimal example and use that for debugging the issue in pyk.

I've threaded through BugReport and hardcoded it to produce one. I have a script called doit that I'm using to test things:
set -euxo pipefail

poetry_run() {
    poetry -C ./kavm -- run "$@"
}

clean() {
    rm -rf .build
    make plugin-deps
    make build-avm-verification
}

build_pyk() {
    cd kavm
    poetry update
    make
    cd -
}

prove() {
    poetry_run kavm kcfg-prove --port 7777                   \
        --definition-dir ${KAVM_VERIFICATION_DEFINITION_DIR} \
        ${claim_file} ${claim}                               \
        --verbose                                            \
        "$@"
}

view() {
    poetry_run kavm kcfg-view                                \
        --definition-dir ${KAVM_VERIFICATION_DEFINITION_DIR} \
        ${claim_file} ${claim}                               \
        --verbose                                            \
        "$@"
}

show() {
    poetry_run kavm kcfg-show                                \
        --definition-dir ${KAVM_VERIFICATION_DEFINITION_DIR} \
        ${claim_file} ${claim}                               \
        --verbose                                            \
        "$@"
}

claim=pay
claim_file=tests/specs/transactions/pay-spec.k
export KAVM_VERIFICATION_DEFINITION_DIR=$(realpath .build/usr/lib/kavm/avm-haskell/verification-kompiled)

# pkill kore-rpc || true
# clean
# build_pyk
prove --verbose
# view
# show --no-minimize --node 1c5073..077d08

With branch cell-map-to-kore of pyk (https://github.com/runtimeverification/pyk/pull/200), I'm able to take more steps, and get something that looks like this:

Before it crashes with this error: https://github.com/runtimeverification/haskell-backend/issues/3496

Actually the proof is passing now:

I had made some modifications to the proof for debugging which caused it to fail.
I also changed it to add execute_depth=1 to the call to all_path_reachability_prove. This ensures we don't execute off the end of the proof (and we check implication every step), but it makes it very slow, because we're storing every state.
Better would be to make sure that every transaction inserts a dummy #endTx() marker, with a simple rule like this:
rule [endtx]: <k> endTx() => . ... </k>

Then we can supply that as a terminal_rule argument to all_path_reachability_prove, and it will make sure to save final states that we need to compare against the target node.

Thanks @ehildenb! I've added terminal rules and I tried the prover with a couple more claims. That's a really good start, I think performance-wise it's as good as plain KProve! I'll be merging that

Thanks @ehildenb, I've already made sure the pyk changes will be merged soon. I'll unpin before merging.


The Chinese Translation

“This is the part about translating Chinese (Simplified Chinese and Traditional Chinese). I apologize for not being able to submit CJK support together, as I found that any modification to the imagefs.txz file would cause the Winlator installation to fail at 85% when initializing the system files.
I tested moving the file into the compressed package without unpacking it (which definitely caused the installation to fail), and then deleting each file I moved in, but the installation still failed. I unpacked it as a tar package, repacked it as a txz without any modifications, and the installation still failed. I tracked Winlator's logcat but found no meaningful information.”

Here are my steps about unpacking and packing imagefs.txz. (Maybe helpful)

Create a new floder and copy original imagefs.txz into it.
tar xvf imagefs.txz to unpack.
Do any modification.
tar cvf ../imagefs.tar . to get tar pack.
cd .. and then xz -9 imagefs.tar. You will get imagefs.tar.xz, rename it to imagefs.txz

logcat.log
I have unpacked and repacked the files according to your instructions, and I have not modified any files. The problem persists.

add e.printStackTrace(); behind line 170 in com/winlator/core/TarCompressorUtils.java

I figured out the problem. It was my computer bad. xz was exiting quickly in the terminal, but the compression was actually still running in the background, causing my compressed files to be incomplete. I wanted to modify the regional language using environment variables, but I found that entering anything other than C.UTF-8 or en_US.UTF-8 would cause a 'starting up...' pop-up that never closed. However, when I looked behind the pop-up, I saw that 'start' had changed to Japanese, and wfm had automatically opened.

It seems that there are missing zh_CN.UTF-8 in locale imagefs/usr/share/X11/. And that makes winlator cannot get X Window's name. One solution is to copy these files from other computers.

It seems that there are missing zh_CN.UTF-8 in locale imagefs/usr/share/X11/locale. And that makes winlator cannot get X Window's name. One solution is to copy these files from other computers.

Good day bro.
Tested with another Asia language: Chinese\Japanese\Korean,
Tested copying locale files from other host with full-installed Ubuntu with Wine,
Tested with Shortcut to start a Explorer++ with Chinese translation, without wfm,
all these workaround not working as the same as it was.
It seems that showing the container was started successfully,
but the "Stating up" panel still cover the foreground layer,
I think the starting progress didn't tell the wineserver that it's done,
so we can't slide out the control panel, too.
Looking forward and still looking for  a solution.

It seems that there are missing zh_CN.UTF-8 in locale imagefs/usr/share/X11/locale. And that makes winlator cannot get X Window's name. One solution is to copy these files from other computers.

Good day bro.
Tested with another Asia language: Chinese\Japanese\Korean, Tested copying locale files from other host with full-installed Ubuntu with Wine, Tested with Shortcut to start a Explorer++ with Chinese translation, without wfm, all these workaround not working as the same as it was.
It seems that showing the container was started successfully, but the "Stating up" panel still cover the foreground layer, I think the starting progress didn't tell the wineserver that it's done, so we can't slide out the control panel, too.
Looking forward and still looking for a solution.

Check imagefs/usr/lib/locale too.

It seems that there are missing zh_CN.UTF-8 in locale imagefs/usr/share/X11/locale. And that makes winlator cannot get X Window's name. One solution is to copy these files from other computers.

Good day bro.
Tested with another Asia language: Chinese\Japanese\Korean, Tested copying locale files from other host with full-installed Ubuntu with Wine, Tested with Shortcut to start a Explorer++ with Chinese translation, without wfm, all these workaround not working as the same as it was.
It seems that showing the container was started successfully, but the "Stating up" panel still cover the foreground layer, I think the starting progress didn't tell the wineserver that it's done, so we can't slide out the control panel, too.
Looking forward and still looking for a solution.

Check imagefs/usr/lib/locale too.

Placed the required files but it's still not working.

@benknam I just copy X11/locale and lib/locale from my ubuntu, then the problem solved. I don't know why it is not work for you :(.
You can still try to modify line 209 in app/src/main/java/com/winlator/XServerDisplayActivity.java to disabled the wait.

@benknam I just copy X11/locale and lib/locale from my ubuntu, then the problem solved. I don't know why it is not work for you :(. You can still try to modify line 209 in app/src/main/java/com/winlator/XServerDisplayActivity.java to disabled the wait.

Confirmed working！

So I made a clean 20.04 Focal Fossa live environment,
zip files to the phone and unzip,
it works perfectly.
Here's zip package for everyone wanna to tried,
it should be working for global language.
locale.zip

I recently upgraded my device from a Meizu 18X to a Meizu 21 Note, and from Android 13 to Android 14. I noticed that I can now install Winlator, but when I try to start the X environment, it crashes most of the time, regardless of any changes I make. Occasionally, it does manage to start, but when I open the task manager, I find that all services are missing, even though my container settings are configured to load all services. Additionally, any wine software I try to open the crashes.

@rsesot any logs?

@rsesot 有日志吗？

oh,sorry,there is log
E.log

Excuse the stupid question but as I have all the emulator GUI in Chinese (at least I think) how do I change language ?

can the winlator app can touch the android USB serial? how can i do that?

It sounds like you are discussing the Chinese translation of the program.There are many Chinese translation versions of Winlator simulators on the Internet in China.I don't know how they are realized.Maybe it can be used as a reference.
tar.gz app
(repackaged for apk use)
I just downloaded the latest version of Winlator. The pure English interface is very uncomfortable.

It seems that the image I created with the Chinese version of Winlator can't run on the current Winlator 7.1.Has been in the' starting up' step.Should I back up those files on drive C to ensure that the environment settings and shortcuts will not disappear?(I can visit Winlator's /data/data directory.)

It seems that the image I created with the Chinese version of Winlator can't run on the current Winlator 7.1.Has been in the' starting up' step.Should I back up those files on drive C to ensure that the environment settings and shortcuts will not disappear?(I can visit Winlator's /data/data directory.)

I checked the community from Tieba-baidu and TG group\channel, they did perfect Chinese translation based on 7.1 and fixed some problems while with Chinese translation, also compatible patched for devices from Huawei and Xiaomi, but as I know the package/image was changed too many values that original Winlator needs so.

Hi it's a Great app !
But I can't run Metatrader 5 or 4 on it it's installing normally but when I run it it's open in task manager but not showing anything, I tried Metatrader older builds from 2020 it's working normally but sever says you should update it .
It's a very useful app with wide range usage if the Winlator could run it , it's a Big win !
I can post log file here if it's help

Please support the Winulator application on any devices. It doesn't work on all my devices.

I looked for it for a long time. I don't know how to submit the Issues.So I'm asking questions here.
Problem description: Java installation error 1627.
Text: I don't know if this is because of wine or my mobile phone.That's why I upgraded Winlator to 7.1 instead of using 6.1 or ExaGear.
Java installer: jre-8u421-windows-i586.exe（x86_64）
Let me decide to install Java.The main reason is that I need to use FFmpeg.

I looked for it for a long time. I don't know how to submit the Issues.So I'm asking questions here. Problem description: Java installation error 1627. Text: I don't know if this is because of wine or my mobile phone.That's why I upgraded Winlator to 7.1 instead of using 6.1 or ExaGear. Java installer: jre-8u421-windows-i586.exe（x86_64） Let me decide to install Java.The main reason is that I need to use FFmpeg.

I think you could try OpenJDK_23, but you should target the PATH to the binary folder.

I looked for it for a long time. I don't know how to submit the Issues.So I'm asking questions here. Problem description: Java installation error 1627. Text: I don't know if this is because of wine or my mobile phone.That's why I upgraded Winlator to 7.1 instead of using 6.1 or ExaGear. Java installer: jre-8u421-windows-i586.exe（x86_64） Let me decide to install Java.The main reason is that I need to use FFmpeg.

I think you could try OpenJDK_23, but you should target the PATH to the binary folder.

Good idea.But Minecraft v1.12 can only run in Java6-Java16.

Hi, I don't know where else to do this so... I have an idea for the emulator, and is the possibility of assigning two key to the same button on the controller, for example in the original COD MW trilogy, not being compatible with controller, it is uncomfortable that the “use” button and the “reload” button are two different keys because normally in the new games these two actions are done with the same button no the controller (X or []).
I use Google translator to write this, tell me if something is not understood.

@brunodev85  I didn't find how to get help. So I posting here.. I will delete once I get help.
I installed on Samsung tablet but Can't run typing master 11. After installing it doesn't open. App crashed

add support to see hidden files please

Can someone explain?

does anyone know how to change timezone,some software requires specific timezone, i tried many methods,none of them seem to working

Where is the UI for the press feedback state of the virtual keys set? I can't find it. #5


Two new documentation notebooks

Two new documentation notebooks:

Queries and Expressions (section 3 in the Fundamentals tutorial)
working-with-llama-cpp

This change is


梯度累积中的问题

关于梯度累积的代码，有几点不太明白，想请教一下。

accum_image_features 和accum_text_features已经得到了，为什么在get_loss中又要重新计算一个batch的特征。这样的话，所有的特征都被计算了两次，造成资源的浪费
get_loss进行了accum_freq次，但是每次的accum_image_features和accum_text_features并没有发生变化。loss的计算是否是重复了？

相关代码如下：
        # First, cache the features without any gradient tracking.
        with torch.no_grad():
            with autocast(enabled=(args.precision == "amp")):
                chunk_image_features, chunk_text_features, _ = model(images, texts)
            accum_image_features.append(chunk_image_features)
            accum_text_features.append(chunk_text_features)

            accum_images.append(images)
            accum_texts.append(texts)

        # If (i + 1) % accum_freq is not zero, move on to the next batch.
        if ((i + 1) % args.accum_freq) > 0:
            # FIXME this makes data time logging unreliable when accumulating
            continue

        # Now, ready to take gradients for the last accum_freq batches.
        # Re-do the forward pass for those batches, and use the cached features from the other batches as negatives.
        # Call backwards each time, but only step optimizer at the end.
        optimizer.zero_grad()
        for j in range(args.accum_freq):
            images = accum_images[j]
            texts = accum_texts[j]
            with autocast(enabled=(args.precision == "amp")):
                # `total_loss` and `acc` are coarsely sampled, taking only the last result in the loop.
                # Although each result should be the same in theory, it will be slightly different in practice
                total_loss, acc = get_loss(model, images, texts, loss_img, loss_txt, args, accum_image_features, accum_text_features, j)
            if args.precision == "amp":
                scaler.scale(total_loss).backward()
            else:
                total_loss.backward()

        if args.precision == "amp":
            scaler.step(optimizer)
            scaler.update()
        else:
            optimizer.step()

`

您好，由于梯度累积通常是在GPU显存有限的情形下应用，而accum_image_features 和accum_text_features是不带有梯度的（在with torch.no_grad()）中，所以get_loss进行accum_freq次分别计算每一部分的梯度，accum_image_features和accum_text_features让每个batch的数据见到更多样本来模拟更大的batchsize。具体的细节可以参考get_loss函数内部~


Icon drag and drop ordering

Two separate pieces:

Icons are currently ordered by name, not by anything customizable
Drag and drop UI

The first part is perhaps related to icon scales (issue #16).

the drag-drop ordering should show lots of icons in one go (so it should be a multi-column multi-row display, not just a single column like gallery#edit)


[d3d9] Don't use m_monitor in GetDisplayModeEx

Should fix #1495.
This looks like a bit of a mess though. Previously this would use m_monInfo, which itself was initialized to contain monitor info of the default monitor. Meanwhile, m_monitor is nullptr unless in fullscreen mode, otherwise the default monitor. Why is this so weird?

I was using it to keep track of what monitor we set display mode on etc
I mean sure that will be GetDefaultMonitor now, but... down the line
This should be OK for now, just gotta pick the right monitor there when we actually have multimonitor


dashbuilder change language

How to change language in dashbuilder ?
My dashbuilder use chinese, I want to change to english

any solution for that? i had the same problem.
i try use request parameter dashbuilder/?locale=en
Works fine.
There is another solution?


Mass Add Sites via Command Line Interface (CLI)

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
API, Other
🔖 Feature description
Is there a way that one can add sites from the command line? The UI is well done and useful, but I have dozens of sites I'd like to add (I'm a new Kuma user, and this is a new install), but I'd rather not have to maintain them, en-mass, by hand.
✔ Solution
I'll probably end up attempting to reverse engineer this, as I have an Immediate need for it. Are there technical documentations that I can use to assist in this?
❓ Alternatives
No response
📝 Additional Context
No response

Currently, there is no CLI and adding one is blocked by #118 imo.
See PR #3854 for further details on planned progress.

I'll probably end up attempting to reverse engineer this, as I have an Immediate need for it. Are there technical documentations that I can use to assist in this?

Note that third partys have created an api wrapper around our websockets:
https://uptime-kuma-api.readthedocs.io/en/latest/

Where can I find details on the Socket.IO messaging itself? Has this been documented?

is there a way to add monitors via accessing the kuma.db file and adding information to the tables therein?

You can do that, but I would recomend using the third party python api instead.
see https://uptime-kuma-api.readthedocs.io/en/latest/api.html
from uptime_kuma_api import UptimeKumaApi
api = UptimeKumaApi('INSERT_URL')
api.login('INSERT_USERNAME', 'INSERT_PASSWORD')
api.add_monitor(
    type=MonitorType.HTTP,
    name="Google",
    url="https://google.com"
)
api.disconnect()

I did manage to write something in Raku that worked out. Would you like me to share that code?

Given the scaryly complex syntax of said language, I am a bit doubtful that we could use that code, but sure share it ^^
(Why I am doubtful https://www.youtube.com/watch?v=9J0vCQ36020)

ROFLMAO!!!
Don't believe the hype.
I was able to do the addition script in less than a day. If said syntax was so scarily complex, I wouldn't have been able to do half of the things I've been able to accomplish in it.
(And I have over 1 million lines in over 65 separate projects in less than 6 years to prove it...)


google-cloud-sdk-gce: install fails on python38 not supported by numpy

Describe the bug
google-cloud-sdk-gce uses python38 which is no longer supported by numpy. Switching to python39 fixes the error.
Steps To Reproduce
$ nix-shell -p google-cloud-sdk-gce
...
building
Executing setuptoolsBuildPhase
Traceback (most recent call last):
  File "nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 22, in <module>
    raise RuntimeError("Python version >= 3.9 required.")
RuntimeError: Python version >= 3.9 required.
/nix/store/1qxkj91n172qnypdrqdybh4p203nax7g-stdenv-linux/setup: line 1596: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/lwn29l6b0jbkhwnan3qqqdz21p2rqaq7-python3.8-numpy-1.25.1.drv' failed with exit code 1;
       last 10 log lines:
       > no configure script, doing nothing
       > building
       > Executing setuptoolsBuildPhase
       > Traceback (most recent call last):
       >   File "nix_run_setup", line 8, in <module>
       >     exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
       >   File "setup.py", line 22, in <module>
       >     raise RuntimeError("Python version >= 3.9 required.")
       > RuntimeError: Python version >= 3.9 required.
       > /nix/store/1qxkj91n172qnypdrqdybh4p203nax7g-stdenv-linux/setup: line 1596: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/lwn29l6b0jbkhwnan3qqqdz21p2rqaq7-python3.8-numpy-1.25.1.drv'.

$ nix-shell -p '(google-cloud-sdk-gce.override {python = python39;})'
# succeeds

Notify maintainers
@iammrinal0
@pradyuman
@stephenmw
@zimbatm
Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.47, NixOS, 23.11 (Tapir), 23.11pre519597.a999c1cc0c9e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Why are you using python 3.8? The default python version is 3.10 and will be going up to 3.11 in the near future.
The error log says that numpy does not support python 3.8 anymore.

@natsukium I am not using it. Here is how this is defined (https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L8721). This is precisely why I opened this issue.
 google-cloud-sdk-gce = google-cloud-sdk.override {
    python = python38;
    with-gce = true;
  };

It looks like https://github.com/NixOS/nixpkgs/pull/135505 pinned the python version, but we no longer need to do that.


Finetuning

Hello,
Great work by you guys. How to carry out the Finetuning & what will be the GPU requirement.
Thanks

+1 for this.


feat(testing) Create tests and test tables for subo docs api

Create test and test tables for subo docs api
This will take care of #194 as well

I'll take care of this


Question: read_to_end suffers poor performance when reading huge object

background
Hi,
I'm trying to read a blob file from my disk, like:
#[tokio::main]
async fn main() -> std::io::Result<()> {
    let mut f = File::open("128M.blob").await?.compat();
    let mut data = Vec::with_capacity(128 * 1024 * 1024);
    AsyncReadExt::read_to_end(&mut f, &mut data).await?;
}

In my machine, this code snippet just executed about 2 mins before it returning.
> time ./read_huge_file

________________________________________________________
Executed in  130.45 secs    fish           external
   usr time  129.77 secs  670.00 micros  129.77 secs
   sys time    1.05 secs  539.00 micros    1.05 secs

investigation
I think this is a little strange, with CPU profiling, I have found that the most of CPU time are used to filling the buffer with 0.

I have read the code of read_to_end_internal, it seems that this function would try to fill the unused part of the vector with zero.
https://github.com/rust-lang/futures-rs/blob/8cfc0857d894b968efb94829d397f75b4332382a/futures-util/src/io/read_to_end.rs#L55-L64
I guess the problem here should be: once the inner reader didn't fully fill the remaining buffer and enter Pending state then,   perhaps we must need to fill the remained capacity again in the next poll.
With the perf trace command, we can see that the file implementation of tokio probably reads a 16KB chunk in each read syscall, and would fire a new system call at next poll, hence entering the Pending state, (I guess) it would be like:
File::poll() [emitting result from last task] (returns) Ready(16384)
File::poll() [spawn the read task] (returns) Pending
File::poll() [emitting result from last task] (returns) Ready(16384)
File::poll() [spawn the read task] (returns) Pending
...

With the buffer being slowly full-filled, each time we re-polling the ReadToEnd future, we need to fill the remaining part of buffer, perhaps like:
ReadToEnd::poll() (calls) mem::fill(buf[0..128M]) (returns) Pending
ReadToEnd::poll() [runtime re-polls the future] (calls) mem::fill(buf[16384..128M]) (returns) Pending
ReadToEnd::poll() [runtime re-polls the future] (calls) mem::fill(buf[32768..128M]) (returns) Pending
...
ReadToEnd::poll() [runtime re-polls the future] (calls) mem::fill(buf[128M-16384..128M]) (returns) Ready (128M)

As a result, we have filled O(m * n) bytes, where n is the capacity, m is how many times the inner future returns Pending. Which would probably result in low performance when reading huge files.
my questions
I'm wondering what is the purpose of initializing the remaining?
I guess if the purpose is to avoid to access uninitialized memory, perhaps we can record an initialized index in the ReadToEnd future, and initialize memory from it (instead of from buf.len()) can help to relive this problem?
Any suggestions about that?

Well, I have noticed about the comment above that function... So I guess this would be a known issue? If we are not going to fix that, I'm going to close this.

I have made a simple workaround, for people who meet this problem, this perhaps works:
async fn read_to_end<R: AsyncRead>(r: R, v: &mut Vec<u8>) -> std::io::Result<u64> {
    let mut c = Cursor::new(v);
    async_io::copy(r, &mut c).await
}


[PowerShell/CLI Experience] Link to REST APIs called from PowerShell Azure docs

👨💻 Customer Request
[PowerShell/CLI Experience] Link to REST APIs called from PowerShell Azure docs
Be as descriptive as you can with your idea/bug report/question/suggestion.
Issue Details
Let’s say I’m using PowerShell. If I read about a cmdlet in the docs it should list the REST API methods called and link over to them. Similarly CLI and SDK documentation would do the same. (As we all know the REST API is always called no matter what code or script is called from.) What then follows it that all documentation always points back to REST in case someone wants to read the lower level details. The REST documentation would then become a GREAT place to put information about permissions required to execute said REST API call!

#log-suggestion @EdisonDa

🚀 ATTENTION: Internal request logged.

@dend could you please provide the contact info for this customer? Or you can share more information for what's asking? Each Azure CLI/PowerShell command should have a link for corresponding REST API in our docs?


fix: attachment download flags + exists check

Fix file never downloading (unless it has been downloaded in the past and using ! force flag).
The logic should be:

If file does not exist, or ! force flag used, then download it
Else if neither ! or :open flag used, then error out

and then return downloaded-message or open-and-message.
I.e. :open should still open the file if it has already been downloaded. Otherwise the only way to open it is to use ! and re-download it.

Merged! Thanks for the fix!


White box shows up but nothing in it

Expected Behavior
Zazu window should have contents on it when pressing alt-space or toggle Zazu.
Actual Behavior
Zazu window shows up, but only as a white box with no contents. See attached screenshot.
Steps to reproduce the behavior
Install Zazu on Windows 10, don't know what other variables are relevant.
I have uninstalled and reinstalled without any changes. I have not deleted sought to delete all configs before reinstall. I'll try that today.
Versions
App Environment: production
App Version: 0.5.2
Electron Version: 1.3.14
Node Version: 6.5.0
Chrome Version: 52.0.2743.82
Windows 10 Pro Insider Preview Build 14986.rs_prerelease.161202-1928
Please, include a link to gist of most applicable ~/.zazu/log/ file.
zazu.log.2017-04-14.txt

Uninstalled, deleted ~/.zazu, reinstalled, and it is working.
Will leave the ticket open for you to decide if it is worth looking into or not. Thanks for the help.

You need a black box

Thank you for reporting this!


Improve README and instruction of running this repo

What
Add README and instructions to run the project.

Same issue: #12


Endpoint to get JSON for the latest versions of all client apps

Blocks #6657 #6304 #6303 #5140

@jamilbk we discussed actually doing in the portal since AppStore / PlayMarket / GitHub Releases don't need API tokens. Do you mind if we take that approach and expose api.firezone.dev/versions.json instead?
Blocks #6657 #6304 #6303 #5140

I was thinking we wouldn't even need to fetch from AppStore / Play store. We could just rollout the new versions when we update the changelog. It might lag a bit but won't hurt anything -- we can use our current mark:next-version sentinel to handle it.


Responsive Navbar

Fixes Issue
Closes #issue_number

Changes proposed

Screenshots

Checklist

[ ] You've linked this PR to the correct issue.
[ ] You have checked that the code is working correctly.
[ ] You ⭐ the repository!

Note to reviewers

Aisa dikh raha hai woh!


Doesn't work on ARM64 based system

Throws an error of "File not found"

I'm glad you find the answer!


Using Lottie Animations in Flutter Applications

Proposed title of article
Using Lottie Animations in Flutter Applications
Proposed article introduction
A Lottie is a JSON-based animation file format. Lottie files are used by UX/UI designers to improve user experience in any platform. In this tutorial, we will be going through the use Lottie animations and animation controllers in Flutter applications.
Key takeaways

The reader will learn how to implement Lottie animations in a Flutter application.
The reader will learn how to incorporate Lottie animations in different ways in a Flutter application.
The reader will learn how to use animation controllers to manage Lottie animations in a Flutter application.

Article quality
This article goes in-depth to explain the implementation of Lottie animation in Flutter applications. It will also, as well, go through the use of animation controllers in Flutter in managing the animations' state. It will use. The article will use easy-to-understand English to ensure all readers understand this concept.
References
N/A

Approved but makes sure to go in-depth to make your article stand out from others covering the same topic.


update finalzier to CRD doc

Depends-On: https://github.com/openstack-k8s-operators/lib-common/pull/519
Depends-On: https://github.com/openstack-k8s-operators/mariadb-operator/pull/231

lokk ok for me but we need to wait for openstack-k8s-operators/mariadb-operator#231

right, will do the rest of the PRs tomorrow, as they all/most of them have the dep.

/test placement-operator-build-deploy-kuttl


Add list_data method to S3Bucket

For listing keys and metadata of the bucket (can be filtered on prefix).

Released to pypi as 0.5.0


Sentinel-1 EW orthorectification using the SentinelHubRequest method

Hi all,
I am currently trying to download orthorectified Sentinel-1 EW images using the SentinelHubRequest method. Unfortunately, after some intensive research in the source code and the documentation, I still can not find how to enable the orthorectification for SentinelHubRequest. I only found some examples for WmsRequest. From the source code, I thought the way to go was to use the other_args argument and pass the dictionary {"orthorectify": True}, but that does not help unfortunately.
Here is a short example of request (including the attempt with other_args, and data_folder being a local path, config my sentinelhub.config.SHConfig):
evalscript = """
    //VERSION=3

    return [HH, dataMask]
"""

loc_bbox = BBox(bbox=[-50.5, 69.71, -49.5, 69.97], crs=CRS.WGS84)
loc_size = bbox_to_dimensions(loc_bbox, resolution=50)

request_all_bands = SentinelHubRequest(
    data_folder=data_folder,
    evalscript=evalscript,
    input_data=[
        SentinelHubRequest.input_data(
            data_collection=DataCollection.SENTINEL1_EW,
            time_interval=("2020-07-02", "2020-07-30"),
            other_args={"orthorectify": True},
        )
    ],
    responses=[SentinelHubRequest.output_response("default", MimeType.TIFF),],
    bbox=loc_bbox,
    size=loc_size,
    config=config,
)

outputs = request_all_bands.get_data()

Thank you a lot in advance for your help!

Hi @AdrienWehrle,
You were very close to the correct solution, which is to set:
other_args={
    "processing": {
        "orthorectify": True
    }
}

This design is trying to somewhat follow the official Process API docs where you also have nesting input -> data -> processing -> orthorectify.

Hi @AdrienWehrle,
You were very close to the correct solution, which is to set:
other_args={
    "processing": {
        "orthorectify": True
    }
}

This design is trying to somewhat follow the official Process API docs where you also have nesting input -> data -> processing -> orthorectify.

Thank you a lot! It could be interesting to add this argument to one of the nice examples of SentinelHubRequest!


Add some encryption and decryption to enhance the secure mechanism

any idea?
what content to be encrypted. and how to decrypt it?

@kelvin0511 usually has a phenomenal ideas so please suggest them here. just wanna remind you that, as mentioned by Dennis, it's not the more secure the better.

Since posts on the discussion forum are visible to all users, we only need encryption between the client and the server. We can use RSA to achive this (available in the cryptico package), and here is a demo found on https://blog.csdn.net/junxuezheng/article/details/109824552：
const cryptico = require('cryptico')
// The passphrase used to repeatably generate this RSA key.
var PassPhrase = "The Moon is a Harsh Mistress.";
// The length of the RSA key, in bits.
var Bits = 1024;
var date1 = new Date().getTime()
var MattsRSAkey = cryptico.generateRSAKey(PassPhrase, Bits);
console.log(new Date().getTime()-date1) //
// Matt's public key string can then be generated like this:
var MattsPublicKeyString = cryptico.publicKeyString(MattsRSAkey);
// var publicKey =keys.exportKey('pkcs8-public-pem')
// var privateKey =keys.exportKey('pkcs1-private-pem')
console.log(MattsPublicKeyString.length)  //172，1024Bits对应的密钥长度为172
// 需要加密的信息PlainText
var PlainText = "Matt, I need you to help me with my Starcraft strategy.";
// Encrypting a message 加密
var EncryptionResult = cryptico.encrypt(PlainText, MattsPublicKeyString);
// Decrypting a message 解密
var DecryptionResult = cryptico.decrypt(EncryptionResult.cipher, MattsRSAkey);
console.log(DecryptionResult.plaintext)
Basically, the client shares a public key to the server when he registers, and keeps the private key on the local machine. The server records the public key permanently in the DB. At the same time, the server generates a key pair for each client, and sends the public key to the client while storing the private key in DB. So the client and server both keep each other's public key as well as their own private key.
When the client sends a message to the server, he encrypts the message body with the server's public key, and the server decrypts using the private key. It's the same the other way around.

For the first time of registering, we should probably add an invitation code (organization password).  This is because the project is designed to serve a small community. If anyone can register, then any encryption becomes meaningless. The hacker only needs to register an account if he wants to see all the post contents. This password can be set as a constant for our project, if we only want to open one community. In theory, we can have one community per password.
To avoid this password being leaked through man-in-the-middle attacks, it is necessary to deploy a password protocol. An example is the Encryption-with-Password + PKC：(lecture 6 slide 14)

Before registering, the client should know the correct invitation code pwd. Then W is calculated as SHA256(pwd). To register, the client sends the credentials (user name etc.) together with his public key, as mentioned before. Then, the server generates a challenge R and encrypts R with that public key, and PKE(R) is sent to the client. Upon receiving that, the client uses his private key to get R, and encrypts R with W using polyalphabetic cipher (lecture 2 slide 35). Then he sends EncW(R) to the server. The server decrypts and checks if it equals R. If it does, then the client is authenticated and is formally registered. Otherwise, he is not allowed to register.

Note that the client does not need to authenticate the server. Once joining the community, he can see all the posts and members in it and will automatically recognize whether its identity is true or not. Therefore, the EKE protocal need not to be adopted following the principle of adequate protection.


Instant Death on DImension entering

We verified the dimension was powered. You still instantly died if you entered this dimension not in creative.
[04:28:11] [Server thread/INFO]: id = 10 for , descriptor = ?m214,?L306
[04:28:11] [Server thread/INFO]:     Terrain: TERRAIN_CHAOTIC
[04:28:11] [Server thread/INFO]:         Base block: White Stained Clay
[04:28:11] [Server thread/INFO]:         Base fluid: Molten Lead
[04:28:11] [Server thread/INFO]:     Feature: FEATURE_MAZE
[04:28:11] [Server thread/INFO]:     Effect: EFFECT_SATURATION
[04:28:11] [Server thread/INFO]:     Sun brightness: 1.0
[04:28:11] [Server thread/INFO]:     Star brightness: 1.0
[04:28:11] [Server thread/INFO]:     Sky color: 1.0, 1.0, 1.0
[04:28:11] [Server thread/INFO]:     Fog color: 1.0, 1.0, 1.0
[04:28:11] [Server thread/INFO]:     Sky type: SKY_INFERNO
[04:28:11] [Server thread/INFO]:     Sky body: BODY_PLANET
[04:28:11] [Server thread/INFO]:     Sky body: BODY_LARGESUN
[04:28:11] [Server thread/INFO]:     Celestial angle: 0.75

Can you give me some more information. A few things that I would like to know:

If you go to the dimension in creative and check the dimension monitor. What does it say?
Can you go to other dimensions?
What if yo go to the dimension and then switch to survival?

This is not a issue. The dim was just so expensive that the user was powering it to little so it was powered when he looked at it but when he went into it the dim was eating all the power.

ah ok :-) Glad that this is resolved then.


KAFKA-3045; ZkNodeChangeNotificationListener shouldn't log InterruptedException as error

@lindong28, did you see the following comment in JIRA?
https://issues.apache.org/jira/browse/KAFKA-3045?focusedCommentId=15081237&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15081237
It would be good to handle that issue too and verify by running AclCommandTest a few times.

@ijuma Yeah I read your comment in the JIRA ticket. My patch actually swallowed InterruptedException inside AclChangedNotificaitonHandler.processNotification(..). Did I miss something here?
I will verify the fix by running AclCommandTest. This is a good point.

@lindong28 When I ran the test, I thought I had seen two different places where InterruptedException was an issue, but I am not 100% sure. It should be obvious if you run the test, hopefully.
Also, would you mind renaming AclChangedNotificaitonHandler to AclChangedNotificationHandler please (there's a typo in the current name)?

@ijuma Certainly. All issues fixed. I have verified that the exception that existed before the patch now goes away after the patch.
@junrao I have updated the patch as suggested.
Thanks!

Thanks for the latest patch. LGTM

Thank you @lindong28.


MSKCredentialProvider generates a bad URI if stsRegion is specified

This is from 2.1.0 of the java aws-msk-iam-auth module
If you configure the SASL config like this
software.amazon.msk.auth.iam.IAMLoginModule required awsRoleArn="$role" awsRoleSessionName="producer"  awsStsRegion="$region";
on startup, you'll get this exception
     Caused by: java.lang.NullPointerException: The URI scheme of endpointOverride must not be null.
     at software.amazon.awssdk.utils.Validate.paramNotNull(Validate.java:156)
     at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.endpointOverride(SdkDefaultClientBuilder.java:502)

It looks like the following code is making a URI that the SDK doesn't like
https://github.com/aws/aws-msk-iam-auth/blob/v2.1.0/src/main/java/software/amazon/msk/auth/iam/internals/MSKCredentialProvider.java#L278-L280
        public URI buildEndpointConfiguration(String stsRegion){
            return URI.create("sts." + stsRegion + ".amazonaws.com");
        }

I removed the region to the SASL arg, and it starts up.

Looks like this has been semi-addressed in the tip of main
        public URI buildEndpointConfiguration(Region stsRegion) {
            StsEndpointParams params = StsEndpointParams.builder()
                .region(stsRegion)
                .build();

            try {
                return StsEndpointProvider.defaultProvider()
                    .resolveEndpoint(params)
                    .get()
                    .url();
            } catch (InterruptedException | ExecutionException e) {
                throw new RuntimeException(e);
            }
        }

That's at least not the same code.
Could this be released?

This was fixed in https://github.com/aws/aws-msk-iam-auth/commit/d064c9a84e61e73e0d833f1f560aeee1c02814b2
We plan on releasing by the end of June.


update vercel.json maxDuration to 10

Codecov Report

Merging #2 (0c416fb) into master (e0cd44a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #2   +/-   ##
=======================================
  Coverage   94.81%   94.81%
=======================================
  Files          22       22
  Lines         752      752
  Branches      205      205
=======================================
  Hits          713      713
  Misses         35       35
  Partials        4        4

Continue to review full report at Codecov.

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


Add a global error handling module

For the sake of consistency over the whole app, there's a need to have a global error handling module so it works with all types of errors that happen inside including those related to Metamask or from the app itself. When it's there, we can depend on try-catch and throw Error which are more rigid and cleaner and allow us to have user-friendly errors.
Originally posted by @manuelwedler in https://github.com/beamer-bridge/beamer/pull/388#discussion_r829278626

Idk. The linked one is more detailed. 🤷🏾
But I would say this is a super epic and need to be split anyway. Though I dunno how in particular. We kinda hit certain language restrictions here.

@manuelwedler can you sit down with @GabrielBuragev and see if this issue still makes sense?

Closing in favor of #507


Adds thresholds to compare command configuration

Adds option to specify regression thresholds for F1 score performance
for intents and entities. If the performance drops more than the given
threshold for an NLU intent or entity type, the compare command will
return a non-zero exit code (failing the build in most CI environments).
Fixes #278

Two things to consider:

[ ] support YAML as a configuration format
[ ] add documentation for this

A few open questions:

what is the default behavior?
support measure types


Display a loading spinner when clearing all favourites while redirecting to Home Page

Currently, when users remove all items from their favourites, they are instantly redirected to the home page. While this works fine, we want to make it a bit more stylish. How about adding a loading spinner during this transition? I have a design concept in mind, but you're welcome to suggest your own if you prefer.

Idea: Could you assign this to me?

@Anniebhalla10  Sounds interesting! I'm open to reviewing your solution. I may have some suggestions once I see it in action, so please go ahead with your idea (moving the logo), and we can discuss further."

@Anandsg I was just going through the platform.

Shouldn't the button label be "Favourites"

@Anniebhalla10 Absolutely, it's 'favourites' and regarding your UX suggestion I completely agree. Instead of displaying an empty page when users navigate to the 'Favourites' tab with no saved items, it's better to provide them with the freedom to return to the home screen if they wish. and for other 2 bugs i will reach you through linkedIn. Thanks!!

Okay, Great.

Issue has been resolved as part of PR https://github.com/Anandsg/Hungry-hero/pull/70


What do we put on the website's footer?

Here:

Ideas?

Link to our code of conduct?

can I PR this? how do I make a change?

Sorry, it's already bed time for me. You can do it, yes.
The file is https://github.com/kris-nova/kubicorn/blob/master/docs/_includes/footer.html
It's a three column layout. To put stuff in each column just add them...
    <div class="col-4">
        HERE
    </div>


Minor fixes

Allow a custom $PREFIX path.
Set rpath for dg and sbt-slicer so that they can be run independently from Symbiotic.
Use symbolic links for system LLVM tools.
Check whether Symbiotic is executed from a symbolic link.
Use a more accurate path to clang's libraries
Fix path to LLVM CMake dir when building Predator

EDITS: Update the list of changes.

I have moved some of the commits to #151.


stm32: Finish unifying spi versions

Notable changes:

set_word_size is always called before disabling SPE. This is important because set_word_size may or may not re-enable SPE.
The rx buffer is flushed on v1 as well. I don't know if this is required.
All functions are now generic over word size

bors try


if size is more then 6 mb it is not working

Hello
I have a file having size  more than 6 mb .
//set options for the streaming module
var options = {
concurrentParts: 2,
waitTime: 20000,
retries: 2,
maxPartSize: 10 * 1024 * 1024
};
//call stream function to upload the file to s3
var uploader = new streamingS3(fileReadStream, config.aws.accessKey, config.aws.secretKey, awsHeader, options);
//start uploading
uploader.begin();// important if callback not provided.
// handle these functions
uploader.on('data', function (bytesRead) {
    console.log(bytesRead, ' bytes read.');
});

uploader.on('part', function (number) {
    console.log('Part ', number, ' uploaded.');
});

// All parts uploaded, but upload not yet acknowledged.
uploader.on('uploaded', function (stats) {
    console.log('Upload stats: ', stats);
});

uploader.on('finished', function (response, stats) {
    console.log(response);
    logger.log('info', "UPLOAD ", response);
    cb(null, response);
});

uploader.on('error', function (err) {
    console.log('Upload error: ', err);
    logger.log('error', "UPLOAD Error: ", err);
    cb(err);
});

whn i check on awa file size is 5 Mb. why it is not 6 mb. and file is not opening properly.

I am not sure how your code is structured. Can you please put it in one code block?

I am closing this issue. it was a typo with me .
Thanks


Narrow scope of ignored complaints, state intent

This hopefully solves the reverse-isms debate in a clean and succinct way, by moving the reverse-isms from a "nah we won't even act on that" into a judgement call with a clear statement of intent.
This came from a goal to simplify the solution proposed in #68
I also changed the phrasing of the bulleted list so it's not just "regarding" and more concretely describes the applicable situations — a user doing X
I also removed "Criticizing racist, sexist, cissexist, or otherwise oppressive behavior or assumptions" because it's an easy loophole for trolls to abuse in starting a debate and should be covered already by the rest of the CoC

@NuckChorris Thanks for the mention.  I like these changes, and would be happy to incorporate them into my own PR on the matter.  I think a lot of the language that rubbed people the wrong way simply lacked a little bit of tact.

+1 on incorporating this change into #68
I agree, I think the intent was good but the phrasing needed some work. Of course, as programmers hopefully we can all understand why they pushed out an imperfect version!

@KelseyDH Not really. It wasn't about tone, it's about content. When someone quotes Geek Feminism Wiki of all places as their inspiration I am very very sure they mean it when they say racism against white people doesn't exist, and cisphobia isn't real because IT'S PREJUDUCE PLUS POWER.
It attempted to set rules for arbitrary situations without accounting for context. You can't look at these situations without context. You need a fair person to decide these on a case-by-case basis.

Thanks for your feedback. See https://github.com/todogroup/opencodeofconduct/issues/84.


Re-export MetricsPath from ART

This would create a dependency on a module that isn't mode-dependent nor needed by any of the internals here. The point of the reexport is to centralize things around a specific mode.
Given that build tools are generally not smart enough to do dead code elimination this means that everyone that don't need this helper will have to download it unnecessarily.
Instead, you should just require it directly from "art/metrics/path" if you need it. (Btw, you have a typo in your require.)


PlayCanvas sample is completely dark

https://cx20.github.io/webgl-test/examples/playcanvas/texture/index.html

Probably the cause is the same as the problem below.
https://github.com/cx20/webgl-physics-examples/issues/125

I think something probably changed between PlayCanvas v1.66 and v1.67.
[.WebGL-0000332C0145A900] GL_INVALID_VALUE: Offset overflows texture dimensions.

Probably the same problem as below. The problem seems to be resolved by explicitly specifying the texture size.
Error message : Offset overflows texture dimensions
https://forum.playcanvas.com/t/error-message-offset-overflows-texture-dimensions/34251


Itemsearch: Fix some results not being the best match

Since entries() will reflect changes to the array it's based on, it will skip the element immediately following one that was deleted from the array. Doing it in reverse avoids that, and I didn't find a way to do a reverse iterator, hence the map().

Replaced the whole second loop with a filter.


Add actuals for Flow native tests

TODO() // kpgalligan
:D

The last PR shouldn't have passes tests without this... makes me think we're not running enough tasks on CI.

I tried looking at NativeSqlDriver but it requires a Schema. That seems like an easy enough change to fix, but then I wasn't sure if it supported :memory: or not as a filename. But yeah I defer to his help / riding his coattails.

Will take a look in a bit. Are you merging this first or should I be pushing here?

Merging as this fixes the build 😁 . Tests don't actually run though, obviously.


Improve bearer validation

Summary

Validate the bearer token with the correct regex as described in the spec.
Linked issue(s)

fixes #127
Involved parts of the project

authenticate handler
Added tests?

already existed
OAuth2 standard

https://datatracker.ietf.org/doc/html/rfc6750#section-2.1
Reproduction

NA

Maybe we should also add a test or two, checking for a valid bearer token and a set of invalid bearer token.

Maybe we should also add a test or two, checking for a valid bearer token and a set of invalid bearer token.

@jankapunkt I'll add some tests after 5.0.0 is merged into development


Updated: datagrip 2019.2.5

Newer version of datagrip (2019.3.4) is now available in master. c5f435834a6f70099d184781769e0fdbe56cef3f


setup.py install failing for layers branch

Hi,
Trying to install the layers branch from source, in order to use the ROI* features, but installation fails.
(Working on Windows 10 without GPU)
The install script can't find the cuda installation path which I guess is fair since it's not installed. However, I understand torchvision is available for CPU machines and the installing master branch from source does succeed.
Any help will be appreciated, Thanks !

Hi,
I'd recommend for now installing maskrcnn-benchmark, which contains all the layers in the layers branch here, but are a bit more maintained.
We will be making C++ layers a first-class citizen in torchvision with its next major release.


Potential Syntax Idea

Hey I think it would be kinda cool if it worked something like this:
const { onSubmit, firstName, lastName } = useForm({
  initialValues: { firstName: 'Alex', lastName: 'Cory' },
  firstName: {
    // A. whatever you return would set whatever the value is for this form input
    onChange: e => {
      return e.target.value
    },
    // B. pull out the stuff you need to set the value. (this way seems more extensible
    onChange: ({ event, value,  set }) => {
      set(event.target.value)
    }
    // you could also have formatters for your value
    value: ({ value, set }) => {
      // do some custom "getter" logic (i.e. say this was a number input)
      // this would be similar to doing `get value() {}` in a class and then doing <input value={this.value} ... />
      set(Number(value))
      // or again, you could just use the "return" value
    }
  },
  lastName: {}
})

<input {...firstName} />

You could also do B without the set function. I think that might be the cleanest, but whatever works :)

The main difference here is instead of doing
const { onSubmit, onChange, inputs } = ....

you would do
const { onSubmit, onChange, ...inputs } = ...

That's really innovative!


Relicense MIT/Apache 2.0

Relicense from MPL-2.0 to dual license MIT or Apache 2.0. This license is chosen to more easily allow the flow of code from this project from and to other Rust projects.

[x] @jackpot51
[ ] @kettle11
[ ] @WatchMkr

I license past and future contributions under the dual MIT OR Apache-2.0, allowing licensees to chose any one at their option.

The license field in Cargo.toml should also be updated.

The license field in Cargo.toml should also be updated.

Done, and squashed.

I license past and future contributions under the dual MIT OR Apache-2.0, allowing licensees to chose any one at their option.
Thanks for making this change!


No error but exit code 1

Hello, since update to 0.28 for Clear my build fail on call to ameba, both in dev and travis environment, while all the checks are passed:
Output of my dev env:
$ bin/ameba src
Inspecting 122 files.

..........................................................................................................................

Finished in 497.43 milliseconds

122 inspected, 0 failures.
04:06 me@x1e ~/W/clear crystal-28 …1 ./rw
$ echo $status                                                                                1

(note: echo $status stands for echo $? in fish)
Output of the TravisCI build: https://travis-ci.org/anykeyh/clear/builds/524188305#L509

This is a regression introduced in #100.
Use previous commit, it is also compatible with Crystal 0.28
c95ea297bd24aff0dbbe64a14c8feb2db12bb4c3


NnnPicker doesn't show the last time of nnn

I don't know if this is a neovim bug or an nnn.nvim bug, but when I open nnn through NnnPicker, the bottom line of nnn doesn't show.
This is nnn opened directly from the terminal. Notice that the bottom line shows correctly.

This is nnn opened through NnnPickerl. Notice that the bottom line is not showing.

Not sure, the bottom line shows fine for me when nnn'nvim is in fullscreen. Gonna need a way to reproduce this...

Not sure, the bottom line shows fine for me when nnn.nvim is in fullscreen. Gonna need a way to reproduce this...

Just figured out that this is a problem with the latest neovim nightly. I switched back to v0.8.3 and the problem went away. Have a look at the latest nightly and you will be able to reproduce the bug.

Have a look at the latest nightly and you will be able to reproduce the bug.

I tested on nightly initially, I'm not seeing it. You should provide a minimal reproducible config when making a claim like this on an issue report.

OK, reproduced it.

Should be fixed, thanks for reporting.


I tried everything and still I get:  [nltk_data] Error loading taggers: Package 'taggers' not found in [nltk_data]     index

Hi everyone!
I'm using Langchain to create a custom LLM. To the process I have to use nltk and I've been following all the steps. installed nltk but I have seen it hasn't created a nltk_data folder. So after installilng, upgrading, uninstalling and installing again it didn't work. So I added on my code this lines:
import nltk nltk.data.path = ['C:\\Users\\zaesa\\AppData\\Roaming\\nltk_data'] nltk.download(     'tokenizers', download_dir='C:\\Users\\zaesa\\AppData\\Roaming\\nltk_data') nltk.download(     'punkt', download_dir='C:\\Users\\zaesa\\AppData\\Roaming\\nltk_data') nltk.download('all')
When I check which packages are installed:
`installed_packages = nltk.downloader.Downloader(
download_dir='C:\Users\zaesa\AppData\Roaming\nltk_data').packages()
print(installed_packages)`
I get:
dict_values([<Package perluniprops>, <Package mwa_ppdb>, <Package punkt>, <Package rslp>, <Package porter_test>, <Package snowball_data>, <Package maxent_ne_chunker>, <Package moses_sample>, <Package bllip_wsj_no_aux>, <Package word2vec_sample>, <Package wmt15_eval>, <Package spanish_grammars>, <Package sample_grammars>, <Package large_grammars>, <Package book_grammars>, <Package basque_grammars>, <Package maxent_treebank_pos_tagger>, <Package averaged_perceptron_tagger>, <Package averaged_perceptron_tagger_ru>, <Package universal_tagset>, <Package vader_lexicon>, <Package lin_thesaurus>, <Package movie_reviews>, <Package problem_reports>, <Package pros_cons>, <Package masc_tagged>, <Package sentence_polarity>, <Package webtext>, <Package nps_chat>, <Package city_database>, <Package europarl_raw>, <Package biocreative_ppi>, <Package verbnet3>, <Package pe08>, <Package pil>, <Package crubadan>, <Package gutenberg>, <Package propbank>, <Package machado>, <Package state_union>, <Package twitter_samples>, <Package semcor>, <Package wordnet31>, <Package extended_omw>, <Package names>, <Package ptb>, <Package nombank.1.0>, <Package floresta>, <Package comtrans>, <Package knbc>, <Package mac_morpho>, <Package swadesh>, <Package rte>, <Package toolbox>, <Package jeita>, <Package product_reviews_1>, <Package omw>, <Package wordnet2022>, <Package sentiwordnet>, <Package product_reviews_2>, <Package abc>, <Package wordnet2021>, <Package udhr2>, <Package senseval>, <Package words>, <Package framenet_v15>, <Package unicode_samples>, <Package kimmo>, <Package framenet_v17>, <Package chat80>, <Package qc>, <Package inaugural>, <Package wordnet>, <Package stopwords>, <Package verbnet>, <Package shakespeare>, <Package ycoe>, <Package ieer>, <Package cess_cat>, <Package switchboard>, <Package comparative_sentences>, <Package subjectivity>, <Package udhr>, <Package pl196x>, <Package paradigms>, <Package gazetteers>, <Package timit>, <Package treebank>, <Package sinica_treebank>, <Package opinion_lexicon>, <Package ppattach>, <Package dependency_treebank>, <Package reuters>, <Package genesis>, <Package cess_esp>, <Package conll2007>, <Package nonbreaking_prefixes>, <Package dolch>, <Package smultron>, <Package alpino>, <Package wordnet_ic>, <Package brown>, <Package bcp47>, <Package panlex_swadesh>, <Package conll2000>, <Package universal_treebanks_v20>, <Package brown_tei>, <Package cmudict>, <Package omw-1.4>, <Package mte_teip5>, <Package indian>, <Package conll2002>, <Package tagsets>])
But when I look manually on the nltk_data folder on the right path I don't see all this packages and there is no "tokenizers" and no "taggers" even if I wrote:
`import nltk
nltk.data.path = ['C:\Users\zaesa\AppData\Roaming\nltk_data']
nltk.download(
'tokenizers', download_dir='C:\Users\zaesa\AppData\Roaming\nltk_data')
nltk.download(
'punkt', download_dir='C:\Users\zaesa\AppData\Roaming\nltk_data')
nltk.download('all')`
Why I still get this error? It makes non sense:
[nltk_data] Error loading tokenizers: Package 'tokenizers' not found [nltk_data]     in index [nltk_data] Error loading taggers: Package 'taggers' not found in [nltk_data]     index
Appreciate any help. I can't figure out what is wrong with nltk. I follow everything and in all possible ways and it just doesn't work! Thank you.

Hello!
"tokenizers" and "taggers" are not packages themselves, but "folders" that have packages in them: tokenizers, taggers.
I see that <Package punkt>, the only tokenizer, and all taggers are also included in your list of installed packages.
So, "tokenizers" isn't supposed to work, but "punkt" and "all" should, like this:
>>> import nltk
>>> nltk.download("tokenizers")
[nltk_data] Error loading tokenizers: Package 'tokenizers' not found
[nltk_data]     in index
False
>>> nltk.download("punkt")
[nltk_data] Downloading package punkt to
[nltk_data]     C:\Users\tom\AppData\Roaming\nltk_data...
[nltk_data]   Package punkt is already up-to-date!
True
>>> nltk.download("all")
[nltk_data] Downloading collection 'all'
[nltk_data]    |
[nltk_data]    | Downloading package abc to
...

I think you have everything installed, and you should be ready to start using NLTK.

Tom Aarsen

Well, appreciate your response. But I still don't see a provided solution. This isn't working. And believe me I'm trying everything.
Would really appreciate any help.
I'm not fan to ask for help, but tried everything, read the docs, used Langchain chatbot, installed by pip, installed by pip but without dependencies, installed manually,...
Nothing seems to work. It is a bit of frustrating to be honest.
Appreciate any help.

What happens if you run the following?
from nltk.tokenize import sent_tokenize
sent_tokenize("Hello. How are you? I'm well.")

Tom Aarsen

Nothing happens. Just get hundreds of lines of:
[nltk_data] Error loading tokenizers: Package 'tokenizers' not found [nltk_data]     in index [nltk_data] Error loading taggers: Package 'taggers' not found in [nltk_data]     index
I also did manually create the taggers folder and the tokenizers folder and added all the the files and the unzip folder on the respective folders. Still nothing.
Appreciate if you can still help me because I just don't see what is going wrong here.

I can tell that you've tried a lot already - I'm sorry to hear that it's being so difficult. I tried to google your Package 'tokenizers' not found issue and found no other cases, sadly.
My tokenizers folder in nltk_data looks like this, does that match yours somewhat?

Do you perhaps also have a rogue tokenizers file (not folder) somewhere that it could be trying (but failing) to load?

Tom Aarsen

Hi Tom,
No my tokenizers folder has the zip punkt folder and punkt.xml. IS the punkt folder that you have when you unzip the punkt folder? Should I unzip also the folders on taggers?
I've made a search on all my folders and I have more folders called tokenizers but in other paths. One is for Stable Diffusion. But, this doesn't explain why it also doesn't get the taggers package and maybe also if possible, can I force to look to tokenizers folder and taggers folder in a specific path?
Appreciate.

Ok, I unzip all the folders. RTun again the script. Same errors. This is so frustrating...

I've made a search on all my folders and I have more folders called tokenizers but in other paths. One is for Stable Diffusion. But, this doesn't explain why it also doesn't get the taggers package and maybe also if possible, can I force to look to tokenizers folder and taggers folder in a specific path?

I think it should only look under a .../nltk_data path, so I think that should be fine.
This is my punkt folder:

And this is my punkt.zip:

And then this is the content of the punkt folder inside of the punkt.zip:

Thanks Tom!
It looks pretty similar to mine. Do you see anything wrong?

Appreciate your help!

Nothing too odd. I suppose you could try deleting the .xml files, and perhaps the folders other than tokenizers and taggers in the first screenshot. I think once you have that, then we match perfectly.
Other than that maybe my punkt.zip directly has a punkt folder inside of it instead of files directly - I'm not sure how this looks for you.

Ok, I have done the changes you have suggested.
Unfortunately and I still can't get why. It isn't working.
Damm it!

I'm puzzled too. What version of nltk are you using? Perhaps it's an older one?

No I just intalled several times nltk it should be the last one.
I've also looked at where it is installed and I get these paths:    c:\users\zaesa\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\scripts\nltk.exe
c:\users\zaesa\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\nltk-3.8.1.dist-info*
c:\users\zaesa\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\nltk*
I'm so confused...

Weird, when I try to check the version of nltk I get this message:
PS C:\Users\zaesa\OneDrive\Escritorio\code\UtadGPT> python -m nltk C:\Users\zaesa\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe: No module named nltk.__main__; 'nltk' is a package and cannot be directly executed
Maybe there is a possible reason?

That's normal, I have that too. Only python -m nltk.downloader should work

Ok, found a work around. This is what I get:
PS C:\Users\zaesa\OneDrive\Escritorio\code\UtadGPT> pip show nltk Name: nltk Version: 3.8.1 Summary: Natural Language Toolkit Home-page: https://www.nltk.org/ Author: NLTK Team Author-email<EMAIL_ADDRESS>License: Apache License, Version 2.0 Location: c:\users\zaesa\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages Requires: click, joblib, regex, tqdm Required-by: unstructured
So, it seems everything is fine. What makes less sense why it isn't working. There has to be another reason. Maybe regards Langchain working with nltk?

It seems to be via unstructured. I don't think they use nltk for all that much: https://github.com/search?q=repo%3AUnstructured-IO%2Funstructured nltk&type=code

Oh, so it seems a problem with Langchain right?
Maybe there is some type of incompatibilities....

Unstructured just pushed a release 5 minutes ago: https://github.com/Unstructured-IO/unstructured/releases/tag/0.8.7
Upgrading to that fixed it for me.

Awesome! I hope that fixes it for you too @venturaEffect

So do I have to pip install langchain again @akowalsk ? Appreciate any guidance 🙏

I think pip install -U unstructured should do it.

I don't think so, you should just have to do pip install -U unstructured.  I can't say for sure though because I'm using unstructured directly right now.  My error was exactly the same as what you saw and it went away once I upgraded to 0.8.7.

Thank you soooo much @akowalsk !! You saved my day! Wish you a wonderful weekend!

Hi , I had same error . I add this - >  nltk.download('punkt_tab') then fixed


Missing important info

Consider expanding the documentation to also address versioning with the header or query string in addition to the path.  Mentioned but that is it.  Followed link at top as well and no info there.  This is a common short fall with MS docs, will state several ways to do something then just  demo one.

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

ID: 25a33ff6-8ffc-ad26-d429-3170bcca9498
Version Independent ID: fcd9c088-8b17-e53b-4c93-f90f2dc5c09c
Content: Publish versions of your API using Azure API Management
Content Source: articles/api-management/api-management-get-started-publish-versions.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

Hi @joeruder Thank you for your feedback! We have assigned this issue to the author to investigate further and take the right course of action.

Tutorials document the most common path. We will add the suggestion to the backlog and figure out the best way to address it based on priorities and additional feedback. Thank you! #please-close


Posts disappearing from Content Manager - Hugo - Netlify

✅ Accessing the Admin page, using the editorial workflow and media assets all work perfectly fine. ✅ I'm able to create a post— the file is properly created and displays on my Hugo list page.
❌ After reloading or leaving the Content Manager in Netlify-CMS, the post disappears and "no entries found" is displayed. ❌ The post remains on my site, just not on the content manager.
Applicable Versions:

Netlify CMS version: 2.10.49
Git provider: Github
OS: N/A - Happens on all devices
Browser version Chrome, Safari, Firefox— latest

CMS configuration
backend:
  name: github
  repo: [redacted] # Path to your Github repository
  branch: master # Branch to update (master by default)
# This line should *not* be indented
publish_mode: editorial_workflow

# These lines should *not* be indented
media_folder: "static/img" # Media files will be stored in the repo under static/images/uploads
public_folder: "/img" # The src attribute for uploaded media will begin with /images/uploads

site_url: [redacted]
display_url: [redacted]
collections:
  - name: 'Posts'
    label: 'Posts'
    label_singular: 'Post'
    folder: 'content/posts'
    identifier_field: 'title'
    create: true
    summary: "{title}}"
    slug: '{{slug}}'
    path: '{{year}}/{{month}}/{{slug}}'
    preview_path: 'posts/{{year}}-{{month}}-{{slug}}'
    editor:
      preview: false
    filter: {field: "language", value: "en"}
    fields:
      - { label: 'Title', name: 'title', widget: 'string' }
      - { label: 'Publish Date', name: 'date', widget: 'datetime' }
      - { label: 'Category', name: 'categories', widget: 'select', options: ["Articles", "Updates", "Review", "Software", "Music"] }
      - { label: 'Tags', name: 'tags', widget: "list", allow_add: true, default: ["Tag"]}
      - { label: 'Image', name: 'image', widget: 'file', allow_multiple: false, required: false}
      - { label: 'Body', name: 'body', widget: 'markdown' }
      - { label: 'Comments enabled', name: 'comments', widget: 'boolean', default: true, required: false }

Hi @rohiaudio, it seems that you have a filter: {field: "language", value: "en"} configured but no language on the entries.
Can you remove the filter configuration and see if that helps?

@erezrokah I could kiss you!


I got a mistake when i use centerpoint:

python demo/pcd_demo.py demo/kitti_000008.bin configs/centerpoint/centerpoint_01voxel_second_secfpn_circlenms_4x8_cyclic_20e_nus.py checkpoints/centerpoint_01voxel_second_secfpn_circlenms_4x8_cyclic_20e_nus_20201001_135205-5db91e00.pth
Traceback (most recent call last):
File "demo/pcd_demo.py", line 29, in
main()
File "demo/pcd_demo.py", line 22, in main
result, data = inference_detector(model, args.pcd)
File "/home/wugj/projects/open-mmlab/mmdetection3d/mmdet3d/apis/inference.py", line 73, in inference_detector
data = test_pipeline(data)
File "/home/wugj/projects/open-mmlab/mmdetection/mmdet/datasets/pipelines/compose.py", line 40, in call
data = t(data)
File "/home/wugj/projects/open-mmlab/mmdetection3d/mmdet3d/datasets/pipelines/loading.py", line 369, in call
points = points.reshape(-1, self.load_dim)
ValueError: cannot reshape array of size 68952 into shape (5)
And can i use pcd file or ros::PointCloud2 directly?

Hi, basically each KITTI point has four features (x,y,z, reflectance) while nuScenes point has five features (x,y,z, reflectance, ring_index). Therefore, you can't use a KITTI pcd file directly with nuScenes configs.

Current code snippets for demo only support KITTI because we typically need multi-sweep poind cloud data on nuScenes. You could try other configs or switch the centerpoint config to KITTI. We may improve this function in the future.

mmdetection3d# python demo/pcd_demo.py demo/data/kitti/kitti_000008.bin configs/centerpoint/centerpoint_01voxel_second_secfpn_circlenms_4x8_cyclic_20e_nus.py checkpoints/centerpoint_01voxel_second_secfpn_circlenms_4x8_cyclic_20e_nus_20201001_135205-5db91e00.pth Use load_from_local loader Traceback (most recent call last):   File "demo/pcd_demo.py", line 44, in <module>     main()   File "demo/pcd_demo.py", line 28, in main     result, data = inference_detector(model, args.pcd)   File "/data/my_project/mmdetection3d/mmdet3d/apis/inference.py", line 104, in inference_detector     data = test_pipeline(data)   File "/data/my_project/mmdetection/mmdet/datasets/pipelines/compose.py", line 40, in __call__     data = t(data)   File "/data/my_project/mmdetection3d/mmdet3d/datasets/pipelines/loading.py", line 414, in __call__     points = points.reshape(-1, self.load_dim) ValueError: cannot reshape array of size 68952 into shape (5)


Custom horizontal line for support/resistance

I'm submitting a...

[ ] bug
[x] feature
[x] chore

Other information
Thank you for the awesome work. Is there any change to add a horizontal line? I'm planning to add a support and resistance line. Thanks!

Sure i'm hoping to have some more time to expand out the examples but this is quite easy to do.
For a basic horizontal line you can use the PriceCoordinate component:
<PriceCoordinate at="left" orient="left" price={60} displayFormat={format(".2f")} />

Thank you for your awesome response @markmcdowell !


Disable indexing of generated filles

Hi! I have a project where I have few very long generated files (100-150k lines of pre-computed constants, I'm trying to check in the largest files; right now it's around 5-10k and it's manageable) that I checked into the source tree. Ever since I checked these files in, Rust-Analyzer just hangs upon all requests (go to definition, code completion): everything is unresponsive. Is there a way to ask Rust-Analyzer to "exclude" some files from analyzing at all and preventing the irresponsive state?

And if/when I move the generated files out of src/ (e.g. they were a part of OUT_DIR/... before, my editor is constantly red because Rust-Analyzer does not recognize these include!s.

Oh, nevermind: the problem only persists when they're in OUT_DIR, when they're in a src/ sibling (accessed through include!(concat!(env!("CARGO_MANIFEST_DIR"), "/generated/file.rs"));, Rust-Analyzer seems to like it.
Still, might be cool to add an option that wouldn't require keeping the genfiles out of the src/ but probably much lower priority.


Adding CoreWLAN

@progrium Hope you are fine. Is there any plan to add corewlan module? If not anyone here can guide me to add things. Thanks.

You can use them via the dynamic API like any other, but adding bindings will mean working with our schema and generation stack, which isn't well documented yet.

Thank you for the info. @progrium. Closing this issue.

@progrium Trying to check, if we have enough documentation available to integrate CoreWLAN with macdriver now?


addContact unhandled error

The Issue
If you leave the daemon running for a while and you have published content you'll likely incur in this exception
2017-03-22 02:21:41,553 CRITICAL twisted:154: Unhandled Error
Traceback (most recent call last):
  File "site-packages/twisted/python/log.py", line 86, in callWithContext

  File "site-packages/twisted/python/context.py", line 118, in callWithContext

  File "site-packages/twisted/python/context.py", line 81, in callWithContext

  File "site-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite

--- <exception caught here> ---
  File "site-packages/twisted/internet/udp.py", line 249, in doRead

  File "site-packages/lbrynet/dht/protocol.py", line 160, in datagramReceived

  File "site-packages/lbrynet/dht/node.py", line 385, in addContact

  File "site-packages/lbrynet/dht/routingtable.py", line 403, in addContact

exceptions.KeyError: 0

The log is flooded with this. Jack knows about the issue but I'm putting it here for reference
Steps to reproduce
While I don't have a reliable way of reproducing this, following the 2 points here could produce it

possibly publish content
wait a while

Expected behaviour
No exception is left unhandled and the log looks clean and boring
Actual behaviour
flooded output
System Configuration

generally observed on linux, didn't test on other OS
[
  {
    "build": "rc",
    "ip": "****",
    "lbrynet_update_available": false,
    "lbrynet_version": "0.9.1",
    "lbryum_version": "2.7.13",
    "os_release": "4.4.0-66-generic",
    "os_system": "Linux",
    "platform": "Linux-4.4.0-66-generic-x86_64-with-Ubuntu-16.04-xenial",
    "processor": "x86_64",
    "python_version": "2.7.12",
    "remote_lbrynet": "0.9.1"
  }
]

pardon, this seems to be a duplicate of #436
feel free to close if so

Yep.


[azure-kinect-sensor-sdk] Fix supports and build issue in feature 'tool'

Fix https://github.com/microsoft/vcpkg/issues/22623

Fix supports issue
Fix feature 'tool': the dependency imgui feature "opengl3-glew-binding" has been removed by PR https://github.com/microsoft/vcpkg/pull/19677, and use imgui feature "opengl3-binding" instead. I have double confirmed, except azure-kinect-sensor-sdk, there is no port that depends on it.
Imgui function SetScrollHere renamed to SetScrollHereY from 'https://github.com/ocornut/imgui/commit/61d94ff88e480e9a76c85709de68b59b0906cb3a, so update it by fix build issue.

All features test pass with x64-windows.

thank you phoebe!


[Enhancement]: Setup the issue description template for user

Description:

Currently any new user who comes up to this repository and reports a new issue ticket, we don't have a template. For a better user and contributor experience, shall we add a template for ease process?

Potential Solution:

Let's setup a GitHub actions for the same? Or else we can create a md file and from settings we can manually mark that file as template. Let's discuss more on it.

Screenshots:

If the issue ticket looks good and we come to conclusion to fix it, then I would love to work on it.


configureReporters() not being called.

I have implemented MetricsConfigurerAdapter, but configureReporters() isn't called unless I manually call it myself, such as from within getMetricRegistry().
Update: I figured out that it is because I had my getMetricRegistry() method, labeled as a bean. It should be documented that the library clients should not define their own bean, because DelegatingMetricsConfiguration provides it for you and handles the configuring based on your overridden methods.
Update2: Perhaps the main conflict was injecting a MetricRegistry field into my config class.

@zkendall
I suppose, that this is a bug: providing my own metric registry in MetricsConfigurerAdapter should work. Currently this value is ignored.
@ryantenney please, help us find out how MetricsConfigurerAdapter is supposed to handle custom metric registry. Thanks

@Aloren do you have the getMetricRegistry method annotated @Bean? Evidently that was the problem @zkendall was having.


fail to run the example!!!  php -q server_ssl.php

Dear all:
When I run the example(server_ssl.php) in Wrench project
I got
Warning: require(/home/demo/Wrench-master/examples/../../vendor/autoload.php)
Fatal error: require(): Failed opening required '/home/demo/Wrench-master/examples/../../vendor/autoload.php' (include_path='.:/opt/php/lib/php') in /home/demo/Wrench-master/examples/server_ssl.php on line 16
anybody know why......???? or where is the autoload.php
thanks a lot

Do composer install

Great
Thanks


Remove myself from senior maintainers

I'll be stepping down from my roles and responsibilities at StackStorm, effective after the next TSC meeting, in September.
It's been great getting to know and work alongside all of you! Best of luck with the continued development!
I hope our paths cross again in the future.
This PR simply moves my entry in OWNERS.md from being a ST2 senior maintainer to a friend.

Thank you @blag for all the hard work, efforts, and soul you put in maintaining, growing, and leading the StackStorm open source project during its most turbulent time! :heart:
If you'll ever have a chance to touch StackStorm again, - I'm sure the team will be happy to see you re-joining the maintainers anytime in the future!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


product image added (image 3)

image of product 3 are added.
--Output--

Perfect @developer-irfan 👍


Should we give up on the Grails version?

I get enough of Grails at work to know it's most likely more trouble than it's worth. With a revaming in mini.css, it's probably actually counter-productive.

Yes, the Grails version of the website will be abandoned.


Insert delay between files when sending more than one

Roland XV firmware updates require playing a long sequence of MIDI files containing SysEx data.  For the XV-88 the files are 70KB+ each, and there are 32 of them.  It took two hours to manually load each of them.   [ it could've gone faster, but I tuned down the bit rate to 60% and had a 150ms delay between messages, since just playing the .mid files with my usual sequencer caused a MIDI overrun error and nearly bricked my '88! ]
I did try selecting multiple files and then pressing play, but the bootstrap firmware can't cope without a small gap between the files ( I can't confirm whether the currently supported inter-message delay even gets applied in this case).
It would be very useful for there to be an option to set a user-specified delay when one file finishes before starting on the next file.

Good idea.
Right now it collects all the sysex messages from all the files, then plays them, with the same inter-message delay between each one.

(And thank you for explaining your case so clearly. I didn't know Roland XVs had this particular firmware update process.)

I don't know what inter-file delay the XV needs, but I do know that when I did play multiple files the XV failed to notice the start of the second file.  Fortunately, stopping the replay and then continuing with each file manually appeared to work without leaving the firmware bricked.  It certainly seemed happy with the couple of seconds it took me to click and start each file manually.
p.s. kudos to you too for having the ability to extract the sysex messages from a .mid file, and not just from within raw .syx files.
For a few heart-stopping moments on Thursday night I thought I had a very expensive (and heavy) paperweight.  Even though there's apparently timing information in the Roland .mid files it seems that the standard CoreMIDI MusicSequence player just threw the data out too fast for the XV to cope with at all, and it wouldn't boot other than into firmware update mode.
Without your app's ability to run at lower rates I'd have been very unhappy.


Add an automated PR comment

Angelika created this great GitHub action that can generate PR comments depending on which files have changed in the PR.
https://github.com/exercism/pr-commenter-action
An example can be seen in the Elixir Track: https://github.com/exercism/elixir/pull/930#issuecomment-926567977
I was thinking about adding something similar for the JavaScript track.
It could take care of the following things:

Remind the maintainer to set the correct size label.
If concept about.md, introduction.md or exercise introduction.md for a concept exercise is changed, remind the contributor to check the change is applied consistently to all 3 files.
If the exemplar or the stub is changed, remind the contributor to check that both files are kept in sync (same JSDoc comments, same function signatures).
If a practice exercise introduction or test file is changed, remind the contributor to check whether the exercise originates in problem-spec and what to do in that case.

Any objections? Any thoughts on additional things the PR comment should cover?

Right. Yes. You are right. I meant that for practice exercises, the instructions should be like canonical, and only appends should be used to add things...


QuickInfo misleading with signatures from higher order function type inference

TypeScript Version:  3.4.0-dev.20190313

Search Terms:
Code
interface T1 {}

declare function pipe2<A, B, C, D>(ab: (a: A) => B, cd: (c: C) => D): (a: [A, C]) => [B, D];
declare function list<T extends T1>(a: T): T[];
declare function box<T extends T1>(x: T): { value: T };

const listBox = pipe2(list, box);

Expected behavior:
Propagated type parameters should be renamed if a different type with the same name is used in the constraint or initializer of any other propagated type parameter.
For example: <T extends T1, T2 extends T1>.
Actual behavior:
Hovering over listBox displays const listBox: <T extends T1, T1 extends T1>(a: [T, T1]) => [T[], {value: T1;}]
Note the T1 extends T1 and T extends T1 where T1 refers to something completely different.
This is not limited to renamed type parameters. Hovering over listBox in the following code displays circular type parameter constraints (<T extends V, V extends T>) without any renaming going on:
interface T {}
interface V {}

declare function pipe2<A, B, C, D>(ab: (a: A) => B, cd: (c: C) => D): (a: [A, C]) => [B, D];
declare function list<T extends V>(a: T): T[];
declare function box<V extends T>(x: V): { value: V };

const listBox = pipe2(list, box);

This issue is actually not limited to type display in quick info.
The generated declaration file (when exporting listBox) also contains these invalid references and therefore causes type errors for consumers.
This looks related to #31605. Maybe it's fixed by #31544


from epftoolbox.models import DNN

Error calling DNN from epftoolbox.models, last error displayed was File "D:conda\envs\epftoolbox\libs\ite-packages\kerasers\optimizers\optimizer_v2\adadelta.py", Line 21, in
Import optimizer_v2 from keras.optimizers.optimizer_v2
File "D:\conda\envs\epftoolbox\lib\site-packageskeras\optimizers\optimizer_v2\optimizer_v2.py", line 103, in
@keras_export("keras.optimizers.Optimizer", metaclass=abc.ABCMeta)
TypeError: api_export.init() gets an unexpected keyword argument "metaclass
How to fix the above error

Dear author, if you see my problem and have enough time, please help me to solve it, thank you very much!

This seems weird, which version of python and libraries are you using?


Not working "out of the box"

I just installed it but it's not working. Do I need to press some key combo or something? I didn't see any mentions to this. I might be doing something wrong...
I do have the Microsoft Python Extension (v2024.6.0).

Hello, it should work out of the box! However, some custom theming might conflict with the colors.
Please check #1, where I explain how to analyze if the extension is working as intended and how to customize the settings:

Run the VSCode command Developer - Inspect Editor Tokens and Scopes (using Cmd+Shift+P)
Left click on a character in your source to inspect the available scopes (you can enable/disable the extension to see which scopes it adds to the source code, see Available Scopes :

As you can see, the extension adds a bunch of scopes and VSCode will look up for the first scope that implements a style. In my example, it's the punctuation.definition.tag style that is used (standard scope as I don't have custom theming). You can override this behavior by adding this in you settings.json file for instance:
"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": "docstring.variable",
      "settings": {
        "fontStyle": "bold underline",
        "foreground": "#569cd6",
      }
    },
  ]
}

Then you can play around to make it as you like!
Originally posted by @rodolphebarbanneau in https://github.com/rodolphebarbanneau/python-docstring-highlighter/issues/1#issuecomment-2002595456

Thanks!
I was using the theme "Light (Visual Studio) Visual Studio Light" and it wasn't showing the formatting. I changed it and now I see everything.
However, if I add the settings you posted they work and I am able to see the change in color, underlined and in bold. So I guess there's some incompatibility with that theme directly as you said.

Thanks for the feedback, glad it works for you!
If there are no further issues, I'll close this ticket.


Raise an error when an indexed field is not found

Before, a None would be returned from BaseField.get_definition_model(),
leading to arcane errors in its sole caller,
Elasticsearch5Mapping.get_field_column_name.
This commit re-raises the Django FieldDoesNotExist exception, which
generates a much more user-friendly message.
This was reported before in #6483.

Please check the following:

[X] Do the tests still pass?[^1]
[X] Does the code comply with the style guide?

[X] Run make lint from the Wagtail root.

[ ] For Python changes: Have you added tests to cover the new/fixed behaviour?

Please describe additional details for testing this change.
TBD

@przemub please let us know when you are ready to mark this as a non-draft.
Just a heads up that draft PRs are usually not reviewed or looked at.
Thanks for taking the time to investigate this issue, let us know if you need a hand.

Thanks @lb-
Could you let me know if this change requires a test case? Do I need to add release notes for this change? I left it on draft since I wanted to figure the requirements out first for my first PR here :)

@przemub when contributing we always expect test cases to be added, otherwise it is very easy for the fix/change to be lost without anyone ever knowing.
You do not need to add release notes, the core team will resolve that once the change is merged in.
However, feel free to add any comments or update the description with a summary if you want, normally we will review that and the related issue when generating the changelog entry.
Thanks for checking.

Thanks, added!

@przemub could you take a look at the failing tests, seems to be elastic search only

I want to redo this issue, but there's one problem I am facing when I run python runtest.py electricsearc8 command.

Closing this now so it’s clearer that #6483 is available to pick up. This isn’t looking too far off but we seem to need someone to take over the creation of tests that pass – or fix the implementation. And at this rate that will probably be a separate PR anyway.


#1632: Add path type to schema

Resolves #1632
The ingress parameter "pathType" is mandatory from version 5.15. If the parameter is omitted, the following error appears:
spec.rules[0].http.paths[0].pathType: Required value: pathType must be specified
But if try to set it, another error appears:
field pathType not found in type latest.IngressRuleConfig
This change adds ability to specify 'pathType' parameter.

Please review @FabianKramm

@akremenetsky thanks!


Alert View Page Enhancement

Add loading icon and sorting feature to the alert page

Current coverage is 36.04% (diff: 100%)

No coverage report found for develop at 4518334.

Powered by Codecov. Last update 4518334...cd73eb2